/home/techb158/immovalet.com/platform/packages/shortcode/src/Providers
NameSizeModeActions
ShortcodeServiceProvider.php17560644editdlrm
Edit: /home/techb158/immovalet.com/platform/packages/shortcode/src/Providers/ShortcodeServiceProvider.php (1756B)
app->singleton('shortcode.compiler', ShortcodeCompiler::class); $this->app->singleton('shortcode', function ($app) { return new Shortcode($app['shortcode.compiler']); }); $this->app->singleton('view', function ($app) { // Next we need to grab the engine resolver instance that will be used by the // environment. The resolver will be used by an environment to get each of // the various engine implementations such as plain PHP or Blade engine. $resolver = $app['view.engine.resolver']; $finder = $app['view.finder']; $env = new Factory($resolver, $finder, $app['events'], $app['shortcode.compiler']); // We will also set the container instance on this view environment since the // view composers may be classes registered in the container, which allows // for great testable, flexible composers for the application developer. $env->setContainer($app); $env->share('app', $app); return $env; }); Helper::autoload(__DIR__ . '/../../helpers'); $this->setNamespace('packages/shortcode') ->loadRoutes(); } }