public function setAllScopes()
    {
        $scopes = array();
        $reflectionClass = new \ReflectionClass(__CLASS__);
        foreach ($reflectionClass->getConstants() as $constantName => $constantValue) {
            if (strpos($constantName, 'SCOPE_') !== false) {
                $scopes = $constantValue;
            }
        }

        $this->setScopes($scopes);
    }
public function setAllScopes()
    {
        $scopes = array();
        $reflectionClass = new \ReflectionClass(__CLASS__);
        foreach ($reflectionClass->getConstants() as $constantName => $constantValue) {
            if (strpos($constantName, 'SCOPE_') !== false) {
                $scopes = $constantValue;
            }
        }

        $this->setScopes($scopes);
    }
public function setAllScopes ( ) { $ scopes = array ( ) ; $ reflectionClass = new \ ReflectionClass ( __CLASS__ ) ; foreach ( $ reflectionClass -> getConstants ( ) as $ constantName => $ constantValue ) { if ( strpos ( $ constantName , 'SCOPE_' ) !== false ) { $ scopes = $ constantValue ; } } $ this -> setScopes ( $ scopes ) ; }
Sets all permissions, which user will be asked for during authentication process
Sets all permissions which user will be asked for during authentication process