summaryrefslogtreecommitdiffstats
path: root/zend-mvc-plugin-prg-8c7ccb9f0004e92ff258b483447d914f42cb7448/src/Module.php
blob: cc4345b55cc268effa5f371cd2ed5a4d8298377c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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,
                ],
            ],
        ];
    }
}