Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

[BREAKING] Remove "Foundation" from service provider Namespace #21

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}";
}
}