/**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register();
     $configPath = realpath(__DIR__ . '/../config/UEditorUpload.php');
     $this->mergeConfigFrom($configPath, 'UEditorUpload');
     $this->publishes([$configPath => config_path('UEditorUpload.php')], 'config');
 }
Пример #2
0
 /**
  * Perform post-registration booting of services.
  *
  * @return void
  */
 public function boot()
 {
     $this->publishes([__DIR__ . '/../config/themes.php' => config_path('themes.php')]);
     $this->app['themes']->setTheme($this->app['request']);
     $this->mapWebRoutes();
     $this->mapApiRoutes();
 }
Пример #3
0
 /**
  * Boot the package.
  *
  * @return void
  */
 public function boot()
 {
     $this->publishes([__DIR__ . '/../config/config.php' => config_path('forever.php')], 'config');
     foreach ($this->commands as $key => $value) {
         $this->commands($this->namespace . $key);
     }
 }
 public function boot()
 {
     if (!$this->app->routesAreCached()) {
         require __DIR__ . '/Http/routes.php';
     }
     $this->publishes([__DIR__ . '/../config/config.php' => config_path('genealabs-laravel-caffeine.php')], 'genealabs-laravel-caffeine');
 }
 /**
  * Bootstrap application services.
  *
  * @param Router $router
  */
 public function boot(Router $router)
 {
     $configPath = __DIR__ . '/../config/laravel-oauth2-client.php';
     $this->publishes([$configPath => config_path('laravel-oauth2-client.php')], 'config');
     $this->loginRoute($router);
     $this->logoutRoute($router);
 }
 /**
  *
  */
 public function boot()
 {
     $this->app->singleton('moip-client', function () {
         return new MoipClient(config('moip-assinaturas.api_token'), config('moip-assinaturas.api_key'), config('moip-assinaturas.environment', 'api'));
     });
     $this->app->singleton('moip-api', function () {
         return new Api(app('moip-client'));
     });
     $this->app->bind('moip-plans', function () {
         return app('moip-api')->plans();
     });
     $this->app->bind('moip-subscriptions', function () {
         return app('moip-api')->subscriptions();
     });
     $this->app->bind('moip-customers', function () {
         return app('moip-api')->customers();
     });
     $this->app->bind('moip-invoices', function () {
         return app('moip-api')->invoices();
     });
     $this->app->bind('moip-preferences', function () {
         return app('moip-api')->preferences();
     });
     $this->app->bind('moip-payments', function () {
         return app('moip-api')->payments();
     });
     $this->publishes([__DIR__ . '/../../../config/config.php' => config_path('moip-assinaturas.php')]);
 }
 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     // Paths
     $path_views = __DIR__ . '/../resources/views';
     $path_lang = __DIR__ . '/../resources/lang';
     $path_middleware = __DIR__ . '/Middleware';
     $path_assets = __DIR__ . '/../resources/assets';
     // Publish Paths
     $publish_path_views = base_path('resources/views/nonoesp/writing');
     $publish_path_lang = base_path('resources/lang/nonoesp/writing');
     $publish_path_middleware = base_path('app/Http/Middleware');
     $publish_path_assets = base_path('public/nonoesp/writing');
     $publish_path_config = config_path('writing.php');
     // Publish Stuff
     $this->publishes([$path_views => $publish_path_views], 'views');
     $this->publishes([$path_lang => $publish_path_lang], 'lang');
     //$this->publishes([$path_middleware => $publish_path_middleware,], 'middleware');
     $this->publishes([$path_assets => $publish_path_assets], 'assets');
     $this->publishes([__DIR__ . '/../config/config.php' => $publish_path_config], 'config');
     $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'writing');
     // Views
     if (is_dir($publish_path_views)) {
         $this->loadViewsFrom($publish_path_views, 'writing');
         // Load published views
     } else {
         $this->loadViewsFrom($path_views, 'writing');
     }
     // Translations
     if (is_dir($publish_path_lang)) {
         $this->loadTranslationsFrom($publish_path_lang, 'writing');
         // Load published lang
     } else {
         $this->loadTranslationsFrom($path_lang, 'writing');
     }
 }
 /**
  * Boot the service provider.
  */
 public function boot()
 {
     if (!$this->app->environment('production')) {
         $this->publishes([__DIR__ . '/resources/config.php' => config_path('chronicle.php')], 'config');
         $this->publishes([__DIR__ . '/database/migrations/' => database_path('/migrations')], 'migrations');
     }
 }
 private function getConfig()
 {
     if (file_exists(config_path('thinktomorrow/locale.php'))) {
         return require config_path('thinktomorrow/locale.php');
     }
     return require __DIR__ . '/config/locale.php';
 }
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     $this->publishes([__DIR__ . '/../config/sqs-plain.php' => config_path('sqs-plain.php')]);
     Queue::after(function (JobProcessed $event) {
         $event->job->delete();
     });
 }
Пример #11
0
 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot(Router $router)
 {
     // Tell Laravel where the views for a given namespace are located.
     $this->loadViewsFrom(base_path('vendor/aginev/acl/src/resources/views'), 'acl');
     $this->publishes([base_path('vendor/aginev/acl/src/resources/views') => base_path('resources/views/vendor/acl')], 'views');
     // Publish assets
     $this->publishes([base_path('vendor/aginev/acl/src/public') => public_path('vendor/acl')], 'public');
     // Tell Laravel where the translations for a given namespace are located.
     $this->loadTranslationsFrom(base_path('vendor/aginev/acl/src/resources/lang'), 'acl');
     $this->publishes([base_path('vendor/aginev/acl/src/resources/lang') => base_path('resources/lang/vendor/acl')], 'lang');
     // Merge config
     $this->mergeConfigFrom(base_path('vendor/aginev/acl/src/config/acl.php'), 'acl');
     $this->publishes([base_path('vendor/aginev/acl/src/config/acl.php') => config_path('acl.php')], 'config');
     // Publish migrations
     $this->publishes([base_path('vendor/aginev/acl/src/Database/Migrations/') => base_path('/database/migrations')], 'migrations');
     // Publish seeds
     $this->publishes([base_path('vendor/aginev/acl/src/Database/Seeds/') => base_path('/database/seeds')], 'seeds');
     // Define the ACL route middleware
     $router->middleware('acl', 'Aginev\\Acl\\Http\\Middleware\\Acl');
     /**
      * Including A Routes File From A Service Provider
      * NB! Keep this line at the very end of the method to be able to use the config at routes.php
      */
     include base_path('vendor/aginev/acl/src/Http/routes.php');
 }
Пример #12
0
 /**
  * Bootstrap the application events.
  */
 public function boot()
 {
     //
     $configPath = __DIR__ . '/../config/larabloom.php';
     $this->publishes([$configPath => config_path('larabloom.php')]);
     //$this->mergeConfigFrom($configPath, 'larabloom');
 }
Пример #13
0
function generate_data_file($filename, $content)
{
    if (!assert(ctype_alnum(str_replace(array('-', '_', '.'), '', $filename)))) {
        return FALSE;
    }
    return file_put_contents(config_path('dataDirectory', $filename), $content, LOCK_EX);
}
Пример #14
0
 public function boot()
 {
     $this->publishes([__DIR__ . '/../config/flash.php' => config_path('flash.php')]);
     $this->loadViewsFrom(__DIR__ . '/../resources/views', 'flash');
     $this->publishes([__DIR__ . '/../resources/views' => base_path('resources/views/vendor/flash')]);
     $this->mergeConfigFrom(__DIR__ . '/../config/flash.php', 'flash');
 }
Пример #15
0
 /**
  * @param Filesystem $file
  * @param Factory    $validator
  * @param Colors     $colors
  */
 public function __construct(Filesystem $file, Factory $validator, Colors $colors)
 {
     $this->file = $file;
     $this->validator = $validator;
     $this->config = config_path('nukacode-frontend.php');
     $this->colors = $colors;
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     // Register the config publish path
     $configPath = __DIR__ . '/../config/' . self::PACKAGE . '.php';
     $this->mergeConfigFrom($configPath, self::PACKAGE);
     $this->publishes([$configPath => config_path(self::PACKAGE . '.php')], 'config');
     $this->app[self::PACKAGE] = $this->app->share(function ($app) {
         /* @var $manager \Vsch\TranslationManager\Manager */
         $manager = $app->make('Vsch\\TranslationManager\\Manager');
         return $manager;
     });
     $this->app['command.translation-manager.reset'] = $this->app->share(function ($app) {
         return new Console\ResetCommand($app[self::PACKAGE]);
     });
     $this->commands('command.translation-manager.reset');
     $this->app['command.translation-manager.import'] = $this->app->share(function ($app) {
         return new Console\ImportCommand($app[self::PACKAGE]);
     });
     $this->commands('command.translation-manager.import');
     $this->app['command.translation-manager.find'] = $this->app->share(function ($app) {
         return new Console\FindCommand($app[self::PACKAGE]);
     });
     $this->commands('command.translation-manager.find');
     $this->app['command.translation-manager.export'] = $this->app->share(function ($app) {
         return new Console\ExportCommand($app[self::PACKAGE]);
     });
     $this->commands('command.translation-manager.export');
     $this->app['command.translation-manager.clean'] = $this->app->share(function ($app) {
         return new Console\CleanCommand($app[self::PACKAGE]);
     });
     $this->commands('command.translation-manager.clean');
 }
Пример #17
0
 /**
  * Boot the module provider.
  *
  * @return void
  */
 public function boot()
 {
     $this->loadViewsFrom(__DIR__ . '/../views', 'anavel-uploads');
     $this->loadTranslationsFrom(__DIR__ . '/../lang', 'anavel-uploads');
     $this->publishes([__DIR__ . '/../public/' => public_path('vendor/anavel-uploads/')], 'assets');
     $this->publishes([__DIR__ . '/../config/anavel-uploads.php' => config_path('anavel-uploads.php')], 'config');
 }
 public function boot()
 {
     parent::boot();
     $this->publishes([realpath(__DIR__ . '/../../config/webhooks-outgoing.php') => config_path('webhooks-outgoing.php')]);
     $migrations = realpath(__DIR__ . '/../../migrations');
     $this->publishes([$migrations => $this->app->databasePath() . '/migrations'], 'migrations');
 }
 /**
  * Boot the service provider.
  *
  * @return null
  */
 public function boot()
 {
     // Publish configuration files
     $this->publishes([__DIR__ . '/../../config/emoji.php' => config_path('emoji.php')], 'config');
     // Publish asset files
     $this->publishes([__DIR__ . '/../../assets' => public_path('ios-emoji')], 'public');
 }
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     // Register the config publish path
     $configPath = __DIR__ . '/../config/translation-manager.php';
     $this->mergeConfigFrom($configPath, 'translation-manager');
     $this->publishes([$configPath => config_path('translation-manager.php')], 'config');
     $this->app['translation-manager'] = $this->app->share(function ($app) {
         $manager = $app->make('Barryvdh\\TranslationManager\\Manager');
         return $manager;
     });
     $this->app['command.translation-manager.reset'] = $this->app->share(function ($app) {
         return new Console\ResetCommand($app['translation-manager']);
     });
     $this->commands('command.translation-manager.reset');
     $this->app['command.translation-manager.import'] = $this->app->share(function ($app) {
         return new Console\ImportCommand($app['translation-manager']);
     });
     $this->commands('command.translation-manager.import');
     $this->app['command.translation-manager.find'] = $this->app->share(function ($app) {
         return new Console\FindCommand($app['translation-manager']);
     });
     $this->commands('command.translation-manager.find');
     $this->app['command.translation-manager.export'] = $this->app->share(function ($app) {
         return new Console\ExportCommand($app['translation-manager']);
     });
     $this->commands('command.translation-manager.export');
     $this->app['command.translation-manager.clean'] = $this->app->share(function ($app) {
         return new Console\CleanCommand($app['translation-manager']);
     });
     $this->commands('command.translation-manager.clean');
 }
Пример #21
0
 public function boot()
 {
     $configPath = __DIR__ . '/../config/snappy.php';
     $this->publishes([$configPath => config_path('snappy.php')], 'config');
     if ($this->app['config']->get('snappy.pdf.enabled')) {
         $this->app['snappy.pdf'] = $this->app->share(function ($app) {
             $binary = $app['config']->get('snappy.pdf.binary');
             $options = $app['config']->get('snappy.pdf.options');
             $timeout = $app['config']->get('snappy.pdf.timeout', false);
             $snappy = new IlluminateSnappyPdf($app['files'], $binary, $options);
             if (false !== $timeout) {
                 $snappy->setTimeout($timeout);
             }
             return $snappy;
         });
         $this->app['snappy.pdf.wrapper'] = $this->app->share(function ($app) {
             return new PdfWrapper($app['snappy.pdf']);
         });
     }
     if ($this->app['config']->get('snappy.image.enabled')) {
         $this->app['snappy.image'] = $this->app->share(function ($app) {
             $binary = $app['config']->get('snappy.image.binary');
             $options = $app['config']->get('snappy.image.options');
             $timeout = $app['config']->get('snappy.image.timeout', false);
             $image = new IlluminateSnappyImage($app['files'], $binary, $options);
             if (false !== $timeout) {
                 $image->setTimeout($timeout);
             }
             return $image;
         });
         $this->app['snappy.image.wrapper'] = $this->app->share(function ($app) {
             return new ImageWrapper($app['snappy.image']);
         });
     }
 }
 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     $this->loadViewsFrom(__DIR__ . '/../../resources/views', self::PACKAGE_NAME);
     $this->publishes([__DIR__ . '/../../config/' . self::PACKAGE_NAME . '.php' => config_path(self::PACKAGE_NAME . '.php')]);
     include __DIR__ . '/../helpers.php';
     include __DIR__ . '/../routes.php';
 }
Пример #23
0
 /**
  * Boot the service provider
  *
  * @return void
  */
 public function boot()
 {
     $this->publishes([__DIR__ . '/assets/config.php' => config_path('rooles.php')], 'config');
     $this->publishes([__DIR__ . '/assets/views/403.blade.php' => base_path('resources/views/errors/403.blade.php')], 'views');
     $this->publishes([__DIR__ . '/assets/migration.php' => database_path('migrations/' . date('Y_m_d_His_') . 'add_role_column_to_user_table.php')], 'migrations');
     $this->mergeConfigFrom(__DIR__ . '/assets/config.php', 'rooles');
 }
Пример #24
0
 /**
  * Boot the service provider.
  *
  * @return void
  */
 public function boot()
 {
     parent::boot();
     $this->publishes([realpath(__DIR__ . '/../../config/api.php') => config_path('api.php')]);
     $this->app['router']->middleware('api.auth', 'Dingo\\Api\\Http\\Middleware\\Auth');
     $this->app['router']->middleware('api.throttle', 'Dingo\\Api\\Http\\Middleware\\RateLimit');
 }
 /**
  * Register package's namespaces.
  */
 protected function registerNamespaces()
 {
     $this->mergeConfigFrom(__DIR__ . '/src/config/config.php', 'menus');
     $this->loadViewsFrom(__DIR__ . '/src/views', 'menus');
     $this->publishes([__DIR__ . '/src/config/config.php' => config_path('menus.php')], 'config');
     $this->publishes([__DIR__ . '/src/views' => base_path('resources/views/vendor/pingpong/menus')], 'views');
 }
 public function boot()
 {
     $this->loadViewsFrom(realpath(__DIR__ . '/../views'), 'contact');
     $this->setupRoutes($this->app->router);
     // this  for conig
     $this->publishes([__DIR__ . '/config/contact.php' => config_path('contact.php')]);
 }
Пример #27
0
 /**
  * Bootstrap the application events.
  *
  * @return void
  */
 public function boot()
 {
     // Publish config files
     $this->publishes([__DIR__ . '/../config/config.php' => config_path('ma_entrust.php')]);
     // Register commands
     $this->commands('command.entrust.migration');
 }
 /**
  * Boot the service provider.
  */
 public function boot()
 {
     /*
      * Set the proper configuration separator since
      * retrieving configuration values in packages
      * changed from '::' to '.'
      */
     $this::$packageConfigSeparator = '.';
     /*
      * Set the local inventory laravel version for easy checking
      */
     $this::$laravelVersion = 5;
     /*
      * Load the inventory translations from the inventory lang folder
      */
     $this->loadTranslationsFrom(__DIR__ . '/lang', 'inventory');
     /*
      * Assign the configuration as publishable, and tag it as 'config'
      */
     $this->publishes([__DIR__ . '/config/config.php' => config_path('inventory.php')], 'config');
     /*
      * Assign the migrations as publishable, and tag it as 'migrations'
      */
     $this->publishes([__DIR__ . '/migrations/' => base_path('database/migrations')], 'migrations');
 }
Пример #29
0
 /**
  * Bootstrap the application.
  *
  * @return void
  */
 public function boot()
 {
     if (function_exists('config_path')) {
         $this->publishes([__DIR__ . '/config/sso.php' => config_path('sso.php')]);
     }
     $this->loadViewsFrom(__DIR__ . '/views', 'sso');
 }
Пример #30
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     // merge defaults
     $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'hyn.laravel-flarum');
     // allow publishing the config for editing
     $this->publishes([__DIR__ . '/../../config/config.php' => config_path('hyn.laravel-flarum.php')], 'laravel-flarum-config');
     //        $this->publishes([
     //            base_path('vendor/flarum/core/migrations/') => database_path('migrations')
     //        ], 'laravel-flarum-migrations');
     $this->flarumListeners();
     //        $this->app->singleton('Illuminate\Database\ConnectionResolverInterface', function () {
     //            return $this->app->make('db');
     //        });
     //        $this->app->singleton('Flarum\Database\MigrationRepositoryInterface', function ($app) {
     //            return new DatabaseMigrationRepository($app['db'], 'migrations');
     //        });
     //
     //        $this->app->singleton('Flarum\Settings\SettingsRepositoryInterface', function () {
     //            return new MemoryCacheSettingsRepository(
     //                new DatabaseSettingsRepository(
     //                    $this->app->make('Illuminate\Database\ConnectionInterface')
     //                )
     //            );
     //        });
     //
     //        $this->app->alias('Flarum\Settings\SettingsRepositoryInterface', 'flarum.settings');
     //
     //        $this->installCommand();
     if (!app()->runningInConsole()) {
         $this->setupServer();
     }
 }