11 | PHP Function Disabled — The set_time_limit() function is currently disabled on your server. We use this function to ensure that the migration doesn't time out. We haven't disabled the plugin however, so you're free to cross your fingers and hope for the best. You may want to contact your web host to enable this function.", 'wp-migrate-db');
13 | if (function_exists('ini_get')) {
14 | printf(__('Your current PHP run time limit is set to %s seconds.', 'wp-migrate-db'), ini_get('max_execution_time'));
15 | } ?>
16 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/vendor/autoload.php:
--------------------------------------------------------------------------------
1 | = 70000) {
18 | return \unserialize($serialized, $options);
19 | }
20 | if (!\array_key_exists('allowed_classes', $options) || \true === $options['allowed_classes']) {
21 | return \unserialize($serialized);
22 | }
23 | $allowedClasses = $options['allowed_classes'];
24 | if (\false === $allowedClasses) {
25 | $allowedClasses = array();
26 | }
27 | if (!\is_array($allowedClasses)) {
28 | $allowedClasses = array();
29 | \trigger_error('unserialize(): allowed_classes option should be array or boolean', \E_USER_WARNING);
30 | }
31 | $worker = new DisallowedClassesSubstitutor($serialized, $allowedClasses);
32 | return \unserialize($worker->getSubstitutedSerialized());
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/composer/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Copyright (c) Nils Adermann, Jordi Boggiano
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is furnished
9 | to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all
12 | copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
21 |
22 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_classmap.php:
--------------------------------------------------------------------------------
1 | $vendorDir . '/composer/InstalledVersions.php',
10 | );
11 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_files.php:
--------------------------------------------------------------------------------
1 | $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
10 | 'dbi_mdb_bbf73f3db644d3dced353b837903e74c' => $vendorDir . '/php-di/php-di/src/DI/functions.php',
11 | );
12 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_namespaces.php:
--------------------------------------------------------------------------------
1 | array($vendorDir . '/symfony/polyfill-ctype'),
10 | 'DeliciousBrains\\WPMDB\\Container\\Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
11 | 'DeliciousBrains\\WPMDB\\Container\\PhpOption\\' => array($vendorDir . '/phpoption/phpoption/src/PhpOption'),
12 | 'DeliciousBrains\\WPMDB\\Container\\PhpDocReader\\' => array($vendorDir . '/php-di/phpdoc-reader/src/PhpDocReader'),
13 | 'DeliciousBrains\\WPMDB\\Container\\Invoker\\' => array($vendorDir . '/php-di/invoker/src'),
14 | 'DeliciousBrains\\WPMDB\\Container\\Interop\\Container\\' => array($vendorDir . '/container-interop/container-interop/src/Interop/Container'),
15 | 'DeliciousBrains\\WPMDB\\Container\\Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
16 | 'DeliciousBrains\\WPMDB\\Container\\DI\\' => array($vendorDir . '/php-di/php-di/src/DI'),
17 | 'DeliciousBrains\\WPMDB\\Container\\Brumann\\Polyfill\\' => array($vendorDir . '/brumann/polyfill-unserialize/src'),
18 | );
19 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_real.php:
--------------------------------------------------------------------------------
1 | register(true);
33 |
34 | $filesToLoad = \Composer\Autoload\ComposerStaticInitc3a9210a8f67f3c808c5ed9072cde06b::$files;
35 | $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
36 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
37 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
38 |
39 | require $file;
40 | }
41 | }, null, null);
42 | foreach ($filesToLoad as $fileIdentifier => $file) {
43 | $requireFile($fileIdentifier, $file);
44 | }
45 |
46 | return $loader;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/container-interop/container-interop/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 container-interop
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/vendor/container-interop/container-interop/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "container-interop\/container-interop",
3 | "type": "library",
4 | "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
5 | "homepage": "https:\/\/github.com\/container-interop\/container-interop",
6 | "license": "MIT",
7 | "autoload": {
8 | "psr-4": {
9 | "DeliciousBrains\\WPMDB\\Container\\Interop\\Container\\": "src\/Interop\/Container\/"
10 | }
11 | },
12 | "require": {
13 | "psr\/container": "^1.0"
14 | }
15 | }
--------------------------------------------------------------------------------
/vendor/container-interop/container-interop/docs/images/interoperating_containers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deliciousbrains/wp-migrate-db/cc252faa607c49ba7647d9f6b75d4b9146a87bda/vendor/container-interop/container-interop/docs/images/interoperating_containers.png
--------------------------------------------------------------------------------
/vendor/container-interop/container-interop/docs/images/priority.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deliciousbrains/wp-migrate-db/cc252faa607c49ba7647d9f6b75d4b9146a87bda/vendor/container-interop/container-interop/docs/images/priority.png
--------------------------------------------------------------------------------
/vendor/container-interop/container-interop/docs/images/side_by_side_containers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deliciousbrains/wp-migrate-db/cc252faa607c49ba7647d9f6b75d4b9146a87bda/vendor/container-interop/container-interop/docs/images/side_by_side_containers.png
--------------------------------------------------------------------------------
/vendor/container-interop/container-interop/src/Interop/Container/ContainerInterface.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | class InvocationException extends \Exception
11 | {
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/Exception/NotCallableException.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | class NotCallableException extends InvocationException
11 | {
12 | /**
13 | * @param string $value
14 | * @param bool $containerEntry
15 | * @return self
16 | */
17 | public static function fromInvalidCallable($value, $containerEntry = \false)
18 | {
19 | if (\is_object($value)) {
20 | $message = \sprintf('Instance of %s is not a callable', \get_class($value));
21 | } elseif (\is_array($value) && isset($value[0]) && isset($value[1])) {
22 | $class = \is_object($value[0]) ? \get_class($value[0]) : $value[0];
23 | $extra = \method_exists($class, '__call') ? ' A __call() method exists but magic methods are not supported.' : '';
24 | $message = \sprintf('%s::%s() is not a callable.%s', $class, $value[1], $extra);
25 | } else {
26 | if ($containerEntry) {
27 | $message = \var_export($value, \true) . ' is neither a callable nor a valid container entry';
28 | } else {
29 | $message = \var_export($value, \true) . ' is not a callable';
30 | }
31 | }
32 | return new self($message);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/Exception/NotEnoughParametersException.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | class NotEnoughParametersException extends InvocationException
11 | {
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/InvokerInterface.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | interface InvokerInterface
14 | {
15 | /**
16 | * Call the given function using the given parameters.
17 | *
18 | * @param callable $callable Function to call.
19 | * @param array $parameters Parameters to use.
20 | *
21 | * @return mixed Result of the function.
22 | *
23 | * @throws InvocationException Base exception class for all the sub-exceptions below.
24 | * @throws NotCallableException
25 | * @throws NotEnoughParametersException
26 | */
27 | public function call($callable, array $parameters = array());
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/AssociativeArrayResolver.php:
--------------------------------------------------------------------------------
1 | call($callable, ['foo' => 'bar'])` will inject the string `'bar'`
10 | * in the parameter named `$foo`.
11 | *
12 | * Parameters that are not indexed by a string are ignored.
13 | *
14 | * @author Matthieu Napoli
15 | */
16 | class AssociativeArrayResolver implements ParameterResolver
17 | {
18 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
19 | {
20 | $parameters = $reflection->getParameters();
21 | // Skip parameters already resolved
22 | if (!empty($resolvedParameters)) {
23 | $parameters = \array_diff_key($parameters, $resolvedParameters);
24 | }
25 | foreach ($parameters as $index => $parameter) {
26 | if (\array_key_exists($parameter->name, $providedParameters)) {
27 | $resolvedParameters[$index] = $providedParameters[$parameter->name];
28 | }
29 | }
30 | return $resolvedParameters;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/Container/ParameterNameContainerResolver.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | class ParameterNameContainerResolver implements ParameterResolver
14 | {
15 | /**
16 | * @var ContainerInterface
17 | */
18 | private $container;
19 | /**
20 | * @param ContainerInterface $container The container to get entries from.
21 | */
22 | public function __construct(ContainerInterface $container)
23 | {
24 | $this->container = $container;
25 | }
26 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
27 | {
28 | $parameters = $reflection->getParameters();
29 | // Skip parameters already resolved
30 | if (!empty($resolvedParameters)) {
31 | $parameters = \array_diff_key($parameters, $resolvedParameters);
32 | }
33 | foreach ($parameters as $index => $parameter) {
34 | $name = $parameter->name;
35 | if ($name && $this->container->has($name)) {
36 | $resolvedParameters[$index] = $this->container->get($name);
37 | }
38 | }
39 | return $resolvedParameters;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/Container/TypeHintContainerResolver.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | class TypeHintContainerResolver implements ParameterResolver
14 | {
15 | /**
16 | * @var ContainerInterface
17 | */
18 | private $container;
19 | /**
20 | * @param ContainerInterface $container The container to get entries from.
21 | */
22 | public function __construct(ContainerInterface $container)
23 | {
24 | $this->container = $container;
25 | }
26 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
27 | {
28 | $parameters = $reflection->getParameters();
29 | // Skip parameters already resolved
30 | if (!empty($resolvedParameters)) {
31 | $parameters = \array_diff_key($parameters, $resolvedParameters);
32 | }
33 | foreach ($parameters as $index => $parameter) {
34 | $parameterClass = $parameter->getClass();
35 | if ($parameterClass && $this->container->has($parameterClass->name)) {
36 | $resolvedParameters[$index] = $this->container->get($parameterClass->name);
37 | }
38 | }
39 | return $resolvedParameters;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class DefaultValueResolver implements ParameterResolver
13 | {
14 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
15 | {
16 | $parameters = $reflection->getParameters();
17 | // Skip parameters already resolved
18 | if (!empty($resolvedParameters)) {
19 | $parameters = \array_diff_key($parameters, $resolvedParameters);
20 | }
21 | foreach ($parameters as $index => $parameter) {
22 | /** @var \ReflectionParameter $parameter */
23 | if ($parameter->isOptional()) {
24 | try {
25 | $resolvedParameters[$index] = $parameter->getDefaultValue();
26 | } catch (ReflectionException $e) {
27 | // Can't get default values from PHP internal classes and functions
28 | }
29 | }
30 | }
31 | return $resolvedParameters;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/NumericArrayResolver.php:
--------------------------------------------------------------------------------
1 | call($callable, ['foo', 'bar'])` will simply resolve the parameters
11 | * to `['foo', 'bar']`.
12 | *
13 | * Parameters that are not indexed by a number (i.e. parameter position)
14 | * will be ignored.
15 | *
16 | * @author Matthieu Napoli
17 | */
18 | class NumericArrayResolver implements ParameterResolver
19 | {
20 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
21 | {
22 | // Skip parameters already resolved
23 | if (!empty($resolvedParameters)) {
24 | $providedParameters = \array_diff_key($providedParameters, $resolvedParameters);
25 | }
26 | foreach ($providedParameters as $key => $value) {
27 | if (\is_int($key)) {
28 | $resolvedParameters[$key] = $value;
29 | }
30 | }
31 | return $resolvedParameters;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/ParameterResolver.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | interface ParameterResolver
12 | {
13 | /**
14 | * Resolves the parameters to use to call the callable.
15 | *
16 | * `$resolvedParameters` contains parameters that have already been resolved.
17 | *
18 | * Each ParameterResolver must resolve parameters that are not already
19 | * in `$resolvedParameters`. That allows to chain multiple ParameterResolver.
20 | *
21 | * @param ReflectionFunctionAbstract $reflection Reflection object for the callable.
22 | * @param array $providedParameters Parameters provided by the caller.
23 | * @param array $resolvedParameters Parameters resolved (indexed by parameter position).
24 | *
25 | * @return array
26 | */
27 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters);
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/php-di/invoker/src/ParameterResolver/TypeHintResolver.php:
--------------------------------------------------------------------------------
1 |
13 | */
14 | class TypeHintResolver implements ParameterResolver
15 | {
16 | public function getParameters(ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
17 | {
18 | $parameters = $reflection->getParameters();
19 | // Skip parameters already resolved
20 | if (!empty($resolvedParameters)) {
21 | $parameters = \array_diff_key($parameters, $resolvedParameters);
22 | }
23 | foreach ($parameters as $index => $parameter) {
24 | $parameterClass = $parameter->getClass();
25 | if ($parameterClass && \array_key_exists($parameterClass->name, $providedParameters)) {
26 | $resolvedParameters[$index] = $providedParameters[$parameterClass->name];
27 | }
28 | }
29 | return $resolvedParameters;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/404.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: 404
3 | ---
4 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | [](https://travis-ci.org/PHP-DI/PHP-DI) [](https://coveralls.io/r/PHP-DI/PHP-DI?branch=master)
4 |
5 | PHP-DI is licensed under the MIT License.
6 |
7 |
8 | ## Set up
9 |
10 | * Check out the sources using git or download them
11 |
12 | ```bash
13 | $ git clone https://github.com/PHP-DI/PHP-DI.git
14 | ```
15 |
16 | * Install the libraries using composer:
17 |
18 | ```bash
19 | $ curl -s http://getcomposer.org/installer | php
20 | $ php composer.phar install
21 | ```
22 |
23 | If you are running Windows or are having trouble, read [the official documentation](http://getcomposer.org/doc/00-intro.md#installation).
24 |
25 |
26 | ## Run the tests
27 |
28 | The tests are run with [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html):
29 |
30 | ```bash
31 | $ phpunit
32 | ```
33 |
34 |
35 | ## Learning the internals
36 |
37 | Read the [How it works](doc/how-it-works.md) documentation.
38 |
39 |
40 | ## What to do?
41 |
42 | - Add tests: pick up uncovered situations in the [code coverage report](https://coveralls.io/r/PHP-DI/PHP-DI)
43 | - Resolve issues: [issue list](https://github.com/PHP-DI/PHP-DI/issues)
44 | - Improve the documentation
45 | - …
46 |
47 |
48 | ## Coding style
49 |
50 | The code follows PSR0, PSR1 and [PSR2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).
51 |
52 | Also, do not hesitate to add your name to the author list of a class in the docblock if you improve it.
53 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/LICENSE:
--------------------------------------------------------------------------------
1 | PHP-DI - PHP Dependency Injection
2 |
3 | Copyright (C) Matthieu Napoli
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6 | associated documentation files (the "Software"), to deal in the Software without restriction,
7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9 | subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial
12 | portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
15 | NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: home
3 | ---
4 |
5 | [](http://php-di.org/)
6 |
7 | [](https://travis-ci.org/PHP-DI/PHP-DI)
8 | [](http://hhvm.h4cc.de/package/php-di/php-di)
9 | [](https://coveralls.io/r/PHP-DI/PHP-DI?branch=master)
10 | [](https://scrutinizer-ci.com/g/PHP-DI/PHP-DI/?branch=master)
11 | [](https://packagist.org/packages/PHP-DI/PHP-DI)
12 | [](https://packagist.org/packages/PHP-DI/PHP-DI)
13 |
14 | [](http://isitmaintained.com/project/PHP-DI/PHP-DI "Average time to resolve an issue")
15 | [](http://isitmaintained.com/project/PHP-DI/PHP-DI "Percentage of issues still open")
16 |
17 | PHP-DI is a dependency injection container meant to be practical, powerful, and framework-agnostic.
18 |
19 | Read more on the website: **[php-di.org](http://php-di.org)**
20 |
21 | Join us in the Gitter chat room: [](https://gitter.im/PHP-DI/PHP-DI)
22 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "php-di\/php-di",
3 | "type": "library",
4 | "description": "The dependency injection container for humans",
5 | "keywords": [
6 | "di",
7 | "dependency injection",
8 | "container"
9 | ],
10 | "homepage": "http:\/\/php-di.org\/",
11 | "license": "MIT",
12 | "autoload": {
13 | "psr-4": {
14 | "DeliciousBrains\\WPMDB\\Container\\DI\\": "src\/DI\/"
15 | },
16 | "files": [
17 | "src\/DI\/functions.php"
18 | ]
19 | },
20 | "autoload-dev": {
21 | "psr-4": {
22 | "DeliciousBrains\\WPMDB\\Container\\DI\\Test\\IntegrationTest\\": "tests\/IntegrationTest\/",
23 | "DeliciousBrains\\WPMDB\\Container\\DI\\Test\\UnitTest\\": "tests\/UnitTest\/"
24 | }
25 | },
26 | "scripts": {
27 | "test": "phpunit"
28 | },
29 | "require": {
30 | "php": ">=5.5.0",
31 | "container-interop\/container-interop": "~1.0",
32 | "php-di\/invoker": "^1.3.2",
33 | "php-di\/phpdoc-reader": "^2.0.1"
34 | },
35 | "require-dev": {
36 | "phpunit\/phpunit": "~4.5",
37 | "mnapoli\/phpunit-easymock": "~0.2.0",
38 | "doctrine\/cache": "~1.4",
39 | "doctrine\/annotations": "~1.2",
40 | "ocramius\/proxy-manager": "~1.0|~2.0"
41 | },
42 | "replace": {
43 | "mnapoli\/php-di": "*"
44 | },
45 | "provide": {
46 | "container-interop\/container-interop-implementation": "^1.0"
47 | },
48 | "suggest": {
49 | "doctrine\/cache": "Install it if you want to use the cache (version ~1.4)",
50 | "doctrine\/annotations": "Install it if you want to use annotations (version ~1.2)",
51 | "ocramius\/proxy-manager": "Install it if you want to use lazy injection (version ~1.0 or ~2.0)"
52 | }
53 | }
--------------------------------------------------------------------------------
/vendor/php-di/php-di/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
14 |
15 |
16 |
17 | ./tests/UnitTest/
18 |
19 |
20 | ./tests/IntegrationTest/
21 |
22 |
23 |
24 |
25 |
26 | src
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Annotation/Injectable.php:
--------------------------------------------------------------------------------
1 |
16 | * @author Matthieu Napoli
17 | */
18 | final class Injectable
19 | {
20 | /**
21 | * The scope of an class: prototype, singleton.
22 | * @var string|null
23 | */
24 | private $scope;
25 | /**
26 | * Should the object be lazy-loaded.
27 | * @var bool|null
28 | */
29 | private $lazy;
30 | /**
31 | * @param array $values
32 | */
33 | public function __construct(array $values)
34 | {
35 | if (isset($values['scope'])) {
36 | if ($values['scope'] === 'prototype') {
37 | $this->scope = Scope::PROTOTYPE;
38 | } elseif ($values['scope'] === 'singleton') {
39 | $this->scope = Scope::SINGLETON;
40 | } else {
41 | throw new UnexpectedValueException(\sprintf("Value '%s' is not a valid scope", $values['scope']));
42 | }
43 | }
44 | if (isset($values['lazy'])) {
45 | $this->lazy = (bool) $values['lazy'];
46 | }
47 | }
48 | /**
49 | * @return string|null
50 | */
51 | public function getScope()
52 | {
53 | return $this->scope;
54 | }
55 | /**
56 | * @return bool|null
57 | */
58 | public function isLazy()
59 | {
60 | return $this->lazy;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Debug.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | class Debug
12 | {
13 | /**
14 | * Dump the definition to a string.
15 | *
16 | * @return string
17 | *
18 | * @deprecated You should cast the definition to string instead.
19 | * This feature was simplified: definitions can be cast to string directly.
20 | */
21 | public static function dumpDefinition(Definition $definition)
22 | {
23 | return (string) $definition;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/AliasDefinition.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class AliasDefinition implements CacheableDefinition, SelfResolvingDefinition
13 | {
14 | /**
15 | * Entry name.
16 | * @var string
17 | */
18 | private $name;
19 | /**
20 | * Name of the target entry.
21 | * @var string
22 | */
23 | private $targetEntryName;
24 | /**
25 | * @param string $name Entry name
26 | * @param string $targetEntryName Name of the target entry
27 | */
28 | public function __construct($name, $targetEntryName)
29 | {
30 | $this->name = $name;
31 | $this->targetEntryName = $targetEntryName;
32 | }
33 | /**
34 | * @return string Entry name
35 | */
36 | public function getName()
37 | {
38 | return $this->name;
39 | }
40 | /**
41 | * {@inheritdoc}
42 | */
43 | public function getScope()
44 | {
45 | return Scope::PROTOTYPE;
46 | }
47 | /**
48 | * @return string
49 | */
50 | public function getTargetEntryName()
51 | {
52 | return $this->targetEntryName;
53 | }
54 | public function resolve(ContainerInterface $container)
55 | {
56 | return $container->get($this->getTargetEntryName());
57 | }
58 | public function isResolvable(ContainerInterface $container)
59 | {
60 | return $container->has($this->getTargetEntryName());
61 | }
62 | public function __toString()
63 | {
64 | return \sprintf('get(%s)', $this->targetEntryName);
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/ArrayDefinitionExtension.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class ArrayDefinitionExtension extends ArrayDefinition implements HasSubDefinition
13 | {
14 | /**
15 | * @var ArrayDefinition
16 | */
17 | private $subDefinition;
18 | /**
19 | * {@inheritdoc}
20 | */
21 | public function getValues()
22 | {
23 | if (!$this->subDefinition) {
24 | return parent::getValues();
25 | }
26 | return \array_merge($this->subDefinition->getValues(), parent::getValues());
27 | }
28 | /**
29 | * @return string
30 | */
31 | public function getSubDefinitionName()
32 | {
33 | return $this->getName();
34 | }
35 | /**
36 | * {@inheritdoc}
37 | */
38 | public function setSubDefinition(Definition $definition)
39 | {
40 | if (!$definition instanceof ArrayDefinition) {
41 | throw new DefinitionException(\sprintf('Definition %s tries to add array entries but the previous definition is not an array', $this->getName()));
42 | }
43 | $this->subDefinition = $definition;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/CacheableDefinition.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | interface CacheableDefinition extends Definition
11 | {
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/DecoratorDefinition.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | class DecoratorDefinition extends FactoryDefinition implements Definition, HasSubDefinition
12 | {
13 | /**
14 | * @var Definition
15 | */
16 | private $decorated;
17 | /**
18 | * @return string
19 | */
20 | public function getSubDefinitionName()
21 | {
22 | return $this->getName();
23 | }
24 | /**
25 | * @param Definition $definition
26 | */
27 | public function setSubDefinition(Definition $definition)
28 | {
29 | $this->decorated = $definition;
30 | }
31 | /**
32 | * @return Definition
33 | */
34 | public function getDecoratedDefinition()
35 | {
36 | return $this->decorated;
37 | }
38 | public function __toString()
39 | {
40 | return 'Decorate(' . $this->getSubDefinitionName() . ')';
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Definition.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | interface Definition extends RequestedEntry
12 | {
13 | /**
14 | * Returns the name of the entry in the container.
15 | *
16 | * @return string
17 | */
18 | public function getName();
19 | /**
20 | * Returns the scope of the entry.
21 | *
22 | * @return string
23 | */
24 | public function getScope();
25 | /**
26 | * Definitions can be cast to string for debugging information.
27 | *
28 | * This method is not enforced by the interface yet for backward
29 | * compatibility.
30 | */
31 | // public function __toString();
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/EntryReference.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | class EntryReference implements DefinitionHelper
14 | {
15 | /**
16 | * Entry name.
17 | * @var string
18 | */
19 | private $name;
20 | /**
21 | * @param string $entryName Entry name
22 | */
23 | public function __construct($entryName)
24 | {
25 | $this->name = $entryName;
26 | }
27 | /**
28 | * @return string Entry name
29 | */
30 | public function getName()
31 | {
32 | return $this->name;
33 | }
34 | /**
35 | * {@inheritdoc}
36 | */
37 | public function getDefinition($entryName)
38 | {
39 | return new AliasDefinition($entryName, $this->name);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Exception/AnnotationException.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | class AnnotationException extends DefinitionException
11 | {
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Exception/DefinitionException.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | class DefinitionException extends \Exception
12 | {
13 | public static function create(Definition $definition, $message)
14 | {
15 | return new self(\sprintf('%s' . \PHP_EOL . 'Full definition:' . \PHP_EOL . '%s', $message, (string) $definition));
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/HasSubDefinition.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | interface HasSubDefinition extends Definition
11 | {
12 | /**
13 | * @return string
14 | */
15 | public function getSubDefinitionName();
16 | /**
17 | * @param Definition $definition
18 | */
19 | public function setSubDefinition(Definition $definition);
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Helper/ArrayDefinitionExtensionHelper.php:
--------------------------------------------------------------------------------
1 |
13 | */
14 | class ArrayDefinitionExtensionHelper implements DefinitionHelper
15 | {
16 | /**
17 | * @var array
18 | */
19 | private $values = [];
20 | /**
21 | * @param array $values Values to add to the array.
22 | */
23 | public function __construct(array $values)
24 | {
25 | $this->values = $values;
26 | }
27 | /**
28 | * @param string $entryName Container entry name
29 | *
30 | * @return ArrayDefinitionExtension
31 | */
32 | public function getDefinition($entryName)
33 | {
34 | return new ArrayDefinitionExtension($entryName, $this->values);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Helper/DefinitionHelper.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | interface DefinitionHelper
11 | {
12 | /**
13 | * @param string $entryName Container entry name
14 | * @return \DI\Definition\Definition
15 | */
16 | public function getDefinition($entryName);
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Helper/StringDefinitionHelper.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | class StringDefinitionHelper implements DefinitionHelper
11 | {
12 | /**
13 | * @var string
14 | */
15 | private $expression;
16 | public function __construct($expression)
17 | {
18 | $this->expression = $expression;
19 | }
20 | /**
21 | * @param string $entryName Container entry name
22 | *
23 | * @return StringDefinition
24 | */
25 | public function getDefinition($entryName)
26 | {
27 | return new StringDefinition($entryName, $this->expression);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Helper/ValueDefinitionHelper.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | class ValueDefinitionHelper implements DefinitionHelper
12 | {
13 | /**
14 | * @var mixed
15 | */
16 | private $value;
17 | /**
18 | * @param mixed $value
19 | */
20 | public function __construct($value)
21 | {
22 | $this->value = $value;
23 | }
24 | /**
25 | * @param string $entryName Container entry name
26 | * @return ValueDefinition
27 | */
28 | public function getDefinition($entryName)
29 | {
30 | return new ValueDefinition($entryName, $this->value);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/InstanceDefinition.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class InstanceDefinition implements Definition
13 | {
14 | /**
15 | * Instance on which to inject dependencies.
16 | *
17 | * @var object
18 | */
19 | private $instance;
20 | /**
21 | * @var ObjectDefinition
22 | */
23 | private $objectDefinition;
24 | /**
25 | * @param object $instance
26 | * @param ObjectDefinition $objectDefinition
27 | */
28 | public function __construct($instance, ObjectDefinition $objectDefinition)
29 | {
30 | $this->instance = $instance;
31 | $this->objectDefinition = $objectDefinition;
32 | }
33 | /**
34 | * {@inheritdoc}
35 | */
36 | public function getName()
37 | {
38 | // Name are superfluous for instance definitions
39 | return '';
40 | }
41 | /**
42 | * {@inheritdoc}
43 | */
44 | public function getScope()
45 | {
46 | return Scope::PROTOTYPE;
47 | }
48 | /**
49 | * @return object
50 | */
51 | public function getInstance()
52 | {
53 | return $this->instance;
54 | }
55 | /**
56 | * @return ObjectDefinition
57 | */
58 | public function getObjectDefinition()
59 | {
60 | return $this->objectDefinition;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/ObjectDefinition/PropertyInjection.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | class PropertyInjection
11 | {
12 | /**
13 | * Property name.
14 | * @var string
15 | */
16 | private $propertyName;
17 | /**
18 | * Value that should be injected in the property.
19 | * @var mixed
20 | */
21 | private $value;
22 | /**
23 | * Use for injecting in properties of parent classes: the class name
24 | * must be the name of the parent class because private properties
25 | * can be attached to the parent classes, not the one we are resolving.
26 | * @var string|null
27 | */
28 | private $className;
29 | /**
30 | * @param string $propertyName Property name
31 | * @param mixed $value Value that should be injected in the property
32 | * @param string|null $className
33 | */
34 | public function __construct($propertyName, $value, $className = null)
35 | {
36 | $this->propertyName = (string) $propertyName;
37 | $this->value = $value;
38 | $this->className = $className;
39 | }
40 | /**
41 | * @return string Property name
42 | */
43 | public function getPropertyName()
44 | {
45 | return $this->propertyName;
46 | }
47 | /**
48 | * @return mixed Value that should be injected in the property
49 | */
50 | public function getValue()
51 | {
52 | return $this->value;
53 | }
54 | /**
55 | * @return string|null
56 | */
57 | public function getClassName()
58 | {
59 | return $this->className;
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Resolver/DefinitionResolver.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | interface DefinitionResolver
14 | {
15 | /**
16 | * Resolve a definition to a value.
17 | *
18 | * @param Definition $definition Object that defines how the value should be obtained.
19 | * @param array $parameters Optional parameters to use to build the entry.
20 | *
21 | * @throws DefinitionException If the definition cannot be resolved.
22 | *
23 | * @return mixed Value obtained from the definition.
24 | */
25 | public function resolve(Definition $definition, array $parameters = []);
26 | /**
27 | * Check if a definition can be resolved.
28 | *
29 | * @param Definition $definition Object that defines how the value should be obtained.
30 | * @param array $parameters Optional parameters to use to build the entry.
31 | *
32 | * @return bool
33 | */
34 | public function isResolvable(Definition $definition, array $parameters = []);
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Resolver/InstanceInjector.php:
--------------------------------------------------------------------------------
1 |
14 | */
15 | class InstanceInjector extends ObjectCreator
16 | {
17 | /**
18 | * Injects dependencies on an existing instance.
19 | *
20 | * @param InstanceDefinition $definition
21 | *
22 | * {@inheritdoc}
23 | */
24 | public function resolve(Definition $definition, array $parameters = [])
25 | {
26 | try {
27 | $this->injectMethodsAndProperties($definition->getInstance(), $definition->getObjectDefinition());
28 | } catch (NotFoundException $e) {
29 | $message = \sprintf('Error while injecting dependencies into %s: %s', \get_class($definition->getInstance()), $e->getMessage());
30 | throw new DependencyException($message, 0, $e);
31 | }
32 | }
33 | /**
34 | * {@inheritdoc}
35 | */
36 | public function isResolvable(Definition $definition, array $parameters = [])
37 | {
38 | return \true;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Resolver/SelfResolver.php:
--------------------------------------------------------------------------------
1 |
13 | */
14 | class SelfResolver implements DefinitionResolver
15 | {
16 | /**
17 | * @var ContainerInterface
18 | */
19 | private $container;
20 | public function __construct(ContainerInterface $container)
21 | {
22 | $this->container = $container;
23 | }
24 | /**
25 | * @param SelfResolvingDefinition $definition
26 | *
27 | * {@inheritdoc}
28 | */
29 | public function resolve(Definition $definition, array $parameters = [])
30 | {
31 | return $definition->resolve($this->container);
32 | }
33 | /**
34 | * @param SelfResolvingDefinition $definition
35 | *
36 | * {@inheritdoc}
37 | */
38 | public function isResolvable(Definition $definition, array $parameters = [])
39 | {
40 | return $definition->isResolvable($this->container);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/SelfResolvingDefinition.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | interface SelfResolvingDefinition
12 | {
13 | /**
14 | * Resolve the definition and return the resulting value.
15 | *
16 | * @return mixed
17 | */
18 | public function resolve(ContainerInterface $container);
19 | /**
20 | * Check if a definition can be resolved.
21 | *
22 | * @return bool
23 | */
24 | public function isResolvable(ContainerInterface $container);
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Source/Autowiring.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | class Autowiring implements DefinitionSource
14 | {
15 | /**
16 | * {@inheritdoc}
17 | */
18 | public function getDefinition($name)
19 | {
20 | if (!\class_exists($name) && !\interface_exists($name)) {
21 | return null;
22 | }
23 | $definition = new ObjectDefinition($name);
24 | // Constructor
25 | $class = new \ReflectionClass($name);
26 | $constructor = $class->getConstructor();
27 | if ($constructor && $constructor->isPublic()) {
28 | $definition->setConstructorInjection(MethodInjection::constructor($this->getParametersDefinition($constructor)));
29 | }
30 | return $definition;
31 | }
32 | /**
33 | * Read the type-hinting from the parameters of the function.
34 | */
35 | private function getParametersDefinition(\ReflectionFunctionAbstract $constructor)
36 | {
37 | $parameters = [];
38 | foreach ($constructor->getParameters() as $index => $parameter) {
39 | // Skip optional parameters
40 | if ($parameter->isOptional()) {
41 | continue;
42 | }
43 | $parameterClass = $parameter->getClass();
44 | if ($parameterClass) {
45 | $parameters[$index] = new EntryReference($parameterClass->getName());
46 | }
47 | }
48 | return $parameters;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Source/DefinitionFile.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | class DefinitionFile extends DefinitionArray
12 | {
13 | /**
14 | * @var bool
15 | */
16 | private $initialized = \false;
17 | /**
18 | * File containing definitions, or null if the definitions are given as a PHP array.
19 | * @var string|null
20 | */
21 | private $file;
22 | /**
23 | * @param string $file File in which the definitions are returned as an array.
24 | */
25 | public function __construct($file)
26 | {
27 | // Lazy-loading to improve performances
28 | $this->file = $file;
29 | parent::__construct([]);
30 | }
31 | /**
32 | * {@inheritdoc}
33 | */
34 | public function getDefinition($name)
35 | {
36 | $this->initialize();
37 | return parent::getDefinition($name);
38 | }
39 | /**
40 | * Lazy-loading of the definitions.
41 | * @throws DefinitionException
42 | */
43 | private function initialize()
44 | {
45 | if ($this->initialized === \true) {
46 | return;
47 | }
48 | $definitions = (require $this->file);
49 | if (!\is_array($definitions)) {
50 | throw new DefinitionException("File {$this->file} should return an array of definitions");
51 | }
52 | $this->addDefinitions($definitions);
53 | $this->initialized = \true;
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Source/DefinitionSource.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | interface DefinitionSource
13 | {
14 | /**
15 | * Returns the DI definition for the entry name.
16 | *
17 | * @param string $name
18 | *
19 | * @throws DefinitionException An invalid definition was found.
20 | * @return Definition|null
21 | */
22 | public function getDefinition($name);
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/Source/MutableDefinitionSource.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | interface MutableDefinitionSource extends DefinitionSource
12 | {
13 | public function addDefinition(Definition $definition);
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/Definition/ValueDefinition.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class ValueDefinition implements Definition, SelfResolvingDefinition
13 | {
14 | /**
15 | * Entry name.
16 | * @var string
17 | */
18 | private $name;
19 | /**
20 | * @var mixed
21 | */
22 | private $value;
23 | /**
24 | * @param string $name Entry name
25 | * @param mixed $value
26 | */
27 | public function __construct($name, $value)
28 | {
29 | $this->name = $name;
30 | $this->value = $value;
31 | }
32 | /**
33 | * @return string Entry name
34 | */
35 | public function getName()
36 | {
37 | return $this->name;
38 | }
39 | /**
40 | * A value definition is like a constant, there is nothing to compute, the value is the same for everyone.
41 | *
42 | * {@inheritdoc}
43 | */
44 | public function getScope()
45 | {
46 | return Scope::SINGLETON;
47 | }
48 | /**
49 | * @return mixed
50 | */
51 | public function getValue()
52 | {
53 | return $this->value;
54 | }
55 | public function resolve(ContainerInterface $container)
56 | {
57 | return $this->getValue();
58 | }
59 | public function isResolvable(ContainerInterface $container)
60 | {
61 | return \true;
62 | }
63 | public function __toString()
64 | {
65 | return \sprintf('Value (%s)', \var_export($this->value, \true));
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/DependencyException.php:
--------------------------------------------------------------------------------
1 |
12 | */
13 | interface RequestedEntry
14 | {
15 | /**
16 | * Returns the name of the entry that was requested by the container.
17 | *
18 | * @return string
19 | */
20 | public function getName();
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/FactoryInterface.php:
--------------------------------------------------------------------------------
1 |
10 | */
11 | interface FactoryInterface
12 | {
13 | /**
14 | * Resolves an entry by its name. If given a class name, it will return a new instance of that class.
15 | *
16 | * @param string $name Entry name or a class name.
17 | * @param array $parameters Optional parameters to use to build the entry. Use this to force specific
18 | * parameters to specific values. Parameters not defined in this array will
19 | * be automatically resolved.
20 | *
21 | * @throws \InvalidArgumentException The name parameter must be of type string.
22 | * @throws DependencyException Error while resolving the entry.
23 | * @throws NotFoundException No entry or class found for the given name.
24 | * @return mixed
25 | */
26 | public function make($name, array $parameters = []);
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/InvokerInterface.php:
--------------------------------------------------------------------------------
1 |
9 | */
10 | interface InvokerInterface extends \DeliciousBrains\WPMDB\Container\Invoker\InvokerInterface
11 | {
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/php-di/php-di/src/DI/NotFoundException.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 | class Scope
13 | {
14 | /**
15 | * A singleton entry will be computed once and shared.
16 | *
17 | * For a class, only a single instance of the class will be created.
18 | */
19 | const SINGLETON = 'singleton';
20 | /**
21 | * A prototype entry will be recomputed each time it is asked.
22 | *
23 | * For a class, this will create a new instance each time.
24 | */
25 | const PROTOTYPE = 'prototype';
26 | /**
27 | * Method kept for backward compatibility, use the constant instead.
28 | *
29 | * @return string
30 | */
31 | public static function SINGLETON()
32 | {
33 | return self::SINGLETON;
34 | }
35 | /**
36 | * Method kept for backward compatibility, use the constant instead.
37 | *
38 | * @return string
39 | */
40 | public static function PROTOTYPE()
41 | {
42 | return self::PROTOTYPE;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/vendor/php-di/phpdoc-reader/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2015 Matthieu Napoli
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
4 | associated documentation files (the "Software"), to deal in the Software without restriction,
5 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
6 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
7 | subject to the following conditions:
8 |
9 | The above copyright notice and this permission notice shall be included in all copies or substantial
10 | portions of the Software.
11 |
12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
13 | NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
14 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
15 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
16 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17 |
--------------------------------------------------------------------------------
/vendor/php-di/phpdoc-reader/README.md:
--------------------------------------------------------------------------------
1 | # PhpDocReader
2 |
3 | [](https://travis-ci.org/mnapoli/PhpDocReader)
4 | 
5 |
6 | This project is used by:
7 |
8 | - [PHP-DI](http://php-di.org/)
9 | - [phockito-unit-php-di](https://github.com/balihoo/phockito-unit-php-di)
10 |
11 | Fork the README to add your project here.
12 |
13 | ## Features
14 |
15 | PhpDocReader parses `@var` and `@param` values in PHP docblocks:
16 |
17 | ```php
18 |
19 | use My\Cache\Backend;
20 |
21 | class Cache
22 | {
23 | /**
24 | * @var Backend
25 | */
26 | protected $backend;
27 |
28 | /**
29 | * @param Backend $backend
30 | */
31 | public function __construct($backend)
32 | {
33 | }
34 | }
35 | ```
36 |
37 | It supports namespaced class names with the same resolution rules as PHP:
38 |
39 | - fully qualified name (starting with `\`)
40 | - imported class name (eg. `use My\Cache\Backend;`)
41 | - relative class name (from the current namespace, like `SubNamespace\MyClass`)
42 | - aliased class name (eg. `use My\Cache\Backend as FooBar;`)
43 |
44 | Primitive types (`@var string`) are ignored (returns null), only valid class names are returned.
45 |
46 | ## Usage
47 |
48 | ```php
49 | $reader = new PhpDocReader();
50 |
51 | // Read a property type (@var phpdoc)
52 | $property = new ReflectionProperty($className, $propertyName);
53 | $propertyClass = $reader->getPropertyClass($property);
54 |
55 | // Read a parameter type (@param phpdoc)
56 | $parameter = new ReflectionParameter(array($className, $methodName), $parameterName);
57 | $parameterClass = $reader->getParameterClass($parameter);
58 | ```
59 |
--------------------------------------------------------------------------------
/vendor/php-di/phpdoc-reader/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "php-di\/phpdoc-reader",
3 | "type": "library",
4 | "description": "PhpDocReader parses @var and @param values in PHP docblocks (supports namespaced class names with the same resolution rules as PHP)",
5 | "keywords": [
6 | "phpdoc",
7 | "reflection"
8 | ],
9 | "license": "MIT",
10 | "autoload": {
11 | "psr-4": {
12 | "DeliciousBrains\\WPMDB\\Container\\PhpDocReader\\": "src\/PhpDocReader"
13 | }
14 | },
15 | "autoload-dev": {
16 | "psr-4": {
17 | "DeliciousBrains\\WPMDB\\Container\\UnitTest\\PhpDocReader\\": "tests\/"
18 | }
19 | },
20 | "require": {
21 | "php": ">=5.4.0"
22 | },
23 | "require-dev": {
24 | "phpunit\/phpunit": "~4.6"
25 | }
26 | }
--------------------------------------------------------------------------------
/vendor/php-di/phpdoc-reader/src/PhpDocReader/AnnotationException.php:
--------------------------------------------------------------------------------
1 |
7 | */
8 | class AnnotationException extends \Exception
9 | {
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/phpoption/phpoption/Makefile:
--------------------------------------------------------------------------------
1 | install:
2 | @docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:7.4-base update
3 | @docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:7.4-base bin all update
4 |
5 | phpunit:
6 | @rm -f bootstrap/cache/*.php && docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit --rm registry.gitlab.com/grahamcampbell/php:7.4-cli
7 |
8 | phpstan-analyze-src:
9 | @docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpstan --rm registry.gitlab.com/grahamcampbell/php:7.4-cli analyze src -c phpstan.src.neon.dist
10 |
11 | phpstan-analyze-tests:
12 | @docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpstan --rm registry.gitlab.com/grahamcampbell/php:7.4-cli analyze tests -c phpstan.tests.neon.dist
13 |
14 | psalm-analyze:
15 | @docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm --rm registry.gitlab.com/grahamcampbell/php:7.4-cli
16 |
17 | psalm-show-info:
18 | @docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm --rm registry.gitlab.com/grahamcampbell/php:7.4-cli --show-info=true
19 |
20 | test: phpunit phpstan-analyze-src phpstan-analyze-tests psalm-analyze
21 |
22 | clean:
23 | @rm -rf .phpunit.result.cache composer.lock vendor vendor-bin/*/composer.lock vendor-bin/*/vendor
24 |
--------------------------------------------------------------------------------
/vendor/phpoption/phpoption/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "phpoption\/phpoption",
3 | "description": "Option Type for PHP",
4 | "keywords": [
5 | "php",
6 | "option",
7 | "language",
8 | "type"
9 | ],
10 | "license": "Apache-2.0",
11 | "authors": [
12 | {
13 | "name": "Johannes M. Schmitt",
14 | "email": "schmittjoh@gmail.com"
15 | },
16 | {
17 | "name": "Graham Campbell",
18 | "email": "graham@alt-three.com"
19 | }
20 | ],
21 | "require": {
22 | "php": "^5.5.9 || ^7.0 || ^8.0"
23 | },
24 | "require-dev": {
25 | "bamarni\/composer-bin-plugin": "^1.4.1",
26 | "phpunit\/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0"
27 | },
28 | "autoload": {
29 | "psr-4": {
30 | "DeliciousBrains\\WPMDB\\Container\\PhpOption\\": "src\/PhpOption\/"
31 | }
32 | },
33 | "autoload-dev": {
34 | "psr-4": {
35 | "DeliciousBrains\\WPMDB\\Container\\PhpOption\\Tests\\": "tests\/PhpOption\/Tests\/"
36 | }
37 | },
38 | "config": {
39 | "preferred-install": "dist"
40 | },
41 | "extra": {
42 | "branch-alias": {
43 | "dev-master": "1.7-dev"
44 | }
45 | },
46 | "minimum-stability": "dev",
47 | "prefer-stable": true
48 | }
--------------------------------------------------------------------------------
/vendor/psr/container/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013-2016 container-interop
4 | Copyright (c) 2016 PHP Framework Interoperability Group
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10 | the Software, and to permit persons to whom the Software is furnished to do so,
11 | subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/psr/container/README.md:
--------------------------------------------------------------------------------
1 | # PSR Container
2 |
3 | This repository holds all interfaces/classes/traits related to [PSR-11](https://github.com/container-interop/fig-standards/blob/master/proposed/container.md).
4 |
5 | Note that this is not a container implementation of its own. See the specification for more details.
6 |
--------------------------------------------------------------------------------
/vendor/psr/container/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "psr\/container",
3 | "type": "library",
4 | "description": "Common Container Interface (PHP FIG PSR-11)",
5 | "keywords": [
6 | "psr",
7 | "psr-11",
8 | "container",
9 | "container-interop",
10 | "container-interface"
11 | ],
12 | "homepage": "https:\/\/github.com\/php-fig\/container",
13 | "license": "MIT",
14 | "authors": [
15 | {
16 | "name": "PHP-FIG",
17 | "homepage": "http:\/\/www.php-fig.org\/"
18 | }
19 | ],
20 | "require": {
21 | "php": ">=5.3.0"
22 | },
23 | "autoload": {
24 | "psr-4": {
25 | "DeliciousBrains\\WPMDB\\Container\\Psr\\Container\\": "src\/"
26 | }
27 | },
28 | "extra": {
29 | "branch-alias": {
30 | "dev-master": "1.0.x-dev"
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/vendor/psr/container/src/ContainerExceptionInterface.php:
--------------------------------------------------------------------------------
1 | =5.3.3"
25 | },
26 | "autoload": {
27 | "psr-4": {
28 | "DeliciousBrains\\WPMDB\\Container\\Symfony\\Polyfill\\Ctype\\": ""
29 | },
30 | "files": [
31 | "bootstrap.php"
32 | ]
33 | },
34 | "suggest": {
35 | "ext-ctype": "For best performance"
36 | },
37 | "minimum-stability": "dev",
38 | "extra": {
39 | "branch-alias": {
40 | "dev-main": "1.19-dev"
41 | },
42 | "thanks": {
43 | "name": "symfony\/polyfill",
44 | "url": "https:\/\/github.com\/symfony\/polyfill"
45 | }
46 | }
47 | }
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2014, Graham Campbell.
4 | Copyright (c) 2013, Vance Lucas.
5 | All rights reserved.
6 |
7 | Redistribution and use in source and binary forms, with or without
8 | modification, are permitted provided that the following conditions are met:
9 |
10 | 1. Redistributions of source code must retain the above copyright notice, this
11 | list of conditions and the following disclaimer.
12 |
13 | 2. Redistributions in binary form must reproduce the above copyright notice,
14 | this list of conditions and the following disclaimer in the documentation
15 | and/or other materials provided with the distribution.
16 |
17 | 3. Neither the name of the copyright holder nor the names of its
18 | contributors may be used to endorse or promote products derived from
19 | this software without specific prior written permission.
20 |
21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php:
--------------------------------------------------------------------------------
1 |
17 | */
18 | public function load(RepositoryInterface $repository, $content);
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Loader/Value.php:
--------------------------------------------------------------------------------
1 | chars = $chars;
30 | $this->vars = $vars;
31 | }
32 | /**
33 | * Create an empty value instance.
34 | *
35 | * @return \Dotenv\Loader\Value
36 | */
37 | public static function blank()
38 | {
39 | return new self('', []);
40 | }
41 | /**
42 | * Create a new value instance, appending the character.
43 | *
44 | * @param string $char
45 | * @param bool $var
46 | *
47 | * @return \Dotenv\Loader\Value
48 | */
49 | public function append($char, $var)
50 | {
51 | return new self($this->chars . $char, $var ? \array_merge($this->vars, [\strlen($this->chars)]) : $this->vars);
52 | }
53 | /**
54 | * Get the string representation of the parsed value.
55 | *
56 | * @return string
57 | */
58 | public function getChars()
59 | {
60 | return $this->chars;
61 | }
62 | /**
63 | * Get the locations of the variables in the value.
64 | *
65 | * @return int[]
66 | */
67 | public function getVars()
68 | {
69 | $vars = $this->vars;
70 | \rsort($vars);
71 | return $vars;
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php:
--------------------------------------------------------------------------------
1 |
28 | */
29 | public function get($name)
30 | {
31 | return None::create();
32 | }
33 | /**
34 | * Set an environment variable.
35 | *
36 | * Only if an existing apache variable exists do we overwrite it.
37 | *
38 | * @param non-empty-string $name
39 | * @param string|null $value
40 | *
41 | * @return void
42 | */
43 | public function set($name, $value = null)
44 | {
45 | if (\apache_getenv($name) === \false) {
46 | return;
47 | }
48 | \apache_setenv($name, (string) $value);
49 | }
50 | /**
51 | * Clear an environment variable.
52 | *
53 | * @param non-empty-string $name
54 | *
55 | * @return void
56 | */
57 | public function clear($name)
58 | {
59 | // Nothing to do here.
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php:
--------------------------------------------------------------------------------
1 |
13 | */
14 | private $variables = [];
15 | /**
16 | * Determines if the adapter is supported.
17 | *
18 | * @return bool
19 | */
20 | public function isSupported()
21 | {
22 | return \true;
23 | }
24 | /**
25 | * Get an environment variable, if it exists.
26 | *
27 | * @param non-empty-string $name
28 | *
29 | * @return \PhpOption\Option
30 | */
31 | public function get($name)
32 | {
33 | if (!\array_key_exists($name, $this->variables)) {
34 | return None::create();
35 | }
36 | return Some::create($this->variables[$name]);
37 | }
38 | /**
39 | * Set an environment variable.
40 | *
41 | * @param non-empty-string $name
42 | * @param string|null $value
43 | *
44 | * @return void
45 | */
46 | public function set($name, $value = null)
47 | {
48 | $this->variables[$name] = $value;
49 | }
50 | /**
51 | * Clear an environment variable.
52 | *
53 | * @param non-empty-string $name
54 | *
55 | * @return void
56 | */
57 | public function clear($name)
58 | {
59 | unset($this->variables[$name]);
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/AvailabilityInterface.php:
--------------------------------------------------------------------------------
1 |
24 | */
25 | public function get($name)
26 | {
27 | if (!\array_key_exists($name, $_ENV)) {
28 | return None::create();
29 | }
30 | $value = $_ENV[$name];
31 | if (\is_scalar($value)) {
32 | /** @var \PhpOption\Option */
33 | return Some::create((string) $value);
34 | }
35 | if (null === $value) {
36 | /** @var \PhpOption\Option */
37 | return Some::create(null);
38 | }
39 | return None::create();
40 | }
41 | /**
42 | * Set an environment variable.
43 | *
44 | * @param non-empty-string $name
45 | * @param string|null $value
46 | *
47 | * @return void
48 | */
49 | public function set($name, $value = null)
50 | {
51 | $_ENV[$name] = $value;
52 | }
53 | /**
54 | * Clear an environment variable.
55 | *
56 | * @param non-empty-string $name
57 | *
58 | * @return void
59 | */
60 | public function clear($name)
61 | {
62 | unset($_ENV[$name]);
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php:
--------------------------------------------------------------------------------
1 |
23 | */
24 | public function get($name)
25 | {
26 | /** @var \PhpOption\Option */
27 | return Option::fromValue(\getenv($name), \false);
28 | }
29 | /**
30 | * Set an environment variable.
31 | *
32 | * @param non-empty-string $name
33 | * @param string|null $value
34 | *
35 | * @return void
36 | */
37 | public function set($name, $value = null)
38 | {
39 | \putenv("{$name}={$value}");
40 | }
41 | /**
42 | * Clear an environment variable.
43 | *
44 | * @param non-empty-string $name
45 | *
46 | * @return void
47 | */
48 | public function clear($name)
49 | {
50 | \putenv($name);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php:
--------------------------------------------------------------------------------
1 |
13 | */
14 | public function get($name);
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php:
--------------------------------------------------------------------------------
1 |
24 | */
25 | public function get($name)
26 | {
27 | if (!\array_key_exists($name, $_SERVER)) {
28 | return None::create();
29 | }
30 | $value = $_SERVER[$name];
31 | if (\is_scalar($value)) {
32 | /** @var \PhpOption\Option */
33 | return Some::create((string) $value);
34 | }
35 | if (null === $value) {
36 | /** @var \PhpOption\Option */
37 | return Some::create(null);
38 | }
39 | return None::create();
40 | }
41 | /**
42 | * Set an environment variable.
43 | *
44 | * @param non-empty-string $name
45 | * @param string|null $value
46 | *
47 | * @return void
48 | */
49 | public function set($name, $value = null)
50 | {
51 | $_SERVER[$name] = $value;
52 | }
53 | /**
54 | * Clear an environment variable.
55 | *
56 | * @param non-empty-string $name
57 | *
58 | * @return void
59 | */
60 | public function clear($name)
61 | {
62 | unset($_SERVER[$name]);
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 | interface RepositoryInterface extends ArrayAccess
10 | {
11 | /**
12 | * Tells whether environment variable has been defined.
13 | *
14 | * @param string $name
15 | *
16 | * @return bool
17 | */
18 | public function has($name);
19 | /**
20 | * Get an environment variable.
21 | *
22 | * @param string $name
23 | *
24 | * @throws \InvalidArgumentException
25 | *
26 | * @return string|null
27 | */
28 | public function get($name);
29 | /**
30 | * Set an environment variable.
31 | *
32 | * @param string $name
33 | * @param string|null $value
34 | *
35 | * @throws \InvalidArgumentException
36 | *
37 | * @return void
38 | */
39 | public function set($name, $value = null);
40 | /**
41 | * Clear an environment variable.
42 | *
43 | * @param string $name
44 | *
45 | * @throws \InvalidArgumentException
46 | *
47 | * @return void
48 | */
49 | public function clear($name);
50 | }
51 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Result/Result.php:
--------------------------------------------------------------------------------
1 |
15 | */
16 | public abstract function success();
17 | /**
18 | * Get the success value, if possible.
19 | *
20 | * @throws \RuntimeException
21 | *
22 | * @return T
23 | */
24 | public function getSuccess()
25 | {
26 | return $this->success()->get();
27 | }
28 | /**
29 | * Map over the success value.
30 | *
31 | * @template S
32 | *
33 | * @param callable(T):S $f
34 | *
35 | * @return \Dotenv\Result\Result
36 | */
37 | public abstract function mapSuccess(callable $f);
38 | /**
39 | * Get the error option value.
40 | *
41 | * @return \PhpOption\Option
42 | */
43 | public abstract function error();
44 | /**
45 | * Get the error value, if possible.
46 | *
47 | * @throws \RuntimeException
48 | *
49 | * @return E
50 | */
51 | public function getError()
52 | {
53 | return $this->error()->get();
54 | }
55 | /**
56 | * Map over the error value.
57 | *
58 | * @template F
59 | *
60 | * @param callable(E):F $f
61 | *
62 | * @return \Dotenv\Result\Result
63 | */
64 | public abstract function mapError(callable $f);
65 | }
66 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Store/File/Paths.php:
--------------------------------------------------------------------------------
1 |
19 | */
20 | public static function read(array $filePaths, $shortCircuit = \true)
21 | {
22 | $output = [];
23 | foreach ($filePaths as $filePath) {
24 | $content = self::readFromFile($filePath);
25 | if ($content->isDefined()) {
26 | $output[$filePath] = $content->get();
27 | if ($shortCircuit) {
28 | break;
29 | }
30 | }
31 | }
32 | return $output;
33 | }
34 | /**
35 | * Read the given file.
36 | *
37 | * @param string $filePath
38 | *
39 | * @return \PhpOption\Option
40 | */
41 | private static function readFromFile($filePath)
42 | {
43 | $content = @\file_get_contents($filePath);
44 | /** @var \PhpOption\Option */
45 | return Option::fromValue($content, \false);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Store/FileStore.php:
--------------------------------------------------------------------------------
1 | filePaths = $filePaths;
32 | $this->shortCircuit = $shortCircuit;
33 | }
34 | /**
35 | * Read the content of the environment file(s).
36 | *
37 | * @throws \Dotenv\Exception\InvalidPathException
38 | *
39 | * @return string
40 | */
41 | public function read()
42 | {
43 | if ($this->filePaths === []) {
44 | throw new InvalidPathException('At least one environment file path must be provided.');
45 | }
46 | $contents = Reader::read($this->filePaths, $this->shortCircuit);
47 | if (\count($contents) > 0) {
48 | return \implode("\n", $contents);
49 | }
50 | throw new InvalidPathException(\sprintf('Unable to read any of the environment file(s) at [%s].', \implode(', ', $this->filePaths)));
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php:
--------------------------------------------------------------------------------
1 | content = $content;
23 | }
24 | /**
25 | * Read the content of the environment file(s).
26 | *
27 | * @return string
28 | */
29 | public function read()
30 | {
31 | return $this->content;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/version-lite.php:
--------------------------------------------------------------------------------
1 |