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
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/en/passwords.php
resources/lang/en/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/en/pagination.php
resources/lang/en/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pag...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/en/validation.php
resources/lang/en/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/en/auth.php
resources/lang/en/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/views/errors/503.blade.php
resources/views/errors/503.blade.php
<!DOCTYPE html> <html> <head> <title>Be right back.</title> <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"> <style> html, body { height: 100%; } body { margin: 0; ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/benchmarks/Base62Bench.php
benchmarks/Base62Bench.php
<?php /* * This file is part of the Base62 package * * Copyright (c) 2016-2021 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * https://github.com/tuupola/base62 * */ use Tuupola\Base62; use Tuupola\Base62\PhpEncoder; use Tuupola\...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/src/Base62Proxy.php
src/Base62Proxy.php
<?php declare(strict_types = 1); /* Copyright (c) 2016-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/src/Base62.php
src/Base62.php
<?php declare(strict_types = 1); /* Copyright (c) 2016-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/src/Base62/BcmathEncoder.php
src/Base62/BcmathEncoder.php
<?php declare(strict_types = 1); /* Copyright (c) 2011 Anthony Ferrara Copyright (c) 2016-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/src/Base62/GmpEncoder.php
src/Base62/GmpEncoder.php
<?php declare(strict_types = 1); /* Copyright (c) 2016-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/src/Base62/BaseEncoder.php
src/Base62/BaseEncoder.php
<?php declare(strict_types = 1); /* Copyright (c) 2016-2025 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/src/Base62/PhpEncoder.php
src/Base62/PhpEncoder.php
<?php declare(strict_types = 1); /* Copyright (c) 2011 Anthony Ferrara Copyright (c) 2016-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
tuupola/base62
https://github.com/tuupola/base62/blob/d09081f8f8bd1b83724b2a4d6199fa50b141c7fd/tests/Base62Test.php
tests/Base62Test.php
<?php declare(strict_types=1); /* Copyright (c) 2016-2021 Mika Tuupola Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
php
MIT
d09081f8f8bd1b83724b2a4d6199fa50b141c7fd
2026-01-05T02:18:37.999712Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/rector.php
rector.php
<?php declare(strict_types=1); use Rector\Config\RectorConfig; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; return RectorConfig::configure() ->withPaths([ __DIR__ . '/src/di', ]) ->withSkip([ __DIR__ . '/src-deprecated', ]) ->withPhpSets(php82: true...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/InjectionPoint.php
src/di/InjectionPoint.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\ReflectionClass; use Ray\Aop\ReflectionMethod; use Ray\Di\Di\Qualifier; use ReflectionParameter; use function assert; use function class_exists; final class InjectionPoint implements InjectionPointInterface { private string $pClass; /** @var str...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/ProviderSetProvider.php
src/di/ProviderSetProvider.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Set; use Ray\Di\Exception\SetNotFound; /** * @implements ProviderInterface<mixed> * @template T of object */ final class ProviderSetProvider implements ProviderInterface { public function __construct(private InjectionPointInterface $ip, private I...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinder.php
src/di/MultiBinder.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\MultiBinding\LazyInstance; use Ray\Di\MultiBinding\LazyInterface; use Ray\Di\MultiBinding\LazyProvider; use Ray\Di\MultiBinding\LazyTo; use Ray\Di\MultiBinding\MultiBindings; /** * @psalm-import-type BindableInterface from Types * @psalm-import-type Lazy...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Name.php
src/di/Name.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Named; use Ray\Di\Di\Qualifier; use ReflectionAttribute; use ReflectionClass; use ReflectionException; use ReflectionMethod; use ReflectionParameter; use function class_exists; use function is_string; use function preg_match; /** * @psalm-import-type ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Grapher.php
src/di/Grapher.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Compiler; use function file_exists; use function spl_autoload_register; use function sprintf; use function str_replace; /** * @psalm-import-type MethodArguments from Types * @psalm-import-type ScriptDir from Types */ final class Grapher { private ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/SpyCompiler.php
src/di/SpyCompiler.php
<?php declare(strict_types=1); namespace Ray\Di; use LogicException; use Ray\Aop\BindInterface; use Ray\Aop\CompilerInterface; use function array_keys; use function implode; use function method_exists; use function sprintf; /** * @codeCoverageIgnore */ final class SpyCompiler implements CompilerInterface { /...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/CompileNullObject.php
src/di/CompileNullObject.php
<?php declare(strict_types=1); namespace Ray\Di; /** * Convert NullObjectDependency to Dependency */ final class CompileNullObject { public function __invoke(Container $container, string $scriptDir): void { $container->map(static function (DependencyInterface $dependency) use ($scriptDir): Dependen...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AcceptInterface.php
src/di/AcceptInterface.php
<?php declare(strict_types=1); namespace Ray\Di; /** * This interface defines the accept method, which allows an object to accept a visitor. */ interface AcceptInterface { /** * Accepts a visitor and applies its behavior on the current object. * * @param VisitorInterface $visitor The visitor to ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/DependencyProvider.php
src/di/DependencyProvider.php
<?php declare(strict_types=1); namespace Ray\Di; use function assert; use function sprintf; final class DependencyProvider implements DependencyInterface, AcceptInterface { private bool $isSingleton = false; /** @var ?mixed */ private $instance; public function __construct( /** * ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Dependency.php
src/di/Dependency.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Bind as AopBind; use Ray\Aop\CompilerInterface; use Ray\Aop\MethodInterceptor; use Ray\Aop\WeavedInterface; use ReflectionClass; use ReflectionMethod; use function assert; use function method_exists; use function sprintf; /** * @psalm-import-type Method...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/ProviderProvider.php
src/di/ProviderProvider.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Di\Set; /** * @implements ProviderInterface<mixed> * @template T of object */ final class ProviderProvider implements ProviderInterface { /** @param Set<T> $set */ public function __construct(private InjectorInterface $injector, private Set $set...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/BindValidator.php
src/di/BindValidator.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\NullInterceptor; use Ray\Aop\ReflectionClass; use Ray\Di\Exception\InvalidProvider; use Ray\Di\Exception\InvalidType; use Ray\Di\Exception\NotFound; use function class_exists; use function interface_exists; use function spri...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AssistedInjectInterceptor.php
src/di/AssistedInjectInterceptor.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\MethodInvocation; use Ray\Di\Di\Assisted; use Ray\Di\Di\Inject; use Ray\Di\Di\InjectInterface; use Ray\Di\Di\Named; use ReflectionAttribute; use ReflectionNamedType; use ReflectionParameter; use function assert; use function...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AssistedModule.php
src/di/AssistedModule.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInvocation; /** * Module for assisted injection using PHP 8 attributes * * This module enables assisted injection by delegating to AssistedInjectModule * and provides necessary bindings for method invocation context. * Use #[Assisted] attribute...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AnnotatedClass.php
src/di/AnnotatedClass.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\ReflectionClass; use Ray\Di\Di\PostConstruct; use ReflectionMethod; final class AnnotatedClass { private AnnotatedClassMethods $injectionMethod; public function __construct() { $this->injectionMethod = new AnnotatedClassMethods(); ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/ContainerFactory.php
src/di/ContainerFactory.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Compiler; use function array_shift; /** * @psalm-import-type ModuleList from Types * @psalm-import-type ScriptDir from Types */ final class ContainerFactory { /** * @param AbstractModule|ModuleList|null $module Module(s) * @param Scrip...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/SetterMethods.php
src/di/SetterMethods.php
<?php declare(strict_types=1); namespace Ray\Di; use Exception; /** * @psalm-import-type SetterMethodsList from Types */ final class SetterMethods implements AcceptInterface { /** * @param SetterMethodsList $setterMethods */ public function __construct(private array $setterMethods) { } ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Container.php
src/di/Container.php
<?php declare(strict_types=1); namespace Ray\Di; use BadMethodCallException; use Ray\Aop\Compiler; use Ray\Aop\CompilerInterface; use Ray\Aop\Pointcut; use Ray\Di\Exception\NoHint; use Ray\Di\Exception\Unbound; use Ray\Di\Exception\Untargeted; use Ray\Di\MultiBinding\MultiBindings; use ReflectionClass; use function...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/ProviderSetModule.php
src/di/ProviderSetModule.php
<?php declare(strict_types=1); namespace Ray\Di; final class ProviderSetModule extends AbstractModule { protected function configure(): void { $this->bind(ProviderInterface::class)->toProvider(ProviderSetProvider::class); } }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/SetContextInterface.php
src/di/SetContextInterface.php
<?php declare(strict_types=1); namespace Ray\Di; interface SetContextInterface { /** * Set provider context * * @param string $context * * @return void */ public function setContext($context); }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/InjectableInterface.php
src/di/InjectableInterface.php
<?php declare(strict_types=1); namespace Ray\Di; interface InjectableInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AnnotatedClassMethods.php
src/di/AnnotatedClassMethods.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\ReflectionClass; use Ray\Aop\ReflectionMethod; use Ray\Di\Di\InjectInterface; use ReflectionAttribute; final class AnnotatedClassMethods { /** * @phpstan-param ReflectionClass<object> $class */ public function getConstructorName(Reflecti...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Instance.php
src/di/Instance.php
<?php declare(strict_types=1); namespace Ray\Di; use function gettype; use function is_object; use function is_scalar; use function sprintf; final class Instance implements DependencyInterface, AcceptInterface { /** * @param mixed $value */ public function __construct(public $value) { } ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/InjectorInterface.php
src/di/InjectorInterface.php
<?php declare(strict_types=1); namespace Ray\Di; /** * Builds the graphs of objects that make up your application * * The injector tracks the dependencies for each type and uses bindings to inject them. * This is the core of Ray.Di, although you rarely interact with it directly. * This "behind-the-scenes" opera...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Types.php
src/di/Types.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\Pointcut; /** * Ray.Di Domain Types for Psalm * * This file contains Psalm type definitions for the Ray.Di dependency injection framework. * These types enhance static analysis and provide better IDE support. * * Conta...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception.php
src/di/Exception.php
<?php declare(strict_types=1); namespace Ray\Di; final class Exception extends \Exception { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/NewInstance.php
src/di/NewInstance.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Bind as AopBind; use Ray\Aop\WeavedInterface; use ReflectionClass; use ReflectionException; use Stringable; use function assert; /** * @psalm-import-type MethodArguments from Types */ final class NewInstance implements Stringable { /** @var class-s...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/DependencyFactory.php
src/di/DependencyFactory.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\ReflectionClass; use ReflectionMethod; use function assert; use function class_exists; final class DependencyFactory { /** * Create dependency object * * @param ReflectionClass<object> $class */ public function newAnnotatedDep...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Injector.php
src/di/Injector.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Compiler; use Ray\Di\Exception\DirectoryNotWritable; use Ray\Di\Exception\Untargeted; use function assert; use function file_exists; use function is_dir; use function is_writable; use function spl_autoload_register; use function sprintf; use function str_...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Arguments.php
src/di/Arguments.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Exception\NoHint; use Ray\Di\Exception\Unbound; use ReflectionMethod; use function sprintf; /** * @psalm-import-type ArgumentsList from Types * @psalm-import-type MethodArguments from Types */ final class Arguments implements AcceptInterface { /** ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AbstractModule.php
src/di/AbstractModule.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\AbstractMatcher; use Ray\Aop\Matcher; use Ray\Aop\Pointcut; use Ray\Aop\PriorityPointcut; use Stringable; use function assert; use function class_exists; use function interface_exists; /** * @psalm-import-type BindableInterface from Types * @psalm-impo...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Bind.php
src/di/Bind.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInterceptor; use Ray\Aop\ReflectionClass; use ReflectionException; use ReflectionMethod; use Stringable; use function assert; use function class_exists; use function interface_exists; /** * @psalm-import-type BindableInterface from Types * @psalm...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/InjectionPointInterface.php
src/di/InjectionPointInterface.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\ReflectionClass; use Ray\Aop\ReflectionMethod; use ReflectionParameter; /** * @psalm-import-type QualifierList from Types */ interface InjectionPointInterface { /** * Return parameter reflection */ public function getParameter(): Refle...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AssistedInjectModule.php
src/di/AssistedInjectModule.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\Matcher\AssistedInjectMatcher; /** * Assisted module for php8 attributes */ final class AssistedInjectModule extends AbstractModule { protected function configure(): void { $this->bindInterceptor( $this->matcher->any(), ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/InjectionPoints.php
src/di/InjectionPoints.php
<?php declare(strict_types=1); namespace Ray\Di; use ReflectionException; use ReflectionMethod; /** * @psalm-import-type InjectionPointDefinition from Types * @psalm-import-type InjectionPointsList from Types */ final class InjectionPoints { /** * Injection points * * @var InjectionPointsList ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/DependencyInterface.php
src/di/DependencyInterface.php
<?php declare(strict_types=1); namespace Ray\Di; /** * @psalm-import-type DependencyContainer from Types * @psalm-import-type ScopeType from Types * @psalm-import-type InjectableValue from Types */ interface DependencyInterface { /** * @return string */ public function __toString(); /** ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/VisitorInterface.php
src/di/VisitorInterface.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Bind as AopBind; use ReflectionParameter; /** * Visits a Dependency * * @psalm-import-type SetterMethodsList from Types * @psalm-import-type ArgumentsList from Types */ interface VisitorInterface { /** * Visits a Dependency * * @re...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/NullObjectDependency.php
src/di/NullObjectDependency.php
<?php declare(strict_types=1); namespace Ray\Di; use Koriym\NullObject\NullObject; use ReflectionClass; use function assert; use function is_dir; /** * @codeCoverageIgnore */ final class NullObjectDependency implements DependencyInterface { /** * @param class-string $interface */ public functio...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/AspectBind.php
src/di/AspectBind.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\Bind as AopBind; use Ray\Aop\MethodInterceptor; use function assert; /** * @psalm-import-type MethodInterceptorBindings from Types */ final class AspectBind implements AcceptInterface { public function __construct(private AopBind $bind) { }...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MethodInvocationProvider.php
src/di/MethodInvocationProvider.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\MethodInvocation; use Ray\Di\Exception\MethodInvocationNotAvailable; /** * @implements ProviderInterface<MethodInvocation> */ final class MethodInvocationProvider implements ProviderInterface { /** @var ?MethodInvocation<object> */ private ?Meth...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Scope.php
src/di/Scope.php
<?php declare(strict_types=1); namespace Ray\Di; final class Scope { /** * Singleton scope */ public const SINGLETON = 'Singleton'; /** * Prototype scope */ public const PROTOTYPE = 'Prototype'; }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Argument.php
src/di/Argument.php
<?php declare(strict_types=1); namespace Ray\Di; use ReflectionException; use ReflectionMethod; use ReflectionNamedType; use ReflectionParameter; use Stringable; use function assert; use function in_array; use function sprintf; /** * @psalm-import-type DependencyIndex from Types */ final class Argument implement...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/ModuleString.php
src/di/ModuleString.php
<?php declare(strict_types=1); namespace Ray\Di; use function assert; use function implode; use function serialize; use function sort; use function sprintf; use function unserialize; use const PHP_EOL; /** * @psalm-import-type PointcutList from Types */ final class ModuleString { /** * @param PointcutLi...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/BuiltinModule.php
src/di/BuiltinModule.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Di\MultiBinding\MultiBindingModule; final class BuiltinModule { public function __invoke(AbstractModule $module): AbstractModule { $module->install(new AssistedModule()); $module->install(new ProviderSetModule()); $module->inst...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/SetterMethod.php
src/di/SetterMethod.php
<?php declare(strict_types=1); namespace Ray\Di; use Exception; use LogicException; use Ray\Di\Exception\Unbound; use ReflectionMethod; use function call_user_func_array; use function is_callable; final class SetterMethod implements AcceptInterface { private readonly string $method; private readonly Argume...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/NullModule.php
src/di/NullModule.php
<?php declare(strict_types=1); namespace Ray\Di; final class NullModule extends AbstractModule { 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/di/ProviderInterface.php
src/di/ProviderInterface.php
<?php declare(strict_types=1); namespace Ray\Di; /** * @template T of mixed */ interface ProviderInterface { /** * @return T */ public function get(); }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Untarget.php
src/di/Untarget.php
<?php declare(strict_types=1); namespace Ray\Di; use Ray\Aop\ReflectionClass; final class Untarget { /** * @phpstan-var ReflectionClass<object> * @psalm-var ReflectionClass */ private readonly ReflectionClass $class; private string $scope = Scope::PROTOTYPE; /** * @param class-s...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/NullDependency.php
src/di/NullDependency.php
<?php declare(strict_types=1); namespace Ray\Di; /** * @codeCoverageIgnore */ final class NullDependency implements DependencyInterface { /** * {@inheritdoc} */ public function __toString(): string { return ''; } /** * {@inheritdoc} */ public function inject(Con...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Annotation/ScriptDir.php
src/di/Annotation/ScriptDir.php
<?php declare(strict_types=1); namespace Ray\Di\Annotation; use Attribute; use Ray\Di\Di\Qualifier; /** * Script directory * * This qualifier should not use in an application code. */ #[Attribute, Qualifier] final class ScriptDir { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/MapProvider.php
src/di/MultiBinding/MapProvider.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use Ray\Di\Di\Set; use Ray\Di\Exception\SetNotFound; use Ray\Di\InjectionPointInterface; use Ray\Di\InjectorInterface; use Ray\Di\ProviderInterface; /** * @implements ProviderInterface<Map> */ final class MapProvider implements 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/di/MultiBinding/LazyInstance.php
src/di/MultiBinding/LazyInstance.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use Ray\Di\InjectorInterface; /** * @template T of mixed * @psalm-immutable */ final class LazyInstance implements LazyInterface { /** * @param T $instance */ public function __construct(private $instance) { } /** *...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/MultiBindings.php
src/di/MultiBinding/MultiBindings.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use ArrayObject; use Ray\Di\Types; use function array_merge_recursive; /** * @psalm-import-type LazyBindingList from Types * @extends ArrayObject<string, LazyBindingList> */ final class MultiBindings extends ArrayObject { public function merge(se...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/LazyProvider.php
src/di/MultiBinding/LazyProvider.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use Ray\Di\InjectorInterface; use Ray\Di\ProviderInterface; /** * @template T of ProviderInterface */ final class LazyProvider implements LazyInterface { /** * @param class-string<T> $class */ public function __construct(private strin...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/LazyTo.php
src/di/MultiBinding/LazyTo.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use Ray\Di\InjectorInterface; /** * @template T of object */ final class LazyTo implements LazyInterface { /** * @param class-string<T> $class */ public function __construct(private string $class) { } /** * @return T...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/Map.php
src/di/MultiBinding/Map.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use ArrayAccess; use Countable; use Generator; use Iterator; use IteratorAggregate; use LogicException; use Ray\Di\InjectorInterface; use ReturnTypeWillChange; use function array_key_exists; use function count; /** * @template T * @implements ArrayAcc...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/LazyInterface.php
src/di/MultiBinding/LazyInterface.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use Ray\Di\InjectorInterface; interface LazyInterface { /** * @return mixed */ public function __invoke(InjectorInterface $injector); }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/MultiBinding/MultiBindingModule.php
src/di/MultiBinding/MultiBindingModule.php
<?php declare(strict_types=1); namespace Ray\Di\MultiBinding; use Ray\Di\AbstractModule; use Ray\Di\Types; /** * @psalm-import-type BindableInterface from Types */ final class MultiBindingModule extends AbstractModule { protected function configure(): void { $this->bind(MultiBindings::class); ...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/Inject.php
src/di/Di/Inject.php
<?php declare(strict_types=1); namespace Ray\Di\Di; use Attribute; /** * Annotates your class methods into which the Injector should inject values * * @psalm-immutable */ #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)] final class Inject implements InjectInterface { /** * @Suppress...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/Qualifier.php
src/di/Di/Qualifier.php
<?php declare(strict_types=1); namespace Ray\Di\Di; use Attribute; /** * Identifies qualifier annotations */ #[Attribute(Attribute::TARGET_CLASS)] final class Qualifier { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/Set.php
src/di/Di/Set.php
<?php declare(strict_types=1); namespace Ray\Di\Di; use Attribute; /** * @template T of object * @psalm-immutable */ #[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)] final class Set { /** * @param ''|class-string<T> $interface */ public function __construct(public string $...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/Assisted.php
src/di/Di/Assisted.php
<?php declare(strict_types=1); namespace Ray\Di\Di; use Attribute; /** * Marks a parameter for assisted injection * * When applied to a method parameter, this indicates that the parameter * should be automatically injected by the DI container during method invocation. */ #[Attribute(Attribute::TARGET_PARAMETER...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/PostConstruct.php
src/di/Di/PostConstruct.php
<?php declare(strict_types=1); namespace Ray\Di\Di; use Attribute; /** * PostConstruct * * The PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to * perform any initialization. This method MUST be invoked before the class is put into service. The method a...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/InjectInterface.php
src/di/Di/InjectInterface.php
<?php declare(strict_types=1); namespace Ray\Di\Di; interface InjectInterface { /** * Whether or not to use optional injection * * @return bool */ public function isOptional(); }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Di/Named.php
src/di/Di/Named.php
<?php declare(strict_types=1); namespace Ray\Di\Di; use Attribute; /** * Annotates named things * * @psalm-immutable */ #[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_METHOD | Attribute::TARGET_PROPERTY)] final class Named { public function __construct(public 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/src/di/Exception/InvalidProvider.php
src/di/Exception/InvalidProvider.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use InvalidArgumentException; final class InvalidProvider extends InvalidArgumentException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/NotFound.php
src/di/Exception/NotFound.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use LogicException; final class NotFound extends LogicException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/Untargeted.php
src/di/Exception/Untargeted.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; final class Untargeted extends Unbound { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/InvalidContext.php
src/di/Exception/InvalidContext.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use InvalidArgumentException; final class InvalidContext extends InvalidArgumentException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/Unbound.php
src/di/Exception/Unbound.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use Exception; use LogicException; use function array_pop; use function array_reverse; use function implode; use function sprintf; /** * Exception thrown when a binding is not found * * Message format: '{type}-{name}' in file:line ($var) * * Examples:...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/SetNotFound.php
src/di/Exception/SetNotFound.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use LogicException; final class SetNotFound extends LogicException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/ExceptionInterface.php
src/di/Exception/ExceptionInterface.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; interface ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/InvalidToConstructorNameParameter.php
src/di/Exception/InvalidToConstructorNameParameter.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use InvalidArgumentException; /** * @see https://github.com/ray-di/Ray.Di#constructor-bindings */ final class InvalidToConstructorNameParameter extends InvalidArgumentException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/NoHint.php
src/di/Exception/NoHint.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; /** * Exception thrown when a parameter has no type hint and no binding name * * Message format: ${var} (file:line) * * This occurs when Ray.Di cannot identify what to inject because * the parameter has neither a class/interface type hint nor a #[Named...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/DirectoryNotWritable.php
src/di/Exception/DirectoryNotWritable.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use RuntimeException; final class DirectoryNotWritable extends RuntimeException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/MethodInvocationNotAvailable.php
src/di/Exception/MethodInvocationNotAvailable.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; final class MethodInvocationNotAvailable extends Unbound { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Exception/InvalidType.php
src/di/Exception/InvalidType.php
<?php declare(strict_types=1); namespace Ray\Di\Exception; use InvalidArgumentException; final class InvalidType extends InvalidArgumentException implements ExceptionInterface { }
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/src/di/Matcher/AssistedInjectMatcher.php
src/di/Matcher/AssistedInjectMatcher.php
<?php declare(strict_types=1); namespace Ray\Di\Matcher; use LogicException; use Ray\Aop\AbstractMatcher; use Ray\Di\Di\Assisted; use Ray\Di\Di\InjectInterface; use ReflectionAttribute; use ReflectionClass; use ReflectionMethod; final class AssistedInjectMatcher extends AbstractMatcher { /** * {@inheritdoc...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/bootstrap.php
tests/bootstrap.php
<?php declare(strict_types=1); putenv('TMPDIR=' . __DIR__ . '/tmp'); require_once dirname(__DIR__) . '/vendor/autoload.php'; $deleteFiles = static function (string $path) use (&$deleteFiles): void { foreach (array_filter((array) glob($path . '/*')) as $file) { is_dir($file) ? $deleteFiles($file) : unlin...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false
ray-di/Ray.Di
https://github.com/ray-di/Ray.Di/blob/2a03a153559fbdd94544e1741a25972fc2c9947a/tests/type/InjectorInterfaceTest.php
tests/type/InjectorInterfaceTest.php
<?php declare(strict_types=1); namespace Ray\Di; use DateTime; use DateTimeInterface; final class InjectorInterfaceTest { private DateTimeInterface $a; // @phpstan-ignore-line private DateTime $b; // @phpstan-ignore-line private mixed $m; // @phpstan-ignore-line public function __construct() { ...
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/ModuleMergerTest.php
tests/di/ModuleMergerTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; class ModuleMergerTest extends TestCase { public function testInvoke(): void { $modules = [ new class extends AbstractModule { protected function configure() { ...
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/AssistedTest.php
tests/di/AssistedTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; use Ray\Di\Exception\MethodInvocationNotAvailable; class AssistedTest extends TestCase { /** @var InjectorInterface */ private $injector; protected function setUp(): void { $this->injector = new Injector(new Fa...
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/InjectorTest.php
tests/di/InjectorTest.php
<?php declare(strict_types=1); namespace Ray\Di; use LogicException; use PDO; use PHPUnit\Framework\TestCase; use Ray\Aop\NullInterceptor; use Ray\Di\Exception\Unbound; use function assert; use function defined; use function file_get_contents; use function is_string; use function passthru; use function serialize; u...
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/BcParameterQualifierIntegrationTest.php
tests/di/BcParameterQualifierIntegrationTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; class BcParameterQualifierIntegrationTest extends TestCase { public function testBcParameterQualifierWorks(): void { $injector = new Injector(new FakeBcParameterQualifierModule()); /** @psalm-suppress Deprecated...
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/NewInstanceTest.php
tests/di/NewInstanceTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; use ReflectionClass; use ReflectionMethod; use function assert; class NewInstanceTest extends TestCase { /** @var NewInstance */ protected $newInstance; protected function setUp(): void { /** @var ReflectionCl...
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/ArgumentsTest.php
tests/di/ArgumentsTest.php
<?php declare(strict_types=1); namespace Ray\Di; use PHPUnit\Framework\TestCase; use ReflectionMethod; use ReflectionParameter; use function spl_object_hash; class ArgumentsTest extends TestCase { /** @var Arguments */ protected $arguments; protected function setUp(): void { $this->argumen...
php
MIT
2a03a153559fbdd94544e1741a25972fc2c9947a
2026-01-05T02:18:29.568252Z
false