-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove cache:clearing hook. * Fix styling * Autoload ignore & custom filter callback. * Normalize filter paths to forward slashes. * Fix styling * Update config and readme. * Change wording. * Corrected autoload_ignore config key. * Fix styling * Update default migrations ignore folder. * Typo. * Another typo. * Ensure config sample in readme is up-to-date. * Add new autoload_ignore key to upgrade stub. --------- Co-authored-by: JasperTey <[email protected]>
- Loading branch information
Showing
12 changed files
with
300 additions
and
41 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Lunarstorm\LaravelDDD; | ||
|
||
class DomainManager | ||
{ | ||
/** | ||
* The autoload path filter callback. | ||
* | ||
* @var callable|null | ||
*/ | ||
protected $autoloadFilter; | ||
|
||
public function __construct() | ||
{ | ||
$this->autoloadFilter = null; | ||
} | ||
|
||
public function filterAutoloadPathsUsing(callable $filter): void | ||
{ | ||
$this->autoloadFilter = $filter; | ||
} | ||
|
||
public function getAutoloadFilter(): ?callable | ||
{ | ||
return $this->autoloadFilter; | ||
} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
namespace Lunarstorm\LaravelDDD\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
/** | ||
* @see \Lunarstorm\LaravelDDD\DomainManager | ||
* | ||
* @method static void filterAutoloadPathsUsing(callable $filter) | ||
*/ | ||
class DDD extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Lunarstorm\LaravelDDD\DomainManager::class; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.