Register orchid.

@return $this
194449
protected function registerOrchid(): self
    {
        $this->publishes([
            realpath(PLATFORM_PATH.'/install-stubs/routes/') => base_path('routes'),
            realpath(PLATFORM_PATH.'/install-stubs/Orchid/') => app_path('Orchid'),
        ], 'orchid-stubs');

        return $this;
    }
347369
public function register()
    {
        $this->app['db']->extend('neo4j', function($config)
        {
            $conn = new Connection($config);
            $conn->setSchemaGrammar(new CypherGrammar);
            return $conn;
        });

        $this->app->resolving(function($app){
            if (class_exists('Illuminate\Foundation\AliasLoader')) {
                $loader = \Illuminate\Foundation\AliasLoader::getInstance();
                $loader->alias('NeoEloquent', 'Vinelab\NeoEloquent\Eloquent\Model');
                $loader->alias('Neo4jSchema', 'Vinelab\NeoEloquent\Facade\Neo4jSchema');
            }
        });


        $this->registerComponents();
    }
459149
public function register()
    {
        if (class_exists(\App\Orchid\PlatformProvider::class)) {
            $this->app->register(\App\Orchid\PlatformProvider::class);
        }
    }
616444
public function register()
    {
        $app = $this->app;

        QueryBuilder::macro('remember', function ($duration, $key = null) use ($app) {
            return (new CacheDecorator($this, $app->make('cache.store')))->remember($duration, $key);
        });

        QueryBuilder::macro('rememberForever', function ($key = null) use ($app) {
            return (new CacheDecorator($this, $app->make('cache.store')))->rememberForever($key);
        });

        EloquentBuilder::macro('remember', function ($duration, $key = null) use ($app) {
            return (new CacheDecorator($this, $app->make('cache.store')))->remember($duration, $key);
        });

        EloquentBuilder::macro('rememberForever', function ($key = null) use ($app) {
            return (new CacheDecorator($this, $app->make('cache.store')))->rememberForever($key);
        });
    }
742602
public function register()
	{
		$this->app['db'] = function($app)
		{
			// @FIXME: this isn't pretty, but it will shim the removal of the old mysql_* calls from php
			$driver = ($app['config']->get('dbtype') == 'pdo') ? 'mysql' : $app['config']->get('dbtype');

			$options = [
				'driver'   => $driver,
				'host'     => $app['config']->get('host'),
				'user'     => $app['config']->get('user'),
				'password' => $app['config']->get('password'),
				'database' => $app['config']->get('db'),
				'prefix'   => $app['config']->get('dbprefix')
			];

			return Driver::getInstance($options);
		};
	}
786993
public function register()
    {
        $this->bindConfig();

        $this->app->bind('Nc\FayeClient\Client', function($app) {
            $client = new \Nc\FayeClient\Client(new \Nc\FayeClient\Adapter\CurlAdapter(), Config::get('tokenlyPusher.serverUrl').'/public');
            return $client;
        });

        $this->app->bind('Tokenly\PusherClient\Client', function($app) {
            $client = new \Tokenly\PusherClient\Client($app->make('Nc\FayeClient\Client'), Config::get('tokenlyPusher.password'));
            return $client;
        });
    }
255615
public function register()
    {
        return add_meta_box(
            $this->model->getSlug(),
            $this->model->getSingular(),
            [$this, 'fill'],
            $this->belongsTo,
            $this->model->getArgument('location'),
            $this->model->getArgument('priority')
        );
    }
1051950
public function register()
    {
        $this->app->singleton('soda.dashboard', function ($app) {
            $dashboardBuilder = new DashboardBuilder;

            $dashboardBuilder->addBlockToRow(1, 'default', function () {
                return soda_cms_view('partials.dashboard.default-block');
            });

            $dashboardBuilder->addBlockToRow(1, 'quicklinks', function () {
                return soda_cms_view('partials.dashboard.quicklinks');
            });

            return $dashboardBuilder;
        });
    }
1326504
protected function registering()
    {
        $this->app->bindShared(ServiceShortCuts::RESOLVER_SERVICE, function () {
            return new Resolver($this->app);
        });

        $this->app->bindShared(ServiceShortCuts::GHOST_SERVICE, function () {
            return new GhostServices($this->app);
        });

        $this->app->bind(ServiceShortCuts::CORE_INITIALIZED, true);

        $this->app->booting(function () {
            $loader = AliasLoader::getInstance();

            foreach ($this->aliases as $facade => $facadeClass) {
                $loader->alias($facade, $facadeClass);
            }
        });
    }
39436
public function registerKernel()
    {
        if ($this->runningInConsole()) {
            $this->register('ConsoleKernel', new ConsoleKernel($this));
        }
        else {
            $this->register('HttpKernel', new HttpKernel($this));
        }

        return $this;
    }
516157
public function register()
    {

        $this->app->singleton( Registrar::class, function( $app ){
            return new Registrar;
        });

        $this->app->singleton( HelpersBlueprint::class, Helpers::class );

        $this->app->singleton( 'ensphere.exception.handler', function( $app ) {
            return new Bucket();
        });

        $this->app->singleton( ProcessorRegistrar::class, function( $app ) {
            return new ProcessorRegistrar;
        });

        $this->commands([
            RenameCommand::class,
            ExportCommand::class,
            ImportCommand::class,
            BowerCommand::class,
            MigrateCommand::class,
            RegistrationCommand::class,
            InstallCommand::class,
            UpdateCommand::class,
            MakeCommand::class,
            DatabaseCommand::class,
            ModulesCommand::class,
            ExternalAssetsCommand::class,
            DotEnv::class,
            ExtendCommand::class,
            InformCentralHub::class,
            PostProcessCommand::class,
            PreProcessCommand::class,
            BackResourceCommand::class,
            MigrationSeedCommand::class,
            SearchAndReplaceCommand::class,
            MediaCleanseCommand::class,
            JsRoutesCommand::class,
        ]);
    }
216169
function register()
	{
		set_error_handler(array($this,'_handleError'));
		set_exception_handler(array($this,'_handleException'));
		register_shutdown_function(array($this,'_shutdown'));
		$this->_registered = true;
		return $this;
	}
869006
public function register()
    {
        // Bind and tag our Auth components.
        $this->app->bind(IlluminateHasher::class, TrinityCoreHasher::class);
        $this->app->tag(IlluminateHasher::class, 'TrinityCore');

        $this->app->bind(IlluminateGuard::class, TrinityCoreGuard::class);
        $this->app->tag(IlluminateGuard::class, 'TrinityCore');

        // $this->app->bind(IlluminateGuard::class, TrinityCoreGuard::class);
        $this->app->bind('trinitycore', function(){
            return new TrinityCore();
        });
    }
96598
public function registerRootCommand()
    {
        if ($this->rootCommand) {
            return $this;
        }

        $this->rootCommand = $this->make(RootCommand::class, ['io' => $this->io]);

        $this->rootCommand->setApplication($this);

        $this->description ? $this->rootCommand->description($this->description) : null;
        $this->help ? $this->rootCommand->help($this->help) : null;

        $this->getRootCommand()
            ->addGlobalOption('n')
            ->alias('no-interactive')
            ->defaultValue(false)
            ->description('Ignore interactions and assume to default value.');

        return $this;
    }
159767
public function register()
    {
        $this->add_config_location(\realpath(__DIR__ . '/../config'));

        $this->add_blade();

        Container::add(
            Blade_Strategy::class,
            function (\Snap\Core\Container $container) {
                return $container->resolve(Blade_Strategy::class);
            }
        );

        Container::remove(Standard_Strategy::class);
        Container::remove(Partial::class);

        // Bind blade strategy as the current Templating engine.
        Container::bind(Blade_Strategy::class, Templating_Interface::class);

        $this->publishes_config(\realpath(__DIR__ . '/../config'));

        $this->publishes_directory(
            \realpath(__DIR__ . '/../templates'),
            Config::get('theme.templates_directory')
        );
    }
428981
public function register()
    {
        $this->app->bind(Repository::class, function ($app) {
            return new ThemeRepository($app->make('config'));
        });

        $this->app->singleton(Themer::class, function ($app) {
            return new Themer($app->make('config'), $app->make('request'), $app->make(ThemeRepository::class));
        });

        $this->app->singleton(Styles::class, function ($app) {
            return new Styles($app->make(Themer::class), $app->make('config'), $app->make('log'), $app->make(Url::class));
        });

        $this->app->singleton(Scripts::class, function ($app) {
            return new Scripts($app->make(Themer::class), $app->make('config'), $app->make('log'), $app->make(Url::class));
        });

        $this->app->singleton(Images::class, function ($app) {
            return new Images($app->make(Themer::class), $app->make('config'), $app->make('log'), $app->make(Url::class));
        });
    }
582078
public function boot()
    {

        $this->publishes([
            __DIR__ . '/../../config/widget.php' => config_path('widget.php'),
        ], 'config');


        Blade::directive('widget', function ($expression) {
            $segments = explode(',', preg_replace("/[\(\)\\\]/", '', $expression));

            if (!array_key_exists(1, $segments)) {
                return '<?php echo (new \Orchid\Widget\Widget)->get(' . $segments[0] . '); ?>';
            }

            return '<?php echo (new \Orchid\Widget\Widget)->get(' . $segments[0] . ',' . $segments[1] . '); ?>';
        });
    }