Register any view composers.

@return void
12459
protected function registerViewComposers()
    {
        $this->app->extend('view', function (Factory $view) {
            $view->composer('fluxbb::layout.main', 'FluxBB\View\AlertsComposer');
            $view->composer('fluxbb::layout.main', 'FluxBB\View\GlobalsComposer');
            $view->composer('fluxbb::admin.layout.main', 'FluxBB\View\GlobalsComposer');

            return $view;
        });
    }
996518
protected function registerCustomBindings(): void
    {
        $entityServiceFactory = $this->app->make(IEntityServiceFactory::class);

        foreach (config('laravel_entity_services.bindings') as $className => $entityService) {
            $entityServiceFactory->register($className, $entityService);
        }
    }
51538
public function register()
    {
        foreach ($this->postTypes as $postType) {
            $this->app['posts.types']->register($postType);
            $this->app['filters']->listen(
                'theme_' . strtolower(class_basename($postType)) . '_templates',
                function ($page_templates) use ($postType) {
                    $laraPressTemplates = [];

                    foreach ($postType::getAvailableTemplates() as $key => $template) {
                        if (is_int($key)) {
                            $key = $template;
                            $template = ucwords(str_replace('-', ' ', $template));
                        }
                        $laraPressTemplates[$key] = $template;
                    }

                    return array_merge($page_templates, $laraPressTemplates);
                }
            );
        }
    }
1326244
protected function registerOrchestraFormBuilder(): void
    {
        $this->app->singleton(FormControlContract::class, Control::class);

        $this->app->singleton(TemplateContract::class, function (Application $app) {
            $namespace = $this->hasPackageRepository() ? 'orchestra/html::form' : 'orchestra.form';

            $class = $app->make('config')->get("{$namespace}.presenter", BootstrapThreePresenter::class);

            return $app->make($class);
        });

        $this->app->singleton('orchestra.form', function (Application $app) {
            return new FormFactory($app);
        });
    }
961005
protected function registerViewPublisher()
    {
        $this->app->singleton('view.publisher', function (Application $app) {
            $viewPath = $app->basePath().'/resources/views';

            // Once we have created the view publisher, we will set the default packages
            // path on this object so that it knows where to find all of the packages
            // that are installed for the application and can move them to the app.
            $publisher = new ViewPublisher($app->make('files'), $viewPath);

            $publisher->setPackagePath($app->basePath().'/vendor');

            return $publisher;
        });
    }
1031164
protected function registerViewPublisher(): void
    {
        $this->app->singleton('view.publisher', function (Application $app) {
            $viewPath = $app->basePath().'/resources/views';

            // Once we have created the view publisher, we will set the default packages
            // path on this object so that it knows where to find all of the packages
            // that are installed for the application and can move them to the app.
            $publisher = new View($app->make('files'), $viewPath);

            $publisher->setPackagePath($app->basePath().'/vendor');

            return $publisher;
        });
    }
469253
protected function registerBladeExtensions() : void {
		$blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler();

		$blade->directive('javascripts', function($value){
			return "<?php echo basset_javascripts($value); ?>";
		});

		$blade->directive('stylesheets', function($value){
			return "<?php echo basset_stylesheets($value); ?>";
		});

		$blade->directive('assets', function($value){
			return "<?php echo basset_assets($value); ?>";
		});
	}
455301
protected function registerGlobalViewComposers()
    {
        $me = $this;

        $this->app->make('view')->composer('pragmarx/tracker::*', function ($view) use ($me) {
            $view->with('stats_layout', $me->getConfig('stats_layout'));

            $template_path = url('/').$me->getConfig('stats_template_path');

            $view->with('stats_template_path', $template_path);
        });
    }
226276
public function registerViewFinder()
    {
        $this->app->bindShared('view.finder', function($app)
        {
            $paths = $app['config']->get('view.paths', array());

            return new FileViewFinder($app['files'], $paths);
        });
    }
1302412
public function registerViewComposerData()
    {
        View::composer(
            'avored-framework::*',
            GlobalComposer::class
        );
        View::composer(
            'avored-framework::layouts.left-nav',
            AdminNavComposer::class
        );
        View::composer(
            'avored-framework::layouts.left-nav',
            AdminNavComposer::class
        );
        View::composer(
            'avored-framework::user.user._fields',
            UserFieldsComposer::class
        );
        View::composer(
            'avored-framework::system.site-currency._fields',
            SiteCurrencyFieldsComposer::class
        );
        View::composer(
            ['avored-framework::product.category.create', 'avored-framework::product.category.edit'],
            CategoryFieldsComposer::class
        );
        View::composer(
            'avored-framework::system.admin-user._fields',
            AdminUserFieldsComposer::class
        );
        View::composer(
            'avored-framework::cms.page._fields',
            PageFieldsComposer::class
        );
        View::composer(
            'avored-framework::cms.menu.index', 
            MenuComposer::class
        );
        View::composer(
            ['avored-framework::product.create', 'avored-framework::product.edit'], 
            ProductFieldsComposer::class
        );
    }
940302
public function registerViewFinder()
    {
        $this->app->bind('view.finder', function ($app) {

            // Create the FileViewFinder
            $paths = $app['config']['view.paths'];
            $fileViewfinder = new FileViewFinder($app['files'], $paths);

            // Create the VpageViewFinder
            $vpageViewFinder = new VpageViewFinder();

            // Create the ChainViewFinder
            $chainViewFinder = new ChainViewFinder();
            $chainViewFinder->addViewFinder($vpageViewFinder);
            $chainViewFinder->addViewFinder($fileViewfinder);

            return $chainViewFinder;
        });
    }
1364517
public function get_composer( View $view ) {
		$view_name = $view->get_name();

		if ( isset( $this->composers[$view_name] ) ) {
			return $this->composers[$view_name];
		}

		return [];
	}
1278929
public function register()
    {
        $this->app->singleton('orchestra.hashid', function (Application $app) {
            return new Hashids($app->make('config')->get('app.key'));
        });
    }
1332335
public function registerViewFinder()
    {
        $this->app->singleton('view.finder', function ($app) {
            $paths = $app->make('config')->get('view.paths');
            return new FileViewFinder($app->make('files'), $paths);
        });
    }
198716
protected function registerCustomBindings(): void
    {
        $repositoryFactory = $this->app->make(IRepositoryFactory::class);

        foreach (config('laravel_repositories.bindings') as $className => $repository) {
            $repositoryFactory->register($className, $repository);
        }
    }
986162
public function compose( ViewInterface $view ) {
		$composers = $this->getComposersForView( $view->getName() );

		foreach ( $composers as $composer ) {
			$composer->execute( $view );
		}
	}
516848
protected function registerViews()
    {
        // register views within the application with the set namespace
        $this->loadViewsFrom($this->packagePath('resources/views'), 'votee');
        // allow views to be published to the storage directory
        $this->publishes([
            $this->packagePath('resources/views') => base_path('resources/views/vendor/votee'),
        ], 'views');
    }