Skip to content

Commit

Permalink
use afterApplicationRefreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 14, 2024
1 parent e9fd489 commit 26fb011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Support/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct()
public function boot(): void
{
if ($this->isBooted) {
// dump('Autoloader Already booted');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Autoload/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
it('remembers the last cached state', function () {
DomainCache::set('domain-commands', []);

$this->afterApplicationCreated(function () {
$this->afterApplicationRefreshed(function () {
app('ddd.autoloader')->boot();
});

Expand All @@ -82,7 +82,7 @@
DomainCache::set('domain-commands', []);
DomainCache::clear();

$this->afterApplicationCreated(function () {
$this->afterApplicationRefreshed(function () {
app('ddd.autoloader')->boot();
});

Expand Down

0 comments on commit 26fb011

Please sign in to comment.