Skip to content

Commit

Permalink
[BREAKING] Remove "Foundation" from service provider Namespace
Browse files Browse the repository at this point in the history
Help the layout of any dependent projects stick to normal Laravel
structure, e.g. cachethq/cachet#4071
  • Loading branch information
sedan07 committed Jan 14, 2021
1 parent 4ecb32b commit e47c4b5
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 e47c4b5

Please sign in to comment.