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

Commit 5ce0e12

Browse files
committed
Merge branch 'feature/prg-removal' into develop
Close #104
2 parents ae7eb06 + f1002ae commit 5ce0e12

File tree

5 files changed

+24
-382
lines changed

5 files changed

+24
-382
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ for full details on how to migrate your v2 application.
3333
component. (That component also includes console-specific routes, which were
3434
removed from zend-router.) All service factories related to console
3535
functionality are also now provided by zend-mvc-console.
36+
- [#104](https://github.com/zendframework/zend-mvc/pull/104) removes the `prg()`
37+
plugin. It can now be installed separately via the
38+
zendframework/zend-mvc-plugin-prg package.
3639

3740
### Fixed
3841

doc/book/migration/to-v3-0.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,24 @@ ensure console tooling continues to work.
7777
> recommend migrating your code to use standalone tools such as
7878
> [zf-console](https://github.com/zfcampus/zf-console) or
7979
> [Aura.Cli](https://github.com/auraphp/Aura.Cli).
80+
81+
## Plugins
82+
83+
The following plugins have been removed from the main zend-mvc repository, and
84+
into their own standalone repositories. In all cases, please be sure to install
85+
the [component installer as detailed above](#dependency-reduction) before
86+
installing the plugins, to automate injection into your application
87+
configuration.
88+
89+
### prg()
90+
91+
The `prg()` plugin is now provided via the
92+
[zend-mvc-plugin-prg](https://github.com/zendframework/zend-mvc-plugin-prg)
93+
component.
94+
95+
```bash
96+
$ composer require zendframework/zend-mvc-plugin-prg
97+
```
98+
99+
`Zend\Mvc\Controller\Plugin\PostRedirectGet` becomes
100+
`Zend\Mvc\Plugin\Prg\PostRedirectGet`. However, it is still mapped as `prg()`.

src/Controller/Plugin/PostRedirectGet.php

Lines changed: 0 additions & 135 deletions
This file was deleted.

src/Controller/PluginManager.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ class PluginManager extends AbstractPluginManager
5252
'layout' => Plugin\Layout::class,
5353
'Params' => Plugin\Params::class,
5454
'params' => Plugin\Params::class,
55-
'PostRedirectGet' => Plugin\PostRedirectGet::class,
56-
'postRedirectGet' => Plugin\PostRedirectGet::class,
57-
'postredirectget' => Plugin\PostRedirectGet::class,
58-
'prg' => Plugin\PostRedirectGet::class,
5955
'Redirect' => Plugin\Redirect::class,
6056
'redirect' => Plugin\Redirect::class,
6157
'Url' => Plugin\Url::class,
@@ -76,7 +72,6 @@ class PluginManager extends AbstractPluginManager
7672
Plugin\FlashMessenger::class => InvokableFactory::class,
7773
Plugin\Layout::class => InvokableFactory::class,
7874
Plugin\Params::class => InvokableFactory::class,
79-
Plugin\PostRedirectGet::class => InvokableFactory::class,
8075
Plugin\Redirect::class => InvokableFactory::class,
8176
Plugin\Url::class => InvokableFactory::class,
8277
Plugin\CreateHttpNotFoundModel::class => InvokableFactory::class,
@@ -90,7 +85,6 @@ class PluginManager extends AbstractPluginManager
9085
'zendmvccontrollerpluginflashmessenger' => InvokableFactory::class,
9186
'zendmvccontrollerpluginlayout' => InvokableFactory::class,
9287
'zendmvccontrollerpluginparams' => InvokableFactory::class,
93-
'zendmvccontrollerpluginpostredirectget' => InvokableFactory::class,
9488
'zendmvccontrollerpluginredirect' => InvokableFactory::class,
9589
'zendmvccontrollerpluginurl' => InvokableFactory::class,
9690
'zendmvccontrollerplugincreatehttpnotfoundmodel' => InvokableFactory::class,

0 commit comments

Comments
 (0)