exp:checkclasses
Load every declared class and report the ones PHP refuses to load.
Script bin/php/checkclasses.php, code in kernel/private/classes/commands/checkclasses.php. Run it from the installation root, as the user the web server runs as:
./console exp:checkclasses --help
php bin/php/checkclasses.php --helpHelp text
Exponential class loader check
Loads every class this installation declares and reports the ones php refuses.
./bin/php/checkclasses.phpOptions
| Option | Value | Help |
|---|---|---|
--kernel | Check the kernel classes as well as the extension ones. Slower, and they are the ones least likely to be wrong. | |
--tests | Include classes that live under a tests directory. Left out by default: they are usually written against whichever version of phpunit was current, and a test class that will not load breaks nothing anybody is looking at. | |
--quiet-ok | Print nothing when everything loads. |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/checkclasses.php, kernel/private/classes/commands/checkclasses.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.