Beta version

class FontLifeCycleSubscriber implements EventSubscriber

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

at line 62
__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

at line 70
getSubscribedEvents()

[email protected]}

at line 84
prePersist(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

at line 96
preUpdate(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

at line 108
postPersist(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

at line 120
postUpdate(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

at line 132
preRemove(LifecycleEventArgs $args)

Parameters

LifecycleEventArgs $args

at line 188
setFontFilesNames(Font $font)

Parameters

Font $font

at line 214
upload(Font $font)

Parameters

Font $font