Completed
Push — master ( 56bbbc...171c63 )
by Andreas
9s
created

Module.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * Copyright (c) 2011-2012 Andreas Heigl<[email protected]>
4
 *
5
 * Permission is hereby granted, free of charge, to any person obtaining a copy
6
 * of this software and associated documentation files (the "Software"), to deal
7
 * in the Software without restriction, including without limitation the rights
8
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
 * copies of the Software, and to permit persons to whom the Software is
10
 * furnished to do so, subject to the following conditions:
11
 *
12
 * The above copyright notice and this permission notice shall be included in
13
 * all copies or substantial portions of the Software.
14
 *
15
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
 * THE SOFTWARE.
22
 *
23
 * @category  MailProxy
24
 * @package   OrgHeiglMailproxy
25
 * @author    Andreas Heigl<[email protected]>
26
 * @copyright 2011-2012 Andreas Heigl
27
 * @license   http://www.opesource.org/licenses/mit-license.php MIT-License
28
 * @version   0.0
29
 * @since     06.03.2012
30
 * @link      http://github.com/heiglandreas/mailproxyModule
31
 */
32
33
namespace OrgHeiglGeolocation;
34
35
/**
36
 * The Module-Provider
37
 *
38
 * @category  Geolocation
39
 * @author    Andreas Heigl<[email protected]>
40
 * @copyright 2011-2012 Andreas Heigl
41
 * @license   http://www.opesource.org/licenses/mit-license.php MIT-License
42
 * @version   0.0
43
 * @since     06.03.2012
44
 * @link      http://github.com/heiglandreas/HybridAuth
45
 */
46
class Module
47
{
48
//    public function getConfig()
0 ignored issues
show
Unused Code Comprehensibility introduced by
43% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
49
//    {
50
//    	return include __DIR__ . '/config/module.config.php';
51
//    }
52
//
53
    public function getAutoloaderConfig()
54
    {
55
    	return array(
56
    			'Zend\Loader\StandardAutoloader' => array(
57
    					'namespaces' => array(
58
    							__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
59
    					),
60
    			),
61
    	);
62
    }
63
64
    /**
65
     * Expected to return \Zend\ServiceManager\Config object or array to
66
     * seed such an object.
67
     *
68
     * @return array|\Zend\ServiceManager\Config
69
     */
70
    public function getServiceConfig()
71
    {
72
        return array(
73
            'factories' => array(
74
                'org_heigl_geolocation.renderer' => 'OrgHeiglGeolocation\Service\GeolocationRendererFactory',
75
                'org_heigl_geolocation.renderer.geolocation' => 'OrgHeiglGeolocation\Service\GeolocationRendererFactory',
76
            ),
77
            'invokables' => array(
78
                'org_heigl_geolocation.formelement' => 'OrgHeiglGeolocation\View\Helper\Geolocation',
79
80
            ),
81
        );
82
    }
83
84
    /**
85
     * Returns configuration to merge with application configuration
86
     *
87
     * @return array|\Traversable
88
     */
89
    public function getConfig()
90
    {
91
        return include __DIR__ . '/config/module.config.php';
92
    }
93
94
    public function getViewHelperConfig()
95
    {
96
        return array(
97
            'invokables' => array(
98
                'org_heigl_geolocation.formelement' => 'OrgHeiglGeolocation\Form\View\Helper\Geolocation',
99
            ),
100
            'factories' => array(
101
                'formelement'     => 'OrgHeiglGeolocation\Service\FormElementFactory',
102
            ),
103
        );
104
    }
105
}
106