FactFinderWebComponentsControllerProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 7
c 2
b 1
f 1
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A defineControllers() 0 7 1
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\Plugin\Provider;
9
10
use Silex\Application;
11
use Spryker\Yves\Application\Plugin\Provider\YvesControllerProvider;
12
13
class FactFinderWebComponentsControllerProvider extends YvesControllerProvider
0 ignored issues
show
Deprecated Code introduced by
The class Spryker\Yves\Application...\YvesControllerProvider has been deprecated: Use `\Spryker\Yves\Router\Plugin\RouteProvider\AbstractRouteProviderPlugin` instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

13
class FactFinderWebComponentsControllerProvider extends /** @scrutinizer ignore-deprecated */ YvesControllerProvider
Loading history...
14
{
15
    public const ROUTE_FACT_FINDER_WEB_COMPONENTS = 'fact-finder-web-components';
16
17
    /**
18
     * @param \Silex\Application $app
19
     *
20
     * @return void
21
     */
22
    protected function defineControllers(Application $app)
23
    {
24
        $this->createController(
25
            '/fact-finder-web-components',
26
            static::ROUTE_FACT_FINDER_WEB_COMPONENTS,
27
            'fact-finder-web-components',
28
            'index'
29
        );
30
    }
31
}
32