Skip to content

Commit

Permalink
Merge pull request #40 from reactphp-parallel/custom-overrides-from-c…
Browse files Browse the repository at this point in the history
…omposer-json

Gather custom overrides from composer.json
  • Loading branch information
WyriHaximus committed Apr 17, 2021
2 parents 988ffdb + d68932f commit e0bf389
Show file tree
Hide file tree
Showing 11 changed files with 337 additions and 61 deletions.
9 changes: 8 additions & 1 deletion composer-require-checker.json
Expand Up @@ -7,7 +7,14 @@
"WyriHaximus\\Constants\\Numeric\\ZERO", "WyriHaximus\\getIn", "WyriHaximus\\Constants\\Numeric\\TWO",
"Composer\\Composer", "Composer\\Config", "Composer\\IO\\IOInterface", "Composer\\Script\\Event",
"Composer\\EventDispatcher\\EventSubscriberInterface", "Composer\\Package\\RootPackageInterface",
"Composer\\Plugin\\PluginInterface", "Composer\\Script\\ScriptEvents"
"Composer\\Plugin\\PluginInterface", "Composer\\Script\\ScriptEvents",
"WyriHaximus\\Constants\\Boolean\\FALSE_", "WyriHaximus\\Constants\\Boolean\\TRUE_",
"WyriHaximus\\Constants\\Numeric\\ZERO", "WyriHaximus\\getIn", "WyriHaximus\\Constants\\Numeric\\TWO",
"Composer\\Composer", "Composer\\Config", "Composer\\IO\\IOInterface", "Composer\\Script\\Event",
"Composer\\EventDispatcher\\EventSubscriberInterface", "Composer\\Package\\RootPackageInterface",
"Composer\\Plugin\\PluginInterface", "Composer\\Script\\ScriptEvents", "WyriHaximus\\iteratorOrArrayToArray",
"Safe\\chmod", "Safe\\file_get_contents", "Safe\\file_put_contents", "Safe\\sprintf", "Safe\\spl_autoload_register",
"Safe\\substr", "Safe\\mkdir"
],
"php-core-extensions" : [
"Core",
Expand Down
15 changes: 14 additions & 1 deletion composer.json
@@ -1,5 +1,6 @@
{
"name": "react-parallel/psr-11-container-proxy",
"type": "composer-plugin",
"description": "\ud83d\udef0\ud83d\ude80\ud83d\udef8 PSR-11 container proxy",
"license": "MIT",
"authors": [
Expand All @@ -11,8 +12,11 @@
],
"require": {
"php": "^7.4",
"composer-plugin-api": "^2",
"illuminate/collections": "^8.18",
"psr/container": "^1.0",
"react-parallel/object-proxy": "dev-master"
"react-parallel/object-proxy": "dev-master",
"wyrihaximus/string-get-in": "^1.0"
},
"require-dev": {
"monolog/monolog": "^2.1",
Expand All @@ -27,11 +31,17 @@
"sort-packages": true
},
"extra": {
"class": "ReactParallel\\Psr11ContainerProxy\\Composer\\Installer",
"react-parallel": {
"object-proxy": {
"interfaces-to-proxy": [
"Psr\\Container\\ContainerInterface"
]
},
"psr-11-container-proxy": {
"custom-overrides": [
"react-parallel.psr-11-container-proxy.dummy"
]
}
}
},
Expand All @@ -53,6 +63,9 @@
],
"post-update-cmd": [
"composer normalize"
],
"pre-autoload-dump": [
"ReactParallel\\Psr11ContainerProxy\\Composer\\Installer::locateCustomOverrides"
]
}
}
111 changes: 56 additions & 55 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e0bf389

Please sign in to comment.