Skip to the content
Documentation

exp:checkclasses

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Load every declared class and report the ones PHP refuses to load

Usage

./console exp:checkclasses [options]
php bin/php/checkclasses.php [options]

Help

The output of ./console help exp:checkclasses (the script run with --help), without the standard options:

Usage: bin/php/checkclasses.php [OPTION]...
Exponential class loader check
Loads every class this installation declares and reports the ones php refuses.

./bin/php/checkclasses.php


Options:
  --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.

Options

Option Value Description
--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.

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/checkclasses.php, kernel/private/classes/commands/checkclasses.php

See also

Generated example: exp:checkclasses

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.