src/Zicht/Bundle/UrlBundle/Aliasing/Aliaser.php
public function shouldGenerateAlias($record, array $action = ['VIEW'])
    {
        // without security, everything is considered public
        if (null === $this->decisionManager) {
            return true;
        }

        return $this->decisionManager->decide(new AnonymousToken('main', 'anonymous'), $action, $record);
    }
public function shouldGenerateAlias($record, array $action = ['VIEW'])
    {
        // without security, everything is considered public
        if (null === $this->decisionManager) {
            return true;
        }

        return $this->decisionManager->decide(new AnonymousToken('main', 'anonymous'), $action, $record);
    }
public function shouldGenerateAlias ( $ record , array $ action = [ 'VIEW' ] ) { // without security, everything is considered public if ( null === $ this -> decisionManager ) { return true ; } return $ this -> decisionManager -> decide ( new AnonymousToken ( 'main' , 'anonymous' ) , $ action , $ record ) ; }
Determines whether an alias should be generated for the given record.

@param mixed $record
@param array $action

@return bool
Determines whether an alias should be generated for the given record .