src/Kunstmaan/MediaBundle/Command/RenameSoftDeletedCommand.php 1 location
|
@@ 68-71 (lines=4) @@
|
65 |
|
|
66 |
|
public function execute(InputInterface $input, OutputInterface $output) |
67 |
|
{ |
68 |
|
if (null === $this->em) { |
69 |
|
$this->em = $this->getContainer()->get('doctrine.orm.entity_manager'); |
70 |
|
$this->mediaManager = $this->getContainer()->get('kunstmaan_media.media_manager'); |
71 |
|
} |
72 |
|
|
73 |
|
$output->writeln('Renaming soft-deleted media...'); |
74 |
|
|
src/Kunstmaan/MediaBundle/Command/CleanDeletedMediaCommand.php 1 location
|
@@ 70-73 (lines=4) @@
|
67 |
|
|
68 |
|
protected function execute(InputInterface $input, OutputInterface $output) |
69 |
|
{ |
70 |
|
if (null === $this->em) { |
71 |
|
$this->em = $this->getContainer()->get('doctrine.orm.entity_manager'); |
72 |
|
$this->mediaManager = $this->getContainer()->get('kunstmaan_media.media_manager'); |
73 |
|
} |
74 |
|
|
75 |
|
if ($input->getOption('force') !== true) { |
76 |
|
$helper = $this->getHelper('question'); |