Symfony\Component\Templating\PhpEngine::get PHP Метод

get() публичный Метод

Gets a helper value.
public get ( string $name ) : Symfony\Component\Templating\Helper\HelperInterface
$name string The helper name
Результат Symfony\Component\Templating\Helper\HelperInterface The helper instance
    public function get($name)
    {
        if (!isset($this->helpers[$name])) {
            throw new \InvalidArgumentException(sprintf('The helper "%s" is not defined.', $name));
        }

        return $this->helpers[$name];
    }

Usage Example

 protected function setTheme(FormView $view, array $themes)
 {
     $this->engine->get('form')->setTheme($view, $themes);
 }