File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ potentially very difficult to debug due to dissimilar or unsupported package ver
63
63
- [ Grouped constants whitelisting] ( #grouped-constants-whitelisting )
64
64
- [ Composer] ( #composer-autoloader )
65
65
- [ Composer Plugins] ( #composer-plugins )
66
+ - [ PSR-0 Partial support] ( #psr-0-partial-support )
66
67
- [ Contributing] ( #contributing )
67
68
- [ Credits] ( #credits )
68
69
@@ -822,6 +823,41 @@ This cannot be changed easily so for now when you are using an isolated version
822
823
of Composer, you will need to use the ` --no-plugins ` option.
823
824
824
825
826
+ ### PSR-0 Partial support
827
+
828
+ As of now, given the following directory structure:
829
+
830
+ ```
831
+ src/
832
+ JsonMapper.php
833
+ JsonMapper/
834
+ Exception.php
835
+ ```
836
+
837
+ with the following configuration:
838
+
839
+ ``` json
840
+ {
841
+ "autoload" : {
842
+ "psr-0" : {"JsonMapper" : " src/" }
843
+ }
844
+ }
845
+ ```
846
+
847
+ The autoloading will not work. Indeed, PHP-Scoper attempts to support PSR-0 by
848
+ transforming it to PSR-4, i.e. in the case above:
849
+
850
+ ``` json
851
+ {
852
+ "autoload" : {
853
+ "psr-4" : {"PhpScoperPrefix\\ JsonMapper" : " src/" }
854
+ }
855
+ }
856
+ ```
857
+
858
+ If this will work for the classes under ` src/JsonMapper/ ` , it will not for ` JsonMapper.php ` .
859
+
860
+
825
861
## Contributing
826
862
827
863
[ Contribution Guide] ( CONTRIBUTING.md )
You can’t perform that action at this time.
0 commit comments