mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8923 from christopherdarling/patch-13
DOCS composer autoload examples should be psr-4
This commit is contained in:
commit
b17526edbf
@ -140,7 +140,7 @@ You can do this manually:
|
|||||||
- }
|
- }
|
||||||
+ },
|
+ },
|
||||||
+ "autoload": {
|
+ "autoload": {
|
||||||
+ "psr4": {
|
+ "psr-4": {
|
||||||
+ "ExampleUser\\SilverstripeExampleModule\\": "code/",
|
+ "ExampleUser\\SilverstripeExampleModule\\": "code/",
|
||||||
+ "ExampleUser\\SilverstripeExampleModule\\Tests\\": "tests/"
|
+ "ExampleUser\\SilverstripeExampleModule\\Tests\\": "tests/"
|
||||||
+ }
|
+ }
|
||||||
@ -270,12 +270,12 @@ You'll need to update your module's `composer.json` file with an `extra.expose`
|
|||||||
"silverstripe/vendor-plugin": "^1"
|
"silverstripe/vendor-plugin": "^1"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr4": {
|
"psr-4": {
|
||||||
"ExampleUser\\SilverstripeExampleModule\\": "code/"
|
"ExampleUser\\SilverstripeExampleModule\\": "code/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr4": {
|
"psr-4": {
|
||||||
"ExampleUser\\SilverstripeExampleModule\\Tests\\": "tests/"
|
"ExampleUser\\SilverstripeExampleModule\\Tests\\": "tests/"
|
||||||
}
|
}
|
||||||
- }
|
- }
|
||||||
|
Loading…
Reference in New Issue
Block a user