public function load($nameOrPath)
    {
        $template = $this->factory->get($nameOrPath);

        /** @var Transformation $transformation */
        foreach ($template as $transformation) {
            /** @var WriterAbstract $writer */
            $writer = $this->writerCollection[$transformation->getWriter()];
            if ($writer) {
                $writer->checkRequirements();
            }
        }

        $this[$template->getName()] = $template;
    }
public function load($nameOrPath)
    {
        $template = $this->factory->get($nameOrPath);

        /** @var Transformation $transformation */
        foreach ($template as $transformation) {
            /** @var WriterAbstract $writer */
            $writer = $this->writerCollection[$transformation->getWriter()];
            if ($writer) {
                $writer->checkRequirements();
            }
        }

        $this[$template->getName()] = $template;
    }
public function load ( $ nameOrPath ) { $ template = $ this -> factory -> get ( $ nameOrPath ) ; /** @var Transformation $transformation */ foreach ( $ template as $ transformation ) { /** @var WriterAbstract $writer */ $ writer = $ this -> writerCollection [ $ transformation -> getWriter ( ) ] ; if ( $ writer ) { $ writer -> checkRequirements ( ) ; } } $ this [ $ template -> getName ( ) ] = $ template ; }
Loads a template with the given name or file path.

@param string $nameOrPath
Loads a template with the given name or file path .