Class DataProviderPopulator.

This class reacts to the PopulateEnvironmentEvent and populates the environment with all data providers implementing the interface ContaoDataProviderInformation.

 Methods

Instantiates and adds the data providers implementing ContaoDataProviderInformation to the environment.

populate(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : void

Parameters

$environment

\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface

The environment to populate.

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException When a data provider has already been added to the environment.

 Constants

 

PRIORITY

PRIORITY