Skip to content

Commit

Permalink
Autoload helper file, update TODO.md, add class docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon14 committed Oct 27, 2023
1 parent c3424f3 commit 76fa1a3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# brandon14/fossabot-commander-laravel TODO

- Write tests.
- Fix Psalm configs.
- Fix CI workflow.
- Get docs built using doctum and publish on Github.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"autoload": {
"psr-4": {
"Brandon14\\FossabotCommanderLaravel\\": "src/"
}
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
Expand Down
6 changes: 6 additions & 0 deletions src/Commands/MakeFossabotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
use Illuminate\Console\GeneratorCommand;
use Illuminate\Console\Concerns\CreatesMatchingTest;

/**
* Command to generate {@link \Brandon14\FossabotCommander\Contracts\FossabotCommand} instances.
*
* @author Brandon Clothier <brandon14125@gmail.com>
*/
final class MakeFossabotCommand extends GeneratorCommand
{
use CreatesMatchingTest;
Expand Down Expand Up @@ -72,6 +77,7 @@ protected function getStub()
$published = resource_path('stubs/vendor/fossabot-commander').'/fossabot-command.stub';
$included = __DIR__.'/../../resources/stubs/fossabot-command.stub';

// Use overridden stub if present.
if ($this->files->exists($published)) {
return $published;
}
Expand Down
5 changes: 5 additions & 0 deletions src/FossabotCommanderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
use Brandon14\FossabotCommanderLaravel\Commands\MakeFossabotCommand;
use Brandon14\FossabotCommander\Contracts\FossabotCommander as FossabotCommanderInterface;

/**
* Registers FossabotCommander services and commands with Laravel's container.
*
* @author Brandon Clothier <brandon14125@gmail.com>
*/
final class FossabotCommanderServiceProvider extends ServiceProvider
{
/**
Expand Down

0 comments on commit 76fa1a3

Please sign in to comment.