Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
40
vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectExtension.php
vendored
Normal file
40
vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectExtension.php
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
||||
|
||||
class ProjectExtension implements ExtensionInterface
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $configuration)
|
||||
{
|
||||
$config = call_user_func_array('array_merge', $configs);
|
||||
|
||||
$configuration->setDefinition('project.service.bar', new Definition('FooClass'));
|
||||
$configuration->setParameter('project.parameter.bar', isset($config['foo']) ? $config['foo'] : 'foobar');
|
||||
|
||||
$configuration->setDefinition('project.service.foo', new Definition('FooClass'));
|
||||
$configuration->setParameter('project.parameter.foo', isset($config['foo']) ? $config['foo'] : 'foobar');
|
||||
|
||||
return $configuration;
|
||||
}
|
||||
|
||||
public function getXsdValidationBasePath()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getNamespace()
|
||||
{
|
||||
return 'http://www.example.com/schema/project';
|
||||
}
|
||||
|
||||
public function getAlias()
|
||||
{
|
||||
return 'project';
|
||||
}
|
||||
|
||||
public function getConfiguration(array $config, ContainerBuilder $container)
|
||||
{
|
||||
}
|
||||
}
|
19
vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectWithXsdExtension.php
vendored
Normal file
19
vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectWithXsdExtension.php
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class ProjectWithXsdExtension extends ProjectExtension
|
||||
{
|
||||
public function getXsdValidationBasePath()
|
||||
{
|
||||
return __DIR__.'/schema';
|
||||
}
|
||||
|
||||
public function getNamespace()
|
||||
{
|
||||
return 'http://www.example.com/schema/projectwithxsd';
|
||||
}
|
||||
|
||||
public function getAlias()
|
||||
{
|
||||
return 'projectwithxsd';
|
||||
}
|
||||
}
|
BIN
vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectWithXsdExtensionInPhar.phar
vendored
Normal file
BIN
vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectWithXsdExtensionInPhar.phar
vendored
Normal file
Binary file not shown.
61
vendor/symfony/dependency-injection/Tests/Fixtures/includes/classes.php
vendored
Normal file
61
vendor/symfony/dependency-injection/Tests/Fixtures/includes/classes.php
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
function sc_configure($instance)
|
||||
{
|
||||
$instance->configure();
|
||||
}
|
||||
|
||||
class BarClass
|
||||
{
|
||||
protected $baz;
|
||||
public $foo = 'foo';
|
||||
|
||||
public function setBaz(BazClass $baz)
|
||||
{
|
||||
$this->baz = $baz;
|
||||
}
|
||||
|
||||
public function getBaz()
|
||||
{
|
||||
return $this->baz;
|
||||
}
|
||||
}
|
||||
|
||||
class BazClass
|
||||
{
|
||||
protected $foo;
|
||||
|
||||
public function setFoo(Foo $foo)
|
||||
{
|
||||
$this->foo = $foo;
|
||||
}
|
||||
|
||||
public function configure($instance)
|
||||
{
|
||||
$instance->configure();
|
||||
}
|
||||
|
||||
public static function getInstance()
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
|
||||
public static function configureStatic($instance)
|
||||
{
|
||||
$instance->configure();
|
||||
}
|
||||
|
||||
public static function configureStatic1()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
class BarUserClass
|
||||
{
|
||||
public $bar;
|
||||
|
||||
public function __construct(BarClass $bar)
|
||||
{
|
||||
$this->bar = $bar;
|
||||
}
|
||||
}
|
47
vendor/symfony/dependency-injection/Tests/Fixtures/includes/createphar.php
vendored
Normal file
47
vendor/symfony/dependency-injection/Tests/Fixtures/includes/createphar.php
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
$file = __DIR__.'/ProjectWithXsdExtensionInPhar.phar';
|
||||
if (is_file($file)) {
|
||||
@unlink($file);
|
||||
}
|
||||
|
||||
$phar = new Phar($file, 0, 'ProjectWithXsdExtensionInPhar.phar');
|
||||
$phar->addFromString('ProjectWithXsdExtensionInPhar.php', <<<EOT
|
||||
<?php
|
||||
|
||||
class ProjectWithXsdExtensionInPhar extends ProjectExtension
|
||||
{
|
||||
public function getXsdValidationBasePath()
|
||||
{
|
||||
return __DIR__.'/schema';
|
||||
}
|
||||
|
||||
public function getNamespace()
|
||||
{
|
||||
return 'http://www.example.com/schema/projectwithxsdinphar';
|
||||
}
|
||||
|
||||
public function getAlias()
|
||||
{
|
||||
return 'projectwithxsdinphar';
|
||||
}
|
||||
}
|
||||
EOT
|
||||
);
|
||||
$phar->addFromString('schema/project-1.0.xsd', <<<EOT
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<xsd:schema xmlns="http://www.example.com/schema/projectwithxsdinphar"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://www.example.com/schema/projectwithxsdinphar"
|
||||
elementFormDefault="qualified">
|
||||
|
||||
<xsd:element name="bar" type="bar" />
|
||||
|
||||
<xsd:complexType name="bar">
|
||||
<xsd:attribute name="foo" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
EOT
|
||||
);
|
||||
$phar->setStub('<?php Phar::mapPhar("ProjectWithXsdExtensionInPhar.phar"); require_once "phar://ProjectWithXsdExtensionInPhar.phar/ProjectWithXsdExtensionInPhar.php"; __HALT_COMPILER(); ?>');
|
38
vendor/symfony/dependency-injection/Tests/Fixtures/includes/foo.php
vendored
Normal file
38
vendor/symfony/dependency-injection/Tests/Fixtures/includes/foo.php
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace Bar;
|
||||
|
||||
class FooClass
|
||||
{
|
||||
public $foo, $moo;
|
||||
|
||||
public $bar = null, $initialized = false, $configured = false, $called = false, $arguments = array();
|
||||
|
||||
public function __construct($arguments = array())
|
||||
{
|
||||
$this->arguments = $arguments;
|
||||
}
|
||||
|
||||
public static function getInstance($arguments = array())
|
||||
{
|
||||
$obj = new self($arguments);
|
||||
$obj->called = true;
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
||||
public function initialize()
|
||||
{
|
||||
$this->initialized = true;
|
||||
}
|
||||
|
||||
public function configure()
|
||||
{
|
||||
$this->configured = true;
|
||||
}
|
||||
|
||||
public function setBar($value = null)
|
||||
{
|
||||
$this->bar = $value;
|
||||
}
|
||||
}
|
13
vendor/symfony/dependency-injection/Tests/Fixtures/includes/schema/project-1.0.xsd
vendored
Normal file
13
vendor/symfony/dependency-injection/Tests/Fixtures/includes/schema/project-1.0.xsd
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<xsd:schema xmlns="http://www.example.com/schema/projectwithxsd"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://www.example.com/schema/projectwithxsd"
|
||||
elementFormDefault="qualified">
|
||||
|
||||
<xsd:element name="bar" type="bar" />
|
||||
|
||||
<xsd:complexType name="bar">
|
||||
<xsd:attribute name="foo" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
Reference in a new issue