Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 12 04:37
    slps970093 starred PHP-DI/ZF1-Bridge
  • Apr 04 11:56
  • Jan 10 08:49
    tixsys starred PHP-DI/ZF1-Bridge
  • Nov 21 2018 11:32

    mnapoli on master

    Fix tests (compare)

  • Nov 21 2018 11:29

    Rastusik on 1.0.20

    (compare)

  • Nov 21 2018 11:27
    mnapoli commented #18
  • Nov 21 2018 11:27
    Rastusik commented #18
  • Nov 21 2018 11:26

    mnapoli on master

    Fixing apcu cache in ApcuFactory Merge pull request #18 from and… (compare)

  • Nov 21 2018 11:26
    mnapoli closed #18
  • Nov 21 2018 11:26
    mnapoli commented #18
  • Nov 21 2018 11:25
    Rastusik commented #18
  • Nov 21 2018 09:59
    andrejvrabec edited #18
  • Nov 21 2018 09:59
    andrejvrabec commented #18
  • Nov 21 2018 09:51
    mnapoli commented #18
  • Nov 21 2018 09:49
    andrejvrabec opened #18
  • Nov 20 2018 15:42
  • Nov 20 2018 15:40
  • Oct 17 2018 12:47
    javiercastillogt starred PHP-DI/Symfony-Bridge
  • Oct 05 2018 12:35
    jjanvier closed #21
  • Oct 05 2018 12:35
    jjanvier commented #21
francewar
@francewar
hey there, can you help me out?
I'm using symfony 2 with PHP-DI and I'm trying to set it up

I'm actually using the default annotations from symfony 2, and I have read that i need to put this in front of my controller

/**

  • @Route(service="AppBundle\Controller\DefaultController")
    */

Is this correct? My controller is called DefaultController and is inside the namespace AppBundle\Controller (just like the default symfony installation)

But yet i still get a 500 error when trying to access my route (I'm injecting a plain and empty php class inside the controller constructor)

Ian
@nisbeti
This message was deleted
Sasa Bogicevic
@v0d1ch
don't know about the service param but route needs to have a name and path like @Route("/someroute", name="some_route")
actually name is not mandatory I think