Documentation

autoload.php

Autoloads files for PHP_CodeSniffer and tracks what has been loaded.

Due to different namespaces being used for custom coding standards, the autoloader keeps track of what class is loaded after a file is included, even if the file is ultimately included by another autoloader (such as composer).

This allows PHP_CodeSniffer to request the class name after loading a class when it only knows the filename, without having to parse the file to find it.

Tags
author

Greg Sherwood gsherwood@squiz.net

copyright

2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)

license

https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Interfaces, Classes and Traits

Autoload

Search results