PHP Class Elcodi\Plugin\StoreSetupWizardBundle\EventListener\DashboardRedirectionEventListener

Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__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

Protected Methods

Method Description
getCurrentRequestRoute ( Request $request ) : string Gets the current request route

Method Details

__construct() public method

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() protected method

Gets the current request route
protected getCurrentRequestRoute ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request The current request
return string

handle() public method

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() public method

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

Property Details

$plugin protected property

Plugin
protected Plugin,Elcodi\Component\Plugin\Entity $plugin
return Elcodi\Component\Plugin\Entity\Plugin

$urlGenerator protected property

An url generator
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $urlGenerator
return Symfony\Component\Routing\Generator\UrlGeneratorInterface

$wizardRoutes protected property

The wizard routes service
protected WizardRoutes,Elcodi\Plugin\StoreSetupWizardBundle\Services $wizardRoutes
return Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardRoutes

$wizardStatus protected property

A wizard status service
protected WizardStatus,Elcodi\Plugin\StoreSetupWizardBundle\Services $wizardStatus
return Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus