generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: namespace and service provider (#7)
* Added mac :DS_Store files to gitignore * Added: Service Provider with package discovery in composer.json * Fixed: Command being in correct namespace for following PSR-4 * Fixed: Naming of import for command in service provider * Removed: Registering its own service provider. no need after adding extra step in composer * Solves #6 --------- Co-authored-by: Jonas Schelde <[email protected]>
- Loading branch information
1 parent
b7e5af8
commit 44cf42f
Showing
6 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ psalm.xml | |
vendor | ||
.php-cs-fixer.cache | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
shell:=/bin/bash | ||
|
||
composer_install: | ||
@php81 composer install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace EmilHorlyck\LaravelPareto; | ||
|
||
use Illuminate\Support\ServiceProvider as BaseServiceProvider; | ||
use EmilHorlyck\LaravelPareto\Commands\TestCommand; | ||
|
||
class ServiceProvider extends BaseServiceProvider | ||
{ | ||
/** | ||
* Register services. | ||
*/ | ||
public function register(): void | ||
{ | ||
} | ||
|
||
/** | ||
* Bootstrap services. | ||
*/ | ||
public function boot(): void | ||
{ | ||
if ($this->app->runningInConsole()) { | ||
$this->commands([ | ||
TestCommand::class | ||
]); | ||
} | ||
} | ||
} |