private function createTag(string $body, string $name, TypeContext $context): ?Tag
    {
        $handlerClassName = $this->findHandlerClassName($name, $context);
        $arguments = $this->getArgumentsForParametersFromWiring(
            $this->fetchParametersForHandlerFactoryMethod($handlerClassName),
            $this->getServiceLocatorWithDynamicParameters($context, $name, $body)
        );

        return call_user_func_array([$handlerClassName, 'create'], $arguments);
    }
private function createTag(string $body, string $name, TypeContext $context): ?Tag
    {
        $handlerClassName = $this->findHandlerClassName($name, $context);
        $arguments = $this->getArgumentsForParametersFromWiring(
            $this->fetchParametersForHandlerFactoryMethod($handlerClassName),
            $this->getServiceLocatorWithDynamicParameters($context, $name, $body)
        );

        return call_user_func_array([$handlerClassName, 'create'], $arguments);
    }
private function createTag ( string $ body , string $ name , TypeContext $ context ) : ? Tag { $ handlerClassName = $ this -> findHandlerClassName ( $ name , $ context ) ; $ arguments = $ this -> getArgumentsForParametersFromWiring ( $ this -> fetchParametersForHandlerFactoryMethod ( $ handlerClassName ) , $ this -> getServiceLocatorWithDynamicParameters ( $ context , $ name , $ body ) ) ; return call_user_func_array ( [ $ handlerClassName , 'create' ] , $ arguments ) ; }
Creates a new tag object with the given name and body or returns null if the tag name was recognized but the
body was invalid.
Creates a new tag object with the given name and body or returns null if the tag name was recognized but the body was invalid .