src/Silvestra/Component/Banner/BannerZoneSynchronizer.php
private function createZone(BannerZoneConfig $config)
    {
        list($width, $height) = $config->getSize();
        $zone = $this->manager->create();
        $name = $config->getName();

        if ($config->getTranslationDomain()) {
            $name = $this->translator->trans($name, array(), $config->getTranslationDomain());
        }
        $zone->setName($name);
        $zone->setCode($config->getSlug());
        $zone->setSlug($config->getSlug());
        $zone->setWidth($width);
        $zone->setHeight($height);
        $zone->setSystem(true);

        $this->manager->add($zone);

        return $zone;
    }
private function createZone(BannerZoneConfig $config)
    {
        list($width, $height) = $config->getSize();
        $zone = $this->manager->create();
        $name = $config->getName();

        if ($config->getTranslationDomain()) {
            $name = $this->translator->trans($name, array(), $config->getTranslationDomain());
        }
        $zone->setName($name);
        $zone->setCode($config->getSlug());
        $zone->setSlug($config->getSlug());
        $zone->setWidth($width);
        $zone->setHeight($height);
        $zone->setSystem(true);

        $this->manager->add($zone);

        return $zone;
    }
private function createZone ( BannerZoneConfig $ config ) { list ( $ width , $ height ) = $ config -> getSize ( ) ; $ zone = $ this -> manager -> create ( ) ; $ name = $ config -> getName ( ) ; if ( $ config -> getTranslationDomain ( ) ) { $ name = $ this -> translator -> trans ( $ name , array ( ) , $ config -> getTranslationDomain ( ) ) ; } $ zone -> setName ( $ name ) ; $ zone -> setCode ( $ config -> getSlug ( ) ) ; $ zone -> setSlug ( $ config -> getSlug ( ) ) ; $ zone -> setWidth ( $ width ) ; $ zone -> setHeight ( $ height ) ; $ zone -> setSystem ( true ) ; $ this -> manager -> add ( $ zone ) ; return $ zone ; }
Create banner zone.

@param BannerZoneConfig $config

@return BannerZoneInterface
Create banner zone .