final class UploadServiceProvider implements ServiceProviderInterface, BootableServiceProviderInterface (View source)

Registers upload validation, risk and path policy, storage, and request-scoped upload entry points.

Profile configuration is resolved during provider boot so unsafe paths, storage overlap, unauthorized format risks, and invalid byte limits fail before requests are handled.

Methods

void

Registers shared upload services and keeps request-bound factories scoped to the active request.

void
void
boot(ContainerInterface $container)

Materializes profiles and rejects configured private storage that overlaps the public web root.

void

Details

register

void register(ContainerBuilderInterface $container)

Registers shared upload services and keeps request-bound factories scoped to the active request.

Parameters

ContainerBuilderInterface $container

Container definition builder.

Return Value

void

boot

void boot(ContainerInterface $container)

Materializes profiles and rejects configured private storage that overlaps the public web root.

Parameters

ContainerInterface $container

Return Value

void

Exceptions

InvalidArgumentException
LogicException