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

Removed prg() plugin, as it is now in zend-mvc-plugin-prg #104

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ for full details on how to migrate your v2 application.
component. (That component also includes console-specific routes, which were
removed from zend-router.) All service factories related to console
functionality are also now provided by zend-mvc-console.
- [#104](https://github.com/zendframework/zend-mvc/pull/104) removes the `prg()`
plugin. It can now be installed separately via the
zendframework/zend-mvc-plugin-prg package.

### Fixed

Expand Down
21 changes: 21 additions & 0 deletions doc/book/migration/to-v3-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,24 @@ ensure console tooling continues to work.
> recommend migrating your code to use standalone tools such as
> [zf-console](https://github.com/zfcampus/zf-console) or
> [Aura.Cli](https://github.com/auraphp/Aura.Cli).

## Plugins

The following plugins have been removed from the main zend-mvc repository, and
into their own standalone repositories. In all cases, please be sure to install
the [component installer as detailed above](#dependency-reduction) before
installing the plugins, to automate injection into your application
configuration.

### prg()

The `prg()` plugin is now provided via the
[zend-mvc-plugin-prg](https://github.com/zendframework/zend-mvc-plugin-prg)
component.

```bash
$ composer require zendframework/zend-mvc-plugin-prg
```

`Zend\Mvc\Controller\Plugin\PostRedirectGet` becomes
`Zend\Mvc\Plugin\Prg\PostRedirectGet`. However, it is still mapped as `prg()`.
135 changes: 0 additions & 135 deletions src/Controller/Plugin/PostRedirectGet.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/Controller/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ class PluginManager extends AbstractPluginManager
'layout' => Plugin\Layout::class,
'Params' => Plugin\Params::class,
'params' => Plugin\Params::class,
'PostRedirectGet' => Plugin\PostRedirectGet::class,
'postRedirectGet' => Plugin\PostRedirectGet::class,
'postredirectget' => Plugin\PostRedirectGet::class,
'prg' => Plugin\PostRedirectGet::class,
'Redirect' => Plugin\Redirect::class,
'redirect' => Plugin\Redirect::class,
'Url' => Plugin\Url::class,
Expand All @@ -76,7 +72,6 @@ class PluginManager extends AbstractPluginManager
Plugin\FlashMessenger::class => InvokableFactory::class,
Plugin\Layout::class => InvokableFactory::class,
Plugin\Params::class => InvokableFactory::class,
Plugin\PostRedirectGet::class => InvokableFactory::class,
Plugin\Redirect::class => InvokableFactory::class,
Plugin\Url::class => InvokableFactory::class,
Plugin\CreateHttpNotFoundModel::class => InvokableFactory::class,
Expand All @@ -90,7 +85,6 @@ class PluginManager extends AbstractPluginManager
'zendmvccontrollerpluginflashmessenger' => InvokableFactory::class,
'zendmvccontrollerpluginlayout' => InvokableFactory::class,
'zendmvccontrollerpluginparams' => InvokableFactory::class,
'zendmvccontrollerpluginpostredirectget' => InvokableFactory::class,
'zendmvccontrollerpluginredirect' => InvokableFactory::class,
'zendmvccontrollerpluginurl' => InvokableFactory::class,
'zendmvccontrollerplugincreatehttpnotfoundmodel' => InvokableFactory::class,
Expand Down
Loading