Skip to content

Commit

Permalink
Merge pull request #4 from hans-thomas/analysis-lZ1RxJ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
hans-thomas authored Jul 31, 2023
2 parents a2c2a65 + eb866a4 commit b4bcb21
Show file tree
Hide file tree
Showing 37 changed files with 2,594 additions and 2,594 deletions.
122 changes: 61 additions & 61 deletions src/AliciaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,74 @@

namespace Hans\Alicia;

use Hans\Alicia\Services\AliciaService;
use Hans\Alicia\Services\SignatureService;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
use Hans\Alicia\Services\AliciaService;
use Hans\Alicia\Services\SignatureService;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;

class AliciaServiceProvider extends ServiceProvider
class AliciaServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
$this->app->singleton('signature-service', fn () => new SignatureService(alicia_config('secret')));
$this->app->singleton('alicia-service', AliciaService::class);
$this->app->singleton('signature-service', fn () => new SignatureService(alicia_config('secret')));
$this->app->singleton('alicia-service', AliciaService::class);

// register FFMpeg
$this->app->register('ProtoneMedia\LaravelFFMpeg\Support\ServiceProvider');
$this->app->alias('FFMpeg', 'ProtoneMedia\LaravelFFMpeg\Support\FFMpeg');
// register ImageOptimizer
$this->app->register('Spatie\LaravelImageOptimizer\ImageOptimizerServiceProvider');
$this->app->alias('ImageOptimizer', 'Spatie\LaravelImageOptimizer\Facades\ImageOptimizer');
}
// register FFMpeg
$this->app->register('ProtoneMedia\LaravelFFMpeg\Support\ServiceProvider');
$this->app->alias('FFMpeg', 'ProtoneMedia\LaravelFFMpeg\Support\FFMpeg');
// register ImageOptimizer
$this->app->register('Spatie\LaravelImageOptimizer\ImageOptimizerServiceProvider');
$this->app->alias('ImageOptimizer', 'Spatie\LaravelImageOptimizer\Facades\ImageOptimizer');
}

/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'alicia');
$this->registerRoutes();
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'alicia');
$this->registerRoutes();

config([
'filesystems.disks' => array_merge(config('filesystems.disks'), [
'resources' => [
'driver' => 'local',
'root' => config('alicia.base'),
],
]),
]);
config([
'filesystems.disks' => array_merge(config('filesystems.disks'), [
'resources' => [
'driver' => 'local',
'root' => config('alicia.base'),
],
]),
]);

config([
'filesystems.links' => array_merge(config('filesystems.links'), [
public_path('resources') => config('alicia.base'),
]),
]);
config([
'filesystems.links' => array_merge(config('filesystems.links'), [
public_path('resources') => config('alicia.base'),
]),
]);

if ($this->app->runningInConsole()) {
$this->publishes(
[
__DIR__.'/../config/config.php' => config_path('alicia.php'),
],
'alicia-config'
);
$this->loadMigrationsFrom(__DIR__.'/../migrations');
}
if ($this->app->runningInConsole()) {
$this->publishes(
[
__DIR__.'/../config/config.php' => config_path('alicia.php'),
],
'alicia-config'
);
$this->loadMigrationsFrom(__DIR__.'/../migrations');
}
}

/**
* Register routes.
*
* @return void
*/
protected function registerRoutes()
{
Route::prefix('api')->middleware('api')->group(__DIR__.'/../routes/api.php');
}
/**
* Register routes.
*
* @return void
*/
protected function registerRoutes()
{
Route::prefix('api')->middleware('api')->group(__DIR__.'/../routes/api.php');
}
}
Loading

1 comment on commit b4bcb21

@vercel
Copy link

@vercel vercel bot commented on b4bcb21 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

alicia – ./

alicia-hans-thomas.vercel.app
docs-alicia.vercel.app
alicia-git-master-hans-thomas.vercel.app

Please sign in to comment.