IndexController::indexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 3
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Yves\FactFinderWebComponents\Controller;
9
10
use Spryker\Yves\Kernel\Controller\AbstractController;
11
use Spryker\Yves\Kernel\View\View;
12
13
/**
14
 * @method \SprykerEco\Yves\FactFinderWebComponents\FactFinderWebComponentsConfig getConfig()
15
 * @method \SprykerEco\Yves\FactFinderWebComponents\FactFinderWebComponentsFactory getFactory()
16
 */
17
class IndexController extends AbstractController
18
{
19
    /**
20
     * @return \Spryker\Yves\Kernel\View\View
21
     */
22
    public function indexAction(): View
23
    {
24
        return $this->view(
25
            $this->getFactory()->createWebComponentsConfigBuilder()->build(),
26
            [],
27
            '@FactFinderWebComponents/views/index/index.twig'
28
        );
29
    }
30
}
31