Completed
Pull Request — master (#358)
by Simon
04:04
created

Shopware_Controllers_Frontend_Connect   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A preDispatch() 0 6 1
A getSDK() 0 4 1
1
<?php
2
/**
3
 * (c) shopware AG <[email protected]>
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
/**
9
 * @category  Shopware
10
 * @package   Shopware\Plugins\SwagConnect
11
 * @copyright Copyright (c) 2013, shopware AG (http://www.shopware.de)
12
 * @author    Heiner Lohaus
13
 */
14
class Shopware_Controllers_Frontend_Connect extends Enlight_Controller_Action
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
15
{
16
    public function preDispatch()
17
    {
18
        $this->container->get('template')->addTemplateDir(
19
            Shopware_Plugins_Backend_SwagConnect_Bootstrap::PLUGIN_PATH . '/Views/responsive'
20
        );
21
    }
22
23
    /**
24
     * @return \Shopware\Connect\SDK
25
     */
26
    public function getSDK()
27
    {
28
        return Shopware()->Container()->get('ConnectSDK');
29
    }
30
}
31