protected function _afterEntityInstantiate(AnConfig $config)
    {
        $settings = $this->getService('com:settings.setting');

        $config->append(array(
            'data' => array(
                'value' => hash('sha256', str_shuffle($settings->secret.((string) (int) microtime(true))))
            )
        ));
    }
protected function _afterEntityInstantiate(AnConfig $config)
    {
        $settings = $this->getService('com:settings.setting');

        $config->append(array(
            'data' => array(
                'value' => hash('sha256', str_shuffle($settings->secret.((string) (int) microtime(true))))
            )
        ));
    }
protected function _afterEntityInstantiate ( AnConfig $ config ) { $ settings = $ this -> getService ( 'com:settings.setting' ) ; $ config -> append ( array ( 'data' => array ( 'value' => hash ( 'sha256' , str_shuffle ( $ settings -> secret . ( ( string ) ( int ) microtime ( true ) ) ) ) ) ) ) ; }
Generate a default token.

@param AnConfig $config
Generate a default token .