Registers the roles.

@return void
767847
protected function registerRoles()
    {
        $this->app->singleton('sentinel.roles', function ($app) {
            $config = $app['config']->get('cartalyst.sentinel.roles');

            return new IlluminateRoleRepository($config['model']);
        });
    }
292296
public function register()
    {
        $this->registerAuthenticator();
        $this->registerUserResolver();
        $this->registerAccessGate();
        $this->registerRequestRebindHandler();
        $this->registerEventRebindHandler();
    }
224132
public function register() : void
    {
        $environment = $this->app->environment();

        $providers = $this->app['config']->get('app.' . $environment . '_providers', []);

        foreach ($providers as $provider) {
            $this->app->register($provider);
        }

        $facades = $this->app['config']->get('app.' . $environment . '_aliases', []);

        foreach ($facades as $class => $name) {
            AliasLoader::getInstance()->alias($class, $name);
        }
    }
297351
public function register()
    {
        $this->registerFileConfig();
        $this->registerDatabaseConfig();

        // Bind the concrete types
        $this->app->bind('Concrete\Core\Config\Repository\Repository', 'config');
        $this->app->bind('Illuminate\Config\Repository', 'Concrete\Core\Config\Repository\Repository');
    }
338656
public function run()
    {
        $rolesWithPermissions = R::rolesWithPermissions();

        foreach($rolesWithPermissions as $roleName => $permissions){
            $role = Role::whereName($roleName)->first();
            foreach($permissions as $permissionName){
                $permission = Permission::whereName($permissionName)->first();
                $role->assignPermission($permission);
            }
        }
    }
190496
protected function initRegistries()
    {
        $this->roleRegistry = new Registry();
        $this->resourceRegistry = new Registry();
        $this->permissionRegistry = new Registry();
        $this->globalRegistry = new GlobalRegistry();
    }
47390
protected function registerGuest()
    {
        $this->app->bind('guest.roles', function ($app) {
            return ['guest'];
        });

        $this->app->bind('guest.abilities', function ($app) {
            return ['*.show'];
        });

        $this->app->bind('guest', function ($app) {
            return new Guest($app['guest.roles'], $app['guest.abilities']);
        });
    }
652615
public function register()
    {
        $container = $this->getContainer();

        /** @var Tapestry $tapestry */
        $tapestry = $container->get(Tapestry::class);
        $configuration = new Configuration(include(__DIR__.'/../../src/Modules/Config/DefaultConfig.php'));

        if ($baseConfigPathName = $this->identifyConfigurationPath($tapestry['currentWorkingDirectory'])) {
            $configuration->merge($this->getConfigurationFromPath($baseConfigPathName));
        }

        if ($envConfigPathName = $this->identifyConfigurationPath($tapestry['currentWorkingDirectory'], $tapestry['environment'])) {
            $configuration->merge($this->getConfigurationFromPath($envConfigPathName));
        }

        $container->share(Configuration::class, $configuration);
    }
140809
private function setUserRoles()
    {
        $this->initRoleHierarchy();
        $this->user->setRoles($this->roleHierarchy->getAccessibleRoles($this->user->getRoles()));
    }
200415
public function register()
    {
        $this->app->singleton('laravel-acl.directives.canAtLeast', Directives\CanAtLeastDirective::class);
        $this->app->singleton('laravel-acl.directives.role', Directives\RoleDirective::class);
        $this->app->singleton('laravel-acl.directives.hasRole', Directives\HasRoleDirective::class);
    }
704331
public function register()
    {
        $adapter = $this->getContainer()->get(AdapterInterface::class);
        $this->getContainer()->share('repo.user', new UsersRepository($adapter));
        $this->getContainer()->share('repo.media', new MediaRepository($adapter));
        $this->getContainer()->share('repo.comment', new CommentsRepository($adapter));
        $this->getContainer()->share('repo.like', new LikesRepository($adapter));
        $this->getContainer()->share('repo.tag', new TagsRepository($adapter));
        $this->getContainer()->share('repo.location', new LocationsRepository($adapter));
    }
140407
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'litecms.page');

        $this->app->bind('page', function ($app) {
            return $this->app->make('Litecms\Page\Page');
        });

        $this->app->bind(
            'Litecms\Page\Interfaces\PageRepositoryInterface',
            \Litecms\Page\Repositories\Eloquent\PageRepository::class
        );

        $this->app->register(\Litecms\Page\Providers\AuthServiceProvider::class);
        $this->app->register(\Litecms\Page\Providers\EventServiceProvider::class);
        $this->app->register(\Litecms\Page\Providers\RouteServiceProvider::class);
    }
1320025
public function register()
    {
        $this->registerPermissions();
        $this->registerConfig();
        $this->registerRenderEngine();
        $this->registerBladeExtensions();

        AgencmsHandler::register();
    }
340051
public function register()
    {
        $this->app['actions']->listen('admin_menu', function () {
            foreach ($this->adminControllers as $adminController) {
                /** @var AdminPageController $adminController */
                $adminController = $this->app->make($adminController);

                $menuTitle = $adminController->getMenuTitle();

                add_menu_page(
                    $adminController->getTitle(),
                    !empty($menuTitle) ?: $adminController->getTitle(),
                    'manage_options',
                    $adminController->getSlug(),
                    [$adminController, '_render'],
                    $adminController->getIcon(),
                    $adminController->getPosition()
                );
            }
        });
    }
1180233
public function register(): void
    {
        if (!$this->registered) {
            \spl_autoload_register([$this, 'load'], true, true);
            $this->registered = true;
        }
    }
414105
public function run()
    {
        /*
         * Role Types
         *
         */
        $RoleItems = [
            [
                'name'        => 'Admin',
                'slug'        => 'admin',
                'description' => 'Admin Role',
                'level'       => 5,
            ],
            [
                'name'        => 'User',
                'slug'        => 'user',
                'description' => 'User Role',
                'level'       => 1,
            ],
            [
                'name'        => 'Unverified',
                'slug'        => 'unverified',
                'description' => 'Unverified Role',
                'level'       => 0,
            ],
        ];

        /*
         * Add Role Items
         *
         */
        echo "\e[32mSeeding:\e[0m DefaultRoleItemsTableSeeder\r\n";
        foreach ($RoleItems as $RoleItem) {
            $newRoleItem = config('roles.models.role')::where('slug', '=', $RoleItem['slug'])->first();
            if ($newRoleItem === null) {
                $newRoleItem = config('roles.models.role')::create([
                    'name'          => $RoleItem['name'],
                    'slug'          => $RoleItem['slug'],
                    'description'   => $RoleItem['description'],
                    'level'         => $RoleItem['level'],
                ]);
                echo "\e[32mSeeding:\e[0m DefaultRoleItemsTableSeeder - Role:".$RoleItem['slug']."\r\n";
            }
        }
    }
750297
public function register()
    {
        $this->app->bind('soda.permission.repository', function ($app) {
            return new PermissionRepository(new Permission);
        });

        $this->app->bind('soda.role.repository', function ($app) {
            return new RoleRepository(new Role);
        });

        $this->app->bind('soda.user.repository', function ($app) {
            return new UserRepository(new User);
        });

        $this->registerAliases($this->aliases);
    }