Legacy PHP: Difference between revisions

From Rixort Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
PSR-0 autoloading uses file and class naming conventions to map a class to a file path.
PSR-0 autoloading uses file and class naming conventions to map a class to a file path.


Vendor\Package_Name\Class_Name
<code>Vendor\Package_Name\Class_Name</code> maps to: <code>Vendor/Package_Name/Class/Name.php</code>
Vendor/Package_Name/Class/Name.php


[[Category:PHP]]
[[Category:PHP]]

Revision as of 18:42, 24 March 2020

Converting classes to PSR-0

PSR-0 autoloading uses file and class naming conventions to map a class to a file path.

Vendor\Package_Name\Class_Name maps to: Vendor/Package_Name/Class/Name.php