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());
        }
    }