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
6363 - [ Grouped constants whitelisting] ( #grouped-constants-whitelisting )
6464 - [ Composer] ( #composer-autoloader )
6565 - [ Composer Plugins] ( #composer-plugins )
66+ - [ PSR-0 Partial support] ( #psr-0-partial-support )
6667- [ Contributing] ( #contributing )
6768- [ Credits] ( #credits )
6869
@@ -822,6 +823,41 @@ This cannot be changed easily so for now when you are using an isolated version
822823 of Composer, you will need to use the ` --no-plugins ` option.
823824
824825
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+
825861## Contributing
826862
827863[ Contribution Guide] ( CONTRIBUTING.md )
You can’t perform that action at this time.
0 commit comments