PHP Class Altax\Script\ScriptHandler

Show file Open project: kohkimakimoto/altax Class Usage Examples

Public Properties

Property Type Description
$autoloadBaseDir

Public Methods

Method Description
removeAutoloadFiles ( ) : [type] remove autoload configuration in autoload_files.php generated by composer.

Method Details

removeAutoloadFiles() public static method

autoload_files.php includes '/phpseclib/phpseclib/phpseclib/Crypt/Random.php'. and composer autoloader defines crypt_random_string function at initialize process. If you load phpseclib in a altax task configuration files (ex .altax/config.php) using composer autoloading. You will get a error PHP Fatal error: Cannot redeclare crypt_random_string(). In order to prevent the error. remove this settings.
public static removeAutoloadFiles ( ) : [type]
return [type]

Property Details

$autoloadBaseDir public static property

public static $autoloadBaseDir