Composer/autoloading: Difference between revisions
Created page with "MediaWiki has a full autoloading regimen that follows PSR standards<ref>https://www.mediawiki.org/wiki/Manual:$wgAutoloadClasses</ref><ref>https://www.mediawiki.org/wiki/Manual:$wgAutoloadLocalClasses</ref><ref>https://www.mediawiki.org/wiki/Manual:GenerateLocalAutoload.php</ref><ref>https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/generateLocalAutoload.php</ref><ref>https://www.mediawiki.org/wiki/Manual:AutoLoader.php</ref>. Jeroen DeDauw..." |
m tagged |
||
| Line 24: | Line 24: | ||
Due to the way PSR-0/4 autoloading rules are defined, the Composer autoloader checks the filesystem before resolving a classname conclusively. In production, Composer allows for optimization to convert the PSR-0 and PSR-4 autoloading rules into classmap rules, making autoloading quite a bit faster.<ref>https://getcomposer.org/doc/articles/autoloader-optimization.md</ref> | Due to the way PSR-0/4 autoloading rules are defined, the Composer autoloader checks the filesystem before resolving a classname conclusively. In production, Composer allows for optimization to convert the PSR-0 and PSR-4 autoloading rules into classmap rules, making autoloading quite a bit faster.<ref>https://getcomposer.org/doc/articles/autoloader-optimization.md</ref> | ||
{{References}} | {{References}} | ||
[[Category:Development]] | |||
[[Category:Tools]] | |||
[[Category:PHP]] | |||