Skip to main content

Crate serenade_bundle

Crate serenade_bundle 

Source
Expand description

Bundle composition helpers for Serenade applications.

Provides Extension, FrameworkBundle, and build_container so apps can wire router, config, and the event dispatcher the same way Symfony apps load FrameworkBundle.

Structs§

BundleRegistry
Holds bundles until the kernel compiles them.
FrameworkBundle
Core Serenade bundle: wires router and participates in container compile.
FrameworkExtension
DI extension for the framework package key.

Enums§

BundleError
Failure while loading extensions or compiling the framework container.

Constants§

COMMAND_TAG
Service tag applied to console command definitions.
CONFIG_SERVICE
Service id for the merged root Config snapshot.
CONSOLE_APPLICATION_SERVICE
Container id of the compiled Application.
FRAMEWORK_BUNDLE
Canonical name for FrameworkBundle.
ROUTER_SERVICE
Service id for the shared RouteCollection.

Traits§

Bundle
Alias for BundleInterface (Symfony Bundle naming habit). Composition unit registered on a Kernel.
BundleInterface
Composition unit registered on a Kernel.
Extension
Loads package config for one alias into a ContainerBuilder.

Functions§

build_container
Loads config/packages (plus {environment}/ overlay), runs extensions, and compiles.
version
Compile-time crate version for diagnostics.