The documentation you are viewing is for an older version of this component.
Switch to the latest (v4) version.
Each menu can be created from different sources. The responsibility of creating a menu container from the source falls on a container provider.
Each provider must implement the interface ProviderInterface
and be registered in the ProviderPluginManager.
We offer just one provider for now, ArrayProvider
, that is able to fetch and create a menu container from a php array that is defined in the configuration file.