1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/11257] Do not require set_name() method to exist

To use Service Collection

PHPBB3-11257
This commit is contained in:
Nathan Guse
2012-12-07 21:23:20 -06:00
parent b7b8fefdd0
commit 8a28271dd5
2 changed files with 17 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ class phpbb_di_service_collection extends ArrayObject
public function add($name)
{
$task = $this->container->get($name);
$task->set_name($name);
$this->offsetSet($name, $task);
}
}