Completed
Push — master ( b88100...c1b2a0 )
by Guillaume
02:38
created

TestCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A execute() 0 7 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: DIEU
5
 * Date: 07/02/2017
6
 * Time: 00:40
7
 */
8
9
namespace Starkerxp\StructureBundle\Command;
10
11
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
12
use Symfony\Component\Console\Input\InputInterface;
13
use Symfony\Component\Console\Output\OutputInterface;
14
use Symfony\Component\Yaml\Yaml;
15
16
//I'm includng the yml dumper. Then :
17
18
class TestCommand extends ContainerAwareCommand
19
{
20
21
    protected function configure()
22
    {
23
        $this->setName('test');
24
    }
25
26
27
    protected function execute(InputInterface $input, OutputInterface $output)
28
    {
29
        $metadata = $this->getContainer()->get('doctrine.orm.entity_manager')->getClassMetadata("StarkerxpCampagneBundle:Template2")
30
           ;
31
        dump($metadata);
32
33
    }
34
35
36
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
37