Skip to content

Commit 9349542

Browse files
committed
Add support for routes/console.php
1 parent ebc7cf5 commit 9349542

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Roots/Acorn/Console/Kernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,10 @@ public function __construct(Application $app, Dispatcher $events)
9696
public function commands()
9797
{
9898
$this->load($this->app->path('Console/Commands'));
99+
100+
$consoleFile = base_path('routes/console.php');
101+
if (file_exists($consoleFile)) {
102+
require $consoleFile;
103+
}
99104
}
100105
}

0 commit comments

Comments
 (0)