示例#1
0
 private function callOnActivated($object, IResolver $resolver)
 {
     if (!$this->onActivated) {
         return;
     }
     $handler = $this->onActivated;
     $handler($object, $resolver->getContainer());
 }
示例#2
0
 public function resolve(IResolver $container)
 {
     return $container->resolveWith('Name: ' . $this->targetName, DirectTransformer::def());
 }
示例#3
0
 public function resolve(IResolver $container, ITransformer $transformer, $parameters)
 {
     return $container->resolveWith($this->target, $transformer, $parameters);
 }