first commit
This commit is contained in:
26
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Bar.php
vendored
Normal file
26
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Bar.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class Bar implements BarInterface
|
||||
{
|
||||
public $quz;
|
||||
|
||||
public function __construct($quz = null, \NonExistent $nonExistent = null, BarInterface $decorated = null, array $foo = [])
|
||||
{
|
||||
$this->quz = $quz;
|
||||
}
|
||||
|
||||
public static function create(\NonExistent $nonExistent = null, $factory = null)
|
||||
{
|
||||
}
|
||||
}
|
||||
16
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/BarInterface.php
vendored
Normal file
16
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/BarInterface.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
interface BarInterface
|
||||
{
|
||||
}
|
||||
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/CaseSensitiveClass.php
vendored
Normal file
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/CaseSensitiveClass.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class CaseSensitiveClass
|
||||
{
|
||||
public $identifier;
|
||||
|
||||
public function __construct($identifier = null)
|
||||
{
|
||||
$this->identifier = $identifier;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Container;
|
||||
|
||||
class ConstructorWithMandatoryArgumentsContainer
|
||||
{
|
||||
public function __construct($mandatoryArgument)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Container;
|
||||
|
||||
class ConstructorWithOptionalArgumentsContainer
|
||||
{
|
||||
public function __construct($optionalArgument = 'foo')
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Container;
|
||||
|
||||
class ConstructorWithoutArgumentsContainer
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Container;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Container;
|
||||
|
||||
class NoConstructorContainer extends Container
|
||||
{
|
||||
}
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Container/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Container/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
18
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/CustomDefinition.php
vendored
Normal file
18
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/CustomDefinition.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
|
||||
class CustomDefinition extends Definition
|
||||
{
|
||||
}
|
||||
18
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/DeprecatedClass.php
vendored
Normal file
18
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/DeprecatedClass.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
@trigger_error('deprecated', E_USER_DEPRECATED);
|
||||
|
||||
class DeprecatedClass
|
||||
{
|
||||
}
|
||||
44
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/FactoryDummy.php
vendored
Normal file
44
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/FactoryDummy.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class FactoryDummy extends FactoryParent
|
||||
{
|
||||
public static function createFactory(): FactoryDummy
|
||||
{
|
||||
}
|
||||
|
||||
public function create(): \stdClass
|
||||
{
|
||||
}
|
||||
|
||||
// Not supported by hhvm
|
||||
public function createBuiltin(): int
|
||||
{
|
||||
}
|
||||
|
||||
public static function createSelf(): self
|
||||
{
|
||||
}
|
||||
|
||||
public static function createParent(): parent
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
class FactoryParent
|
||||
{
|
||||
}
|
||||
|
||||
function factoryFunction(): FactoryDummy
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class FactoryDummyWithoutReturnTypes
|
||||
{
|
||||
public function createTestDefinition1()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class FooForCircularWithAddCalls
|
||||
{
|
||||
public function call(\stdClass $argument)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
/**
|
||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||
*/
|
||||
class NamedArgumentsDummy
|
||||
{
|
||||
public function __construct(CaseSensitiveClass $c, $apiKey, $hostName)
|
||||
{
|
||||
}
|
||||
|
||||
public function setApiKey($apiKey)
|
||||
{
|
||||
}
|
||||
|
||||
public function setSensitiveClass(CaseSensitiveClass $c)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class ParentNotExists extends \NotExists
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\BadClasses;
|
||||
|
||||
class MissingParent extends MissingClass
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
14
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Prototype/Foo.php
vendored
Normal file
14
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Prototype/Foo.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
|
||||
|
||||
class Foo implements FooInterface, Sub\BarInterface
|
||||
{
|
||||
public function __construct($bar = null)
|
||||
{
|
||||
}
|
||||
|
||||
public function setFoo(self $foo)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
|
||||
|
||||
interface FooInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir\AnotherSub;
|
||||
|
||||
class DeeperBaz
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir;
|
||||
|
||||
class Baz
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir\Component1\Dir1;
|
||||
|
||||
class Service1
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir\Component1\Dir2;
|
||||
|
||||
class Service2
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir\Component2\Dir1;
|
||||
|
||||
class Service4
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir\Component2\Dir2;
|
||||
|
||||
class Service5
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub;
|
||||
|
||||
class Bar implements BarInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub;
|
||||
|
||||
interface BarInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Prototype/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/Prototype/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
14
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/ScalarFactory.php
vendored
Normal file
14
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/ScalarFactory.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
final class ScalarFactory
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public static function getSomeValue()
|
||||
{
|
||||
return 'some value';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
class SimilarArgumentsDummy
|
||||
{
|
||||
public $class1;
|
||||
public $class2;
|
||||
|
||||
public function __construct(CaseSensitiveClass $class1, $token, CaseSensitiveClass $class2)
|
||||
{
|
||||
$this->class1 = $class1;
|
||||
$this->class2 = $class2;
|
||||
}
|
||||
}
|
||||
28
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/StubbedTranslator.php
vendored
Normal file
28
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/StubbedTranslator.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
/**
|
||||
* @author Iltar van der Berg <kjarli@gmail.com>
|
||||
*/
|
||||
class StubbedTranslator
|
||||
{
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
}
|
||||
|
||||
public function addResource($format, $resource, $locale, $domain = null)
|
||||
{
|
||||
}
|
||||
}
|
||||
18
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/TestDefinition1.php
vendored
Normal file
18
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/TestDefinition1.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
|
||||
class TestDefinition1 extends Definition
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
|
||||
class TestDefinition2 extends Definition
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
|
||||
|
||||
class TestServiceSubscriber implements ServiceSubscriberInterface
|
||||
{
|
||||
public function __construct($container)
|
||||
{
|
||||
}
|
||||
|
||||
public static function getSubscribedServices()
|
||||
{
|
||||
return [
|
||||
__CLASS__,
|
||||
'?'.CustomDefinition::class,
|
||||
'bar' => CustomDefinition::class,
|
||||
'baz' => '?'.CustomDefinition::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
1
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/array.json
vendored
Normal file
1
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/array.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[123, "abc"]
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
services:
|
||||
service_container:
|
||||
class: Symfony\Component\DependencyInjection\ContainerInterface
|
||||
public: true
|
||||
synthetic: true
|
||||
App\BarService:
|
||||
class: App\BarService
|
||||
arguments: [!service { class: FooClass }]
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/basic.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/basic.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use App\BarService;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$s = $c->services();
|
||||
$s->set(BarService::class)
|
||||
->args([inline('FooClass')]);
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
services:
|
||||
service_container:
|
||||
class: Symfony\Component\DependencyInjection\ContainerInterface
|
||||
public: true
|
||||
synthetic: true
|
||||
foo:
|
||||
class: Class2
|
||||
file: file.php
|
||||
lazy: true
|
||||
arguments: [!service { class: Class1, public: false }]
|
||||
bar: '@foo'
|
||||
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/child.php
vendored
Normal file
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/child.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use App\BarService;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$c->services()
|
||||
->set('bar', 'Class1')
|
||||
->set(BarService::class)
|
||||
->abstract(true)
|
||||
->lazy()
|
||||
->set('foo')
|
||||
->parent(BarService::class)
|
||||
->decorate('bar', 'b', 1)
|
||||
->args([ref('b')])
|
||||
->class('Class2')
|
||||
->file('file.php')
|
||||
->parent('bar')
|
||||
->parent(BarService::class)
|
||||
;
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
services:
|
||||
service_container:
|
||||
class: Symfony\Component\DependencyInjection\ContainerInterface
|
||||
public: true
|
||||
synthetic: true
|
||||
App\BarService:
|
||||
class: App\BarService
|
||||
arguments: [!service { class: FooClass }]
|
||||
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo
|
||||
public: true
|
||||
tags:
|
||||
- { name: t, a: b }
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
arguments: ['@bar']
|
||||
bar:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo
|
||||
public: false
|
||||
tags:
|
||||
- { name: t, a: b }
|
||||
autowire: true
|
||||
calls:
|
||||
- [setFoo, ['@bar']]
|
||||
|
||||
21
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/defaults.php
vendored
Normal file
21
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/defaults.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$c->import('basic.php');
|
||||
|
||||
$s = $c->services()->defaults()
|
||||
->public()
|
||||
->private()
|
||||
->autoconfigure()
|
||||
->autowire()
|
||||
->tag('t', ['a' => 'b'])
|
||||
->bind(Foo::class, ref('bar'))
|
||||
->private();
|
||||
|
||||
$s->set(Foo::class)->args([ref('bar')])->public();
|
||||
$s->set('bar', Foo::class)->call('setFoo')->autoconfigure(false);
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$c->services()
|
||||
->set('service', \stdClass::class)
|
||||
->factory('factory:method');
|
||||
};
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
services:
|
||||
service_container:
|
||||
class: Symfony\Component\DependencyInjection\ContainerInterface
|
||||
public: true
|
||||
synthetic: true
|
||||
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo
|
||||
tags:
|
||||
- { name: tag, k: v }
|
||||
lazy: true
|
||||
properties: { p: 1 }
|
||||
calls:
|
||||
- [setFoo, ['@foo']]
|
||||
|
||||
shared: false
|
||||
configurator: c
|
||||
foo:
|
||||
class: App\FooService
|
||||
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/instanceof.php
vendored
Normal file
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/instanceof.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use App\FooService;
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$s = $c->services();
|
||||
$s->instanceof(Prototype\Foo::class)
|
||||
->property('p', 0)
|
||||
->call('setFoo', [ref('foo')])
|
||||
->tag('tag', ['k' => 'v'])
|
||||
->share(false)
|
||||
->lazy()
|
||||
->configurator('c')
|
||||
->property('p', 1);
|
||||
|
||||
$s->load(Prototype::class.'\\', '../Prototype')->exclude('../Prototype/*/*');
|
||||
|
||||
$s->set('foo', FooService::class);
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
parameters:
|
||||
foo: Foo
|
||||
bar: Bar
|
||||
|
||||
services:
|
||||
service_container:
|
||||
class: Symfony\Component\DependencyInjection\ContainerInterface
|
||||
public: true
|
||||
synthetic: true
|
||||
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo
|
||||
public: true
|
||||
arguments: ['@bar']
|
||||
bar:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo
|
||||
calls:
|
||||
- [setFoo, { }]
|
||||
|
||||
19
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/php7.php
vendored
Normal file
19
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/php7.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$c->parameters()
|
||||
('foo', 'Foo')
|
||||
('bar', 'Bar')
|
||||
;
|
||||
$c->services()
|
||||
(Foo::class)
|
||||
->arg('$bar', ref('bar'))
|
||||
->public()
|
||||
('bar', Foo::class)
|
||||
->call('setFoo')
|
||||
;
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
services:
|
||||
service_container:
|
||||
class: Symfony\Component\DependencyInjection\ContainerInterface
|
||||
public: true
|
||||
synthetic: true
|
||||
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo
|
||||
tags:
|
||||
- { name: foo }
|
||||
- { name: baz }
|
||||
deprecated: '%service_id%'
|
||||
arguments: [1]
|
||||
factory: f
|
||||
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar
|
||||
tags:
|
||||
- { name: foo }
|
||||
- { name: baz }
|
||||
deprecated: '%service_id%'
|
||||
lazy: true
|
||||
arguments: [1]
|
||||
factory: f
|
||||
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/prototype.php
vendored
Normal file
22
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/prototype.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$di = $c->services()->defaults()
|
||||
->tag('baz');
|
||||
$di->load(Prototype::class.'\\', '../Prototype')
|
||||
->autoconfigure()
|
||||
->exclude('../Prototype/{OtherDir,BadClasses}')
|
||||
->factory('f')
|
||||
->deprecate('%service_id%')
|
||||
->args([0])
|
||||
->args([1])
|
||||
->autoconfigure(false)
|
||||
->tag('foo')
|
||||
->parent('foo');
|
||||
$di->set('foo')->lazy()->abstract();
|
||||
$di->get(Prototype\Foo::class)->lazy(false);
|
||||
};
|
||||
127
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/services9.php
vendored
Normal file
127
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/config/services9.php
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use Bar\FooClass;
|
||||
use Symfony\Component\DependencyInjection\Parameter;
|
||||
|
||||
require_once __DIR__.'/../includes/classes.php';
|
||||
require_once __DIR__.'/../includes/foo.php';
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$p = $c->parameters();
|
||||
$p->set('baz_class', 'BazClass');
|
||||
$p->set('foo_class', FooClass::class)
|
||||
->set('foo', 'bar');
|
||||
|
||||
$s = $c->services()->defaults()->public();
|
||||
$s->set('foo')
|
||||
->args(['foo', ref('foo.baz'), ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%'], true, ref('service_container')])
|
||||
->class(FooClass::class)
|
||||
->tag('foo', ['foo' => 'foo'])
|
||||
->tag('foo', ['bar' => 'bar', 'baz' => 'baz'])
|
||||
->factory([FooClass::class, 'getInstance'])
|
||||
->property('foo', 'bar')
|
||||
->property('moo', ref('foo.baz'))
|
||||
->property('qux', ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%'])
|
||||
->call('setBar', [ref('bar')])
|
||||
->call('initialize')
|
||||
->configurator('sc_configure');
|
||||
|
||||
$s->set('foo.baz', '%baz_class%')
|
||||
->factory(['%baz_class%', 'getInstance'])
|
||||
->configurator(['%baz_class%', 'configureStatic1']);
|
||||
|
||||
$s->set('bar', FooClass::class)
|
||||
->args(['foo', ref('foo.baz'), new Parameter('foo_bar')])
|
||||
->configurator([ref('foo.baz'), 'configure']);
|
||||
|
||||
$s->set('foo_bar', '%foo_class%')
|
||||
->args([ref('deprecated_service')])
|
||||
->share(false);
|
||||
|
||||
$s->set('method_call1', 'Bar\FooClass')
|
||||
->file(realpath(__DIR__.'/../includes/foo.php'))
|
||||
->call('setBar', [ref('foo')])
|
||||
->call('setBar', [ref('foo2')->nullOnInvalid()])
|
||||
->call('setBar', [ref('foo3')->ignoreOnInvalid()])
|
||||
->call('setBar', [ref('foobaz')->ignoreOnInvalid()])
|
||||
->call('setBar', [expr('service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")')]);
|
||||
|
||||
$s->set('foo_with_inline', 'Foo')
|
||||
->call('setBar', [ref('inlined')]);
|
||||
|
||||
$s->set('inlined', 'Bar')
|
||||
->property('pub', 'pub')
|
||||
->call('setBaz', [ref('baz')])
|
||||
->private();
|
||||
|
||||
$s->set('baz', 'Baz')
|
||||
->call('setFoo', [ref('foo_with_inline')]);
|
||||
|
||||
$s->set('request', 'Request')
|
||||
->synthetic();
|
||||
|
||||
$s->set('configurator_service', 'ConfClass')
|
||||
->private()
|
||||
->call('setFoo', [ref('baz')]);
|
||||
|
||||
$s->set('configured_service', 'stdClass')
|
||||
->configurator([ref('configurator_service'), 'configureStdClass']);
|
||||
|
||||
$s->set('configurator_service_simple', 'ConfClass')
|
||||
->args(['bar'])
|
||||
->private();
|
||||
|
||||
$s->set('configured_service_simple', 'stdClass')
|
||||
->configurator([ref('configurator_service_simple'), 'configureStdClass']);
|
||||
|
||||
$s->set('decorated', 'stdClass');
|
||||
|
||||
$s->set('decorator_service', 'stdClass')
|
||||
->decorate('decorated');
|
||||
|
||||
$s->set('decorator_service_with_name', 'stdClass')
|
||||
->decorate('decorated', 'decorated.pif-pouf');
|
||||
|
||||
$s->set('deprecated_service', 'stdClass')
|
||||
->deprecate();
|
||||
|
||||
$s->set('new_factory', 'FactoryClass')
|
||||
->property('foo', 'bar')
|
||||
->private();
|
||||
|
||||
$s->set('factory_service', 'Bar')
|
||||
->factory([ref('foo.baz'), 'getInstance']);
|
||||
|
||||
$s->set('new_factory_service', 'FooBarBaz')
|
||||
->property('foo', 'bar')
|
||||
->factory([ref('new_factory'), 'getInstance']);
|
||||
|
||||
$s->set('service_from_static_method', 'Bar\FooClass')
|
||||
->factory(['Bar\FooClass', 'getInstance']);
|
||||
|
||||
$s->set('factory_simple', 'SimpleFactoryClass')
|
||||
->deprecate()
|
||||
->args(['foo'])
|
||||
->private();
|
||||
|
||||
$s->set('factory_service_simple', 'Bar')
|
||||
->factory([ref('factory_simple'), 'getInstance']);
|
||||
|
||||
$s->set('lazy_context', 'LazyContext')
|
||||
->args([iterator(['k1' => ref('foo.baz'), 'k2' => ref('service_container')]), iterator([])]);
|
||||
|
||||
$s->set('lazy_context_ignore_invalid_ref', 'LazyContext')
|
||||
->args([iterator([ref('foo.baz'), ref('invalid')->ignoreOnInvalid()]), iterator([])]);
|
||||
|
||||
$s->set('tagged_iterator_foo', 'Bar')
|
||||
->private()
|
||||
->tag('foo');
|
||||
|
||||
$s->set('tagged_iterator', 'Bar')
|
||||
->args([tagged('foo')]);
|
||||
|
||||
$s->alias('alias_for_foo', 'foo')->private()->public();
|
||||
$s->alias('alias_for_alias', ref('alias_for_foo'));
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$c->services()
|
||||
->set('parent_service', \stdClass::class)
|
||||
->set('child_service')->parent('parent_service')->autoconfigure(true);
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\containers;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Container;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||
|
||||
class CustomContainer extends Container
|
||||
{
|
||||
public function getBarService()
|
||||
{
|
||||
}
|
||||
|
||||
public function getFoobarService()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../includes/classes.php';
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container->
|
||||
register('foo', 'FooClass')->
|
||||
addArgument(new Reference('bar'))
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container->
|
||||
register('foo', 'FooClass')->
|
||||
addArgument(new Definition('BarClass', [new Definition('BazClass')]))
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container->
|
||||
register('foo', 'FooClass\\Foo')->
|
||||
addArgument('foo<>&bar')->
|
||||
addTag('foo"bar\\bar', ['foo' => 'foo"barřž€'])
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container->
|
||||
register('foo', 'FooClass')->
|
||||
addArgument(new Reference('bar'))
|
||||
->setPublic(true)
|
||||
;
|
||||
$container->
|
||||
register('bar', 'BarClass')
|
||||
->setPublic(true)
|
||||
;
|
||||
$container->compile();
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Container14;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
/*
|
||||
* This file is included in Tests\Dumper\GraphvizDumperTest::testDumpWithFrozenCustomClassContainer
|
||||
* and Tests\Dumper\XmlDumperTest::testCompiledContainerCanBeDumped.
|
||||
*/
|
||||
if (!class_exists('Container14\ProjectServiceContainer')) {
|
||||
class ProjectServiceContainer extends ContainerBuilder
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
return new ProjectServiceContainer();
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container
|
||||
->register('foo', 'FooClass\\Foo')
|
||||
->setDecoratedService('bar', 'bar.woozy')
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container
|
||||
->register('foo', 'FooClass\\Foo')
|
||||
->setDecoratedService('bar')
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container
|
||||
->register('foo', '%foo.class%')
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
|
||||
require_once __DIR__.'/../includes/classes.php';
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container->setParameter('env(FOO)', 'Bar\FaooClass');
|
||||
$container->setParameter('foo', '%env(FOO)%');
|
||||
|
||||
$container
|
||||
->register('service_from_anonymous_factory', '%foo%')
|
||||
->setFactory([new Definition('%foo%'), 'getInstance'])
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
$anonymousServiceWithFactory = new Definition('Bar\FooClass');
|
||||
$anonymousServiceWithFactory->setFactory('Bar\FooClass::getInstance');
|
||||
$container
|
||||
->register('service_with_method_call_and_factory', 'Bar\FooClass')
|
||||
->addMethodCall('setBar', [$anonymousServiceWithFactory])
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$bar = new Definition('Bar');
|
||||
$bar->setConfigurator([new Definition('Baz'), 'configureBar']);
|
||||
|
||||
$fooFactory = new Definition('FooFactory');
|
||||
$fooFactory->setFactory([new Definition('Foobar'), 'createFooFactory']);
|
||||
|
||||
$container
|
||||
->register('foo', 'Foo')
|
||||
->setFactory([$fooFactory, 'createFoo'])
|
||||
->setConfigurator([$bar, 'configureFoo'])
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container
|
||||
->register('foo', 'Foo')
|
||||
->setAutowired(true)
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Container33;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container->register(\Foo\Foo::class)->setPublic(true);
|
||||
$container->register(\Bar\Foo::class)->setPublic(true);
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||
|
||||
$container = new ContainerBuilder(new ParameterBag([
|
||||
'foo' => '%baz%',
|
||||
'baz' => 'bar',
|
||||
'bar' => 'foo is %%foo bar',
|
||||
'escape' => '@escapeme',
|
||||
'values' => [true, false, null, 0, 1000.3, 'true', 'false', 'null'],
|
||||
'null string' => 'null',
|
||||
'string of digits' => '123',
|
||||
'string of digits prefixed with minus character' => '-123',
|
||||
'true string' => 'true',
|
||||
'false string' => 'false',
|
||||
'binary number string' => '0b0110',
|
||||
'numeric string' => '-1.2E2',
|
||||
'hexadecimal number string' => '0xFF',
|
||||
'float string' => '10100.1',
|
||||
'positive float string' => '+10100.1',
|
||||
'negative float string' => '-10100.1',
|
||||
]));
|
||||
|
||||
return $container;
|
||||
176
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/containers/container9.php
vendored
Normal file
176
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/containers/container9.php
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../includes/classes.php';
|
||||
require_once __DIR__.'/../includes/foo.php';
|
||||
|
||||
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
|
||||
use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
use Symfony\Component\DependencyInjection\Parameter;
|
||||
use Symfony\Component\ExpressionLanguage\Expression;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
$container
|
||||
->register('foo', '\Bar\FooClass')
|
||||
->addTag('foo', ['foo' => 'foo'])
|
||||
->addTag('foo', ['bar' => 'bar', 'baz' => 'baz'])
|
||||
->setFactory(['Bar\\FooClass', 'getInstance'])
|
||||
->setArguments(['foo', new Reference('foo.baz'), ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%'], true, new Reference('service_container')])
|
||||
->setProperties(['foo' => 'bar', 'moo' => new Reference('foo.baz'), 'qux' => ['%foo%' => 'foo is %foo%', 'foobar' => '%foo%']])
|
||||
->addMethodCall('setBar', [new Reference('bar')])
|
||||
->addMethodCall('initialize')
|
||||
->setConfigurator('sc_configure')
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('foo.baz', '%baz_class%')
|
||||
->setFactory(['%baz_class%', 'getInstance'])
|
||||
->setConfigurator(['%baz_class%', 'configureStatic1'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('bar', 'Bar\FooClass')
|
||||
->setArguments(['foo', new Reference('foo.baz'), new Parameter('foo_bar')])
|
||||
->setConfigurator([new Reference('foo.baz'), 'configure'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('foo_bar', '%foo_class%')
|
||||
->addArgument(new Reference('deprecated_service'))
|
||||
->setShared(false)
|
||||
->setPublic(true)
|
||||
;
|
||||
$container->getParameterBag()->clear();
|
||||
$container->getParameterBag()->add([
|
||||
'baz_class' => 'BazClass',
|
||||
'foo_class' => 'Bar\FooClass',
|
||||
'foo' => 'bar',
|
||||
]);
|
||||
$container
|
||||
->register('method_call1', 'Bar\FooClass')
|
||||
->setFile(realpath(__DIR__.'/../includes/foo.php'))
|
||||
->addMethodCall('setBar', [new Reference('foo')])
|
||||
->addMethodCall('setBar', [new Reference('foo2', ContainerInterface::NULL_ON_INVALID_REFERENCE)])
|
||||
->addMethodCall('setBar', [new Reference('foo3', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)])
|
||||
->addMethodCall('setBar', [new Reference('foobaz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)])
|
||||
->addMethodCall('setBar', [new Expression('service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")')])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('foo_with_inline', 'Foo')
|
||||
->addMethodCall('setBar', [new Reference('inlined')])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('inlined', 'Bar')
|
||||
->setProperty('pub', 'pub')
|
||||
->addMethodCall('setBaz', [new Reference('baz')])
|
||||
->setPublic(false)
|
||||
;
|
||||
$container
|
||||
->register('baz', 'Baz')
|
||||
->addMethodCall('setFoo', [new Reference('foo_with_inline')])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('request', 'Request')
|
||||
->setSynthetic(true)
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('configurator_service', 'ConfClass')
|
||||
->setPublic(false)
|
||||
->addMethodCall('setFoo', [new Reference('baz')])
|
||||
;
|
||||
$container
|
||||
->register('configured_service', 'stdClass')
|
||||
->setConfigurator([new Reference('configurator_service'), 'configureStdClass'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('configurator_service_simple', 'ConfClass')
|
||||
->addArgument('bar')
|
||||
->setPublic(false)
|
||||
;
|
||||
$container
|
||||
->register('configured_service_simple', 'stdClass')
|
||||
->setConfigurator([new Reference('configurator_service_simple'), 'configureStdClass'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('decorated', 'stdClass')
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('decorator_service', 'stdClass')
|
||||
->setDecoratedService('decorated')
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('decorator_service_with_name', 'stdClass')
|
||||
->setDecoratedService('decorated', 'decorated.pif-pouf')
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('deprecated_service', 'stdClass')
|
||||
->setDeprecated(true)
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('new_factory', 'FactoryClass')
|
||||
->setProperty('foo', 'bar')
|
||||
->setPublic(false)
|
||||
;
|
||||
$container
|
||||
->register('factory_service', 'Bar')
|
||||
->setFactory([new Reference('foo.baz'), 'getInstance'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('new_factory_service', 'FooBarBaz')
|
||||
->setProperty('foo', 'bar')
|
||||
->setFactory([new Reference('new_factory'), 'getInstance'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('service_from_static_method', 'Bar\FooClass')
|
||||
->setFactory(['Bar\FooClass', 'getInstance'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('factory_simple', 'SimpleFactoryClass')
|
||||
->addArgument('foo')
|
||||
->setDeprecated(true)
|
||||
->setPublic(false)
|
||||
;
|
||||
$container
|
||||
->register('factory_service_simple', 'Bar')
|
||||
->setFactory([new Reference('factory_simple'), 'getInstance'])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('lazy_context', 'LazyContext')
|
||||
->setArguments([new IteratorArgument(['k1' => new Reference('foo.baz'), 'k2' => new Reference('service_container')]), new IteratorArgument([])])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('lazy_context_ignore_invalid_ref', 'LazyContext')
|
||||
->setArguments([new IteratorArgument([new Reference('foo.baz'), new Reference('invalid', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]), new IteratorArgument([])])
|
||||
->setPublic(true)
|
||||
;
|
||||
$container
|
||||
->register('tagged_iterator_foo', 'Bar')
|
||||
->addTag('foo')
|
||||
->setPublic(false)
|
||||
;
|
||||
$container
|
||||
->register('tagged_iterator', 'Bar')
|
||||
->addArgument(new TaggedIteratorArgument('foo'))
|
||||
->setPublic(true)
|
||||
;
|
||||
$container->setAlias('alias_for_foo', 'foo')->setPublic(true);
|
||||
$container->setAlias('alias_for_alias', 'alias_for_foo')->setPublic(true);
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container
|
||||
->register('foo', 'Foo')
|
||||
->setAbstract(true)
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,176 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\FooForCircularWithAddCalls;
|
||||
|
||||
$public = 'public' === $visibility;
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
// same visibility for deps
|
||||
|
||||
$container->register('foo', FooCircular::class)->setPublic(true)
|
||||
->addArgument(new Reference('bar'));
|
||||
|
||||
$container->register('bar', BarCircular::class)->setPublic($public)
|
||||
->addMethodCall('addFoobar', [new Reference('foobar')]);
|
||||
|
||||
$container->register('foobar', FoobarCircular::class)->setPublic($public)
|
||||
->addArgument(new Reference('foo'));
|
||||
|
||||
// mixed visibility for deps
|
||||
|
||||
$container->register('foo2', FooCircular::class)->setPublic(true)
|
||||
->addArgument(new Reference('bar2'));
|
||||
|
||||
$container->register('bar2', BarCircular::class)->setPublic(!$public)
|
||||
->addMethodCall('addFoobar', [new Reference('foobar2')]);
|
||||
|
||||
$container->register('foobar2', FoobarCircular::class)->setPublic($public)
|
||||
->addArgument(new Reference('foo2'));
|
||||
|
||||
// simple inline setter with internal reference
|
||||
|
||||
$container->register('bar3', BarCircular::class)->setPublic(true)
|
||||
->addMethodCall('addFoobar', [new Reference('foobar3'), new Reference('foobar3')]);
|
||||
|
||||
$container->register('foobar3', FoobarCircular::class)->setPublic($public);
|
||||
|
||||
// loop with non-shared dep
|
||||
|
||||
$container->register('foo4', 'stdClass')->setPublic($public)
|
||||
->setShared(false)
|
||||
->setProperty('foobar', new Reference('foobar4'));
|
||||
|
||||
$container->register('foobar4', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('foo4'));
|
||||
|
||||
// loop on the constructor of a setter-injected dep with property
|
||||
|
||||
$container->register('foo5', 'stdClass')->setPublic(true)
|
||||
->setProperty('bar', new Reference('bar5'));
|
||||
|
||||
$container->register('bar5', 'stdClass')->setPublic($public)
|
||||
->addArgument(new Reference('foo5'))
|
||||
->setProperty('foo', new Reference('foo5'));
|
||||
|
||||
// doctrine-like event system + some extra
|
||||
|
||||
$container->register('manager', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('connection'));
|
||||
|
||||
$container->register('logger', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('connection'))
|
||||
->setProperty('handler', (new Definition('stdClass'))->addArgument(new Reference('manager')))
|
||||
;
|
||||
$container->register('connection', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('dispatcher'))
|
||||
->addArgument(new Reference('config'));
|
||||
|
||||
$container->register('config', 'stdClass')->setPublic(false)
|
||||
->setProperty('logger', new Reference('logger'));
|
||||
|
||||
$container->register('dispatcher', 'stdClass')->setPublic($public)
|
||||
->setLazy($public)
|
||||
->setProperty('subscriber', new Reference('subscriber'));
|
||||
|
||||
$container->register('subscriber', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('manager'));
|
||||
|
||||
// doctrine-like event system + some extra (bis)
|
||||
|
||||
$container->register('manager2', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('connection2'));
|
||||
|
||||
$container->register('logger2', 'stdClass')->setPublic(false)
|
||||
->addArgument(new Reference('connection2'))
|
||||
->setProperty('handler2', (new Definition('stdClass'))->addArgument(new Reference('manager2')))
|
||||
;
|
||||
$container->register('connection2', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('dispatcher2'))
|
||||
->addArgument(new Reference('config2'));
|
||||
|
||||
$container->register('config2', 'stdClass')->setPublic(false)
|
||||
->setProperty('logger2', new Reference('logger2'));
|
||||
|
||||
$container->register('dispatcher2', 'stdClass')->setPublic($public)
|
||||
->setLazy($public)
|
||||
->setProperty('subscriber2', new Reference('subscriber2'));
|
||||
|
||||
$container->register('subscriber2', 'stdClass')->setPublic(false)
|
||||
->addArgument(new Reference('manager2'));
|
||||
|
||||
// doctrine-like event system with listener
|
||||
|
||||
$container->register('manager3', 'stdClass')
|
||||
->setLazy(true)
|
||||
->setPublic(true)
|
||||
->addArgument(new Reference('connection3'));
|
||||
|
||||
$container->register('connection3', 'stdClass')
|
||||
->setPublic($public)
|
||||
->setProperty('listener', [new Reference('listener3')]);
|
||||
|
||||
$container->register('listener3', 'stdClass')
|
||||
->setPublic(true)
|
||||
->setProperty('manager', new Reference('manager3'));
|
||||
|
||||
// doctrine-like event system with small differences
|
||||
|
||||
$container->register('manager4', 'stdClass')
|
||||
->setLazy(true)
|
||||
->addArgument(new Reference('connection4'));
|
||||
|
||||
$container->register('connection4', 'stdClass')
|
||||
->setPublic($public)
|
||||
->setProperty('listener', [new Reference('listener4')]);
|
||||
|
||||
$container->register('listener4', 'stdClass')
|
||||
->setPublic(true)
|
||||
->addArgument(new Reference('manager4'));
|
||||
|
||||
// private service involved in a loop
|
||||
|
||||
$container->register('foo6', 'stdClass')
|
||||
->setPublic(true)
|
||||
->setProperty('bar6', new Reference('bar6'));
|
||||
|
||||
$container->register('bar6', 'stdClass')
|
||||
->setPublic(false)
|
||||
->addArgument(new Reference('foo6'));
|
||||
|
||||
$container->register('baz6', 'stdClass')
|
||||
->setPublic(true)
|
||||
->setProperty('bar6', new Reference('bar6'));
|
||||
|
||||
// provided by Christian Schiffler
|
||||
|
||||
$container
|
||||
->register('root', 'stdClass')
|
||||
->setArguments([new Reference('level2'), new Reference('multiuse1')])
|
||||
->setPublic(true);
|
||||
|
||||
$container
|
||||
->register('level2', FooForCircularWithAddCalls::class)
|
||||
->addMethodCall('call', [new Reference('level3')]);
|
||||
|
||||
$container->register('multiuse1', 'stdClass');
|
||||
|
||||
$container
|
||||
->register('level3', 'stdClass')
|
||||
->addArgument(new Reference('level4'));
|
||||
|
||||
$container
|
||||
->register('level4', 'stdClass')
|
||||
->setArguments([new Reference('multiuse1'), new Reference('level5')]);
|
||||
|
||||
$container
|
||||
->register('level5', 'stdClass')
|
||||
->addArgument(new Reference('level6'));
|
||||
|
||||
$container
|
||||
->register('level6', FooForCircularWithAddCalls::class)
|
||||
->addMethodCall('call', [new Reference('level5')]);
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container->setParameter('env(BAR)', 'bar');
|
||||
|
||||
$container->register('foo', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('bar_%env(BAR)%'))
|
||||
->addArgument(['baz_%env(BAR)%' => new Reference('baz_%env(BAR)%')]);
|
||||
|
||||
$container->register('bar', 'stdClass')->setPublic(true)
|
||||
->addArgument(new Reference('bar_%env(BAR)%'));
|
||||
|
||||
$container->register('bar_%env(BAR)%', 'stdClass')->setPublic(false);
|
||||
$container->register('baz_%env(BAR)%', 'stdClass')->setPublic(false);
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Tests\InlineRequires;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\includes\HotPath;
|
||||
use Symfony\Component\DependencyInjection\Tests\Fixtures\ParentNotExists;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container->register(HotPath\C1::class)->addTag('container.hot_path')->setPublic(true);
|
||||
$container->register(HotPath\C2::class)->addArgument(new Reference(HotPath\C3::class))->setPublic(true);
|
||||
$container->register(HotPath\C3::class);
|
||||
$container->register(ParentNotExists::class)->setPublic(true);
|
||||
|
||||
return $container;
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
|
||||
use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
$container
|
||||
->register('foo1', 'stdClass')
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
$container
|
||||
->register('foo2', 'stdClass')
|
||||
->setPublic(false)
|
||||
;
|
||||
|
||||
$container
|
||||
->register('foo3', 'stdClass')
|
||||
->setPublic(false)
|
||||
;
|
||||
|
||||
$container
|
||||
->register('baz', 'stdClass')
|
||||
->setProperty('foo3', new Reference('foo3'))
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
$container
|
||||
->register('bar', 'stdClass')
|
||||
->setProperty('foo1', new Reference('foo1', $container::IGNORE_ON_UNINITIALIZED_REFERENCE))
|
||||
->setProperty('foo2', new Reference('foo2', $container::IGNORE_ON_UNINITIALIZED_REFERENCE))
|
||||
->setProperty('foo3', new Reference('foo3', $container::IGNORE_ON_UNINITIALIZED_REFERENCE))
|
||||
->setProperty('closures', [
|
||||
new ServiceClosureArgument(new Reference('foo1', $container::IGNORE_ON_UNINITIALIZED_REFERENCE)),
|
||||
new ServiceClosureArgument(new Reference('foo2', $container::IGNORE_ON_UNINITIALIZED_REFERENCE)),
|
||||
new ServiceClosureArgument(new Reference('foo3', $container::IGNORE_ON_UNINITIALIZED_REFERENCE)),
|
||||
])
|
||||
->setProperty('iter', new IteratorArgument([
|
||||
'foo1' => new Reference('foo1', $container::IGNORE_ON_UNINITIALIZED_REFERENCE),
|
||||
'foo2' => new Reference('foo2', $container::IGNORE_ON_UNINITIALIZED_REFERENCE),
|
||||
'foo3' => new Reference('foo3', $container::IGNORE_ON_UNINITIALIZED_REFERENCE),
|
||||
]))
|
||||
->setPublic(true)
|
||||
;
|
||||
|
||||
return $container;
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/containers/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/containers/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: ../recurse/ }
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/directory/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/directory/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,2 @@
|
||||
[parameters]
|
||||
ini = ini
|
||||
@@ -0,0 +1,2 @@
|
||||
parameters:
|
||||
yaml: yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$container->setParameter('php', 'php');
|
||||
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/graphviz/index.php
vendored
Normal file
11
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/graphviz/index.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,7 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
digraph sc {
|
||||
ratio="normal"
|
||||
node [fontsize="13" fontname="Verdana" shape="square"];
|
||||
edge [fontsize="12" fontname="Verdana" color="white" arrowhead="closed" arrowsize="1"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=square, fillcolor="grey", style="filled"];
|
||||
node_foo [label="foo\nFooClass\n", shape=square, fillcolor="grey", style="filled"];
|
||||
node_bar [label="bar\n\n", shape=square, fillcolor="red", style="empty"];
|
||||
node_foo -> node_bar [label="" style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo [label="foo\nFooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_bar [label="bar\n\n", shape=record, fillcolor="#ff9999", style="filled"];
|
||||
node_foo -> node_bar [label="" style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo [label="foo\nFooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_bar [label="bar\nBarClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo -> node_bar [label="" style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo [label="foo\n%foo.class%\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_foo [label="foo\nFooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_service_container [label="service_container\nSymfony\\Component\\DependencyInjection\\ContainerBuilder\n", shape=record, fillcolor="#9999ff", style="filled"];
|
||||
}
|
||||
56
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/graphviz/services9.dot
vendored
Normal file
56
modules/inpostshipping/vendor/symfony/dependency-injection/Tests/Fixtures/graphviz/services9.dot
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo [label="foo (alias_for_foo)\nBar\\FooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo_baz [label="foo.baz\nBazClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_bar [label="bar\nBar\\FooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo_bar [label="foo_bar\nBar\\FooClass\n", shape=record, fillcolor="#eeeeee", style="dotted"];
|
||||
node_method_call1 [label="method_call1\nBar\\FooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo_with_inline [label="foo_with_inline\nFoo\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_inlined [label="inlined\nBar\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_baz [label="baz\nBaz\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_request [label="request\nRequest\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_configurator_service [label="configurator_service\nConfClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_configured_service [label="configured_service\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_configurator_service_simple [label="configurator_service_simple\nConfClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_configured_service_simple [label="configured_service_simple\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_decorated [label="decorated\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_decorator_service [label="decorator_service\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_decorator_service_with_name [label="decorator_service_with_name\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_deprecated_service [label="deprecated_service\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_new_factory [label="new_factory\nFactoryClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_factory_service [label="factory_service\nBar\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_new_factory_service [label="new_factory_service\nFooBarBaz\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_service_from_static_method [label="service_from_static_method\nBar\\FooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_factory_simple [label="factory_simple\nSimpleFactoryClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_factory_service_simple [label="factory_service_simple\nBar\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_lazy_context [label="lazy_context\nLazyContext\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_lazy_context_ignore_invalid_ref [label="lazy_context_ignore_invalid_ref\nLazyContext\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_tagged_iterator_foo [label="tagged_iterator_foo\nBar\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_tagged_iterator [label="tagged_iterator\nBar\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo2 [label="foo2\n\n", shape=record, fillcolor="#ff9999", style="filled"];
|
||||
node_foo3 [label="foo3\n\n", shape=record, fillcolor="#ff9999", style="filled"];
|
||||
node_foobaz [label="foobaz\n\n", shape=record, fillcolor="#ff9999", style="filled"];
|
||||
node_invalid [label="invalid\n\n", shape=record, fillcolor="#ff9999", style="filled"];
|
||||
node_foo -> node_foo_baz [label="" style="filled"];
|
||||
node_foo -> node_service_container [label="" style="filled"];
|
||||
node_foo -> node_foo_baz [label="" style="dashed"];
|
||||
node_foo -> node_bar [label="setBar()" style="dashed"];
|
||||
node_bar -> node_foo_baz [label="" style="filled"];
|
||||
node_foo_bar -> node_deprecated_service [label="" style="filled"];
|
||||
node_method_call1 -> node_foo [label="setBar()" style="dashed"];
|
||||
node_method_call1 -> node_foo2 [label="setBar()" style="dashed"];
|
||||
node_method_call1 -> node_foo3 [label="setBar()" style="dashed"];
|
||||
node_method_call1 -> node_foobaz [label="setBar()" style="dashed"];
|
||||
node_foo_with_inline -> node_inlined [label="setBar()" style="dashed"];
|
||||
node_inlined -> node_baz [label="setBaz()" style="dashed"];
|
||||
node_baz -> node_foo_with_inline [label="setFoo()" style="dashed"];
|
||||
node_configurator_service -> node_baz [label="setFoo()" style="dashed"];
|
||||
node_lazy_context -> node_foo_baz [label="" style="filled" color="#9999ff"];
|
||||
node_lazy_context -> node_service_container [label="" style="filled" color="#9999ff"];
|
||||
node_lazy_context_ignore_invalid_ref -> node_foo_baz [label="" style="filled" color="#9999ff"];
|
||||
node_lazy_context_ignore_invalid_ref -> node_invalid [label="" style="filled" color="#9999ff"];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
digraph sc {
|
||||
ratio="compress"
|
||||
node [fontsize="11" fontname="Arial" shape="record"];
|
||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
||||
|
||||
node_service_container [label="service_container (Psr\Container\ContainerInterface, Symfony\Component\DependencyInjection\ContainerInterface)\nSymfony\\Component\\DependencyInjection\\ContainerInterface\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo [label="foo\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_bar [label="bar\nstdClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
|
||||
node_foo -> node_bar [label="" style="filled"];
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\includes;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Tests\Compiler\Foo;
|
||||
|
||||
class FooVariadic
|
||||
{
|
||||
public function __construct(Foo $foo)
|
||||
{
|
||||
}
|
||||
|
||||
public function bar(...$arguments)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\includes\HotPath;
|
||||
|
||||
class C1 extends P1
|
||||
{
|
||||
use T1;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user