container = $container; } /** * Add a service to the collection * * @param string $name The service name * @return null */ public function add($name) { $task = $this->container->get($name); $task->set_name($name); $this->offsetSet($name, $task); } }