-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from NaokiTsuchiya/feat/support-laravel-10
- Loading branch information
Showing
8 changed files
with
162 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 100% | ||
patch: | ||
default: | ||
target: 100% |
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,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ray\RayDiForLaravel\Classes; | ||
|
||
use Ray\Di\AbstractModule; | ||
|
||
class FakeInvalidBindModule extends AbstractModule | ||
{ | ||
|
||
protected function configure() | ||
{ | ||
$this->bind(InjectableService::class); | ||
} | ||
} |
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,34 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ray\RayDiForLaravel\Classes; | ||
|
||
use Doctrine\Common\Cache\CacheProvider; | ||
use Ray\Compiler\AbstractInjectorContext; | ||
use Ray\Di\AbstractModule; | ||
use Ray\Di\NullCache; | ||
|
||
class FakeInvalidContext extends AbstractInjectorContext | ||
{ | ||
public function __construct(string $tmpDir) | ||
{ | ||
$dir = str_replace('\\', '_', self::class); | ||
parent::__construct($tmpDir . '/tmp/' . $dir); | ||
} | ||
|
||
public function __invoke(): AbstractModule | ||
{ | ||
return new FakeInvalidBindModule(); | ||
} | ||
|
||
public function getSavedSingleton(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function getCache(): CacheProvider | ||
{ | ||
return new NullCache(); | ||
} | ||
} |