Skip to content

Commit

Permalink
Merge pull request #1 from fiveai/remove-foundation-namespace
Browse files Browse the repository at this point in the history
[BREAKING] Remove "Foundation" from service provider Namespace
  • Loading branch information
sedan07 committed Jan 14, 2021
2 parents 4ecb32b + e47c4b5 commit 631bdc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EventTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function getEventServiceProvider()
{
$split = explode('\\', (new ReflectionClass($this))->getName());

return "{$split[0]}\\{$split[2]}\\Foundation\\Providers\\EventServiceProvider";
return "{$split[0]}\\{$split[2]}\\Providers\\EventServiceProvider";
}

public function testEventImplementsTheCorrectInterfaces()
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProviderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ protected function getServiceProviderClass($app)
$split = explode('\\', (new ReflectionClass($this))->getName());
$class = substr(end($split), 0, -4);

return "{$split[0]}\\{$split[2]}\\Foundation\\Providers\\{$class}";
return "{$split[0]}\\{$split[2]}\\Providers\\{$class}";
}
}

0 comments on commit 631bdc1

Please sign in to comment.