src/Zicht/Bundle/MenuBundle/Url/MenuItemNameUrlProvider.php
public function supports($name)
    {
        if (!isset($this->loaded[$this->router->getContext()->getParameter('_locale')])) {
            $this->loadMappings();
            $this->loaded[$this->router->getContext()->getParameter('_locale')] = true;
        }

        return parent::supports($name);
    }
public function supports($name)
    {
        if (!isset($this->loaded[$this->router->getContext()->getParameter('_locale')])) {
            $this->loadMappings();
            $this->loaded[$this->router->getContext()->getParameter('_locale')] = true;
        }

        return parent::supports($name);
    }
public function supports ( $ name ) { if ( ! isset ( $ this -> loaded [ $ this -> router -> getContext ( ) -> getParameter ( '_locale' ) ] ) ) { $ this -> loadMappings ( ) ; $ this -> loaded [ $ this -> router -> getContext ( ) -> getParameter ( '_locale' ) ] = true ; } return parent :: supports ( $ name ) ; }
If it supports the given name

@param mixed $name
@return bool|mixed
If it supports the given name