Register the factory class.

@return void
196131
protected function registerFactory(): void
    {
        $this->app->singleton('algolia.factory', function () {
            return new AlgoliaFactory();
        });

        $this->app->alias('algolia.factory', AlgoliaFactory::class);
    }
499961
protected function register()
    {
        // Make comment model for the factory.
        $this->setModel($this->makeUserModel());

        // Build comment with model.
        $this->setSingularity($this->makeUserInstance());

        // Set columns to the users, after admin init.
        if ($this->methodExist('columns')) {
            $this->registerColumns();
        }
    }
597531
public function register()
    {
        $this->registerPresenceVerifier();

        $this->app->bindShared('validator', function($app)
        {
            $config = $app['config'];

            // Get a Validation Factory instance.
            $validator = new Factory($config);

            if (isset($app['validation.presence'])) {
                $presenceVerifier = $app['validation.presence'];

                $validator->setPresenceVerifier($presenceVerifier);
            }

            return $validator;
        });
    }
823602
public function registerSidebarFactory()
    {
        $this->app->singleton('sidebar.factory', function ($app) {
            return new SidebarFactory($app['sidebars.collection'], $app);
        });

        $this->app->alias('sidebar.factory', SidebarFactory::class);
    }
594311
public function register()
    {
        $this->app->singleton(Dispatcher::class, function ($app) {
            return new Dispatcher($app, function ($connection = null) use ($app) {
                return $app[QueueFactoryContract::class]->connection($connection);
            });
        });

        $this->app->alias(
            Dispatcher::class, DispatcherContract::class
        );

        $this->app->alias(
            Dispatcher::class, QueueingDispatcherContract::class
        );
    }
1078365
public function register()
    {
        parent::register();

        $this->bootMenu();

        $this->app->singleton(Config::class);

        $this->app->singleton(EntryFactory::class, function() {
            $entries = config('antares/ban_management::entries', []);
            return new EntryFactory($entries);
        });

        $this->app->singleton(RouteService::class, function() {
            $routes = config('antares/ban_management::routes', []);
            return new RouteService($routes);
        });

        $this->commands(AddCommand::class);
        $this->commands(ListCommand::class);
        $this->commands(SyncCommand::class);
        $this->commands(AddCommand2::class);
        $this->commands(ListCommand2::class);
    }
228420
public function register()
    {
        $this->app->singleton('comment.factory', function ($app) {
            return new CommentFactory($app);
        });

        $this->app->alias('comment.factory', CommentFactory::class);
    }
61503
public function registerRewriteFactory()
    {
        $this->app->singleton('rewrite.factory', function ($app) {
            return new RewriteFactory($app['rewrites.collection'], $app);
        });

        $this->app->alias('rewrite.factory', RewriteFactory::class);
    }
1333957
public function register()
    {
        $this->app->singleton(ParserFactoryInterface::class, function ($application) {
            return new DefaultParserFactory();
        });

        $this->app->bind(ConfigLoaderInterface::class, function ($application) {
            return new ConfigLoader();
        });
    }
1097389
public function register()
    {
        $this->app['validation'] = $this->app->share(function () {
            return new Factory(new Parser());
        });

        $this->app->alias('validation', 'Ionix\Validation\Factory');
    }
621618
public function register()
    {
        $this->registerRevisionRepository();
        $this->registerUserRepository();
        $this->registerGroupRepository();
        $this->registerCredentials();

        $this->registerLoginController();
        $this->registerRegistrationController();
        $this->registerResetController();
        $this->registerActivationController();
    }
415377
def register_factory(self, specification, factory, scope=None):
        
        self.register_provider(
            specification,
            FactoryProvider(factory, scope=scope)
        )
470140
public function register() {
        $this->registerFilesystemProvider();
        $this->registerDatabaseProvider();
        $this->registerCompressorProvider();
        $this->registerShellProcessor();
        $this->registerArtisanCommands();
    }
45869
private function registerSanitizer()
    {
        $this->singleton(Contracts\Sanitizer::class, function ($app) {
            /** @var  \Illuminate\Contracts\Config\Repository  $config */
            $config = $app['config'];

            return new Factory($config->get('sanitizer.filters'));
        });

        $this->singleton('arcanedev.sanitizer', Contracts\Sanitizer::class);
    }
898111
public function register()
    {
        $this->registerFilesystem();
        $this->registerEvents();
        $this->registerEngineResolver();
        $this->registerViewFinder();
        $this->registerFactory();
        return $this;
    }
225131
protected function registerBitbucketFactory()
    {
        $this->app->singleton('bitbucket.factory', function (Container $app) {
            $auth = $app['bitbucket.authfactory'];
            $cache = $app['cache'];

            return new BitbucketFactory($auth, $cache);
        });

        $this->app->alias('bitbucket.factory', BitbucketFactory::class);
    }
1132083
public function register()
    {
        $this->logger->debug('Registering worker ' . $this->getId());
        $this->resque->getClient()->sadd($this->resque->getKey(Resque::WORKERS_KEY), $this->getId());
        $this->resque->getClient()->set($this->getJobKey() . ':started', strftime('%a %b %d %H:%M:%S %Z %Y'));
    }