repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeCar.php
tests/di/Fake/FakeCar.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Inject; use Ray\Di\Di\Named; use Ray\Di\Di\PostConstruct; class FakeCar implements FakeCarInterface { public $engine; public $hardtop; public $frontTyre; public $rearTyre; public $isConstructed = false; public $rightMirror; p...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeContextualModule.php
tests/di/Fake/FakeContextualModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeContextualModule extends AbstractModule { private $context; public function __construct($context) { $this->context = $context; parent::__construct(); } protected function configure() { $this->bind(FakeRobotIn...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopInterfaceModule.php
tests/di/Fake/FakeAopInterfaceModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAopInterfaceModule extends AbstractModule { protected function configure() { $this->bind(FakeAopInterface::class)->to(FakeAop::class); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRobot.php
tests/di/Fake/FakeRobot.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeRobot implements FakeRobotInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeConstantModule.php
tests/di/Fake/FakeConstantModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeConstantModule extends AbstractModule { protected function configure() { $this->bind()->annotatedWith(FakeConstant::class)->toInstance('kuma'); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeOpenCarModule.php
tests/di/Fake/FakeOpenCarModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeOpenCarModule extends AbstractModule { protected function configure() { $this->bind(FakeCarInterface::class)->to(FakeCar::class); $this->bind(FakeEngineInterface::class)->to(FakeEngine::class); // No hardtop, Go open ! ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeConstant.php
tests/di/Fake/FakeConstant.php
<?php declare(strict_types=1); namespace Ray\Di; use Attribute; use Ray\Di\Di\Qualifier; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)] #[Qualifier] final class FakeConstant { public function __construct( public $value = null ) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeModuleInModule.php
tests/di/Fake/FakeModuleInModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeModuleInModule extends AbstractModule { protected function configure() { $this->install(new FakeInstanceBindModule2(new FakeInstanceBindModule())); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeFormerBindingHasPriorityModule.php
tests/di/Fake/FakeFormerBindingHasPriorityModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeFormerBindingHasPriorityModule extends AbstractModule { protected function configure() { $this->install(new FakeInstanceBindModule()); $this->install(new FakeInstanceBindModuleOneTo3()); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHandleBarQualifier.php
tests/di/Fake/FakeHandleBarQualifier.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeHandleBarQualifier { public function __construct( #[FakeRight('rightMirror')] public FakeMirrorInterface $rightMirror, #[FakeLeft('leftMirror')] public FakeMirrorInterface $leftMirror ) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeUnNamedClass.php
tests/di/Fake/FakeUnNamedClass.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeUnNamedClass { public function __construct(string $value) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeMirrorLeft.php
tests/di/Fake/FakeMirrorLeft.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeMirrorLeft implements FakeMirrorInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoClass.php
tests/di/Fake/FakeAnnoClass.php
<?php declare(strict_types=1); namespace Ray\Di; use Attribute; #[Attribute(Attribute::TARGET_CLASS)] class FakeAnnoClass { public static $order = []; }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeCarInterface.php
tests/di/Fake/FakeCarInterface.php
<?php declare(strict_types=1); namespace Ray\Di; interface FakeCarInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeToProviderBindModule.php
tests/di/Fake/FakeToProviderBindModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeToProviderBindModule extends AbstractModule { protected function configure() { $this->bind(FakeRobotInterface::class)->toProvider(FakeRobotProvider::class); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeBcParameterQualifierModule.php
tests/di/Fake/FakeBcParameterQualifierModule.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Annotation\FakeInjectOne; class FakeBcParameterQualifierModule extends AbstractModule { protected function configure(): void { // Bind with FakeInjectOne qualifier $this->bind(FakeGearStickInterface::class) ->annotatedWi...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakePhp8CarModule.php
tests/di/Fake/FakePhp8CarModule.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Annotation\FakeInjectOne; use Ray\Di\Annotation\FakeLeft; use Ray\Di\Annotation\FakeRight; class FakePhp8CarModule extends AbstractModule { protected function configure() { $this->bind(FakeCarInterface::class)->to(FakePhp8Car::class); // de...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeEngineInterface.php
tests/di/Fake/FakeEngineInterface.php
<?php declare(strict_types=1); namespace Ray\Di; interface FakeEngineInterface { public function foo(); }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoInterceptor5.php
tests/di/Fake/FakeAnnoInterceptor5.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\MethodInvocation; class FakeAnnoInterceptor5 implements MethodInterceptor { public function invoke(MethodInvocation $invocation) { FakeAnnoClass::$order[] = self::class; return $invocation->proceed()...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAnnoInterceptorInterface.php
tests/di/Fake/FakeAnnoInterceptorInterface.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\MethodInvocation; interface FakeAnnoInterceptorInterface extends MethodInterceptor { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopGrapher.php
tests/di/Fake/FakeAopGrapher.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAopGrapher implements FakeAopInterface { public $a; public function __construct($a) { $this->a = $a; } public function returnSame($a) { return $a; } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedParamsConsumer.php
tests/di/Fake/FakeAssistedParamsConsumer.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Assisted; class FakeAssistedParamsConsumer { /** * @return array [int, FakeAbstractDb] */ public function getUser($id, #[Assisted] ?FakeAbstractDb $db = null) { return [$id, $db]; } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeGearStickInterface.php
tests/di/Fake/FakeGearStickInterface.php
<?php declare(strict_types=1); namespace Ray\Di; interface FakeGearStickInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeOverrideInstallModule.php
tests/di/Fake/FakeOverrideInstallModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeOverrideInstallModule extends AbstractModule { protected function configure() { $this->install(new FakeInstanceBindModule()); $this->override(new FakeInstanceBindModuleOneTo3()); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakePropConstruct.php
tests/di/Fake/FakePropConstruct.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Named; class FakePropConstruct { public function __construct( #[Named('abc')] public readonly string $abc) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeLogStringModule.php
tests/di/Fake/FakeLogStringModule.php
<?php declare(strict_types=1); namespace Ray\Di; use stdClass; class FakeLogStringModule extends AbstractModule { protected function configure() { $this->bind()->annotatedWith('null')->toInstance(null); $this->bind()->annotatedWith('bool')->toInstance(true); $this->bind()->annotatedW...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeDoubleInterceptorInterface.php
tests/di/Fake/FakeDoubleInterceptorInterface.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\MethodInvocation; interface FakeDoubleInterceptorInterface extends MethodInterceptor { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeToProviderSingletonBindModule.php
tests/di/Fake/FakeToProviderSingletonBindModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeToProviderSingletonBindModule extends AbstractModule { protected function configure() { $this->bind(FakeRobotInterface::class)->toProvider(FakeRobotProvider::class)->in(Scope::SINGLETON); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeRobotTeam.php
tests/di/Fake/FakeRobotTeam.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeRobotTeam { public $robot1; public $robot2; public function __construct(FakeRobot $robot1, FakeRobot $robot2) { $this->robot1 = $robot1; $this->robot2 = $robot2; } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeEngine2.php
tests/di/Fake/FakeEngine2.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeEngine2 implements FakeEngineInterface { public function foo() { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeSet.php
tests/di/Fake/FakeSet.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Inject; use Ray\Di\Di\Set; final class FakeSet { /** * @param Provider<FakeEngineInterface> $provider */ public function __construct(#[Set(FakeEngineInterface::class)] public ProviderInterface $provider) { $this->provider =...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakePriorityModule.php
tests/di/Fake/FakePriorityModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakePriorityModule extends AbstractModule { protected function configure() { $this->bindInterceptor( $this->matcher->any(), $this->matcher->any(), [FakeDoubleInterceptor::class] ); $this->bindP...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeEngineToProviderModule.php
tests/di/Fake/FakeEngineToProviderModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeEngineToProviderModule extends AbstractModule { protected function configure() { $this->bind(FakeEngine::class)->toProvider(FakeEngineProvider::class); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAbstractDb.php
tests/di/Fake/FakeAbstractDb.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAbstractDb { public $dbId; public function __construct($id) { $this->dbId = $id; } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInstanceBindModuleOneTo3.php
tests/di/Fake/FakeInstanceBindModuleOneTo3.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeInstanceBindModuleOneTo3 extends AbstractModule { protected function configure() { $this->bind('')->annotatedWith('one')->toInstance(3); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHardtop.php
tests/di/Fake/FakeHardtop.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeHardtop implements FakeHardtopInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/NullVisitor.php
tests/di/Fake/NullVisitor.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Bind; use ReflectionParameter; final class NullVisitor implements VisitorInterface { /** @inheritDoc */ public function visitDependency( NewInstance $newInstance, ?string $postConstruct, bool $isSingleton ) { $n...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopDoublyInstallModule.php
tests/di/Fake/FakeAopDoublyInstallModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAopDoublyInstallModule extends AbstractModule { protected function configure() { $this->install(new FakeAopInterceptorModule()); $this->install(new FakeAopInterceptorModule()); $this->install(new FakeAopInterfaceModule()); ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeInstallModule.php
tests/di/Fake/FakeInstallModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeInstallModule extends AbstractModule { protected function configure() { $this->install(new FakeInstanceBindModule()); $this->install(new FakeInstanceBindModule2()); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeWalkRobot.php
tests/di/Fake/FakeWalkRobot.php
<?php declare(strict_types=1); namespace Ray\Di; #[FakeConstant('class_constant_val')] class FakeWalkRobot { /** @var FakeLegInterface */ public $leftLeg; /** @var FakeLegInterface */ public $rightLeg; #[FakeConstant(10)] #[FakeAnnoMethod1] public function __construct(FakeLegInterface $...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeUntarget.php
tests/di/Fake/FakeUntarget.php
<?php declare(strict_types=1); /** * This file is part of the _package_ package */ namespace Ray\Di; class FakeUntarget { public $child; public function __construct(FakeUntargetChild $child) { $this->child = $child; } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeHandleInterface.php
tests/di/Fake/FakeHandleInterface.php
<?php declare(strict_types=1); namespace Ray\Di; interface FakeHandleInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeEngineProvider.php
tests/di/Fake/FakeEngineProvider.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeEngineProvider implements ProviderInterface { public function get() { return new FakeEngine(); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopInterceptorModule.php
tests/di/Fake/FakeAopInterceptorModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAopInterceptorModule extends AbstractModule { protected function configure() { $this->bindInterceptor( $this->matcher->any(), $this->matcher->any(), [FakeDoubleInterceptor::class] ); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedConsumer.php
tests/di/Fake/FakeAssistedConsumer.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Assisted; use Ray\Di\Di\Named; class FakeAssistedConsumer { /** * @return FakeRobotInterface|null */ public function assistOne($a, $b, #[Assisted] ?FakeRobotInterface $robot = null) { unset($a, $b); return $robot; ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAopInstallModule.php
tests/di/Fake/FakeAopInstallModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAopInstallModule extends AbstractModule { protected function configure() { $this->install(new FakeAopInterceptorModule()); $this->install(new FakeAopInterfaceModule()); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeToConstructorRobot.php
tests/di/Fake/FakeToConstructorRobot.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeToConstructorRobot implements FakeRobotInterface { public $leg; public $tmpDir; public $engine; public function __construct(FakeLegInterface $leg, $tmpDir) { $this->leg = $leg; $this->tmpDir = $tmpDir; } public f...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedInjectConsumer.php
tests/di/Fake/FakeAssistedInjectConsumer.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Annotation\FakeInjectOne; use Ray\Di\Di\Assisted; use Ray\Di\Di\Inject; use Ray\Di\Di\Named; class FakeAssistedInjectConsumer { public function assistOne($a, $b, #[Assisted] ?FakeRobotInterface $robot = null): ?FakeRobotInterface { unset($a...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeLeatherGearStick.php
tests/di/Fake/FakeLeatherGearStick.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeLeatherGearStick implements FakeGearStickInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeOnionInterceptor3.php
tests/di/Fake/FakeOnionInterceptor3.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\MethodInvocation; class FakeOnionInterceptor3 implements MethodInterceptor { public function invoke(MethodInvocation $invocation) { return $invocation->proceed(); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeAssistedDbModule.php
tests/di/Fake/FakeAssistedDbModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeAssistedDbModule extends AbstractModule { protected function configure() { $this->bind(FakeAbstractDb::class)->toProvider(FakeAssistedDbProvider::class); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeToBindSingletonModule.php
tests/di/Fake/FakeToBindSingletonModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeToBindSingletonModule extends AbstractModule { protected function configure() { $this->bind(FakeRobotInterface::class)->to(FakeRobot::class)->in(Scope::SINGLETON); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/FakeClassInstanceBindModule.php
tests/di/Fake/FakeClassInstanceBindModule.php
<?php declare(strict_types=1); namespace Ray\Di; class FakeClassInstanceBindModule extends AbstractModule { private $object; public function __construct($object) { $this->object = $object; parent::__construct(); } protected function configure() { $this->bind(FakeEngi...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/Annotation/FakeInjectOne.php
tests/di/Fake/Annotation/FakeInjectOne.php
<?php declare(strict_types=1); namespace Ray\Di\Annotation; use Attribute; use Ray\Di\Di\InjectInterface; use Ray\Di\Di\Qualifier; #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER), Qualifier] final class FakeInjectOne implements InjectInterface { public function isOptional() { ret...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/Annotation/FakeRight.php
tests/di/Fake/Annotation/FakeRight.php
<?php declare(strict_types=1); namespace Ray\Di\Annotation; use Attribute; use Ray\Di\Di\Qualifier; #[Attribute, Qualifier] final class FakeRight { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/Annotation/FakeLeft.php
tests/di/Fake/Annotation/FakeLeft.php
<?php declare(strict_types=1); namespace Ray\Di\Annotation; use Attribute; use Ray\Di\Di\Qualifier; #[Attribute, Qualifier] final class FakeLeft { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/Annotation/FakeQualifierOnly.php
tests/di/Fake/Annotation/FakeQualifierOnly.php
<?php declare(strict_types=1); namespace Ray\Di\Annotation; use Attribute; use Ray\Di\Di\Qualifier; /** * Qualifier-only attribute for testing (no InjectInterface) */ #[Attribute(Attribute::TARGET_METHOD), Qualifier] final class FakeQualifierOnly { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/di/Fake/Annotation/FakeNotQualifer.php
tests/di/Fake/Annotation/FakeNotQualifer.php
<?php declare(strict_types=1); namespace Ray\Di\Annotation; use Attribute; use Ray\Di\Di\Qualifier; #[Attribute] final class FakeNotQualifer { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src-deprecated/di/EmptyModule.php
src-deprecated/di/EmptyModule.php
<?php declare(strict_types=1); namespace Ray\Di; /** * @deprecated User NullModule instead */ class EmptyModule extends AbstractModule { /** * {@inheritdoc} */ protected function configure() : void { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src-deprecated/di/BcStringParser.php
src-deprecated/di/BcStringParser.php
<?php declare(strict_types=1); namespace Ray\Di; use function explode; use function substr; use function trim; /** * Backward compatible string format parser for toConstructor() method * * Parses "key=value,key=value" string format for backward compatibility. * This format is deprecated. Use parameter-level att...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src-deprecated/di/NullCache.php
src-deprecated/di/NullCache.php
<?php declare(strict_types=1); namespace Ray\Di; use Doctrine\Common\Cache\CacheProvider; /** * @psalm-suppress DeprecatedInterface * @deprecated */ final class NullCache extends CacheProvider { /** * {@inheritDoc} */ protected function doFetch($id) { return false; } /** ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src-deprecated/di/Provider.php
src-deprecated/di/Provider.php
<?php declare(strict_types=1); namespace Ray\Di; /** * @deprecated User ProviderInterface instead */ interface Provider extends ProviderInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src-deprecated/di/BcParameterQualifier.php
src-deprecated/di/BcParameterQualifier.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\InjectInterface; use Ray\Di\Di\Qualifier; use ReflectionAttribute; use ReflectionClass; use ReflectionMethod; use function count; /** * Backward compatible parameter qualifier for single-parameter methods * * Automatically applies method-level Quali...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests-php8/AssistedInjectTest.php
tests-php8/AssistedInjectTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; use Ray\Di\Exception\MethodInvocationNotAvailable; class AssistedInjectTest extends TestCase { /** @var InjectorInterface */ private $injector; protected function setUp(): void { $this->injector = new Injector(...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests-php8/DualReaderTest.php
tests-php8/DualReaderTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; use function assert; class DualReaderTest extends TestCase { public function testPhp8Attribute(): FakePhp8Car { $injector = new Injector(new FakePhp8CarModule()); $car = $injector->getInstance(FakePhp8Car::clas...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/07-assisted-injection.php
demo/07-assisted-injection.php
<?php declare(strict_types=1); use Composer\Autoload\ClassLoader; use Ray\Di\AbstractModule; use Ray\Di\Injector; $loader = require dirname(__DIR__) . '/vendor/autoload.php'; /** @var ClassLoader $loader */ $loader->addPsr4('', __DIR__ . '/finder'); $injector = new Injector(new class extends AbstractModule{ pro...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/05b-constructor-binding-setter-injection.php
demo/05b-constructor-binding-setter-injection.php
<?php declare(strict_types=1); namespace Ray\Di\Demo; use Ray\Di\AbstractModule; use Ray\Di\InjectionPoints; use Ray\Di\Injector; use function dirname; use const PHP_EOL; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } interface MovieListerInterface { } class Finder implements F...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/02-provider-binding.php
demo/02-provider-binding.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Injector; use Ray\Di\ProviderInterface; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } class Finder implements FinderInterface { public $datetime; public function __construct(DateTimeInterface $dateTime)...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/04-untarget-binding.php
demo/04-untarget-binding.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Injector; use Ray\Di\Scope; require dirname(__DIR__) . '/vendor/autoload.php'; class Finder { } class FinderModule extends AbstractModule { protected function configure() { $this->bind(Finder::class)->in(Scope::SINGLETON); } }...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/10-cache.php
demo/10-cache.php
<?php declare(strict_types=1); use Composer\Autoload\ClassLoader; use Ray\Di\Injector; $loader = require dirname(__DIR__) . '/vendor/autoload.php'; /** @var ClassLoader $loader */ $loader->addPsr4('', __DIR__ . '/finder'); $start = microtime(true); $injector = new Injector(new FinderModule()); $movieLister = $injec...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/01a-linked-binding.php
demo/01a-linked-binding.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Injector; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } class Finder implements FinderInterface { } interface MovieListerInterface { } class MovieLister implements MovieListerInterface { public function __...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/11-script-injector.php
demo/11-script-injector.php
<?php declare(strict_types=1); use Composer\Autoload\ClassLoader; use Ray\Compiler\DiCompiler; use Ray\Compiler\ScriptInjector; use Ray\Di\Injector; $loader = require dirname(__DIR__) . '/vendor/autoload.php'; /** @var ClassLoader $loader */ $loader->addPsr4('', __DIR__ . '/finder'); $start = microtime(true); $inje...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/01b-linked-binding-setter-injection.php
demo/01b-linked-binding-setter-injection.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Di\Inject; use Ray\Di\Injector; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } class Finder implements FinderInterface { } interface MovieListerInterface { } class MovieLister implements MovieListerInterface { ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/12-dependency-chain-error-message.php
demo/12-dependency-chain-error-message.php
<?php declare(strict_types=1); use Composer\Autoload\ClassLoader; use Ray\Di\AbstractModule; use Ray\Di\Exception\Unbound; use Ray\Di\Injector; $loader = require dirname(__DIR__) . '/vendor/autoload.php'; /** @var ClassLoader $loader */ $loader->addPsr4('', __DIR__ . '/chain-error'); class DeepLinkedClassBindingMod...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/03-injection-point.php
demo/03-injection-point.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\InjectionPointInterface; use Ray\Di\Injector; use Ray\Di\ProviderInterface; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } interface MovieListerInterface { } class Finder implements FinderInterface { private...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/02a-named-by-qualifier.php
demo/02a-named-by-qualifier.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Di\Qualifier; use Ray\Di\Injector; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } class LegacyFinder implements FinderInterface { } interface MovieListerInterface { } class MovieLister implements MovieListerInt...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/run.php
demo/run.php
<?php declare(strict_types=1); putenv('TMPDIR=' . __DIR__ . '/tmp'); passthru('php ' . __DIR__ . '/01a-linked-binding.php'); passthru('php ' . __DIR__ . '/01b-linked-binding-setter-injection.php'); passthru('php ' . __DIR__ . '/02-provider-binding.php'); passthru('php ' . __DIR__ . '/02a-named-by-qualifier.php'); pa...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/05a-constructor-binding.php
demo/05a-constructor-binding.php
<?php declare(strict_types=1); require dirname(__DIR__) . '/vendor/autoload.php'; use Ray\Di\AbstractModule; use Ray\Di\Injector; // public PDO::__construct ( string $dsn [, string $username [, string $password [, array $options ]]] ) class PdoModuleLegacyNaming extends AbstractModule { protected function con...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/02b-named-by-named.php
demo/02b-named-by-named.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Di\Named; use Ray\Di\Injector; require dirname(__DIR__) . '/vendor/autoload.php'; interface FinderInterface { } class LegacyFinder implements FinderInterface { } class ModernFinder implements FinderInterface { } interface MovieListerInterface {...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/chain-error/C.php
demo/chain-error/C.php
<?php declare(strict_types=1); class C { public function __construct(D $d) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/chain-error/D.php
demo/chain-error/D.php
<?php declare(strict_types=1); class D { public function __construct(EInterface $e) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/chain-error/A.php
demo/chain-error/A.php
<?php declare(strict_types=1); class A { public function __construct(B $b) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/chain-error/B.php
demo/chain-error/B.php
<?php declare(strict_types=1); class B { public function __construct(C $c) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/chain-error/EInterface.php
demo/chain-error/EInterface.php
<?php declare(strict_types=1); interface EInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/Db.php
demo/finder/Db.php
<?php declare(strict_types=1); use Ray\Di\Di\PostConstruct; class Db implements DbInterface { public function __construct($dsn, $username, $password) { } #[PostConstruct] public function init() { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/MovieLister.php
demo/finder/MovieLister.php
<?php declare(strict_types=1); use Ray\Di\Di\Inject; class MovieLister implements MovieListerInterface { public function __construct(FinderInterface $finder) { } #[Inject] public function setFinder01(FinderInterface $finder, FinderInterface $finder1, FinderInterface $finder2) { } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/Sorter.php
demo/finder/Sorter.php
<?php declare(strict_types=1); class Sorter { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/DbFinder.php
demo/finder/DbFinder.php
<?php declare(strict_types=1); use Ray\Di\Di\Inject; class DbFinder implements FinderInterface { public function __construct(DbInterface $db) { } #[Inject] public function setDb(DbInterface $db) { } #[Inject] public function setSorter(Sorter $sorter, Sorter $sorte2) { } ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/FinderInterface.php
demo/finder/FinderInterface.php
<?php declare(strict_types=1); interface FinderInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/DbInterface.php
demo/finder/DbInterface.php
<?php declare(strict_types=1); interface DbInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/Finder.php
demo/finder/Finder.php
<?php declare(strict_types=1); class Finder implements FinderInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/FinderModule.php
demo/finder/FinderModule.php
<?php declare(strict_types=1); use Ray\Di\AbstractModule; use Ray\Di\Scope; class FinderModule extends AbstractModule { protected function configure() { $this->bind(Sorter::class)->in(Scope::SINGLETON); $this->bind(DbInterface::class)->toConstructor(Db::class, 'dsn=dsn,username=username,passw...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/MovieFinder.php
demo/finder/MovieFinder.php
<?php declare(strict_types=1); use Ray\Di\Di\Assisted; use Ray\Di\Di\Inject; class MovieFinder { public function find($name, #[Inject] ?FinderInterface $finder = null) { return sprintf('searching [%s] by [%s]', $name, get_class($finder)); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/demo/finder/MovieListerInterface.php
demo/finder/MovieListerInterface.php
<?php declare(strict_types=1); interface MovieListerInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
subins2000/search
https://github.com/subins2000/search/blob/c538bff98314b5e99b14900f317537e08a9d6d0d/search.php
search.php
<?php require_once "load.php";?> <html> <head> <?php head($GLOBALS['displayQ'], array("search"));?> </head> <body> <?php headerElem();?> <div class="container"> <script>document.getElementById('query').focus();</script> <?php if($GLOBALS['q'] == ""){ echo "A query please..."...
php
MIT
c538bff98314b5e99b14900f317537e08a9d6d0d
2026-01-05T02:18:46.609351Z
false
subins2000/search
https://github.com/subins2000/search/blob/c538bff98314b5e99b14900f317537e08a9d6d0d/index.php
index.php
<?php require "load.php";?> <html> <head> <?php head("", array("index"));?> </head> <body> <?php headerElem();?> <div class="container"> <center> <h1>Web Search</h1> <form class="searchForm" action="search.php" method="GET"> <input type="text" autocomplete="off" name="q...
php
MIT
c538bff98314b5e99b14900f317537e08a9d6d0d
2026-01-05T02:18:46.609351Z
false
subins2000/search
https://github.com/subins2000/search/blob/c538bff98314b5e99b14900f317537e08a9d6d0d/load.php
load.php
<?php $docRoot = __DIR__; require_once "$docRoot/inc/config.php"; require_once "$docRoot/inc/functions.php";
php
MIT
c538bff98314b5e99b14900f317537e08a9d6d0d
2026-01-05T02:18:46.609351Z
false
subins2000/search
https://github.com/subins2000/search/blob/c538bff98314b5e99b14900f317537e08a9d6d0d/url.php
url.php
<?php $url=isset($_GET['u']) ? urldecode($_GET['u']):""; if(filter_var($url, FILTER_VALIDATE_URL) === FALSE || $url==""){ header("Location: http://".$_SERVER['HTTP_HOST'], 302); exit; }else{ ?> <html> <head> <noscript><META http-equiv="refresh" content="0;URL=<?php echo$url;?>"></noscript> <script>window.lo...
php
MIT
c538bff98314b5e99b14900f317537e08a9d6d0d
2026-01-05T02:18:46.609351Z
false
subins2000/search
https://github.com/subins2000/search/blob/c538bff98314b5e99b14900f317537e08a9d6d0d/crawler/runCrawl.php
crawler/runCrawl.php
<?php $dir=realpath(dirname(__FILE__)); $s="$dir/crawlStatus.txt"; $c=file_get_contents($s); if($c==0){ function execInbg($cmd) { if (substr(php_uname(), 0, 7) == "Windows"){ pclose(popen("start /B ". $cmd, "r")); } else { exec($cmd . " > /dev/null &"); } } execInbg("php -q...
php
MIT
c538bff98314b5e99b14900f317537e08a9d6d0d
2026-01-05T02:18:46.609351Z
false
subins2000/search
https://github.com/subins2000/search/blob/c538bff98314b5e99b14900f317537e08a9d6d0d/crawler/crawl.php
crawler/crawl.php
<?php if (!isset($crawlToken) || $crawlToken != 418941) { if (!isset($_GET['78wc58v'])) { die('Error'); } } ini_set('display_errors', 'on'); $dir = realpath(dirname(__FILE__)); include $dir . '/../inc/config.php'; function shutdown() { global $dir; $error = error_get_last(); if ($error !==...
php
MIT
c538bff98314b5e99b14900f317537e08a9d6d0d
2026-01-05T02:18:46.609351Z
false