summaryrefslogtreecommitdiffstats
path: root/zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-06-29 13:07:06 +0200
committerRemi Collet <fedora@famillecollet.com>2016-06-29 13:07:06 +0200
commitc4a7368d043f26ad1ca510b13c112fa2ccdba74f (patch)
tree5af17a5dc3799e5ae7a7db319f22cecd00fc2e4a /zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php
php-zendframework-zend-mvc-plugin-prg: 1.0.0 (New Package)
Diffstat (limited to 'zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php')
-rw-r--r--zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php b/zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php
new file mode 100644
index 0000000..cc4345b
--- /dev/null
+++ b/zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php
@@ -0,0 +1,38 @@
+<?php
+/**
+ * @link http://github.com/zendframework/zend-mvc-plugin-prg for the canonical source repository
+ * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+namespace Zend\Mvc\Plugin\Prg;
+
+use Zend\ServiceManager\Factory\InvokableFactory;
+
+class Module
+{
+ /**
+ * Provide application configuration.
+ *
+ * Adds aliases and factories for the PostRedirectGet plugin.
+ *
+ * @return array
+ */
+ public function getConfig()
+ {
+ return [
+ 'controller_plugins' => [
+ 'aliases' => [
+ 'prg' => PostRedirectGet::class,
+ 'PostRedirectGet' => PostRedirectGet::class,
+ 'postRedirectGet' => PostRedirectGet::class,
+ 'postredirectget' => PostRedirectGet::class,
+ 'Zend\Mvc\Controller\Plugin\PostRedirectGet' => PostRedirectGet::class,
+ ],
+ 'factories' => [
+ PostRedirectGet::class => InvokableFactory::class,
+ ],
+ ],
+ ];
+ }
+}