GenerateEntitiesCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 3
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A initialize() 0 6 1
A createCommand() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Kdyby (http://www.kdyby.org)
5
 *
6
 * Copyright (c) 2008 Filip Procházka ([email protected])
7
 *
8
 * For the full copyright and license information, please view the file license.txt that was distributed with this source code.
9
 */
10
11
namespace Kdyby\Doctrine\Console\Proxy;
12
13
use Kdyby\Doctrine\Console\OrmDelegateCommand;
14
use Symfony\Component\Console\Input\InputInterface;
15
use Symfony\Component\Console\Output\OutputInterface;
16
17
/**
18
 * @author Tomas Jacik <[email protected]>
19
 */
20
class GenerateEntitiesCommand extends OrmDelegateCommand
21
{
22
23
	/**
24
	 * @var \Kdyby\Doctrine\Tools\CacheCleaner
25
	 * @inject
26
	 */
27
	public $cacheCleaner;
28
29
	public function __construct()
30
	{
31
		parent::__construct();
32
	}
33
34
	protected function initialize(InputInterface $input, OutputInterface $output)
35
	{
36
		parent::initialize($input, $output);
37
38
		$this->cacheCleaner->invalidate();
39
	}
40
41
	protected function createCommand()
42
	{
43
		return new \Doctrine\ORM\Tools\Console\Command\GenerateEntitiesCommand();
0 ignored issues
show
Deprecated Code introduced by
The class Doctrine\ORM\Tools\Conso...GenerateEntitiesCommand has been deprecated with message: 2.7 This class is being removed from the ORM and won't have any replacement

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
44
	}
45
46
}
47