Skip to content

Instantly share code, notes, and snippets.

@flovntp
flovntp / LanguageSwitcherController.php
Last active August 29, 2015 14:06
Language switcher
<?php
namespace My\DesignBundle\Controller;
use eZ\Bundle\EzPublishCoreBundle\Controller;
use eZ\Publish\Core\MVC\Symfony\Routing\RouteReference;
class LanguageSwitcherController extends Controller
{
public function languagesAction( RouteReference $routeReference )
{
<?php
use Doctrine\DBAL\Connection;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Class RemoveDoubleRoleLimitations.