From b9e0a988334a960f26949dd1397a452dd0282f34 Mon Sep 17 00:00:00 2001 From: CyberSai Date: Fri, 20 Dec 2019 11:22:26 +0000 Subject: [PATCH] Creating View Group added --- src/Console/Commands/CreateViewGroup.php | 30 +++++++++++++++++++ src/Console/Commands/CreateViewValidator.php | 30 +++++++++++++++++++ .../Commands/Stubs/ussd_view_group.stub | 16 ++++++++++ .../Commands/Stubs/ussd_view_validator.stub | 17 +++++++++++ src/UssdServiceProvider.php | 8 +++-- 5 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 src/Console/Commands/CreateViewGroup.php create mode 100644 src/Console/Commands/CreateViewValidator.php create mode 100644 src/Console/Commands/Stubs/ussd_view_group.stub create mode 100644 src/Console/Commands/Stubs/ussd_view_validator.stub diff --git a/src/Console/Commands/CreateViewGroup.php b/src/Console/Commands/CreateViewGroup.php new file mode 100644 index 0000000..2066e2c --- /dev/null +++ b/src/Console/Commands/CreateViewGroup.php @@ -0,0 +1,30 @@ +views = []; + parent::__construct($request); + } + + public function getSelectedView() + { + // TODO: Implement getSelectedView() method. + } +} diff --git a/src/Console/Commands/Stubs/ussd_view_validator.stub b/src/Console/Commands/Stubs/ussd_view_validator.stub new file mode 100644 index 0000000..d54792d --- /dev/null +++ b/src/Console/Commands/Stubs/ussd_view_validator.stub @@ -0,0 +1,17 @@ +views = []; + parent::__construct($request); + } + + function getValidView() + { + // TODO: Implement getValidView() method. + } + +} diff --git a/src/UssdServiceProvider.php b/src/UssdServiceProvider.php index 621196f..6982563 100644 --- a/src/UssdServiceProvider.php +++ b/src/UssdServiceProvider.php @@ -8,6 +8,8 @@ use CyberSai\LaravelUssd\Console\Commands\CreateModel; use CyberSai\LaravelUssd\Console\Commands\CreateSimpleView; use CyberSai\LaravelUssd\Console\Commands\CreateTitledView; +use CyberSai\LaravelUSSD\Console\Commands\CreateViewGroup; +use CyberSai\LaravelUSSD\Console\Commands\CreateViewValidator; use Illuminate\Support\ServiceProvider; class UssdServiceProvider extends ServiceProvider @@ -29,7 +31,9 @@ public function boot() CreateSimpleView::class, CreateTitledView::class, CreateListView::class, - CreateController::class + CreateController::class, + CreateViewGroup::class, + CreateViewValidator::class ]); } } @@ -41,4 +45,4 @@ public function register() { $this->mergeConfigFrom(__DIR__ . '/../config/ussd.php', 'config'); } -} \ No newline at end of file +}