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

Commit f3e0705

Browse files
committed
Removed prg() plugin, as it is now in zend-mvc-plugin-prg
This patch removes `Zend\Mvc\Controller\Plugin\PostRedirectGet`, as it is now available via the [zend-mvc-plugin-prg](https://zendframework.github.io/zend-mvc-plugin-prg) package.
1 parent ae7eb06 commit f3e0705

File tree

4 files changed

+21
-382
lines changed

4 files changed

+21
-382
lines changed

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)