Aimeos\Shop\ShopServiceProvider::boot PHP Method

boot() public method

Bootstrap the application events.
public boot ( ) : void
return void
    public function boot()
    {
        $basedir = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR;
        $confpath = config_path('shop.php');
        $config = array_replace_recursive($this->app['config']->get('shop', []), require $basedir . 'default.php', file_exists($confpath) ? require $confpath : array());
        $this->app['config']->set('shop', $config);
        $this->loadViewsFrom($basedir . 'views', 'shop');
        $this->publishes(array($basedir . 'config/shop.php' => config_path('shop.php')), 'config');
        $this->publishes(array($basedir . 'database/migrations' => base_path('database/migrations')), 'migrations');
        $this->publishes(array($basedir . 'views' => base_path('resources/views/vendor/shop')), 'views');
        $this->publishes(array(dirname($basedir) . DIRECTORY_SEPARATOR . 'public' => public_path('packages/aimeos/shop')), 'public');
        require $basedir . 'routes.php';
    }
ShopServiceProvider