-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The file are generated with a command and not any more with the clear…
…-cache
- Loading branch information
Thomas Beaujean
committed
Apr 4, 2017
1 parent
f734b17
commit 7ac2c1c
Showing
4 changed files
with
37 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
<?php | ||
|
||
namespace tbn\QueryBuilderRepositoryGeneratorBundle\Command; | ||
|
||
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use tbn\QueryBuilderRepositoryGeneratorBundle\Generator\RepositoryGenerator; | ||
|
||
/** | ||
* | ||
*/ | ||
class GenerateCommand extends ContainerAwareCommand | ||
{ | ||
/** | ||
* | ||
*/ | ||
protected function configure() | ||
{ | ||
$this->setName('qbrg:generate'); | ||
$this->setDescription('Regenerate the Base Repository with the Query Builder Repository Generator'); | ||
} | ||
|
||
/** | ||
* | ||
* @param InputInterface $input | ||
* @param OutputInterface $output | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
/* @var $generator RepositoryGenerator */ | ||
$generator = $this->getContainer()->get('tbn_qbrg.generator.repository_generator'); | ||
$generator->generateFiles(); | ||
|
||
$output->writeln('<info>The repositories have been regenerated</info>'); | ||
} | ||
} |
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
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