Failed Conditions
Pull Request — experimental/sf (#3236)
by Kentaro
48:27
created

CleanAppController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Acme\Controller;
15
16
use Eccube\Annotation\Inject;
17
use Eccube\Repository\BaseInfoRepository;
18
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
19
20
/**
21
 * @Route(path="/cleanapp", service=CleanAppController::class)
22
 */
23
class CleanAppController
24
{
25
    /**
26
     * @var BaseInfoRepository
27
     * @Inject(BaseInfoRepository::class)
28
     */
29
    protected $repository;
30
31
    /**
32
     * @Route(path="/")
33
     *
34
     * @return string
35
     */
36
    public function index()
37
    {
38
        dump($this->repository->findAll());
39
40
        return 'ok';
41
    }
42
}
43