Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 26 08:46
    mnapoli closed #18
  • Feb 26 08:46
    mnapoli commented #18
  • Feb 09 11:43
    colorninja opened #18
  • Jan 22 07:29
    arueckauer starred PHP-DI/ZF1-Bridge
  • Nov 14 2020 18:13
    mnapoli commented #22
  • Nov 14 2020 18:04
    frenchcomp commented #22
  • Nov 14 2020 17:59
    mnapoli closed #22
  • Nov 14 2020 17:59
    mnapoli commented #22
  • Jul 20 2020 20:37
    frenchcomp commented #22
  • Jul 20 2020 20:30
    frenchcomp synchronize #22
  • Jul 19 2020 08:37
    frenchcomp commented #22
  • Jul 19 2020 07:14
    frenchcomp synchronize #22
  • Jul 18 2020 20:26
    mnapoli labeled #22
  • Jul 17 2020 09:10
    frenchcomp synchronize #22
  • Jul 17 2020 09:09
    frenchcomp synchronize #22
  • Jul 17 2020 09:07
    frenchcomp synchronize #22
  • Jul 09 2020 19:27
    frenchcomp synchronize #22
  • Jul 09 2020 12:44
    frenchcomp opened #22
  • May 07 2020 19:31
  • Feb 14 2020 19:26
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
Amir Roushenas
@roushenas
Hey guys. Is there a way to use php-di without any PHP framework? I wanna use it standalone, is it possible?