original_string: protected function registerDateFactory()
      {
          $this->app->singleton(DateFactory::class, function ($app) {
              $appTimezone = $app['config']->get('app.timezone');
              $cacheTimezone = $app['config']->get('cachet.timezone');
  
              return new DateFactory($appTimezone, $cacheTimezone);
          });
      }
code: protected function registerDateFactory()
      {
          $this->app->singleton(DateFactory::class, function ($app) {
              $appTimezone = $app['config']->get('app.timezone');
              $cacheTimezone = $app['config']->get('cachet.timezone');
  
              return new DateFactory($appTimezone, $cacheTimezone);
          });
      }
code_tokens: protected function registerDateFactory ( ) { $ this -> app -> singleton ( DateFactory :: class , function ( $ app ) { $ appTimezone = $ app [ 'config' ] -> get ( 'app.timezone' ) ; $ cacheTimezone = $ app [ 'config' ] -> get ( 'cachet.timezone' ) ; return new DateFactory ( $ appTimezone , $ cacheTimezone ) ; } ) ; }
docstring: Register the date factory.
  
  @return void
docstring_tokens: Register the date factory .