Example #1
0
 /**
  * @param ContainerInterface $container
  * @return $this
  */
 public function delegate(ContainerInterface $container)
 {
     $this->delegates[] = $container;
     if ($container instanceof ContainerAwareInterface) {
         $container->setContainer($this);
     }
     return $this;
 }