Answer the question
In order to leave comments, you need to log in
What is the best way to organize work with services in the controller $this->get('service') vs controller as service?
Tired of writing code like
public function someAction() {
$service = $this->get('app.my_super_puper_service');
}
/**
* @Inject("service", "app.my_super_puper_service")
/*
public function someAction($service) {
// do something
}
Answer the question
In order to leave comments, you need to log in
or implemented by type hinting
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question