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
F3327647: D795.id2015.diff
Mon, Jul 8, 18:36
F3323593: D795.id2016.diff
Mon, Jul 8, 00:57
F3323282: D795.id.diff
Sun, Jul 7, 23:39
Unknown Object (File)
Sun, Jul 7, 07:07
Unknown Object (File)
Sun, Jul 7, 02:25
Unknown Object (File)
Sun, Jul 7, 01:40
Unknown Object (File)
Fri, Jul 5, 17:52
Unknown Object (File)
Wed, Jul 3, 11:30
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.