Jenssegers\Blade\Blade::setupContainer PHP Method

setupContainer() protected method

Bind required instances for the service provider.
protected setupContainer ( )
    protected function setupContainer()
    {
        $this->container->bindIf('files', function () {
            return new Filesystem();
        }, true);
        $this->container->bindIf('events', function () {
            return new Dispatcher();
        }, true);
        $this->container->bindIf('config', function () {
            return ['view.paths' => (array) $this->viewPaths, 'view.compiled' => $this->cachePath];
        }, true);
    }