merged branch egulias/master (PR #4658)
Commits -------4bfb6fd
[FrameworkBundle][Command] ContainerDebugCommand - Changed visibility to allow re use in childs Discussion ---------- [FrameworkBundle][Command] ContainerDebugCommand Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - License of the code: MIT Documentation PR: - I'm currently working on a command to debug (service) listeners. I wanted to extend the ContainerDebugCommand from the FrameworkBundle but I found that the method resolveServiceDefinition($serviceId) was private so it avoids its usage from children. This PR changes the visibility so it allows the re-use of this method when extending. --------------------------------------------------------------------------- by travisbot at 2012-06-26T07:11:31Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1708139) (merged4bfb6fdd
into5a8e2064
).
This commit is contained in:
commit
d131f9d32f
@ -32,7 +32,7 @@ class ContainerDebugCommand extends ContainerAwareCommand
|
||||
/**
|
||||
* @var ContainerBuilder
|
||||
*/
|
||||
private $containerBuilder;
|
||||
protected $containerBuilder;
|
||||
|
||||
/**
|
||||
* @see Command
|
||||
@ -209,7 +209,7 @@ EOF
|
||||
*
|
||||
* @return \Symfony\Component\DependencyInjection\Definition|\Symfony\Component\DependencyInjection\Alias
|
||||
*/
|
||||
private function resolveServiceDefinition($serviceId)
|
||||
protected function resolveServiceDefinition($serviceId)
|
||||
{
|
||||
if ($this->containerBuilder->hasDefinition($serviceId)) {
|
||||
return $this->containerBuilder->getDefinition($serviceId);
|
||||
|
Reference in New Issue
Block a user