Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/composer-installer-ns' into develop
Browse files Browse the repository at this point in the history
Forward port #40
  • Loading branch information
weierophinney committed Dec 9, 2015
2 parents 1ff4740 + 65b747b commit 3a45a32
Show file tree
Hide file tree
Showing 29 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Fourth release candidate.
as pipeline middleware; this fixes an issue when using the zend-view renderer
with the `url()` helper whereby the `UrlHelper` was being registered as a
route result observer too late to receive the `RouteResult`.
- [#40](https://github.com/zendframework/zend-expressive-skeleton/pull/40)
renames the namespace for the installer to `ExpressiveInstaller`.

## 1.0.0rc3 - 2015-12-07

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"autoload": {
"psr-4": {
"App\\": "src/App/"
"App\\": "src/App/",
"ExpressiveInstaller\\": "src/ExpressiveInstaller/"
}
},
"autoload-dev": {
Expand All @@ -38,8 +39,8 @@
}
},
"scripts": {
"pre-install-cmd": "App\\Composer\\OptionalPackages::install",
"pre-update-cmd": "App\\Composer\\OptionalPackages::install",
"pre-install-cmd": "ExpressiveInstaller\\OptionalPackages::install",
"pre-update-cmd": "ExpressiveInstaller\\OptionalPackages::install",
"check": [
"@cs",
"@test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @license https://github.com/zendframework/zend-expressive-skeleton/blob/master/LICENSE.md New BSD License
*/

namespace App\Composer;
namespace ExpressiveInstaller;

use Composer\Composer;
use Composer\Factory;
Expand All @@ -28,8 +28,8 @@
* Add this script to composer.json:
*
* "scripts": {
* "pre-update-cmd": "App\\Composer\\OptionalPackages::install",
* "pre-install-cmd": "App\\Composer\\OptionalPackages::install"
* "pre-update-cmd": "ExpressiveInstaller\\OptionalPackages::install",
* "pre-install-cmd": "ExpressiveInstaller\\OptionalPackages::install"
* },
*/
class OptionalPackages
Expand Down Expand Up @@ -178,6 +178,9 @@ public static function install(Event $event)
unset(self::$composerDefinition['scripts']);
}

// Remove installer script autoloading rules
unset(self::$composerDefinition['autoload']['psr-4']['ExpressiveInstaller\\']);

// Update composer definition
$json->write(self::$composerDefinition);

Expand Down
File renamed without changes.

0 comments on commit 3a45a32

Please sign in to comment.