-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
265 additions
and
6 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/Kdyby/Doctrine/Console/Proxy/CacheClearCollectionRegionCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Doctrine\ORM\Tools\Console\Command\ClearCache\CollectionRegionCommand; | ||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
|
||
/** | ||
* Command to clear a collection cache region. | ||
*/ | ||
class CacheClearCollectionRegionCommand extends OrmDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new CollectionRegionCommand(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/Kdyby/Doctrine/Console/Proxy/CacheClearEntityRegionCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Doctrine\ORM\Tools\Console\Command\ClearCache\EntityRegionCommand; | ||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
|
||
/** | ||
* Command to clear a entity cache region. | ||
*/ | ||
class CacheClearEntityRegionCommand extends OrmDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new EntityRegionCommand(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/Kdyby/Doctrine/Console/Proxy/CacheClearMetadataCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Doctrine\ORM\Tools\Console\Command\ClearCache\MetadataCommand; | ||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
|
||
/** | ||
* Command to clear the metadata cache of the various cache drivers. | ||
*/ | ||
class CacheClearMetadataCommand extends OrmDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new MetadataCommand(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/Kdyby/Doctrine/Console/Proxy/CacheClearQueryCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Doctrine\ORM\Tools\Console\Command\ClearCache\QueryCommand; | ||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
|
||
/** | ||
* Command to clear the query cache of the various cache drivers. | ||
*/ | ||
class CacheClearQueryCommand extends OrmDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new QueryCommand(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/Kdyby/Doctrine/Console/Proxy/CacheClearQueryRegionCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Doctrine\ORM\Tools\Console\Command\ClearCache\QueryRegionCommand; | ||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
|
||
/** | ||
* Command to clear a query cache region. | ||
*/ | ||
class CacheClearQueryRegionCommand extends OrmDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new QueryRegionCommand(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/Kdyby/Doctrine/Console/Proxy/CacheClearResultCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Doctrine\ORM\Tools\Console\Command\ClearCache\ResultCommand; | ||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
|
||
/** | ||
* Command to clear the result cache of the various cache drivers. | ||
*/ | ||
class CacheClearResultCommand extends OrmDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new ResultCommand(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Kdyby\Doctrine\Console\DbalDelegateCommand; | ||
|
||
/** | ||
* Loads an SQL file and executes it. | ||
*/ | ||
class ImportCommand extends DbalDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new \Doctrine\DBAL\Tools\Console\Command\ImportCommand(); | ||
} | ||
|
||
} |
43 changes: 43 additions & 0 deletions
43
src/Kdyby/Doctrine/Console/Proxy/MappingDescribeCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Kdyby\Doctrine\Console\OrmDelegateCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
class MappingDescribeCommand extends OrmDelegateCommand | ||
{ | ||
|
||
/** | ||
* @var \Kdyby\Doctrine\Tools\CacheCleaner | ||
* @inject | ||
*/ | ||
public $cacheCleaner; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
protected function initialize(InputInterface $input, OutputInterface $output) | ||
{ | ||
parent::initialize($input, $output); | ||
|
||
$this->cacheCleaner->invalidate(); | ||
} | ||
|
||
protected function createCommand() | ||
{ | ||
return new \Doctrine\ORM\Tools\Console\Command\MappingDescribeCommand(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Kdyby (http://www.kdyby.org) | ||
* | ||
* Copyright (c) 2008 Filip Procházka ([email protected]) | ||
* | ||
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | ||
*/ | ||
|
||
namespace Kdyby\Doctrine\Console\Proxy; | ||
|
||
use Kdyby\Doctrine\Console\DbalDelegateCommand; | ||
|
||
class ReservedWordsCommand extends DbalDelegateCommand | ||
{ | ||
|
||
protected function createCommand() | ||
{ | ||
return new \Doctrine\DBAL\Tools\Console\Command\ReservedWordsCommand(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
- Doctrine\DBAL\Tools\Console\Command\ImportCommand | ||
- Doctrine\ORM\Tools\Console\Command\ClearCache\MetadataCommand | ||
- Doctrine\ORM\Tools\Console\Command\ClearCache\ResultCommand | ||
- Doctrine\ORM\Tools\Console\Command\ClearCache\QueryCommand | ||
- Kdyby\Doctrine\Console\Proxy\CacheClearCollectionRegionCommand | ||
- Kdyby\Doctrine\Console\Proxy\CacheClearEntityRegionCommand | ||
- Kdyby\Doctrine\Console\Proxy\CacheClearMetadataCommand | ||
- Kdyby\Doctrine\Console\Proxy\CacheClearQueryCommand | ||
- Kdyby\Doctrine\Console\Proxy\CacheClearQueryRegionCommand | ||
- Kdyby\Doctrine\Console\Proxy\CacheClearResultCommand | ||
- Kdyby\Doctrine\Console\Proxy\ConvertMappingCommand | ||
- Kdyby\Doctrine\Console\Proxy\GenerateEntitiesCommand | ||
- Kdyby\Doctrine\Console\Proxy\GenerateProxiesCommand | ||
- Kdyby\Doctrine\Console\Proxy\ImportCommand | ||
- Kdyby\Doctrine\Console\Proxy\InfoCommand | ||
- Kdyby\Doctrine\Console\Proxy\MappingDescribeCommand | ||
- Kdyby\Doctrine\Console\Proxy\ReservedWordsCommand | ||
- Kdyby\Doctrine\Console\Proxy\SchemaCreateCommand | ||
- Kdyby\Doctrine\Console\Proxy\SchemaUpdateCommand | ||
- Kdyby\Doctrine\Console\Proxy\SchemaDropCommand | ||
- Kdyby\Doctrine\Console\Proxy\GenerateProxiesCommand | ||
- Kdyby\Doctrine\Console\Proxy\ValidateSchemaCommand | ||
- Kdyby\Doctrine\Console\Proxy\InfoCommand |