summaryrefslogtreecommitdiffstats
path: root/zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php
diff options
context:
space:
mode:
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,
+ ],
+ ],
+ ];
+ }
+}