User Tools

Site Tools


en:dev:all:psr:psr-0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dev:all:psr:psr-0 [25.05.2015 18:13] – en:dev:all:psr:psr-0de renamed to en:dev:all:psr:psr-0 (sort) Manuela v.d.Deckenen:dev:all:psr:psr-0 [28.12.2018 23:23] (current) – [Autoloading Standard] Manuela v.d.Decken
Line 2: Line 2:
 ====== Autoloading Standard ====== ====== Autoloading Standard ======
  
 +<span important>As of 2014-10-21 PSR-0 has been marked as deprecated. PSR-4 is now recommended as an alternative.</span>
 The following describes the mandatory requirements that must be adhered to for autoloader interoperability. The following describes the mandatory requirements that must be adhered to for autoloader interoperability.
  
Line 9: Line 10:
   * Each namespace can have as many sub-namespaces as it wishes.   * Each namespace can have as many sub-namespaces as it wishes.
   * Each namespace separator is converted to a DIRECTORY_SEPARATOR when loading from the file system.   * Each namespace separator is converted to a DIRECTORY_SEPARATOR when loading from the file system.
-  * Each **_** character in the CLASS NAME is converted to a DIRECTORY_SEPARATOR. :!: //Adaptation for WB:// The **_** has no special meaning in the __normal__ definition of a namespace, with pseudo-namespaces (see [[en:dev:all:psr-1de|PSR-1]]) it will be converted to a DIRECTORY_SEPERATOR which forbids in this case, folder and file names containing **_**.+  * Each **_** character in the CLASS NAME is converted to a DIRECTORY_SEPARATOR. :!: //Adaptation for WB:// The **_** has no special meaning in the __normal__ definition of a namespace, with pseudo-namespaces (see [[en:dev:all:psr:psr-1|PSR-1]]) it will be converted to a DIRECTORY_SEPERATOR which forbids in this case, folder and file names containing **_**.
   * The fully-qualified namespace and class is suffixed with **.php** when loading from the file system.   * The fully-qualified namespace and class is suffixed with **.php** when loading from the file system.
-  * Alphabetic characters (AZ) in vendor names, namespaces and classes can be any combination of uppercase and lowercase letters. :!: In [[en:dev:all:psr-1de|PSR-1]] this will be further restricted!+  * Alphabetic characters (AZ) in vendor names, namespaces and classes can be any combination of uppercase and lowercase letters. :!: In [[en:dev:all:psr:psr-1|PSR-1]] this will be further restricted!
  
  
en/dev/all/psr/psr-0.1432577615.txt.gz · Last modified: 03.06.2015 15:55 (external edit)