private function applyAliases(ContainerInterface $container, MethodReflector $method) { $docblock = $method->getDocBlock(); $aliases = []; if ($docblock->hasTag(self::DOC_TAG_ALIAS)) { foreach ($docblock->getTag(self::DOC_TAG_ALIAS) as $tag) { $aliases[] = $tag->value(); } } $container->setAliases($method->getName(), $aliases); }