src/Koldy/Application.php
public static function getKey(): string
    {
        $key = static::getConfig('application')->get('key');

        if ($key === null || $key === '') {
            throw new ApplicationException('The key \'key\' in application config is invalid; please set non-empty string there');
        }

        if ($key == '_____ENTERSomeRandomKeyHere_____') {
            throw new ApplicationException('Please configure key \'key\' in main application config, it can\'t be _____ENTERSomeRandomKeyHere_____');
        }

        if (strlen($key) > 32) {
            throw new ApplicationException('Please make sure your application key in application config is not longer then 32 chars');
        }

        return $key;
    }
public static function getKey(): string
    {
        $key = static::getConfig('application')->get('key');

        if ($key === null || $key === '') {
            throw new ApplicationException('The key \'key\' in application config is invalid; please set non-empty string there');
        }

        if ($key == '_____ENTERSomeRandomKeyHere_____') {
            throw new ApplicationException('Please configure key \'key\' in main application config, it can\'t be _____ENTERSomeRandomKeyHere_____');
        }

        if (strlen($key) > 32) {
            throw new ApplicationException('Please make sure your application key in application config is not longer then 32 chars');
        }

        return $key;
    }
public static function getKey ( ) : string { $ key = static :: getConfig ( 'application' ) -> get ( 'key' ) ; if ( $ key === null || $ key === '' ) { throw new ApplicationException ( 'The key \'key\' in application config is invalid; please set non-empty string there' ) ; } if ( $ key == '_____ENTERSomeRandomKeyHere_____' ) { throw new ApplicationException ( 'Please configure key \'key\' in main application config, it can\'t be _____ENTERSomeRandomKeyHere_____' ) ; } if ( strlen ( $ key ) > 32 ) { throw new ApplicationException ( 'Please make sure your application key in application config is not longer then 32 chars' ) ; } return $ key ; }
Get the key defined in application config

@return string
@throws Exception
Get the key defined in application config