PHP Класс Elcodi\Plugin\StoreSetupWizardBundle\EventListener\DashboardRedirectionEventListener

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface An url generator
$wizardRoutes Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardRoutes The wizard routes service
$wizardStatus Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus A wizard status service

Открытые методы

Метод Описание
__construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, WizardStatus $wizardStatus, WizardRoutes $wizardRoutes ) Builds a new class
handle ( GetResponseEvent $event ) Handles the event redirecting to the wizard if the user is visiting the dashboard
setPlugin ( Elcodi\Component\Plugin\Entity\Plugin $plugin ) Set plugin

Защищенные методы

Метод Описание
getCurrentRequestRoute ( Request $request ) : string Gets the current request route

Описание методов

__construct() публичный Метод

Builds a new class
public __construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, WizardStatus $wizardStatus, WizardRoutes $wizardRoutes )
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface An url generator
$wizardStatus Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus A wizard status service
$wizardRoutes Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardRoutes A wizard routes service

getCurrentRequestRoute() защищенный Метод

Gets the current request route
protected getCurrentRequestRoute ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request The current request
Результат string

handle() публичный Метод

Handles the event redirecting to the wizard if the user is visiting the dashboard
public handle ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent The response event

setPlugin() публичный Метод

Set plugin
public setPlugin ( Elcodi\Component\Plugin\Entity\Plugin $plugin )
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin

Описание свойств

$plugin защищенное свойство

Plugin
protected Plugin,Elcodi\Component\Plugin\Entity $plugin
Результат Elcodi\Component\Plugin\Entity\Plugin

$urlGenerator защищенное свойство

An url generator
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $urlGenerator
Результат Symfony\Component\Routing\Generator\UrlGeneratorInterface

$wizardRoutes защищенное свойство

The wizard routes service
protected WizardRoutes,Elcodi\Plugin\StoreSetupWizardBundle\Services $wizardRoutes
Результат Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardRoutes

$wizardStatus защищенное свойство

A wizard status service
protected WizardStatus,Elcodi\Plugin\StoreSetupWizardBundle\Services $wizardStatus
Результат Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus