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

TestCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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