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