Skip to content

Instantly share code, notes, and snippets.

@pedroresende
Last active August 29, 2015 14:07
Show Gist options
  • Save pedroresende/5769fddba7e5b7305aa5 to your computer and use it in GitHub Desktop.
Save pedroresende/5769fddba7e5b7305aa5 to your computer and use it in GitHub Desktop.
Ezp23447Command.php
<?php
namespace Cleverti\EZP23447Bundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Ezp23447Command extends ContainerAwareCommand
{
protected function configure()
{
$this
->setName('ezp23447')
->setDescription('EZP-23447 - ServiceNotFoundException: ezpublish.fieldtype.ezbinaryfile.ioservice after update.')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$IOService = $this->getContainer()->get("ezpublish.fieldType.ezbinaryfile.IOService");
var_dump($IOService);
$io_service = $this->getContainer()->get("ezpublish.fieldType.ezbinaryfile.io_service");
var_dump($io_service);
$ioservice = $this->getContainer()->get("ezpublish.fieldType.ezbinaryfile.ioservice");
var_dump($ioservice);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment