These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the Sonata Project package. |
||
5 | * |
||
6 | * (c) Thomas Rabaix <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace Sonata\DoctrinePHPCRAdminBundle\Tests\Fixtures\App; |
||
13 | |||
14 | use ReflectionClass; |
||
15 | use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel; |
||
16 | use Symfony\Component\Config\Loader\LoaderInterface; |
||
17 | |||
18 | class Kernel extends TestKernel |
||
19 | { |
||
20 | public function configure() |
||
21 | { |
||
22 | $this->registerConfiguredBundles(); |
||
23 | $this->requireBundleSet('default'); |
||
24 | $this->requireBundleSets(['phpcr_odm']); |
||
25 | } |
||
26 | |||
27 | public function getKernelDir() |
||
28 | { |
||
29 | try { |
||
30 | $refl = new ReflectionClass($this); |
||
31 | $fname = $refl->getFileName(); |
||
32 | $kernelDir = dirname($fname); |
||
33 | |||
34 | return $kernelDir; |
||
35 | } catch (Execption $exception) { |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
Loading history...
The class
Sonata\DoctrinePHPCRAdmi...\Fixtures\App\Execption does not exist. Did you forget a USE statement, or did you not list all dependencies?
Scrutinizer analyzes your It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.
Loading history...
|
|||
36 | |||
37 | } |
||
38 | } |
||
39 | |||
40 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
41 | { |
||
42 | $loader->load(__DIR__ . '/config/config.php'); |
||
43 | $loader->load(__DIR__ . '/config/admin-test.xml'); |
||
44 | } |
||
45 | } |
||
46 |