getTag() 공개 메소드

public getTag ( $tag ) : mixed
리턴 mixed
예제 #1
0
 /**
  * @param Nette\DI\ServiceDefinition $def
  * @return string[]
  */
 protected function getServiceBoundManagers(Nette\DI\ServiceDefinition $def)
 {
     $builder = $this->getContainerBuilder();
     $boundManagers = $def->getTag(self::TAG_BIND_TO_MANAGER);
     return is_array($boundManagers) ? $boundManagers : array($builder->parameters[$this->name]['orm']['defaultEntityManager']);
 }