Skip to content

Commit

Permalink
Merge pull request ezsystems#2 from ezsystems/sf-3.2
Browse files Browse the repository at this point in the history
Updated for current Symfony (3.2)
  • Loading branch information
andrerom committed Jun 12, 2017
2 parents 65bc86c + 88fdda3 commit 2de9143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/php/eZ/Publish/ProfilerBundle/Command/ProfileCommand.php
Expand Up @@ -7,6 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;

use Doctrine\DBAL\Exception\UniqueConstraintViolationException;

Expand Down Expand Up @@ -53,13 +54,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$executor = $this->getContainer()->get('ezpublish.profiler.executor.' . $input->getArgument('target'));

$dialog = $this->getHelper('dialog');
$dialog = $this->getHelper('question');
if ($input->getOption('seed')) {
mt_srand($input->getOption('seed'));
}

$question = new ConfirmationQuestion('Really run the profiler? This will reset the database.', false);
if (!$input->getOption('yes') &&
!$dialog->askConfirmation($output, "<question>Really run the profiler? This will reset the database.</question>", false)) {
!$dialog->ask($input, $output, $question)) {
return 1;
}

Expand Down
Expand Up @@ -71,9 +71,9 @@

<!-- Should not be required, but is currently not exposed -->
<service id="ezpublish.api.service.language"
factory-service="ezpublish.api.repository"
factory-method="getContentLanguageService"
class="eZ\Publish\API\Repository\LanguageService">
<factory service="ezpublish.api.repository"
method="getContentLanguageService" />
</service>
</services>
</container>

0 comments on commit 2de9143

Please sign in to comment.