InfoCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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 Filip Procházka <[email protected]>
19
 */
20
class InfoCommand 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\InfoCommand();
44
	}
45
46
}
47