Skip to content

Commit

Permalink
[DependencyInjection] format the tags in the findTaggedServiceIds met…
Browse files Browse the repository at this point in the history
…hod of the PhpDumper
  • Loading branch information
pablodip authored and fabpot committed Nov 30, 2010
1 parent 6e18a2c commit 314d3d0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 23 deletions.
Expand Up @@ -240,7 +240,7 @@ protected function addTags()
$tags[$name][$id] = $ann;
}
}
$tags = var_export($tags, true);
$tags = $this->exportParameters($tags);

return <<<EOF
Expand Down
Expand Up @@ -32,8 +32,9 @@ public function __construct()
*/
public function findTaggedServiceIds($name)
{
static $tags = array (
);
static $tags = array(

);

return isset($tags[$name]) ? $tags[$name] : array();
}
Expand Down
Expand Up @@ -32,8 +32,9 @@ public function __construct()
*/
public function findTaggedServiceIds($name)
{
static $tags = array (
);
static $tags = array(

);

return isset($tags[$name]) ? $tags[$name] : array();
}
Expand Down
Expand Up @@ -32,8 +32,9 @@ public function __construct()
*/
public function findTaggedServiceIds($name)
{
static $tags = array (
);
static $tags = array(

);

return isset($tags[$name]) ? $tags[$name] : array();
}
Expand Down
Expand Up @@ -141,22 +141,18 @@ protected function getAliasForFooService()
*/
public function findTaggedServiceIds($name)
{
static $tags = array (
'foo' =>
array (
'foo' =>
array (
0 =>
array (
'foo' => 'foo',
),
1 =>
array (
'bar' => 'bar',
),
),
),
);
static $tags = array(
'foo' => array(
'foo' => array(
0 => array(
'foo' => 'foo',
),
1 => array(
'bar' => 'bar',
),
),
),
);

return isset($tags[$name]) ? $tags[$name] : array();
}
Expand Down

0 comments on commit 314d3d0

Please sign in to comment.