StorageServiceProvider class
Applies storage configuration to disk registrations.
Disk roots are normalized against app.root, and StorageDefaults is
registered so helper functions can resolve framework paths consistently.
Example:
final defaults = container.get<StorageDefaults>();
final cachePath = defaults.frameworkPath('cache');
Applies storage configuration to disk registrations.
Disk roots are normalized against app.root, and StorageDefaults is
registered so helper functions can resolve framework paths consistently.
Example:
final defaults = container.get<StorageDefaults>();
final cachePath = defaults.frameworkPath('cache');
- Inheritance
-
- Object
- ServiceProvider
- StorageServiceProvider
- Mixed-in types
Constructors
Properties
- configSource → String
-
Optional identifier used when tracking config contributions.
no setterinherited
- defaultConfig → ConfigDefaults
-
Default configuration (values + documentation) contributed by this provider.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schemas
→ Map<
String, Schema> -
The JSON Schemas for this configuration.
no setterinherited
Methods
-
boot(
Container container) → Future< void> -
Optional boot method called after all providers are registered.
override
-
cleanup(
Container container) → Future< void> -
Optional cleanup method called when container is disposed.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConfigReload(
Container container, Config config) → Future< void> -
Called when the application configuration is reloaded.
override
-
register(
Container container) → void -
Register services with the container.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
availableDriverNames(
) → List< String> -
driverDocumentation(
) → List< ConfigDocEntry> -
registerDriver(
String driver, StorageDiskBuilder builder, {StorageDriverDocBuilder? documentation, bool overrideExisting = true}) → void -
unregisterDriver(
String driver) → void
Constants
- spec → const StorageConfigSpec