summaryrefslogtreecommitdiff
path: root/src/SvgServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SvgServiceProvider.php')
-rw-r--r--src/SvgServiceProvider.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/SvgServiceProvider.php b/src/SvgServiceProvider.php
index 2fa6a16..9bd604f 100644
--- a/src/SvgServiceProvider.php
+++ b/src/SvgServiceProvider.php
@@ -3,6 +3,7 @@
namespace Lightscale\LaralightSvg;
use Lightscale\LaralightSvg\Http\Controllers\SvgController;
+use Lightscale\LaralightSvg\Console\Commands;
use Illuminate\Foundation\Console\AboutCommand;
use Illuminate\Support\ServiceProvider;
@@ -31,6 +32,10 @@ class SvgServiceProvider extends ServiceProvider
], static::NAMESPACE . '-config');
$this->registerRoutes();
+
+ if ($this->app->runningInConsole()) {
+ $this->registerCommands();
+ }
}
public function registerRoutes()
@@ -39,4 +44,11 @@ class SvgServiceProvider extends ServiceProvider
->name('laralight-svg.serve-svg');
}
+ public function registerCommands()
+ {
+ $this->commands([
+ Commands\SvgClearState::class
+ ]);
+ }
+
}