Skip to content

Commit 1442521

Browse files
committed
fixed autoloading and upgraded to laravel 11
1 parent f8e3b65 commit 1442521

12 files changed

+21
-20
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vendor
22
.idea/
33
composer.lock
4+
.DS_Store

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"require": {
3838
"php": ">=8.1",
39-
"laravel/framework": "^10.0"
39+
"laravel/framework": "^10.0|^11.0"
4040
},
4141
"require-dev": {
4242
"phpunit/phpunit": "^9.6.0 || ^10.0.1"

src/Commands/CreateCsr.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Src\Commands;
5+
namespace Scrumble\Csr\Commands;
66

77
use Illuminate\Support\Str;
88
use Illuminate\Console\Command;

src/Commands/subcommands/CreateController.php src/Commands/SubCommand/CreateController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

src/Commands/subcommands/CreateIRepository.php src/Commands/SubCommand/CreateIRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

src/Commands/subcommands/CreateIService.php src/Commands/SubCommand/CreateIService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

src/Commands/subcommands/CreateModel.php src/Commands/SubCommand/CreateModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

src/Commands/subcommands/CreatePolicy.php src/Commands/SubCommand/CreatePolicy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

src/Commands/subcommands/CreateRepository.php src/Commands/SubCommand/CreateRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

@@ -24,7 +24,7 @@ class CreateRepository extends CsrGeneratorCommand
2424
* @var string
2525
*/
2626
protected $type = 'Repository';
27-
27+
2828
/**
2929
* Get the stub file for the generator.
3030
*

src/Commands/subcommands/CreateService.php src/Commands/SubCommand/CreateService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88

src/Commands/subcommands/CsrGeneratorCommand.php src/Commands/SubCommand/CsrGeneratorCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Commands;
5+
namespace Scrumble\Csr\Commands\SubCommand;
66

77
use Illuminate\Support\Str;
88
use Illuminate\Console\GeneratorCommand;

src/CsrServiceProvider.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrumble\Csr\Src;
5+
namespace Scrumble\Csr;
66

7-
use Scrumble\Csr\Commands\CreateModel;
8-
use Scrumble\Csr\Commands\CreatePolicy;
9-
use Scrumble\Csr\Commands\CreateService;
10-
use Scrumble\Csr\Src\Commands\CreateCsr;
11-
use Scrumble\Csr\Commands\CreateIService;
12-
use Scrumble\Csr\Commands\CreateRepository;
13-
use Scrumble\Csr\Commands\CreateController;
14-
use Scrumble\Csr\Commands\CreateIRepository;
7+
use Scrumble\Csr\Commands\CreateCsr;
8+
use Scrumble\Csr\Commands\SubCommand\CreateModel;
9+
use Scrumble\Csr\Commands\SubCommand\CreatePolicy;
10+
use Scrumble\Csr\Commands\SubCommand\CreateService;
11+
use Scrumble\Csr\Commands\SubCommand\CreateIService;
12+
use Scrumble\Csr\Commands\SubCommand\CreateRepository;
13+
use Scrumble\Csr\Commands\SubCommand\CreateController;
14+
use Scrumble\Csr\Commands\SubCommand\CreateIRepository;
1515
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
1616

1717
class CsrServiceProvider extends LaravelServiceProvider

0 commit comments

Comments
 (0)