public static function generateSecretKey()
    {
        // make parameters file if not exists
        touch(self::getRootDir().'/config/parameters.yml');

        /* @var $manipulator Parameters */
        $manipulator = self::getContainer()->getManipulator('parameters');
        if (!$manipulator->get('secret')) {
            $manipulator->set('secret', SecretKey::generate());
        }
    }
public static function generateSecretKey()
    {
        // make parameters file if not exists
        touch(self::getRootDir().'/config/parameters.yml');

        /* @var $manipulator Parameters */
        $manipulator = self::getContainer()->getManipulator('parameters');
        if (!$manipulator->get('secret')) {
            $manipulator->set('secret', SecretKey::generate());
        }
    }
public static function generateSecretKey ( ) { // make parameters file if not exists touch ( self :: getRootDir ( ) . '/config/parameters.yml' ) ; /* @var $manipulator Parameters */ $ manipulator = self :: getContainer ( ) -> getManipulator ( 'parameters' ) ; if ( ! $ manipulator -> get ( 'secret' ) ) { $ manipulator -> set ( 'secret' , SecretKey :: generate ( ) ) ; } }
Make a unique secret key.
Make a unique secret key .