Page MenuHomeDevCentral

Allow to get a specified command from console Kernel
ClosedPublic

Authored by dereckson on Jan 3 2017, 02:39.
Tags
None
Referenced Files
F3303538: D795.id2015.diff
Wed, Jul 3, 04:46
F3302403: D795.diff
Tue, Jul 2, 23:44
Unknown Object (File)
Sat, Jun 29, 01:55
Unknown Object (File)
Fri, Jun 28, 11:51
Unknown Object (File)
Thu, Jun 27, 10:47
Unknown Object (File)
Thu, Jun 27, 06:28
Unknown Object (File)
Wed, Jun 26, 17:16
Unknown Object (File)
Wed, Jun 26, 17:16
Subscribers
None

Details

Summary

Artisan::all() allows to get all the commands registered
in Nasqueron\Notifications\Console\Kernel, ie all custom
commands, in addition to the framework commands.

Currently, the logic to get one specified command lived
on our test suite. We move this to the Kernel class.

Test Plan

New unit tests for Kernel::get and Kernel::getByClass

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 3 2017, 02:40
dereckson added inline comments.
tests/Console/Commands/ConfigShowTest.php
23 ↗(On Diff #2015)

Drop this — it was a git stash artefact.

dereckson marked an inline comment as done.

Clean revision

This revision is now accepted and ready to land.Jan 3 2017, 02:44
This revision was automatically updated to reflect the committed changes.