protected function createSlotManager(Slot $slot)
    {
        $slotName = $slot->getSlotName();
        $blocks = array();
        if (null !== $this->pageBlocks) {
            $blocks = $this->pageBlocks->getSlotBlocks($slotName);
        }
        $slotManager = new SlotManager($slot, $this->blockRepository, $this->blockManagerFactory);
        $slotManager->setUpBlockManagers($blocks);

        return $slotManager;
    }
protected function createSlotManager(Slot $slot)
    {
        $slotName = $slot->getSlotName();
        $blocks = array();
        if (null !== $this->pageBlocks) {
            $blocks = $this->pageBlocks->getSlotBlocks($slotName);
        }
        $slotManager = new SlotManager($slot, $this->blockRepository, $this->blockManagerFactory);
        $slotManager->setUpBlockManagers($blocks);

        return $slotManager;
    }
protected function createSlotManager ( Slot $ slot ) { $ slotName = $ slot -> getSlotName ( ) ; $ blocks = array ( ) ; if ( null !== $ this -> pageBlocks ) { $ blocks = $ this -> pageBlocks -> getSlotBlocks ( $ slotName ) ; } $ slotManager = new SlotManager ( $ slot , $ this -> blockRepository , $ this -> blockManagerFactory ) ; $ slotManager -> setUpBlockManagers ( $ blocks ) ; return $ slotManager ; }
Creates the slot manager for the given slot

@param  Slot        $slot
@return SlotManager
Creates the slot manager for the given slot