PHP Class Bolt\EventListener\SnippetListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: bolt/bolt

Protected Properties

Свойство Type Description
$canonical Bolt\Canonical
$config Bolt\Config
$packages Symfony\Component\Asset\Packages
$queue Bolt\Asset\Snippet\Queue
$render Bolt\Render

Méthodes publiques

Méthode Description
__construct ( Queue $queue, Canonical $canonical, Symfony\Component\Asset\Packages $packages, Config $config, Render $render ) Constructor.
getSubscribedEvents ( )
onResponse ( FilterResponseEvent $event ) Callback for response event.

Méthodes protégées

Méthode Description
addSnippets ( ) Add base snippets to the response.
encode ( string $str ) : string Encode the snippet string and make it HTML safe.

Method Details

__construct() public méthode

Constructor.
public __construct ( Queue $queue, Canonical $canonical, Symfony\Component\Asset\Packages $packages, Config $config, Render $render )
$queue Bolt\Asset\Snippet\Queue
$canonical Bolt\Canonical
$packages Symfony\Component\Asset\Packages
$config Bolt\Config
$render Bolt\Render

addSnippets() protected méthode

Add base snippets to the response.
protected addSnippets ( )

encode() protected méthode

Encode the snippet string and make it HTML safe.
protected encode ( string $str ) : string
$str string
Résultat string

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

onResponse() public méthode

Callback for response event.
public onResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

Property Details

$canonical protected_oe property

protected Canonical,Bolt $canonical
Résultat Bolt\Canonical

$config protected_oe property

protected Config,Bolt $config
Résultat Bolt\Config

$packages protected_oe property

protected Packages,Symfony\Component\Asset $packages
Résultat Symfony\Component\Asset\Packages

$queue protected_oe property

protected Queue,Bolt\Asset\Snippet $queue
Résultat Bolt\Asset\Snippet\Queue

$render protected_oe property

protected Render,Bolt $render
Résultat Bolt\Render