Skip to content

Commit

Permalink
Updated to zend-expressive 0.5
Browse files Browse the repository at this point in the history
Updates to zend-expressive 0.5, which separates the various routers and template
renderers into dedicated packages. This patch also updates the composer
installer to reference the new packages to ensure installation works as
expected.

Initial smoke tests show the approach works!
  • Loading branch information
weierophinney committed Oct 11, 2015
1 parent 97adc2f commit 2ba40c2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"roave/security-advisories": "dev-master",
"zendframework/zend-expressive": "^0.4"
"zendframework/zend-expressive": "^0.5"
},
"require-dev": {
"composer/composer": ">=1.0.0-alpha10",
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Resources/config/templates-plates.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Zend\Expressive\Container\TemplatedErrorHandlerFactory::class,

Zend\Expressive\Template\TemplateRendererInterface::class =>
Zend\Expressive\Container\Template\PlatesRendererFactory::class,
Zend\Expressive\Plates\PlatesRendererFactory::class,
],
],

Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Resources/config/templates-twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Zend\Expressive\Container\TemplatedErrorHandlerFactory::class,

Zend\Expressive\Template\TemplateRendererInterface::class =>
Zend\Expressive\Container\Template\TwigRendererFactory::class,
Zend\Expressive\Twig\TwigRendererFactory::class,
],
],

Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Resources/config/templates-zend-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Zend\Expressive\Container\TemplatedErrorHandlerFactory::class,

Zend\Expressive\Template\TemplateRendererInterface::class =>
Zend\Expressive\Container\Template\ZendViewRendererFactory::class,
Zend\Expressive\ZendView\ZendViewRendererFactory::class,
],
],

Expand Down
40 changes: 17 additions & 23 deletions src/Composer/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

return [
'packages' => [
'aura/di' => '3.0.*@beta',
'aura/router' => '^2.3',
'filp/whoops' => '^1.1',
'league/plates' => '^3.1',
'mouf/pimple-interop' => '^1.0',
'nikic/fast-route' => '^0.6.0',
'ocramius/proxy-manager' => '^1.0',
'twig/twig' => '^1.21',
'zendframework/zend-filter' => '^2.5',
'zendframework/zend-i18n' => '^2.5',
'zendframework/zend-mvc' => '^2.5',
'zendframework/zend-psr7bridge' => '^0.1.0',
'zendframework/zend-servicemanager' => '^2.5',
'zendframework/zend-view' => '^2.5',
'aura/di' => '3.0.*@beta',
'filp/whoops' => '^1.1',
'mouf/pimple-interop' => '^1.0',
'ocramius/proxy-manager' => '^1.0',
'zendframework/zend-expressive-aurarouter' => '^0.1',
'zendframework/zend-expressive-fastroute' => '^0.1',
'zendframework/zend-expressive-platesrenderer' => '^0.1',
'zendframework/zend-expressive-twigrenderer' => '^0.1',
'zendframework/zend-expressive-zendrouter' => '^0.1',
'zendframework/zend-expressive-zendviewrenderer' => '^0.1',
'zendframework/zend-servicemanager' => '^2.5',
],

'require-dev' => [
Expand All @@ -36,7 +33,7 @@
1 => [
'name' => 'Aura.Router',
'packages' => [
'aura/router',
'zendframework/zend-expressive-aurarouter',
],
'copy-files' => [
// Copy source file to target: '<source>' => '<target>'
Expand All @@ -46,7 +43,7 @@
2 => [
'name' => 'FastRoute',
'packages' => [
'nikic/fast-route',
'zendframework/zend-expressive-fastroute',
],
'copy-files' => [
'/Resources/config/routes-fast-route.php' => '/config/autoload/routes.global.php',
Expand All @@ -55,8 +52,7 @@
3 => [
'name' => 'Zend Router',
'packages' => [
'zendframework/zend-mvc',
'zendframework/zend-psr7bridge',
'zendframework/zend-expressive-zendrouter',
],
'copy-files' => [
'/Resources/config/routes-zf2-router.php' => '/config/autoload/routes.global.php',
Expand Down Expand Up @@ -112,7 +108,7 @@
1 => [
'name' => 'Plates',
'packages' => [
'league/plates',
'zendframework/zend-expressive-platesrenderer',
],
'copy-files' => [
'/Resources/config/templates-plates.php' => '/config/autoload/templates.global.php',
Expand All @@ -125,7 +121,7 @@
2 => [
'name' => 'Twig',
'packages' => [
'twig/twig',
'zendframework/zend-expressive-twigrenderer',
],
'copy-files' => [
'/Resources/config/templates-twig.php' => '/config/autoload/templates.global.php',
Expand All @@ -138,10 +134,8 @@
3 => [
'name' => 'Zend View <comment>installs Zend ServiceManager</comment>',
'packages' => [
'zendframework/zend-view',
'zendframework/zend-filter',
'zendframework/zend-expressive-zendviewrenderer',
'zendframework/zend-i18n',
'zendframework/zend-servicemanager',
],
'copy-files' => [
'/Resources/config/templates-zend-view.php' => '/config/autoload/templates.global.php',
Expand Down

0 comments on commit 2ba40c2

Please sign in to comment.