コード例 #1
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/analytics/general.yaml'), 'laravel-analytics');
     $this->app->singleton('analytic-manager', function () {
         return new DriverManager(config('laravel-analytics'));
     });
 }
コード例 #2
0
 /**
  * Load configuration .
  *
  * @return $this
  */
 protected function loadConfiguration()
 {
     Support\set_config_from_yaml(__DIR__ . '/../configuration/general.yaml', 'administrator');
     Support\merge_yaml_config_from(config_path('yaml/application/general.yaml'), 'administrator');
     Support\set_config_from_yaml(__DIR__ . '/../configuration/settings.yaml', 'administrator-settings');
     Support\merge_yaml_config_from(config_path('yaml/application/settings.yaml'), 'administrator-settings');
     return $this;
 }
コード例 #3
0
 public function register()
 {
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/exporter/general.yaml'), 'laravel-exporter');
     $this->app->singleton('laravel-exporter', function () {
         return new ExportManager(config('laravel-exporter'));
     });
     $this->registerPackageServices();
 }
コード例 #4
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/meta/general.yaml'), 'laravel-meta');
     $this->app->bind('meta', function () {
         return new MetaManager(config('laravel-meta'));
     });
     $this->registerBladeExtension();
 }
コード例 #5
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/shop/general.yaml'), 'laravel-shop');
     /** Cart service rec to Ioc */
     app()->bind('cart-service', function () {
         return new CartService(new Cart());
     });
     /** @var Register alias facade . $loader */
     $loader = AliasLoader::getInstance();
     $loader->alias('Cart', CartFacade::class);
 }
コード例 #6
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/imageonfly/general.yaml'), 'image-on-fly');
     $this->registerDependencies();
     /**
      * Register template resolver .
      */
     $this->app->singleton('image-template-resolver', function () {
         return new TemplateResolver(config('image-on-fly')['templates']);
     });
     /**
      * Register image processor to Ioc.
      */
     $this->app->singleton('image-processor', function ($app) {
         return new ImageProcessor(config('image-on-fly'), $app['image-template-resolver']);
     });
 }
コード例 #7
0
 /**
  * Load conf .
  *
  * @return $this
  */
 protected function loadConfiguration()
 {
     Support\set_config_from_yaml(__DIR__ . '/../configuration/general.yaml', 'laravel-translator');
     Support\merge_yaml_config_from(config_path('yaml/translator/general.yaml'), 'laravel-translator');
     return $this;
 }
コード例 #8
0
 public function register()
 {
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/localization/general.yaml'), 'laravel-locale');
     $this->app->singleton('locale-formatter', Formatter::class);
 }
コード例 #9
0
 /**
  * Load configuration .
  *
  * @return $this
  */
 protected function loadConfiguration()
 {
     Support\set_config_from_yaml(__DIR__ . '/../configuration/general.yaml', 'form-builder');
     Support\merge_yaml_config_from(config_path('yaml/form-builder/general.yaml'), 'form-builder');
     return $this;
 }
コード例 #10
0
 /**
  * On boot's application load package requirements .
  */
 public function boot()
 {
     $this->publishes([__DIR__ . '/../configuration' => config_path('yaml/table-manager')]);
     $this->loadConfiguration();
     Support\merge_yaml_config_from(config_path('yaml/table-manager/general.yaml'), 'table-manager');
 }