Register license fields for the products.
425414
public function register_license_hooks() {
		add_action( 'admin_init', array( $this, 'register_settings' ) );
		add_action( 'admin_init', array( $this, 'activate_license' ) );
		add_action( 'admin_init', array( $this, 'product_valid' ), 99999999 );
		add_action( 'admin_notices', array( $this, 'show_notice' ) );
		add_filter( $this->product->get_key() . '_license_status', array( $this, 'get_license_status' ) );
	}
914909
private function registerBindings()
    {
        $this->app->bind('society.isInstalled', function ($app) {
            return
                file_exists(base_path('.env')) &&
                file_exists(storage_path('app/installed')) &&
                Schema::hasTable('migrations');
        });
    }
347492
protected function registerFacadesAliases()
    {
        $loader = AliasLoader::getInstance();
        $loader->alias('AuzoToolsPermissionRegistrar', AuzoToolsPermissionRegistrarFacade::class);
        $loader->alias('GenerateAbilities', GenerateAbilitiesFacade::class);
    }
535129
public static function register() {
		foreach ( [ 'post', 'user' ] as $type ) {
			\register_rest_field(
				'post' === $type ? get_post_types() : $type ,
				self::FIELD_NAME,
				[ 'get_callback' => [ __CLASS__, 'get_' . $type . '_fields' ] ]
			);
		}
	}
1124230
public function register()
    {
        $this->bindRouteModel();

        $this->loadAdminAuthConfig();

        $this->registerRouteMiddleware();

        $this->registerPolicies();

        $this->commands($this->commands);
    }
1021243
public static function registerBuiltinFields()
    {
        $map = [
            'button'         => \Core\Admin\Form\Field\Button::class,
            'checkbox'       => \Core\Admin\Form\Field\Checkbox::class,
            'color'          => \Core\Admin\Form\Field\Color::class,
            'currency'       => \Core\Admin\Form\Field\Currency::class,
            'date'           => \Core\Admin\Form\Field\Date::class,
            'dateRange'      => \Core\Admin\Form\Field\DateRange::class,
            'datetime'       => \Core\Admin\Form\Field\Datetime::class,
            'dateTimeRange'  => \Core\Admin\Form\Field\DatetimeRange::class,
            'datetimeRange'  => \Core\Admin\Form\Field\DatetimeRange::class,
            'decimal'        => \Core\Admin\Form\Field\Decimal::class,
            'display'        => \Core\Admin\Form\Field\Display::class,
            'divider'        => \Core\Admin\Form\Field\Divide::class,
            'divide'         => \Core\Admin\Form\Field\Divide::class,
            'embeds'         => \Core\Admin\Form\Field\Embeds::class,
            'editor'         => \Core\Admin\Form\Field\Editor::class,
            'email'          => \Core\Admin\Form\Field\Email::class,
            'file'           => \Core\Admin\Form\Field\File::class,
            'hasMany'        => \Core\Admin\Form\Field\HasMany::class,
            'hidden'         => \Core\Admin\Form\Field\Hidden::class,
            'id'             => \Core\Admin\Form\Field\Id::class,
            'image'          => \Core\Admin\Form\Field\Image::class,
            'ip'             => \Core\Admin\Form\Field\Ip::class,
            'map'            => \Core\Admin\Form\Field\Map::class,
            'mobile'         => \Core\Admin\Form\Field\Mobile::class,
            'month'          => \Core\Admin\Form\Field\Month::class,
            'multipleSelect' => \Core\Admin\Form\Field\MultipleSelect::class,
            'number'         => \Core\Admin\Form\Field\Number::class,
            'password'       => \Core\Admin\Form\Field\Password::class,
            'radio'          => \Core\Admin\Form\Field\Radio::class,
            'rate'           => \Core\Admin\Form\Field\Rate::class,
            'select'         => \Core\Admin\Form\Field\Select::class,
            'slider'         => \Core\Admin\Form\Field\Slider::class,
            'switch'         => \Core\Admin\Form\Field\SwitchField::class,
            'text'           => \Core\Admin\Form\Field\Text::class,
            'textarea'       => \Core\Admin\Form\Field\Textarea::class,
            'time'           => \Core\Admin\Form\Field\Time::class,
            'timeRange'      => \Core\Admin\Form\Field\TimeRange::class,
            'url'            => \Core\Admin\Form\Field\Url::class,
            'year'           => \Core\Admin\Form\Field\Year::class,
            'html'           => \Core\Admin\Form\Field\Html::class,
            'tags'           => \Core\Admin\Form\Field\Tags::class,
            'icon'           => \Core\Admin\Form\Field\Icon::class,
            'multipleFile'   => \Core\Admin\Form\Field\MultipleFile::class,
            'multipleImage'  => \Core\Admin\Form\Field\MultipleImage::class,
            'captcha'        => \Core\Admin\Form\Field\Captcha::class,
            'listbox'        => \Core\Admin\Form\Field\Listbox::class,
        ];

        foreach ($map as $abstract => $class) {
            static::extend($abstract, $class);
        }
    }
574438
public function register()
    {
        foreach (array_keys(config('modules.locations')) as $location) {
            $repository = $this->repository($location);
            $modules    = $repository->enabled();

            $modules->each(function ($module) use ($repository) {
                try {
                    $this->registerServiceProvider($repository, $module);

                    $this->autoloadFiles($module);
                } catch (ModuleNotFoundException $e) {
                    //
                }
            });
        }
    }
1268102
public function register()
    {
        $this->config = $this->app->make('config');
        $this->packages = $this->config->get('domains.user-binding');

        $files = \File::allFiles(config_path('domains'));

        foreach ($files as $file) {
            if ($bindings = $this->config->get('domains.'.basename($file->getFilename(), '.php'))) {
                if (array_has($bindings, 'providers')) {
                    $this->provideService(array_get($bindings, 'providers'));
                }

                if (array_has($bindings, 'repositories')) {
                    $this->provideRepositories(array_get($bindings, 'repositories'));
                }

                if (array_has($bindings, 'eloquent_repositories')) {
                    $this->provideEloquentRepositories(array_get($bindings, 'eloquent_repositories'));
                }
            }
        }

        if ($this->app->runningInConsole()) {
            $this->commands([
                GenerateDomain::class,
            ]);
        }
    }
707090
public function registerStandardObjects()
	{
		$this->extensionMap = new ExtensionMap();
		$this->extensions = $this->extensionMap->getRegisteredExtensionNames();
		$this->finder->files();
	}
1213158
protected function registerServices()
    {
        foreach (Antvel::bindings() as $key => $value) {
            is_numeric($key)
                ? $this->app->singleton($value)
                : $this->app->singleton($key, $value);
        }
    }
754433
private function registerAliases()
    {
        $aliasLoader = AliasLoader::getInstance();
//        $aliasLoader->alias( 'TranslationCache', \Waavi\Translation\Facades\TranslationCache::class );
        $aliasLoader->alias( 'Activation', \Cartalyst\Sentinel\Laravel\Facades\Activation::class );
        $aliasLoader->alias( 'Reminder', \Cartalyst\Sentinel\Laravel\Facades\Reminder::class );
        $aliasLoader->alias( 'Sentinel', \Cartalyst\Sentinel\Laravel\Facades\Sentinel::class );
        $aliasLoader->alias( 'GlideImage', \Roboc\Glide\Support\Facades\GlideImage::class );
        $aliasLoader->alias( 'Excel', \Maatwebsite\Excel\Facades\Excel::class );
    }
340848
public function register()
    {
        $this->registerPublisher();

        $this->registerRoleEloquent();

        $this->registerComponentEloquent();

        $this->registerActionComponentEloquent();

        $this->registerUserRoleEloquent();

        $this->registerComponentPermissionEloquent();

        $this->registerUserEloquent();
    }
984246
protected function registerPublisher(): void
    {
        $this->app->singleton('orchestra.publisher', function (Application $app) {
            $memory = $app->make('orchestra.platform.memory');

            return (new PublisherManager($app))->attach($memory);
        });
    }
789213
private function registerPublishableResources()
    {
        $basePath = dirname(__DIR__);
        $publishable = [
            'voyager_assets' => [
                "$basePath/publishable/assets" => public_path('vendor/tcg/voyager/assets'),
            ],
            'migrations' => [
                "$basePath/publishable/database/migrations/" => database_path('migrations'),
            ],
            'seeds' => [
                "$basePath/publishable/database/seeds/" => database_path('seeds'),
            ],
            'demo_content' => [
                "$basePath/publishable/demo_content/" => storage_path('app/public'),
            ],
            'config' => [
                "$basePath/publishable/config/voyager.php" => config_path('voyager.php'),
            ],
        ];

        foreach ($publishable as $group => $paths) {
            $this->publishes($paths, $group);
        }
    }
1184168
public function register()
    {
        $guesser = MimeTypeGuesser::getInstance();

        $guesser->register(new RawImageMimeTypeGuesser());
        $guesser->register(new PostScriptMimeTypeGuesser());
        $guesser->register(new AudioMimeTypeGuesser());
        $guesser->register(new VideoMimeTypeGuesser());

        $guesser->register(new CustomExtensionGuesser($this->conf->get(['border-manager', 'extension-mapping'], [])));
    }
54790
public static function registerBuiltinFields()
    {
        $map = [
            'button'         => \Lia\Form\Field\Button::class,
            'checkbox'       => \Lia\Form\Field\Checkbox::class,
            'color'          => \Lia\Form\Field\Color::class,
            'currency'       => \Lia\Form\Field\Currency::class,
            'date'           => \Lia\Form\Field\Date::class,
            'dateRange'      => \Lia\Form\Field\DateRange::class,
            'datetime'       => \Lia\Form\Field\Datetime::class,
            'dateTimeRange'  => \Lia\Form\Field\DatetimeRange::class,
            'datetimeRange'  => \Lia\Form\Field\DatetimeRange::class,
            'decimal'        => \Lia\Form\Field\Decimal::class,
            'display'        => \Lia\Form\Field\Display::class,
            'divider'        => \Lia\Form\Field\Divide::class,
            'divide'         => \Lia\Form\Field\Divide::class,
            'embeds'         => \Lia\Form\Field\Embeds::class,
            'editor'         => \Lia\Form\Field\Editor::class,
            'email'          => \Lia\Form\Field\Email::class,
            'file'           => \Lia\Form\Field\File::class,
            'hasMany'        => \Lia\Form\Field\HasMany::class,
            'hidden'         => \Lia\Form\Field\Hidden::class,
            'id'             => \Lia\Form\Field\Id::class,
            'image'          => \Lia\Form\Field\Image::class,
            'ip'             => \Lia\Form\Field\Ip::class,
            'map'            => \Lia\Form\Field\Map::class,
            'mobile'         => \Lia\Form\Field\Mobile::class,
            'month'          => \Lia\Form\Field\Month::class,
            'multipleSelect' => \Lia\Form\Field\MultipleSelect::class,
            'number'         => \Lia\Form\Field\Number::class,
            'password'       => \Lia\Form\Field\Password::class,
            'radio'          => \Lia\Form\Field\Radio::class,
            'rate'           => \Lia\Form\Field\Rate::class,
            'select'         => \Lia\Form\Field\Select::class,
            'slider'         => \Lia\Form\Field\Slider::class,
            'switch'         => \Lia\Form\Field\SwitchField::class,
            'text'           => \Lia\Form\Field\Text::class,
            'textarea'       => \Lia\Form\Field\Textarea::class,
            'time'           => \Lia\Form\Field\Time::class,
            'timeRange'      => \Lia\Form\Field\TimeRange::class,
            'url'            => \Lia\Form\Field\Url::class,
            'year'           => \Lia\Form\Field\Year::class,
            'html'           => \Lia\Form\Field\Html::class,
            'tags'           => \Lia\Form\Field\Tags::class,
            'icon'           => \Lia\Form\Field\Icon::class,
            'multipleFile'   => \Lia\Form\Field\MultipleFile::class,
            'multipleImage'  => \Lia\Form\Field\MultipleImage::class,
            'captcha'        => \Lia\Form\Field\Captcha::class,
            'listbox'        => \Lia\Form\Field\Listbox::class,
        ];

        foreach ($map as $abstract => $class) {
            static::extend($abstract, $class);
        }
    }
1101622
private function registerFilters()
    {
        $filters = config('app.render_filters', []);

        foreach ($filters as $filter) {
            $filter = app($filter);

            if ($filter instanceof FilterContract) {
                $this->twigEnvironment->addFilter(new \Twig_SimpleFilter($filter->getName(), $filter->getFilter()));
                $this->twigStringEnvironment->addFilter(new \Twig_SimpleFilter($filter->getName(),
                    $filter->getFilter()));
            }
        }
    }