-
Notifications
You must be signed in to change notification settings - Fork 16
/
PSR0_PSR4.php.txt
16 lines (12 loc) · 1.67 KB
/
PSR0_PSR4.php.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PSR0_PSR4
PSR-4 ==> #__autoload() standard
#Says that:
# - loading PREFIX\[...\]CLASS should resolve to BASE_DIR/[.../]CLASS.php
# - PREFIX is VENDOR\[NAMESPACES...\]
# - each vendor declare a PREFIX->BASE_DIR map (e.g. in composer.json)
# - case-sensitive
PSR-0 ==> #Deprecated version of PSR-4:
# - replace _ into / in CLASS
# - no mention of PREFIX->BASE_DIR map