Beta version

class DocumentLifeCycleSubscriber implements EventSubscriber

Handle file management on documents lifecycle events.

Methods

__construct(Container $container)

DocumentLifeCycleSubscriber constructor.

getSubscribedEvents()

[email protected]}

postRemove(LifecycleEventArgs $args)

Unlink file after document has been deleted.

Details

at line 61
__construct(Container $container)

DocumentLifeCycleSubscriber 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 69
getSubscribedEvents()

[email protected]}

at line 81
postRemove(LifecycleEventArgs $args)

Unlink file after document has been deleted.

Parameters

LifecycleEventArgs $args