concrete/src/Package/Package.php
public function upgrade()
    {
        $this->upgradeDatabase();

        // now we refresh all blocks
        $manager = new Manager($this->app);
        $items = $manager->driver('block_type')->getItems($this->getPackageEntity());
        foreach ($items as $item) {
            $item->refresh();
        }

        Localization::clearCache();
    }
public function upgrade()
    {
        $this->upgradeDatabase();

        // now we refresh all blocks
        $manager = new Manager($this->app);
        $items = $manager->driver('block_type')->getItems($this->getPackageEntity());
        foreach ($items as $item) {
            $item->refresh();
        }

        Localization::clearCache();
    }
public function upgrade ( ) { $ this -> upgradeDatabase ( ) ; // now we refresh all blocks $ manager = new Manager ( $ this -> app ) ; $ items = $ manager -> driver ( 'block_type' ) -> getItems ( $ this -> getPackageEntity ( ) ) ; foreach ( $ items as $ item ) { $ item -> refresh ( ) ; } Localization :: clearCache ( ) ; }
Upgrades a package's database and refreshes all blocks.
Upgrades a package s database and refreshes all blocks .