In the controller, I could do
$this->get(\'service.name\')
But in a custom class, how can I do that?
OK I suppose @Arms answer is a possible solution, I found by looking at the source to Controller, I could extend ContainerAware
Controller
ContainerAware