Castor reference¶
Here is a reference of all the functions and attributes provided by Castor.
Functions¶
Castor provides the following built-in functions:
appcachecapturecheckcontextdecrypt_file_with_passworddecrypt_with_passwordencrypt_file_with_passwordencrypt_with_passwordexit_codefinderfingerprintfingerprint_existsfingerprint_savefsget_cacheguard_min_versionhasherhttp_clienthttp_downloadhttp_requestimportinputioload_dot_envlogloggermountnotifyopenoutputparallelrunrun_phpslugssh_downloadssh_runssh_uploadtaskvariablewait_forwait_for_docker_containerwait_for_http_responsewait_for_http_statuswait_for_portwait_for_urlwatchwithyaml_dumpyaml_parsezipzip_binaryzip_php
Vendor helpers¶
Some vendor helpers are also included natively in Castor:
Attributes¶
Castor provides the following attributes to register tasks, listener, etc:
AsArgumentAsContextAsContextGeneratorAsListenerAsOptionAsPathArgumentAsPathOptionAsRawTokensAsSymfonyTaskAsTask
Environment variables¶
Castor supports the following environment variables:
CASTOR_CACHE_DIRCASTOR_CONTEXTCASTOR_DISABLE_VERSION_CHECKCASTOR_GENERATE_STUBSCASTOR_MEMORY_LIMITin context of running PHP script, andCASTOR_MEMORY_LIMITin context of remote executionCASTOR_NO_REMOTECASTOR_USE_SECTION