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

preDispatch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
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