class FontLifeCycleSubscriber implements EventSubscriber (View source)

Handle file management on Fonts lifecycle events.

Methods

__construct(Container $container)

FontLifeCycleSubscriber constructor.

getSubscribedEvents()

[email protected]}

prePersist(LifecycleEventArgs $args)

No description

preUpdate(LifecycleEventArgs $args)

No description

postPersist(LifecycleEventArgs $args)

No description

postUpdate(LifecycleEventArgs $args)

No description

preRemove(LifecycleEventArgs $args)

No description

setFontFilesNames(Font $font)

No description

upload(Font $font)

No description

Details

__construct(Container $container)

FontLifeCycleSubscriber constructor.

We need to pass whole container not to trigger asset packages initialization and not to creation a dependency infinite loop.

Parameters

Container $container

getSubscribedEvents()

[email protected]}

prePersist(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

preUpdate(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

postPersist(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

postUpdate(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

preRemove(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

setFontFilesNames(Font $font)

Parameters

Font $font

upload(Font $font)

Parameters

Font $font