Joined November 2012
·
Posted to
Symfony2 Call Service from Command
over 1 year
ago
You can also use extend the ContainerAwareCommand
:
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
class FooCommand extends ContainerAwareCommand
{
// ...
}
Then you can use:
$this->get('service);
Posted to
How to render a template for a static page without a custom controller in Symfony2
over 1 year
ago
This is a great one, thanks!
Achievements
98 Karma
631 Total ProTip Views
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Epidexipteryx 3
Have at least three original repo where C++ is the dominant language
Epidexipteryx
Have at least one original repo where C++ is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
Nephila Komaci
Have at least one original repos where PHP is the dominant language
You forgot something!