src/CoreBundle/EventListener/DcGeneral/EnvironmentPopulator/AttributePopulator.php
public function populate(EnvironmentInterface $environment)
    {
        $metaModel = $this->factory->getMetaModel($environment->getDataDefinition()->getName());
        foreach ($metaModel->getAttributes() as $attribute) {
            $event = new PopulateAttributeEvent($metaModel, $attribute, $environment);
            // Trigger BuildAttribute Event.
            $this->dispatcher->dispatch($event::NAME, $event);
        }
    }
public function populate(EnvironmentInterface $environment)
    {
        $metaModel = $this->factory->getMetaModel($environment->getDataDefinition()->getName());
        foreach ($metaModel->getAttributes() as $attribute) {
            $event = new PopulateAttributeEvent($metaModel, $attribute, $environment);
            // Trigger BuildAttribute Event.
            $this->dispatcher->dispatch($event::NAME, $event);
        }
    }
public function populate ( EnvironmentInterface $ environment ) { $ metaModel = $ this -> factory -> getMetaModel ( $ environment -> getDataDefinition ( ) -> getName ( ) ) ; foreach ( $ metaModel -> getAttributes ( ) as $ attribute ) { $ event = new PopulateAttributeEvent ( $ metaModel , $ attribute , $ environment ) ; // Trigger BuildAttribute Event. $ this -> dispatcher -> dispatch ( $ event :: NAME , $ event ) ; } }
Populate the environment.

@param EnvironmentInterface $environment The environment.

@return void
Populate the environment .