-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Re-working the autoloading internals.
- Loading branch information
Showing
14 changed files
with
456 additions
and
232 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
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,24 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Route; | ||
use Lunarstorm\LaravelDDD\Facades\Autoload; | ||
|
||
Route::prefix('laravel-ddd') | ||
->middleware(['web']) | ||
->as('ddd.') | ||
->group(function () { | ||
Route::get('/', function () { | ||
return response('home'); | ||
})->name('home'); | ||
|
||
Route::get('/config', function () { | ||
return response(config('ddd')); | ||
})->name('config'); | ||
|
||
Route::get('/autoload', function () { | ||
return response([ | ||
'providers' => Autoload::getRegisteredProviders(), | ||
'commands' => Autoload::getRegisteredCommands(), | ||
]); | ||
})->name('autoload'); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Lunarstorm\LaravelDDD\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
use Lunarstorm\LaravelDDD\Support\AutoloadManager; | ||
|
||
/** | ||
* @see \Lunarstorm\LaravelDDD\Support\AutoloadManager | ||
* | ||
* @method static void boot() | ||
* @method static array getAllLayerPaths() | ||
* @method static array getCustomLayerPaths() | ||
* @method static array getRegisteredCommands() | ||
* @method static array getRegisteredProviders() | ||
* @method static Autoload cacheCommands() | ||
* @method static Autoload cacheProviders() | ||
*/ | ||
class Autoload extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return AutoloadManager::class; | ||
} | ||
} |
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 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
Oops, something went wrong.