Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function get(Definition $definition, Container $container)
 {
     if (!$this->resolved) {
         $this->result = $definition->resolve($container);
         $this->resolved = true;
     }
     return $this->result;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function get(Definition $definition, Container $container)
 {
     return $definition->resolve($container);
 }