diff --git a/.gitignore b/.gitignore
index 267cf027c..bc514610c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,7 @@
# Core's dependencies are managed with Composer.
/web/vendor
+/vendor
# Ignore configuration files that may contain sensitive information.
/web/sites/*/settings*.php
diff --git a/vendor/alchemy/zippy/LICENSE b/vendor/alchemy/zippy/LICENSE
deleted file mode 100644
index b7247e120..000000000
--- a/vendor/alchemy/zippy/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-Zippy is released under the MIT License :
-
-Copyright (c) 2012 Alchemy
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"),
-to deal in the Software without restriction, including without limitation
-the rights to use, copy, modify, merge, publish, distribute, sublicense,
-and/or sell copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
diff --git a/vendor/alchemy/zippy/Makefile b/vendor/alchemy/zippy/Makefile
deleted file mode 100644
index 050971b09..000000000
--- a/vendor/alchemy/zippy/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-adapters:="ZipAdapter" "ZipExtensionAdapter" "GNUTar\\TarGNUTarAdapter" "GNUTar\\TarGzGNUTarAdapter" "GNUTar\\TarBz2GNUTarAdapter" "BSDTar\\TarBSDTarAdapter" "BSDTar\\TarGzBSDTarAdapter" "BSDTar\\TarBz2BSDTarAdapter"
-
-.PHONY: test clean
-
-test: node_modules
- -./tests/bootstrap.sh stop
- ./tests/bootstrap.sh start
- sleep 1
- ./vendor/bin/phpunit
- FAILURES="";$(foreach adapter,$(adapters),ZIPPY_ADAPTER=$(adapter) ./vendor/bin/phpunit -c phpunit-functional.xml.dist || FAILURES=1;)test -z "$$FAILURES"
- -./tests/bootstrap.sh stop
-
-node_modules:
- npm install connect serve-static
-
-clean:
- rm -rf node_modules
diff --git a/vendor/alchemy/zippy/composer.json b/vendor/alchemy/zippy/composer.json
deleted file mode 100644
index 0305868f3..000000000
--- a/vendor/alchemy/zippy/composer.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "name": "alchemy/zippy",
- "type": "library",
- "description": "Zippy, the archive manager companion",
- "keywords": ["zip", "tar", "bzip", "compression"],
- "license": "MIT",
- "authors": [
- {
- "name": "Alchemy",
- "email": "dev.team@alchemy.fr",
- "homepage": "http://www.alchemy.fr/"
- }
- ],
- "require": {
- "php": ">=5.5",
- "ext-mbstring": "*",
- "doctrine/collections": "~1.0",
- "symfony/filesystem": "^2.0.5|^3.0",
- "symfony/process": "^2.1|^3.0"
- },
- "require-dev": {
- "ext-zip": "*",
- "guzzle/guzzle": "~3.0",
- "guzzlehttp/guzzle": "^6.0",
- "phpunit/phpunit": "^4.0|^5.0",
- "symfony/finder": "^2.0.5|^3.0"
- },
- "suggest": {
- "ext-zip": "To use the ZipExtensionAdapter",
- "guzzlehttp/guzzle": "To use the GuzzleTeleporter with Guzzle 6",
- "guzzle/guzzle": "To use the GuzzleTeleporter with Guzzle 3"
- },
- "autoload": {
- "psr-4": {
- "Alchemy\\Zippy\\": "src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Alchemy\\Zippy\\Functional\\": "tests/Functional/",
- "Alchemy\\Zippy\\Tests\\": "tests/Tests/"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "0.4.x-dev"
- }
- }
-}
diff --git a/vendor/alchemy/zippy/src/Adapter/AbstractAdapter.php b/vendor/alchemy/zippy/src/Adapter/AbstractAdapter.php
deleted file mode 100644
index e0ad2a8eb..000000000
--- a/vendor/alchemy/zippy/src/Adapter/AbstractAdapter.php
+++ /dev/null
@@ -1,273 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- */
-
-namespace Alchemy\Zippy\Adapter;
-
-use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
-use Alchemy\Zippy\Adapter\VersionProbe\VersionProbeInterface;
-use Alchemy\Zippy\Archive\Archive;
-use Alchemy\Zippy\Archive\ArchiveInterface;
-use Alchemy\Zippy\Exception\RuntimeException;
-use Alchemy\Zippy\Exception\InvalidArgumentException;
-use Alchemy\Zippy\Resource\PathUtil;
-use Alchemy\Zippy\Resource\ResourceManager;
-
-abstract class AbstractAdapter implements AdapterInterface
-{
- /** @var ResourceManager */
- protected $manager;
-
- /**
- * The version probe
- *
- * @var VersionProbeInterface
- */
- protected $probe;
-
- public function __construct(ResourceManager $manager)
- {
- $this->manager = $manager;
- }
-
- /**
- * @inheritdoc
- */
- public function open($path)
- {
- $this->requireSupport();
-
- return new Archive($this->createResource($path), $this, $this->manager);
- }
-
- /**
- * @inheritdoc
- */
- public function create($path, $files = null, $recursive = true)
- {
- $this->requireSupport();
-
- return $this->doCreate($this->makeTargetAbsolute($path), $files, $recursive);
- }
-
- /**
- * @inheritdoc
- */
- public function listMembers(ResourceInterface $resource)
- {
- $this->requireSupport();
-
- return $this->doListMembers($resource);
- }
-
- /**
- * @inheritdoc
- */
- public function add(ResourceInterface $resource, $files, $recursive = true)
- {
- $this->requireSupport();
-
- return $this->doAdd($resource, $files, $recursive);
- }
-
- /**
- * @inheritdoc
- */
- public function remove(ResourceInterface $resource, $files)
- {
- $this->requireSupport();
-
- return $this->doRemove($resource, $files);
- }
-
- /**
- * @inheritdoc
- */
- public function extract(ResourceInterface $resource, $to = null)
- {
- $this->requireSupport();
-
- return $this->doExtract($resource, $to);
- }
-
- /**
- * @inheritdoc
- */
- public function extractMembers(ResourceInterface $resource, $members, $to = null, $overwrite = false)
- {
- $this->requireSupport();
-
- return $this->doExtractMembers($resource, $members, $to, $overwrite);
- }
-
- /**
- * Returns the version probe used by this adapter
- *
- * @return VersionProbeInterface
- */
- public function getVersionProbe()
- {
- return $this->probe;
- }
-
- /**
- * Sets the version probe used by this adapter
- *
- * @param VersionProbeInterface $probe
- *
- * @return VersionProbeInterface
- */
- public function setVersionProbe(VersionProbeInterface $probe)
- {
- $this->probe = $probe;
-
- return $this;
- }
-
- /**
- * @inheritdoc
- */
- public function isSupported()
- {
- if (!$this->probe) {
- throw new RuntimeException(sprintf(
- 'No version probe has been set on %s whereas it is required', get_class($this)
- ));
- }
-
- return VersionProbeInterface::PROBE_OK === $this->probe->getStatus();
- }
-
- /**
- * Throws an exception is the current adapter is not supported
- *
- * @throws RuntimeException
- */
- protected function requireSupport()
- {
- if (false === $this->isSupported()) {
- throw new RuntimeException(sprintf('%s is not supported on your system', get_class($this)));
- }
- }
-
- /**
- * Change current working directory to another
- *
- * @param string $target the target directory
- *
- * @return AdapterInterface
- *
- * @throws RuntimeException In case of failure
- */
- protected function chdir($target)
- {
- if (false === @chdir($target)) {
- throw new RuntimeException(sprintf('Unable to chdir to `%s`', $target));
- }
-
- return $this;
- }
-
- /**
- * Creates a resource given a path
- *
- * @param string $path
- *
- * @return ResourceInterface
- */
- abstract protected function createResource($path);
-
- /**
- * Do the removal after having check that the current adapter is supported
- *
- * @param ResourceInterface $resource
- * @param array $files
- *
- * @return array
- */
- abstract protected function doRemove(ResourceInterface $resource, $files);
-
- /**
- * Do the add after having check that the current adapter is supported
- *
- * @param ResourceInterface $resource
- * @param array $files
- * @param bool $recursive
- *
- * @return array
- */
- abstract protected function doAdd(ResourceInterface $resource, $files, $recursive);
-
- /**
- * Do the extract after having check that the current adapter is supported
- *
- * @param ResourceInterface $resource
- * @param $to
- *
- * @return \SplFileInfo The extracted archive
- */
- abstract protected function doExtract(ResourceInterface $resource, $to);
-
- /**
- * Do the extract members after having check that the current adapter is supported
- *
- * @param ResourceInterface $resource
- * @param string|string[] $members
- * @param string $to
- * @param bool $overwrite
- *
- * @return \SplFileInfo The extracted archive
- */
- abstract protected function doExtractMembers(ResourceInterface $resource, $members, $to, $overwrite = false);
-
- /**
- * Do the list members after having check that the current adapter is supported
- *
- * @param ResourceInterface $resource
- *
- * @return array
- */
- abstract protected function doListMembers(ResourceInterface $resource);
-
- /**
- * Do the create after having check that the current adapter is supported
- *
- * @param string $path
- * @param string $file
- * @param bool $recursive
- *
- * @return ArchiveInterface
- */
- abstract protected function doCreate($path, $file, $recursive);
-
- /**
- * Makes the target path absolute as the adapters might have a different directory
- *
- * @param string $path The path to convert
- *
- * @return string The absolute path
- *
- * @throws InvalidArgumentException In case the path is not writable or does not exist
- */
- private function makeTargetAbsolute($path)
- {
- $directory = dirname($path);
-
- if (!is_dir($directory)) {
- throw new InvalidArgumentException(sprintf('Target path %s does not exist.', $directory));
- }
- if (!is_writable($directory)) {
- throw new InvalidArgumentException(sprintf('Target path %s is not writeable.', $directory));
- }
-
- return realpath($directory) . '/' . PathUtil::basename($path);
- }
-}
diff --git a/vendor/alchemy/zippy/src/Adapter/AbstractBinaryAdapter.php b/vendor/alchemy/zippy/src/Adapter/AbstractBinaryAdapter.php
deleted file mode 100644
index 4ed40db91..000000000
--- a/vendor/alchemy/zippy/src/Adapter/AbstractBinaryAdapter.php
+++ /dev/null
@@ -1,240 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- */
-
-namespace Alchemy\Zippy\Adapter;
-
-use Alchemy\Zippy\Adapter\Resource\FileResource;
-use Alchemy\Zippy\Archive\MemberInterface;
-use Alchemy\Zippy\Exception\RuntimeException;
-use Alchemy\Zippy\Exception\InvalidArgumentException;
-use Alchemy\Zippy\Parser\ParserFactory;
-use Alchemy\Zippy\Parser\ParserInterface;
-use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactory;
-use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface;
-use Alchemy\Zippy\Resource\ResourceManager;
-use Symfony\Component\Process\ExecutableFinder;
-use Symfony\Component\Process\ProcessBuilder;
-
-abstract class AbstractBinaryAdapter extends AbstractAdapter implements BinaryAdapterInterface
-{
- /**
- * The parser to use to parse command output
- *
- * @var ParserInterface
- */
- protected $parser;
-
- /**
- * The deflator process builder factory to use to build binary command line
- *
- * @var ProcessBuilderFactoryInterface
- */
- protected $deflator;
-
- /**
- * The inflator process builder factory to use to build binary command line
- *
- * @var ProcessBuilderFactoryInterface
- */
- protected $inflator;
-
- /**
- * Constructor
- *
- * @param ParserInterface $parser An output parser
- * @param ResourceManager $manager A resource manager
- * @param ProcessBuilderFactoryInterface $inflator A process builder factory for the inflator binary
- * @param ProcessBuilderFactoryInterface $deflator A process builder factory for the deflator binary
- */
- public function __construct(
- ParserInterface $parser,
- ResourceManager $manager,
- ProcessBuilderFactoryInterface $inflator,
- ProcessBuilderFactoryInterface $deflator
- ) {
- $this->parser = $parser;
- parent::__construct($manager);
- $this->deflator = $deflator;
- $this->inflator = $inflator;
- }
-
- /**
- * @inheritdoc
- */
- public function getParser()
- {
- return $this->parser;
- }
-
- /**
- * @inheritdoc
- */
- public function setParser(ParserInterface $parser)
- {
- $this->parser = $parser;
-
- return $this;
- }
-
- /**
- * @inheritdoc
- */
- public function getDeflator()
- {
- return $this->deflator;
- }
-
- /**
- * @inheritdoc
- */
- public function getInflator()
- {
- return $this->inflator;
- }
-
- /**
- * @inheritdoc
- */
- public function setDeflator(ProcessBuilderFactoryInterface $processBuilder)
- {
- $this->deflator = $processBuilder;
-
- return $this;
- }
-
- public function setInflator(ProcessBuilderFactoryInterface $processBuilder)
- {
- $this->inflator = $processBuilder;
-
- return $this;
- }
-
- /**
- * @inheritdoc
- */
- public function getInflatorVersion()
- {
- $this->requireSupport();
-
- return $this->doGetInflatorVersion();
- }
-
- /**
- * @inheritdoc
- */
- public function getDeflatorVersion()
- {
- $this->requireSupport();
-
- return $this->doGetDeflatorVersion();
- }
-
- /**
- * Returns a new instance of the invoked adapter
- *
- * @param ExecutableFinder $finder
- * @param ResourceManager $manager
- * @param string|null $inflatorBinaryName The inflator binary name to use
- * @param string|null $deflatorBinaryName The deflator binary name to use
- *
- * @return AbstractBinaryAdapter
- */
- public static function newInstance(
- ExecutableFinder $finder,
- ResourceManager $manager,
- $inflatorBinaryName = null,
- $deflatorBinaryName = null
- ) {
- $inflator = $inflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $inflatorBinaryName : self::findABinary($inflatorBinaryName,
- static::getDefaultInflatorBinaryName(), $finder);
- $deflator = $deflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $deflatorBinaryName : self::findABinary($deflatorBinaryName,
- static::getDefaultDeflatorBinaryName(), $finder);
-
- try {
- $outputParser = ParserFactory::create(static::getName());
- } catch (InvalidArgumentException $e) {
- throw new RuntimeException(sprintf(
- 'Failed to get a new instance of %s',
- get_called_class()), $e->getCode(), $e
- );
- }
-
- if (null === $inflator) {
- throw new RuntimeException(sprintf('Unable to create the inflator'));
- }
-
- if (null === $deflator) {
- throw new RuntimeException(sprintf('Unable to create the deflator'));
- }
-
- return new static($outputParser, $manager, $inflator, $deflator);
- }
-
- private static function findABinary($wish, array $defaults, ExecutableFinder $finder)
- {
- $possibles = $wish ? (array) $wish : $defaults;
-
- $binary = null;
-
- foreach ($possibles as $possible) {
- if (null !== $found = $finder->find($possible)) {
- $binary = new ProcessBuilderFactory($found);
- break;
- }
- }
-
- return $binary;
- }
-
- /**
- * Adds files to argument list
- *
- * @param MemberInterface[]|\SplFileInfo[]|string[] $files An array of files
- * @param ProcessBuilder $builder A Builder instance
- *
- * @return bool
- */
- protected function addBuilderFileArgument(array $files, ProcessBuilder $builder)
- {
- $iterations = 0;
-
- array_walk($files, function($file) use ($builder, &$iterations) {
- $builder->add(
- $file instanceof \SplFileInfo ?
- $file->getRealPath() : ($file instanceof MemberInterface ? $file->getLocation() : $file)
- );
-
- $iterations++;
- });
-
- return 0 !== $iterations;
- }
-
- protected function createResource($path)
- {
- return new FileResource($path);
- }
-
- /**
- * Fetch the inflator version after having check that the current adapter is supported
- *
- * @return string
- */
- abstract protected function doGetInflatorVersion();
-
- /**
- * Fetch the Deflator version after having check that the current adapter is supported
- *
- * @return string
- */
- abstract protected function doGetDeflatorVersion();
-}
diff --git a/vendor/alchemy/zippy/src/Adapter/AbstractTarAdapter.php b/vendor/alchemy/zippy/src/Adapter/AbstractTarAdapter.php
deleted file mode 100644
index 34b3c808e..000000000
--- a/vendor/alchemy/zippy/src/Adapter/AbstractTarAdapter.php
+++ /dev/null
@@ -1,438 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Alchemy\Zippy\Adapter;
-
-use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
-use Alchemy\Zippy\Archive\Archive;
-use Alchemy\Zippy\Archive\Member;
-use Alchemy\Zippy\Exception\RuntimeException;
-use Alchemy\Zippy\Exception\InvalidArgumentException;
-use Alchemy\Zippy\Resource\Resource as ZippyResource;
-use Symfony\Component\Process\Exception\ExceptionInterface as ProcessException;
-
-abstract class AbstractTarAdapter extends AbstractBinaryAdapter
-{
- /**
- * @inheritdoc
- */
- protected function doCreate($path, $files, $recursive)
- {
- return $this->doTarCreate($this->getLocalOptions(), $path, $files, $recursive);
- }
-
- /**
- * @inheritdoc
- */
- protected function doListMembers(ResourceInterface $resource)
- {
- return $this->doTarListMembers($this->getLocalOptions(), $resource);
- }
-
- /**
- * @inheritdoc
- */
- protected function doAdd(ResourceInterface $resource, $files, $recursive)
- {
- return $this->doTarAdd($this->getLocalOptions(), $resource, $files, $recursive);
- }
-
- /**
- * @inheritdoc
- */
- protected function doRemove(ResourceInterface $resource, $files)
- {
- return $this->doTarRemove($this->getLocalOptions(), $resource, $files);
- }
-
- /**
- * @inheritdoc
- */
- protected function doExtractMembers(ResourceInterface $resource, $members, $to, $overwrite = false)
- {
- return $this->doTarExtractMembers($this->getLocalOptions(), $resource, $members, $to, $overwrite);
- }
-
- /**
- * @inheritdoc
- */
- protected function doExtract(ResourceInterface $resource, $to)
- {
- return $this->doTarExtract($this->getLocalOptions(), $resource, $to);
- }
-
- /**
- * @inheritdoc
- */
- protected function doGetInflatorVersion()
- {
- $process = $this
- ->inflator
- ->create()
- ->add('--version')
- ->getProcess();
-
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(), $process->getErrorOutput()
- ));
- }
-
- return $this->parser->parseInflatorVersion($process->getOutput() ?: '');
- }
-
- /**
- * @inheritdoc
- */
- protected function doGetDeflatorVersion()
- {
- return $this->getInflatorVersion();
- }
-
- protected function doTarCreate($options, $path, $files = null, $recursive = true)
- {
- $files = (array) $files;
-
- $builder = $this
- ->inflator
- ->create();
-
- if (!$recursive) {
- $builder->add('--no-recursion');
- }
-
- $builder->add('-c');
-
- foreach ((array) $options as $option) {
- $builder->add((string) $option);
- }
-
- if (0 === count($files)) {
- $nullFile = defined('PHP_WINDOWS_VERSION_BUILD') ? 'NUL' : '/dev/null';
-
- $builder->add('-f');
- $builder->add($path);
- $builder->add('-T');
- $builder->add($nullFile);
-
- $process = $builder->getProcess();
- $process->run();
-
- } else {
-
- $builder->add(sprintf('--file=%s', $path));
-
- if (!$recursive) {
- $builder->add('--no-recursion');
- }
-
- $collection = $this->manager->handle(getcwd(), $files);
-
- $builder->setWorkingDirectory($collection->getContext());
-
- $collection->forAll(function($i, ZippyResource $resource) use ($builder) {
- return $builder->add($resource->getTarget());
- });
-
- $process = $builder->getProcess();
-
- try {
- $process->run();
- } catch (ProcessException $e) {
- $this->manager->cleanup($collection);
- throw $e;
- }
-
- $this->manager->cleanup($collection);
- }
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(),
- $process->getErrorOutput()
- ));
- }
-
- return new Archive($this->createResource($path), $this, $this->manager);
- }
-
- protected function doTarListMembers($options, ResourceInterface $resource)
- {
- $builder = $this
- ->inflator
- ->create();
-
- foreach ($this->getListMembersOptions() as $option) {
- $builder->add($option);
- }
-
- $builder
- ->add('--list')
- ->add('-v')
- ->add(sprintf('--file=%s', $resource->getResource()));
-
- foreach ((array) $options as $option) {
- $builder->add((string) $option);
- }
-
- $process = $builder->getProcess();
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(),
- $process->getErrorOutput()
- ));
- }
-
- $members = array();
-
- foreach ($this->parser->parseFileListing($process->getOutput() ?: '') as $member) {
- $members[] = new Member(
- $resource,
- $this,
- $member['location'],
- $member['size'],
- $member['mtime'],
- $member['is_dir']
- );
- }
-
- return $members;
- }
-
- protected function doTarAdd($options, ResourceInterface $resource, $files, $recursive = true)
- {
- $files = (array) $files;
-
- $builder = $this
- ->inflator
- ->create();
-
- if (!$recursive) {
- $builder->add('--no-recursion');
- }
-
- $builder
- ->add('--append')
- ->add(sprintf('--file=%s', $resource->getResource()));
-
- foreach ((array) $options as $option) {
- $builder->add((string) $option);
- }
-
- // there will be an issue if the file starts with a dash
- // see --add-file=FILE
- $collection = $this->manager->handle(getcwd(), $files);
-
- $builder->setWorkingDirectory($collection->getContext());
-
- $collection->forAll(function($i, ZippyResource $resource) use ($builder) {
- return $builder->add($resource->getTarget());
- });
-
- $process = $builder->getProcess();
-
- try {
- $process->run();
- } catch (ProcessException $e) {
- $this->manager->cleanup($collection);
- throw $e;
- }
-
- $this->manager->cleanup($collection);
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(),
- $process->getErrorOutput()
- ));
- }
-
- return $files;
- }
-
- protected function doTarRemove($options, ResourceInterface $resource, $files)
- {
- $files = (array) $files;
-
- $builder = $this
- ->inflator
- ->create();
-
- $builder
- ->add('--delete')
- ->add(sprintf('--file=%s', $resource->getResource()));
-
- foreach ((array) $options as $option) {
- $builder->add((string) $option);
- }
-
- if (!$this->addBuilderFileArgument($files, $builder)) {
- throw new InvalidArgumentException('Invalid files');
- }
-
- $process = $builder->getProcess();
-
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(),
- $process->getErrorOutput()
- ));
- }
-
- return $files;
- }
-
- protected function doTarExtract($options, ResourceInterface $resource, $to = null)
- {
- if (null !== $to && !is_dir($to)) {
- throw new InvalidArgumentException(sprintf("%s is not a directory", $to));
- }
-
- $builder = $this
- ->inflator
- ->create();
-
- $builder
- ->add('--extract')
- ->add(sprintf('--file=%s', $resource->getResource()));
-
- foreach ($this->getExtractOptions() as $option) {
- $builder
- ->add($option);
- }
-
- foreach ((array) $options as $option) {
- $builder->add((string) $option);
- }
-
- if (null !== $to) {
- $builder
- ->add('--directory')
- ->add($to);
- }
-
- $process = $builder->getProcess();
-
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(),
- $process->getErrorOutput()
- ));
- }
-
- return new \SplFileInfo($to ?: $resource->getResource());
- }
-
- /**
- * @param array $options
- * @param ResourceInterface $resource
- * @param array $members
- * @param string $to
- * @param bool $overwrite
- *
- * @return array
- */
- protected function doTarExtractMembers($options, ResourceInterface $resource, $members, $to = null, $overwrite = false)
- {
- if (null !== $to && !is_dir($to)) {
- throw new InvalidArgumentException(sprintf("%s is not a directory", $to));
- }
-
- $members = (array) $members;
-
- $builder = $this
- ->inflator
- ->create();
-
- if ($overwrite == false) {
- $builder->add('-k');
- }
-
- $builder
- ->add('--extract')
- ->add(sprintf('--file=%s', $resource->getResource()));
-
- foreach ($this->getExtractMembersOptions() as $option) {
- $builder
- ->add($option);
- }
-
- foreach ((array) $options as $option) {
- $builder->add((string) $option);
- }
-
- if (null !== $to) {
- $builder
- ->add('--directory')
- ->add($to);
- }
-
- if (!$this->addBuilderFileArgument($members, $builder)) {
- throw new InvalidArgumentException('Invalid files');
- }
-
- $process = $builder->getProcess();
-
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new RuntimeException(sprintf(
- 'Unable to execute the following command %s {output: %s}',
- $process->getCommandLine(),
- $process->getErrorOutput()
- ));
- }
-
- return $members;
- }
-
- /**
- * Returns an array of option for the listMembers command
- *
- * @return array
- */
- abstract protected function getListMembersOptions();
-
- /**
- * Returns an array of option for the extract command
- *
- * @return array
- */
- abstract protected function getExtractOptions();
-
- /**
- * Returns an array of option for the extractMembers command
- *
- * @return array
- */
- abstract protected function getExtractMembersOptions();
-
- /**
- * Gets adapter specific additional options
- *
- * @return array
- */
- abstract protected function getLocalOptions();
-}
diff --git a/vendor/alchemy/zippy/src/Adapter/AdapterContainer.php b/vendor/alchemy/zippy/src/Adapter/AdapterContainer.php
deleted file mode 100644
index 071b6df12..000000000
--- a/vendor/alchemy/zippy/src/Adapter/AdapterContainer.php
+++ /dev/null
@@ -1,222 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Alchemy\Zippy\Adapter;
-
-use Alchemy\Zippy\Adapter\BSDTar\TarBSDTarAdapter;
-use Alchemy\Zippy\Adapter\BSDTar\TarBz2BSDTarAdapter;
-use Alchemy\Zippy\Adapter\BSDTar\TarGzBSDTarAdapter;
-use Alchemy\Zippy\Adapter\GNUTar\TarBz2GNUTarAdapter;
-use Alchemy\Zippy\Adapter\GNUTar\TarGNUTarAdapter;
-use Alchemy\Zippy\Adapter\GNUTar\TarGzGNUTarAdapter;
-use Alchemy\Zippy\Resource\RequestMapper;
-use Alchemy\Zippy\Resource\ResourceManager;
-use Alchemy\Zippy\Resource\ResourceTeleporter;
-use Alchemy\Zippy\Resource\TargetLocator;
-use Alchemy\Zippy\Resource\TeleporterContainer;
-use Symfony\Component\Filesystem\Filesystem;
-use Symfony\Component\Process\ExecutableFinder;
-
-class AdapterContainer implements \ArrayAccess
-{
-
- private $items = array();
-
- /**
- * Builds the adapter container
- *
- * @return AdapterContainer
- */
- public static function load()
- {
- $container = new static();
-
- $container['zip.inflator'] = null;
- $container['zip.deflator'] = null;
-
- $container['resource-manager'] = function($container) {
- return new ResourceManager(
- $container['request-mapper'],
- $container['resource-teleporter'],
- $container['filesystem']
- );
- };
-
- $container['executable-finder'] = function($container) {
- return new ExecutableFinder();
- };
-
- $container['request-mapper'] = function($container) {
- return new RequestMapper($container['target-locator']);
- };
-
- $container['target-locator'] = function() {
- return new TargetLocator();
- };
-
- $container['teleporter-container'] = function($container) {
- return TeleporterContainer::load();
- };
-
- $container['resource-teleporter'] = function($container) {
- return new ResourceTeleporter($container['teleporter-container']);
- };
-
- $container['filesystem'] = function() {
- return new Filesystem();
- };
-
- $container['Alchemy\\Zippy\\Adapter\\ZipAdapter'] = function($container) {
- return ZipAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['zip.inflator'],
- $container['zip.deflator']
- );
- };
-
- $container['gnu-tar.inflator'] = null;
- $container['gnu-tar.deflator'] = null;
-
- $container['Alchemy\\Zippy\\Adapter\\GNUTar\\TarGNUTarAdapter'] = function($container) {
- return TarGNUTarAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['gnu-tar.inflator'],
- $container['gnu-tar.deflator']
- );
- };
-
- $container['Alchemy\\Zippy\\Adapter\\GNUTar\\TarGzGNUTarAdapter'] = function($container) {
- return TarGzGNUTarAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['gnu-tar.inflator'],
- $container['gnu-tar.deflator']
- );
- };
-
- $container['Alchemy\\Zippy\\Adapter\\GNUTar\\TarBz2GNUTarAdapter'] = function($container) {
- return TarBz2GNUTarAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['gnu-tar.inflator'],
- $container['gnu-tar.deflator']
- );
- };
-
- $container['bsd-tar.inflator'] = null;
- $container['bsd-tar.deflator'] = null;
-
- $container['Alchemy\\Zippy\\Adapter\\BSDTar\\TarBSDTarAdapter'] = function($container) {
- return TarBSDTarAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['bsd-tar.inflator'],
- $container['bsd-tar.deflator']
- );
- };
-
- $container['Alchemy\\Zippy\\Adapter\\BSDTar\\TarGzBSDTarAdapter'] = function($container) {
- return TarGzBSDTarAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['bsd-tar.inflator'],
- $container['bsd-tar.deflator']
- );
- };
-
- $container['Alchemy\\Zippy\\Adapter\\BSDTar\\TarBz2BSDTarAdapter'] = function($container) {
- return TarBz2BSDTarAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['bsd-tar.inflator'],
- $container['bsd-tar.deflator']);
- };
-
- $container['Alchemy\\Zippy\\Adapter\\ZipExtensionAdapter'] = function() {
- return ZipExtensionAdapter::newInstance();
- };
-
- return $container;
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Whether a offset exists
- *
- * @link http://php.net/manual/en/arrayaccess.offsetexists.php
- *
- * @param mixed $offset
- * An offset to check for. - *
- * - * @return bool true on success or false on failure. - *The return value will be casted to boolean if non-boolean was returned.
- */ - public function offsetExists($offset) - { - return isset($this->items[$offset]); - } - - /** - * (PHP 5 >= 5.0.0)- * The offset to retrieve. - *
- * @return mixed Can return all value types. - */ - public function offsetGet($offset) - { - if (array_key_exists($offset, $this->items) && is_callable($this->items[$offset])) { - $this->items[$offset] = call_user_func($this->items[$offset], $this); - } - - if (array_key_exists($offset, $this->items)) { - return $this->items[$offset]; - } - - throw new \InvalidArgumentException(); - } - - /** - * (PHP 5 >= 5.0.0)- * The offset to assign the value to. - *
- * @param mixed $value- * The value to set. - *
- * @return void - */ - public function offsetSet($offset, $value) - { - $this->items[$offset] = $value; - } - - /** - * (PHP 5 >= 5.0.0)- * The offset to unset. - *
- * @return void - */ - public function offsetUnset($offset) - { - unset($this->items[$offset]); - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/AdapterInterface.php b/vendor/alchemy/zippy/src/Adapter/AdapterInterface.php deleted file mode 100644 index d73a51a71..000000000 --- a/vendor/alchemy/zippy/src/Adapter/AdapterInterface.php +++ /dev/null @@ -1,133 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Adapter; - -use Alchemy\Zippy\Adapter\Resource\ResourceInterface; -use Alchemy\Zippy\Archive\ArchiveInterface; -use Alchemy\Zippy\Exception\NotSupportedException; -use Alchemy\Zippy\Exception\RuntimeException; -use Alchemy\Zippy\Exception\InvalidArgumentException; - -Interface AdapterInterface -{ - /** - * Opens an archive - * - * @param string $path The path to the archive - * - * @return ArchiveInterface - * - * @throws InvalidArgumentException In case the provided path is not valid - * @throws RuntimeException In case of failure - */ - public function open($path); - - /** - * Creates a new archive - * - * Please note some adapters can not create empty archives. - * They would throw a `NotSupportedException` in case you ask to create an archive without files - * - * @param string $path The path to the archive - * @param string|string[]|\Traversable|null $files A filename, an array of files, or a \Traversable instance - * @param bool $recursive Whether to recurse or not in the provided directories - * - * @return ArchiveInterface - * - * @throws RuntimeException In case of failure - * @throws NotSupportedException In case the operation in not supported - * @throws InvalidArgumentException In case no files could be added - */ - public function create($path, $files = null, $recursive = true); - - /** - * Tests if the adapter is supported by the current environment - * - * @return bool - */ - public function isSupported(); - - /** - * Returns the list of all archive members - * - * @param ResourceInterface $resource The path to the archive - * - * @return array - * - * @throws RuntimeException In case of failure - */ - public function listMembers(ResourceInterface $resource); - - /** - * Adds a file to the archive - * - * @param ResourceInterface $resource The path to the archive - * @param string|array|\Traversable $files An array of paths to add, relative to cwd - * @param bool $recursive Whether or not to recurse in the provided directories - * - * @return array - * - * @throws RuntimeException In case of failure - * @throws InvalidArgumentException In case no files could be added - */ - public function add(ResourceInterface $resource, $files, $recursive = true); - - /** - * Removes a member of the archive - * - * @param ResourceInterface $resource The path to the archive - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance - * - * @return array - * - * @throws RuntimeException In case of failure - * @throws InvalidArgumentException In case no files could be removed - */ - public function remove(ResourceInterface $resource, $files); - - /** - * Extracts an entire archive - * - * Note that any existing files will be overwritten by the adapter - * - * @param ResourceInterface $resource The path to the archive - * @param string|null $to The path where to extract the archive - * - * @return \SplFileInfo The extracted archive - * - * @throws RuntimeException In case of failure - * @throws InvalidArgumentException In case the provided path where to extract the archive is not valid - */ - public function extract(ResourceInterface $resource, $to = null); - - /** - * Extracts specific members of the archive - * - * @param ResourceInterface $resource The path to the archive - * @param string|string[] $members A path or array of paths matching the members to extract from the resource. - * @param string|null $to The path where to extract the members - * @param bool $overwrite Whether to overwrite existing files in target directory - * - * @return \SplFileInfo The extracted archive - * - * @throws RuntimeException In case of failure - * @throws InvalidArgumentException In case no members could be removed or providedd extract target directory is not valid - */ - public function extractMembers(ResourceInterface $resource, $members, $to = null, $overwrite = false); - - /** - * Returns the adapter name - * - * @return string - */ - public static function getName(); -} diff --git a/vendor/alchemy/zippy/src/Adapter/BSDTar/TarBSDTarAdapter.php b/vendor/alchemy/zippy/src/Adapter/BSDTar/TarBSDTarAdapter.php deleted file mode 100644 index 13a523fd1..000000000 --- a/vendor/alchemy/zippy/src/Adapter/BSDTar/TarBSDTarAdapter.php +++ /dev/null @@ -1,79 +0,0 @@ -probe = new BSDTarVersionProbe($inflator, $deflator); - } - - /** - * @inheritdoc - */ - protected function getLocalOptions() - { - return array(); - } - - /** - * @inheritdoc - */ - public static function getName() - { - return 'bsd-tar'; - } - - /** - * @inheritdoc - */ - public static function getDefaultDeflatorBinaryName() - { - return array('bsdtar', 'tar'); - } - - /** - * @inheritdoc - */ - public static function getDefaultInflatorBinaryName() - { - return array('bsdtar', 'tar'); - } - - /** - * {@inheritdoc} - */ - protected function getListMembersOptions() - { - return array(); - } - - /** - * {@inheritdoc} - */ - protected function getExtractOptions() - { - return array(); - } - - /** - * {@inheritdoc} - */ - protected function getExtractMembersOptions() - { - return array(); - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/BSDTar/TarBz2BSDTarAdapter.php b/vendor/alchemy/zippy/src/Adapter/BSDTar/TarBz2BSDTarAdapter.php deleted file mode 100644 index b2c8d8dea..000000000 --- a/vendor/alchemy/zippy/src/Adapter/BSDTar/TarBz2BSDTarAdapter.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Adapter; - -use Alchemy\Zippy\Parser\ParserInterface; -use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface; - -interface BinaryAdapterInterface -{ - /** - * Gets the output parser - * - * @return ParserInterface - */ - public function getParser(); - - /** - * Sets the parser - * - * @param ParserInterface $parser The parser to use - * - * @return AbstractBinaryAdapter - */ - public function setParser(ParserInterface $parser); - - /** - * Returns the inflator process builder - * - * @return ProcessBuilderFactoryInterface - */ - public function getInflator(); - - /** - * Sets the inflator process builder - * - * @param ProcessBuilderFactoryInterface $processBuilder The parser to use - * - * @return AbstractBinaryAdapter - */ - public function setInflator(ProcessBuilderFactoryInterface $processBuilder); - - /** - * Returns the deflator process builder - * - * @return ProcessBuilderFactoryInterface - */ - public function getDeflator(); - - /** - * Sets the deflator process builder - * - * @param ProcessBuilderFactoryInterface $processBuilder The parser to use - * - * @return AbstractBinaryAdapter - */ - public function setDeflator(ProcessBuilderFactoryInterface $processBuilder); - - /** - * Returns the inflator binary version - * - * @return string - */ - public function getInflatorVersion(); - - /** - * Returns the deflator binary version - * - * @return string - */ - public function getDeflatorVersion(); - - /** - * Gets the inflator adapter binary name - * - * @return array - */ - public static function getDefaultInflatorBinaryName(); - - /** - * Gets the deflator adapter binary name - * - * @return array - */ - public static function getDefaultDeflatorBinaryName(); -} diff --git a/vendor/alchemy/zippy/src/Adapter/GNUTar/TarBz2GNUTarAdapter.php b/vendor/alchemy/zippy/src/Adapter/GNUTar/TarBz2GNUTarAdapter.php deleted file mode 100644 index d44dc2575..000000000 --- a/vendor/alchemy/zippy/src/Adapter/GNUTar/TarBz2GNUTarAdapter.php +++ /dev/null @@ -1,25 +0,0 @@ -probe = new GNUTarVersionProbe($inflator, $deflator); - } - - /** - * @inheritdoc - */ - protected function getLocalOptions() - { - return array(); - } - - /** - * @inheritdoc - */ - public static function getName() - { - return 'gnu-tar'; - } - - /** - * @inheritdoc - */ - public static function getDefaultDeflatorBinaryName() - { - return array('gnutar', 'tar'); - } - - /** - * @inheritdoc - */ - public static function getDefaultInflatorBinaryName() - { - return array('gnutar', 'tar'); - } - - /** - * {@inheritdoc} - */ - protected function getListMembersOptions() - { - return array('--utc'); - } - - /** - * {@inheritdoc} - */ - protected function getExtractOptions() - { - return array('--overwrite'); - } - - /** - * {@inheritdoc} - */ - protected function getExtractMembersOptions() - { - return array('--overwrite'); - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/GNUTar/TarGzGNUTarAdapter.php b/vendor/alchemy/zippy/src/Adapter/GNUTar/TarGzGNUTarAdapter.php deleted file mode 100644 index 6bbf5cb44..000000000 --- a/vendor/alchemy/zippy/src/Adapter/GNUTar/TarGzGNUTarAdapter.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\Resource; - -class FileResource implements ResourceInterface -{ - private $path; - - public function __construct($path) - { - $this->path = $path; - } - - /** - * {@inheritdoc} - */ - public function getResource() - { - return $this->path; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/Resource/ResourceInterface.php b/vendor/alchemy/zippy/src/Adapter/Resource/ResourceInterface.php deleted file mode 100644 index a42d08a5c..000000000 --- a/vendor/alchemy/zippy/src/Adapter/Resource/ResourceInterface.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\Resource; - -interface ResourceInterface -{ - /** - * Returns the actual resource used by an adapter - * - * @return mixed - */ - public function getResource(); -} diff --git a/vendor/alchemy/zippy/src/Adapter/Resource/ZipArchiveResource.php b/vendor/alchemy/zippy/src/Adapter/Resource/ZipArchiveResource.php deleted file mode 100644 index 4028324c4..000000000 --- a/vendor/alchemy/zippy/src/Adapter/Resource/ZipArchiveResource.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\Resource; - -class ZipArchiveResource implements ResourceInterface -{ - private $archive; - - public function __construct(\ZipArchive $archive) - { - $this->archive = $archive; - } - - /** - * {@inheritdoc} - */ - public function getResource() - { - return $this->archive; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/VersionProbe/AbstractTarVersionProbe.php b/vendor/alchemy/zippy/src/Adapter/VersionProbe/AbstractTarVersionProbe.php deleted file mode 100644 index 4da1c5d58..000000000 --- a/vendor/alchemy/zippy/src/Adapter/VersionProbe/AbstractTarVersionProbe.php +++ /dev/null @@ -1,77 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\VersionProbe; - -use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface; -use Symfony\Component\Process\Process; - -abstract class AbstractTarVersionProbe implements VersionProbeInterface -{ - private $isSupported; - private $inflator; - private $deflator; - - public function __construct(ProcessBuilderFactoryInterface $inflator, ProcessBuilderFactoryInterface $deflator) - { - $this->inflator = $inflator; - $this->deflator = $deflator; - } - - /** - * {@inheritdoc} - */ - public function getStatus() - { - if (null !== $this->isSupported) { - return $this->isSupported; - } - - if (null === $this->inflator || null === $this->deflator) { - return $this->isSupported = VersionProbeInterface::PROBE_NOTSUPPORTED; - } - - $good = true; - - foreach (array($this->inflator, $this->deflator) as $builder) { - /** @var Process $process */ - $process = $builder - ->create() - ->add('--version') - ->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - return $this->isSupported = VersionProbeInterface::PROBE_NOTSUPPORTED; - } - - $lines = explode("\n", $process->getOutput(), 2); - $good = false !== stripos($lines[0], $this->getVersionSignature()); - - if (!$good) { - break; - } - } - - $this->isSupported = $good ? VersionProbeInterface::PROBE_OK : VersionProbeInterface::PROBE_NOTSUPPORTED; - - return $this->isSupported; - } - - /** - * Returns the signature of inflator/deflator - * - * @return string - */ - abstract protected function getVersionSignature(); -} diff --git a/vendor/alchemy/zippy/src/Adapter/VersionProbe/BSDTarVersionProbe.php b/vendor/alchemy/zippy/src/Adapter/VersionProbe/BSDTarVersionProbe.php deleted file mode 100644 index 6f374750e..000000000 --- a/vendor/alchemy/zippy/src/Adapter/VersionProbe/BSDTarVersionProbe.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\VersionProbe; - -class BSDTarVersionProbe extends AbstractTarVersionProbe -{ - /** - * {@inheritdoc} - */ - protected function getVersionSignature() - { - return 'bsdtar'; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/VersionProbe/GNUTarVersionProbe.php b/vendor/alchemy/zippy/src/Adapter/VersionProbe/GNUTarVersionProbe.php deleted file mode 100644 index 046a836ad..000000000 --- a/vendor/alchemy/zippy/src/Adapter/VersionProbe/GNUTarVersionProbe.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\VersionProbe; - -class GNUTarVersionProbe extends AbstractTarVersionProbe -{ - /** - * {@inheritdoc} - */ - protected function getVersionSignature() - { - return '(gnu tar)'; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/VersionProbe/VersionProbeInterface.php b/vendor/alchemy/zippy/src/Adapter/VersionProbe/VersionProbeInterface.php deleted file mode 100644 index a0c03721b..000000000 --- a/vendor/alchemy/zippy/src/Adapter/VersionProbe/VersionProbeInterface.php +++ /dev/null @@ -1,26 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\VersionProbe; - -interface VersionProbeInterface -{ - const PROBE_OK = 0; - const PROBE_NOTSUPPORTED = 1; - - /** - * Probes for the support of an adapter. - * - * @return integer One of the self::PROBE_* constants - */ - public function getStatus(); -} diff --git a/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipExtensionVersionProbe.php b/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipExtensionVersionProbe.php deleted file mode 100644 index d95d0b53d..000000000 --- a/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipExtensionVersionProbe.php +++ /dev/null @@ -1,24 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\VersionProbe; - -class ZipExtensionVersionProbe implements VersionProbeInterface -{ - /** - * {@inheritdoc} - */ - public function getStatus() - { - return class_exists('\ZipArchive') ? VersionProbeInterface::PROBE_OK : VersionProbeInterface::PROBE_NOTSUPPORTED; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipVersionProbe.php b/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipVersionProbe.php deleted file mode 100644 index 12595cbf9..000000000 --- a/vendor/alchemy/zippy/src/Adapter/VersionProbe/ZipVersionProbe.php +++ /dev/null @@ -1,96 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - * - */ - -namespace Alchemy\Zippy\Adapter\VersionProbe; - -use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface; - -class ZipVersionProbe implements VersionProbeInterface -{ - private $isSupported; - private $inflator; - private $deflator; - - public function __construct(ProcessBuilderFactoryInterface $inflator, ProcessBuilderFactoryInterface $deflator) - { - $this->inflator = $inflator; - $this->deflator = $deflator; - } - - /** - * Set the inflator to zip - * - * @param ProcessBuilderFactoryInterface $inflator - * @return ZipVersionProbe - */ - public function setInflator(ProcessBuilderFactoryInterface $inflator) - { - $this->inflator = $inflator; - - return $this; - } - - /** - * Set the deflator to unzip - * - * @param ProcessBuilderFactoryInterface $deflator - * @return ZipVersionProbe - */ - public function setDeflator(ProcessBuilderFactoryInterface $deflator) - { - $this->deflator = $deflator; - - return $this; - } - - /** - * {@inheritdoc} - */ - public function getStatus() - { - if (null !== $this->isSupported) { - return $this->isSupported; - } - - if (null === $this->inflator || null === $this->deflator) { - return $this->isSupported = VersionProbeInterface::PROBE_NOTSUPPORTED; - } - - $processDeflate = $this - ->deflator - ->create() - ->add('-h') - ->getProcess(); - - $processDeflate->run(); - - $processInflate = $this - ->inflator - ->create() - ->add('-h') - ->getProcess(); - - $processInflate->run(); - - if (false === $processDeflate->isSuccessful() || false === $processInflate->isSuccessful()) { - return $this->isSupported = VersionProbeInterface::PROBE_NOTSUPPORTED; - } - - $lines = explode("\n", $processInflate->getOutput(), 2); - $inflatorOk = false !== stripos($lines[0], 'Info-ZIP'); - - $lines = explode("\n", $processDeflate->getOutput(), 2); - $deflatorOk = false !== stripos($lines[0], 'Info-ZIP'); - - return $this->isSupported = ($inflatorOk && $deflatorOk) ? VersionProbeInterface::PROBE_OK : VersionProbeInterface::PROBE_NOTSUPPORTED; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/ZipAdapter.php b/vendor/alchemy/zippy/src/Adapter/ZipAdapter.php deleted file mode 100644 index 4fb6ba7f1..000000000 --- a/vendor/alchemy/zippy/src/Adapter/ZipAdapter.php +++ /dev/null @@ -1,370 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Adapter; - -use Alchemy\Zippy\Adapter\Resource\ResourceInterface; -use Alchemy\Zippy\Adapter\VersionProbe\ZipVersionProbe; -use Alchemy\Zippy\Archive\Archive; -use Alchemy\Zippy\Archive\Member; -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Alchemy\Zippy\Exception\NotSupportedException; -use Alchemy\Zippy\Exception\RuntimeException; -use Alchemy\Zippy\Parser\ParserInterface; -use Alchemy\Zippy\ProcessBuilder\ProcessBuilderFactoryInterface; -use Alchemy\Zippy\Resource\Resource as ZippyResource; -use Alchemy\Zippy\Resource\ResourceManager; -use Symfony\Component\Process\Exception\ExceptionInterface as ProcessException; - -/** - * ZipAdapter allows you to create and extract files from archives using Zip - * - * @see http://www.gnu.org/software/tar/manual/tar.html - */ -class ZipAdapter extends AbstractBinaryAdapter -{ - public function __construct( - ParserInterface $parser, - ResourceManager $manager, - ProcessBuilderFactoryInterface $inflator, - ProcessBuilderFactoryInterface $deflator - ) { - parent::__construct($parser, $manager, $inflator, $deflator); - - $this->probe = new ZipVersionProbe($inflator, $deflator); - } - - /** - * @inheritdoc - */ - protected function doCreate($path, $files, $recursive) - { - $files = (array) $files; - - $builder = $this - ->inflator - ->create(); - - if (0 === count($files)) { - throw new NotSupportedException('Can not create empty zip archive'); - } - - if ($recursive) { - $builder->add('-r'); - } - - $builder->add($path); - - $collection = $this->manager->handle(getcwd(), $files); - $builder->setWorkingDirectory($collection->getContext()); - - $collection->forAll(function($i, ZippyResource $resource) use ($builder) { - return $builder->add($resource->getTarget()); - }); - - $process = $builder->getProcess(); - - try { - $process->run(); - } catch (ProcessException $e) { - $this->manager->cleanup($collection); - throw $e; - } - - $this->manager->cleanup($collection); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - return new Archive($this->createResource($path), $this, $this->manager); - } - - /** - * @inheritdoc - */ - protected function doListMembers(ResourceInterface $resource) - { - $process = $this - ->deflator - ->create() - ->add('-l') - ->add($resource->getResource()) - ->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - $members = array(); - - foreach ($this->parser->parseFileListing($process->getOutput() ?: '') as $member) { - $members[] = new Member( - $resource, - $this, - $member['location'], - $member['size'], - $member['mtime'], - $member['is_dir'] - ); - } - - return $members; - } - - /** - * @inheritdoc - */ - protected function doAdd(ResourceInterface $resource, $files, $recursive) - { - $files = (array) $files; - - $builder = $this - ->inflator - ->create(); - - if ($recursive) { - $builder->add('-r'); - } - - $builder - ->add('-u') - ->add($resource->getResource()); - - $collection = $this->manager->handle(getcwd(), $files); - - $builder->setWorkingDirectory($collection->getContext()); - - $collection->forAll(function($i, ZippyResource $resource) use ($builder) { - return $builder->add($resource->getTarget()); - }); - - $process = $builder->getProcess(); - - try { - $process->run(); - } catch (ProcessException $e) { - $this->manager->cleanup($collection); - throw $e; - } - - $this->manager->cleanup($collection); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - } - - /** - * @inheritdoc - */ - protected function doGetDeflatorVersion() - { - $process = $this - ->deflator - ->create() - ->add('-h') - ->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - return $this->parser->parseDeflatorVersion($process->getOutput() ?: ''); - } - - /** - * @inheritdoc - */ - protected function doGetInflatorVersion() - { - $process = $this - ->inflator - ->create() - ->add('-h') - ->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - return $this->parser->parseInflatorVersion($process->getOutput() ?: ''); - } - - /** - * @inheritdoc - */ - protected function doRemove(ResourceInterface $resource, $files) - { - $files = (array) $files; - - $builder = $this - ->inflator - ->create(); - - $builder - ->add('-d') - ->add($resource->getResource()); - - if (!$this->addBuilderFileArgument($files, $builder)) { - throw new InvalidArgumentException('Invalid files'); - } - - $process = $builder->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - return $files; - } - - /** - * @inheritdoc - */ - public static function getName() - { - return 'zip'; - } - - /** - * @inheritdoc - */ - public static function getDefaultDeflatorBinaryName() - { - return array('unzip'); - } - - /** - * @inheritdoc - */ - public static function getDefaultInflatorBinaryName() - { - return array('zip'); - } - - /** - * @inheritdoc - */ - protected function doExtract(ResourceInterface $resource, $to) - { - if (null !== $to && !is_dir($to)) { - throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); - } - - $builder = $this - ->deflator - ->create(); - - $builder - ->add('-o') - ->add($resource->getResource()); - - if (null !== $to) { - $builder - ->add('-d') - ->add($to); - } - - $process = $builder->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - return new \SplFileInfo($to ?: $resource->getResource()); - } - - /** - * @inheritdoc - */ - protected function doExtractMembers(ResourceInterface $resource, $members, $to, $overwrite = false) - { - if (null !== $to && !is_dir($to)) { - throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); - } - - $members = (array) $members; - - $builder = $this - ->deflator - ->create(); - - if ((bool) $overwrite) { - $builder->add('-o'); - } - - $builder - ->add($resource->getResource()); - - if (null !== $to) { - $builder - ->add('-d') - ->add($to); - } - - if (!$this->addBuilderFileArgument($members, $builder)) { - throw new InvalidArgumentException('Invalid files'); - } - - $process = $builder->getProcess(); - - $process->run(); - - if (!$process->isSuccessful()) { - throw new RuntimeException(sprintf( - 'Unable to execute the following command %s {output: %s}', - $process->getCommandLine(), - $process->getErrorOutput() - )); - } - - return $members; - } -} diff --git a/vendor/alchemy/zippy/src/Adapter/ZipExtensionAdapter.php b/vendor/alchemy/zippy/src/Adapter/ZipExtensionAdapter.php deleted file mode 100644 index e55ed342c..000000000 --- a/vendor/alchemy/zippy/src/Adapter/ZipExtensionAdapter.php +++ /dev/null @@ -1,361 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Adapter; - -use Alchemy\Zippy\Adapter\Resource\ResourceInterface; -use Alchemy\Zippy\Adapter\Resource\ZipArchiveResource; -use Alchemy\Zippy\Adapter\VersionProbe\ZipExtensionVersionProbe; -use Alchemy\Zippy\Archive\Archive; -use Alchemy\Zippy\Archive\Member; -use Alchemy\Zippy\Exception\NotSupportedException; -use Alchemy\Zippy\Exception\RuntimeException; -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Alchemy\Zippy\Resource\Resource as ZippyResource; -use Alchemy\Zippy\Resource\ResourceManager; - -/** - * ZipExtensionAdapter allows you to create and extract files from archives - * using PHP Zip extension - * - * @see http://www.php.net/manual/en/book.zip.php - */ -class ZipExtensionAdapter extends AbstractAdapter -{ - private $errorCodesMapping = array( - \ZipArchive::ER_EXISTS => "File already exists", - \ZipArchive::ER_INCONS => "Zip archive inconsistent", - \ZipArchive::ER_INVAL => "Invalid argument", - \ZipArchive::ER_MEMORY => "Malloc failure", - \ZipArchive::ER_NOENT => "No such file", - \ZipArchive::ER_NOZIP => "Not a zip archive", - \ZipArchive::ER_OPEN => "Can't open file", - \ZipArchive::ER_READ => "Read error", - \ZipArchive::ER_SEEK => "Seek error" - ); - - public function __construct(ResourceManager $manager) - { - parent::__construct($manager); - $this->probe = new ZipExtensionVersionProbe(); - } - - /** - * @inheritdoc - */ - protected function doListMembers(ResourceInterface $resource) - { - $members = array(); - for ($i = 0; $i < $resource->getResource()->numFiles; $i++) { - $stat = $resource->getResource()->statIndex($i); - $members[] = new Member( - $resource, - $this, - $stat['name'], - $stat['size'], - new \DateTime('@' . $stat['mtime']), - 0 === strlen($resource->getResource()->getFromIndex($i, 1)) - ); - } - - return $members; - } - - /** - * @inheritdoc - */ - public static function getName() - { - return 'zip-extension'; - } - - /** - * @inheritdoc - */ - protected function doExtract(ResourceInterface $resource, $to) - { - return $this->extractMembers($resource, null, $to); - } - - /** - * @inheritdoc - */ - protected function doExtractMembers(ResourceInterface $resource, $members, $to, $overwrite = false) - { - if (null === $to) { - // if no destination is given, will extract to zip current folder - $to = dirname(realpath($resource->getResource()->filename)); - } - - if (!is_dir($to)) { - $resource->getResource()->close(); - throw new InvalidArgumentException(sprintf("%s is not a directory", $to)); - } - - if (!is_writable($to)) { - $resource->getResource()->close(); - throw new InvalidArgumentException(sprintf("%s is not writable", $to)); - } - - if (null !== $members) { - $membersTemp = (array) $members; - if (empty($membersTemp)) { - $resource->getResource()->close(); - - throw new InvalidArgumentException("no members provided"); - } - $members = array(); - // allows $members to be an array of strings or array of Members - foreach ($membersTemp as $member) { - if ($member instanceof Member) { - $member = $member->getLocation(); - } - - if ($resource->getResource()->locateName($member) === false) { - $resource->getResource()->close(); - - throw new InvalidArgumentException(sprintf('%s is not in the zip file', $member)); - } - - if ($overwrite == false) { - if (file_exists($member)) { - $resource->getResource()->close(); - - throw new RuntimeException('Target file ' . $member . ' already exists.'); - } - } - - $members[] = $member; - } - } - - if (!$resource->getResource()->extractTo($to, $members)) { - $resource->getResource()->close(); - - throw new InvalidArgumentException(sprintf('Unable to extract archive : %s', $resource->getResource()->getStatusString())); - } - - return new \SplFileInfo($to); - } - - /** - * @inheritdoc - */ - protected function doRemove(ResourceInterface $resource, $files) - { - $files = (array) $files; - - if (empty($files)) { - throw new InvalidArgumentException("no files provided"); - } - - // either remove all files or none in case of error - foreach ($files as $file) { - if ($resource->getResource()->locateName($file) === false) { - $resource->getResource()->unchangeAll(); - $resource->getResource()->close(); - - throw new InvalidArgumentException(sprintf('%s is not in the zip file', $file)); - } - if (!$resource->getResource()->deleteName($file)) { - $resource->getResource()->unchangeAll(); - $resource->getResource()->close(); - - throw new RuntimeException(sprintf('unable to remove %s', $file)); - } - } - $this->flush($resource->getResource()); - - return $files; - } - - /** - * @inheritdoc - */ - protected function doAdd(ResourceInterface $resource, $files, $recursive) - { - $files = (array) $files; - if (empty($files)) { - $resource->getResource()->close(); - throw new InvalidArgumentException("no files provided"); - } - $this->addEntries($resource, $files, $recursive); - - return $files; - } - - /** - * @inheritdoc - */ - protected function doCreate($path, $files, $recursive) - { - $files = (array) $files; - - if (empty($files)) { - throw new NotSupportedException("Cannot create an empty zip"); - } - - $resource = $this->getResource($path, \ZipArchive::CREATE); - $this->addEntries($resource, $files, $recursive); - - return new Archive($resource, $this, $this->manager); - } - - /** - * Returns a new instance of the invoked adapter - * - * @return AbstractAdapter - * - * @throws RuntimeException In case object could not be instanciated - */ - public static function newInstance() - { - return new ZipExtensionAdapter(ResourceManager::create()); - } - - protected function createResource($path) - { - return $this->getResource($path, \ZipArchive::CHECKCONS); - } - - private function getResource($path, $mode) - { - $zip = new \ZipArchive(); - $res = $zip->open($path, $mode); - - if ($res !== true) { - throw new RuntimeException($this->errorCodesMapping[$res]); - } - - return new ZipArchiveResource($zip); - } - - private function addEntries(ResourceInterface $zipResource, array $files, $recursive) - { - $stack = new \SplStack(); - - $error = null; - $cwd = getcwd(); - $collection = $this->manager->handle($cwd, $files); - - $this->chdir($collection->getContext()); - - $adapter = $this; - - try { - $collection->forAll(function($i, ZippyResource $resource) use ($zipResource, $stack, $recursive, $adapter) { - $adapter->checkReadability($zipResource->getResource(), $resource->getTarget()); - if (is_dir($resource->getTarget())) { - if ($recursive) { - $stack->push($resource->getTarget() . ((substr($resource->getTarget(), -1) === DIRECTORY_SEPARATOR) ? '' : DIRECTORY_SEPARATOR)); - } else { - $adapter->addEmptyDir($zipResource->getResource(), $resource->getTarget()); - } - } else { - $adapter->addFileToZip($zipResource->getResource(), $resource->getTarget()); - } - - return true; - }); - - // recursively add dirs - while (!$stack->isEmpty()) { - $dir = $stack->pop(); - // removes . and .. - $files = array_diff(scandir($dir), array(".", "..")); - if (count($files) > 0) { - foreach ($files as $file) { - $file = $dir . $file; - $this->checkReadability($zipResource->getResource(), $file); - if (is_dir($file)) { - $stack->push($file . DIRECTORY_SEPARATOR); - } else { - $this->addFileToZip($zipResource->getResource(), $file); - } - } - } else { - $this->addEmptyDir($zipResource->getResource(), $dir); - } - } - $this->flush($zipResource->getResource()); - - $this->manager->cleanup($collection); - } catch (\Exception $e) { - $error = $e; - } - - $this->chdir($cwd); - - if ($error) { - throw $error; - } - } - - /** - * @info is public for PHP 5.3 compatibility, should be private - * - * @param \ZipArchive $zip - * @param string $file - */ - public function checkReadability(\ZipArchive $zip, $file) - { - if (!is_readable($file)) { - $zip->unchangeAll(); - $zip->close(); - - throw new InvalidArgumentException(sprintf('could not read %s', $file)); - } - } - - /** - * @info is public for PHP 5.3 compatibility, should be private - * - * @param \ZipArchive $zip - * @param string $file - */ - public function addFileToZip(\ZipArchive $zip, $file) - { - if (!$zip->addFile($file)) { - $zip->unchangeAll(); - $zip->close(); - - throw new RuntimeException(sprintf('unable to add %s to the zip file', $file)); - } - } - - /** - * @info is public for PHP 5.3 compatibility, should be private - * - * @param \ZipArchive $zip - * @param string $dir - */ - public function addEmptyDir(\ZipArchive $zip, $dir) - { - if (!$zip->addEmptyDir($dir)) { - $zip->unchangeAll(); - $zip->close(); - - throw new RuntimeException(sprintf('unable to add %s to the zip file', $dir)); - } - } - - /** - * Flushes changes to the archive - * - * @param \ZipArchive $zip - */ - private function flush(\ZipArchive $zip) // flush changes by reopening the file - { - $path = $zip->filename; - $zip->close(); - $zip->open($path, \ZipArchive::CHECKCONS); - } -} diff --git a/vendor/alchemy/zippy/src/Archive/Archive.php b/vendor/alchemy/zippy/src/Archive/Archive.php deleted file mode 100644 index 088b476f8..000000000 --- a/vendor/alchemy/zippy/src/Archive/Archive.php +++ /dev/null @@ -1,136 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Archive; - -use Alchemy\Zippy\Adapter\AdapterInterface; -use Alchemy\Zippy\Resource\ResourceManager; -use Alchemy\Zippy\Adapter\Resource\ResourceInterface; - -/** - * Represents an archive - */ -class Archive implements ArchiveInterface -{ - /** - * The path to the archive - * - * @var string - */ - protected $path; - - /** - * The archive adapter - * - * @var AdapterInterface - */ - protected $adapter; - - /** - * An array of archive members - * - * @var MemberInterface[] - */ - protected $members = array(); - - /** - * @var ResourceInterface - */ - protected $resource; - - /** - * - * @var ResourceManager - */ - protected $manager; - - /** - * Constructor - * - * @param ResourceInterface $resource Path to the archive - * @param AdapterInterface $adapter An archive adapter - * @param ResourceManager $manager The resource manager - */ - public function __construct(ResourceInterface $resource, AdapterInterface $adapter, ResourceManager $manager) - { - $this->resource = $resource; - $this->adapter = $adapter; - $this->manager = $manager; - } - - /** - * @inheritdoc - */ - public function count() - { - return count($this->getMembers()); - } - - /** - * Returns an Iterator for the current archive - * - * This method implements the IteratorAggregate interface. - * - * @return \ArrayIterator An iterator - */ - public function getIterator() - { - return new \ArrayIterator($this->getMembers()); - } - - /** - * @inheritdoc - */ - public function getMembers() - { - return $this->members = $this->adapter->listMembers($this->resource); - } - - /** - * @inheritdoc - */ - public function addMembers($sources, $recursive = true) - { - $this->adapter->add($this->resource, $sources, $recursive); - - return $this; - } - - /** - * @inheritdoc - */ - public function removeMembers($sources) - { - $this->adapter->remove($this->resource, $sources); - - return $this; - } - - /** - * @inheritdoc - */ - public function extract($toDirectory) - { - $this->adapter->extract($this->resource, $toDirectory); - - return $this; - } - - /** - * @inheritdoc - */ - public function extractMembers($members, $toDirectory = null) - { - $this->adapter->extractMembers($this->resource, $members, $toDirectory); - - return $this; - } -} diff --git a/vendor/alchemy/zippy/src/Archive/ArchiveInterface.php b/vendor/alchemy/zippy/src/Archive/ArchiveInterface.php deleted file mode 100644 index b4dfa8013..000000000 --- a/vendor/alchemy/zippy/src/Archive/ArchiveInterface.php +++ /dev/null @@ -1,74 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Archive; - -use Alchemy\Zippy\Exception\RuntimeException; -use Alchemy\Zippy\Exception\InvalidArgumentException; - -interface ArchiveInterface extends \IteratorAggregate, \Countable -{ - /** - * Adds a file or a folder into the archive - * - * @param string|array|\SplFileInfo $sources The path to the file or a folder - * @param bool $recursive Recurse into sub-directories - * - * @return ArchiveInterface - * - * @throws InvalidArgumentException In case the provided source path is not valid - * @throws RuntimeException In case of failure - */ - public function addMembers($sources, $recursive = true); - - /** - * Removes a file from the archive - * - * @param string|array $sources The path to an archive or a folder member - * - * @return ArchiveInterface - * - * @throws RuntimeException In case of failure - */ - public function removeMembers($sources); - - /** - * Lists files and directories archive members - * - * @return MemberInterface[] An array of File - * - * @throws RuntimeException In case archive could not be read - */ - public function getMembers(); - - /** - * Extracts current archive to the given directory - * - * @param string $toDirectory The path the extracted archive - * - * @return ArchiveInterface - * - * @throws RuntimeException In case archive could not be extracted - */ - public function extract($toDirectory); - - /** - * Extracts specific members from the archive - * - * @param string|MemberInterface[] $members An array of members path - * @param string $toDirectory The destination $directory - * - * @return ArchiveInterface - * - * @throws RuntimeException In case member could not be extracted - */ - public function extractMembers($members, $toDirectory = null); -} diff --git a/vendor/alchemy/zippy/src/Archive/Member.php b/vendor/alchemy/zippy/src/Archive/Member.php deleted file mode 100644 index 7ae2adbee..000000000 --- a/vendor/alchemy/zippy/src/Archive/Member.php +++ /dev/null @@ -1,147 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Archive; - -use Alchemy\Zippy\Adapter\AdapterInterface; -use Alchemy\Zippy\Adapter\Resource\ResourceInterface; - -/** - * Represents a member of an archive. - */ -class Member implements MemberInterface -{ - /** - * The location of the file - * - * @var string - */ - private $location; - - /** - * Tells whether the archive member is a directory or not - * - * @var bool - */ - private $isDir; - - /** - * The uncompressed size of the file - * - * @var int - */ - private $size; - - /** - * The last modified date of the file - * - * @var \DateTime - */ - private $lastModifiedDate; - - /** - * The resource to the actual archive - * - * @var string - */ - private $resource; - - /** - * An adapter - * - * @var AdapterInterface - */ - private $adapter; - - /** - * Constructor - * - * @param ResourceInterface $resource The path of the archive which contain the member - * @param AdapterInterface $adapter The archive adapter interface - * @param string $location The path of the archive member - * @param int $fileSize The uncompressed file size - * @param \DateTime $lastModifiedDate The last modified date of the member - * @param bool $isDir Tells whether the member is a directory or not - */ - public function __construct( - ResourceInterface $resource, - AdapterInterface $adapter, - $location, - $fileSize, - \DateTime $lastModifiedDate, - $isDir - ) { - $this->resource = $resource; - $this->adapter = $adapter; - $this->location = $location; - $this->isDir = $isDir; - $this->size = $fileSize; - $this->lastModifiedDate = $lastModifiedDate; - } - - /** - * {@inheritdoc} - */ - public function getLocation() - { - return $this->location; - } - - /** - * {@inheritdoc} - */ - public function isDir() - { - return $this->isDir; - } - - /** - * {@inheritdoc} - */ - public function getLastModifiedDate() - { - return $this->lastModifiedDate; - } - - /** - * {@inheritdoc} - */ - public function getSize() - { - return $this->size; - } - - /** - * {@inheritdoc} - */ - public function __toString() - { - return $this->location; - } - - /** - * {@inheritdoc} - */ - public function extract($to = null, $overwrite = false) - { - $this->adapter->extractMembers($this->resource, $this->location, $to, (bool) $overwrite); - - return new \SplFileInfo(sprintf('%s%s', rtrim(null === $to ? getcwd() : $to, '/'), $this->location)); - } - - /** - * @inheritdoc - * */ - public function getResource() - { - return $this->resource; - } -} diff --git a/vendor/alchemy/zippy/src/Archive/MemberInterface.php b/vendor/alchemy/zippy/src/Archive/MemberInterface.php deleted file mode 100644 index be41fc1cb..000000000 --- a/vendor/alchemy/zippy/src/Archive/MemberInterface.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Archive; - -use Alchemy\Zippy\Adapter\Resource\ResourceInterface; -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Alchemy\Zippy\Exception\RuntimeException; - -interface MemberInterface -{ - /** - * Gets the location of an archive member - * - * @return string - */ - public function getLocation(); - - /** - * Tells whether the member is a directory or not - * - * @return bool - */ - public function isDir(); - - /** - * Returns the last modified date of the member - * - * @return \DateTime - */ - public function getLastModifiedDate(); - - /** - * Returns the (uncompressed) size of the member - * - * If the size is unknown, returns -1 - * - * @return integer - */ - public function getSize(); - - /** - * Extract the member from its archive - * - * Be careful using this method within a loop - * This will execute one extraction process for each file - * Prefer the use of ArchiveInterface::extractMembers in that use case - * - * @param string|null $to The path where to extract the member, if no path is not provided the member is extracted in the same directory of its archive - * @param bool $overwrite Whether to overwrite destination file if it already exists. Defaults to false - * - * @return \SplFileInfo The extracted file - * - * @throws RuntimeException In case of failure - * @throws InvalidArgumentException In case no members could be removed or provide extract target directory is not valid - */ - public function extract($to = null, $overwrite = false); - - /** - * Get resource. - * - * @return ResourceInterface - * */ - public function getResource(); - - /** - * @inheritdoc - */ - public function __toString(); -} diff --git a/vendor/alchemy/zippy/src/Exception/ExceptionInterface.php b/vendor/alchemy/zippy/src/Exception/ExceptionInterface.php deleted file mode 100644 index 832d2eb6c..000000000 --- a/vendor/alchemy/zippy/src/Exception/ExceptionInterface.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -interface ExceptionInterface -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/FormatNotSupportedException.php b/vendor/alchemy/zippy/src/Exception/FormatNotSupportedException.php deleted file mode 100644 index 681ac739f..000000000 --- a/vendor/alchemy/zippy/src/Exception/FormatNotSupportedException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class FormatNotSupportedException extends RuntimeException -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/IOException.php b/vendor/alchemy/zippy/src/Exception/IOException.php deleted file mode 100644 index 6da5dd211..000000000 --- a/vendor/alchemy/zippy/src/Exception/IOException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class IOException extends RuntimeException -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/InvalidArgumentException.php b/vendor/alchemy/zippy/src/Exception/InvalidArgumentException.php deleted file mode 100644 index c901135fa..000000000 --- a/vendor/alchemy/zippy/src/Exception/InvalidArgumentException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/NoAdapterOnPlatformException.php b/vendor/alchemy/zippy/src/Exception/NoAdapterOnPlatformException.php deleted file mode 100644 index 40f863651..000000000 --- a/vendor/alchemy/zippy/src/Exception/NoAdapterOnPlatformException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class NoAdapterOnPlatformException extends RuntimeException -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/NotSupportedException.php b/vendor/alchemy/zippy/src/Exception/NotSupportedException.php deleted file mode 100644 index 3d2626e04..000000000 --- a/vendor/alchemy/zippy/src/Exception/NotSupportedException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class NotSupportedException extends RuntimeException implements ExceptionInterface -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/RuntimeException.php b/vendor/alchemy/zippy/src/Exception/RuntimeException.php deleted file mode 100644 index a6aa51740..000000000 --- a/vendor/alchemy/zippy/src/Exception/RuntimeException.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class RuntimeException extends \RuntimeException implements ExceptionInterface -{ -} diff --git a/vendor/alchemy/zippy/src/Exception/TargetLocatorException.php b/vendor/alchemy/zippy/src/Exception/TargetLocatorException.php deleted file mode 100644 index 720c9e78a..000000000 --- a/vendor/alchemy/zippy/src/Exception/TargetLocatorException.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Exception; - -class TargetLocatorException extends RuntimeException -{ - private $resource; - - public function __construct($resource, $message, $code = 0, $previous = null) - { - $this->resource = $resource; - parent::__construct($message, $code, $previous); - } - - public function getResource() - { - return $this->resource; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/AbstractFileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/AbstractFileStrategy.php deleted file mode 100644 index f6f65df00..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/AbstractFileStrategy.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -use Alchemy\Zippy\Adapter\AdapterContainer; -use Alchemy\Zippy\Exception\RuntimeException; - -abstract class AbstractFileStrategy implements FileStrategyInterface -{ - protected $container; - - public function __construct(AdapterContainer $container) - { - $this->container = $container; - } - - /** - * {@inheritdoc} - */ - public function getAdapters() - { - $services = array(); - foreach ($this->getServiceNames() as $serviceName) { - try { - $services[] = $this->container[$serviceName]; - } catch (RuntimeException $e) { - - } - } - - return $services; - } - - /** - * Returns an array of service names that defines adapters. - * - * @return string[] - */ - abstract protected function getServiceNames(); -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/FileStrategyInterface.php b/vendor/alchemy/zippy/src/FileStrategy/FileStrategyInterface.php deleted file mode 100644 index 1b24f5b5e..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/FileStrategyInterface.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -use Alchemy\Zippy\Adapter\AdapterInterface; - -interface FileStrategyInterface -{ - /** - * Returns an array of adapters that match the strategy - * - * @return AdapterInterface[] - */ - public function getAdapters(); - - /** - * Returns the file extension that match the strategy - * - * @return string - */ - public function getFileExtension(); -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/TB2FileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TB2FileStrategy.php deleted file mode 100644 index 45c55b54e..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/TB2FileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class TB2FileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarBz2GNUTarAdapter', - 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarBz2BSDTarAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'tb2'; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/TBz2FileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TBz2FileStrategy.php deleted file mode 100644 index a99b54535..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/TBz2FileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class TBz2FileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarBz2GNUTarAdapter', - 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarBz2BSDTarAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'tbz2'; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/TGzFileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TGzFileStrategy.php deleted file mode 100644 index f1e6ca314..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/TGzFileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class TGzFileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarGzGNUTarAdapter', - 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarGzBSDTarAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'tgz'; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/TarBz2FileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TarBz2FileStrategy.php deleted file mode 100644 index fa4b1e4b7..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/TarBz2FileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class TarBz2FileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarBz2GNUTarAdapter', - 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarBz2BSDTarAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'tar.bz2'; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/TarFileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TarFileStrategy.php deleted file mode 100644 index b5fdae063..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/TarFileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class TarFileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarGNUTarAdapter', - 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarBSDTarAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'tar'; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/TarGzFileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/TarGzFileStrategy.php deleted file mode 100644 index a136e624e..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/TarGzFileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class TarGzFileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarGzGNUTarAdapter', - 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarGzBSDTarAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'tar.gz'; - } -} diff --git a/vendor/alchemy/zippy/src/FileStrategy/ZipFileStrategy.php b/vendor/alchemy/zippy/src/FileStrategy/ZipFileStrategy.php deleted file mode 100644 index dfeb5c76b..000000000 --- a/vendor/alchemy/zippy/src/FileStrategy/ZipFileStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\FileStrategy; - -class ZipFileStrategy extends AbstractFileStrategy -{ - /** - * {@inheritdoc} - */ - protected function getServiceNames() - { - return array( - 'Alchemy\\Zippy\\Adapter\\ZipAdapter', - 'Alchemy\\Zippy\\Adapter\\ZipExtensionAdapter' - ); - } - - /** - * {@inheritdoc} - */ - public function getFileExtension() - { - return 'zip'; - } -} diff --git a/vendor/alchemy/zippy/src/Parser/BSDTarOutputParser.php b/vendor/alchemy/zippy/src/Parser/BSDTarOutputParser.php deleted file mode 100644 index e3fa07693..000000000 --- a/vendor/alchemy/zippy/src/Parser/BSDTarOutputParser.php +++ /dev/null @@ -1,115 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace Alchemy\Zippy\Parser; - -use Alchemy\Zippy\Exception\RuntimeException; - -/** - * This class is responsible of parsing GNUTar command line output - */ -class BSDTarOutputParser implements ParserInterface -{ - const PERMISSIONS = '([ldrwx-]+)'; - const HARD_LINK = '(\d+)'; - const OWNER = '([a-z][-a-z0-9]*)'; - const GROUP = '([a-z][-a-z0-9]*)'; - const FILESIZE = '(\d*)'; - const DATE = '([a-zA-Z0-9]+\s+[a-z0-9]+\s+[a-z0-9:]+)'; - const FILENAME = '(.*)'; - - /** - * @inheritdoc - */ - public function parseFileListing($output) - { - $lines = array_values(array_filter(explode("\n", $output))); - $members = array(); - - // BSDTar outputs two differents format of date according to the mtime - // of the member. If the member is younger than six months the year is not shown. - // On 4.5+ FreeBSD system the day is displayed first - $dateFormats = array('M d Y', 'M d H:i', 'd M Y', 'd M H:i'); - - foreach ($lines as $line) { - $matches = array(); - - // drw-rw-r-- 0 toto titi 0 Jan 3 1980 practice/ - // -rw-rw-r-- 0 toto titi 10240 Jan 22 13:31 practice/records - if (!preg_match_all("#" . - self::PERMISSIONS . "\s+" . // match (drw-r--r--) - self::HARD_LINK . "\s+" . // match (1) - self::OWNER . "\s" . // match (toto) - self::GROUP . "\s+" . // match (titi) - self::FILESIZE . "\s+" . // match (0) - self::DATE . "\s+" . // match (Jan 3 1980) - self::FILENAME . // match (practice) - "#", $line, $matches, PREG_SET_ORDER - )) { - continue; - } - - $chunks = array_shift($matches); - - if (8 !== count($chunks)) { - continue; - } - - $date = null; - - foreach ($dateFormats as $format) { - $date = \DateTime::createFromFormat($format, $chunks[6]); - - if (false === $date) { - continue; - } else { - break; - } - } - - if (false === $date) { - throw new RuntimeException(sprintf('Failed to parse mtime date from %s', $line)); - } - - $members[] = array( - 'location' => $chunks[7], - 'size' => $chunks[5], - 'mtime' => $date, - 'is_dir' => 'd' === $chunks[1][0] - ); - } - - return $members; - } - - /** - * @inheritdoc - */ - public function parseInflatorVersion($output) - { - $chunks = explode(' ', $output, 3); - - if (2 > count($chunks)) { - return null; - } - - list(, $version) = explode(' ', $output, 3); - - return $version; - } - - /** - * @inheritdoc - */ - public function parseDeflatorVersion($output) - { - return $this->parseInflatorVersion($output); - } -} diff --git a/vendor/alchemy/zippy/src/Parser/GNUTarOutputParser.php b/vendor/alchemy/zippy/src/Parser/GNUTarOutputParser.php deleted file mode 100644 index b28f9a225..000000000 --- a/vendor/alchemy/zippy/src/Parser/GNUTarOutputParser.php +++ /dev/null @@ -1,98 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace Alchemy\Zippy\Parser; - -use Alchemy\Zippy\Exception\RuntimeException; - -/** - * This class is responsible of parsing GNUTar command line output - */ -class GNUTarOutputParser implements ParserInterface -{ - const PERMISSIONS = '([ldrwx-]+)'; - const OWNER = '([a-z][-a-z0-9]*)'; - const GROUP = '([a-z][-a-z0-9]*)'; - const FILESIZE = '(\d*)'; - const ISO_DATE = '([0-9]+-[0-9]+-[0-9]+\s+[0-9]+:[0-9]+)'; - const FILENAME = '(.*)'; - - /** - * @inheritdoc - */ - public function parseFileListing($output) - { - $lines = array_values(array_filter(explode("\n", $output))); - $members = array(); - - foreach ($lines as $line) { - $matches = array(); - - // -rw-r--r-- gray/staff 62373 2006-06-09 12:06 apple - if (!preg_match_all("#". - self::PERMISSIONS . "\s+" . // match (-rw-r--r--) - self::OWNER . "/" . // match (gray) - self::GROUP . "\s+" . // match (staff) - self::FILESIZE . "\s+" . // match (62373) - self::ISO_DATE . "\s+" . // match (2006-06-09 12:06) - self::FILENAME . // match (apple) - "#", - $line, $matches, PREG_SET_ORDER - )) { - continue; - } - - $chunks = array_shift($matches); - - if (7 !== count($chunks)) { - continue; - } - - $date = \DateTime::createFromFormat("Y-m-d H:i", $chunks[5]); - - if (false === $date) { - throw new RuntimeException(sprintf('Failed to parse mtime date from %s', $line)); - } - - $members[] = array( - 'location' => $chunks[6], - 'size' => $chunks[4], - 'mtime' => $date, - 'is_dir' => 'd' === $chunks[1][0] - ); - } - - return $members; - } - - /** - * @inheritdoc - */ - public function parseInflatorVersion($output) - { - $chunks = explode(' ', $output, 3); - - if (2 > count($chunks)) { - return null; - } - - list(, $version) = $chunks; - - return $version; - } - - /** - * @inheritdoc - */ - public function parseDeflatorVersion($output) - { - return $this->parseInflatorVersion($output); - } -} diff --git a/vendor/alchemy/zippy/src/Parser/ParserFactory.php b/vendor/alchemy/zippy/src/Parser/ParserFactory.php deleted file mode 100644 index 8b395c722..000000000 --- a/vendor/alchemy/zippy/src/Parser/ParserFactory.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Parser; - -use Alchemy\Zippy\Exception\InvalidArgumentException; - -class ParserFactory -{ - - private static $zipDateFormat = 'Y-m-d H:i'; - - /** - * @param string $format Date format used to parse ZIP file listings - */ - public static function setZipDateFormat($format) - { - self::$zipDateFormat = $format; - } - - /** - * Maps the corresponding parser to the selected adapter - * - * @param string $adapterName An adapter name - * - * @return ParserInterface - * - * @throws InvalidArgumentException In case no parser were found - */ - public static function create($adapterName) - { - switch ($adapterName) { - case 'gnu-tar': - return new GNUTarOutputParser(); - break; - case 'bsd-tar': - return new BSDTarOutputParser(); - break; - case 'zip': - return new ZipOutputParser(self::$zipDateFormat); - break; - - default: - throw new InvalidArgumentException(sprintf('No parser available for %s adapter', $adapterName)); - break; - } - } -} diff --git a/vendor/alchemy/zippy/src/Parser/ParserInterface.php b/vendor/alchemy/zippy/src/Parser/ParserInterface.php deleted file mode 100644 index c3024a1e9..000000000 --- a/vendor/alchemy/zippy/src/Parser/ParserInterface.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Parser; - -use Alchemy\Zippy\Exception\RuntimeException; - -interface ParserInterface -{ - /** - * Parses a file listing - * - * @param string $output The string to parse - * - * @return array An array of Member properties (location, mtime, size & is_dir) - * - * @throws RuntimeException In case the parsing process failed - */ - public function parseFileListing($output); - - /** - * Parses the inflator binary version - * - * @param string $output - * - * @return string The version - */ - public function parseInflatorVersion($output); - - /** - * Parses the deflator binary version - * - * @param string $output - * - * @return string The version - */ - public function parseDeflatorVersion($output); -} diff --git a/vendor/alchemy/zippy/src/Parser/ZipOutputParser.php b/vendor/alchemy/zippy/src/Parser/ZipOutputParser.php deleted file mode 100644 index 11f98a27d..000000000 --- a/vendor/alchemy/zippy/src/Parser/ZipOutputParser.php +++ /dev/null @@ -1,109 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace Alchemy\Zippy\Parser; - -/** - * This class is responsible of parsing GNUTar command line output - */ -class ZipOutputParser implements ParserInterface -{ - const LENGTH = '(\d*)'; - const ISO_DATE = '([0-9]+-[0-9]+-[0-9]+\s+[0-9]+:[0-9]+)'; - const FILENAME = '(.*)'; - - /** - * @var string - */ - private $dateFormat; - - /** - * @param string $dateFormat - */ - public function __construct($dateFormat = "Y-m-d H:i") - { - $this->dateFormat = $dateFormat; - } - - /** - * @inheritdoc - */ - public function parseFileListing($output) - { - $lines = array_values(array_filter(explode("\n", $output))); - $members = array(); - - foreach ($lines as $line) { - $matches = array(); - - // 785 2012-10-24 10:39 file - if (!preg_match_all("#" . - self::LENGTH . "\s+" . // match (785) - self::ISO_DATE . "\s+" . // match (2012-10-24 10:39) - self::FILENAME . // match (file) - "#", - $line, $matches, PREG_SET_ORDER - )) { - continue; - } - - $chunks = array_shift($matches); - - if (4 !== count($chunks)) { - continue; - } - - $members[] = array( - 'location' => $chunks[3], - 'size' => $chunks[1], - 'mtime' => \DateTime::createFromFormat($this->dateFormat, $chunks[2]), - 'is_dir' => '/' === substr($chunks[3], -1) - ); - } - - return $members; - } - - /** - * @inheritdoc - */ - public function parseInflatorVersion($output) - { - $lines = array_values(array_filter(explode("\n", $output, 3))); - - $chunks = explode(' ', $lines[1], 3); - - if (2 > count($chunks)) { - return null; - } - - list(, $version) = $chunks; - - return $version; - } - - /** - * @inheritdoc - */ - public function parseDeflatorVersion($output) - { - $lines = array_values(array_filter(explode("\n", $output, 2))); - $firstLine = array_shift($lines); - $chunks = explode(' ', $firstLine, 3); - - if (2 > count($chunks)) { - return null; - } - - list(, $version) = $chunks; - - return $version; - } -} diff --git a/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactory.php b/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactory.php deleted file mode 100644 index 0caaf6a84..000000000 --- a/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactory.php +++ /dev/null @@ -1,71 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\ProcessBuilder; - -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Symfony\Component\Process\ProcessBuilder; - -class ProcessBuilderFactory implements ProcessBuilderFactoryInterface -{ - /** - * The binary path - * - * @var string - */ - protected $binary; - - /** - * Constructor - * - * @param string $binary The path to the binary - * - * @throws InvalidArgumentException In case binary path is invalid - */ - public function __construct($binary) - { - $this->useBinary($binary); - } - - /** - * @inheritdoc - */ - public function getBinary() - { - return $this->binary; - } - - /** - * @inheritdoc - */ - public function useBinary($binary) - { - if (!is_executable($binary)) { - throw new InvalidArgumentException(sprintf('`%s` is not an executable binary', $binary)); - } - - $this->binary = $binary; - - return $this; - } - - /** - * @inheritdoc - */ - public function create() - { - if (null === $this->binary) { - throw new InvalidArgumentException('No binary set'); - } - - return ProcessBuilder::create(array($this->binary))->setTimeout(null); - } -} diff --git a/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactoryInterface.php b/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactoryInterface.php deleted file mode 100644 index a93e5a80b..000000000 --- a/vendor/alchemy/zippy/src/ProcessBuilder/ProcessBuilderFactoryInterface.php +++ /dev/null @@ -1,45 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\ProcessBuilder; - -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Symfony\Component\Process\ProcessBuilder; - -interface ProcessBuilderFactoryInterface -{ - /** - * Returns a new instance of Symfony ProcessBuilder - * - * @return ProcessBuilder - * - * @throws InvalidArgumentException - */ - public function create(); - - /** - * Returns the binary path - * - * @return string - */ - public function getBinary(); - - /** - * Sets the binary path - * - * @param string $binary A binary path - * - * @return ProcessBuilderFactoryInterface - * - * @throws InvalidArgumentException In case binary is not executable - */ - public function useBinary($binary); -} diff --git a/vendor/alchemy/zippy/src/Resource/PathUtil.php b/vendor/alchemy/zippy/src/Resource/PathUtil.php deleted file mode 100644 index ec7a46a6a..000000000 --- a/vendor/alchemy/zippy/src/Resource/PathUtil.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -abstract class PathUtil -{ - public static function basename($path) - { - return (false === $pos = strrpos(strtr($path, '\\', '/'), '/')) ? $path : substr($path, $pos + 1); - } -} \ No newline at end of file diff --git a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/GuzzleReader.php b/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/GuzzleReader.php deleted file mode 100644 index 46785cddb..000000000 --- a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/GuzzleReader.php +++ /dev/null @@ -1,59 +0,0 @@ -resource = $resource; - $this->client = $client; - } - - /** - * @return string - */ - public function getContents() - { - return $this->buildRequest()->getBody()->getContents(); - } - - /** - * @return resource - */ - public function getContentsAsStream() - { - $response = $this->buildRequest()->getBody()->getContents(); - $stream = fopen('php://temp', 'r+'); - - if ($response != '') { - fwrite($stream, $response); - fseek($stream, 0); - } - - return $stream; - } - - private function buildRequest() - { - return $this->client->request('GET', $this->resource->getOriginal()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/GuzzleReaderFactory.php b/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/GuzzleReaderFactory.php deleted file mode 100644 index 79eb27c57..000000000 --- a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/GuzzleReaderFactory.php +++ /dev/null @@ -1,37 +0,0 @@ -client = $client; - - if (! $this->client) { - $this->client = new Client(); - } - } - - /** - * @param ZippyResource $resource - * @param string $context - * - * @return ResourceReader - */ - public function getReader(ZippyResource $resource, $context) - { - return new GuzzleReader($resource, $this->client); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/LegacyGuzzleReader.php b/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/LegacyGuzzleReader.php deleted file mode 100644 index 79ef97a11..000000000 --- a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/LegacyGuzzleReader.php +++ /dev/null @@ -1,67 +0,0 @@ -client = $client ?: new Client(); - $this->resource = $resource; - } - - /** - * @return string - */ - public function getContents() - { - return $this->buildRequest()->send()->getBody(true); - } - - /** - * @return resource - */ - public function getContentsAsStream() - { - if (!$this->stream) { - $this->stream = $this->buildRequest()->send()->getBody(false); - } - - return $this->stream->getStream(); - } - - /** - * @return \Guzzle\Http\Message\RequestInterface - */ - private function buildRequest() - { - return $this->client->get($this->resource->getOriginal()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/LegacyGuzzleReaderFactory.php b/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/LegacyGuzzleReaderFactory.php deleted file mode 100644 index 500f59a67..000000000 --- a/vendor/alchemy/zippy/src/Resource/Reader/Guzzle/LegacyGuzzleReaderFactory.php +++ /dev/null @@ -1,47 +0,0 @@ -client = $client; - - if (!$this->client) { - $this->client = new Client(); - - $this->client->getEventDispatcher()->addListener('request.error', function(Event $event) { - // override guzzle default behavior of throwing exceptions - // when 4xx & 5xx responses are encountered - $event->stopPropagation(); - }, -254); - - $this->client->addSubscriber(BackoffPlugin::getExponentialBackoff(5, array(500, 502, 503, 408))); - } - } - - /** - * @param ZippyResource $resource - * @param string $context - * - * @return ResourceReader - */ - public function getReader(ZippyResource $resource, $context) - { - return new LegacyGuzzleReader($resource, $this->client); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Reader/Stream/StreamReader.php b/vendor/alchemy/zippy/src/Resource/Reader/Stream/StreamReader.php deleted file mode 100644 index c07062b15..000000000 --- a/vendor/alchemy/zippy/src/Resource/Reader/Stream/StreamReader.php +++ /dev/null @@ -1,41 +0,0 @@ -resource = $resource; - } - - /** - * @return string - */ - public function getContents() - { - return file_get_contents($this->resource->getOriginal()); - } - - /** - * @return resource - */ - public function getContentsAsStream() - { - $stream = is_resource($this->resource->getOriginal()) ? - $this->resource->getOriginal() : @fopen($this->resource->getOriginal(), 'rb'); - - return $stream; - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Reader/Stream/StreamReaderFactory.php b/vendor/alchemy/zippy/src/Resource/Reader/Stream/StreamReaderFactory.php deleted file mode 100644 index ca1d98653..000000000 --- a/vendor/alchemy/zippy/src/Resource/Reader/Stream/StreamReaderFactory.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -class RequestMapper -{ - private $locator; - - /** - * Constructor - * - * @param TargetLocator $locator - */ - public function __construct(TargetLocator $locator) - { - $this->locator = $locator; - } - - /** - * Maps resources request to a ResourceCollection - * - * @param $context - * @param array $resources - * - * @return ResourceCollection - */ - public function map($context, array $resources) - { - $data = array(); - - foreach ($resources as $location => $resource) { - if (is_int($location)) { - $data[] = new Resource($resource, $this->locator->locate($context, $resource)); - } else { - $data[] = new Resource($resource, ltrim($location, '/')); - } - } - - if (count($data) === 1) { - $context = $data[0]->getOriginal(); - } - - $collection = new ResourceCollection($context, $data, false); - - return $collection; - } - - /** - * Creates the default RequestMapper - * - * @return RequestMapper - */ - public static function create() - { - return new static(new TargetLocator()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Resource.php b/vendor/alchemy/zippy/src/Resource/Resource.php deleted file mode 100644 index 7fb64aaea..000000000 --- a/vendor/alchemy/zippy/src/Resource/Resource.php +++ /dev/null @@ -1,116 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -class Resource -{ - private $original; - private $target; - - /** - * Constructor - * - * @param string $original - * @param string $target - */ - public function __construct($original, $target) - { - $this->original = $original; - $this->target = $target; - } - - /** - * Returns the target - * - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Returns the original path - * - * @return string - */ - public function getOriginal() - { - return $this->original; - } - - /** - * Returns whether the resource can be processed in place given a context or not. - * - * For example : - * - /path/to/file1 can be processed to file1 in /path/to context - * - /path/to/subdir/file2 can be processed to subdir/file2 in /path/to context - * - * @param string $context - * - * @return bool - */ - public function canBeProcessedInPlace($context) - { - if (!is_string($this->original)) { - return false; - } - - if (!$this->isLocal()) { - return false; - } - - $data = parse_url($this->original); - - return sprintf('%s/%s', rtrim($context, '/'), $this->target) === $data['path']; - } - - /** - * Returns a context for computing this resource in case it is possible. - * - * Useful to avoid teleporting. - * - * @return null|string - */ - public function getContextForProcessInSinglePlace() - { - if (!is_string($this->original)) { - return null; - } - - if (!$this->isLocal()) { - return null; - } - - if (PathUtil::basename($this->original) === $this->target) { - return dirname($this->original); - } - - return null; - } - - /** - * Returns true if the resource is local. - * - * @return bool - */ - private function isLocal() - { - if (!is_string($this->original)) { - return false; - } - - $data = parse_url($this->original); - - return isset($data['path']); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/ResourceCollection.php b/vendor/alchemy/zippy/src/Resource/ResourceCollection.php deleted file mode 100644 index f2ce1cad5..000000000 --- a/vendor/alchemy/zippy/src/Resource/ResourceCollection.php +++ /dev/null @@ -1,89 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Doctrine\Common\Collections\ArrayCollection; - -class ResourceCollection extends ArrayCollection -{ - private $context; - /** - * @var bool - */ - private $temporary; - - /** - * Constructor - * @param string $context - * @param Resource[] $elements An array of Resource - * @param bool $temporary - */ - public function __construct($context, array $elements, $temporary) - { - array_walk($elements, function($element) { - if (!$element instanceof Resource) { - throw new InvalidArgumentException('ResourceCollection only accept Resource elements'); - } - }); - - $this->context = $context; - $this->temporary = (bool) $temporary; - parent::__construct($elements); - } - - /** - * Returns the context related to the collection - * - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Tells whether the collection is temporary or not. - * - * A ResourceCollection is temporary when it required a temporary folder to - * fetch data - * - * @return bool - */ - public function isTemporary() - { - return $this->temporary; - } - - /** - * Returns true if all resources can be processed in place, false otherwise - * - * @return bool - */ - public function canBeProcessedInPlace() - { - if (count($this) === 1) { - if (null !== $context = $this->first()->getContextForProcessInSinglePlace()) { - $this->context = $context; - return true; - } - } - - foreach ($this as $resource) { - if (!$resource->canBeProcessedInPlace($this->context)) { - return false; - } - } - - return true; - } -} diff --git a/vendor/alchemy/zippy/src/Resource/ResourceLocator.php b/vendor/alchemy/zippy/src/Resource/ResourceLocator.php deleted file mode 100644 index 24edb13c5..000000000 --- a/vendor/alchemy/zippy/src/Resource/ResourceLocator.php +++ /dev/null @@ -1,13 +0,0 @@ -getTarget(); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/ResourceManager.php b/vendor/alchemy/zippy/src/Resource/ResourceManager.php deleted file mode 100644 index 38cfd1fcc..000000000 --- a/vendor/alchemy/zippy/src/Resource/ResourceManager.php +++ /dev/null @@ -1,105 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -use Alchemy\Zippy\Exception\IOException; -use Symfony\Component\Filesystem\Filesystem; -use Symfony\Component\Filesystem\Exception\IOException as SfIOException; - -class ResourceManager -{ - private $mapper; - private $teleporter; - private $filesystem; - - /** - * Constructor - * - * @param RequestMapper $mapper - * @param ResourceTeleporter $teleporter - * @param Filesystem $filesystem - */ - public function __construct(RequestMapper $mapper, ResourceTeleporter $teleporter, Filesystem $filesystem) - { - $this->mapper = $mapper; - $this->filesystem = $filesystem; - $this->teleporter = $teleporter; - } - - /** - * Handles an archival request. - * - * The request is an array of string|streams to compute in a context (current - * working directory most of the time) - * Some keys can be associative. In these cases, the key is used the target - * for the file. - * - * @param string $context - * @param array $request - * - * @return ResourceCollection - * - * @throws IOException In case of write failure - */ - public function handle($context, array $request) - { - $collection = $this->mapper->map($context, $request); - - if (!$collection->canBeProcessedInPlace()) { - $context = sprintf('%s/%s', sys_get_temp_dir(), uniqid('zippy_')); - - try { - $this->filesystem->mkdir($context); - } catch (SfIOException $e) { - throw new IOException(sprintf('Could not create temporary folder %s', $context), $e->getCode(), $e); - } - - foreach ($collection as $resource) { - $this->teleporter->teleport($context, $resource); - } - - $collection = new ResourceCollection($context, $collection->toArray(), true); - } - - return $collection; - } - - /** - * This method must be called once the ResourceCollection has been processed. - * - * It will remove temporary files - * - * @todo this should be done in the __destruct method of ResourceCollection - * - * @param ResourceCollection $collection - */ - public function cleanup(ResourceCollection $collection) - { - if ($collection->isTemporary()) { - try { - $this->filesystem->remove($collection->getContext()); - } catch (IOException $e) { - // log this ? - } - } - } - - /** - * Creates a default ResourceManager - * - * @return ResourceManager - */ - public static function create() - { - return new static(RequestMapper::create(), ResourceTeleporter::create(), new Filesystem()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/ResourceReader.php b/vendor/alchemy/zippy/src/Resource/ResourceReader.php deleted file mode 100644 index 34d4f5835..000000000 --- a/vendor/alchemy/zippy/src/Resource/ResourceReader.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace Alchemy\Zippy\Resource; - -use Alchemy\Zippy\Resource\Resource as ZippyResource; - -class ResourceTeleporter -{ - private $container; - - /** - * Constructor - * - * @param TeleporterContainer $container - */ - public function __construct(TeleporterContainer $container) - { - $this->container = $container; - } - - /** - * Teleports a resource to its target in the context - * - * @param string $context - * @param ZippyResource $resource - * - * @return ResourceTeleporter - */ - public function teleport($context, ZippyResource $resource) - { - $this - ->container - ->fromResource($resource) - ->teleport($resource, $context); - - return $this; - } - - /** - * Creates the ResourceTeleporter with the default TeleporterContainer - * - * @return ResourceTeleporter - */ - public static function create() - { - return new static(TeleporterContainer::load()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/ResourceWriter.php b/vendor/alchemy/zippy/src/Resource/ResourceWriter.php deleted file mode 100644 index 00fcbae1d..000000000 --- a/vendor/alchemy/zippy/src/Resource/ResourceWriter.php +++ /dev/null @@ -1,8 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -use Alchemy\Zippy\Exception\TargetLocatorException; - -class TargetLocator -{ - /** - * Locates the target for a resource in a context - * - * For example, adding /path/to/file where the context (current working - * directory) is /path/to will return `file` as target - * - * @param string $context - * @param string|resource $resource - * - * @return string - * - * @throws TargetLocatorException when the resource is invalid - */ - public function locate($context, $resource) - { - switch (true) { - case is_resource($resource): - return $this->locateResource($resource); - case is_string($resource): - return $this->locateString($context, $resource); - case $resource instanceof \SplFileInfo: - return $this->locateString($context, $resource->getRealPath()); - default: - throw new TargetLocatorException($resource, 'Unknown resource format'); - } - } - - /** - * Locate the target for a resource. - * - * @param resource $resource - * - * @return string - * - * @throws TargetLocatorException - */ - private function locateResource($resource) - { - $meta = stream_get_meta_data($resource); - $data = parse_url($meta['uri']); - - if (!isset($data['path'])) { - throw new TargetLocatorException($resource, 'Unable to retrieve path from resource'); - } - - return PathUtil::basename($data['path']); - } - - /** - * Locate the target for a string. - * - * @param $context - * @param string $resource - * - * @return string - * - * @throws TargetLocatorException - */ - private function locateString($context, $resource) - { - $url = parse_url($resource); - - if (isset($url['scheme']) && $this->isLocalFilesystem($url['scheme'])) { - $resource = $url['path'] = $this->cleanupPath($url['path']); - } - - // resource is a URI - if (isset($url['scheme'])) { - if ($this->isLocalFilesystem($url['scheme']) && $this->isFileInContext($url['path'], $context)) { - return $this->getRelativePathFromContext($url['path'], $context); - } - - return PathUtil::basename($resource); - } - - // resource is a local path - if ($this->isFileInContext($resource, $context)) { - $resource = $this->cleanupPath($resource); - - return $this->getRelativePathFromContext($resource, $context); - } else { - return PathUtil::basename($resource); - } - } - - /** - * Removes backward path sequences (..) - * - * @param string $path - * - * @return string - * - * @throws TargetLocatorException In case the path is invalid - */ - private function cleanupPath($path) - { - if (false === $cleanPath = realpath($path)) { - throw new TargetLocatorException($path, sprintf('%s is an invalid location', $path)); - } - - return $cleanPath; - } - - /** - * Checks whether the path belong to the context - * - * @param string $path A resource path - * @param string $context - * - * @return bool - */ - private function isFileInContext($path, $context) - { - return 0 === strpos($path, $context); - } - - /** - * Gets the relative path from the context for the given path - * - * @param string $path A resource path - * @param string $context - * - * @return string - */ - private function getRelativePathFromContext($path, $context) - { - return ltrim(str_replace($context, '', $path), '/\\'); - } - - /** - * Checks if a scheme refers to a local filesystem - * - * @param string $scheme - * - * @return bool - */ - private function isLocalFilesystem($scheme) - { - return 'plainfile' === $scheme || 'file' === $scheme; - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/AbstractTeleporter.php b/vendor/alchemy/zippy/src/Resource/Teleporter/AbstractTeleporter.php deleted file mode 100644 index 401aed8d1..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/AbstractTeleporter.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource\Teleporter; - -use Alchemy\Zippy\Exception\IOException; -use Alchemy\Zippy\Resource\Resource as ZippyResource; - -/** - * Class AbstractTeleporter - * @package Alchemy\Zippy\Resource\Teleporter - * - * @deprecated Typehint against TeleporterInterface instead and use GenericTeleporter -* with custom reader/writers instead. This class will be removed in v0.5.x - */ -abstract class AbstractTeleporter implements TeleporterInterface -{ - /** - * Writes the target - * - * @param string $data - * @param ZippyResource $resource - * @param string $context - * - * @return TeleporterInterface - * - * @throws IOException - */ - protected function writeTarget($data, ZippyResource $resource, $context) - { - $target = $this->getTarget($context, $resource); - - if (!file_exists(dirname($target)) && false === mkdir(dirname($target))) { - throw new IOException(sprintf('Could not create parent directory %s', dirname($target))); - } - - if (false === file_put_contents($target, $data)) { - throw new IOException(sprintf('Could not write to %s', $target)); - } - - return $this; - } - - /** - * Returns the relative target of a Resource - * - * @param string $context - * @param ZippyResource $resource - * - * @return string - */ - protected function getTarget($context, ZippyResource $resource) - { - return sprintf('%s/%s', rtrim($context, '/'), $resource->getTarget()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/GenericTeleporter.php b/vendor/alchemy/zippy/src/Resource/Teleporter/GenericTeleporter.php deleted file mode 100644 index ed7b51b2b..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/GenericTeleporter.php +++ /dev/null @@ -1,60 +0,0 @@ -readerFactory = $readerFactory; - $this->resourceWriter = $resourceWriter; - $this->resourceLocator = $resourceLocator ?: new ResourceLocator(); - } - - /** - * Teleports a file from a destination to an other - * - * @param ZippyResource $resource A Resource - * @param string $context The current context - * - * @throws IOException when file could not be written on local - * @throws InvalidArgumentException when path to file is not valid - */ - public function teleport(ZippyResource $resource, $context) - { - $reader = $this->readerFactory->getReader($resource, $context); - $target = $this->resourceLocator->mapResourcePath($resource, $context); - - $this->resourceWriter->writeFromReader($reader, $target); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/GuzzleTeleporter.php b/vendor/alchemy/zippy/src/Resource/Teleporter/GuzzleTeleporter.php deleted file mode 100644 index b2e14cbe9..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/GuzzleTeleporter.php +++ /dev/null @@ -1,45 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource\Teleporter; - -use Alchemy\Zippy\Resource\Reader\Guzzle\GuzzleReaderFactory; -use Alchemy\Zippy\Resource\ResourceLocator; -use Alchemy\Zippy\Resource\ResourceReaderFactory; -use Alchemy\Zippy\Resource\Writer\FilesystemWriter; - -/** - * Guzzle Teleporter implementation for HTTP resources - * - * @deprecated Use \Alchemy\Zippy\Resource\GenericTeleporter instead. This class will be removed in v0.5.x - */ -class GuzzleTeleporter extends GenericTeleporter -{ - /** - * @param ResourceReaderFactory $readerFactory - * @param ResourceLocator $resourceLocator - */ - public function __construct(ResourceReaderFactory $readerFactory = null, ResourceLocator $resourceLocator = null) - { - parent::__construct($readerFactory ?: new GuzzleReaderFactory(), new FilesystemWriter(), $resourceLocator); - } - - /** - * Creates the GuzzleTeleporter - * - * @deprecated This method will be removed in v0.5.x - * @return GuzzleTeleporter - */ - public static function create() - { - return new static(); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/LegacyGuzzleTeleporter.php b/vendor/alchemy/zippy/src/Resource/Teleporter/LegacyGuzzleTeleporter.php deleted file mode 100644 index 4d604d5cd..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/LegacyGuzzleTeleporter.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource\Teleporter; - -use Alchemy\Zippy\Resource\Reader\Guzzle\LegacyGuzzleReaderFactory; -use Alchemy\Zippy\Resource\ResourceLocator; -use Alchemy\Zippy\Resource\ResourceReaderFactory; -use Alchemy\Zippy\Resource\Writer\FilesystemWriter; -use Guzzle\Http\Client; - -/** - * Guzzle Teleporter implementation for HTTP resources - * - * @deprecated Use \Alchemy\Zippy\Resource\GenericTeleporter instead. This class will be removed in v0.5.x - */ -class LegacyGuzzleTeleporter extends GenericTeleporter -{ - /** - * @param Client $client - * @param ResourceReaderFactory $readerFactory - * @param ResourceLocator $resourceLocator - */ - public function __construct( - Client $client = null, - ResourceReaderFactory $readerFactory = null, - ResourceLocator $resourceLocator = null - ) { - parent::__construct($readerFactory ?: new LegacyGuzzleReaderFactory($client), new FilesystemWriter(), - $resourceLocator); - } - - /** - * Creates the GuzzleTeleporter - * - * @deprecated - * @return LegacyGuzzleTeleporter - */ - public static function create() - { - return new static(); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/LocalTeleporter.php b/vendor/alchemy/zippy/src/Resource/Teleporter/LocalTeleporter.php deleted file mode 100644 index 2e3c5df7d..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/LocalTeleporter.php +++ /dev/null @@ -1,82 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource\Teleporter; - -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Alchemy\Zippy\Exception\IOException; -use Alchemy\Zippy\Resource\Resource as ZippyResource; -use Alchemy\Zippy\Resource\ResourceLocator; -use Symfony\Component\Filesystem\Exception\IOException as SfIOException; -use Symfony\Component\Filesystem\Filesystem; - -/** - * This class transports an object using the local filesystem - */ -class LocalTeleporter extends AbstractTeleporter -{ - /** - * @var Filesystem - */ - private $filesystem; - - /** - * @var ResourceLocator - */ - private $resourceLocator; - - /** - * Constructor - * - * @param Filesystem $filesystem - */ - public function __construct(Filesystem $filesystem) - { - $this->filesystem = $filesystem; - $this->resourceLocator = new ResourceLocator(); - } - - /** - * {@inheritdoc} - */ - public function teleport(ZippyResource $resource, $context) - { - $target = $this->resourceLocator->mapResourcePath($resource, $context); - $path = $resource->getOriginal(); - - if (!file_exists($path)) { - throw new InvalidArgumentException(sprintf('Invalid path %s', $path)); - } - - try { - if (is_file($path)) { - $this->filesystem->copy($path, $target); - } elseif (is_dir($path)) { - $this->filesystem->mirror($path, $target); - } else { - throw new InvalidArgumentException(sprintf('Invalid file or directory %s', $path)); - } - } catch (SfIOException $e) { - throw new IOException(sprintf('Could not write %s', $target), $e->getCode(), $e); - } - } - - /** - * Creates the LocalTeleporter - * - * @return LocalTeleporter - * @deprecated This method will be removed in a future release (0.5.x) - */ - public static function create() - { - return new static(new Filesystem()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/StreamTeleporter.php b/vendor/alchemy/zippy/src/Resource/Teleporter/StreamTeleporter.php deleted file mode 100644 index 8b964ad97..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/StreamTeleporter.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource\Teleporter; - -use Alchemy\Zippy\Resource\Reader\Stream\StreamReaderFactory; -use Alchemy\Zippy\Resource\ResourceLocator; -use Alchemy\Zippy\Resource\Writer\StreamWriter; - -/** - * This class transport an object using php stream wrapper - */ -class StreamTeleporter extends GenericTeleporter -{ - public function __construct() - { - parent::__construct(new StreamReaderFactory(), new StreamWriter(), new ResourceLocator()); - } - - /** - * Creates the StreamTeleporter - * - * @return StreamTeleporter - * @deprecated This method will be removed in a future release (0.5.x) - */ - public static function create() - { - return new static(); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Teleporter/TeleporterInterface.php b/vendor/alchemy/zippy/src/Resource/Teleporter/TeleporterInterface.php deleted file mode 100644 index afc2d043f..000000000 --- a/vendor/alchemy/zippy/src/Resource/Teleporter/TeleporterInterface.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource\Teleporter; - -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Alchemy\Zippy\Exception\IOException; -use Alchemy\Zippy\Resource\Resource as ZippyResource; - -interface TeleporterInterface -{ - /** - * Teleports a file from a destination to an other - * - * @param ZippyResource $resource A Resource - * @param string $context The current context - * - * @throws IOException when file could not be written on local - * @throws InvalidArgumentException when path to file is not valid - */ - public function teleport(ZippyResource $resource, $context); -} diff --git a/vendor/alchemy/zippy/src/Resource/TeleporterContainer.php b/vendor/alchemy/zippy/src/Resource/TeleporterContainer.php deleted file mode 100644 index 57ddfdfe0..000000000 --- a/vendor/alchemy/zippy/src/Resource/TeleporterContainer.php +++ /dev/null @@ -1,189 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy\Resource; - -use Alchemy\Zippy\Exception\InvalidArgumentException; -use Alchemy\Zippy\Resource\Reader\Guzzle\GuzzleReaderFactory; -use Alchemy\Zippy\Resource\Reader\Guzzle\LegacyGuzzleReaderFactory; -use Alchemy\Zippy\Resource\Resource as ZippyResource; -use Alchemy\Zippy\Resource\Teleporter\GenericTeleporter; -use Alchemy\Zippy\Resource\Teleporter\LocalTeleporter; -use Alchemy\Zippy\Resource\Teleporter\StreamTeleporter; -use Alchemy\Zippy\Resource\Teleporter\TeleporterInterface; -use Alchemy\Zippy\Resource\Writer\FilesystemWriter; -use Symfony\Component\Filesystem\Filesystem; - -/** - * A container of TeleporterInterface - */ -class TeleporterContainer implements \ArrayAccess, \Countable -{ - /** - * @var TeleporterInterface[] - */ - private $teleporters = array(); - - /** - * @var callable[] - */ - private $factories = array(); - - /** - * Returns the appropriate TeleporterInterface for a given Resource - * - * @param ZippyResource $resource - * - * @return TeleporterInterface - */ - public function fromResource(ZippyResource $resource) - { - switch (true) { - case is_resource($resource->getOriginal()): - $teleporter = 'stream-teleporter'; - break; - case is_string($resource->getOriginal()): - $data = parse_url($resource->getOriginal()); - - if (!isset($data['scheme']) || 'file' === $data['scheme']) { - $teleporter = 'local-teleporter'; - } elseif (in_array($data['scheme'], array('http', 'https')) && isset($this->factories['guzzle-teleporter'])) { - $teleporter = 'guzzle-teleporter'; - } else { - $teleporter = 'stream-teleporter'; - } - break; - default: - throw new InvalidArgumentException('No teleporter found'); - } - - return $this->getTeleporter($teleporter); - } - - private function getTeleporter($typeName) - { - if (!isset($this->teleporters[$typeName])) { - $factory = $this->factories[$typeName]; - $this->teleporters[$typeName] = $factory(); - } - - return $this->teleporters[$typeName]; - } - - /** - * Instantiates TeleporterContainer and register default teleporters - * - * @return TeleporterContainer - */ - public static function load() - { - $container = new static(); - - $container->factories['stream-teleporter'] = function () { - return new StreamTeleporter(); - }; - - $container->factories['local-teleporter'] = function () { - return new LocalTeleporter(new Filesystem()); - }; - - if (class_exists('GuzzleHttp\Client')) { - $container->factories['guzzle-teleporter'] = function () { - return new GenericTeleporter( - new GuzzleReaderFactory(), - new FilesystemWriter(), - new ResourceLocator() - ); - }; - } - elseif (class_exists('Guzzle\Http\Client')) { - $container->factories['guzzle-teleporter'] = function () { - return new GenericTeleporter( - new LegacyGuzzleReaderFactory(), - new FilesystemWriter(), - new ResourceLocator() - ); - }; - } - - return $container; - } - - /** - * (PHP 5 >= 5.0.0)- * An offset to check for. - *
- * - * @return bool true on success or false on failure. - * - *
- * The return value will be casted to boolean if non-boolean was returned.
- */
- public function offsetExists($offset)
- {
- return isset($this->teleporters[$offset]);
- }
-
- /**
- * (PHP 5 >= 5.0.0)
- * Offset to retrieve
- * @link http://php.net/manual/en/arrayaccess.offsetget.php
- * @param mixed $offset
- * The offset to retrieve. - *
- * @return mixed Can return all value types. - */ - public function offsetGet($offset) - { - return $this->getTeleporter($offset); - } - - /** - * (PHP 5 >= 5.0.0)- * The offset to assign the value to. - *
- * @param mixed $value- * The value to set. - *
- * @return void - */ - public function offsetSet($offset, $value) - { - throw new \BadMethodCallException(); - } - - /** - * (PHP 5 >= 5.0.0)- * The offset to unset. - *
- * @return void - */ - public function offsetUnset($offset) - { - throw new \BadMethodCallException(); - } - - public function count() - { - return count($this->teleporters); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Writer/FilesystemWriter.php b/vendor/alchemy/zippy/src/Resource/Writer/FilesystemWriter.php deleted file mode 100644 index 2bba475df..000000000 --- a/vendor/alchemy/zippy/src/Resource/Writer/FilesystemWriter.php +++ /dev/null @@ -1,23 +0,0 @@ -getContentsAsStream()); - } -} diff --git a/vendor/alchemy/zippy/src/Resource/Writer/StreamWriter.php b/vendor/alchemy/zippy/src/Resource/Writer/StreamWriter.php deleted file mode 100644 index d5780c92c..000000000 --- a/vendor/alchemy/zippy/src/Resource/Writer/StreamWriter.php +++ /dev/null @@ -1,27 +0,0 @@ -getContentsAsStream(); - - stream_copy_to_stream($sourceResource, $targetResource); - fclose($targetResource); - } -} diff --git a/vendor/alchemy/zippy/src/Zippy.php b/vendor/alchemy/zippy/src/Zippy.php deleted file mode 100644 index 70defe997..000000000 --- a/vendor/alchemy/zippy/src/Zippy.php +++ /dev/null @@ -1,220 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Alchemy\Zippy; - -use Alchemy\Zippy\Adapter\AdapterContainer; -use Alchemy\Zippy\Adapter\AdapterInterface; -use Alchemy\Zippy\Archive\ArchiveInterface; -use Alchemy\Zippy\Exception\ExceptionInterface; -use Alchemy\Zippy\Exception\FormatNotSupportedException; -use Alchemy\Zippy\Exception\NoAdapterOnPlatformException; -use Alchemy\Zippy\Exception\RuntimeException; -use Alchemy\Zippy\FileStrategy\FileStrategyInterface; -use Alchemy\Zippy\FileStrategy\TarBz2FileStrategy; -use Alchemy\Zippy\FileStrategy\TarFileStrategy; -use Alchemy\Zippy\FileStrategy\TarGzFileStrategy; -use Alchemy\Zippy\FileStrategy\TB2FileStrategy; -use Alchemy\Zippy\FileStrategy\TBz2FileStrategy; -use Alchemy\Zippy\FileStrategy\TGzFileStrategy; -use Alchemy\Zippy\FileStrategy\ZipFileStrategy; - -class Zippy -{ - /** - * @var AdapterContainer - */ - public $adapters; - - /** - * @var FileStrategyInterface[][] - */ - private $strategies = array(); - - public function __construct(AdapterContainer $adapters) - { - $this->adapters = $adapters; - } - - /** - * Creates an archive - * - * @param string $path - * @param string|array|\Traversable|null $files - * @param bool $recursive - * @param string|null $type - * - * @return ArchiveInterface - * - * @throws RuntimeException In case of failure - */ - public function create($path, $files = null, $recursive = true, $type = null) - { - if (null === $type) { - $type = $this->guessAdapterExtension($path); - } - - try { - return $this - ->getAdapterFor($this->sanitizeExtension($type)) - ->create($path, $files, $recursive); - } catch (ExceptionInterface $e) { - throw new RuntimeException('Unable to create archive', $e->getCode(), $e); - } - } - - /** - * Opens an archive. - * - * @param string $path - * - * @return ArchiveInterface - * - * @throws RuntimeException In case of failure - */ - public function open($path) - { - $type = $this->guessAdapterExtension($path); - - try { - return $this - ->getAdapterFor($this->sanitizeExtension($type)) - ->open($path); - } catch (ExceptionInterface $e) { - throw new RuntimeException('Unable to open archive', $e->getCode(), $e); - } - } - - /** - * Adds a strategy. - * - * The last strategy added is preferred over the other ones. - * You can add a strategy twice ; when doing this, the first one is removed - * when inserting the second one. - * - * @param FileStrategyInterface $strategy - * - * @return Zippy - */ - public function addStrategy(FileStrategyInterface $strategy) - { - $extension = $this->sanitizeExtension($strategy->getFileExtension()); - - if (!isset($this->strategies[$extension])) { - $this->strategies[$extension] = array(); - } - - if (false !== $key = array_search($strategy, $this->strategies[$extension], true)) { - unset($this->strategies[$extension][$key]); - } - - array_unshift($this->strategies[$extension], $strategy); - - return $this; - } - - /** - * Returns the strategies as they are stored - * - * @return array - */ - public function getStrategies() - { - return $this->strategies; - } - - /** - * Returns an adapter for a file extension - * - * @param string $extension The extension - * - * @return AdapterInterface - * - * @throws FormatNotSupportedException When no strategy is defined for this extension - * @throws NoAdapterOnPlatformException When no adapter is supported for this extension on this platform - */ - public function getAdapterFor($extension) - { - $extension = $this->sanitizeExtension($extension); - - if (!$extension || !isset($this->strategies[$extension])) { - throw new FormatNotSupportedException(sprintf('No strategy for %s extension', $extension)); - } - - foreach ($this->strategies[$extension] as $strategy) { - foreach ($strategy->getAdapters() as $adapter) { - if ($adapter->isSupported()) { - return $adapter; - } - } - } - - throw new NoAdapterOnPlatformException(sprintf('No adapter available for %s on this platform', $extension)); - } - - /** - * Creates Zippy and loads default strategies - * - * @return Zippy - */ - public static function load() - { - $adapters = AdapterContainer::load(); - $factory = new static($adapters); - - $factory->addStrategy(new ZipFileStrategy($adapters)); - $factory->addStrategy(new TarFileStrategy($adapters)); - $factory->addStrategy(new TarGzFileStrategy($adapters)); - $factory->addStrategy(new TarBz2FileStrategy($adapters)); - $factory->addStrategy(new TB2FileStrategy($adapters)); - $factory->addStrategy(new TBz2FileStrategy($adapters)); - $factory->addStrategy(new TGzFileStrategy($adapters)); - - return $factory; - } - - /** - * Sanitize an extension. - * - * Strips dot from the beginning, converts to lowercase and remove trailing - * whitespaces - * - * @param string $extension - * - * @return string - */ - private function sanitizeExtension($extension) - { - return ltrim(trim(mb_strtolower($extension)), '.'); - } - - /** - * Finds an extension that has strategy registered given a file path - * - * Returns null if no matching strategy found. - * - * @param string $path - * - * @return string|null - */ - private function guessAdapterExtension($path) - { - $path = strtolower(trim($path)); - - foreach ($this->strategies as $extension => $strategy) { - if ($extension === substr($path, (strlen($extension) * -1))) { - return $extension; - } - } - - return null; - } -} diff --git a/vendor/asm89/stack-cors/LICENSE b/vendor/asm89/stack-cors/LICENSE deleted file mode 100644 index d9f2067d6..000000000 --- a/vendor/asm89/stack-cors/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2013-2017 Alexander -
-
- ',
- 'filter_html_help' => 1,
- 'filter_html_nofollow' => 0,
- ),
- 'tips callback' => '_filter_html_tips',
- );
- $filters['filter_autop'] = array(
- 'title' => t('Convert line breaks'),
- 'description' => t('Converts line breaks into HTML (i.e. <br> and <p>) tags.'),
- 'process callback' => '_filter_autop',
- 'tips callback' => '_filter_autop_tips',
- );
- return $filters;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/filter_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/filter_info_alter.twig
deleted file mode 100644
index 008b37531..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/filter_info_alter.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_filter_info_alter().
- */
-function {{ machine_name }}_filter_info_alter(&$info) {
- // Replace the PHP evaluator process callback with an improved
- // PHP evaluator provided by a module.
- $info['php_code']['process callback'] = 'my_module_php_evaluator';
-
- // Alter the default settings of the URL filter provided by core.
- $info['filter_url']['default settings'] = array(
- 'filter_url_length' => 100,
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/flush_caches.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/flush_caches.twig
deleted file mode 100644
index 080b0fed8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/flush_caches.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_flush_caches().
- */
-function {{ machine_name }}_flush_caches() {
- return array('cache_example');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form.twig
deleted file mode 100644
index 9173771c2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form.twig
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Implements hook_form().
- */
-function {{ machine_name }}_form($node, &$form_state) {
- $type = node_type_get_type($node);
-
- $form['title'] = array(
- '#type' => 'textfield',
- '#title' => check_plain($type->title_label),
- '#default_value' => !empty($node->title) ? $node->title : '',
- '#required' => TRUE, '#weight' => -5
- );
-
- $form['field1'] = array(
- '#type' => 'textfield',
- '#title' => t('Custom field'),
- '#default_value' => $node->field1,
- '#maxlength' => 127,
- );
- $form['selectbox'] = array(
- '#type' => 'select',
- '#title' => t('Select box'),
- '#default_value' => $node->selectbox,
- '#options' => array(
- 1 => 'Option A',
- 2 => 'Option B',
- 3 => 'Option C',
- ),
- '#description' => t('Choose an option.'),
- );
-
- return $form;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_BASE_FORM_ID_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_BASE_FORM_ID_alter.twig
deleted file mode 100644
index 75d51c4e7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_BASE_FORM_ID_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_form_BASE_FORM_ID_alter().
- */
-function {{ machine_name }}_form_BASE_FORM_ID_alter(&$form, &$form_state, $form_id) {
- // Modification for the form with the given BASE_FORM_ID goes here. For
- // example, if BASE_FORM_ID is "node_form", this code would run on every
- // node form, regardless of node type.
-
- // Add a checkbox to the node form about agreeing to terms of use.
- $form['terms_of_use'] = array(
- '#type' => 'checkbox',
- '#title' => t("I agree with the website's terms and conditions."),
- '#required' => TRUE,
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_FORM_ID_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_FORM_ID_alter.twig
deleted file mode 100644
index 25de86904..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_FORM_ID_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_form_FORM_ID_alter().
- */
-function {{ machine_name }}_form_FORM_ID_alter(&$form, &$form_state, $form_id) {
- // Modification for the form with the given form ID goes here. For example, if
- // FORM_ID is "user_register_form" this code would run only on the user
- // registration form.
-
- // Add a checkbox to registration form about agreeing to terms of use.
- $form['terms_of_use'] = array(
- '#type' => 'checkbox',
- '#title' => t("I agree with the website's terms and conditions."),
- '#required' => TRUE,
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_alter.twig
deleted file mode 100644
index 2eca12a64..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_alter.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_form_alter().
- */
-function {{ machine_name }}_form_alter(&$form, &$form_state, $form_id) {
- if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
- $form['workflow']['upload_' . $form['type']['#value']] = array(
- '#type' => 'radios',
- '#title' => t('Attachments'),
- '#default_value' => variable_get('upload_' . $form['type']['#value'], 1),
- '#options' => array(t('Disabled'), t('Enabled')),
- );
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_system_theme_settings_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_system_theme_settings_alter.twig
deleted file mode 100644
index bc011c3dc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/form_system_theme_settings_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_form_system_theme_settings_alter().
- */
-function {{ machine_name }}_form_system_theme_settings_alter(&$form, &$form_state) {
- // Add a checkbox to toggle the breadcrumb trail.
- $form['toggle_breadcrumb'] = array(
- '#type' => 'checkbox',
- '#title' => t('Display the breadcrumb'),
- '#default_value' => theme_get_setting('toggle_breadcrumb'),
- '#description' => t('Show a trail of links from the homepage to the current page.'),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/forms.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/forms.twig
deleted file mode 100644
index d26a23af1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/forms.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Implements hook_forms().
- */
-function {{ machine_name }}_forms($form_id, $args) {
- // Simply reroute the (non-existing) $form_id 'mymodule_first_form' to
- // 'mymodule_main_form'.
- $forms['mymodule_first_form'] = array(
- 'callback' => 'mymodule_main_form',
- );
-
- // Reroute the $form_id and prepend an additional argument that gets passed to
- // the 'mymodule_main_form' form builder function.
- $forms['mymodule_second_form'] = array(
- 'callback' => 'mymodule_main_form',
- 'callback arguments' => array('some parameter'),
- );
-
- // Reroute the $form_id, but invoke the form builder function
- // 'mymodule_main_form_wrapper' first, so we can prepopulate the $form array
- // that is passed to the actual form builder 'mymodule_main_form'.
- $forms['mymodule_wrapped_form'] = array(
- 'callback' => 'mymodule_main_form',
- 'wrapper_callback' => 'mymodule_main_form_wrapper',
- );
-
- // Build a form with a static class callback.
- $forms['mymodule_class_generated_form'] = array(
- // This will call: MyClass::generateMainForm().
- 'callback' => array('MyClass', 'generateMainForm'),
- // The base_form_id is required when the callback is a static function in
- // a class. This can also be used to keep newer code backwards compatible.
- 'base_form_id' => 'mymodule_main_form',
- );
-
- return $forms;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/help.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/help.twig
deleted file mode 100644
index 48d1c4f13..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/help.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_help().
- */
-function {{ machine_name }}_help($path, $arg) {
- switch ($path) {
- // Main module help for the block module
- case 'admin/help#block':
- return '
' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The blocks administration page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', array('@blocks' => url('admin/structure/block'))) . '
';
-
- // Help for another path in the block module
- case 'admin/structure/block':
- return '' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the Save blocks button at the bottom of the page.') . '
';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/hook_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/hook_info.twig
deleted file mode 100644
index 00136a6f8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/hook_info.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_hook_info().
- */
-function {{ machine_name }}_hook_info() {
- $hooks['token_info'] = array(
- 'group' => 'tokens',
- );
- $hooks['tokens'] = array(
- 'group' => 'tokens',
- );
- return $hooks;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/hook_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/hook_info_alter.twig
deleted file mode 100644
index 997cb9cba..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/hook_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_hook_info_alter().
- */
-function {{ machine_name }}_hook_info_alter(&$hooks) {
- // Our module wants to completely override the core tokens, so make
- // sure the core token hooks are not found.
- $hooks['token_info']['group'] = 'mytokens';
- $hooks['tokens']['group'] = 'mytokens';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/html_head_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/html_head_alter.twig
deleted file mode 100644
index b931d6e79..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/html_head_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_html_head_alter().
- */
-function {{ machine_name }}_html_head_alter(&$head_elements) {
- foreach ($head_elements as $key => $element) {
- if (isset($element['#attributes']['rel']) && $element['#attributes']['rel'] == 'canonical') {
- // I want a custom canonical URL.
- $head_elements[$key]['#attributes']['href'] = mymodule_canonical_url();
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_default_styles.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_default_styles.twig
deleted file mode 100644
index 8c447241b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_default_styles.twig
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Implements hook_image_default_styles().
- */
-function {{ machine_name }}_image_default_styles() {
- $styles = array();
-
- $styles['mymodule_preview'] = array(
- 'label' => 'My module preview',
- 'effects' => array(
- array(
- 'name' => 'image_scale',
- 'data' => array('width' => 400, 'height' => 400, 'upscale' => 1),
- 'weight' => 0,
- ),
- array(
- 'name' => 'image_desaturate',
- 'data' => array(),
- 'weight' => 1,
- ),
- ),
- );
-
- return $styles;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_effect_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_effect_info.twig
deleted file mode 100644
index cb8e9b636..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_effect_info.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_image_effect_info().
- */
-function {{ machine_name }}_image_effect_info() {
- $effects = array();
-
- $effects['mymodule_resize'] = array(
- 'label' => t('Resize'),
- 'help' => t('Resize an image to an exact set of dimensions, ignoring aspect ratio.'),
- 'effect callback' => 'mymodule_resize_effect',
- 'dimensions callback' => 'mymodule_resize_dimensions',
- 'form callback' => 'mymodule_resize_form',
- 'summary theme' => 'mymodule_resize_summary',
- );
-
- return $effects;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_effect_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_effect_info_alter.twig
deleted file mode 100644
index 80dc5ade0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_effect_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_image_effect_info_alter().
- */
-function {{ machine_name }}_image_effect_info_alter(&$effects) {
- // Override the Image module's crop effect with more options.
- $effects['image_crop']['effect callback'] = 'mymodule_crop_effect';
- $effects['image_crop']['dimensions callback'] = 'mymodule_crop_dimensions';
- $effects['image_crop']['form callback'] = 'mymodule_crop_form';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_delete.twig
deleted file mode 100644
index 541fb18a4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_delete.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_image_style_delete().
- */
-function {{ machine_name }}_image_style_delete($style) {
- // Administrators can choose an optional replacement style when deleting.
- // Update the modules style variable accordingly.
- if (isset($style['old_name']) && $style['old_name'] == variable_get('mymodule_image_style', '')) {
- variable_set('mymodule_image_style', $style['name']);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig
deleted file mode 100644
index e561bb681..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_flush.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_image_style_flush().
- */
-function {{ machine_name }}_image_style_flush($style) {
- // Empty cached data that contains information about the style.
- cache_clear_all('*', 'cache_mymodule', TRUE);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_save.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_save.twig
deleted file mode 100644
index b489997b3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_style_save.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_image_style_save().
- */
-function {{ machine_name }}_image_style_save($style) {
- // If a module defines an image style and that style is renamed by the user
- // the module should update any references to that style.
- if (isset($style['old_name']) && $style['old_name'] == variable_get('mymodule_image_style', '')) {
- variable_set('mymodule_image_style', $style['name']);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_styles_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_styles_alter.twig
deleted file mode 100644
index 0ee5ecda5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_styles_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_image_styles_alter().
- */
-function {{ machine_name }}_image_styles_alter(&$styles) {
- // Check that we only affect a default style.
- if ($styles['thumbnail']['storage'] == IMAGE_STORAGE_DEFAULT) {
- // Add an additional effect to the thumbnail style.
- $styles['thumbnail']['effects'][] = array(
- 'name' => 'image_desaturate',
- 'data' => array(),
- 'weight' => 1,
- 'effect callback' => 'image_desaturate_effect',
- );
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_toolkits.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_toolkits.twig
deleted file mode 100644
index 47aa8630e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/image_toolkits.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_image_toolkits().
- */
-function {{ machine_name }}_image_toolkits() {
- return array(
- 'working' => array(
- 'title' => t('A toolkit that works.'),
- 'available' => TRUE,
- ),
- 'broken' => array(
- 'title' => t('A toolkit that is "broken" and will not be listed.'),
- 'available' => FALSE,
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/info_alter.twig
deleted file mode 100644
index 997cb9cba..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_hook_info_alter().
- */
-function {{ machine_name }}_hook_info_alter(&$hooks) {
- // Our module wants to completely override the core tokens, so make
- // sure the core token hooks are not found.
- $hooks['token_info']['group'] = 'mytokens';
- $hooks['tokens']['group'] = 'mytokens';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/init.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/init.twig
deleted file mode 100644
index 98cbebc4d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/init.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_init().
- */
-function {{ machine_name }}_init() {
- // Since this file should only be loaded on the front page, it cannot be
- // declared in the info file.
- if (drupal_is_front_page()) {
- drupal_add_css(drupal_get_path('module', 'foo') . '/foo.css');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/insert.twig
deleted file mode 100644
index 70fb0fb4c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_insert().
- */
-function {{ machine_name }}_insert($node) {
- db_insert('mytable')
- ->fields(array(
- 'nid' => $node->nid,
- 'extra' => $node->extra,
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install.twig
deleted file mode 100644
index ba2007b1d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_install().
- */
-function {{ machine_name }}_install() {
- // Populate the default {node_access} record.
- db_insert('node_access')
- ->fields(array(
- 'nid' => 0,
- 'gid' => 0,
- 'realm' => 'all',
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install_tasks.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install_tasks.twig
deleted file mode 100644
index d25595727..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install_tasks.twig
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Implements hook_install_tasks().
- */
-function {{ machine_name }}_install_tasks(&$install_state) {
- // Here, we define a variable to allow tasks to indicate that a particular,
- // processor-intensive batch process needs to be triggered later on in the
- // installation.
- $myprofile_needs_batch_processing = variable_get('myprofile_needs_batch_processing', FALSE);
- $tasks = array(
- // This is an example of a task that defines a form which the user who is
- // installing the site will be asked to fill out. To implement this task,
- // your profile would define a function named myprofile_data_import_form()
- // as a normal form API callback function, with associated validation and
- // submit handlers. In the submit handler, in addition to saving whatever
- // other data you have collected from the user, you might also call
- // variable_set('myprofile_needs_batch_processing', TRUE) if the user has
- // entered data which requires that batch processing will need to occur
- // later on.
- 'myprofile_data_import_form' => array(
- 'display_name' => st('Data import options'),
- 'type' => 'form',
- ),
- // Similarly, to implement this task, your profile would define a function
- // named myprofile_settings_form() with associated validation and submit
- // handlers. This form might be used to collect and save additional
- // information from the user that your profile needs. There are no extra
- // steps required for your profile to act as an "installation wizard"; you
- // can simply define as many tasks of type 'form' as you wish to execute,
- // and the forms will be presented to the user, one after another.
- 'myprofile_settings_form' => array(
- 'display_name' => st('Additional options'),
- 'type' => 'form',
- ),
- // This is an example of a task that performs batch operations. To
- // implement this task, your profile would define a function named
- // myprofile_batch_processing() which returns a batch API array definition
- // that the installer will use to execute your batch operations. Due to the
- // 'myprofile_needs_batch_processing' variable used here, this task will be
- // hidden and skipped unless your profile set it to TRUE in one of the
- // previous tasks.
- 'myprofile_batch_processing' => array(
- 'display_name' => st('Import additional data'),
- 'display' => $myprofile_needs_batch_processing,
- 'type' => 'batch',
- 'run' => $myprofile_needs_batch_processing ? INSTALL_TASK_RUN_IF_NOT_COMPLETED : INSTALL_TASK_SKIP,
- ),
- // This is an example of a task that will not be displayed in the list that
- // the user sees. To implement this task, your profile would define a
- // function named myprofile_final_site_setup(), in which additional,
- // automated site setup operations would be performed. Since this is the
- // last task defined by your profile, you should also use this function to
- // call variable_del('myprofile_needs_batch_processing') and clean up the
- // variable that was used above. If you want the user to pass to the final
- // Drupal installation tasks uninterrupted, return no output from this
- // function. Otherwise, return themed output that the user will see (for
- // example, a confirmation page explaining that your profile's tasks are
- // complete, with a link to reload the current page and therefore pass on
- // to the final Drupal installation tasks when the user is ready to do so).
- 'myprofile_final_site_setup' => array(
- ),
- );
- return $tasks;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install_tasks_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install_tasks_alter.twig
deleted file mode 100644
index ee6dec7b1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/install_tasks_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_install_tasks_alter().
- */
-function {{ machine_name }}_install_tasks_alter(&$tasks, $install_state) {
- // Replace the "Choose language" installation task provided by Drupal core
- // with a custom callback function defined by this installation profile.
- $tasks['install_select_locale']['function'] = 'myprofile_locale_selection';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/js_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/js_alter.twig
deleted file mode 100644
index 77dcde889..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/js_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_js_alter().
- */
-function {{ machine_name }}_js_alter(&$javascript) {
- // Swap out jQuery to use an updated version of the library.
- $javascript['misc/jquery.js']['data'] = drupal_get_path('module', 'jquery_update') . '/jquery.js';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_fallback_candidates_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_fallback_candidates_alter.twig
deleted file mode 100644
index c9ddee135..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_fallback_candidates_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_language_fallback_candidates_alter().
- */
-function {{ machine_name }}_language_fallback_candidates_alter(array &$fallback_candidates) {
- $fallback_candidates = array_reverse($fallback_candidates);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_init.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_init.twig
deleted file mode 100644
index 6f416d387..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_init.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_language_init().
- */
-function {{ machine_name }}_language_init() {
- global $language, $conf;
-
- switch ($language->language) {
- case 'it':
- $conf['site_name'] = 'Il mio sito Drupal';
- break;
-
- case 'fr':
- $conf['site_name'] = 'Mon site Drupal';
- break;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_negotiation_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_negotiation_info.twig
deleted file mode 100644
index 3e346bd13..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_negotiation_info.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Implements hook_language_negotiation_info().
- */
-function {{ machine_name }}_language_negotiation_info() {
- return array(
- 'custom_language_provider' => array(
- 'callbacks' => array(
- 'language' => 'custom_language_provider_callback',
- 'switcher' => 'custom_language_switcher_callback',
- 'url_rewrite' => 'custom_language_url_rewrite_callback',
- ),
- 'file' => drupal_get_path('module', 'custom') . '/custom.module',
- 'weight' => -4,
- 'types' => array('custom_language_type'),
- 'name' => t('Custom language negotiation provider'),
- 'description' => t('This is a custom language negotiation provider.'),
- 'cache' => 0,
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_negotiation_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_negotiation_info_alter.twig
deleted file mode 100644
index 6b1c412d7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_negotiation_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_language_negotiation_info_alter().
- */
-function {{ machine_name }}_language_negotiation_info_alter(array &$language_providers) {
- if (isset($language_providers['custom_language_provider'])) {
- $language_providers['custom_language_provider']['config'] = 'admin/config/regional/language/configure/custom-language-provider';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_switch_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_switch_links_alter.twig
deleted file mode 100644
index 66d7a3e42..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_switch_links_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_language_switch_links_alter().
- */
-function {{ machine_name }}_language_switch_links_alter(array &$links, $type, $path) {
- global $language;
-
- if ($type == LANGUAGE_TYPE_CONTENT && isset($links[$language->language])) {
- foreach ($links[$language->language] as $link) {
- $link['attributes']['class'][] = 'active-language';
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_types_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_types_info.twig
deleted file mode 100644
index b69538b10..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_types_info.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_language_types_info().
- */
-function {{ machine_name }}_language_types_info() {
- return array(
- 'custom_language_type' => array(
- 'name' => t('Custom language'),
- 'description' => t('A custom language type.'),
- ),
- 'fixed_custom_language_type' => array(
- 'fixed' => array('custom_language_provider'),
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_types_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_types_info_alter.twig
deleted file mode 100644
index 06e599f90..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/language_types_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_language_types_info_alter().
- */
-function {{ machine_name }}_language_types_info_alter(array &$language_types) {
- if (isset($language_types['custom_language_type'])) {
- $language_types['custom_language_type_custom']['description'] = t('A far better description.');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/library.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/library.twig
deleted file mode 100644
index 508c0b951..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/library.twig
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Implements hook_library().
- */
-function {{ machine_name }}_library() {
- // Library One.
- $libraries['library-1'] = array(
- 'title' => 'Library One',
- 'website' => 'http://example.com/library-1',
- 'version' => '1.2',
- 'js' => array(
- drupal_get_path('module', 'my_module') . '/library-1.js' => array(),
- ),
- 'css' => array(
- drupal_get_path('module', 'my_module') . '/library-2.css' => array(
- 'type' => 'file',
- 'media' => 'screen',
- ),
- ),
- );
- // Library Two.
- $libraries['library-2'] = array(
- 'title' => 'Library Two',
- 'website' => 'http://example.com/library-2',
- 'version' => '3.1-beta1',
- 'js' => array(
- // JavaScript settings may use the 'data' key.
- array(
- 'type' => 'setting',
- 'data' => array('library2' => TRUE),
- ),
- ),
- 'dependencies' => array(
- // Require jQuery UI core by System module.
- array('system', 'ui'),
- // Require our other library.
- array('my_module', 'library-1'),
- // Require another library.
- array('other_module', 'library-3'),
- ),
- );
- return $libraries;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/library_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/library_alter.twig
deleted file mode 100644
index 492ffb645..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/library_alter.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_library_alter().
- */
-function {{ machine_name }}_library_alter(&$libraries, $module) {
- // Update Farbtastic to version 2.0.
- if ($module == 'system' && isset($libraries['farbtastic'])) {
- // Verify existing version is older than the one we are updating to.
- if (version_compare($libraries['farbtastic']['version'], '2.0', '<')) {
- // Update the existing Farbtastic to version 2.0.
- $libraries['farbtastic']['version'] = '2.0';
- $libraries['farbtastic']['js'] = array(
- drupal_get_path('module', 'farbtastic_update') . '/farbtastic-2.0.js' => array(),
- );
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/load.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/load.twig
deleted file mode 100644
index 2e6febbae..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/load.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_load().
- */
-function {{ machine_name }}_load($nodes) {
- $result = db_query('SELECT nid, foo FROM {mytable} WHERE nid IN (:nids)', array(':nids' => array_keys($nodes)));
- foreach ($result as $record) {
- $nodes[$record->nid]->foo = $record->foo;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/locale.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/locale.twig
deleted file mode 100644
index 9ad9bc19c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/locale.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_locale().
- */
-function {{ machine_name }}_locale($op = 'groups') {
- switch ($op) {
- case 'groups':
- return array('custom' => t('Custom'));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/mail.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/mail.twig
deleted file mode 100644
index 84b056691..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/mail.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Implements hook_mail().
- */
-function {{ machine_name }}_mail($key, &$message, $params) {
- $account = $params['account'];
- $context = $params['context'];
- $variables = array(
- '%site_name' => variable_get('site_name', 'Drupal'),
- '%username' => format_username($account),
- );
- if ($context['hook'] == 'taxonomy') {
- $entity = $params['entity'];
- $vocabulary = taxonomy_vocabulary_load($entity->vid);
- $variables += array(
- '%term_name' => $entity->name,
- '%term_description' => $entity->description,
- '%term_id' => $entity->tid,
- '%vocabulary_name' => $vocabulary->name,
- '%vocabulary_description' => $vocabulary->description,
- '%vocabulary_id' => $vocabulary->vid,
- );
- }
-
- // Node-based variable translation is only available if we have a node.
- if (isset($params['node'])) {
- $node = $params['node'];
- $variables += array(
- '%uid' => $node->uid,
- '%node_url' => url('node/' . $node->nid, array('absolute' => TRUE)),
- '%node_type' => node_type_get_name($node),
- '%title' => $node->title,
- '%teaser' => $node->teaser,
- '%body' => $node->body,
- );
- }
- $subject = strtr($context['subject'], $variables);
- $body = strtr($context['message'], $variables);
- $message['subject'] .= str_replace(array("\r", "\n"), '', $subject);
- $message['body'][] = drupal_html_to_text($body);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/mail_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/mail_alter.twig
deleted file mode 100644
index e476e64c4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/mail_alter.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_mail_alter().
- */
-function {{ machine_name }}_mail_alter(&$message) {
- if ($message['id'] == 'modulename_messagekey') {
- if (!example_notifications_optin($message['to'], $message['id'])) {
- // If the recipient has opted to not receive such messages, cancel
- // sending.
- $message['send'] = FALSE;
- return;
- }
- $message['body'][] = "--\nMail sent out from " . variable_get('site_name', t('Drupal'));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu.twig
deleted file mode 100644
index 871bcfb31..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Implements hook_menu().
- */
-function {{ machine_name }}_menu() {
- $items['example'] = array(
- 'title' => 'Example Page',
- 'page callback' => 'example_page',
- 'access arguments' => array('access content'),
- 'type' => MENU_SUGGESTED_ITEM,
- );
- $items['example/feed'] = array(
- 'title' => 'Example RSS feed',
- 'page callback' => 'example_feed',
- 'access arguments' => array('access content'),
- 'type' => MENU_CALLBACK,
- );
-
- return $items;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_alter.twig
deleted file mode 100644
index 9ea6b2c86..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_menu_alter().
- */
-function {{ machine_name }}_menu_alter(&$items) {
- // Example - disable the page at node/add
- $items['node/add']['access callback'] = FALSE;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_breadcrumb_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_breadcrumb_alter.twig
deleted file mode 100644
index bef85eb22..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_breadcrumb_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_menu_breadcrumb_alter().
- */
-function {{ machine_name }}_menu_breadcrumb_alter(&$active_trail, $item) {
- // Always display a link to the current page by duplicating the last link in
- // the active trail. This means that menu_get_active_breadcrumb() will remove
- // the last link (for the current page), but since it is added once more here,
- // it will appear.
- if (!drupal_is_front_page()) {
- $end = end($active_trail);
- if ($item['href'] == $end['href']) {
- $active_trail[] = $end;
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_contextual_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_contextual_links_alter.twig
deleted file mode 100644
index 21c365e30..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_contextual_links_alter.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_menu_contextual_links_alter().
- */
-function {{ machine_name }}_menu_contextual_links_alter(&$links, $router_item, $root_path) {
- // Add a link to all contextual links for nodes.
- if ($root_path == 'node/%') {
- $links['foo'] = array(
- 'title' => t('Do fu'),
- 'href' => 'foo/do',
- 'localized_options' => array(
- 'query' => array(
- 'foo' => 'bar',
- ),
- ),
- );
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_delete.twig
deleted file mode 100644
index b59b77c2e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_delete.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_menu_delete().
- */
-function {{ machine_name }}_menu_delete($menu) {
- // Delete the record from our variable.
- $my_menus = variable_get('my_module_menus', array());
- unset($my_menus[$menu['menu_name']]);
- variable_set('my_module_menus', $my_menus);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_get_item_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_get_item_alter.twig
deleted file mode 100644
index d2c4925d9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_get_item_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_menu_get_item_alter().
- */
-function {{ machine_name }}_menu_get_item_alter(&$router_item, $path, $original_map) {
- // When retrieving the router item for the current path...
- if ($path == $_GET['q']) {
- // ...call a function that prepares something for this request.
- mymodule_prepare_something();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_insert.twig
deleted file mode 100644
index 658e177c5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_insert.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_menu_insert().
- */
-function {{ machine_name }}_menu_insert($menu) {
- // For example, we track available menus in a variable.
- $my_menus = variable_get('my_module_menus', array());
- $my_menus[$menu['menu_name']] = $menu['menu_name'];
- variable_set('my_module_menus', $my_menus);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_alter.twig
deleted file mode 100644
index f3e95805c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_alter.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Implements hook_menu_link_alter().
- */
-function {{ machine_name }}_menu_link_alter(&$item) {
- // Make all new admin links hidden (a.k.a disabled).
- if (strpos($item['link_path'], 'admin') === 0 && empty($item['mlid'])) {
- $item['hidden'] = 1;
- }
- // Flag a link to be altered by hook_translated_menu_link_alter().
- if ($item['link_path'] == 'devel/cache/clear') {
- $item['options']['alter'] = TRUE;
- }
- // Flag a link to be altered by hook_translated_menu_link_alter(), but only
- // if it is derived from a menu router item; i.e., do not alter a custom
- // menu link pointing to the same path that has been created by a user.
- if ($item['link_path'] == 'user' && $item['module'] == 'system') {
- $item['options']['alter'] = TRUE;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_delete.twig
deleted file mode 100644
index 5e1ff92f1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_delete.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_menu_link_delete().
- */
-function {{ machine_name }}_menu_link_delete($link) {
- // Delete the record from our table.
- db_delete('menu_example')
- ->condition('mlid', $link['mlid'])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_insert.twig
deleted file mode 100644
index 97764ea92..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_menu_link_insert().
- */
-function {{ machine_name }}_menu_link_insert($link) {
- // In our sample case, we track menu items as editing sections
- // of the site. These are stored in our table as 'disabled' items.
- $record['mlid'] = $link['mlid'];
- $record['menu_name'] = $link['menu_name'];
- $record['status'] = 0;
- drupal_write_record('menu_example', $record);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_update.twig
deleted file mode 100644
index 765056aa9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_link_update.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_menu_link_update().
- */
-function {{ machine_name }}_menu_link_update($link) {
- // If the parent menu has changed, update our record.
- $menu_name = db_query("SELECT menu_name FROM {menu_example} WHERE mlid = :mlid", array(':mlid' => $link['mlid']))->fetchField();
- if ($menu_name != $link['menu_name']) {
- db_update('menu_example')
- ->fields(array('menu_name' => $link['menu_name']))
- ->condition('mlid', $link['mlid'])
- ->execute();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_local_tasks_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_local_tasks_alter.twig
deleted file mode 100644
index 9abb21901..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_local_tasks_alter.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Implements hook_menu_local_tasks_alter().
- */
-function {{ machine_name }}_menu_local_tasks_alter(&$data, $router_item, $root_path) {
- // Add an action linking to node/add to all pages.
- $data['actions']['output'][] = array(
- '#theme' => 'menu_local_task',
- '#link' => array(
- 'title' => t('Add new content'),
- 'href' => 'node/add',
- 'localized_options' => array(
- 'attributes' => array(
- 'title' => t('Add new content'),
- ),
- ),
- ),
- );
-
- // Add a tab linking to node/add to all pages.
- $data['tabs'][0]['output'][] = array(
- '#theme' => 'menu_local_task',
- '#link' => array(
- 'title' => t('Example tab'),
- 'href' => 'node/add',
- 'localized_options' => array(
- 'attributes' => array(
- 'title' => t('Add new content'),
- ),
- ),
- ),
- // Define whether this link is active. This can be omitted for
- // implementations that add links to pages outside of the current page
- // context.
- '#active' => ($router_item['path'] == $root_path),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_site_status_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_site_status_alter.twig
deleted file mode 100644
index 01656d3d2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_site_status_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_menu_site_status_alter().
- */
-function {{ machine_name }}_menu_site_status_alter(&$menu_site_status, $path) {
- // Allow access to my_module/authentication even if site is in offline mode.
- if ($menu_site_status == MENU_SITE_OFFLINE && user_is_anonymous() && $path == 'my_module/authentication') {
- $menu_site_status = MENU_SITE_ONLINE;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_update.twig
deleted file mode 100644
index ed04a30d2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu_update.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_menu_update().
- */
-function {{ machine_name }}_menu_update($menu) {
- // For example, we track available menus in a variable.
- $my_menus = variable_get('my_module_menus', array());
- $my_menus[$menu['menu_name']] = $menu['menu_name'];
- variable_set('my_module_menus', $my_menus);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/module_implements_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/module_implements_alter.twig
deleted file mode 100644
index 7fbe12576..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/module_implements_alter.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_module_implements_alter().
- */
-function {{ machine_name }}_module_implements_alter(&$implementations, $hook) {
- if ($hook == 'rdf_mapping') {
- // Move my_module_rdf_mapping() to the end of the list. module_implements()
- // iterates through $implementations with a foreach loop which PHP iterates
- // in the order that the items were added, so to move an item to the end of
- // the array, we remove it and then add it.
- $group = $implementations['my_module'];
- unset($implementations['my_module']);
- $implementations['my_module'] = $group;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_disabled.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_disabled.twig
deleted file mode 100644
index 8b28f496e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_disabled.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_modules_disabled().
- */
-function {{ machine_name }}_modules_disabled($modules) {
- if (in_array('lousy_module', $modules)) {
- mymodule_enable_functionality();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_enabled.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_enabled.twig
deleted file mode 100644
index 51dbf2b99..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_enabled.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_modules_enabled().
- */
-function {{ machine_name }}_modules_enabled($modules) {
- if (in_array('lousy_module', $modules)) {
- drupal_set_message(t('mymodule is not compatible with lousy_module'), 'error');
- mymodule_disable_functionality();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_installed.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_installed.twig
deleted file mode 100644
index 592cbf88b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_installed.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_modules_installed().
- */
-function {{ machine_name }}_modules_installed($modules) {
- if (in_array('lousy_module', $modules)) {
- variable_set('lousy_module_conflicting_variable', FALSE);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_uninstalled.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_uninstalled.twig
deleted file mode 100644
index efc2dceae..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/modules_uninstalled.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_modules_uninstalled().
- */
-function {{ machine_name }}_modules_uninstalled($modules) {
- foreach ($modules as $module) {
- db_delete('mymodule_table')
- ->condition('module', $module)
- ->execute();
- }
- mymodule_cache_rebuild();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/multilingual_settings_changed.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/multilingual_settings_changed.twig
deleted file mode 100644
index 0d2782eb0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/multilingual_settings_changed.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_multilingual_settings_changed().
- */
-function {{ machine_name }}_multilingual_settings_changed() {
- field_info_cache_clear();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access.twig
deleted file mode 100644
index 1c290c4dd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access.twig
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Implements hook_node_access().
- */
-function {{ machine_name }}_node_access($node, $op, $account) {
- $type = is_string($node) ? $node : $node->type;
-
- if (in_array($type, node_permissions_get_configured_types())) {
- if ($op == 'create' && user_access('create ' . $type . ' content', $account)) {
- return NODE_ACCESS_ALLOW;
- }
-
- if ($op == 'update') {
- if (user_access('edit any ' . $type . ' content', $account) || (user_access('edit own ' . $type . ' content', $account) && ($account->uid == $node->uid))) {
- return NODE_ACCESS_ALLOW;
- }
- }
-
- if ($op == 'delete') {
- if (user_access('delete any ' . $type . ' content', $account) || (user_access('delete own ' . $type . ' content', $account) && ($account->uid == $node->uid))) {
- return NODE_ACCESS_ALLOW;
- }
- }
- }
-
- // Returning nothing from this function would have the same effect.
- return NODE_ACCESS_IGNORE;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access_records.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access_records.twig
deleted file mode 100644
index 24afad910..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access_records.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Implements hook_node_access_records().
- */
-function {{ machine_name }}_node_access_records($node) {
- // We only care about the node if it has been marked private. If not, it is
- // treated just like any other node and we completely ignore it.
- if ($node->private) {
- $grants = array();
- // Only published nodes should be viewable to all users. If we allow access
- // blindly here, then all users could view an unpublished node.
- if ($node->status) {
- $grants[] = array(
- 'realm' => 'example',
- 'gid' => 1,
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- 'priority' => 0,
- );
- }
- // For the example_author array, the GID is equivalent to a UID, which
- // means there are many groups of just 1 user.
- // Note that an author can always view his or her nodes, even if they
- // have status unpublished.
- $grants[] = array(
- 'realm' => 'example_author',
- 'gid' => $node->uid,
- 'grant_view' => 1,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- 'priority' => 0,
- );
-
- return $grants;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access_records_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access_records_alter.twig
deleted file mode 100644
index 320883882..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_access_records_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_node_access_records_alter().
- */
-function {{ machine_name }}_node_access_records_alter(&$grants, $node) {
- // Our module allows editors to mark specific articles with the 'is_preview'
- // field. If the node being saved has a TRUE value for that field, then only
- // our grants are retained, and other grants are removed. Doing so ensures
- // that our rules are enforced no matter what priority other grants are given.
- if ($node->is_preview) {
- // Our module grants are set in $grants['example'].
- $temp = $grants['example'];
- // Now remove all module grants but our own.
- $grants = array('example' => $temp);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_delete.twig
deleted file mode 100644
index 460f17df9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_node_delete().
- */
-function {{ machine_name }}_node_delete($node) {
- db_delete('mytable')
- ->condition('nid', $node->nid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_grants.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_grants.twig
deleted file mode 100644
index 340edc3a6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_grants.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_node_grants().
- */
-function {{ machine_name }}_node_grants($account, $op) {
- if (user_access('access private content', $account)) {
- $grants['example'] = array(1);
- }
- $grants['example_author'] = array($account->uid);
- return $grants;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_grants_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_grants_alter.twig
deleted file mode 100644
index b7663901f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_grants_alter.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Implements hook_node_grants_alter().
- */
-function {{ machine_name }}_node_grants_alter(&$grants, $account, $op) {
- // Our sample module never allows certain roles to edit or delete
- // content. Since some other node access modules might allow this
- // permission, we expressly remove it by returning an empty $grants
- // array for roles specified in our variable setting.
-
- // Get our list of banned roles.
- $restricted = variable_get('example_restricted_roles', array());
-
- if ($op != 'view' && !empty($restricted)) {
- // Now check the roles for this account against the restrictions.
- foreach ($restricted as $role_id) {
- if (isset($account->roles[$role_id])) {
- $grants = array();
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_info.twig
deleted file mode 100644
index eee1448d0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_info.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_node_info().
- */
-function {{ machine_name }}_node_info() {
- return array(
- 'blog' => array(
- 'name' => t('Blog entry'),
- 'base' => 'blog',
- 'description' => t('Use for multi-user blogs. Every user gets a personal blog.'),
- )
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_insert.twig
deleted file mode 100644
index e8cd55b82..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_node_insert().
- */
-function {{ machine_name }}_node_insert($node) {
- db_insert('mytable')
- ->fields(array(
- 'nid' => $node->nid,
- 'extra' => $node->extra,
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_load.twig
deleted file mode 100644
index 2eba93e33..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_load.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_node_load().
- */
-function {{ machine_name }}_node_load($nodes, $types) {
- // Decide whether any of $types are relevant to our purposes.
- if (count(array_intersect($types_we_want_to_process, $types))) {
- // Gather our extra data for each of these nodes.
- $result = db_query('SELECT nid, foo FROM {mytable} WHERE nid IN(:nids)', array(':nids' => array_keys($nodes)));
- // Add our extra data to the node objects.
- foreach ($result as $record) {
- $nodes[$record->nid]->foo = $record->foo;
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_operations.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_operations.twig
deleted file mode 100644
index d0f2b7a6f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_operations.twig
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Implements hook_node_operations().
- */
-function {{ machine_name }}_node_operations() {
- $operations = array(
- 'publish' => array(
- 'label' => t('Publish selected content'),
- 'callback' => 'node_mass_update',
- 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED)),
- ),
- 'unpublish' => array(
- 'label' => t('Unpublish selected content'),
- 'callback' => 'node_mass_update',
- 'callback arguments' => array('updates' => array('status' => NODE_NOT_PUBLISHED)),
- ),
- 'promote' => array(
- 'label' => t('Promote selected content to front page'),
- 'callback' => 'node_mass_update',
- 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'promote' => NODE_PROMOTED)),
- ),
- 'demote' => array(
- 'label' => t('Demote selected content from front page'),
- 'callback' => 'node_mass_update',
- 'callback arguments' => array('updates' => array('promote' => NODE_NOT_PROMOTED)),
- ),
- 'sticky' => array(
- 'label' => t('Make selected content sticky'),
- 'callback' => 'node_mass_update',
- 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'sticky' => NODE_STICKY)),
- ),
- 'unsticky' => array(
- 'label' => t('Make selected content not sticky'),
- 'callback' => 'node_mass_update',
- 'callback arguments' => array('updates' => array('sticky' => NODE_NOT_STICKY)),
- ),
- 'delete' => array(
- 'label' => t('Delete selected content'),
- 'callback' => NULL,
- ),
- );
- return $operations;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_prepare.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_prepare.twig
deleted file mode 100644
index 488136482..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_prepare.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_node_prepare().
- */
-function {{ machine_name }}_node_prepare($node) {
- if (!isset($node->comment)) {
- $node->comment = variable_get("comment_$node->type", COMMENT_NODE_OPEN);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_presave.twig
deleted file mode 100644
index 2f0f75a07..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_presave.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_node_presave().
- */
-function {{ machine_name }}_node_presave($node) {
- if ($node->nid && $node->moderate) {
- // Reset votes when node is updated:
- $node->score = 0;
- $node->users = '';
- $node->votes = 0;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_revision_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_revision_delete.twig
deleted file mode 100644
index ba98567eb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_revision_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_node_revision_delete().
- */
-function {{ machine_name }}_node_revision_delete($node) {
- db_delete('mytable')
- ->condition('vid', $node->vid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_search_result.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_search_result.twig
deleted file mode 100644
index 9372dc179..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_search_result.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_node_search_result().
- */
-function {{ machine_name }}_node_search_result($node) {
- $comments = db_query('SELECT comment_count FROM {node_comment_statistics} WHERE nid = :nid', array('nid' => $node->nid))->fetchField();
- return array('comment' => format_plural($comments, '1 comment', '@count comments'));
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_submit.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_submit.twig
deleted file mode 100644
index b04ec0cfd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_submit.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_node_submit().
- */
-function {{ machine_name }}_node_submit($node, $form, &$form_state) {
- // Decompose the selected menu parent option into 'menu_name' and 'plid', if
- // the form used the default parent selection widget.
- if (!empty($form_state['values']['menu']['parent'])) {
- list($node->menu['menu_name'], $node->menu['plid']) = explode(':', $form_state['values']['menu']['parent']);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_delete.twig
deleted file mode 100644
index c4afe57ce..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_delete.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_node_type_delete().
- */
-function {{ machine_name }}_node_type_delete($info) {
- variable_del('comment_' . $info->type);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_insert.twig
deleted file mode 100644
index 35490cbba..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_insert.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_node_type_insert().
- */
-function {{ machine_name }}_node_type_insert($info) {
- drupal_set_message(t('You have just created a content type with a machine name %type.', array('%type' => $info->type)));
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_update.twig
deleted file mode 100644
index 28ea1743d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_type_update.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_node_type_update().
- */
-function {{ machine_name }}_node_type_update($info) {
- if (!empty($info->old_type) && $info->old_type != $info->type) {
- $setting = variable_get('comment_' . $info->old_type, COMMENT_NODE_OPEN);
- variable_del('comment_' . $info->old_type);
- variable_set('comment_' . $info->type, $setting);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_update.twig
deleted file mode 100644
index 7d92d9de0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_update.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_node_update().
- */
-function {{ machine_name }}_node_update($node) {
- db_update('mytable')
- ->fields(array('extra' => $node->extra))
- ->condition('nid', $node->nid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_update_index.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_update_index.twig
deleted file mode 100644
index 42e533fb3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_update_index.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_node_update_index().
- */
-function {{ machine_name }}_node_update_index($node) {
- $text = '';
- $comments = db_query('SELECT subject, comment, format FROM {comment} WHERE nid = :nid AND status = :status', array(':nid' => $node->nid, ':status' => COMMENT_PUBLISHED));
- foreach ($comments as $comment) {
- $text .= '' . check_plain($comment->subject) . '
' . check_markup($comment->comment, $comment->format, '', TRUE);
- }
- return $text;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_validate.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_validate.twig
deleted file mode 100644
index ac37efce7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_validate.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_node_validate().
- */
-function {{ machine_name }}_node_validate($node, $form, &$form_state) {
- if (isset($node->end) && isset($node->start)) {
- if ($node->start > $node->end) {
- form_set_error('time', t('An event may not end before it starts.'));
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_view.twig
deleted file mode 100644
index 86019fccd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_view.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_node_view().
- */
-function {{ machine_name }}_node_view($node, $view_mode, $langcode) {
- $node->content['my_additional_field'] = array(
- '#markup' => $additional_field,
- '#weight' => 10,
- '#theme' => 'mymodule_my_additional_field',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_view_alter.twig
deleted file mode 100644
index 331630085..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/node_view_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_node_view_alter().
- */
-function {{ machine_name }}_node_view_alter(&$build) {
- if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
- // Change its weight.
- $build['an_additional_field']['#weight'] = -10;
- }
-
- // Add a #post_render callback to act on the rendered HTML of the node.
- $build['#post_render'][] = 'my_module_node_post_render';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid.twig
deleted file mode 100644
index 8e0e9f38e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_openid().
- */
-function {{ machine_name }}_openid($op, $request) {
- if ($op == 'request') {
- $request['openid.identity'] = 'http://myname.myopenid.com/';
- }
- return $request;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_discovery_method_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_discovery_method_info.twig
deleted file mode 100644
index 5f212fe2b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_discovery_method_info.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_openid_discovery_method_info().
- */
-function {{ machine_name }}_openid_discovery_method_info() {
- return array(
- 'new_discovery_idea' => '_my_discovery_method',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_discovery_method_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_discovery_method_info_alter.twig
deleted file mode 100644
index 374d67c9f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_discovery_method_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_openid_discovery_method_info_alter().
- */
-function {{ machine_name }}_openid_discovery_method_info_alter(&$methods) {
- // Remove XRI discovery scheme.
- unset($methods['xri']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_normalization_method_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_normalization_method_info.twig
deleted file mode 100644
index 95e630133..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_normalization_method_info.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_openid_normalization_method_info().
- */
-function {{ machine_name }}_openid_normalization_method_info() {
- return array(
- 'new_normalization_idea' => '_my_normalization_method',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_normalization_method_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_normalization_method_info_alter.twig
deleted file mode 100644
index 405817021..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_normalization_method_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_openid_normalization_method_info_alter().
- */
-function {{ machine_name }}_openid_normalization_method_info_alter(&$methods) {
- // Remove Google IDP normalization.
- unset($methods['google_idp']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_response.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_response.twig
deleted file mode 100644
index 476b66c1e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/openid_response.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_openid_response().
- */
-function {{ machine_name }}_openid_response($response, $account) {
- if (isset($response['openid.ns.ax'])) {
- _mymodule_store_ax_fields($response, $account);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/options_list.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/options_list.twig
deleted file mode 100644
index 0934dc8d9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/options_list.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Implements hook_options_list().
- */
-function {{ machine_name }}_options_list($field, $instance, $entity_type, $entity) {
- // Sample structure.
- $options = array(
- 0 => t('Zero'),
- 1 => t('One'),
- 2 => t('Two'),
- 3 => t('Three'),
- );
-
- // Sample structure with groups. Only one level of nesting is allowed. This
- // is only supported by the 'options_select' widget. Other widgets will
- // flatten the array.
- $options = array(
- t('First group') => array(
- 0 => t('Zero'),
- ),
- t('Second group') => array(
- 1 => t('One'),
- 2 => t('Two'),
- ),
- 3 => t('Three'),
- );
-
- // In actual implementations, the array of options will most probably depend
- // on properties of the field. Example from taxonomy.module:
- $options = array();
- foreach ($field['settings']['allowed_values'] as $tree) {
- $terms = taxonomy_get_tree($tree['vid'], $tree['parent']);
- if ($terms) {
- foreach ($terms as $term) {
- $options[$term->tid] = str_repeat('-', $term->depth) . $term->name;
- }
- }
- }
-
- return $options;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/overlay_child_initialize.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/overlay_child_initialize.twig
deleted file mode 100644
index 1c26aa89e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/overlay_child_initialize.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_overlay_child_initialize().
- */
-function {{ machine_name }}_overlay_child_initialize() {
- // Add our custom JavaScript.
- drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay-child.js');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/overlay_parent_initialize.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/overlay_parent_initialize.twig
deleted file mode 100644
index 18dc7c287..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/overlay_parent_initialize.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_overlay_parent_initialize().
- */
-function {{ machine_name }}_overlay_parent_initialize() {
- // Add our custom JavaScript.
- drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay.js');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_alter.twig
deleted file mode 100644
index d29b114f6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_page_alter().
- */
-function {{ machine_name }}_page_alter(&$page) {
- // Add help text to the user login block.
- $page['sidebar_first']['user_login']['help'] = array(
- '#weight' => -10,
- '#markup' => t('To post comments or add new content, you first have to log in.'),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_build.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_build.twig
deleted file mode 100644
index 3f660889f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_build.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_page_build().
- */
-function {{ machine_name }}_page_build(&$page) {
- if (menu_get_object('node', 1)) {
- // We are on a node detail page. Append a standard disclaimer to the
- // content region.
- $page['content']['disclaimer'] = array(
- '#markup' => t('Acme, Inc. is not responsible for the contents of this sample code.'),
- '#weight' => 25,
- );
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_delivery_callback_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_delivery_callback_alter.twig
deleted file mode 100644
index 3c1ae81d2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/page_delivery_callback_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_page_delivery_callback_alter().
- */
-function {{ machine_name }}_page_delivery_callback_alter(&$callback) {
- // jQuery sets a HTTP_X_REQUESTED_WITH header of 'XMLHttpRequest'.
- // If a page would normally be delivered as an html page, and it is called
- // from jQuery, deliver it instead as an Ajax response.
- if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' && $callback == 'drupal_deliver_html_page') {
- $callback = 'ajax_deliver';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_delete.twig
deleted file mode 100644
index a6b38c378..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_path_delete().
- */
-function {{ machine_name }}_path_delete($path) {
- db_delete('mytable')
- ->condition('pid', $path['pid'])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_insert.twig
deleted file mode 100644
index 7a43127ff..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_path_insert().
- */
-function {{ machine_name }}_path_insert($path) {
- db_insert('mytable')
- ->fields(array(
- 'alias' => $path['alias'],
- 'pid' => $path['pid'],
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_update.twig
deleted file mode 100644
index 19b706726..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/path_update.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_path_update().
- */
-function {{ machine_name }}_path_update($path) {
- db_update('mytable')
- ->fields(array('alias' => $path['alias']))
- ->condition('pid', $path['pid'])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/permission.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/permission.twig
deleted file mode 100644
index 3a4510196..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/permission.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_permission().
- */
-function {{ machine_name }}_permission() {
- return array(
- 'administer my module' => array(
- 'title' => t('Administer my module'),
- 'description' => t('Perform administration tasks for my module.'),
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/prepare.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/prepare.twig
deleted file mode 100644
index b663f5458..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/prepare.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_prepare().
- */
-function {{ machine_name }}_prepare($node) {
- if (!isset($node->mymodule_value)) {
- $node->mymodule_value = 'foo';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/preprocess.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/preprocess.twig
deleted file mode 100644
index fa36102d3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/preprocess.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Implements hook_preprocess().
- */
-function {{ machine_name }}_preprocess(&$variables, $hook) {
- static $hooks;
-
- // Add contextual links to the variables, if the user has permission.
-
- if (!user_access('access contextual links')) {
- return;
- }
-
- if (!isset($hooks)) {
- $hooks = theme_get_registry();
- }
-
- // Determine the primary theme function argument.
- if (isset($hooks[$hook]['variables'])) {
- $keys = array_keys($hooks[$hook]['variables']);
- $key = $keys[0];
- }
- else {
- $key = $hooks[$hook]['render element'];
- }
-
- if (isset($variables[$key])) {
- $element = $variables[$key];
- }
-
- if (isset($element) && is_array($element) && !empty($element['#contextual_links'])) {
- $variables['title_suffix']['contextual_links'] = contextual_links_view($element);
- if (!empty($variables['title_suffix']['contextual_links'])) {
- $variables['classes_array'][] = 'contextual-links-region';
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/preprocess_HOOK.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/preprocess_HOOK.twig
deleted file mode 100644
index 8f7f47044..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/preprocess_HOOK.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_preprocess_HOOK().
- */
-function {{ machine_name }}_preprocess_HOOK(&$variables) {
- // This example is from rdf_preprocess_image(). It adds an RDF attribute
- // to the image hook's variables.
- $variables['attributes']['typeof'] = array('foaf:Image');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/process.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/process.twig
deleted file mode 100644
index cd42c89c2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/process.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_process().
- */
-function {{ machine_name }}_process(&$variables, $hook) {
- // Wraps variables in RDF wrappers.
- if (!empty($variables['rdf_template_variable_attributes_array'])) {
- foreach ($variables['rdf_template_variable_attributes_array'] as $variable_name => $attributes) {
- $context = array(
- 'hook' => $hook,
- 'variable_name' => $variable_name,
- 'variables' => $variables,
- );
- $variables[$variable_name] = theme('rdf_template_variable_wrapper', array('content' => $variables[$variable_name], 'attributes' => $attributes, 'context' => $context));
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/process_HOOK.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/process_HOOK.twig
deleted file mode 100644
index 8f170394a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/process_HOOK.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_process_HOOK().
- */
-function {{ machine_name }}_process_HOOK(&$variables) {
- // @todo There are no use-cases in Drupal core for this hook. Find one from a
- // contributed module, or come up with a good example. Coming up with a good
- // example might be tough, since the intent is for nearly everything to be
- // achievable via preprocess functions, and for process functions to only be
- // used when requiring the later execution time.
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/query_TAG_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/query_TAG_alter.twig
deleted file mode 100644
index 60974e3e4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/query_TAG_alter.twig
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Implements hook_query_TAG_alter().
- */
-function {{ machine_name }}_query_TAG_alter(QueryAlterableInterface $query) {
- // Skip the extra expensive alterations if site has no node access control modules.
- if (!node_access_view_all_nodes()) {
- // Prevent duplicates records.
- $query->distinct();
- // The recognized operations are 'view', 'update', 'delete'.
- if (!$op = $query->getMetaData('op')) {
- $op = 'view';
- }
- // Skip the extra joins and conditions for node admins.
- if (!user_access('bypass node access')) {
- // The node_access table has the access grants for any given node.
- $access_alias = $query->join('node_access', 'na', '%alias.nid = n.nid');
- $or = db_or();
- // If any grant exists for the specified user, then user has access to the node for the specified operation.
- foreach (node_access_grants($op, $query->getMetaData('account')) as $realm => $gids) {
- foreach ($gids as $gid) {
- $or->condition(db_and()
- ->condition($access_alias . '.gid', $gid)
- ->condition($access_alias . '.realm', $realm)
- );
- }
- }
-
- if (count($or->conditions())) {
- $query->condition($or);
- }
-
- $query->condition($access_alias . 'grant_' . $op, 1, '>=');
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/query_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/query_alter.twig
deleted file mode 100644
index 1238cae1d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/query_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_query_alter().
- */
-function {{ machine_name }}_query_alter(QueryAlterableInterface $query) {
- if ($query->hasTag('micro_limit')) {
- $query->range(0, 2);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/ranking.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/ranking.twig
deleted file mode 100644
index 2d6ae32c8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/ranking.twig
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Implements hook_ranking().
- */
-function {{ machine_name }}_ranking() {
- // If voting is disabled, we can avoid returning the array, no hard feelings.
- if (variable_get('vote_node_enabled', TRUE)) {
- return array(
- 'vote_average' => array(
- 'title' => t('Average vote'),
- // Note that we use i.sid, the search index's search item id, rather than
- // n.nid.
- 'join' => array(
- 'type' => 'LEFT',
- 'table' => 'vote_node_data',
- 'alias' => 'vote_node_data',
- 'on' => 'vote_node_data.nid = i.sid',
- ),
- // The highest possible score should be 1, and the lowest possible score,
- // always 0, should be 0.
- 'score' => 'vote_node_data.average / CAST(%f AS DECIMAL)',
- // Pass in the highest possible voting score as a decimal argument.
- 'arguments' => array(variable_get('vote_score_max', 5)),
- ),
- );
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/rdf_mapping.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/rdf_mapping.twig
deleted file mode 100644
index 3b5344ca5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/rdf_mapping.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Implements hook_rdf_mapping().
- */
-function {{ machine_name }}_rdf_mapping() {
- return array(
- array(
- 'type' => 'node',
- 'bundle' => 'blog',
- 'mapping' => array(
- 'rdftype' => array('sioct:Weblog'),
- 'title' => array(
- 'predicates' => array('dc:title'),
- ),
- 'created' => array(
- 'predicates' => array('dc:date', 'dc:created'),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- 'body' => array(
- 'predicates' => array('content:encoded'),
- ),
- 'uid' => array(
- 'predicates' => array('sioc:has_creator'),
- 'type' => 'rel',
- ),
- 'name' => array(
- 'predicates' => array('foaf:name'),
- ),
- ),
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/rdf_namespaces.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/rdf_namespaces.twig
deleted file mode 100644
index 997ac5421..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/rdf_namespaces.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_rdf_namespaces().
- */
-function {{ machine_name }}_rdf_namespaces() {
- return array(
- 'content' => 'http://purl.org/rss/1.0/modules/content/',
- 'dc' => 'http://purl.org/dc/terms/',
- 'foaf' => 'http://xmlns.com/foaf/0.1/',
- 'og' => 'http://ogp.me/ns#',
- 'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#',
- 'sioc' => 'http://rdfs.org/sioc/ns#',
- 'sioct' => 'http://rdfs.org/sioc/types#',
- 'skos' => 'http://www.w3.org/2004/02/skos/core#',
- 'xsd' => 'http://www.w3.org/2001/XMLSchema#',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/registry_files_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/registry_files_alter.twig
deleted file mode 100644
index fc4dc58de..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/registry_files_alter.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_registry_files_alter().
- */
-function {{ machine_name }}_registry_files_alter(&$files, $modules) {
- foreach ($modules as $module) {
- // Only add test files for disabled modules, as enabled modules should
- // already include any test files they provide.
- if (!$module->status) {
- $dir = $module->dir;
- foreach ($module->info['files'] as $file) {
- if (substr($file, -5) == '.test') {
- $files["$dir/$file"] = array('module' => $module->name, 'weight' => $module->weight);
- }
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/requirements.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/requirements.twig
deleted file mode 100644
index 10d58fca3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/requirements.twig
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Implements hook_requirements().
- */
-function {{ machine_name }}_requirements($phase) {
- $requirements = array();
- // Ensure translations don't break during installation.
- $t = get_t();
-
- // Report Drupal version
- if ($phase == 'runtime') {
- $requirements['drupal'] = array(
- 'title' => $t('Drupal'),
- 'value' => VERSION,
- 'severity' => REQUIREMENT_INFO
- );
- }
-
- // Test PHP version
- $requirements['php'] = array(
- 'title' => $t('PHP'),
- 'value' => ($phase == 'runtime') ? l(phpversion(), 'admin/reports/status/php') : phpversion(),
- );
- if (version_compare(phpversion(), DRUPAL_MINIMUM_PHP) < 0) {
- $requirements['php']['description'] = $t('Your PHP installation is too old. Drupal requires at least PHP %version.', array('%version' => DRUPAL_MINIMUM_PHP));
- $requirements['php']['severity'] = REQUIREMENT_ERROR;
- }
-
- // Report cron status
- if ($phase == 'runtime') {
- $cron_last = variable_get('cron_last');
-
- if (is_numeric($cron_last)) {
- $requirements['cron']['value'] = $t('Last run !time ago', array('!time' => format_interval(REQUEST_TIME - $cron_last)));
- }
- else {
- $requirements['cron'] = array(
- 'description' => $t('Cron has not run. It appears cron jobs have not been setup on your system. Check the help pages for configuring cron jobs.', array('@url' => 'http://drupal.org/cron')),
- 'severity' => REQUIREMENT_ERROR,
- 'value' => $t('Never run'),
- );
- }
-
- $requirements['cron']['description'] .= ' ' . $t('You can run cron manually.', array('@cron' => url('admin/reports/status/run-cron')));
-
- $requirements['cron']['title'] = $t('Cron maintenance tasks');
- }
-
- return $requirements;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema.twig
deleted file mode 100644
index 3294edfc4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema.twig
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Implements hook_schema().
- */
-function {{ machine_name }}_schema() {
- $schema['node'] = array(
- // Example (partial) specification for table "node".
- 'description' => 'The base table for nodes.',
- 'fields' => array(
- 'nid' => array(
- 'description' => 'The primary identifier for a node.',
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'vid' => array(
- 'description' => 'The current {node_revision}.vid version identifier.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'type' => array(
- 'description' => 'The {node_type} of this node.',
- 'type' => 'varchar',
- 'length' => 32,
- 'not null' => TRUE,
- 'default' => '',
- ),
- 'title' => array(
- 'description' => 'The title of this node, always treated as non-markup plain text.',
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- ),
- ),
- 'indexes' => array(
- 'node_changed' => array('changed'),
- 'node_created' => array('created'),
- ),
- 'unique keys' => array(
- 'nid_vid' => array('nid', 'vid'),
- 'vid' => array('vid'),
- ),
- // For documentation purposes only; foreign keys are not created in the
- // database.
- 'foreign keys' => array(
- 'node_revision' => array(
- 'table' => 'node_revision',
- 'columns' => array('vid' => 'vid'),
- ),
- 'node_author' => array(
- 'table' => 'users',
- 'columns' => array('uid' => 'uid'),
- ),
- ),
- 'primary key' => array('nid'),
- );
- return $schema;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema_alter.twig
deleted file mode 100644
index 4a7ae8f02..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_schema_alter().
- */
-function {{ machine_name }}_schema_alter(&$schema) {
- // Add field to existing schema.
- $schema['users']['fields']['timezone_id'] = array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'Per-user timezone configuration.',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_access.twig
deleted file mode 100644
index 2ba37aacd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_access.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_search_access().
- */
-function {{ machine_name }}_search_access() {
- return user_access('access content');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_admin.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_admin.twig
deleted file mode 100644
index 7459bf9ee..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_admin.twig
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Implements hook_search_admin().
- */
-function {{ machine_name }}_search_admin() {
- // Output form for defining rank factor weights.
- $form['content_ranking'] = array(
- '#type' => 'fieldset',
- '#title' => t('Content ranking'),
- );
- $form['content_ranking']['#theme'] = 'node_search_admin';
- $form['content_ranking']['info'] = array(
- '#value' => '' . t('The following numbers control which properties the content search should favor when ordering the results. Higher numbers mean more influence, zero means the property is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . ''
- );
-
- // Note: reversed to reflect that higher number = higher ranking.
- $options = drupal_map_assoc(range(0, 10));
- foreach (module_invoke_all('ranking') as $var => $values) {
- $form['content_ranking']['factors']['node_rank_' . $var] = array(
- '#title' => $values['title'],
- '#type' => 'select',
- '#options' => $options,
- '#default_value' => variable_get('node_rank_' . $var, 0),
- );
- }
- return $form;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_execute.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_execute.twig
deleted file mode 100644
index 49ecbb5ac..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_execute.twig
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * Implements hook_search_execute().
- */
-function {{ machine_name }}_search_execute($keys = NULL, $conditions = NULL) {
- // Build matching conditions
- $query = db_select('search_index', 'i', array('target' => 'slave'))->extend('SearchQuery')->extend('PagerDefault');
- $query->join('node', 'n', 'n.nid = i.sid');
- $query
- ->condition('n.status', 1)
- ->addTag('node_access')
- ->searchExpression($keys, 'node');
-
- // Insert special keywords.
- $query->setOption('type', 'n.type');
- $query->setOption('language', 'n.language');
- if ($query->setOption('term', 'ti.tid')) {
- $query->join('taxonomy_index', 'ti', 'n.nid = ti.nid');
- }
- // Only continue if the first pass query matches.
- if (!$query->executeFirstPass()) {
- return array();
- }
-
- // Add the ranking expressions.
- _node_rankings($query);
-
- // Load results.
- $find = $query
- ->limit(10)
- ->execute();
- $results = array();
- foreach ($find as $item) {
- // Build the node body.
- $node = node_load($item->sid);
- node_build_content($node, 'search_result');
- $node->body = drupal_render($node->content);
-
- // Fetch comments for snippet.
- $node->rendered .= ' ' . module_invoke('comment', 'node_update_index', $node);
- // Fetch terms for snippet.
- $node->rendered .= ' ' . module_invoke('taxonomy', 'node_update_index', $node);
-
- $extra = module_invoke_all('node_search_result', $node);
-
- $results[] = array(
- 'link' => url('node/' . $item->sid, array('absolute' => TRUE)),
- 'type' => check_plain(node_type_get_name($node)),
- 'title' => $node->title,
- 'user' => theme('username', array('account' => $node)),
- 'date' => $node->changed,
- 'node' => $node,
- 'extra' => $extra,
- 'score' => $item->calculated_score,
- 'snippet' => search_excerpt($keys, $node->body),
- );
- }
- return $results;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_info.twig
deleted file mode 100644
index e4e0c3c73..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_info.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_search_info().
- */
-function {{ machine_name }}_search_info() {
- // Make the title translatable.
- t('Content');
-
- return array(
- 'title' => 'Content',
- 'path' => 'node',
- 'conditions_callback' => 'callback_search_conditions',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_page.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_page.twig
deleted file mode 100644
index 0aff6594f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_page.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_search_page().
- */
-function {{ machine_name }}_search_page($results) {
- $output['prefix']['#markup'] = '';
-
- foreach ($results as $entry) {
- $output[] = array(
- '#theme' => 'search_result',
- '#result' => $entry,
- '#module' => 'my_module_name',
- );
- }
- $output['suffix']['#markup'] = '
' . theme('pager');
-
- return $output;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_preprocess.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_preprocess.twig
deleted file mode 100644
index a38c6158d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_preprocess.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_search_preprocess().
- */
-function {{ machine_name }}_search_preprocess($text) {
- // Do processing on $text
- return $text;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_reset.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_reset.twig
deleted file mode 100644
index b44388e8d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_reset.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_search_reset().
- */
-function {{ machine_name }}_search_reset() {
- db_update('search_dataset')
- ->fields(array('reindex' => REQUEST_TIME))
- ->condition('type', 'node')
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_status.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_status.twig
deleted file mode 100644
index 56814d3af..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/search_status.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_search_status().
- */
-function {{ machine_name }}_search_status() {
- $total = db_query('SELECT COUNT(*) FROM {node} WHERE status = 1')->fetchField();
- $remaining = db_query("SELECT COUNT(*) FROM {node} n LEFT JOIN {search_dataset} d ON d.type = 'node' AND d.sid = n.nid WHERE n.status = 1 AND d.sid IS NULL OR d.reindex <> 0")->fetchField();
- return array('remaining' => $remaining, 'total' => $total);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/shortcut_default_set.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/shortcut_default_set.twig
deleted file mode 100644
index 0eb440590..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/shortcut_default_set.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_shortcut_default_set().
- */
-function {{ machine_name }}_shortcut_default_set($account) {
- // Use a special set of default shortcuts for administrators only.
- if (in_array(variable_get('user_admin_role', 0), $account->roles)) {
- return variable_get('mymodule_shortcut_admin_default_set');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/simpletest_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/simpletest_alter.twig
deleted file mode 100644
index 98cc76eff..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/simpletest_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_simpletest_alter().
- */
-function {{ machine_name }}_simpletest_alter(&$groups) {
- // An alternative session handler module would not want to run the original
- // Session HTTPS handling test because it checks the sessions table in the
- // database.
- unset($groups['Session']['testHttpsSession']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/stream_wrappers.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/stream_wrappers.twig
deleted file mode 100644
index b69560888..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/stream_wrappers.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Implements hook_stream_wrappers().
- */
-function {{ machine_name }}_stream_wrappers() {
- return array(
- 'public' => array(
- 'name' => t('Public files'),
- 'class' => 'DrupalPublicStreamWrapper',
- 'description' => t('Public local files served by the webserver.'),
- 'type' => STREAM_WRAPPERS_LOCAL_NORMAL,
- ),
- 'private' => array(
- 'name' => t('Private files'),
- 'class' => 'DrupalPrivateStreamWrapper',
- 'description' => t('Private local files served by Drupal.'),
- 'type' => STREAM_WRAPPERS_LOCAL_NORMAL,
- ),
- 'temp' => array(
- 'name' => t('Temporary files'),
- 'class' => 'DrupalTempStreamWrapper',
- 'description' => t('Temporary local files for upload and previews.'),
- 'type' => STREAM_WRAPPERS_LOCAL_HIDDEN,
- ),
- 'cdn' => array(
- 'name' => t('Content delivery network files'),
- 'class' => 'MyModuleCDNStreamWrapper',
- 'description' => t('Files served by a content delivery network.'),
- // 'type' can be omitted to use the default of STREAM_WRAPPERS_NORMAL
- ),
- 'youtube' => array(
- 'name' => t('YouTube video'),
- 'class' => 'MyModuleYouTubeStreamWrapper',
- 'description' => t('Video streamed from YouTube.'),
- // A module implementing YouTube integration may decide to support using
- // the YouTube API for uploading video, but here, we assume that this
- // particular module only supports playing YouTube video.
- 'type' => STREAM_WRAPPERS_READ_VISIBLE,
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/stream_wrappers_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/stream_wrappers_alter.twig
deleted file mode 100644
index 39b58a0ee..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/stream_wrappers_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_stream_wrappers_alter().
- */
-function {{ machine_name }}_stream_wrappers_alter(&$wrappers) {
- // Change the name of private files to reflect the performance.
- $wrappers['private']['name'] = t('Slow files');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_info_alter.twig
deleted file mode 100644
index 6b07505bd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_system_info_alter().
- */
-function {{ machine_name }}_system_info_alter(&$info, $file, $type) {
- // Only fill this in if the .info file does not define a 'datestamp'.
- if (empty($info['datestamp'])) {
- $info['datestamp'] = filemtime($file->filename);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_theme_engine_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_theme_engine_info.twig
deleted file mode 100644
index 70d508b10..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_theme_engine_info.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_system_theme_engine_info().
- */
-function {{ machine_name }}_system_theme_engine_info() {
- $theme_engines['izumi'] = drupal_get_path('module', 'mymodule') . '/izumi/izumi.engine';
- return $theme_engines;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_theme_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_theme_info.twig
deleted file mode 100644
index de5095c3c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_theme_info.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_system_theme_info().
- */
-function {{ machine_name }}_system_theme_info() {
- $themes['mymodule_test_theme'] = drupal_get_path('module', 'mymodule') . '/mymodule_test_theme/mymodule_test_theme.info';
- return $themes;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_themes_page_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_themes_page_alter.twig
deleted file mode 100644
index 722792be4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_themes_page_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_system_themes_page_alter().
- */
-function {{ machine_name }}_system_themes_page_alter(&$theme_groups) {
- foreach ($theme_groups as $state => &$group) {
- foreach ($theme_groups[$state] as &$theme) {
- // Add a foo link to each list of theme operations.
- $theme->operations[] = array(
- 'title' => t('Foo'),
- 'href' => 'admin/appearance/foo',
- 'query' => array('theme' => $theme->name)
- );
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_delete.twig
deleted file mode 100644
index 277ad4bc9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_taxonomy_term_delete().
- */
-function {{ machine_name }}_taxonomy_term_delete($term) {
- db_delete('mytable')
- ->condition('tid', $term->tid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_insert.twig
deleted file mode 100644
index ee7706096..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_taxonomy_term_insert().
- */
-function {{ machine_name }}_taxonomy_term_insert($term) {
- db_insert('mytable')
- ->fields(array(
- 'tid' => $term->tid,
- 'foo' => $term->foo,
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_load.twig
deleted file mode 100644
index a8b08a741..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_load.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_taxonomy_term_load().
- */
-function {{ machine_name }}_taxonomy_term_load($terms) {
- $result = db_select('mytable', 'm')
- ->fields('m', array('tid', 'foo'))
- ->condition('m.tid', array_keys($terms), 'IN')
- ->execute();
- foreach ($result as $record) {
- $terms[$record->tid]->foo = $record->foo;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_presave.twig
deleted file mode 100644
index b54fd0197..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_presave.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_taxonomy_term_presave().
- */
-function {{ machine_name }}_taxonomy_term_presave($term) {
- $term->foo = 'bar';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_update.twig
deleted file mode 100644
index f46b83b4d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_update.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_taxonomy_term_update().
- */
-function {{ machine_name }}_taxonomy_term_update($term) {
- db_update('mytable')
- ->fields(array('foo' => $term->foo))
- ->condition('tid', $term->tid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_view.twig
deleted file mode 100644
index 189ef8c01..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_view.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_taxonomy_term_view().
- */
-function {{ machine_name }}_taxonomy_term_view($term, $view_mode, $langcode) {
- $term->content['my_additional_field'] = array(
- '#markup' => $additional_field,
- '#weight' => 10,
- '#theme' => 'mymodule_my_additional_field',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_view_alter.twig
deleted file mode 100644
index 0a6cca38e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_term_view_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_taxonomy_term_view_alter().
- */
-function {{ machine_name }}_taxonomy_term_view_alter(&$build) {
- if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
- // Change its weight.
- $build['an_additional_field']['#weight'] = -10;
- }
-
- // Add a #post_render callback to act on the rendered HTML of the term.
- $build['#post_render'][] = 'my_module_node_post_render';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_delete.twig
deleted file mode 100644
index 749768e75..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_taxonomy_vocabulary_delete().
- */
-function {{ machine_name }}_taxonomy_vocabulary_delete($vocabulary) {
- db_delete('mytable')
- ->condition('vid', $vocabulary->vid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_insert.twig
deleted file mode 100644
index 4f04b98a5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_insert.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_taxonomy_vocabulary_insert().
- */
-function {{ machine_name }}_taxonomy_vocabulary_insert($vocabulary) {
- if ($vocabulary->machine_name == 'my_vocabulary') {
- $vocabulary->weight = 100;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_load.twig
deleted file mode 100644
index 097851086..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_load.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_taxonomy_vocabulary_load().
- */
-function {{ machine_name }}_taxonomy_vocabulary_load($vocabularies) {
- $result = db_select('mytable', 'm')
- ->fields('m', array('vid', 'foo'))
- ->condition('m.vid', array_keys($vocabularies), 'IN')
- ->execute();
- foreach ($result as $record) {
- $vocabularies[$record->vid]->foo = $record->foo;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_presave.twig
deleted file mode 100644
index ef15a044a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_presave.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_taxonomy_vocabulary_presave().
- */
-function {{ machine_name }}_taxonomy_vocabulary_presave($vocabulary) {
- $vocabulary->foo = 'bar';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_update.twig
deleted file mode 100644
index 97c2c5190..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_update.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_taxonomy_vocabulary_update().
- */
-function {{ machine_name }}_taxonomy_vocabulary_update($vocabulary) {
- db_update('mytable')
- ->fields(array('foo' => $vocabulary->foo))
- ->condition('vid', $vocabulary->vid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_finished.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_finished.twig
deleted file mode 100644
index dff6f4af6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_finished.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_test_finished().
- */
-function {{ machine_name }}_test_finished($results) {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_group_finished.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_group_finished.twig
deleted file mode 100644
index b2e850ef3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_group_finished.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_test_group_finished().
- */
-function {{ machine_name }}_test_group_finished() {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_group_started.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_group_started.twig
deleted file mode 100644
index fe1c85848..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/test_group_started.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_test_group_started().
- */
-function {{ machine_name }}_test_group_started() {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme.twig
deleted file mode 100644
index 7c05a465d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme.twig
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Implements hook_theme().
- */
-function {{ machine_name }}_theme($existing, $type, $theme, $path) {
- return array(
- 'forum_display' => array(
- 'variables' => array('forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
- ),
- 'forum_list' => array(
- 'variables' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL),
- ),
- 'forum_topic_list' => array(
- 'variables' => array('tid' => NULL, 'topics' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
- ),
- 'forum_icon' => array(
- 'variables' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0),
- ),
- 'status_report' => array(
- 'render element' => 'requirements',
- 'file' => 'system.admin.inc',
- ),
- 'system_date_time_settings' => array(
- 'render element' => 'form',
- 'file' => 'system.admin.inc',
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme_registry_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme_registry_alter.twig
deleted file mode 100644
index cdbb17e9f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme_registry_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_theme_registry_alter().
- */
-function {{ machine_name }}_theme_registry_alter(&$theme_registry) {
- // Kill the next/previous forum topic navigation links.
- foreach ($theme_registry['forum_topic_navigation']['preprocess functions'] as $key => $value) {
- if ($value == 'template_preprocess_forum_topic_navigation') {
- unset($theme_registry['forum_topic_navigation']['preprocess functions'][$key]);
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/themes_disabled.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/themes_disabled.twig
deleted file mode 100644
index e24cf46b8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/themes_disabled.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_themes_disabled().
- */
-function {{ machine_name }}_themes_disabled($theme_list) {
- // Clear all update module caches.
- _update_cache_clear();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/themes_enabled.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/themes_enabled.twig
deleted file mode 100644
index e7205725b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/themes_enabled.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_themes_enabled().
- */
-function {{ machine_name }}_themes_enabled($theme_list) {
- foreach ($theme_list as $theme) {
- block_theme_initialize($theme);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/token_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/token_info.twig
deleted file mode 100644
index 6850c7cb6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/token_info.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Implements hook_token_info().
- */
-function {{ machine_name }}_token_info() {
- $type = array(
- 'name' => t('Nodes'),
- 'description' => t('Tokens related to individual nodes.'),
- 'needs-data' => 'node',
- );
-
- // Core tokens for nodes.
- $node['nid'] = array(
- 'name' => t("Node ID"),
- 'description' => t("The unique ID of the node."),
- );
- $node['title'] = array(
- 'name' => t("Title"),
- 'description' => t("The title of the node."),
- );
- $node['edit-url'] = array(
- 'name' => t("Edit URL"),
- 'description' => t("The URL of the node's edit page."),
- );
-
- // Chained tokens for nodes.
- $node['created'] = array(
- 'name' => t("Date created"),
- 'description' => t("The date the node was posted."),
- 'type' => 'date',
- );
- $node['author'] = array(
- 'name' => t("Author"),
- 'description' => t("The author of the node."),
- 'type' => 'user',
- );
-
- return array(
- 'types' => array('node' => $type),
- 'tokens' => array('node' => $node),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/token_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/token_info_alter.twig
deleted file mode 100644
index 911b98bb4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/token_info_alter.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Implements hook_token_info_alter().
- */
-function {{ machine_name }}_token_info_alter(&$data) {
- // Modify description of node tokens for our site.
- $data['tokens']['node']['nid'] = array(
- 'name' => t("Node ID"),
- 'description' => t("The unique ID of the article."),
- );
- $data['tokens']['node']['title'] = array(
- 'name' => t("Title"),
- 'description' => t("The title of the article."),
- );
-
- // Chained tokens for nodes.
- $data['tokens']['node']['created'] = array(
- 'name' => t("Date created"),
- 'description' => t("The date the article was posted."),
- 'type' => 'date',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/tokens.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/tokens.twig
deleted file mode 100644
index 8e3f911e2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/tokens.twig
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * Implements hook_tokens().
- */
-function {{ machine_name }}_tokens($type, $tokens, array $data = array(), array $options = array()) {
- $url_options = array('absolute' => TRUE);
- if (isset($options['language'])) {
- $url_options['language'] = $options['language'];
- $language_code = $options['language']->language;
- }
- else {
- $language_code = NULL;
- }
- $sanitize = !empty($options['sanitize']);
-
- $replacements = array();
-
- if ($type == 'node' && !empty($data['node'])) {
- $node = $data['node'];
-
- foreach ($tokens as $name => $original) {
- switch ($name) {
- // Simple key values on the node.
- case 'nid':
- $replacements[$original] = $node->nid;
- break;
-
- case 'title':
- $replacements[$original] = $sanitize ? check_plain($node->title) : $node->title;
- break;
-
- case 'edit-url':
- $replacements[$original] = url('node/' . $node->nid . '/edit', $url_options);
- break;
-
- // Default values for the chained tokens handled below.
- case 'author':
- $name = ($node->uid == 0) ? variable_get('anonymous', t('Anonymous')) : $node->name;
- $replacements[$original] = $sanitize ? filter_xss($name) : $name;
- break;
-
- case 'created':
- $replacements[$original] = format_date($node->created, 'medium', '', NULL, $language_code);
- break;
- }
- }
-
- if ($author_tokens = token_find_with_prefix($tokens, 'author')) {
- $author = user_load($node->uid);
- $replacements += token_generate('user', $author_tokens, array('user' => $author), $options);
- }
-
- if ($created_tokens = token_find_with_prefix($tokens, 'created')) {
- $replacements += token_generate('date', $created_tokens, array('date' => $node->created), $options);
- }
- }
-
- return $replacements;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/tokens_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/tokens_alter.twig
deleted file mode 100644
index b6014496c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/tokens_alter.twig
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Implements hook_tokens_alter().
- */
-function {{ machine_name }}_tokens_alter(array &$replacements, array $context) {
- $options = $context['options'];
-
- if (isset($options['language'])) {
- $url_options['language'] = $options['language'];
- $language_code = $options['language']->language;
- }
- else {
- $language_code = NULL;
- }
- $sanitize = !empty($options['sanitize']);
-
- if ($context['type'] == 'node' && !empty($context['data']['node'])) {
- $node = $context['data']['node'];
-
- // Alter the [node:title] token, and replace it with the rendered content
- // of a field (field_title).
- if (isset($context['tokens']['title'])) {
- $title = field_view_field('node', $node, 'field_title', 'default', $language_code);
- $replacements[$context['tokens']['title']] = drupal_render($title);
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/translated_menu_link_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/translated_menu_link_alter.twig
deleted file mode 100644
index 30945514c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/translated_menu_link_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_translated_menu_link_alter().
- */
-function {{ machine_name }}_translated_menu_link_alter(&$item, $map) {
- if ($item['href'] == 'devel/cache/clear') {
- $item['localized_options']['query'] = drupal_get_destination();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_info.twig
deleted file mode 100644
index 3972bd2dc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_info.twig
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Implements hook_trigger_info().
- */
-function {{ machine_name }}_trigger_info() {
- return array(
- 'node' => array(
- 'node_presave' => array(
- 'label' => t('When either saving new content or updating existing content'),
- ),
- 'node_insert' => array(
- 'label' => t('After saving new content'),
- ),
- 'node_update' => array(
- 'label' => t('After saving updated content'),
- ),
- 'node_delete' => array(
- 'label' => t('After deleting content'),
- ),
- 'node_view' => array(
- 'label' => t('When content is viewed by an authenticated user'),
- ),
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_info_alter.twig
deleted file mode 100644
index fd51f8daa..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/trigger_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_trigger_info_alter().
- */
-function {{ machine_name }}_trigger_info_alter(&$triggers) {
- $triggers['node']['node_insert']['label'] = t('When content is saved');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/uninstall.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/uninstall.twig
deleted file mode 100644
index 32017d32a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/uninstall.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_uninstall().
- */
-function {{ machine_name }}_uninstall() {
- variable_del('upload_file_types');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update.twig
deleted file mode 100644
index 9798ba838..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_update().
- */
-function {{ machine_name }}_update($node) {
- db_update('mytable')
- ->fields(array('extra' => $node->extra))
- ->condition('nid', $node->nid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_N.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_N.twig
deleted file mode 100644
index af5a8e0d5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_N.twig
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Implements hook_update_N().
- */
-function {{ machine_name }}_update_N(&$sandbox) {
- // For non-multipass updates, the signature can simply be;
- // function {{ machine_name }}_update_N() {
-
- // For most updates, the following is sufficient.
- db_add_field('mytable1', 'newcol', array('type' => 'int', 'not null' => TRUE, 'description' => 'My new integer column.'));
-
- // However, for more complex operations that may take a long time,
- // you may hook into Batch API as in the following example.
-
- // Update 3 users at a time to have an exclamation point after their names.
- // (They're really happy that we can do batch API in this hook!)
- if (!isset($sandbox['progress'])) {
- $sandbox['progress'] = 0;
- $sandbox['current_uid'] = 0;
- // We'll -1 to disregard the uid 0...
- $sandbox['max'] = db_query('SELECT COUNT(DISTINCT uid) FROM {users}')->fetchField() - 1;
- }
-
- $users = db_select('users', 'u')
- ->fields('u', array('uid', 'name'))
- ->condition('uid', $sandbox['current_uid'], '>')
- ->range(0, 3)
- ->orderBy('uid', 'ASC')
- ->execute();
-
- foreach ($users as $user) {
- $user->name .= '!';
- db_update('users')
- ->fields(array('name' => $user->name))
- ->condition('uid', $user->uid)
- ->execute();
-
- $sandbox['progress']++;
- $sandbox['current_uid'] = $user->uid;
- }
-
- $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']);
-
- // To display a message to the user when the update is completed, return it.
- // If you do not want to display a completion message, simply return nothing.
- return t('The update did what it was supposed to do.');
-
- // In case of an error, simply throw an exception with an error message.
- throw new DrupalUpdateException('Something went wrong; here is what you should do.');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_dependencies.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_dependencies.twig
deleted file mode 100644
index 009d4b277..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_dependencies.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Implements hook_update_dependencies().
- */
-function {{ machine_name }}_update_dependencies() {
- // Indicate that the mymodule_update_7000() function provided by this module
- // must run after the another_module_update_7002() function provided by the
- // 'another_module' module.
- $dependencies['mymodule'][7000] = array(
- 'another_module' => 7002,
- );
- // Indicate that the mymodule_update_7001() function provided by this module
- // must run before the yet_another_module_update_7004() function provided by
- // the 'yet_another_module' module. (Note that declaring dependencies in this
- // direction should be done only in rare situations, since it can lead to the
- // following problem: If a site has already run the yet_another_module
- // module's database updates before it updates its codebase to pick up the
- // newest mymodule code, then the dependency declared here will be ignored.)
- $dependencies['yet_another_module'][7004] = array(
- 'mymodule' => 7001,
- );
- return $dependencies;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_index.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_index.twig
deleted file mode 100644
index 1052df6cd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_index.twig
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Implements hook_update_index().
- */
-function {{ machine_name }}_update_index() {
- $limit = (int)variable_get('search_cron_limit', 100);
-
- $result = db_query_range("SELECT n.nid FROM {node} n LEFT JOIN {search_dataset} d ON d.type = 'node' AND d.sid = n.nid WHERE d.sid IS NULL OR d.reindex <> 0 ORDER BY d.reindex ASC, n.nid ASC", 0, $limit);
-
- foreach ($result as $node) {
- $node = node_load($node->nid);
-
- // Save the changed time of the most recent indexed node, for the search
- // results half-life calculation.
- variable_set('node_cron_last', $node->changed);
-
- // Render the node.
- node_build_content($node, 'search_index');
- $node->rendered = drupal_render($node->content);
-
- $text = '' . check_plain($node->title) . '
' . $node->rendered;
-
- // Fetch extra data normally not visible
- $extra = module_invoke_all('node_update_index', $node);
- foreach ($extra as $t) {
- $text .= $t;
- }
-
- // Update index
- search_index($node->nid, 'node', $text);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_last_removed.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_last_removed.twig
deleted file mode 100644
index bc17f6f28..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_last_removed.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_update_last_removed().
- */
-function {{ machine_name }}_update_last_removed() {
- // We've removed the 5.x-1.x version of mymodule, including database updates.
- // The next update function is mymodule_update_5200().
- return 5103;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_projects_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_projects_alter.twig
deleted file mode 100644
index b2bd0d3e4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_projects_alter.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Implements hook_update_projects_alter().
- */
-function {{ machine_name }}_update_projects_alter(&$projects) {
- // Hide a site-specific module from the list.
- unset($projects['site_specific_module']);
-
- // Add a disabled module to the list.
- // The key for the array should be the machine-readable project "short name".
- $projects['disabled_project_name'] = array(
- // Machine-readable project short name (same as the array key above).
- 'name' => 'disabled_project_name',
- // Array of values from the main .info file for this project.
- 'info' => array(
- 'name' => 'Some disabled module',
- 'description' => 'A module not enabled on the site that you want to see in the available updates report.',
- 'version' => '7.x-1.0',
- 'core' => '7.x',
- // The maximum file change time (the "ctime" returned by the filectime()
- // PHP method) for all of the .info files included in this project.
- '_info_file_ctime' => 1243888165,
- ),
- // The date stamp when the project was released, if known. If the disabled
- // project was an officially packaged release from drupal.org, this will
- // be included in the .info file as the 'datestamp' field. This only
- // really matters for development snapshot releases that are regenerated,
- // so it can be left undefined or set to 0 in most cases.
- 'datestamp' => 1243888185,
- // Any modules (or themes) included in this project. Keyed by machine-
- // readable "short name", value is the human-readable project name printed
- // in the UI.
- 'includes' => array(
- 'disabled_project' => 'Disabled module',
- 'disabled_project_helper' => 'Disabled module helper module',
- 'disabled_project_foo' => 'Disabled module foo add-on module',
- ),
- // Does this project contain a 'module', 'theme', 'disabled-module', or
- // 'disabled-theme'?
- 'project_type' => 'disabled-module',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_status_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_status_alter.twig
deleted file mode 100644
index bc7ab68bd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_status_alter.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Implements hook_update_status_alter().
- */
-function {{ machine_name }}_update_status_alter(&$projects) {
- $settings = variable_get('update_advanced_project_settings', array());
- foreach ($projects as $project => $project_info) {
- if (isset($settings[$project]) && isset($settings[$project]['check']) &&
- ($settings[$project]['check'] == 'never' ||
- (isset($project_info['recommended']) &&
- $settings[$project]['check'] === $project_info['recommended']))) {
- $projects[$project]['status'] = UPDATE_NOT_CHECKED;
- $projects[$project]['reason'] = t('Ignored from settings');
- if (!empty($settings[$project]['notes'])) {
- $projects[$project]['extra'][] = array(
- 'class' => array('admin-note'),
- 'label' => t('Administrator note'),
- 'data' => $settings[$project]['notes'],
- );
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/updater_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/updater_info.twig
deleted file mode 100644
index dc6e6cc98..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/updater_info.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_updater_info().
- */
-function {{ machine_name }}_updater_info() {
- return array(
- 'module' => array(
- 'class' => 'ModuleUpdater',
- 'name' => t('Update modules'),
- 'weight' => 0,
- ),
- 'theme' => array(
- 'class' => 'ThemeUpdater',
- 'name' => t('Update themes'),
- 'weight' => 0,
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/updater_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/updater_info_alter.twig
deleted file mode 100644
index c82213042..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/updater_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_updater_info_alter().
- */
-function {{ machine_name }}_updater_info_alter(&$updaters) {
- // Adjust weight so that the theme Updater gets a chance to handle a given
- // update task before module updaters.
- $updaters['theme']['weight'] = -1;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/url_inbound_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/url_inbound_alter.twig
deleted file mode 100644
index f62e7b4db..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/url_inbound_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_url_inbound_alter().
- */
-function {{ machine_name }}_url_inbound_alter(&$path, $original_path, $path_language) {
- // Create the path user/me/edit, which allows a user to edit their account.
- if (preg_match('|^user/me/edit(/.*)?|', $path, $matches)) {
- global $user;
- $path = 'user/' . $user->uid . '/edit' . $matches[1];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/url_outbound_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/url_outbound_alter.twig
deleted file mode 100644
index 903a608bb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/url_outbound_alter.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Implements hook_url_outbound_alter().
- */
-function {{ machine_name }}_url_outbound_alter(&$path, &$options, $original_path) {
- // Use an external RSS feed rather than the Drupal one.
- if ($path == 'rss.xml') {
- $path = 'http://example.com/rss.xml';
- $options['external'] = TRUE;
- }
-
- // Instead of pointing to user/[uid]/edit, point to user/me/edit.
- if (preg_match('|^user/([0-9]*)/edit(/.*)?|', $path, $matches)) {
- global $user;
- if ($user->uid == $matches[1]) {
- $path = 'user/me/edit' . $matches[2];
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_cancel.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_cancel.twig
deleted file mode 100644
index e1d45bb42..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_cancel.twig
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Implements hook_user_cancel().
- */
-function {{ machine_name }}_user_cancel($edit, $account, $method) {
- switch ($method) {
- case 'user_cancel_block_unpublish':
- // Unpublish nodes (current revisions).
- module_load_include('inc', 'node', 'node.admin');
- $nodes = db_select('node', 'n')
- ->fields('n', array('nid'))
- ->condition('uid', $account->uid)
- ->execute()
- ->fetchCol();
- node_mass_update($nodes, array('status' => 0));
- break;
-
- case 'user_cancel_reassign':
- // Anonymize nodes (current revisions).
- module_load_include('inc', 'node', 'node.admin');
- $nodes = db_select('node', 'n')
- ->fields('n', array('nid'))
- ->condition('uid', $account->uid)
- ->execute()
- ->fetchCol();
- node_mass_update($nodes, array('uid' => 0));
- // Anonymize old revisions.
- db_update('node_revision')
- ->fields(array('uid' => 0))
- ->condition('uid', $account->uid)
- ->execute();
- // Clean history.
- db_delete('history')
- ->condition('uid', $account->uid)
- ->execute();
- break;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_cancel_methods_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_cancel_methods_alter.twig
deleted file mode 100644
index ca5d1d75b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_cancel_methods_alter.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Implements hook_user_cancel_methods_alter().
- */
-function {{ machine_name }}_user_cancel_methods_alter(&$methods) {
- // Limit access to disable account and unpublish content method.
- $methods['user_cancel_block_unpublish']['access'] = user_access('administer site configuration');
-
- // Remove the content re-assigning method.
- unset($methods['user_cancel_reassign']);
-
- // Add a custom zero-out method.
- $methods['mymodule_zero_out'] = array(
- 'title' => t('Delete the account and remove all content.'),
- 'description' => t('All your content will be replaced by empty strings.'),
- // access should be used for administrative methods only.
- 'access' => user_access('access zero-out account cancellation method'),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_categories.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_categories.twig
deleted file mode 100644
index 7b597e0e7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_categories.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_user_categories().
- */
-function {{ machine_name }}_user_categories() {
- return array(array(
- 'name' => 'account',
- 'title' => t('Account settings'),
- 'weight' => 1,
- ));
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_delete.twig
deleted file mode 100644
index e5379de4f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_user_delete().
- */
-function {{ machine_name }}_user_delete($account) {
- db_delete('mytable')
- ->condition('uid', $account->uid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_insert.twig
deleted file mode 100644
index 66dd593fb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_user_insert().
- */
-function {{ machine_name }}_user_insert(&$edit, $account, $category) {
- db_insert('mytable')
- ->fields(array(
- 'myfield' => $edit['myfield'],
- 'uid' => $account->uid,
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_load.twig
deleted file mode 100644
index adb193ea6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_load.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_user_load().
- */
-function {{ machine_name }}_user_load($users) {
- $result = db_query('SELECT uid, foo FROM {my_table} WHERE uid IN (:uids)', array(':uids' => array_keys($users)));
- foreach ($result as $record) {
- $users[$record->uid]->foo = $record->foo;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_login.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_login.twig
deleted file mode 100644
index c4879e91c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_login.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_user_login().
- */
-function {{ machine_name }}_user_login(&$edit, $account) {
- // If the user has a NULL time zone, notify them to set a time zone.
- if (!$account->timezone && variable_get('configurable_timezones', 1) && variable_get('empty_timezone_message', 0)) {
- drupal_set_message(t('Configure your account time zone setting.', array('@user-edit' => url("user/$account->uid/edit", array('query' => drupal_get_destination(), 'fragment' => 'edit-timezone')))));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_logout.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_logout.twig
deleted file mode 100644
index cab41eebc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_logout.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_user_logout().
- */
-function {{ machine_name }}_user_logout($account) {
- db_insert('logouts')
- ->fields(array(
- 'uid' => $account->uid,
- 'time' => time(),
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig
deleted file mode 100644
index 27b9eec90..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Implements hook_user_operations().
- */
-function {{ machine_name }}_user_operations() {
- $operations = array(
- 'unblock' => array(
- 'label' => t('Unblock the selected users'),
- 'callback' => 'user_user_operations_unblock',
- ),
- 'block' => array(
- 'label' => t('Block the selected users'),
- 'callback' => 'user_user_operations_block',
- ),
- 'cancel' => array(
- 'label' => t('Cancel the selected user accounts'),
- ),
- );
- return $operations;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_presave.twig
deleted file mode 100644
index dcedbc4af..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_presave.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_user_presave().
- */
-function {{ machine_name }}_user_presave(&$edit, $account, $category) {
- // Make sure that our form value 'mymodule_foo' is stored as
- // 'mymodule_bar' in the 'data' (serialized) column.
- if (isset($edit['mymodule_foo'])) {
- $edit['data']['mymodule_bar'] = $edit['mymodule_foo'];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_delete.twig
deleted file mode 100644
index bfc140ac0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_delete.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_user_role_delete().
- */
-function {{ machine_name }}_user_role_delete($role) {
- // Delete existing instances of the deleted role.
- db_delete('my_module_table')
- ->condition('rid', $role->rid)
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_insert.twig
deleted file mode 100644
index 857cd9a93..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_insert.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_user_role_insert().
- */
-function {{ machine_name }}_user_role_insert($role) {
- // Save extra fields provided by the module to user roles.
- db_insert('my_module_table')
- ->fields(array(
- 'rid' => $role->rid,
- 'role_description' => $role->description,
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_presave.twig
deleted file mode 100644
index 4f41ef5c1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_presave.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_user_role_presave().
- */
-function {{ machine_name }}_user_role_presave($role) {
- // Set a UUID for the user role if it doesn't already exist
- if (empty($role->uuid)) {
- $role->uuid = uuid_uuid();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_update.twig
deleted file mode 100644
index 9f8fbbad9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_role_update.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_user_role_update().
- */
-function {{ machine_name }}_user_role_update($role) {
- // Save extra fields provided by the module to user roles.
- db_merge('my_module_table')
- ->key(array('rid' => $role->rid))
- ->fields(array(
- 'role_description' => $role->description
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_update.twig
deleted file mode 100644
index 26b09dcf1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_update.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_user_update().
- */
-function {{ machine_name }}_user_update(&$edit, $account, $category) {
- db_insert('user_changes')
- ->fields(array(
- 'uid' => $account->uid,
- 'changed' => time(),
- ))
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_view.twig
deleted file mode 100644
index 7c427d765..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_view.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_user_view().
- */
-function {{ machine_name }}_user_view($account, $view_mode, $langcode) {
- if (user_access('create blog content', $account)) {
- $account->content['summary']['blog'] = array(
- '#type' => 'user_profile_item',
- '#title' => t('Blog'),
- '#markup' => l(t('View recent blog entries'), "blog/$account->uid", array('attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => format_username($account)))))),
- '#attributes' => array('class' => array('blog')),
- );
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_view_alter.twig
deleted file mode 100644
index b85027085..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_view_alter.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_user_view_alter().
- */
-function {{ machine_name }}_user_view_alter(&$build) {
- // Check for the existence of a field added by another module.
- if (isset($build['an_additional_field'])) {
- // Change its weight.
- $build['an_additional_field']['#weight'] = -10;
- }
-
- // Add a #post_render callback to act on the rendered HTML of the user.
- $build['#post_render'][] = 'my_module_user_post_render';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/username_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/username_alter.twig
deleted file mode 100644
index 5892dc55a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/username_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_username_alter().
- */
-function {{ machine_name }}_username_alter(&$name, $account) {
- // Display the user's uid instead of name.
- if (isset($account->uid)) {
- $name = t('User !uid', array('!uid' => $account->uid));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/validate.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/validate.twig
deleted file mode 100644
index 136abb12a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/validate.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_validate().
- */
-function {{ machine_name }}_validate($node, $form, &$form_state) {
- if (isset($node->end) && isset($node->start)) {
- if ($node->start > $node->end) {
- form_set_error('time', t('An event may not end before it starts.'));
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/verify_update_archive.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/verify_update_archive.twig
deleted file mode 100644
index ffd96e909..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/verify_update_archive.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_verify_update_archive().
- */
-function {{ machine_name }}_verify_update_archive($project, $archive_file, $directory) {
- $errors = array();
- if (!file_exists($directory)) {
- $errors[] = t('The %directory does not exist.', array('%directory' => $directory));
- }
- // Add other checks on the archive integrity here.
- return $errors;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/view.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/view.twig
deleted file mode 100644
index 650db6f2e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/view.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Implements hook_view().
- */
-function {{ machine_name }}_view($node, $view_mode, $langcode = NULL) {
- if ($view_mode == 'full' && node_is_page($node)) {
- $breadcrumb = array();
- $breadcrumb[] = l(t('Home'), NULL);
- $breadcrumb[] = l(t('Example'), 'example');
- $breadcrumb[] = l($node->field1, 'example/' . $node->field1);
- drupal_set_breadcrumb($breadcrumb);
- }
-
- $node->content['myfield'] = array(
- '#markup' => theme('mymodule_myfield', $node->myfield),
- '#weight' => 1,
- );
-
- return $node;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/watchdog.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/watchdog.twig
deleted file mode 100644
index 8e6a77b5e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/watchdog.twig
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Implements hook_watchdog().
- */
-function {{ machine_name }}_watchdog(array $log_entry) {
- global $base_url, $language;
-
- $severity_list = array(
- WATCHDOG_EMERGENCY => t('Emergency'),
- WATCHDOG_ALERT => t('Alert'),
- WATCHDOG_CRITICAL => t('Critical'),
- WATCHDOG_ERROR => t('Error'),
- WATCHDOG_WARNING => t('Warning'),
- WATCHDOG_NOTICE => t('Notice'),
- WATCHDOG_INFO => t('Info'),
- WATCHDOG_DEBUG => t('Debug'),
- );
-
- $to = 'someone@example.com';
- $params = array();
- $params['subject'] = t('[@site_name] @severity_desc: Alert from your web site', array(
- '@site_name' => variable_get('site_name', 'Drupal'),
- '@severity_desc' => $severity_list[$log_entry['severity']],
- ));
-
- $params['message'] = "\nSite: @base_url";
- $params['message'] .= "\nSeverity: (@severity) @severity_desc";
- $params['message'] .= "\nTimestamp: @timestamp";
- $params['message'] .= "\nType: @type";
- $params['message'] .= "\nIP Address: @ip";
- $params['message'] .= "\nRequest URI: @request_uri";
- $params['message'] .= "\nReferrer URI: @referer_uri";
- $params['message'] .= "\nUser: (@uid) @name";
- $params['message'] .= "\nLink: @link";
- $params['message'] .= "\nMessage: \n\n@message";
-
- $params['message'] = t($params['message'], array(
- '@base_url' => $base_url,
- '@severity' => $log_entry['severity'],
- '@severity_desc' => $severity_list[$log_entry['severity']],
- '@timestamp' => format_date($log_entry['timestamp']),
- '@type' => $log_entry['type'],
- '@ip' => $log_entry['ip'],
- '@request_uri' => $log_entry['request_uri'],
- '@referer_uri' => $log_entry['referer'],
- '@uid' => $log_entry['uid'],
- '@name' => $log_entry['user']->name,
- '@link' => strip_tags($log_entry['link']),
- '@message' => strip_tags($log_entry['message']),
- ));
-
- drupal_mail('emaillog', 'entry', $to, $language, $params);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/xmlrpc.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/xmlrpc.twig
deleted file mode 100644
index e69279d55..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/xmlrpc.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_xmlrpc().
- */
-function {{ machine_name }}_xmlrpc() {
- return array(
- 'drupal.login' => 'drupal_login',
- array(
- 'drupal.site.ping',
- 'drupal_directory_ping',
- array('boolean', 'string', 'string', 'string', 'string', 'string'),
- t('Handling ping request'))
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/xmlrpc_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/xmlrpc_alter.twig
deleted file mode 100644
index 8896c13c6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/xmlrpc_alter.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Implements hook_xmlrpc_alter().
- */
-function {{ machine_name }}_xmlrpc_alter(&$methods) {
- // Directly change a simple method.
- $methods['drupal.login'] = 'mymodule_login';
-
- // Alter complex definitions.
- foreach ($methods as $key => &$method) {
- // Skip simple method definitions.
- if (!is_int($key)) {
- continue;
- }
- // Perform the wanted manipulation.
- if ($method[0] == 'drupal.site.ping') {
- $method[1] = 'mymodule_directory_ping';
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/install.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/install.twig
deleted file mode 100644
index cadbcf329..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/install.twig
+++ /dev/null
@@ -1,44 +0,0 @@
- 'Table description',
- 'fields' => array(
- 'id' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'description' => 'Primary Key: Unique ID.',
- ),
- 'title' => array(
- 'type' => 'varchar',
- 'length' => 64,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'Column description',
- ),
- 'weight' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'Column description',
- ),
- ),
- 'primary key' => array('id'),
- 'unique keys' => array(
- 'title' => array('title'),
- ),
- 'indexes' => array(
- 'weight' => array('weight'),
- ),
- );
-
- return $schema;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/javascript.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/javascript.twig
deleted file mode 100644
index 23beb5bfc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/javascript.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * {{ name }} behaviors.
- */
-(function ($) {
-
- /**
- * Behavior description.
- */
- Drupal.behaviors.{{ machine_name|camelize(false) }} = {
- attach: function (context, settings) {
-
- console.log('It works!');
-
- }
- }
-
-}(jQuery));
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/module-info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/module-info.twig
deleted file mode 100644
index 17ae0affc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/module-info.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-name = {{ name }}
-description = {{ description }}
-package = {{ package }}
-core = 7.x
-
-;configure = admin/config/system/{{ machine_name }}
-;dependencies[] = system (>7.34)
-;files[] = tests/{{ machine_name }}.test
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/module.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/module.twig
deleted file mode 100644
index 3a3b40835..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/module.twig
+++ /dev/null
@@ -1,57 +0,0 @@
- '{{ machine_name }}',
- 'description' => '{{ machine_name }} main page.',
- 'page callback' => '{{ machine_name }}_main_page',
- 'page arguments' => array('{{ machine_name }}_settings_form'),
- 'access arguments' => array('view {{ machine_name }} page'),
- 'file' => '{{ machine_name }}.pages.inc',
- 'type' => MENU_CALLBACK,
- );
-
- $items['admin/config/system/{{ machine_name }}'] = array(
- 'title' => '{{ name }}',
- 'description' => '{{ name }} settings.',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('{{ machine_name }}_settings_form'),
- 'access arguments' => array('administer {{ machine_name }} configuration'),
- 'file' => '{{ machine_name }}.admin.inc',
- );
-
- return $items;
-}
-
-/**
- * Implements hook_permission().
- */
-function {{ machine_name }}_permission() {
- return array(
- 'view {{ machine_name }} page' => array(
- 'title' => t('View {{ machine_name }} page'),
- 'description' => t('View {{ machine_name }} page.'),
- ),
- 'administer {{ machine_name }} configuration' => array(
- 'title' => t('Administer {{ machine_name }} configuration'),
- 'description' => t('Administer {{ machine_name }} configuration.'),
- 'restrict access' => TRUE,
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/pages.inc.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/pages.inc.twig
deleted file mode 100644
index 157dcab4c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/pages.inc.twig
+++ /dev/null
@@ -1,17 +0,0 @@
- 'mysql',
- * 'database' => 'databasename',
- * 'username' => 'username',
- * 'password' => 'password',
- * 'host' => 'localhost',
- * 'port' => 3306,
- * 'prefix' => 'myprefix_',
- * 'collation' => 'utf8_general_ci',
- * );
- * @endcode
- *
- * The "driver" property indicates what Drupal database driver the
- * connection should use. This is usually the same as the name of the
- * database type, such as mysql or sqlite, but not always. The other
- * properties will vary depending on the driver. For SQLite, you must
- * specify a database file name in a directory that is writable by the
- * webserver. For most other drivers, you must specify a
- * username, password, host, and database name.
- *
- * Transaction support is enabled by default for all drivers that support it,
- * including MySQL. To explicitly disable it, set the 'transactions' key to
- * FALSE.
- * Note that some configurations of MySQL, such as the MyISAM engine, don't
- * support it and will proceed silently even if enabled. If you experience
- * transaction related crashes with such configuration, set the 'transactions'
- * key to FALSE.
- *
- * For each database, you may optionally specify multiple "target" databases.
- * A target database allows Drupal to try to send certain queries to a
- * different database if it can but fall back to the default connection if not.
- * That is useful for master/slave replication, as Drupal may try to connect
- * to a slave server when appropriate and if one is not available will simply
- * fall back to the single master server.
- *
- * The general format for the $databases array is as follows:
- * @code
- * $databases['default']['default'] = $info_array;
- * $databases['default']['slave'][] = $info_array;
- * $databases['default']['slave'][] = $info_array;
- * $databases['extra']['default'] = $info_array;
- * @endcode
- *
- * In the above example, $info_array is an array of settings described above.
- * The first line sets a "default" database that has one master database
- * (the second level default). The second and third lines create an array
- * of potential slave databases. Drupal will select one at random for a given
- * request as needed. The fourth line creates a new database with a name of
- * "extra".
- *
- * For a single database configuration, the following is sufficient:
- * @code
- * $databases['default']['default'] = array(
- * 'driver' => 'mysql',
- * 'database' => 'databasename',
- * 'username' => 'username',
- * 'password' => 'password',
- * 'host' => 'localhost',
- * 'prefix' => 'main_',
- * 'collation' => 'utf8_general_ci',
- * );
- * @endcode
- *
- * For handling full UTF-8 in MySQL, including multi-byte characters such as
- * emojis, Asian symbols, and mathematical symbols, you may set the collation
- * and charset to "utf8mb4" prior to running install.php:
- * @code
- * $databases['default']['default'] = array(
- * 'driver' => 'mysql',
- * 'database' => 'databasename',
- * 'username' => 'username',
- * 'password' => 'password',
- * 'host' => 'localhost',
- * 'charset' => 'utf8mb4',
- * 'collation' => 'utf8mb4_general_ci',
- * );
- * @endcode
- * When using this setting on an existing installation, ensure that all existing
- * tables have been converted to the utf8mb4 charset, for example by using the
- * utf8mb4_convert contributed project available at
- * https://www.drupal.org/project/utf8mb4_convert, so as to prevent mixing data
- * with different charsets.
- * Note this should only be used when all of the following conditions are met:
- * - In order to allow for large indexes, MySQL must be set up with the
- * following my.cnf settings:
- * [mysqld]
- * innodb_large_prefix=true
- * innodb_file_format=barracuda
- * innodb_file_per_table=true
- * These settings are available as of MySQL 5.5.14, and are defaults in
- * MySQL 5.7.7 and up.
- * - The PHP MySQL driver must support the utf8mb4 charset (libmysqlclient
- * 5.5.3 and up, as well as mysqlnd 5.0.9 and up).
- * - The MySQL server must support the utf8mb4 charset (5.5.3 and up).
- *
- * You can optionally set prefixes for some or all database table names
- * by using the 'prefix' setting. If a prefix is specified, the table
- * name will be prepended with its value. Be sure to use valid database
- * characters only, usually alphanumeric and underscore. If no prefixes
- * are desired, leave it as an empty string ''.
- *
- * To have all database names prefixed, set 'prefix' as a string:
- * @code
- * 'prefix' => 'main_',
- * @endcode
- * To provide prefixes for specific tables, set 'prefix' as an array.
- * The array's keys are the table names and the values are the prefixes.
- * The 'default' element is mandatory and holds the prefix for any tables
- * not specified elsewhere in the array. Example:
- * @code
- * 'prefix' => array(
- * 'default' => 'main_',
- * 'users' => 'shared_',
- * 'sessions' => 'shared_',
- * 'role' => 'shared_',
- * 'authmap' => 'shared_',
- * ),
- * @endcode
- * You can also use a reference to a schema/database as a prefix. This may be
- * useful if your Drupal installation exists in a schema that is not the default
- * or you want to access several databases from the same code base at the same
- * time.
- * Example:
- * @code
- * 'prefix' => array(
- * 'default' => 'main.',
- * 'users' => 'shared.',
- * 'sessions' => 'shared.',
- * 'role' => 'shared.',
- * 'authmap' => 'shared.',
- * );
- * @endcode
- * NOTE: MySQL and SQLite's definition of a schema is a database.
- *
- * Advanced users can add or override initial commands to execute when
- * connecting to the database server, as well as PDO connection settings. For
- * example, to enable MySQL SELECT queries to exceed the max_join_size system
- * variable, and to reduce the database connection timeout to 5 seconds:
- *
- * @code
- * $databases['default']['default'] = array(
- * 'init_commands' => array(
- * 'big_selects' => 'SET SQL_BIG_SELECTS=1',
- * ),
- * 'pdo' => array(
- * PDO::ATTR_TIMEOUT => 5,
- * ),
- * );
- * @endcode
- *
- * WARNING: These defaults are designed for database portability. Changing them
- * may cause unexpected behavior, including potential data loss.
- *
- * @see DatabaseConnection_mysql::__construct
- * @see DatabaseConnection_pgsql::__construct
- * @see DatabaseConnection_sqlite::__construct
- *
- * Database configuration format:
- * @code
- * $databases['default']['default'] = array(
- * 'driver' => 'mysql',
- * 'database' => 'databasename',
- * 'username' => 'username',
- * 'password' => 'password',
- * 'host' => 'localhost',
- * 'prefix' => '',
- * );
- * $databases['default']['default'] = array(
- * 'driver' => 'pgsql',
- * 'database' => 'databasename',
- * 'username' => 'username',
- * 'password' => 'password',
- * 'host' => 'localhost',
- * 'prefix' => '',
- * );
- * $databases['default']['default'] = array(
- * 'driver' => 'sqlite',
- * 'database' => '/path/to/databasefilename',
- * );
- * @endcode
- */
-$databases = array (
- 'default' =>
- array (
- 'default' =>
- array (
- 'database' => '{{ db_name }}',
- 'username' => '{{ db_user }}',
- 'password' => '{{ db_password }}',
- 'host' => 'localhost',
- 'port' => '',
- 'driver' => '{{ db_driver }}',
- 'prefix' => '',
- ),
- ),
-);
-
-/**
- * Access control for update.php script.
- *
- * If you are updating your Drupal installation using the update.php script but
- * are not logged in using either an account with the "Administer software
- * updates" permission or the site maintenance account (the account that was
- * created during installation), you will need to modify the access check
- * statement below. Change the FALSE to a TRUE to disable the access check.
- * After finishing the upgrade, be sure to open this file again and change the
- * TRUE back to a FALSE!
- */
-$update_free_access = FALSE;
-
-/**
- * Salt for one-time login links and cancel links, form tokens, etc.
- *
- * This variable will be set to a random value by the installer. All one-time
- * login links will be invalidated if the value is changed. Note that if your
- * site is deployed on a cluster of web servers, you must ensure that this
- * variable has the same value on each server. If this variable is empty, a hash
- * of the serialized database credentials will be used as a fallback salt.
- *
- * For enhanced security, you may set this variable to a value using the
- * contents of a file outside your docroot that is never saved together
- * with any backups of your Drupal files and database.
- *
- * Example:
- * $drupal_hash_salt = file_get_contents('/home/example/salt.txt');
- *
- */
-$drupal_hash_salt = '{{ hash_salt }}';
-
-/**
- * Base URL (optional).
- *
- * If Drupal is generating incorrect URLs on your site, which could
- * be in HTML headers (links to CSS and JS files) or visible links on pages
- * (such as in menus), uncomment the Base URL statement below (remove the
- * leading hash sign) and fill in the absolute URL to your Drupal installation.
- *
- * You might also want to force users to use a given domain.
- * See the .htaccess file for more information.
- *
- * Examples:
- * $base_url = 'http://www.example.com';
- * $base_url = 'http://www.example.com:8888';
- * $base_url = 'http://www.example.com/drupal';
- * $base_url = 'https://www.example.com:8888/drupal';
- *
- * It is not allowed to have a trailing slash; Drupal will add it
- * for you.
- */
-# $base_url = 'http://www.example.com'; // NO trailing slash!
-
-/**
- * PHP settings:
- *
- * To see what PHP settings are possible, including whether they can be set at
- * runtime (by using ini_set()), read the PHP documentation:
- * http://www.php.net/manual/ini.list.php
- * See drupal_environment_initialize() in includes/bootstrap.inc for required
- * runtime settings and the .htaccess file for non-runtime settings. Settings
- * defined there should not be duplicated here so as to avoid conflict issues.
- */
-
-/**
- * Some distributions of Linux (most notably Debian) ship their PHP
- * installations with garbage collection (gc) disabled. Since Drupal depends on
- * PHP's garbage collection for clearing sessions, ensure that garbage
- * collection occurs by using the most common settings.
- */
-ini_set('session.gc_probability', 1);
-ini_set('session.gc_divisor', 100);
-
-/**
- * Set session lifetime (in seconds), i.e. the time from the user's last visit
- * to the active session may be deleted by the session garbage collector. When
- * a session is deleted, authenticated users are logged out, and the contents
- * of the user's $_SESSION variable is discarded.
- */
-ini_set('session.gc_maxlifetime', 200000);
-
-/**
- * Set session cookie lifetime (in seconds), i.e. the time from the session is
- * created to the cookie expires, i.e. when the browser is expected to discard
- * the cookie. The value 0 means "until the browser is closed".
- */
-ini_set('session.cookie_lifetime', 2000000);
-
-/**
- * If you encounter a situation where users post a large amount of text, and
- * the result is stripped out upon viewing but can still be edited, Drupal's
- * output filter may not have sufficient memory to process it. If you
- * experience this issue, you may wish to uncomment the following two lines
- * and increase the limits of these variables. For more information, see
- * http://php.net/manual/pcre.configuration.php.
- */
-# ini_set('pcre.backtrack_limit', 200000);
-# ini_set('pcre.recursion_limit', 200000);
-
-/**
- * Drupal automatically generates a unique session cookie name for each site
- * based on its full domain name. If you have multiple domains pointing at the
- * same Drupal site, you can either redirect them all to a single domain (see
- * comment in .htaccess), or uncomment the line below and specify their shared
- * base domain. Doing so assures that users remain logged in as they cross
- * between your various domains. Make sure to always start the $cookie_domain
- * with a leading dot, as per RFC 2109.
- */
-# $cookie_domain = '.example.com';
-
-/**
- * Variable overrides:
- *
- * To override specific entries in the 'variable' table for this site,
- * set them here. You usually don't need to use this feature. This is
- * useful in a configuration file for a vhost or directory, rather than
- * the default settings.php. Any configuration setting from the 'variable'
- * table can be given a new value. Note that any values you provide in
- * these variable overrides will not be modifiable from the Drupal
- * administration interface.
- *
- * The following overrides are examples:
- * - site_name: Defines the site's name.
- * - theme_default: Defines the default theme for this site.
- * - anonymous: Defines the human-readable name of anonymous users.
- * Remove the leading hash signs to enable.
- */
-# $conf['site_name'] = 'My Drupal site';
-# $conf['theme_default'] = 'garland';
-# $conf['anonymous'] = 'Visitor';
-
-/**
- * A custom theme can be set for the offline page. This applies when the site
- * is explicitly set to maintenance mode through the administration page or when
- * the database is inactive due to an error. It can be set through the
- * 'maintenance_theme' key. The template file should also be copied into the
- * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
- * Note: This setting does not apply to installation and update pages.
- */
-# $conf['maintenance_theme'] = 'bartik';
-
-/**
- * Reverse Proxy Configuration:
- *
- * Reverse proxy servers are often used to enhance the performance
- * of heavily visited sites and may also provide other site caching,
- * security, or encryption benefits. In an environment where Drupal
- * is behind a reverse proxy, the real IP address of the client should
- * be determined such that the correct client IP address is available
- * to Drupal's logging, statistics, and access management systems. In
- * the most simple scenario, the proxy server will add an
- * X-Forwarded-For header to the request that contains the client IP
- * address. However, HTTP headers are vulnerable to spoofing, where a
- * malicious client could bypass restrictions by setting the
- * X-Forwarded-For header directly. Therefore, Drupal's proxy
- * configuration requires the IP addresses of all remote proxies to be
- * specified in $conf['reverse_proxy_addresses'] to work correctly.
- *
- * Enable this setting to get Drupal to determine the client IP from
- * the X-Forwarded-For header (or $conf['reverse_proxy_header'] if set).
- * If you are unsure about this setting, do not have a reverse proxy,
- * or Drupal operates in a shared hosting environment, this setting
- * should remain commented out.
- *
- * In order for this setting to be used you must specify every possible
- * reverse proxy IP address in $conf['reverse_proxy_addresses'].
- * If a complete list of reverse proxies is not available in your
- * environment (for example, if you use a CDN) you may set the
- * $_SERVER['REMOTE_ADDR'] variable directly in settings.php.
- * Be aware, however, that it is likely that this would allow IP
- * address spoofing unless more advanced precautions are taken.
- */
-# $conf['reverse_proxy'] = TRUE;
-
-/**
- * Specify every reverse proxy IP address in your environment.
- * This setting is required if $conf['reverse_proxy'] is TRUE.
- */
-# $conf['reverse_proxy_addresses'] = array('a.b.c.d', ...);
-
-/**
- * Set this value if your proxy server sends the client IP in a header
- * other than X-Forwarded-For.
- */
-# $conf['reverse_proxy_header'] = 'HTTP_X_CLUSTER_CLIENT_IP';
-
-/**
- * Page caching:
- *
- * By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page
- * views. This tells a HTTP proxy that it may return a page from its local
- * cache without contacting the web server, if the user sends the same Cookie
- * header as the user who originally requested the cached page. Without "Vary:
- * Cookie", authenticated users would also be served the anonymous page from
- * the cache. If the site has mostly anonymous users except a few known
- * editors/administrators, the Vary header can be omitted. This allows for
- * better caching in HTTP proxies (including reverse proxies), i.e. even if
- * clients send different cookies, they still get content served from the cache.
- * However, authenticated users should access the site directly (i.e. not use an
- * HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid
- * getting cached pages from the proxy.
- */
-# $conf['omit_vary_cookie'] = TRUE;
-
-/**
- * CSS/JS aggregated file gzip compression:
- *
- * By default, when CSS or JS aggregation and clean URLs are enabled Drupal will
- * store a gzip compressed (.gz) copy of the aggregated files. If this file is
- * available then rewrite rules in the default .htaccess file will serve these
- * files to browsers that accept gzip encoded content. This allows pages to load
- * faster for these users and has minimal impact on server load. If you are
- * using a webserver other than Apache httpd, or a caching reverse proxy that is
- * configured to cache and compress these files itself you may want to uncomment
- * one or both of the below lines, which will prevent gzip files being stored.
- */
-# $conf['css_gzip_compression'] = FALSE;
-# $conf['js_gzip_compression'] = FALSE;
-
-/**
- * Block caching:
- *
- * Block caching may not be compatible with node access modules depending on
- * how the original block cache policy is defined by the module that provides
- * the block. By default, Drupal therefore disables block caching when one or
- * more modules implement hook_node_grants(). If you consider block caching to
- * be safe on your site and want to bypass this restriction, uncomment the line
- * below.
- */
-# $conf['block_cache_bypass_node_grants'] = TRUE;
-
-/**
- * String overrides:
- *
- * To override specific strings on your site with or without enabling the Locale
- * module, add an entry to this list. This functionality allows you to change
- * a small number of your site's default English language interface strings.
- *
- * Remove the leading hash signs to enable.
- */
-# $conf['locale_custom_strings_en'][''] = array(
-# 'forum' => 'Discussion board',
-# '@count min' => '@count minutes',
-# );
-
-/**
- *
- * IP blocking:
- *
- * To bypass database queries for denied IP addresses, use this setting.
- * Drupal queries the {blocked_ips} table by default on every page request
- * for both authenticated and anonymous users. This allows the system to
- * block IP addresses from within the administrative interface and before any
- * modules are loaded. However on high traffic websites you may want to avoid
- * this query, allowing you to bypass database access altogether for anonymous
- * users under certain caching configurations.
- *
- * If using this setting, you will need to add back any IP addresses which
- * you may have blocked via the administrative interface. Each element of this
- * array represents a blocked IP address. Uncommenting the array and leaving it
- * empty will have the effect of disabling IP blocking on your site.
- *
- * Remove the leading hash signs to enable.
- */
-# $conf['blocked_ips'] = array(
-# 'a.b.c.d',
-# );
-
-/**
- * Fast 404 pages:
- *
- * Drupal can generate fully themed 404 pages. However, some of these responses
- * are for images or other resource files that are not displayed to the user.
- * This can waste bandwidth, and also generate server load.
- *
- * The options below return a simple, fast 404 page for URLs matching a
- * specific pattern:
- * - 404_fast_paths_exclude: A regular expression to match paths to exclude,
- * such as images generated by image styles, or dynamically-resized images.
- * The default pattern provided below also excludes the private file system.
- * If you need to add more paths, you can add '|path' to the expression.
- * - 404_fast_paths: A regular expression to match paths that should return a
- * simple 404 page, rather than the fully themed 404 page. If you don't have
- * any aliases ending in htm or html you can add '|s?html?' to the expression.
- * - 404_fast_html: The html to return for simple 404 pages.
- *
- * Add leading hash signs if you would like to disable this functionality.
- */
-$conf['404_fast_paths_exclude'] = '/\/(?:styles)|(?:system\/files)\//';
-$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
-$conf['404_fast_html'] = '404 Not Found Not Found
The requested URL "@path" was not found on this server.
';
-
-/**
- * By default the page request process will return a fast 404 page for missing
- * files if they match the regular expression set in '404_fast_paths' and not
- * '404_fast_paths_exclude' above. 404 errors will simultaneously be logged in
- * the Drupal system log.
- *
- * You can choose to return a fast 404 page earlier for missing pages (as soon
- * as settings.php is loaded) by uncommenting the line below. This speeds up
- * server response time when loading 404 error pages and prevents the 404 error
- * from being logged in the Drupal system log. In order to prevent valid pages
- * such as image styles and other generated content that may match the
- * '404_fast_paths' regular expression from returning 404 errors, it is
- * necessary to add them to the '404_fast_paths_exclude' regular expression
- * above. Make sure that you understand the effects of this feature before
- * uncommenting the line below.
- */
-# drupal_fast_404();
-
-/**
- * External access proxy settings:
- *
- * If your site must access the Internet via a web proxy then you can enter
- * the proxy settings here. Currently only basic authentication is supported
- * by using the username and password variables. The proxy_user_agent variable
- * can be set to NULL for proxies that require no User-Agent header or to a
- * non-empty string for proxies that limit requests to a specific agent. The
- * proxy_exceptions variable is an array of host names to be accessed directly,
- * not via proxy.
- */
-# $conf['proxy_server'] = '';
-# $conf['proxy_port'] = 8080;
-# $conf['proxy_username'] = '';
-# $conf['proxy_password'] = '';
-# $conf['proxy_user_agent'] = '';
-# $conf['proxy_exceptions'] = array('127.0.0.1', 'localhost');
-
-/**
- * Authorized file system operations:
- *
- * The Update manager module included with Drupal provides a mechanism for
- * site administrators to securely install missing updates for the site
- * directly through the web user interface. On securely-configured servers,
- * the Update manager will require the administrator to provide SSH or FTP
- * credentials before allowing the installation to proceed; this allows the
- * site to update the new files as the user who owns all the Drupal files,
- * instead of as the user the webserver is running as. On servers where the
- * webserver user is itself the owner of the Drupal files, the administrator
- * will not be prompted for SSH or FTP credentials (note that these server
- * setups are common on shared hosting, but are inherently insecure).
- *
- * Some sites might wish to disable the above functionality, and only update
- * the code directly via SSH or FTP themselves. This setting completely
- * disables all functionality related to these authorized file operations.
- *
- * @see http://drupal.org/node/244924
- *
- * Remove the leading hash signs to disable.
- */
-# $conf['allow_authorize_operations'] = FALSE;
-
-/**
- * Theme debugging:
- *
- * When debugging is enabled:
- * - The markup of each template is surrounded by HTML comments that contain
- * theming information, such as template file name suggestions.
- * - Note that this debugging markup will cause automated tests that directly
- * check rendered HTML to fail.
- *
- * For more information about debugging theme templates, see
- * https://www.drupal.org/node/223440#theme-debug.
- *
- * Not recommended in production environments.
- *
- * Remove the leading hash sign to enable.
- */
-# $conf['theme_debug'] = TRUE;
-
-/**
- * CSS identifier double underscores allowance:
- *
- * To allow CSS identifiers to contain double underscores (.example__selector)
- * for Drupal's BEM-style naming standards, uncomment the line below.
- * Note that if you change this value in existing sites, existing page styles
- * may be broken.
- *
- * @see drupal_clean_css_identifier()
- */
-# $conf['allow_css_double_underscores'] = TRUE;
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/template.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/template.php.twig
deleted file mode 100644
index 6776ca6c0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/template.php.twig
+++ /dev/null
@@ -1,27 +0,0 @@
- '{{ name }}',
- 'description' => 'Test description',
- 'group' => '{{ machine_name }}',
- );
- }
-
- function setUp() {
- parent::setUp(array('{{ machine_name }}'));
-
- // Create admin account.
- $this->admin_user = $this->drupalCreateUser(array('administer {{ machine_name }} configuration'));
-
- $this->drupalLogin($this->admin_user);
- }
-
- /**
- * Tests configuration form.
- */
- function testAdminForm() {
- $fields = array(
- '{{ machine_name }}_setting_1' => 'test',
- '{{ machine_name }}_setting_2' => 1,
- '{{ machine_name }}_setting_3' => 1,
- );
- $this->drupalPost('admin/config/system/{{ machine_name }}', $fields, t('Save configuration'));
-
- $this->assertFieldByName('{{ machine_name }}_setting_1', 'test');
- $this->assertFieldByName('{{ machine_name }}_setting_2', 1);
- $this->assertFieldByName('{{ machine_name }}_setting_3', 1);
- $this->assertRaw(t('The configuration options have been saved.'));
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/theme-css.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/theme-css.twig
deleted file mode 100644
index 14676d58e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/theme-css.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-
-/**
- * @file
- * Example styles.
- */
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/theme-info.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/theme-info.twig
deleted file mode 100644
index e71cf39a0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/theme-info.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-name = {{ name }}
-description = {{ description }}
-{% if base_theme %}
-base theme = {{ base_theme }}
-{% endif %}
-core = 7.x
-
-stylesheets[all][] = css/{{ machine_name }}.css
-scripts[] = js/{{ machine_name }}.js
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default-views.inc.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default-views.inc.twig
deleted file mode 100644
index c4f1b05c4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default-views.inc.twig
+++ /dev/null
@@ -1,21 +0,0 @@
- '{{ machine_name }}',
- 'argument default' => array(
- '{{ plugin_machine_name }}' => array(
- 'title' => t('{{ plugin_name }}'),
- 'handler' => 'views_plugin_argument_{{ plugin_machine_name }}',
- ),
- ),
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default.module.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default.module.twig
deleted file mode 100644
index 76f4c1e02..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default.module.twig
+++ /dev/null
@@ -1,16 +0,0 @@
- '3.0',
- 'path' => drupal_get_path('module', '{{ machine_name }}') . '/views',
- );
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default.twig
deleted file mode 100644
index fcdb3d666..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d7/views-plugin/argument-default.twig
+++ /dev/null
@@ -1,67 +0,0 @@
- 15);
- return $options;
- }
-
- /**
- * {@inheritdoc}
- */
- public function options_form(&$form, &$form_state) {
- $form['example_option'] = array(
- '#type' => 'textfield',
- '#title' => t('Some example option.'),
- '#default_value' => $this->options['example_option'],
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function options_validate(&$form, &$form_state) {
- if ($form_state['values']['options']['argument_default']['{{ plugin_machine_name }}']['example_option'] == 10) {
- form_error($form['example_option'], t('The value is not correct.'));
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function options_submit(&$form, &$form_state, &$options) {
- $options['example_option'] = $form_state['values']['options']['argument_default']['{{ plugin_machine_name }}']['example_option'];
- }
-
- /**
- * {@inheritdoc}
- */
- public function get_argument() {
-
- // @DCG
- // Here is the place where you should create a default argument for the
- // contextual filter. The source of this argument depends on your needs.
- // For example, you can extract the value from the URL or fetch it from
- // some fields of the current viewed entity.
- // For now lets use example option as an argument.
- $argument = $this->options['example_option'];
-
- return $argument;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/default-formatter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/default-formatter.twig
deleted file mode 100644
index 515bcbad4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/default-formatter.twig
+++ /dev/null
@@ -1,148 +0,0 @@
- 'bar'] + parent::defaultSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
- $settings = $this->getSettings();
- $element['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $settings['foo'],
- ];
- return $element;
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $settings = $this->getSettings();
- $summary[] = $this->t('Foo: @foo', ['@foo' => $settings['foo']]);
- return $summary;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function viewElements(FieldItemListInterface $items, $langcode) {
- $element = [];
-
- foreach ($items as $delta => $item) {
-
-{% for subfield in subfields %}
- {% if subfield.type == 'boolean' %}
- $element[$delta]['{{ subfield.machine_name }}'] = [
- '#type' => 'item',
- '#title' => $this->t('{{ subfield.name }}'),
- '#markup' => $item->{{ subfield.machine_name }} ? $this->t('Yes') : $this->t('No'),
- ];
-
- {% else %}
- if ($item->{{ subfield.machine_name }}) {
- {% if subfield.list %}
- $allowed_values = {{ type_class }}::{{ subfield.allowed_values_method }}();
- {% endif %}
- {% set item_value %}
- {% if subfield.list %}$allowed_values[$item->{{ subfield.machine_name }}]{% else %}$item->{{ subfield.machine_name }}{% endif %}
- {% endset %}
- {% if subfield.type == 'datetime' %}
- $date = DrupalDateTime::createFromFormat('{{ subfield.date_storage_format }}', $item->{{ subfield.machine_name }});
- // @DCG: Consider injecting the date formatter service.
- // @codingStandardsIgnoreStart
- $date_formatter = \Drupal::service('date.formatter');
- // @codingStandardsIgnoreStart
- $timestamp = $date->getTimestamp();
- {% if subfield.list %}
- $formatted_date = {{ item_value }};
- {% else %}
- $formatted_date = $date_formatter->format($timestamp, 'long');
- {% endif %}
- $iso_date = $date_formatter->format($timestamp, 'custom', 'Y-m-d\TH:i:s') . 'Z';
- $element[$delta]['{{ subfield.machine_name }}'] = [
- '#type' => 'item',
- '#title' => $this->t('{{ subfield.name }}'),
- 'content' => [
- '#theme' => 'time',
- '#text' => $formatted_date,
- '#html' => FALSE,
- '#attributes' => [
- 'datetime' => $iso_date,
- ],
- '#cache' => [
- 'contexts' => [
- 'timezone',
- ],
- ],
- ],
- ];
- {% else %}
- $element[$delta]['{{ subfield.machine_name }}'] = [
- '#type' => 'item',
- '#title' => $this->t('{{ subfield.name }}'),
- {% if subfield.link %}
- 'content' => [
- '#type' => 'link',
- '#title' => {{ item_value }},
- {% if subfield.type == 'email' %}
- '#url' => Url::fromUri('mailto:' . $item->{{ subfield.machine_name }}),
- {% elseif subfield.type == 'telephone' %}
- '#url' => Url::fromUri('tel:' . rawurlencode(preg_replace('/\s+/', '', $item->{{ subfield.machine_name }}))),
- {% elseif subfield.type == 'uri' %}
- '#url' => Url::fromUri($item->{{ subfield.machine_name }}),
- {% endif %}
- ],
- {% else %}
- '#markup' => {{ item_value }},
- {% endif %}
- ];
- {% endif %}
- }
-
- {% endif %}
-{% endfor %}
- }
-
- return $element;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/key-value-formatter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/key-value-formatter.twig
deleted file mode 100644
index 2f854ffb5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/key-value-formatter.twig
+++ /dev/null
@@ -1,105 +0,0 @@
- $item) {
-
- $table = [
- '#type' => 'table',
- ];
-
-{% for subfield in subfields %}
- // {{ subfield.name }}.
- if ($item->{{ subfield.machine_name }}) {
- {% if subfield.type == 'datetime' %}
- $date = DrupalDateTime::createFromFormat('{{ subfield.date_storage_format }}', $item->{{ subfield.machine_name }});
- $date_formatter = \Drupal::service('date.formatter');
- $timestamp = $date->getTimestamp();
- {% if subfield.list %}
- $allowed_values = {{ type_class }}::{{ subfield.allowed_values_method }}();
- $formatted_date = $allowed_values[$item->{{ subfield.machine_name }}];
- {% else %}
- $formatted_date = $date_formatter->format($timestamp, 'long');
- {% endif %}
- $iso_date = $date_formatter->format($timestamp, 'custom', 'Y-m-d\TH:i:s') . 'Z';
-
- {% elseif subfield.list %}
- $allowed_values = {{ type_class }}::{{ subfield.allowed_values_method }}();
-
- {% endif %}
- $table['#rows'][] = [
- 'data' => [
- [
- 'header' => TRUE,
- 'data' => [
- '#markup' => $this->t('{{ subfield.name }}'),
- ],
- ],
- [
- 'data' => [
- {% if subfield.type == 'boolean' %}
- '#markup' => $item->{{ subfield.machine_name }} ? $this->t('Yes') : $this->t('No'),
- {% elseif subfield.type == 'datetime' %}
- '#theme' => 'time',
- '#text' => $formatted_date,
- '#html' => FALSE,
- '#attributes' => [
- 'datetime' => $iso_date,
- ],
- '#cache' => [
- 'contexts' => [
- 'timezone',
- ],
- ],
- {% else %}
- {% if subfield.list %}
- '#markup' => $allowed_values[$item->{{ subfield.machine_name }}],
- {% else %}
- '#markup' => $item->{{ subfield.machine_name }},
- {% endif %}
- {% endif %}
- ],
- ],
- ],
- 'no_striping' => TRUE,
- ];
- }
-
-{% endfor %}
- $element[$delta] = $table;
-
- }
-
- return $element;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/libraries.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/libraries.twig
deleted file mode 100644
index d61ad18de..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/libraries.twig
+++ /dev/null
@@ -1,4 +0,0 @@
-{{ field_id }}:
- css:
- component:
- css/{{ field_id|u2h }}-widget.css: {}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/schema.twig
deleted file mode 100644
index e3612e613..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/schema.twig
+++ /dev/null
@@ -1,50 +0,0 @@
-{% if storage_settings %}
-# Field storage.
-field.storage_settings.{{ field_id }}:
- type: mapping
- label: Example storage settings
- mapping:
- foo:
- type: string
- label: Foo
-{% endif %}
-{% if instance_settings %}
-# Field instance.
-field.field_settings.{{ field_id }}:
- type: mapping
- label: Example field settings
- mapping:
- bar:
- type: string
- label: Bar
-{% endif %}
-# Default value.
-field.value.{{ field_id }}:
- type: mapping
- label: Default value
- mapping:
-{% for subfield in subfields %}
- {{ subfield.machine_name }}:
- type: {{ subfield.type }}
- label: {{ subfield.name }}
-{% endfor %}
-{% if widget_settings %}
-# Field widget.
-field.widget.settings.{{ field_id }}:
- type: mapping
- label: Example widget settings
- mapping:
- foo:
- type: string
- label: Foo
-{% endif %}
-{% if formatter_settings %}
-# Field formatter.
-field.formatter.settings.{{ field_id }}_default:
- type: mapping
- label: Example formatter settings
- mapping:
- foo:
- type: string
- label: Foo
-{% endif %}
\ No newline at end of file
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/table-formatter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/table-formatter.twig
deleted file mode 100644
index 6351643c7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/table-formatter.twig
+++ /dev/null
@@ -1,102 +0,0 @@
-t('{{ subfield.name }}');
-{% endfor %}
-
- $table = [
- '#type' => 'table',
- '#header' => $header,
- ];
-
- foreach ($items as $delta => $item) {
- $row = [];
-
- $row[]['#markup'] = $delta + 1;
-
-{% for subfield in subfields %}
- {% if subfield.type == 'boolean' %}
- $row[]['#markup'] = $item->{{ subfield.machine_name }} ? $this->t('Yes') : $this->t('No');
-
- {% elseif subfield.type == 'datetime' %}
- if ($item->{{ subfield.machine_name }}) {
- $date = DrupalDateTime::createFromFormat('{{ subfield.date_storage_format }}', $item->{{ subfield.machine_name }});
- $date_formatter = \Drupal::service('date.formatter');
- $timestamp = $date->getTimestamp();
- {% if subfield.list %}
- $allowed_values = {{ type_class }}::{{ subfield.allowed_values_method }}();
- $formatted_date = $allowed_values[$item->{{ subfield.machine_name }}];
- {% else %}
- $formatted_date = $date_formatter->format($timestamp, 'long');
- {% endif %}
- $iso_date = $date_formatter->format($timestamp, 'custom', 'Y-m-d\TH:i:s') . 'Z';
- $row[] = [
- '#theme' => 'time',
- '#text' => $formatted_date,
- '#html' => FALSE,
- '#attributes' => [
- 'datetime' => $iso_date,
- ],
- '#cache' => [
- 'contexts' => [
- 'timezone',
- ],
- ],
- ];
- }
- else {
- $row[]['#markup'] = '';
- }
-
- {% else %}
- {% if subfield.list %}
- if ($item->{{ subfield.machine_name }}) {
- $allowed_values = {{ type_class }}::{{ subfield.allowed_values_method }}();
- $row[]['#markup'] = $allowed_values[$item->{{ subfield.machine_name }}];
- }
- else {
- $row[]['#markup'] = '';
- }
- {% else %}
- $row[]['#markup'] = $item->{{ subfield.machine_name }};
- {% endif %}
-
- {% endif %}
-{% endfor %}
- $table[$delta] = $row;
- }
-
- return [$table];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/type.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/type.twig
deleted file mode 100644
index dee8d020d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/type.twig
+++ /dev/null
@@ -1,316 +0,0 @@
- 'example'];
- return $settings + parent::defaultStorageSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function storageSettingsForm(array &$form, FormStateInterface $form_state, $has_data) {
- $settings = $this->getSettings();
-
- $element['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $settings['foo'],
- '#disabled' => $has_data,
- ];
-
- return $element;
- }
-
-{% endif %}
-{% if instance_settings %}
- /**
- * {@inheritdoc}
- */
- public static function defaultFieldSettings() {
- $settings = ['bar' => 'example'];
- return $settings + parent::defaultFieldSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
- $settings = $this->getSettings();
-
- $element['bar'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $settings['bar'],
- ];
-
- return $element;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function isEmpty() {
-{% for subfield in subfields %}
- {% set condition %}
- {% if subfield.type == 'boolean' %}$this->{{ subfield.machine_name }} == 1{% else %}$this->{{ subfield.machine_name }} !== NULL{% endif %}
- {% endset %}
- {% if loop.index == 1 %}
- if ({{ condition }}) {
- {% else %}
- elseif ({{ condition }}) {
- {% endif %}
- return FALSE;
- }
-{% endfor %}
- return TRUE;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
-
-{% for subfield in subfields %}
- $properties['{{ subfield.machine_name }}'] = DataDefinition::create('{{ subfield.data_type }}')
- ->setLabel(t('{{ subfield.name }}'));
-{% endfor %}
-
- return $properties;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConstraints() {
- $constraints = parent::getConstraints();
-
-{% for subfield in subfields %}
- {% if subfield.list %}
- $options['{{ subfield.machine_name }}']['AllowedValues'] = array_keys({{ type_class }}::{{ subfield.allowed_values_method }}());
-
- {% endif %}
- {% if subfield.required %}
- {% if subfield.type == 'boolean' %}
- // NotBlank validator is not suitable for booleans because it does not
- // recognize '0' as an empty value.
- $options['{{ subfield.machine_name }}']['AllowedValues']['choices'] = [1];
- $options['{{ subfield.machine_name }}']['AllowedValues']['message'] = $this->t('This value should not be blank.');
-
- {% else %}
- $options['{{ subfield.machine_name }}']['NotBlank'] = [];
-
- {% if subfield.type == 'email' %}
- $options['{{ subfield.machine_name }}']['Length']['max'] = Email::EMAIL_MAX_LENGTH;
-
- {% endif %}
- {% endif %}
- {% endif %}
-{% endfor %}
-{% if list or required %}
- $constraint_manager = \Drupal::typedDataManager()->getValidationConstraintManager();
- $constraints[] = $constraint_manager->create('ComplexData', $options);
-{% endif %}
- // @todo Add more constrains here.
- return $constraints;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function schema(FieldStorageDefinitionInterface $field_definition) {
-
- $columns = [
-{% for subfield in subfields %}
- '{{ subfield.machine_name }}' => [
- {% if subfield.type == 'boolean' %}
- 'type' => 'int',
- 'size' => 'tiny',
- {% elseif subfield.type == 'string' %}
- 'type' => 'varchar',
- 'length' => 255,
- {% elseif subfield.type == 'text' %}
- 'type' => 'text',
- 'size' => 'big',
- {% elseif subfield.type == 'integer' %}
- 'type' => 'int',
- 'size' => 'normal',
- {% elseif subfield.type == 'float' %}
- 'type' => 'float',
- 'size' => 'normal',
- {% elseif subfield.type == 'numeric' %}
- 'type' => 'numeric',
- 'precision' => 10,
- 'scale' => 2,
- {% elseif subfield.type == 'email' %}
- 'type' => 'varchar',
- 'length' => Email::EMAIL_MAX_LENGTH,
- {% elseif subfield.type == 'telephone' %}
- 'type' => 'varchar',
- 'length' => 255,
- {% elseif subfield.type == 'uri' %}
- 'type' => 'varchar',
- 'length' => 2048,
- {% elseif subfield.type == 'datetime' %}
- 'type' => 'varchar',
- 'length' => 20,
- {% endif %}
- ],
-{% endfor %}
- ];
-
- $schema = [
- 'columns' => $columns,
- // @DCG Add indexes here if necessary.
- ];
-
- return $schema;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
-
-{% if random %}
- $random = new Random();
-
-{% endif %}
-{% for subfield in subfields %}
- {% if subfield.list %}
- $values['{{ subfield.machine_name }}'] = array_rand(self::{{ subfield.allowed_values_method }}());
-
- {% elseif subfield.type == 'boolean' %}
- $values['{{ subfield.machine_name }}'] = (bool) mt_rand(0, 1);
-
- {% elseif subfield.type == 'string' %}
- $values['{{ subfield.machine_name }}'] = $random->word(mt_rand(1, 255));
-
- {% elseif subfield.type == 'text' %}
- $values['{{ subfield.machine_name }}'] = $random->paragraphs(5);
-
- {% elseif subfield.type == 'integer' %}
- $values['{{ subfield.machine_name }}'] = mt_rand(-1000, 1000);
-
- {% elseif subfield.type == 'float' %}
- $scale = rand(1, 5);
- $random_decimal = mt_rand() / mt_getrandmax() * (1000 - 0);
- $values['{{ subfield.machine_name }}'] = floor($random_decimal * pow(10, $scale)) / pow(10, $scale);
-
- {% elseif subfield.type == 'numeric' %}
- $scale = rand(10, 2);
- $random_decimal = -1000 + mt_rand() / mt_getrandmax() * (-1000 - 1000);
- $values['{{ subfield.machine_name }}'] = floor($random_decimal * pow(10, $scale)) / pow(10, $scale);
-
- {% elseif subfield.type == 'email' %}
- $values['{{ subfield.machine_name }}'] = strtolower($random->name()) . '@example.com';
-
- {% elseif subfield.type == 'telephone' %}
- $values['{{ subfield.machine_name }}'] = mt_rand(pow(10, 8), pow(10, 9) - 1);
-
- {% elseif subfield.type == 'uri' %}
- $tlds = ['com', 'net', 'gov', 'org', 'edu', 'biz', 'info'];
- $domain_length = mt_rand(7, 15);
- $protocol = mt_rand(0, 1) ? 'https' : 'http';
- $www = mt_rand(0, 1) ? 'www' : '';
- $domain = $random->word($domain_length);
- $tld = $tlds[mt_rand(0, (count($tlds) - 1))];
- $values['{{ subfield.machine_name }}'] = "$protocol://$www.$domain.$tld";
-
- {% elseif subfield.type == 'datetime' %}
- $timestamp = \Drupal::time()->getRequestTime() - mt_rand(0, 86400 * 365);
- $values['{{ subfield.machine_name }}'] = gmdate('{{ subfield.date_storage_format }}', $timestamp);
-
- {% endif %}
-{% endfor %}
- return $values;
- }
-
-{% for subfield in subfields %}
- {% if subfield.list %}
- /**
- * Returns allowed values for '{{ subfield.machine_name }}' sub-field.
- *
- * @return array
- * The list of allowed values.
- */
- public static function {{ subfield.allowed_values_method }}() {
- return [
- {% if subfield.type == 'string' %}
- 'alpha' => t('Alpha'),
- 'beta' => t('Beta'),
- 'gamma' => t('Gamma'),
- {% elseif subfield.type == 'integer' %}
- 123 => 123,
- 456 => 456,
- 789 => 789,
- {% elseif subfield.type == 'float' %}
- '12.3' => '12.3',
- '4.56' => '4.56',
- '0.789' => '0.789',
- {% elseif subfield.type == 'numeric' %}
- '12.35' => '12.35',
- '45.65' => '45.65',
- '78.95' => '78.95',
- {% elseif subfield.type == 'email' %}
- 'alpha@example.com' => 'alpha@example.com',
- 'beta@example.com' => 'beta@example.com',
- 'gamma@example.com' => 'gamma@example.com',
- {% elseif subfield.type == 'telephone' %}
- '71234567001' => '+7(123)45-67-001',
- '71234567002' => '+7(123)45-67-002',
- '71234567003' => '+7(123)45-67-003',
- {% elseif subfield.type == 'uri' %}
- 'https://example.com' => 'https://example.com',
- 'http://www.php.net' => 'http://www.php.net',
- 'https://www.drupal.org' => 'https://www.drupal.org',
- {% elseif subfield.type == 'datetime' %}
- {% if subfield.date_type == 'date' %}
- '2018-01-01' => '1 January 2018',
- '2018-02-01' => '1 February 2018',
- '2018-03-01' => '1 March 2018',
- {% else %}
- '2018-01-01T00:10:10' => '1 January 2018, 00:10:10',
- '2018-02-01T00:20:20' => '1 February 2018, 00:20:20',
- '2018-03-01T00:30:30' => '1 March 2018, 00:30:30',
- {% endif %}
- {% endif %}
- ];
- }
-
- {% endif %}
-{% endfor %}
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/widget-css.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/widget-css.twig
deleted file mode 100644
index 558dd111d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/widget-css.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-{% set class = field_id|u2h ~ '-elements' %}
-{% if inline %}
-.container-inline.{{ class }} .form-item {
- margin: 0 3px;
-}
-.container-inline.{{ class }} label {
- display: block;
-}
-{% else %}
-tr.odd .{{ class }} .form-item {
- margin-bottom: 8px;
-}
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/widget.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_field/widget.twig
deleted file mode 100644
index e7ea8b836..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_field/widget.twig
+++ /dev/null
@@ -1,202 +0,0 @@
- 'bar'] + parent::defaultSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
- $settings = $this->getSettings();
- $element['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $settings['foo'],
- ];
- return $element;
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $settings = $this->getSettings();
- $summary[] = $this->t('Foo: @foo', ['@foo' => $settings['foo']]);
- return $summary;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
-
-{% for subfield in subfields %}
- {% set title %}'#title' => $this->t('{{ subfield.name }}'),{% endset %}
- {% set default_value %}'#default_value' => isset($items[$delta]->{{ subfield.machine_name }}) ? $items[$delta]->{{ subfield.machine_name }} : NULL,{% endset %}
- {% set size %}'#size' => 20,{% endset %}
- {% if subfield.list %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'select',
- {{ title }}
- '#options' => ['' => $this->t('- {{ subfield.required ? 'Select a value' : 'None' }} -')] + {{ type_class }}::{{ subfield.allowed_values_method }}(),
- {{ default_value }}
- ];
- {% else %}
- {% if subfield.type == 'boolean' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'checkbox',
- {{ title }}
- {{ default_value }}
- ];
- {% elseif subfield.type == 'string' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'textfield',
- {{ title }}
- {{ default_value }}
- {% if inline %}
- {{ size }}
- {% endif %}
- ];
- {% elseif subfield.type == 'text' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'textarea',
- {{ title }}
- {{ default_value }}
- ];
- {% elseif subfield.type == 'integer' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'number',
- {{ title }}
- {{ default_value }}
- ];
- {% elseif subfield.type == 'float' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'number',
- {{ title }}
- {{ default_value }}
- '#step' => 0.001,
- ];
- {% elseif subfield.type == 'numeric' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'number',
- {{ title }}
- {{ default_value }}
- '#step' => 0.01,
- ];
- {% elseif subfield.type == 'email' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'email',
- {{ title }}
- {{ default_value }}
- {% if inline %}
- {{ size }}
- {% endif %}
- ];
- {% elseif subfield.type == 'telephone' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'tel',
- {{ title }}
- {{ default_value }}
- {% if inline %}
- {{ size }}
- {% endif %}
- ];
- {% elseif subfield.type == 'uri' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'url',
- {{ title }}
- {{ default_value }}
- {% if inline %}
- {{ size }}
- {% endif %}
- ];
- {% elseif subfield.type == 'datetime' %}
- $element['{{ subfield.machine_name }}'] = [
- '#type' => 'datetime',
- {{ title }}
- '#default_value' => NULL,
- {% if subfield.date_type == 'date' %}
- '#date_time_element' => 'none',
- '#date_time_format' => '',
- {% endif %}
- ];
- if (isset($items[$delta]->{{ subfield.machine_name }})) {
- $element['{{ subfield.machine_name }}']['#default_value'] = DrupalDateTime::createFromFormat(
- '{{ subfield.date_storage_format }}',
- $items[$delta]->{{ subfield.machine_name }},
- 'UTC'
- );
- }
- {% endif %}
- {% endif %}
-
-{% endfor %}
- $element['#theme_wrappers'] = ['container', 'form_element'];
-{% if inline %}
- $element['#attributes']['class'][] = 'container-inline';
-{% endif %}
- $element['#attributes']['class'][] = '{{ field_id|u2h }}-elements';
- $element['#attached']['library'][] = '{{ machine_name }}/{{ field_id }}';
-
- return $element;
- }
-
- /**
- * {@inheritdoc}
- */
- public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
- return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
- }
-
- /**
- * {@inheritdoc}
- */
- public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
- foreach ($values as $delta => $value) {
-{% for subfield in subfields %}
- if ($value['{{ subfield.machine_name }}'] === '') {
- $values[$delta]['{{ subfield.machine_name }}'] = NULL;
- }
- {% if subfield.type == 'datetime' %}
- if ($value['{{ subfield.machine_name }}'] instanceof DrupalDateTime) {
- $values[$delta]['{{ subfield.machine_name }}'] = $value['{{ subfield.machine_name }}']->format('{{ subfield.date_storage_format }}');
- }
- {% endif %}
-{% endfor %}
- }
- return $values;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/javascript.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/javascript.twig
deleted file mode 100644
index e4ae4dcc9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/javascript.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * @file
- * Custom behaviors for {{ layout_name|lower }} layout.
- */
-
-(function (Drupal) {
-
- 'use strict';
-
- Drupal.behaviors.{{ layout_machine_name|camelize(false) }} = {
- attach: function (context, settings) {
-
- console.log('It works!');
-
- }
- };
-
-} (Drupal));
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/layouts.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/layouts.twig
deleted file mode 100644
index 32b789035..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/layouts.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{{ machine_name }}_{{ layout_machine_name }}:
- label: '{{ layout_name }}'
- category: '{{ category }}'
- path: layouts/{{ layout_machine_name }}
- template: {{ layout_machine_name|u2h }}
-{% if js or css %}
- library: {{ machine_name }}/{{ layout_machine_name }}
-{% endif %}
- regions:
- main:
- label: Main content
- sidebar:
- label: Sidebar
- default_region: main
- icon_map:
- - [main, main, sidebar]
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/libraries.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/libraries.twig
deleted file mode 100644
index 8519d50bd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/libraries.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-{{ layout_machine_name }}:
-{% if js %}
- js:
- layouts/{{ layout_machine_name }}/{{ layout_machine_name|u2h }}.js: {}
-{% endif %}
-{% if css %}
- css:
- component:
- layouts/{{ layout_machine_name }}/{{ layout_machine_name|u2h }}.css: {}
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/styles.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/styles.twig
deleted file mode 100644
index 9b969d256..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/styles.twig
+++ /dev/null
@@ -1,28 +0,0 @@
-.layout--{{ layout_machine_name|u2h }} {
- outline: solid 1px orange;
- display: flex;
- padding: 10px;
-}
-
-.layout--{{ layout_machine_name|u2h }} > .layout__region {
- outline: solid 1px orange;
- margin: 10px;
- padding: 20px;
-}
-
-.layout--{{ layout_machine_name|u2h }} .layout__region--main {
- width: 66%;
-}
-
-.layout--{{ layout_machine_name|u2h }} .layout__region--sidebar {
- width: 33%;
-}
-
-@media all and (max-width: 850px) {
- .layout--{{ layout_machine_name|u2h }} {
- flex-direction: column;
- }
- .layout--{{ layout_machine_name|u2h }} > .layout__region {
- width: auto;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/template.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/template.twig
deleted file mode 100644
index a14b73ab1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/template.twig
+++ /dev/null
@@ -1,37 +0,0 @@
-{{ '{' }}#
-/**
- * @file
- * Default theme implementation to display {{ layout_name|lower }} layout.
- *
- * Available variables:
- * - content: The content for this layout.
- * - attributes: HTML attributes for the layout wrapper.
- *
- * @ingroup themeable
- */
-#{{ '}' }}
-{{ '{' }}%
- set classes = [
- 'layout',
- 'layout--{{ layout_machine_name|u2h }}',
- ]
-%{{ '}' }}
-{% verbatim %}
-{% if content %}
-
-
- {% if content.main %}
-
- {{ content.main }}
-
- {% endif %}
-
- {% if content.sidebar %}
-
- {{ content.sidebar }}
-
- {% endif %}
-
-
-{% endif %}
-{% endverbatim %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/composer.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/composer.twig
deleted file mode 100644
index f9a7ffd78..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/composer.twig
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "drupal/{{ machine_name }}",
- "type": "{{ type }}",
- "description": "{{ description }}",
- "keywords": ["Drupal"]{{ drupal_org ? ',' }}
-{% if (drupal_org) %}
- "license": "GPL-2.0+",
- "homepage": "https://www.drupal.org/project/{{ machine_name }}",
- "authors": [
- {
- "name": "Your name here",
- "homepage": "https://www.drupal.org/u/your_name_here",
- "role": "Maintainer"
- },
- {
- "name": "Contributors",
- "homepage": "https://www.drupal.org/node/NID/committers",
- "role": "Contributors"
- }
- ],
- "support": {
- "issues": "https://www.drupal.org/project/issues/{{ machine_name }}",
- "source": "http://cgit.drupalcode.org/{{ machine_name }}"
- }
-{% endif %}
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/controller-route.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/controller-route.twig
deleted file mode 100644
index bb4548d85..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/controller-route.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ route_name }}:
- path: '{{ route_path }}'
- defaults:
- _title: '{{ route_title }}'
- _controller: '\Drupal\{{ machine_name }}\Controller\{{ class }}::build'
- requirements:
- _permission: '{{ route_permission }}'
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/controller.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/controller.twig
deleted file mode 100644
index 159f93af7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/controller.twig
+++ /dev/null
@@ -1,54 +0,0 @@
-{% import 'lib/di.twig' as di %}
- 'item',
- '#markup' => $this->t('It works!'),
- ];
-
- return $build;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/file-docs/install.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/file-docs/install.twig
deleted file mode 100644
index d75b805d8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/file-docs/install.twig
+++ /dev/null
@@ -1,6 +0,0 @@
- 'textfield',
- '#title' => $this->t('Example'),
- '#default_value' => $this->config('{{ machine_name }}.settings')->get('example'),
- ];
- return parent::buildForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function validateForm(array &$form, FormStateInterface $form_state) {
- if ($form_state->getValue('example') != 'example') {
- $form_state->setErrorByName('example', $this->t('The value is not correct.'));
- }
- parent::validateForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- $this->config('{{ machine_name }}.settings')
- ->set('example', $form_state->getValue('example'))
- ->save();
- parent::submitForm($form, $form_state);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/form/confirm.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/form/confirm.twig
deleted file mode 100644
index 903bb1e13..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/form/confirm.twig
+++ /dev/null
@@ -1,44 +0,0 @@
-t('Are you sure you want to do this?');
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCancelUrl() {
- return new Url('system.admin_config');
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- // @DCG Place your code here.
- $this->messenger()->addStatus($this->t('Done!'));
- $form_state->setRedirectUrl($this->getCancelUrl());
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/form/route.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/form/route.twig
deleted file mode 100644
index 00533570e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/form/route.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ route_name }}:
- path: '{{ route_path }}'
- defaults:
- _title: '{{ route_title }}'
- _form: 'Drupal\{{ machine_name }}\Form\{{ class }}'
- requirements:
- _permission: '{{ route_permission }}'
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/form/simple.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/form/simple.twig
deleted file mode 100644
index 396b3e260..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/form/simple.twig
+++ /dev/null
@@ -1,59 +0,0 @@
- 'textarea',
- '#title' => $this->t('Message'),
- '#required' => TRUE,
- ];
-
- $form['actions'] = [
- '#type' => 'actions',
- ];
- $form['actions']['submit'] = [
- '#type' => 'submit',
- '#value' => $this->t('Send'),
- ];
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function validateForm(array &$form, FormStateInterface $form_state) {
- if (mb_strlen($form_state->getValue('message')) < 10) {
- $form_state->setErrorByName('name', $this->t('Message should be at least 10 characters.'));
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- $this->messenger()->addStatus($this->t('The message has been sent.'));
- $form_state->setRedirect('');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_access.twig
deleted file mode 100644
index a939b5431..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_access.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_access().
- */
-function {{ machine_name }}_ENTITY_TYPE_access(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Session\AccountInterface $account) {
- // No opinion.
- return AccessResult::neutral();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_build_defaults_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_build_defaults_alter.twig
deleted file mode 100644
index ff9841f6a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_build_defaults_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_build_defaults_alter().
- */
-function {{ machine_name }}_ENTITY_TYPE_build_defaults_alter(array &$build, \Drupal\Core\Entity\EntityInterface $entity, $view_mode) {
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_create.twig
deleted file mode 100644
index 812b30b7a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_create.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_create().
- */
-function {{ machine_name }}_ENTITY_TYPE_create(\Drupal\Core\Entity\EntityInterface $entity) {
- \Drupal::logger('example')->info('ENTITY_TYPE created: @label', ['@label' => $entity->label()]);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_create_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_create_access.twig
deleted file mode 100644
index 941b7c5c4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_create_access.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_create_access().
- */
-function {{ machine_name }}_ENTITY_TYPE_create_access(\Drupal\Core\Session\AccountInterface $account, array $context, $entity_bundle) {
- // No opinion.
- return AccessResult::neutral();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_delete.twig
deleted file mode 100644
index 3e8e6b9c4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_delete.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_delete().
- */
-function {{ machine_name }}_ENTITY_TYPE_delete(Drupal\Core\Entity\EntityInterface $entity) {
- // Delete the entity's entry from a fictional table of all entities.
- \Drupal::database()->delete('example_entity')
- ->condition('type', $entity->getEntityTypeId())
- ->condition('id', $entity->id())
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_field_values_init.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_field_values_init.twig
deleted file mode 100644
index ac7ec12be..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_field_values_init.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_field_values_init().
- */
-function {{ machine_name }}_ENTITY_TYPE_field_values_init(\Drupal\Core\Entity\FieldableEntityInterface $entity) {
- if (!$entity->foo->value) {
- $entity->foo->value = 'some_initial_value';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_insert.twig
deleted file mode 100644
index 744ad4893..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_insert.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_insert().
- */
-function {{ machine_name }}_ENTITY_TYPE_insert(Drupal\Core\Entity\EntityInterface $entity) {
- // Insert the new entity into a fictional table of this type of entity.
- \Drupal::database()->insert('example_entity')
- ->fields([
- 'id' => $entity->id(),
- 'created' => REQUEST_TIME,
- 'updated' => REQUEST_TIME,
- ])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_load.twig
deleted file mode 100644
index 6eeaf817b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_load.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_load().
- */
-function {{ machine_name }}_ENTITY_TYPE_load($entities) {
- foreach ($entities as $entity) {
- $entity->foo = mymodule_add_something($entity);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_predelete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_predelete.twig
deleted file mode 100644
index d4572f5d0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_predelete.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_predelete().
- */
-function {{ machine_name }}_ENTITY_TYPE_predelete(Drupal\Core\Entity\EntityInterface $entity) {
- $connection = \Drupal::database();
- // Count references to this entity in a custom table before they are removed
- // upon entity deletion.
- $id = $entity->id();
- $type = $entity->getEntityTypeId();
- $count = \Drupal::database()->select('example_entity_data')
- ->condition('type', $type)
- ->condition('id', $id)
- ->countQuery()
- ->execute()
- ->fetchField();
-
- // Log the count in a table that records this statistic for deleted entities.
- $connection->merge('example_deleted_entity_statistics')
- ->key(['type' => $type, 'id' => $id])
- ->fields(['count' => $count])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_prepare_form.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_prepare_form.twig
deleted file mode 100644
index baeba52c5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_prepare_form.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_prepare_form().
- */
-function {{ machine_name }}_ENTITY_TYPE_prepare_form(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Form\FormStateInterface $form_state) {
- if ($operation == 'edit') {
- $entity->label->value = 'Altered label';
- $form_state->set('label_altered', TRUE);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_presave.twig
deleted file mode 100644
index 2e3c0967c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_presave.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_presave().
- */
-function {{ machine_name }}_ENTITY_TYPE_presave(Drupal\Core\Entity\EntityInterface $entity) {
- if ($entity->isTranslatable()) {
- $route_match = \Drupal::routeMatch();
- \Drupal::service('content_translation.synchronizer')->synchronizeFields($entity, $entity->language()->getId(), $route_match->getParameter('source_langcode'));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_revision_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_revision_create.twig
deleted file mode 100644
index ed6a01185..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_revision_create.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_revision_create().
- */
-function {{ machine_name }}_ENTITY_TYPE_revision_create(Drupal\Core\Entity\EntityInterface $new_revision, Drupal\Core\Entity\EntityInterface $entity, $keep_untranslatable_fields) {
- // Retain the value from an untranslatable field, which are by default
- // synchronized from the default revision.
- $new_revision->set('untranslatable_field', $entity->get('untranslatable_field'));
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_revision_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_revision_delete.twig
deleted file mode 100644
index 59e4f6385..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_revision_delete.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_revision_delete().
- */
-function {{ machine_name }}_ENTITY_TYPE_revision_delete(Drupal\Core\Entity\EntityInterface $entity) {
- $referenced_files_by_field = _editor_get_file_uuids_by_field($entity);
- foreach ($referenced_files_by_field as $field => $uuids) {
- _editor_delete_file_usage($uuids, $entity, 1);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_storage_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_storage_load.twig
deleted file mode 100644
index 8318cc444..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_storage_load.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_storage_load().
- */
-function {{ machine_name }}_ENTITY_TYPE_storage_load(array $entities) {
- foreach ($entities as $entity) {
- $entity->foo = mymodule_add_something_uncached($entity);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_create.twig
deleted file mode 100644
index 1ff6d5d83..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_create.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_translation_create().
- */
-function {{ machine_name }}_ENTITY_TYPE_translation_create(\Drupal\Core\Entity\EntityInterface $translation) {
- \Drupal::logger('example')->info('ENTITY_TYPE translation created: @label', ['@label' => $translation->label()]);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_delete.twig
deleted file mode 100644
index b583fde94..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_delete.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_translation_delete().
- */
-function {{ machine_name }}_ENTITY_TYPE_translation_delete(\Drupal\Core\Entity\EntityInterface $translation) {
- $variables = [
- '@language' => $translation->language()->getName(),
- '@label' => $translation->label(),
- ];
- \Drupal::logger('example')->notice('The @language translation of @label has just been deleted.', $variables);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_insert.twig
deleted file mode 100644
index 604470a8b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_translation_insert.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_translation_insert().
- */
-function {{ machine_name }}_ENTITY_TYPE_translation_insert(\Drupal\Core\Entity\EntityInterface $translation) {
- $variables = [
- '@language' => $translation->language()->getName(),
- '@label' => $translation->getUntranslated()->label(),
- ];
- \Drupal::logger('example')->notice('The @language translation of @label has just been stored.', $variables);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_update.twig
deleted file mode 100644
index ad79d58bc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_update.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_update().
- */
-function {{ machine_name }}_ENTITY_TYPE_update(Drupal\Core\Entity\EntityInterface $entity) {
- // Update the entity's entry in a fictional table of this type of entity.
- \Drupal::database()->update('example_entity')
- ->fields([
- 'updated' => REQUEST_TIME,
- ])
- ->condition('id', $entity->id())
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_view.twig
deleted file mode 100644
index dd53624ce..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_view.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_view().
- */
-function {{ machine_name }}_ENTITY_TYPE_view(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) {
- // Only do the extra work if the component is configured to be displayed.
- // This assumes a 'mymodule_addition' extra field has been defined for the
- // entity bundle in hook_entity_extra_field_info().
- if ($display->getComponent('mymodule_addition')) {
- $build['mymodule_addition'] = [
- '#markup' => mymodule_addition($entity),
- '#theme' => 'mymodule_my_additional_field',
- ];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_view_alter.twig
deleted file mode 100644
index 3c814b2f2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ENTITY_TYPE_view_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_ENTITY_TYPE_view_alter().
- */
-function {{ machine_name }}_ENTITY_TYPE_view_alter(array &$build, Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display) {
- if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
- // Change its weight.
- $build['an_additional_field']['#weight'] = -10;
-
- // Add a #post_render callback to act on the rendered HTML of the entity.
- $build['#post_render'][] = 'my_module_node_post_render';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_fetcher_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_fetcher_info_alter.twig
deleted file mode 100644
index 4388910b3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_fetcher_info_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_aggregator_fetcher_info_alter().
- */
-function {{ machine_name }}_aggregator_fetcher_info_alter(array &$info) {
- if (empty($info['foo_fetcher'])) {
- return;
- }
-
- $info['foo_fetcher']['class'] = Drupal\foo\Plugin\aggregator\fetcher\FooDefaultFetcher::class;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_parser_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_parser_info_alter.twig
deleted file mode 100644
index 1d1c074c7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_parser_info_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_aggregator_parser_info_alter().
- */
-function {{ machine_name }}_aggregator_parser_info_alter(array &$info) {
- if (empty($info['foo_parser'])) {
- return;
- }
-
- $info['foo_parser']['class'] = Drupal\foo\Plugin\aggregator\parser\FooDefaultParser::class;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_processor_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_processor_info_alter.twig
deleted file mode 100644
index b74888128..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_processor_info_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_aggregator_processor_info_alter().
- */
-function {{ machine_name }}_aggregator_processor_info_alter(array &$info) {
- if (empty($info['foo_processor'])) {
- return;
- }
-
- $info['foo_processor']['class'] = Drupal\foo\Plugin\aggregator\processor\FooDefaultProcessor::class;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ajax_render_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ajax_render_alter.twig
deleted file mode 100644
index 02a1bcfc8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ajax_render_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_ajax_render_alter().
- */
-function {{ machine_name }}_ajax_render_alter(array &$data) {
- // Inject any new status messages into the content area.
- $status_messages = ['#type' => 'status_messages'];
- $command = new \Drupal\Core\Ajax\PrependCommand('#block-system-main .content', \Drupal::service('renderer')->renderRoot($status_messages));
- $data[] = $command->render();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/archiver_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/archiver_info_alter.twig
deleted file mode 100644
index 6fc231918..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/archiver_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_archiver_info_alter().
- */
-function {{ machine_name }}_archiver_info_alter(&$info) {
- $info['tar']['extensions'][] = 'tgz';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/batch_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/batch_alter.twig
deleted file mode 100644
index 50a73045c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/batch_alter.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_batch_alter().
- */
-function {{ machine_name }}_batch_alter(&$batch) {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_access.twig
deleted file mode 100644
index 970128e1a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_access.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_block_access().
- */
-function {{ machine_name }}_block_access(\Drupal\block\Entity\Block $block, $operation, \Drupal\Core\Session\AccountInterface $account) {
- // Example code that would prevent displaying the 'Powered by Drupal' block in
- // a region different than the footer.
- if ($operation == 'view' && $block->getPluginId() == 'system_powered_by_block') {
- return AccessResult::forbiddenIf($block->getRegion() != 'footer')->addCacheableDependency($block);
- }
-
- // No opinion.
- return AccessResult::neutral();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_build_BASE_BLOCK_ID_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_build_BASE_BLOCK_ID_alter.twig
deleted file mode 100644
index 335b51bb4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_build_BASE_BLOCK_ID_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_block_build_BASE_BLOCK_ID_alter().
- */
-function {{ machine_name }}_block_build_BASE_BLOCK_ID_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) {
- // Explicitly enable placeholdering of the specific block.
- $build['#create_placeholder'] = TRUE;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_build_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_build_alter.twig
deleted file mode 100644
index 9c5bf293d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_build_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_block_build_alter().
- */
-function {{ machine_name }}_block_build_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) {
- // Add the 'user' cache context to some blocks.
- if ($block->label() === 'some condition') {
- $build['#cache']['contexts'][] = 'user';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_view_BASE_BLOCK_ID_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_view_BASE_BLOCK_ID_alter.twig
deleted file mode 100644
index 35bfe638b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_view_BASE_BLOCK_ID_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_block_view_BASE_BLOCK_ID_alter().
- */
-function {{ machine_name }}_block_view_BASE_BLOCK_ID_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) {
- // Change the title of the specific block.
- $build['#title'] = t('New title of the block');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_view_alter.twig
deleted file mode 100644
index 6a112f443..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/block_view_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_block_view_alter().
- */
-function {{ machine_name }}_block_view_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) {
- // Remove the contextual links on all blocks that provide them.
- if (isset($build['#contextual_links'])) {
- unset($build['#contextual_links']);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/cache_flush.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/cache_flush.twig
deleted file mode 100644
index 9bacaf71f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/cache_flush.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_cache_flush().
- */
-function {{ machine_name }}_cache_flush() {
- if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') {
- _update_cache_clear();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ckeditor_css_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ckeditor_css_alter.twig
deleted file mode 100644
index 90ed85e62..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ckeditor_css_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_ckeditor_css_alter().
- */
-function {{ machine_name }}_ckeditor_css_alter(array &$css, Editor $editor) {
- $css[] = drupal_get_path('module', 'mymodule') . '/css/mymodule-ckeditor.css';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ckeditor_plugin_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ckeditor_plugin_info_alter.twig
deleted file mode 100644
index 929e37213..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ckeditor_plugin_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_ckeditor_plugin_info_alter().
- */
-function {{ machine_name }}_ckeditor_plugin_info_alter(array &$plugins) {
- $plugins['someplugin']['label'] = t('Better name');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/comment_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/comment_links_alter.twig
deleted file mode 100644
index 196d99cf4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/comment_links_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_comment_links_alter().
- */
-function {{ machine_name }}_comment_links_alter(array &$links, CommentInterface $entity, array &$context) {
- $links['mymodule'] = [
- '#theme' => 'links__comment__mymodule',
- '#attributes' => ['class' => ['links', 'inline']],
- '#links' => [
- 'comment-report' => [
- 'title' => t('Report'),
- 'url' => Url::fromRoute('comment_test.report', ['comment' => $entity->id()], ['query' => ['token' => \Drupal::getContainer()->get('csrf_token')->get("comment/{$entity->id()}/report")]]),
- ],
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_import_steps_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_import_steps_alter.twig
deleted file mode 100644
index 6c4fc9cbb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_import_steps_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_config_import_steps_alter().
- */
-function {{ machine_name }}_config_import_steps_alter(&$sync_steps, \Drupal\Core\Config\ConfigImporter $config_importer) {
- $deletes = $config_importer->getUnprocessedConfiguration('delete');
- if (isset($deletes['field.storage.node.body'])) {
- $sync_steps[] = '_additional_configuration_step';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_schema_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_schema_info_alter.twig
deleted file mode 100644
index c6821c9ca..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_schema_info_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_config_schema_info_alter().
- */
-function {{ machine_name }}_config_schema_info_alter(&$definitions) {
- // Enhance the text and date type definitions with classes to generate proper
- // form elements in ConfigTranslationFormBase. Other translatable types will
- // appear as a one line textfield.
- $definitions['text']['form_element_class'] = '\Drupal\config_translation\FormElement\Textarea';
- $definitions['date_format']['form_element_class'] = '\Drupal\config_translation\FormElement\DateFormat';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info.twig
deleted file mode 100644
index 73af8dbcc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Implements hook_config_translation_info().
- */
-function {{ machine_name }}_config_translation_info(&$info) {
- $entity_manager = \Drupal::entityManager();
- $route_provider = \Drupal::service('router.route_provider');
-
- // If field UI is not enabled, the base routes of the type
- // "entity.field_config.{$entity_type}_field_edit_form" are not defined.
- if (\Drupal::moduleHandler()->moduleExists('field_ui')) {
- // Add fields entity mappers to all fieldable entity types defined.
- foreach ($entity_manager->getDefinitions() as $entity_type_id => $entity_type) {
- $base_route = NULL;
- try {
- $base_route = $route_provider->getRouteByName('entity.field_config.' . $entity_type_id . '_field_edit_form');
- }
- catch (RouteNotFoundException $e) {
- // Ignore non-existent routes.
- }
-
- // Make sure entity type has field UI enabled and has a base route.
- if ($entity_type->get('field_ui_base_route') && !empty($base_route)) {
- $info[$entity_type_id . '_fields'] = [
- 'base_route_name' => 'entity.field_config.' . $entity_type_id . '_field_edit_form',
- 'entity_type' => 'field_config',
- 'title' => t('Title'),
- 'class' => '\Drupal\config_translation\ConfigFieldMapper',
- 'base_entity_type' => $entity_type_id,
- 'weight' => 10,
- ];
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info_alter.twig
deleted file mode 100644
index b0ed1ed96..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/config_translation_info_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_config_translation_info_alter().
- */
-function {{ machine_name }}_config_translation_info_alter(&$info) {
- // Add additional site settings to the site information screen, so it shows
- // up on the translation screen. (Form alter in the elements whose values are
- // stored in this config file using regular form altering on the original
- // configuration form.)
- $info['system.site_information_settings']['names'][] = 'example.site.setting';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_alter.twig
deleted file mode 100644
index 9278ebd83..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_contextual_links_alter().
- */
-function {{ machine_name }}_contextual_links_alter(array &$links, $group, array $route_parameters) {
- if ($group == 'menu') {
- // Dynamically use the menu name for the title of the menu_edit contextual
- // link.
- $menu = \Drupal::entityManager()->getStorage('menu')->load($route_parameters['menu']);
- $links['menu_edit']['title'] = t('Edit menu: @label', ['@label' => $menu->label()]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_plugins_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_plugins_alter.twig
deleted file mode 100644
index f4ca37b2c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_plugins_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_contextual_links_plugins_alter().
- */
-function {{ machine_name }}_contextual_links_plugins_alter(array &$contextual_links) {
- $contextual_links['menu_edit']['title'] = 'Edit the menu';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_view_alter.twig
deleted file mode 100644
index 68bacd9e9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_view_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_contextual_links_view_alter().
- */
-function {{ machine_name }}_contextual_links_view_alter(&$element, $items) {
- // Add another class to all contextual link lists to facilitate custom
- // styling.
- $element['#attributes']['class'][] = 'custom-class';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/countries_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/countries_alter.twig
deleted file mode 100644
index bff6dfa06..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/countries_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_countries_alter().
- */
-function {{ machine_name }}_countries_alter(&$countries) {
- // Elbonia is now independent, so add it to the country list.
- $countries['EB'] = 'Elbonia';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/cron.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/cron.twig
deleted file mode 100644
index 9dc85f3f7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/cron.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Implements hook_cron().
- */
-function {{ machine_name }}_cron() {
- // Short-running operation example, not using a queue:
- // Delete all expired records since the last cron run.
- $expires = \Drupal::state()->get('mymodule.last_check', 0);
- \Drupal::database()->delete('mymodule_table')
- ->condition('expires', $expires, '>=')
- ->execute();
- \Drupal::state()->set('mymodule.last_check', REQUEST_TIME);
-
- // Long-running operation example, leveraging a queue:
- // Queue news feeds for updates once their refresh interval has elapsed.
- $queue = \Drupal::queue('aggregator_feeds');
- $ids = \Drupal::entityManager()->getStorage('aggregator_feed')->getFeedIdsToRefresh();
- foreach (Feed::loadMultiple($ids) as $feed) {
- if ($queue->createItem($feed)) {
- // Add timestamp to avoid queueing item more than once.
- $feed->setQueuedTime(REQUEST_TIME);
- $feed->save();
- }
- }
- $ids = \Drupal::entityQuery('aggregator_feed')
- ->condition('queued', REQUEST_TIME - (3600 * 6), '<')
- ->execute();
- if ($ids) {
- $feeds = Feed::loadMultiple($ids);
- foreach ($feeds as $feed) {
- $feed->setQueuedTime(0);
- $feed->save();
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/css_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/css_alter.twig
deleted file mode 100644
index 5c5d8f0ae..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/css_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_css_alter().
- */
-function {{ machine_name }}_css_alter(&$css, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
- // Remove defaults.css file.
- unset($css[drupal_get_path('module', 'system') . '/defaults.css']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/data_type_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/data_type_info_alter.twig
deleted file mode 100644
index f040b0a9f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/data_type_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_data_type_info_alter().
- */
-function {{ machine_name }}_data_type_info_alter(&$data_types) {
- $data_types['email']['class'] = '\Drupal\mymodule\Type\Email';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/display_variant_plugin_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/display_variant_plugin_alter.twig
deleted file mode 100644
index 536eda54f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/display_variant_plugin_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_display_variant_plugin_alter().
- */
-function {{ machine_name }}_display_variant_plugin_alter(array &$definitions) {
- $definitions['full_page']['admin_label'] = t('Block layout');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_info_alter.twig
deleted file mode 100644
index ba06f09e4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_editor_info_alter().
- */
-function {{ machine_name }}_editor_info_alter(array &$editors) {
- $editors['some_other_editor']['label'] = t('A different name');
- $editors['some_other_editor']['library']['module'] = 'myeditoroverride';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_js_settings_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_js_settings_alter.twig
deleted file mode 100644
index 71270711e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_js_settings_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_editor_js_settings_alter().
- */
-function {{ machine_name }}_editor_js_settings_alter(array &$settings) {
- if (isset($settings['editor']['formats']['basic_html'])) {
- $settings['editor']['formats']['basic_html']['editor'] = 'MyDifferentEditor';
- $settings['editor']['formats']['basic_html']['editorSettings']['buttons'] = ['strong', 'italic', 'underline'];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_xss_filter_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_xss_filter_alter.twig
deleted file mode 100644
index b6d3b5bd3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/editor_xss_filter_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_editor_xss_filter_alter().
- */
-function {{ machine_name }}_editor_xss_filter_alter(&$editor_xss_filter_class, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL) {
- $filters = $format->filters()->getAll();
- if (isset($filters['filter_wysiwyg']) && $filters['filter_wysiwyg']->status) {
- $editor_xss_filter_class = '\Drupal\filter_wysiwyg\EditorXssFilter\WysiwygFilter';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/element_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/element_info_alter.twig
deleted file mode 100644
index b0eee5285..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/element_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_element_info_alter().
- */
-function {{ machine_name }}_element_info_alter(array &$info) {
- // Decrease the default size of textfields.
- if (isset($info['textfield']['#size'])) {
- $info['textfield']['#size'] = 40;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_access.twig
deleted file mode 100644
index c22b583d1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_access.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_entity_access().
- */
-function {{ machine_name }}_entity_access(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Session\AccountInterface $account) {
- // No opinion.
- return AccessResult::neutral();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_base_field_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_base_field_info.twig
deleted file mode 100644
index 8f4e1ac16..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_base_field_info.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_entity_base_field_info().
- */
-function {{ machine_name }}_entity_base_field_info(\Drupal\Core\Entity\EntityTypeInterface $entity_type) {
- if ($entity_type->id() == 'node') {
- $fields = [];
- $fields['mymodule_text'] = BaseFieldDefinition::create('string')
- ->setLabel(t('The text'))
- ->setDescription(t('A text property added by mymodule.'))
- ->setComputed(TRUE)
- ->setClass('\Drupal\mymodule\EntityComputedText');
-
- return $fields;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_base_field_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_base_field_info_alter.twig
deleted file mode 100644
index 594d2aa59..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_base_field_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_base_field_info_alter().
- */
-function {{ machine_name }}_entity_base_field_info_alter(&$fields, \Drupal\Core\Entity\EntityTypeInterface $entity_type) {
- // Alter the mymodule_text field to use a custom class.
- if ($entity_type->id() == 'node' && !empty($fields['mymodule_text'])) {
- $fields['mymodule_text']->setClass('\Drupal\anothermodule\EntityComputedText');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_build_defaults_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_build_defaults_alter.twig
deleted file mode 100644
index 1e6ab7aba..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_build_defaults_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_entity_build_defaults_alter().
- */
-function {{ machine_name }}_entity_build_defaults_alter(array &$build, \Drupal\Core\Entity\EntityInterface $entity, $view_mode) {
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_create.twig
deleted file mode 100644
index dc83623cf..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_create.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_entity_bundle_create().
- */
-function {{ machine_name }}_entity_bundle_create($entity_type_id, $bundle) {
- // When a new bundle is created, the menu needs to be rebuilt to add the
- // Field UI menu item tabs.
- \Drupal::service('router.builder')->setRebuildNeeded();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_delete.twig
deleted file mode 100644
index 3dc879a9e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_delete.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_entity_bundle_delete().
- */
-function {{ machine_name }}_entity_bundle_delete($entity_type_id, $bundle) {
- // Remove the settings associated with the bundle in my_module.settings.
- $config = \Drupal::config('my_module.settings');
- $bundle_settings = $config->get('bundle_settings');
- if (isset($bundle_settings[$entity_type_id][$bundle])) {
- unset($bundle_settings[$entity_type_id][$bundle]);
- $config->set('bundle_settings', $bundle_settings);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_field_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_field_info.twig
deleted file mode 100644
index 001f0d86b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_field_info.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_entity_bundle_field_info().
- */
-function {{ machine_name }}_entity_bundle_field_info(\Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {
- // Add a property only to nodes of the 'article' bundle.
- if ($entity_type->id() == 'node' && $bundle == 'article') {
- $fields = [];
- $fields['mymodule_text_more'] = BaseFieldDefinition::create('string')
- ->setLabel(t('More text'))
- ->setComputed(TRUE)
- ->setClass('\Drupal\mymodule\EntityComputedMoreText');
- return $fields;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_field_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_field_info_alter.twig
deleted file mode 100644
index 21217921b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_field_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_bundle_field_info_alter().
- */
-function {{ machine_name }}_entity_bundle_field_info_alter(&$fields, \Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle) {
- if ($entity_type->id() == 'node' && $bundle == 'article' && !empty($fields['mymodule_text'])) {
- // Alter the mymodule_text field to use a custom class.
- $fields['mymodule_text']->setClass('\Drupal\anothermodule\EntityComputedText');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_info.twig
deleted file mode 100644
index 74035b0ae..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_info.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_entity_bundle_info().
- */
-function {{ machine_name }}_entity_bundle_info() {
- $bundles['user']['user']['label'] = t('User');
- return $bundles;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_info_alter.twig
deleted file mode 100644
index 752be0394..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_bundle_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_entity_bundle_info_alter().
- */
-function {{ machine_name }}_entity_bundle_info_alter(&$bundles) {
- $bundles['user']['user']['label'] = t('Full account');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create.twig
deleted file mode 100644
index 9fa38f8e8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_entity_create().
- */
-function {{ machine_name }}_entity_create(\Drupal\Core\Entity\EntityInterface $entity) {
- \Drupal::logger('example')->info('Entity created: @label', ['@label' => $entity->label()]);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create_access.twig
deleted file mode 100644
index af7593376..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_create_access.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_entity_create_access().
- */
-function {{ machine_name }}_entity_create_access(\Drupal\Core\Session\AccountInterface $account, array $context, $entity_bundle) {
- // No opinion.
- return AccessResult::neutral();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_delete.twig
deleted file mode 100644
index f893f3d85..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_delete.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_entity_delete().
- */
-function {{ machine_name }}_entity_delete(Drupal\Core\Entity\EntityInterface $entity) {
- // Delete the entity's entry from a fictional table of all entities.
- \Drupal::database()->delete('example_entity')
- ->condition('type', $entity->getEntityTypeId())
- ->condition('id', $entity->id())
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_display_build_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_display_build_alter.twig
deleted file mode 100644
index 330be3dbe..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_display_build_alter.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Implements hook_entity_display_build_alter().
- */
-function {{ machine_name }}_entity_display_build_alter(&$build, $context) {
- // Append RDF term mappings on displayed taxonomy links.
- foreach (Element::children($build) as $field_name) {
- $element = &$build[$field_name];
- if ($element['#field_type'] == 'entity_reference' && $element['#formatter'] == 'entity_reference_label') {
- foreach ($element['#items'] as $delta => $item) {
- $term = $item->entity;
- if (!empty($term->rdf_mapping['rdftype'])) {
- $element[$delta]['#options']['attributes']['typeof'] = $term->rdf_mapping['rdftype'];
- }
- if (!empty($term->rdf_mapping['name']['predicates'])) {
- $element[$delta]['#options']['attributes']['property'] = $term->rdf_mapping['name']['predicates'];
- }
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_extra_field_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_extra_field_info.twig
deleted file mode 100644
index 9badf0a9f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_extra_field_info.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Implements hook_entity_extra_field_info().
- */
-function {{ machine_name }}_entity_extra_field_info() {
- $extra = [];
- $module_language_enabled = \Drupal::moduleHandler()->moduleExists('language');
- $description = t('Node module element');
-
- foreach (NodeType::loadMultiple() as $bundle) {
-
- // Add also the 'language' select if Language module is enabled and the
- // bundle has multilingual support.
- // Visibility of the ordering of the language selector is the same as on the
- // node/add form.
- if ($module_language_enabled) {
- $configuration = ContentLanguageSettings::loadByEntityTypeBundle('node', $bundle->id());
- if ($configuration->isLanguageAlterable()) {
- $extra['node'][$bundle->id()]['form']['language'] = [
- 'label' => t('Language'),
- 'description' => $description,
- 'weight' => 0,
- ];
- }
- }
- $extra['node'][$bundle->id()]['display']['language'] = [
- 'label' => t('Language'),
- 'description' => $description,
- 'weight' => 0,
- 'visible' => FALSE,
- ];
- }
-
- return $extra;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_extra_field_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_extra_field_info_alter.twig
deleted file mode 100644
index 06d8e80c7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_extra_field_info_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_entity_extra_field_info_alter().
- */
-function {{ machine_name }}_entity_extra_field_info_alter(&$info) {
- // Force node title to always be at the top of the list by default.
- foreach (NodeType::loadMultiple() as $bundle) {
- if (isset($info['node'][$bundle->id()]['form']['title'])) {
- $info['node'][$bundle->id()]['form']['title']['weight'] = -20;
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_access.twig
deleted file mode 100644
index 6ea8d4a65..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_access.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_field_access().
- */
-function {{ machine_name }}_entity_field_access($operation, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, \Drupal\Core\Session\AccountInterface $account, \Drupal\Core\Field\FieldItemListInterface $items = NULL) {
- if ($field_definition->getName() == 'field_of_interest' && $operation == 'edit') {
- return AccessResult::allowedIfHasPermission($account, 'update field of interest');
- }
- return AccessResult::neutral();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_access_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_access_alter.twig
deleted file mode 100644
index 7982a8241..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_access_alter.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_entity_field_access_alter().
- */
-function {{ machine_name }}_entity_field_access_alter(array &$grants, array $context) {
- /** @var \Drupal\Core\Field\FieldDefinitionInterface $field_definition */
- $field_definition = $context['field_definition'];
- if ($field_definition->getName() == 'field_of_interest' && $grants['node']->isForbidden()) {
- // Override node module's restriction to no opinion (neither allowed nor
- // forbidden). We don't want to provide our own access hook, we only want to
- // take out node module's part in the access handling of this field. We also
- // don't want to switch node module's grant to
- // AccessResultInterface::isAllowed() , because the grants of other modules
- // should still decide on their own if this field is accessible or not
- $grants['node'] = AccessResult::neutral()->inheritCacheability($grants['node']);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_storage_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_storage_info.twig
deleted file mode 100644
index 132654974..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_storage_info.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Implements hook_entity_field_storage_info().
- */
-function {{ machine_name }}_entity_field_storage_info(\Drupal\Core\Entity\EntityTypeInterface $entity_type) {
- if (\Drupal::entityManager()->getStorage($entity_type->id()) instanceof DynamicallyFieldableEntityStorageInterface) {
- // Query by filtering on the ID as this is more efficient than filtering
- // on the entity_type property directly.
- $ids = \Drupal::entityQuery('field_storage_config')
- ->condition('id', $entity_type->id() . '.', 'STARTS_WITH')
- ->execute();
- // Fetch all fields and key them by field name.
- $field_storages = FieldStorageConfig::loadMultiple($ids);
- $result = [];
- foreach ($field_storages as $field_storage) {
- $result[$field_storage->getName()] = $field_storage;
- }
-
- return $result;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_storage_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_storage_info_alter.twig
deleted file mode 100644
index ea6413133..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_storage_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_field_storage_info_alter().
- */
-function {{ machine_name }}_entity_field_storage_info_alter(&$fields, \Drupal\Core\Entity\EntityTypeInterface $entity_type) {
- // Alter the max_length setting.
- if ($entity_type->id() == 'node' && !empty($fields['mymodule_text'])) {
- $fields['mymodule_text']->setSetting('max_length', 128);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_values_init.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_values_init.twig
deleted file mode 100644
index 1d15bc362..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_field_values_init.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_entity_field_values_init().
- */
-function {{ machine_name }}_entity_field_values_init(\Drupal\Core\Entity\FieldableEntityInterface $entity) {
- if ($entity instanceof \Drupal\Core\Entity\ContentEntityInterface && !$entity->foo->value) {
- $entity->foo->value = 'some_initial_value';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_form_display_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_form_display_alter.twig
deleted file mode 100644
index 5dad932a6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_form_display_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_entity_form_display_alter().
- */
-function {{ machine_name }}_entity_form_display_alter(\Drupal\Core\Entity\Display\EntityFormDisplayInterface $form_display, array $context) {
- // Hide the 'user_picture' field from the register form.
- if ($context['entity_type'] == 'user' && $context['form_mode'] == 'register') {
- $form_display->setComponent('user_picture', [
- 'region' => 'hidden',
- ]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_insert.twig
deleted file mode 100644
index 5fa1b9a94..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_insert.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_entity_insert().
- */
-function {{ machine_name }}_entity_insert(Drupal\Core\Entity\EntityInterface $entity) {
- // Insert the new entity into a fictional table of all entities.
- \Drupal::database()->insert('example_entity')
- ->fields([
- 'type' => $entity->getEntityTypeId(),
- 'id' => $entity->id(),
- 'created' => REQUEST_TIME,
- 'updated' => REQUEST_TIME,
- ])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_load.twig
deleted file mode 100644
index 1d6d48df7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_load.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_entity_load().
- */
-function {{ machine_name }}_entity_load(array $entities, $entity_type_id) {
- foreach ($entities as $entity) {
- $entity->foo = mymodule_add_something($entity);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_operation.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_operation.twig
deleted file mode 100644
index e86fe35db..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_operation.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_entity_operation().
- */
-function {{ machine_name }}_entity_operation(\Drupal\Core\Entity\EntityInterface $entity) {
- $operations = [];
- $operations['translate'] = [
- 'title' => t('Translate'),
- 'url' => \Drupal\Core\Url::fromRoute('foo_module.entity.translate'),
- 'weight' => 50,
- ];
-
- return $operations;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_operation_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_operation_alter.twig
deleted file mode 100644
index a16f03156..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_operation_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_entity_operation_alter().
- */
-function {{ machine_name }}_entity_operation_alter(array &$operations, \Drupal\Core\Entity\EntityInterface $entity) {
- // Alter the title and weight.
- $operations['translate']['title'] = t('Translate @entity_type', [
- '@entity_type' => $entity->getEntityTypeId(),
- ]);
- $operations['translate']['weight'] = 99;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_predelete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_predelete.twig
deleted file mode 100644
index 7f7fb6bdf..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_predelete.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Implements hook_entity_predelete().
- */
-function {{ machine_name }}_entity_predelete(Drupal\Core\Entity\EntityInterface $entity) {
- $connection = \Drupal::database();
- // Count references to this entity in a custom table before they are removed
- // upon entity deletion.
- $id = $entity->id();
- $type = $entity->getEntityTypeId();
- $count = \Drupal::database()->select('example_entity_data')
- ->condition('type', $type)
- ->condition('id', $id)
- ->countQuery()
- ->execute()
- ->fetchField();
-
- // Log the count in a table that records this statistic for deleted entities.
- $connection->merge('example_deleted_entity_statistics')
- ->key(['type' => $type, 'id' => $id])
- ->fields(['count' => $count])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_prepare_form.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_prepare_form.twig
deleted file mode 100644
index aa20155c9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_prepare_form.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_prepare_form().
- */
-function {{ machine_name }}_entity_prepare_form(\Drupal\Core\Entity\EntityInterface $entity, $operation, \Drupal\Core\Form\FormStateInterface $form_state) {
- if ($operation == 'edit') {
- $entity->label->value = 'Altered label';
- $form_state->set('label_altered', TRUE);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_prepare_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_prepare_view.twig
deleted file mode 100644
index efe2cff4b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_prepare_view.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Implements hook_entity_prepare_view().
- */
-function {{ machine_name }}_entity_prepare_view($entity_type_id, array $entities, array $displays, $view_mode) {
- // Load a specific node into the user object for later theming.
- if (!empty($entities) && $entity_type_id == 'user') {
- // Only do the extra work if the component is configured to be
- // displayed. This assumes a 'mymodule_addition' extra field has been
- // defined for the entity bundle in hook_entity_extra_field_info().
- $ids = [];
- foreach ($entities as $id => $entity) {
- if ($displays[$entity->bundle()]->getComponent('mymodule_addition')) {
- $ids[] = $id;
- }
- }
- if ($ids) {
- $nodes = mymodule_get_user_nodes($ids);
- foreach ($ids as $id) {
- $entities[$id]->user_node = $nodes[$id];
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_presave.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_presave.twig
deleted file mode 100644
index 1708dcb9f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_presave.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_presave().
- */
-function {{ machine_name }}_entity_presave(Drupal\Core\Entity\EntityInterface $entity) {
- if ($entity instanceof ContentEntityInterface && $entity->isTranslatable()) {
- $route_match = \Drupal::routeMatch();
- \Drupal::service('content_translation.synchronizer')->synchronizeFields($entity, $entity->language()->getId(), $route_match->getParameter('source_langcode'));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_revision_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_revision_create.twig
deleted file mode 100644
index 95e354904..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_revision_create.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_entity_revision_create().
- */
-function {{ machine_name }}_entity_revision_create(Drupal\Core\Entity\EntityInterface $new_revision, Drupal\Core\Entity\EntityInterface $entity, $keep_untranslatable_fields) {
- // Retain the value from an untranslatable field, which are by default
- // synchronized from the default revision.
- $new_revision->set('untranslatable_field', $entity->get('untranslatable_field'));
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_revision_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_revision_delete.twig
deleted file mode 100644
index c0c8978a4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_revision_delete.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_revision_delete().
- */
-function {{ machine_name }}_entity_revision_delete(Drupal\Core\Entity\EntityInterface $entity) {
- $referenced_files_by_field = _editor_get_file_uuids_by_field($entity);
- foreach ($referenced_files_by_field as $field => $uuids) {
- _editor_delete_file_usage($uuids, $entity, 1);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_storage_load.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_storage_load.twig
deleted file mode 100644
index 6d2fc2ec1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_storage_load.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_entity_storage_load().
- */
-function {{ machine_name }}_entity_storage_load(array $entities, $entity_type) {
- foreach ($entities as $entity) {
- $entity->foo = mymodule_add_something_uncached($entity);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_create.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_create.twig
deleted file mode 100644
index c3e4a481a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_create.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_entity_translation_create().
- */
-function {{ machine_name }}_entity_translation_create(\Drupal\Core\Entity\EntityInterface $translation) {
- \Drupal::logger('example')->info('Entity translation created: @label', ['@label' => $translation->label()]);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_delete.twig
deleted file mode 100644
index ffbf2d918..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_delete.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_entity_translation_delete().
- */
-function {{ machine_name }}_entity_translation_delete(\Drupal\Core\Entity\EntityInterface $translation) {
- $variables = [
- '@language' => $translation->language()->getName(),
- '@label' => $translation->label(),
- ];
- \Drupal::logger('example')->notice('The @language translation of @label has just been deleted.', $variables);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_insert.twig
deleted file mode 100644
index f07564802..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_translation_insert.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_entity_translation_insert().
- */
-function {{ machine_name }}_entity_translation_insert(\Drupal\Core\Entity\EntityInterface $translation) {
- $variables = [
- '@language' => $translation->language()->getName(),
- '@label' => $translation->getUntranslated()->label(),
- ];
- \Drupal::logger('example')->notice('The @language translation of @label has just been stored.', $variables);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_type_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_type_alter.twig
deleted file mode 100644
index ef3f9945f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_type_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_type_alter().
- */
-function {{ machine_name }}_entity_type_alter(array &$entity_types) {
- /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
- // Set the controller class for nodes to an alternate implementation of the
- // Drupal\Core\Entity\EntityStorageInterface interface.
- $entity_types['node']->setStorageClass('Drupal\mymodule\MyCustomNodeStorage');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_type_build.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_type_build.twig
deleted file mode 100644
index e6a32b933..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_type_build.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_type_build().
- */
-function {{ machine_name }}_entity_type_build(array &$entity_types) {
- /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
- // Add a form for a custom node form without overriding the default
- // node form. To override the default node form, use hook_entity_type_alter().
- $entity_types['node']->setFormClass('mymodule_foo', 'Drupal\mymodule\NodeFooForm');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_update.twig
deleted file mode 100644
index 9cc8636e3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_update.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_entity_update().
- */
-function {{ machine_name }}_entity_update(Drupal\Core\Entity\EntityInterface $entity) {
- // Update the entity's entry in a fictional table of all entities.
- \Drupal::database()->update('example_entity')
- ->fields([
- 'updated' => REQUEST_TIME,
- ])
- ->condition('type', $entity->getEntityTypeId())
- ->condition('id', $entity->id())
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view.twig
deleted file mode 100644
index 57b5f9b8e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_entity_view().
- */
-function {{ machine_name }}_entity_view(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) {
- // Only do the extra work if the component is configured to be displayed.
- // This assumes a 'mymodule_addition' extra field has been defined for the
- // entity bundle in hook_entity_extra_field_info().
- if ($display->getComponent('mymodule_addition')) {
- $build['mymodule_addition'] = [
- '#markup' => mymodule_addition($entity),
- '#theme' => 'mymodule_my_additional_field',
- ];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_alter.twig
deleted file mode 100644
index 39b3900ff..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_entity_view_alter().
- */
-function {{ machine_name }}_entity_view_alter(array &$build, Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display) {
- if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
- // Change its weight.
- $build['an_additional_field']['#weight'] = -10;
-
- // Add a #post_render callback to act on the rendered HTML of the entity.
- $build['#post_render'][] = 'my_module_node_post_render';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_display_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_display_alter.twig
deleted file mode 100644
index df17a7860..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_display_alter.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_entity_view_display_alter().
- */
-function {{ machine_name }}_entity_view_display_alter(\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, array $context) {
- // Leave field labels out of the search index.
- if ($context['entity_type'] == 'node' && $context['view_mode'] == 'search_index') {
- foreach ($display->getComponents() as $name => $options) {
- if (isset($options['label'])) {
- $options['label'] = 'hidden';
- $display->setComponent($name, $options);
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_mode_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_mode_alter.twig
deleted file mode 100644
index 92d87fed6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_mode_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_entity_view_mode_alter().
- */
-function {{ machine_name }}_entity_view_mode_alter(&$view_mode, Drupal\Core\Entity\EntityInterface $entity, $context) {
- // For nodes, change the view mode when it is teaser.
- if ($entity->getEntityTypeId() == 'node' && $view_mode == 'teaser') {
- $view_mode = 'my_custom_view_mode';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_mode_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_mode_info_alter.twig
deleted file mode 100644
index 92c5fa5da..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/entity_view_mode_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_entity_view_mode_info_alter().
- */
-function {{ machine_name }}_entity_view_mode_info_alter(&$view_modes) {
- $view_modes['user']['full']['status'] = TRUE;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/extension.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/extension.twig
deleted file mode 100644
index 8a4f98773..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/extension.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_extension().
- */
-function {{ machine_name }}_extension() {
- // Extension for template base names in Twig.
- return '.html.twig';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_info_alter.twig
deleted file mode 100644
index 6ae86a43e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_field_formatter_info_alter().
- */
-function {{ machine_name }}_field_formatter_info_alter(array &$info) {
- // Let a new field type re-use an existing formatter.
- $info['text_default']['field_types'][] = 'my_field_type';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_settings_summary_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_settings_summary_alter.twig
deleted file mode 100644
index ee5a531e2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_settings_summary_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_field_formatter_settings_summary_alter().
- */
-function {{ machine_name }}_field_formatter_settings_summary_alter(&$summary, $context) {
- // Append a message to the summary when an instance of foo_formatter has
- // mysetting set to TRUE for the current view mode.
- if ($context['formatter']->getPluginId() == 'foo_formatter') {
- if ($context['formatter']->getThirdPartySetting('my_module', 'my_setting')) {
- $summary[] = t('My setting enabled.');
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_third_party_settings_form.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_third_party_settings_form.twig
deleted file mode 100644
index ac7288890..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_formatter_third_party_settings_form.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_field_formatter_third_party_settings_form().
- */
-function {{ machine_name }}_field_formatter_third_party_settings_form(\Drupal\Core\Field\FormatterInterface $plugin, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, $view_mode, $form, \Drupal\Core\Form\FormStateInterface $form_state) {
- $element = [];
- // Add a 'my_setting' checkbox to the settings form for 'foo_formatter' field
- // formatters.
- if ($plugin->getPluginId() == 'foo_formatter') {
- $element['my_setting'] = [
- '#type' => 'checkbox',
- '#title' => t('My setting'),
- '#default_value' => $plugin->getThirdPartySetting('my_module', 'my_setting'),
- ];
- }
- return $element;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_info_alter.twig
deleted file mode 100644
index aba90abf7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_field_info_alter().
- */
-function {{ machine_name }}_field_info_alter(&$info) {
- // Change the default widget for fields of type 'foo'.
- if (isset($info['foo'])) {
- $info['foo']['default widget'] = 'mymodule_widget';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_info_max_weight.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_info_max_weight.twig
deleted file mode 100644
index bae8630ff..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_info_max_weight.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_field_info_max_weight().
- */
-function {{ machine_name }}_field_info_max_weight($entity_type, $bundle, $context, $context_mode) {
- $weights = [];
-
- foreach (my_module_entity_additions($entity_type, $bundle, $context, $context_mode) as $addition) {
- $weights[] = $addition['weight'];
- }
-
- return $weights ? max($weights) : NULL;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_purge_field.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_purge_field.twig
deleted file mode 100644
index 212963a04..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_purge_field.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_field_purge_field().
- */
-function {{ machine_name }}_field_purge_field(\Drupal\field\Entity\FieldConfig $field) {
- \Drupal::database()->delete('my_module_field_info')
- ->condition('id', $field->id())
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_purge_field_storage.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_purge_field_storage.twig
deleted file mode 100644
index fff21f02f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_purge_field_storage.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_field_purge_field_storage().
- */
-function {{ machine_name }}_field_purge_field_storage(\Drupal\field\Entity\FieldStorageConfig $field_storage) {
- \Drupal::database()->delete('my_module_field_storage_info')
- ->condition('uuid', $field_storage->uuid())
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_storage_config_update_forbid.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_storage_config_update_forbid.twig
deleted file mode 100644
index 77fd3c1ee..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_storage_config_update_forbid.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_field_storage_config_update_forbid().
- */
-function {{ machine_name }}_field_storage_config_update_forbid(\Drupal\field\FieldStorageConfigInterface $field_storage, \Drupal\field\FieldStorageConfigInterface $prior_field_storage) {
- if ($field_storage->module == 'options' && $field_storage->hasData()) {
- // Forbid any update that removes allowed values with actual data.
- $allowed_values = $field_storage->getSetting('allowed_values');
- $prior_allowed_values = $prior_field_storage->getSetting('allowed_values');
- $lost_keys = array_keys(array_diff_key($prior_allowed_values, $allowed_values));
- if (_options_values_in_use($field_storage->getTargetEntityTypeId(), $field_storage->getName(), $lost_keys)) {
- throw new \Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException(t('A list field (@field_name) with existing data cannot have its keys changed.', ['@field_name' => $field_storage->getName()]));
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_ui_preconfigured_options_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_ui_preconfigured_options_alter.twig
deleted file mode 100644
index e86d816d8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_ui_preconfigured_options_alter.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Implements hook_field_ui_preconfigured_options_alter().
- */
-function {{ machine_name }}_field_ui_preconfigured_options_alter(array &$options, $field_type) {
- // If the field is not an "entity_reference"-based field, bail out.
- /** @var \Drupal\Core\Field\FieldTypePluginManager $field_type_manager */
- $field_type_manager = \Drupal::service('plugin.manager.field.field_type');
- $class = $field_type_manager->getPluginClass($field_type);
- if (!is_a($class, 'Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem', TRUE)) {
- return;
- }
-
- // Set the default formatter for media in entity reference fields to be the
- // "Rendered entity" formatter.
- if (!empty($options['media'])) {
- $options['media']['entity_view_display']['type'] = 'entity_reference_entity_view';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data.twig
deleted file mode 100644
index 101eb7a79..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_field_views_data().
- */
-function {{ machine_name }}_field_views_data(\Drupal\field\FieldStorageConfigInterface $field_storage) {
- $data = views_field_default_views_data($field_storage);
- foreach ($data as $table_name => $table_data) {
- // Add the relationship only on the target_id field.
- $data[$table_name][$field_storage->getName() . '_target_id']['relationship'] = [
- 'id' => 'standard',
- 'base' => 'file_managed',
- 'base field' => 'target_id',
- 'label' => t('image from @field_name', ['@field_name' => $field_storage->getName()]),
- ];
- }
-
- return $data;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data_alter.twig
deleted file mode 100644
index 388b97ad8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data_alter.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Implements hook_field_views_data_alter().
- */
-function {{ machine_name }}_field_views_data_alter(array &$data, \Drupal\field\FieldStorageConfigInterface $field_storage) {
- $entity_type_id = $field_storage->getTargetEntityTypeId();
- $field_name = $field_storage->getName();
- $entity_type = \Drupal::entityManager()->getDefinition($entity_type_id);
- $pseudo_field_name = 'reverse_' . $field_name . '_' . $entity_type_id;
- $table_mapping = \Drupal::entityManager()->getStorage($entity_type_id)->getTableMapping();
-
- list($label) = views_entity_field_label($entity_type_id, $field_name);
-
- $data['file_managed'][$pseudo_field_name]['relationship'] = [
- 'title' => t('@entity using @field', ['@entity' => $entity_type->getLabel(), '@field' => $label]),
- 'help' => t('Relate each @entity with a @field set to the image.', ['@entity' => $entity_type->getLabel(), '@field' => $label]),
- 'id' => 'entity_reverse',
- 'field_name' => $field_name,
- 'entity_type' => $entity_type_id,
- 'field table' => $table_mapping->getDedicatedDataTableName($field_storage),
- 'field field' => $field_name . '_target_id',
- 'base' => $entity_type->getBaseTable(),
- 'base field' => $entity_type->getKey('id'),
- 'label' => $field_name,
- 'join_extra' => [
- 0 => [
- 'field' => 'deleted',
- 'value' => 0,
- 'numeric' => TRUE,
- ],
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data_views_data_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data_views_data_alter.twig
deleted file mode 100644
index 96eb9d7d3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_views_data_views_data_alter.twig
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Implements hook_field_views_data_views_data_alter().
- */
-function {{ machine_name }}_field_views_data_views_data_alter(array &$data, \Drupal\field\FieldStorageConfigInterface $field) {
- $field_name = $field->getName();
- $data_key = 'field_data_' . $field_name;
- $entity_type_id = $field->entity_type;
- $entity_type = \Drupal::entityManager()->getDefinition($entity_type_id);
- $pseudo_field_name = 'reverse_' . $field_name . '_' . $entity_type_id;
- list($label) = views_entity_field_label($entity_type_id, $field_name);
- $table_mapping = \Drupal::entityManager()->getStorage($entity_type_id)->getTableMapping();
-
- // Views data for this field is in $data[$data_key].
- $data[$data_key][$pseudo_field_name]['relationship'] = [
- 'title' => t('@entity using @field', ['@entity' => $entity_type->getLabel(), '@field' => $label]),
- 'help' => t('Relate each @entity with a @field set to the term.', ['@entity' => $entity_type->getLabel(), '@field' => $label]),
- 'id' => 'entity_reverse',
- 'field_name' => $field_name,
- 'entity_type' => $entity_type_id,
- 'field table' => $table_mapping->getDedicatedDataTableName($field),
- 'field field' => $field_name . '_target_id',
- 'base' => $entity_type->getBaseTable(),
- 'base field' => $entity_type->getKey('id'),
- 'label' => $field_name,
- 'join_extra' => [
- 0 => [
- 'field' => 'deleted',
- 'value' => 0,
- 'numeric' => TRUE,
- ],
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_WIDGET_TYPE_form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_WIDGET_TYPE_form_alter.twig
deleted file mode 100644
index b3b19c8b0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_WIDGET_TYPE_form_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_field_widget_WIDGET_TYPE_form_alter().
- */
-function {{ machine_name }}_field_widget_WIDGET_TYPE_form_alter(&$element, \Drupal\Core\Form\FormStateInterface $form_state, $context) {
- // Code here will only act on widgets of type WIDGET_TYPE. For example,
- // hook_field_widget_mymodule_autocomplete_form_alter() will only act on
- // widgets of type 'mymodule_autocomplete'.
- $element['#autocomplete_route_name'] = 'mymodule.autocomplete_route';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_form_alter.twig
deleted file mode 100644
index a1ad97a6f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_form_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_field_widget_form_alter().
- */
-function {{ machine_name }}_field_widget_form_alter(&$element, \Drupal\Core\Form\FormStateInterface $form_state, $context) {
- // Add a css class to widget form elements for all fields of type mytype.
- $field_definition = $context['items']->getFieldDefinition();
- if ($field_definition->getType() == 'mytype') {
- // Be sure not to overwrite existing attributes.
- $element['#attributes']['class'][] = 'myclass';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_info_alter.twig
deleted file mode 100644
index 57808d2c0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_field_widget_info_alter().
- */
-function {{ machine_name }}_field_widget_info_alter(array &$info) {
- // Let a new field type re-use an existing widget.
- $info['options_select']['field_types'][] = 'my_field_type';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_multivalue_WIDGET_TYPE_form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_multivalue_WIDGET_TYPE_form_alter.twig
deleted file mode 100644
index 21ded3343..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_multivalue_WIDGET_TYPE_form_alter.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_field_widget_multivalue_WIDGET_TYPE_form_alter().
- */
-function {{ machine_name }}_field_widget_multivalue_WIDGET_TYPE_form_alter(array &$elements, \Drupal\Core\Form\FormStateInterface $form_state, array $context) {
- // Code here will only act on widgets of type WIDGET_TYPE. For example,
- // hook_field_widget_multivalue_mymodule_autocomplete_form_alter() will only
- // act on widgets of type 'mymodule_autocomplete'.
- // Change the autocomplete route for each autocomplete element within the
- // multivalue widget.
- foreach (Element::children($elements) as $delta => $element) {
- $elements[$delta]['#autocomplete_route_name'] = 'mymodule.autocomplete_route';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_multivalue_form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_multivalue_form_alter.twig
deleted file mode 100644
index f0432c387..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_multivalue_form_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_field_widget_multivalue_form_alter().
- */
-function {{ machine_name }}_field_widget_multivalue_form_alter(array &$elements, \Drupal\Core\Form\FormStateInterface $form_state, array $context) {
- // Add a css class to widget form elements for all fields of type mytype.
- $field_definition = $context['items']->getFieldDefinition();
- if ($field_definition->getType() == 'mytype') {
- // Be sure not to overwrite existing attributes.
- $elements['#attributes']['class'][] = 'myclass';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_settings_summary_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_settings_summary_alter.twig
deleted file mode 100644
index c46fde129..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_settings_summary_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_field_widget_settings_summary_alter().
- */
-function {{ machine_name }}_field_widget_settings_summary_alter(&$summary, $context) {
- // Append a message to the summary when an instance of foo_widget has
- // mysetting set to TRUE for the current view mode.
- if ($context['widget']->getPluginId() == 'foo_widget') {
- if ($context['widget']->getThirdPartySetting('my_module', 'my_setting')) {
- $summary[] = t('My setting enabled.');
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_third_party_settings_form.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_third_party_settings_form.twig
deleted file mode 100644
index 6219d39c6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/field_widget_third_party_settings_form.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_field_widget_third_party_settings_form().
- */
-function {{ machine_name }}_field_widget_third_party_settings_form(\Drupal\Core\Field\WidgetInterface $plugin, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, $form_mode, $form, \Drupal\Core\Form\FormStateInterface $form_state) {
- $element = [];
- // Add a 'my_setting' checkbox to the settings form for 'foo_widget' field
- // widgets.
- if ($plugin->getPluginId() == 'foo_widget') {
- $element['my_setting'] = [
- '#type' => 'checkbox',
- '#title' => t('My setting'),
- '#default_value' => $plugin->getThirdPartySetting('my_module', 'my_setting'),
- ];
- }
- return $element;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_copy.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_copy.twig
deleted file mode 100644
index 1fa6532b1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_copy.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_file_copy().
- */
-function {{ machine_name }}_file_copy(Drupal\file\FileInterface $file, Drupal\file\FileInterface $source) {
- // Make sure that the file name starts with the owner's user name.
- if (strpos($file->getFilename(), $file->getOwner()->name) !== 0) {
- $file->setFilename($file->getOwner()->name . '_' . $file->getFilename());
- $file->save();
-
- \Drupal::logger('file')->notice('Copied file %source has been renamed to %destination', ['%source' => $source->filename, '%destination' => $file->getFilename()]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_download.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_download.twig
deleted file mode 100644
index 8dd1bfb57..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_download.twig
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Implements hook_file_download().
- */
-function {{ machine_name }}_file_download($uri) {
- // Check to see if this is a config download.
- $scheme = file_uri_scheme($uri);
- $target = file_uri_target($uri);
- if ($scheme == 'temporary' && $target == 'config.tar.gz') {
- return [
- 'Content-disposition' => 'attachment; filename="config.tar.gz"',
- ];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_mimetype_mapping_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_mimetype_mapping_alter.twig
deleted file mode 100644
index 0cf9e0954..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_mimetype_mapping_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_file_mimetype_mapping_alter().
- */
-function {{ machine_name }}_file_mimetype_mapping_alter(&$mapping) {
- // Add new MIME type 'drupal/info'.
- $mapping['mimetypes']['example_info'] = 'drupal/info';
- // Add new extension '.info.yml' and map it to the 'drupal/info' MIME type.
- $mapping['extensions']['info'] = 'example_info';
- // Override existing extension mapping for '.ogg' files.
- $mapping['extensions']['ogg'] = 189;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_move.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_move.twig
deleted file mode 100644
index 51138b590..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_move.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_file_move().
- */
-function {{ machine_name }}_file_move(Drupal\file\FileInterface $file, Drupal\file\FileInterface $source) {
- // Make sure that the file name starts with the owner's user name.
- if (strpos($file->getFilename(), $file->getOwner()->name) !== 0) {
- $file->setFilename($file->getOwner()->name . '_' . $file->getFilename());
- $file->save();
-
- \Drupal::logger('file')->notice('Moved file %source has been renamed to %destination', ['%source' => $source->filename, '%destination' => $file->getFilename()]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_url_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_url_alter.twig
deleted file mode 100644
index 4cc901a9e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_url_alter.twig
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Implements hook_file_url_alter().
- */
-function {{ machine_name }}_file_url_alter(&$uri) {
- $user = \Drupal::currentUser();
-
- // User 1 will always see the local file in this example.
- if ($user->id() == 1) {
- return;
- }
-
- $cdn1 = 'http://cdn1.example.com';
- $cdn2 = 'http://cdn2.example.com';
- $cdn_extensions = ['css', 'js', 'gif', 'jpg', 'jpeg', 'png'];
-
- // Most CDNs don't support private file transfers without a lot of hassle,
- // so don't support this in the common case.
- $schemes = ['public'];
-
- $scheme = file_uri_scheme($uri);
-
- // Only serve shipped files and public created files from the CDN.
- if (!$scheme || in_array($scheme, $schemes)) {
- // Shipped files.
- if (!$scheme) {
- $path = $uri;
- }
- // Public created files.
- else {
- $wrapper = \Drupal::service('stream_wrapper_manager')->getViaScheme($scheme);
- $path = $wrapper->getDirectoryPath() . '/' . file_uri_target($uri);
- }
-
- // Clean up Windows paths.
- $path = str_replace('\\', '/', $path);
-
- // Serve files with one of the CDN extensions from CDN 1, all others from
- // CDN 2.
- $pathinfo = pathinfo($path);
- if (isset($pathinfo['extension']) && in_array($pathinfo['extension'], $cdn_extensions)) {
- $uri = $cdn1 . '/' . $path;
- }
- else {
- $uri = $cdn2 . '/' . $path;
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_validate.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_validate.twig
deleted file mode 100644
index 0080a6aec..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/file_validate.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_file_validate().
- */
-function {{ machine_name }}_file_validate(Drupal\file\FileInterface $file) {
- $errors = [];
-
- if (!$file->getFilename()) {
- $errors[] = t("The file's name is empty. Please give a name to the file.");
- }
- if (strlen($file->getFilename()) > 255) {
- $errors[] = t("The file's name exceeds the 255 characters limit. Please rename the file and try again.");
- }
-
- return $errors;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filetransfer_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filetransfer_info.twig
deleted file mode 100644
index ce2828a5b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filetransfer_info.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_filetransfer_info().
- */
-function {{ machine_name }}_filetransfer_info() {
- $info['sftp'] = [
- 'title' => t('SFTP (Secure FTP)'),
- 'class' => 'Drupal\Core\FileTransfer\SFTP',
- 'weight' => 10,
- ];
- return $info;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filetransfer_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filetransfer_info_alter.twig
deleted file mode 100644
index ca8816c87..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filetransfer_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_filetransfer_info_alter().
- */
-function {{ machine_name }}_filetransfer_info_alter(&$filetransfer_info) {
- // Remove the FTP option entirely.
- unset($filetransfer_info['ftp']);
- // Make sure the SSH option is listed first.
- $filetransfer_info['ssh']['weight'] = -10;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_format_disable.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_format_disable.twig
deleted file mode 100644
index 94ad1e918..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_format_disable.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_filter_format_disable().
- */
-function {{ machine_name }}_filter_format_disable($format) {
- mymodule_cache_rebuild();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_info_alter.twig
deleted file mode 100644
index 84aa521bb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_filter_info_alter().
- */
-function {{ machine_name }}_filter_info_alter(&$info) {
- // Alter the default settings of the URL filter provided by core.
- $info['filter_url']['default_settings'] = [
- 'filter_url_length' => 100,
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_secure_image_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_secure_image_alter.twig
deleted file mode 100644
index 103acf914..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/filter_secure_image_alter.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_filter_secure_image_alter().
- */
-function {{ machine_name }}_filter_secure_image_alter(&$image) {
- // Turn an invalid image into an error indicator.
- $image->setAttribute('src', base_path() . 'core/misc/icons/e32700/error.svg');
- $image->setAttribute('alt', t('Image removed.'));
- $image->setAttribute('title', t('This image has been removed. For security reasons, only images from the local domain are allowed.'));
-
- // Add a CSS class to aid in styling.
- $class = ($image->getAttribute('class') ? trim($image->getAttribute('class')) . ' ' : '');
- $class .= 'filter-image-invalid';
- $image->setAttribute('class', $class);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_BASE_FORM_ID_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_BASE_FORM_ID_alter.twig
deleted file mode 100644
index d3d58563d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_BASE_FORM_ID_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_form_BASE_FORM_ID_alter().
- */
-function {{ machine_name }}_form_BASE_FORM_ID_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
- // Modification for the form with the given BASE_FORM_ID goes here. For
- // example, if BASE_FORM_ID is "node_form", this code would run on every
- // node form, regardless of node type.
-
- // Add a checkbox to the node form about agreeing to terms of use.
- $form['terms_of_use'] = [
- '#type' => 'checkbox',
- '#title' => t("I agree with the website's terms and conditions."),
- '#required' => TRUE,
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_FORM_ID_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_FORM_ID_alter.twig
deleted file mode 100644
index 473f3db62..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_FORM_ID_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_form_FORM_ID_alter().
- */
-function {{ machine_name }}_form_FORM_ID_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
- // Modification for the form with the given form ID goes here. For example, if
- // FORM_ID is "user_register_form" this code would run only on the user
- // registration form.
-
- // Add a checkbox to registration form about agreeing to terms of use.
- $form['terms_of_use'] = [
- '#type' => 'checkbox',
- '#title' => t("I agree with the website's terms and conditions."),
- '#required' => TRUE,
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_alter.twig
deleted file mode 100644
index 4adff844d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_alter.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_form_alter().
- */
-function {{ machine_name }}_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
- if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
- $upload_enabled_types = \Drupal::config('mymodule.settings')->get('upload_enabled_types');
- $form['workflow']['upload_' . $form['type']['#value']] = [
- '#type' => 'radios',
- '#title' => t('Attachments'),
- '#default_value' => in_array($form['type']['#value'], $upload_enabled_types) ? 1 : 0,
- '#options' => [t('Disabled'), t('Enabled')],
- ];
- // Add a custom submit handler to save the array of types back to the config file.
- $form['actions']['submit']['#submit'][] = 'mymodule_upload_enabled_types_submit';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_system_theme_settings_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_system_theme_settings_alter.twig
deleted file mode 100644
index 983a8a6bb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/form_system_theme_settings_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_form_system_theme_settings_alter().
- */
-function {{ machine_name }}_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
- // Add a checkbox to toggle the breadcrumb trail.
- $form['toggle_breadcrumb'] = [
- '#type' => 'checkbox',
- '#title' => t('Display the breadcrumb'),
- '#default_value' => theme_get_setting('features.breadcrumb'),
- '#description' => t('Show a trail of links from the homepage to the current page.'),
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hal_relation_uri_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hal_relation_uri_alter.twig
deleted file mode 100644
index c1d831237..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hal_relation_uri_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_hal_relation_uri_alter().
- */
-function {{ machine_name }}_hal_relation_uri_alter(&$uri, $context = []) {
- if ($context['mymodule'] == TRUE) {
- $base = \Drupal::config('hal.settings')->get('link_domain');
- $uri = str_replace($base, 'http://mymodule.domain', $uri);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hal_type_uri_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hal_type_uri_alter.twig
deleted file mode 100644
index 504a2e791..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hal_type_uri_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_hal_type_uri_alter().
- */
-function {{ machine_name }}_hal_type_uri_alter(&$uri, $context = []) {
- if ($context['mymodule'] == TRUE) {
- $base = \Drupal::config('hal.settings')->get('link_domain');
- $uri = str_replace($base, 'http://mymodule.domain', $uri);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/help.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/help.twig
deleted file mode 100644
index 55ff2a1b9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/help.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_help().
- */
-function {{ machine_name }}_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
- switch ($route_name) {
- // Main module help for the block module.
- case 'help.page.block':
- return '' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The blocks administration page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', [':blocks' => \Drupal::url('block.admin_display')]) . '
';
-
- // Help for another path in the block module.
- case 'block.admin_display':
- return '' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the Save blocks button at the bottom of the page.') . '
';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/help_section_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/help_section_info_alter.twig
deleted file mode 100644
index 30777b7c6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/help_section_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_help_section_info_alter().
- */
-function {{ machine_name }}_help_section_info_alter(&$info) {
- // Alter the header for the module overviews section.
- $info['hook_help']['header'] = t('Overviews of modules');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hook_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hook_info.twig
deleted file mode 100644
index 83d061aef..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/hook_info.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_hook_info().
- */
-function {{ machine_name }}_hook_info() {
- $hooks['token_info'] = [
- 'group' => 'tokens',
- ];
- $hooks['tokens'] = [
- 'group' => 'tokens',
- ];
- return $hooks;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/image_effect_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/image_effect_info_alter.twig
deleted file mode 100644
index 3743cf51c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/image_effect_info_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_image_effect_info_alter().
- */
-function {{ machine_name }}_image_effect_info_alter(&$effects) {
- // Override the Image module's 'Scale and Crop' effect label.
- $effects['image_scale_and_crop']['label'] = t('Bangers and Mash');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/image_style_flush.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/image_style_flush.twig
deleted file mode 100644
index 3edacc3c5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/image_style_flush.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_image_style_flush().
- */
-function {{ machine_name }}_image_style_flush($style) {
- // Empty cached data that contains information about the style.
- \Drupal::cache('mymodule')->deleteAll();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install.twig
deleted file mode 100644
index ffe23bdcc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_install().
- */
-function {{ machine_name }}_install() {
- // Create the styles directory and ensure it's writable.
- $directory = file_default_scheme() . '://styles';
- file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install_tasks.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install_tasks.twig
deleted file mode 100644
index 6e5258193..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install_tasks.twig
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Implements hook_install_tasks().
- */
-function {{ machine_name }}_install_tasks(&$install_state) {
- // Here, we define a variable to allow tasks to indicate that a particular,
- // processor-intensive batch process needs to be triggered later on in the
- // installation.
- $myprofile_needs_batch_processing = \Drupal::state()->get('myprofile.needs_batch_processing', FALSE);
- $tasks = [
- // This is an example of a task that defines a form which the user who is
- // installing the site will be asked to fill out. To implement this task,
- // your profile would define a function named myprofile_data_import_form()
- // as a normal form API callback function, with associated validation and
- // submit handlers. In the submit handler, in addition to saving whatever
- // other data you have collected from the user, you might also call
- // \Drupal::state()->set('myprofile.needs_batch_processing', TRUE) if the
- // user has entered data which requires that batch processing will need to
- // occur later on.
- 'myprofile_data_import_form' => [
- 'display_name' => t('Data import options'),
- 'type' => 'form',
- ],
- // Similarly, to implement this task, your profile would define a function
- // named myprofile_settings_form() with associated validation and submit
- // handlers. This form might be used to collect and save additional
- // information from the user that your profile needs. There are no extra
- // steps required for your profile to act as an "installation wizard"; you
- // can simply define as many tasks of type 'form' as you wish to execute,
- // and the forms will be presented to the user, one after another.
- 'myprofile_settings_form' => [
- 'display_name' => t('Additional options'),
- 'type' => 'form',
- ],
- // This is an example of a task that performs batch operations. To
- // implement this task, your profile would define a function named
- // myprofile_batch_processing() which returns a batch API array definition
- // that the installer will use to execute your batch operations. Due to the
- // 'myprofile.needs_batch_processing' variable used here, this task will be
- // hidden and skipped unless your profile set it to TRUE in one of the
- // previous tasks.
- 'myprofile_batch_processing' => [
- 'display_name' => t('Import additional data'),
- 'display' => $myprofile_needs_batch_processing,
- 'type' => 'batch',
- 'run' => $myprofile_needs_batch_processing ? INSTALL_TASK_RUN_IF_NOT_COMPLETED : INSTALL_TASK_SKIP,
- ],
- // This is an example of a task that will not be displayed in the list that
- // the user sees. To implement this task, your profile would define a
- // function named myprofile_final_site_setup(), in which additional,
- // automated site setup operations would be performed. Since this is the
- // last task defined by your profile, you should also use this function to
- // call \Drupal::state()->delete('myprofile.needs_batch_processing') and
- // clean up the state that was used above. If you want the user to pass
- // to the final Drupal installation tasks uninterrupted, return no output
- // from this function. Otherwise, return themed output that the user will
- // see (for example, a confirmation page explaining that your profile's
- // tasks are complete, with a link to reload the current page and therefore
- // pass on to the final Drupal installation tasks when the user is ready to
- // do so).
- 'myprofile_final_site_setup' => [],
- ];
- return $tasks;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install_tasks_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install_tasks_alter.twig
deleted file mode 100644
index 09cd37fd2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/install_tasks_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_install_tasks_alter().
- */
-function {{ machine_name }}_install_tasks_alter(&$tasks, $install_state) {
- // Replace the entire site configuration form provided by Drupal core
- // with a custom callback function defined by this installation profile.
- $tasks['install_configure_form']['function'] = 'myprofile_install_configure_form';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_alter.twig
deleted file mode 100644
index b530f2f3a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_js_alter().
- */
-function {{ machine_name }}_js_alter(&$javascript, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
- // Swap out jQuery to use an updated version of the library.
- $javascript['core/assets/vendor/jquery/jquery.min.js']['data'] = drupal_get_path('module', 'jquery_update') . '/jquery.js';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_settings_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_settings_alter.twig
deleted file mode 100644
index 7bda68616..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_settings_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_js_settings_alter().
- */
-function {{ machine_name }}_js_settings_alter(array &$settings, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
- // Add settings.
- $settings['user']['uid'] = \Drupal::currentUser();
-
- // Manipulate settings.
- if (isset($settings['dialog'])) {
- $settings['dialog']['autoResize'] = FALSE;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_settings_build.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_settings_build.twig
deleted file mode 100644
index 9b709bd2f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/js_settings_build.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_js_settings_build().
- */
-function {{ machine_name }}_js_settings_build(array &$settings, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
- // Manipulate settings.
- if (isset($settings['dialog'])) {
- $settings['dialog']['autoResize'] = FALSE;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_fallback_candidates_OPERATION_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_fallback_candidates_OPERATION_alter.twig
deleted file mode 100644
index b79e3749e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_fallback_candidates_OPERATION_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_language_fallback_candidates_OPERATION_alter().
- */
-function {{ machine_name }}_language_fallback_candidates_OPERATION_alter(array &$candidates, array $context) {
- // We know that the current OPERATION deals with entities so no need to check
- // here.
- if ($context['data']->getEntityTypeId() == 'node') {
- $candidates = array_reverse($candidates);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_fallback_candidates_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_fallback_candidates_alter.twig
deleted file mode 100644
index 607c9ef2e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_fallback_candidates_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_language_fallback_candidates_alter().
- */
-function {{ machine_name }}_language_fallback_candidates_alter(array &$candidates, array $context) {
- $candidates = array_reverse($candidates);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_negotiation_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_negotiation_info_alter.twig
deleted file mode 100644
index 99294b6e7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_negotiation_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_language_negotiation_info_alter().
- */
-function {{ machine_name }}_language_negotiation_info_alter(array &$negotiation_info) {
- if (isset($negotiation_info['custom_language_method'])) {
- $negotiation_info['custom_language_method']['config'] = 'admin/config/regional/language/detection/custom-language-method';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_switch_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_switch_links_alter.twig
deleted file mode 100644
index 5d57b69a6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_switch_links_alter.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_language_switch_links_alter().
- */
-function {{ machine_name }}_language_switch_links_alter(array &$links, $type, \Drupal\Core\Url $url) {
- $language_interface = \Drupal::languageManager()->getCurrentLanguage();
-
- if ($type == LanguageInterface::TYPE_CONTENT && isset($links[$language_interface->getId()])) {
- foreach ($links[$language_interface->getId()] as $link) {
- $link['attributes']['class'][] = 'active-language';
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_types_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_types_info.twig
deleted file mode 100644
index 65a5e5a0f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_types_info.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_language_types_info().
- */
-function {{ machine_name }}_language_types_info() {
- return [
- 'custom_language_type' => [
- 'name' => t('Custom language'),
- 'description' => t('A custom language type.'),
- 'locked' => FALSE,
- ],
- 'fixed_custom_language_type' => [
- 'locked' => TRUE,
- 'fixed' => ['custom_language_negotiation_method'],
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_types_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_types_info_alter.twig
deleted file mode 100644
index 06e599f90..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/language_types_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_language_types_info_alter().
- */
-function {{ machine_name }}_language_types_info_alter(array &$language_types) {
- if (isset($language_types['custom_language_type'])) {
- $language_types['custom_language_type_custom']['description'] = t('A far better description.');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/layout_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/layout_alter.twig
deleted file mode 100644
index e3319a276..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/layout_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_layout_alter().
- */
-function {{ machine_name }}_layout_alter(&$definitions) {
- // Remove a layout.
- unset($definitions['twocol']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/library_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/library_info_alter.twig
deleted file mode 100644
index 9b08a70d5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/library_info_alter.twig
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Implements hook_library_info_alter().
- */
-function {{ machine_name }}_library_info_alter(&$libraries, $extension) {
- // Update Farbtastic to version 2.0.
- if ($extension == 'core' && isset($libraries['jquery.farbtastic'])) {
- // Verify existing version is older than the one we are updating to.
- if (version_compare($libraries['jquery.farbtastic']['version'], '2.0', '<')) {
- // Update the existing Farbtastic to version 2.0.
- $libraries['jquery.farbtastic']['version'] = '2.0';
- // To accurately replace library files, the order of files and the options
- // of each file have to be retained; e.g., like this:
- $old_path = 'assets/vendor/farbtastic';
- // Since the replaced library files are no longer located in a directory
- // relative to the original extension, specify an absolute path (relative
- // to DRUPAL_ROOT / base_path()) to the new location.
- $new_path = '/' . drupal_get_path('module', 'farbtastic_update') . '/js';
- $new_js = [];
- $replacements = [
- $old_path . '/farbtastic.js' => $new_path . '/farbtastic-2.0.js',
- ];
- foreach ($libraries['jquery.farbtastic']['js'] as $source => $options) {
- if (isset($replacements[$source])) {
- $new_js[$replacements[$source]] = $options;
- }
- else {
- $new_js[$source] = $options;
- }
- }
- $libraries['jquery.farbtastic']['js'] = $new_js;
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/library_info_build.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/library_info_build.twig
deleted file mode 100644
index a833bc4d7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/library_info_build.twig
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * Implements hook_library_info_build().
- */
-function {{ machine_name }}_library_info_build() {
- $libraries = [];
- // Add a library whose information changes depending on certain conditions.
- $libraries['mymodule.zombie'] = [
- 'dependencies' => [
- 'core/backbone',
- ],
- ];
- if (Drupal::moduleHandler()->moduleExists('minifyzombies')) {
- $libraries['mymodule.zombie'] += [
- 'js' => [
- 'mymodule.zombie.min.js' => [],
- ],
- 'css' => [
- 'base' => [
- 'mymodule.zombie.min.css' => [],
- ],
- ],
- ];
- }
- else {
- $libraries['mymodule.zombie'] += [
- 'js' => [
- 'mymodule.zombie.js' => [],
- ],
- 'css' => [
- 'base' => [
- 'mymodule.zombie.css' => [],
- ],
- ],
- ];
- }
-
- // Add a library only if a certain condition is met. If code wants to
- // integrate with this library it is safe to (try to) load it unconditionally
- // without reproducing this check. If the library definition does not exist
- // the library (of course) not be loaded but no notices or errors will be
- // triggered.
- if (Drupal::moduleHandler()->moduleExists('vampirize')) {
- $libraries['mymodule.vampire'] = [
- 'js' => [
- 'js/vampire.js' => [],
- ],
- 'css' => [
- 'base' => [
- 'css/vampire.css',
- ],
- ],
- 'dependencies' => [
- 'core/jquery',
- ],
- ];
- }
- return $libraries;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/link_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/link_alter.twig
deleted file mode 100644
index f088b9cb4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/link_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_link_alter().
- */
-function {{ machine_name }}_link_alter(&$variables) {
- // Add a warning to the end of route links to the admin section.
- if (isset($variables['route_name']) && strpos($variables['route_name'], 'admin') !== FALSE) {
- $variables['text'] = t('@text (Warning!)', ['@text' => $variables['text']]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/local_tasks_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/local_tasks_alter.twig
deleted file mode 100644
index de992e274..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/local_tasks_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_local_tasks_alter().
- */
-function {{ machine_name }}_local_tasks_alter(&$local_tasks) {
- // Remove a specified local task plugin.
- unset($local_tasks['example_plugin_id']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/locale_translation_projects_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/locale_translation_projects_alter.twig
deleted file mode 100644
index dc3d3ccfe..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/locale_translation_projects_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_locale_translation_projects_alter().
- */
-function {{ machine_name }}_locale_translation_projects_alter(&$projects) {
- // The translations are located at a custom translation sever.
- $projects['existing_project'] = [
- 'info' => [
- 'interface translation server pattern' => 'http://example.com/files/translations/%core/%project/%project-%version.%language.po',
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail.twig
deleted file mode 100644
index a06336693..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Implements hook_mail().
- */
-function {{ machine_name }}_mail($key, &$message, $params) {
- $account = $params['account'];
- $context = $params['context'];
- $variables = [
- '%site_name' => \Drupal::config('system.site')->get('name'),
- '%username' => $account->getDisplayName(),
- ];
- if ($context['hook'] == 'taxonomy') {
- $entity = $params['entity'];
- $vocabulary = Vocabulary::load($entity->id());
- $variables += [
- '%term_name' => $entity->name,
- '%term_description' => $entity->description,
- '%term_id' => $entity->id(),
- '%vocabulary_name' => $vocabulary->label(),
- '%vocabulary_description' => $vocabulary->getDescription(),
- '%vocabulary_id' => $vocabulary->id(),
- ];
- }
-
- // Node-based variable translation is only available if we have a node.
- if (isset($params['node'])) {
- /** @var \Drupal\node\NodeInterface $node */
- $node = $params['node'];
- $variables += [
- '%uid' => $node->getOwnerId(),
- '%url' => $node->url('canonical', ['absolute' => TRUE]),
- '%node_type' => node_get_type_label($node),
- '%title' => $node->getTitle(),
- '%teaser' => $node->teaser,
- '%body' => $node->body,
- ];
- }
- $subject = strtr($context['subject'], $variables);
- $body = strtr($context['message'], $variables);
- $message['subject'] .= str_replace(["\r", "\n"], '', $subject);
- $message['body'][] = MailFormatHelper::htmlToText($body);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail_alter.twig
deleted file mode 100644
index 51b6cc0e5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail_alter.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_mail_alter().
- */
-function {{ machine_name }}_mail_alter(&$message) {
- if ($message['id'] == 'modulename_messagekey') {
- if (!example_notifications_optin($message['to'], $message['id'])) {
- // If the recipient has opted to not receive such messages, cancel
- // sending.
- $message['send'] = FALSE;
- return;
- }
- $message['body'][] = "--\nMail sent out from " . \Drupal::config('system.site')->get('name');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail_backend_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail_backend_info_alter.twig
deleted file mode 100644
index 1684c403b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/mail_backend_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_mail_backend_info_alter().
- */
-function {{ machine_name }}_mail_backend_info_alter(&$info) {
- unset($info['test_mail_collector']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/media_source_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/media_source_info_alter.twig
deleted file mode 100644
index f83048352..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/media_source_info_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_media_source_info_alter().
- */
-function {{ machine_name }}_media_source_info_alter(array &$sources) {
- $sources['youtube']['label'] = t('Youtube rocks!');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_links_discovered_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_links_discovered_alter.twig
deleted file mode 100644
index 3c06cd1a1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_links_discovered_alter.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_menu_links_discovered_alter().
- */
-function {{ machine_name }}_menu_links_discovered_alter(&$links) {
- // Change the weight and title of the user.logout link.
- $links['user.logout']['weight'] = -10;
- $links['user.logout']['title'] = new \Drupal\Core\StringTranslation\TranslatableMarkup('Logout');
- // Conditionally add an additional link with a title that's not translated.
- if (\Drupal::moduleHandler()->moduleExists('search')) {
- $links['menu.api.search'] = [
- 'title' => \Drupal::config('system.site')->get('name'),
- 'route_name' => 'menu.api.search',
- 'description' => new \Drupal\Core\StringTranslation\TranslatableMarkup('View popular search phrases for this site.'),
- 'parent' => 'system.admin_reports',
- ];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_local_actions_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_local_actions_alter.twig
deleted file mode 100644
index b23362af4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_local_actions_alter.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_menu_local_actions_alter().
- */
-function {{ machine_name }}_menu_local_actions_alter(&$local_actions) {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_local_tasks_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_local_tasks_alter.twig
deleted file mode 100644
index aebe42210..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/menu_local_tasks_alter.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Implements hook_menu_local_tasks_alter().
- */
-function {{ machine_name }}_menu_local_tasks_alter(&$data, $route_name, \Drupal\Core\Cache\RefinableCacheableDependencyInterface &$cacheability) {
-
- // Add a tab linking to node/add to all pages.
- $data['tabs'][0]['node.add_page'] = [
- '#theme' => 'menu_local_task',
- '#link' => [
- 'title' => t('Example tab'),
- 'url' => Url::fromRoute('node.add_page'),
- 'localized_options' => [
- 'attributes' => [
- 'title' => t('Add content'),
- ],
- ],
- ],
- ];
- // The tab we're adding is dependent on a user's access to add content.
- $cacheability->addCacheTags(['user.permissions']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migrate_MIGRATION_ID_prepare_row.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migrate_MIGRATION_ID_prepare_row.twig
deleted file mode 100644
index 69aee2302..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migrate_MIGRATION_ID_prepare_row.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_migrate_MIGRATION_ID_prepare_row().
- */
-function {{ machine_name }}_migrate_MIGRATION_ID_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
- $value = $source->getDatabase()->query('SELECT value FROM {variable} WHERE name = :name', [':name' => 'mymodule_filter_foo_' . $row->getSourceProperty('format')])->fetchField();
- if ($value) {
- $row->setSourceProperty('settings:mymodule:foo', unserialize($value));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migrate_prepare_row.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migrate_prepare_row.twig
deleted file mode 100644
index f8d9a88a7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migrate_prepare_row.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_migrate_prepare_row().
- */
-function {{ machine_name }}_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
- if ($migration->id() == 'd6_filter_formats') {
- $value = $source->getDatabase()->query('SELECT value FROM {variable} WHERE name = :name', [':name' => 'mymodule_filter_foo_' . $row->getSourceProperty('format')])->fetchField();
- if ($value) {
- $row->setSourceProperty('settings:mymodule:foo', unserialize($value));
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migration_plugins_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migration_plugins_alter.twig
deleted file mode 100644
index 7ff11ea65..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/migration_plugins_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_migration_plugins_alter().
- */
-function {{ machine_name }}_migration_plugins_alter(array &$migrations) {
- $migrations = array_filter($migrations, function (array $migration) {
- $tags = isset($migration['migration_tags']) ? (array) $migration['migration_tags'] : [];
- return !in_array('Drupal 6', $tags);
- });
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_implements_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_implements_alter.twig
deleted file mode 100644
index 7b8785253..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_implements_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_module_implements_alter().
- */
-function {{ machine_name }}_module_implements_alter(&$implementations, $hook) {
- if ($hook == 'form_alter') {
- // Move my_module_form_alter() to the end of the list.
- // \Drupal::moduleHandler()->getImplementations()
- // iterates through $implementations with a foreach loop which PHP iterates
- // in the order that the items were added, so to move an item to the end of
- // the array, we remove it and then add it.
- $group = $implementations['my_module'];
- unset($implementations['my_module']);
- $implementations['my_module'] = $group;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_preinstall.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_preinstall.twig
deleted file mode 100644
index 4717a7784..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_preinstall.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_module_preinstall().
- */
-function {{ machine_name }}_module_preinstall($module) {
- mymodule_cache_clear();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_preuninstall.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_preuninstall.twig
deleted file mode 100644
index 0d5e2dd46..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/module_preuninstall.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_module_preuninstall().
- */
-function {{ machine_name }}_module_preuninstall($module) {
- mymodule_cache_clear();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_installed.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_installed.twig
deleted file mode 100644
index 1fd277d8a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_installed.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_modules_installed().
- */
-function {{ machine_name }}_modules_installed($modules) {
- if (in_array('lousy_module', $modules)) {
- \Drupal::state()->set('mymodule.lousy_module_compatibility', TRUE);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_uninstalled.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_uninstalled.twig
deleted file mode 100644
index 5fd9366b1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/modules_uninstalled.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_modules_uninstalled().
- */
-function {{ machine_name }}_modules_uninstalled($modules) {
- if (in_array('lousy_module', $modules)) {
- \Drupal::state()->delete('mymodule.lousy_module_compatibility');
- }
- mymodule_cache_rebuild();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access.twig
deleted file mode 100644
index 10af844c5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access.twig
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Implements hook_node_access().
- */
-function {{ machine_name }}_node_access(\Drupal\node\NodeInterface $node, $op, \Drupal\Core\Session\AccountInterface $account) {
- $type = $node->bundle();
-
- switch ($op) {
- case 'create':
- return AccessResult::allowedIfHasPermission($account, 'create ' . $type . ' content');
-
- case 'update':
- if ($account->hasPermission('edit any ' . $type . ' content', $account)) {
- return AccessResult::allowed()->cachePerPermissions();
- }
- else {
- return AccessResult::allowedIf($account->hasPermission('edit own ' . $type . ' content', $account) && ($account->id() == $node->getOwnerId()))->cachePerPermissions()->cachePerUser()->addCacheableDependency($node);
- }
-
- case 'delete':
- if ($account->hasPermission('delete any ' . $type . ' content', $account)) {
- return AccessResult::allowed()->cachePerPermissions();
- }
- else {
- return AccessResult::allowedIf($account->hasPermission('delete own ' . $type . ' content', $account) && ($account->id() == $node->getOwnerId()))->cachePerPermissions()->cachePerUser()->addCacheableDependency($node);
- }
-
- default:
- // No opinion.
- return AccessResult::neutral();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access_records.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access_records.twig
deleted file mode 100644
index 599cf06af..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access_records.twig
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * Implements hook_node_access_records().
- */
-function {{ machine_name }}_node_access_records(\Drupal\node\NodeInterface $node) {
- // We only care about the node if it has been marked private. If not, it is
- // treated just like any other node and we completely ignore it.
- if ($node->private->value) {
- $grants = [];
- // Only published Catalan translations of private nodes should be viewable
- // to all users. If we fail to check $node->isPublished(), all users would be able
- // to view an unpublished node.
- if ($node->isPublished()) {
- $grants[] = [
- 'realm' => 'example',
- 'gid' => 1,
- 'grant_view' => 1,
- 'grant_update' => 0,
- 'grant_delete' => 0,
- 'langcode' => 'ca',
- ];
- }
- // For the example_author array, the GID is equivalent to a UID, which
- // means there are many groups of just 1 user.
- // Note that an author can always view his or her nodes, even if they
- // have status unpublished.
- if ($node->getOwnerId()) {
- $grants[] = [
- 'realm' => 'example_author',
- 'gid' => $node->getOwnerId(),
- 'grant_view' => 1,
- 'grant_update' => 1,
- 'grant_delete' => 1,
- 'langcode' => 'ca',
- ];
- }
-
- return $grants;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access_records_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access_records_alter.twig
deleted file mode 100644
index 0004dc5bd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_access_records_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_node_access_records_alter().
- */
-function {{ machine_name }}_node_access_records_alter(&$grants, Drupal\node\NodeInterface $node) {
- // Our module allows editors to mark specific articles with the 'is_preview'
- // field. If the node being saved has a TRUE value for that field, then only
- // our grants are retained, and other grants are removed. Doing so ensures
- // that our rules are enforced no matter what priority other grants are given.
- if ($node->is_preview) {
- // Our module grants are set in $grants['example'].
- $temp = $grants['example'];
- // Now remove all module grants but our own.
- $grants = ['example' => $temp];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_grants.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_grants.twig
deleted file mode 100644
index fc6829341..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_grants.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_node_grants().
- */
-function {{ machine_name }}_node_grants(\Drupal\Core\Session\AccountInterface $account, $op) {
- if ($account->hasPermission('access private content')) {
- $grants['example'] = [1];
- }
- if ($account->id()) {
- $grants['example_author'] = [$account->id()];
- }
- return $grants;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_grants_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_grants_alter.twig
deleted file mode 100644
index d41ab6df7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_grants_alter.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Implements hook_node_grants_alter().
- */
-function {{ machine_name }}_node_grants_alter(&$grants, \Drupal\Core\Session\AccountInterface $account, $op) {
- // Our sample module never allows certain roles to edit or delete
- // content. Since some other node access modules might allow this
- // permission, we expressly remove it by returning an empty $grants
- // array for roles specified in our variable setting.
-
- // Get our list of banned roles.
- $restricted = \Drupal::config('example.settings')->get('restricted_roles');
-
- if ($op != 'view' && !empty($restricted)) {
- // Now check the roles for this account against the restrictions.
- foreach ($account->getRoles() as $rid) {
- if (in_array($rid, $restricted)) {
- $grants = [];
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_links_alter.twig
deleted file mode 100644
index 57641f9f6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_links_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_node_links_alter().
- */
-function {{ machine_name }}_node_links_alter(array &$links, NodeInterface $entity, array &$context) {
- $links['mymodule'] = [
- '#theme' => 'links__node__mymodule',
- '#attributes' => ['class' => ['links', 'inline']],
- '#links' => [
- 'node-report' => [
- 'title' => t('Report'),
- 'url' => Url::fromRoute('node_test.report', ['node' => $entity->id()], ['query' => ['token' => \Drupal::getContainer()->get('csrf_token')->get("node/{$entity->id()}/report")]]),
- ],
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_search_result.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_search_result.twig
deleted file mode 100644
index 362e21f3f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_search_result.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_node_search_result().
- */
-function {{ machine_name }}_node_search_result(\Drupal\node\NodeInterface $node) {
- $rating = db_query('SELECT SUM(points) FROM {my_rating} WHERE nid = :nid', ['nid' => $node->id()])->fetchField();
- return ['rating' => \Drupal::translation()->formatPlural($rating, '1 point', '@count points')];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_update_index.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_update_index.twig
deleted file mode 100644
index 467744857..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/node_update_index.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_node_update_index().
- */
-function {{ machine_name }}_node_update_index(\Drupal\node\NodeInterface $node) {
- $text = '';
- $ratings = db_query('SELECT title, description FROM {my_ratings} WHERE nid = :nid', [':nid' => $node->id()]);
- foreach ($ratings as $rating) {
- $text .= '' . Html::escape($rating->title) . '
' . Xss::filter($rating->description);
- }
- return $text;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/oembed_resource_url_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/oembed_resource_url_alter.twig
deleted file mode 100644
index 330b95620..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/oembed_resource_url_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_oembed_resource_url_alter().
- */
-function {{ machine_name }}_oembed_resource_url_alter(array &$parsed_url, \Drupal\media\OEmbed\Provider $provider) {
- // Always serve YouTube videos from youtube-nocookie.com.
- if ($provider->getName() === 'YouTube') {
- $parsed_url['path'] = str_replace('://youtube.com/', '://youtube-nocookie.com/', $parsed_url['path']);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/options_list_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/options_list_alter.twig
deleted file mode 100644
index ae6864512..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/options_list_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_options_list_alter().
- */
-function {{ machine_name }}_options_list_alter(array &$options, array $context) {
- // Check if this is the field we want to change.
- if ($context['fieldDefinition']->id() == 'field_option') {
- // Change the label of the empty option.
- $options['_none'] = t('== Empty ==');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_attachments.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_attachments.twig
deleted file mode 100644
index 3468151ab..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_attachments.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_page_attachments().
- */
-function {{ machine_name }}_page_attachments(array &$attachments) {
- // Unconditionally attach an asset to the page.
- $attachments['#attached']['library'][] = 'core/domready';
-
- // Conditionally attach an asset to the page.
- if (!\Drupal::currentUser()->hasPermission('may pet kittens')) {
- $attachments['#attached']['library'][] = 'core/jquery';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_attachments_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_attachments_alter.twig
deleted file mode 100644
index 5ef312655..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_attachments_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_page_attachments_alter().
- */
-function {{ machine_name }}_page_attachments_alter(array &$attachments) {
- // Conditionally remove an asset.
- if (in_array('core/jquery', $attachments['#attached']['library'])) {
- $index = array_search('core/jquery', $attachments['#attached']['library']);
- unset($attachments['#attached']['library'][$index]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_bottom.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_bottom.twig
deleted file mode 100644
index 851d2ce2f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_bottom.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_page_bottom().
- */
-function {{ machine_name }}_page_bottom(array &$page_bottom) {
- $page_bottom['mymodule'] = ['#markup' => 'This is the bottom.'];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_top.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_top.twig
deleted file mode 100644
index 4e32a98c8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/page_top.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_page_top().
- */
-function {{ machine_name }}_page_top(array &$page_top) {
- $page_top['mymodule'] = ['#markup' => 'This is the top.'];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_delete.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_delete.twig
deleted file mode 100644
index 0e8a7df3e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_delete.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_path_delete().
- */
-function {{ machine_name }}_path_delete($path) {
- \Drupal::database()->delete('mytable')
- ->condition('pid', $path['pid'])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_insert.twig
deleted file mode 100644
index 5d6f27c8a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_insert.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_path_insert().
- */
-function {{ machine_name }}_path_insert($path) {
- \Drupal::database()->insert('mytable')
- ->fields([
- 'alias' => $path['alias'],
- 'pid' => $path['pid'],
- ])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_update.twig
deleted file mode 100644
index 99b3fdb6e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/path_update.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_path_update().
- */
-function {{ machine_name }}_path_update($path) {
- if ($path['alias'] != $path['original']['alias']) {
- \Drupal::database()->update('mytable')
- ->fields(['alias' => $path['alias']])
- ->condition('pid', $path['pid'])
- ->execute();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/plugin_filter_TYPE__CONSUMER_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/plugin_filter_TYPE__CONSUMER_alter.twig
deleted file mode 100644
index d843ea6a0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/plugin_filter_TYPE__CONSUMER_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_plugin_filter_TYPE__CONSUMER_alter().
- */
-function {{ machine_name }}_plugin_filter_TYPE__CONSUMER_alter(array &$definitions, array $extra) {
- // Explicitly remove the "Help" block for this consumer.
- unset($definitions['help_block']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/plugin_filter_TYPE_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/plugin_filter_TYPE_alter.twig
deleted file mode 100644
index 4f4ae358b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/plugin_filter_TYPE_alter.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_plugin_filter_TYPE_alter().
- */
-function {{ machine_name }}_plugin_filter_TYPE_alter(array &$definitions, array $extra, $consumer) {
- // Remove the "Help" block from the Block UI list.
- if ($consumer == 'block_ui') {
- unset($definitions['help_block']);
- }
-
- // If the theme is specified, remove the branding block from the Bartik theme.
- if (isset($extra['theme']) && $extra['theme'] === 'bartik') {
- unset($definitions['system_branding_block']);
- }
-
- // Remove the "Main page content" block from everywhere.
- unset($definitions['system_main_block']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/post_update_NAME.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/post_update_NAME.twig
deleted file mode 100644
index 3d6124f57..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/post_update_NAME.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Implements hook_post_update_NAME().
- */
-function {{ machine_name }}_post_update_NAME(&$sandbox) {
- // Example of updating some content.
- $node = \Drupal\node\Entity\Node::load(123);
- $node->setTitle('foo');
- $node->save();
-
- $result = t('Node %nid saved', ['%nid' => $node->id()]);
-
- // Example of disabling blocks with missing condition contexts. Note: The
- // block itself is in a state which is valid at that point.
- // @see block_update_8001()
- // @see block_post_update_disable_blocks_with_missing_contexts()
- $block_update_8001 = \Drupal::keyValue('update_backup')->get('block_update_8001', []);
-
- $block_ids = array_keys($block_update_8001);
- $block_storage = \Drupal::entityManager()->getStorage('block');
- $blocks = $block_storage->loadMultiple($block_ids);
- /** @var $blocks \Drupal\block\BlockInterface[] */
- foreach ($blocks as $block) {
- // This block has had conditions removed due to an inability to resolve
- // contexts in block_update_8001() so disable it.
-
- // Disable currently enabled blocks.
- if ($block_update_8001[$block->id()]['status']) {
- $block->setStatus(FALSE);
- $block->save();
- }
- }
-
- return $result;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/preprocess.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/preprocess.twig
deleted file mode 100644
index 8e35e7b9c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/preprocess.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Implements hook_preprocess().
- */
-function {{ machine_name }}_preprocess(&$variables, $hook) {
- static $hooks;
-
- // Add contextual links to the variables, if the user has permission.
-
- if (!\Drupal::currentUser()->hasPermission('access contextual links')) {
- return;
- }
-
- if (!isset($hooks)) {
- $hooks = theme_get_registry();
- }
-
- // Determine the primary theme function argument.
- if (isset($hooks[$hook]['variables'])) {
- $keys = array_keys($hooks[$hook]['variables']);
- $key = $keys[0];
- }
- else {
- $key = $hooks[$hook]['render element'];
- }
-
- if (isset($variables[$key])) {
- $element = $variables[$key];
- }
-
- if (isset($element) && is_array($element) && !empty($element['#contextual_links'])) {
- $variables['title_suffix']['contextual_links'] = contextual_links_view($element);
- if (!empty($variables['title_suffix']['contextual_links'])) {
- $variables['attributes']['class'][] = 'contextual-links-region';
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/preprocess_HOOK.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/preprocess_HOOK.twig
deleted file mode 100644
index e082e34ed..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/preprocess_HOOK.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_preprocess_HOOK().
- */
-function {{ machine_name }}_preprocess_HOOK(&$variables) {
- // This example is from rdf_preprocess_image(). It adds an RDF attribute
- // to the image hook's variables.
- $variables['attributes']['typeof'] = ['foaf:Image'];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/query_TAG_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/query_TAG_alter.twig
deleted file mode 100644
index 15cc658d2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/query_TAG_alter.twig
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Implements hook_query_TAG_alter().
- */
-function {{ machine_name }}_query_TAG_alter(Drupal\Core\Database\Query\AlterableInterface $query) {
- // Skip the extra expensive alterations if site has no node access control modules.
- if (!node_access_view_all_nodes()) {
- // Prevent duplicates records.
- $query->distinct();
- // The recognized operations are 'view', 'update', 'delete'.
- if (!$op = $query->getMetaData('op')) {
- $op = 'view';
- }
- // Skip the extra joins and conditions for node admins.
- if (!\Drupal::currentUser()->hasPermission('bypass node access')) {
- // The node_access table has the access grants for any given node.
- $access_alias = $query->join('node_access', 'na', '%alias.nid = n.nid');
- $or = new Condition('OR');
- // If any grant exists for the specified user, then user has access to the node for the specified operation.
- foreach (node_access_grants($op, $query->getMetaData('account')) as $realm => $gids) {
- foreach ($gids as $gid) {
- $or->condition((new Condition('AND'))
- ->condition($access_alias . '.gid', $gid)
- ->condition($access_alias . '.realm', $realm)
- );
- }
- }
-
- if (count($or->conditions())) {
- $query->condition($or);
- }
-
- $query->condition($access_alias . 'grant_' . $op, 1, '>=');
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/query_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/query_alter.twig
deleted file mode 100644
index 37a0f4d27..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/query_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_query_alter().
- */
-function {{ machine_name }}_query_alter(Drupal\Core\Database\Query\AlterableInterface $query) {
- if ($query->hasTag('micro_limit')) {
- $query->range(0, 2);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/queue_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/queue_info_alter.twig
deleted file mode 100644
index f014875d7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/queue_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_queue_info_alter().
- */
-function {{ machine_name }}_queue_info_alter(&$queues) {
- // This site has many feeds so let's spend 90 seconds on each cron run
- // updating feeds instead of the default 60.
- $queues['aggregator_feeds']['cron']['time'] = 90;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/quickedit_editor_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/quickedit_editor_alter.twig
deleted file mode 100644
index 20fcdf273..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/quickedit_editor_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_quickedit_editor_alter().
- */
-function {{ machine_name }}_quickedit_editor_alter(&$editors) {
- // Cleanly override editor.module's in-place editor plugin.
- $editors['editor']['class'] = 'Drupal\advanced_editor\Plugin\quickedit\editor\AdvancedEditor';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/quickedit_render_field.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/quickedit_render_field.twig
deleted file mode 100644
index ce90eee73..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/quickedit_render_field.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_quickedit_render_field().
- */
-function {{ machine_name }}_quickedit_render_field(Drupal\Core\Entity\EntityInterface $entity, $field_name, $view_mode_id, $langcode) {
- return [
- '#prefix' => '',
- 'field' => $entity->getTranslation($langcode)->get($field_name)->view($view_mode_id),
- '#suffix' => '',
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ranking.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ranking.twig
deleted file mode 100644
index 71942cd29..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/ranking.twig
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Implements hook_ranking().
- */
-function {{ machine_name }}_ranking() {
- // If voting is disabled, we can avoid returning the array, no hard feelings.
- if (\Drupal::config('vote.settings')->get('node_enabled')) {
- return [
- 'vote_average' => [
- 'title' => t('Average vote'),
- // Note that we use i.sid, the search index's search item id, rather than
- // n.nid.
- 'join' => [
- 'type' => 'LEFT',
- 'table' => 'vote_node_data',
- 'alias' => 'vote_node_data',
- 'on' => 'vote_node_data.nid = i.sid',
- ],
- // The highest possible score should be 1, and the lowest possible score,
- // always 0, should be 0.
- 'score' => 'vote_node_data.average / CAST(%f AS DECIMAL)',
- // Pass in the highest possible voting score as a decimal argument.
- 'arguments' => [\Drupal::config('vote.settings')->get('score_max')],
- ],
- ];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rdf_namespaces.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rdf_namespaces.twig
deleted file mode 100644
index 4caef0d76..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rdf_namespaces.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_rdf_namespaces().
- */
-function {{ machine_name }}_rdf_namespaces() {
- return [
- 'content' => 'http://purl.org/rss/1.0/modules/content/',
- 'dc' => 'http://purl.org/dc/terms/',
- 'foaf' => 'http://xmlns.com/foaf/0.1/',
- 'og' => 'http://ogp.me/ns#',
- 'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#',
- 'sioc' => 'http://rdfs.org/sioc/ns#',
- 'sioct' => 'http://rdfs.org/sioc/types#',
- 'skos' => 'http://www.w3.org/2004/02/skos/core#',
- 'xsd' => 'http://www.w3.org/2001/XMLSchema#',
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rebuild.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rebuild.twig
deleted file mode 100644
index fa61bab38..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rebuild.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_rebuild().
- */
-function {{ machine_name }}_rebuild() {
- $themes = \Drupal::service('theme_handler')->listInfo();
- foreach ($themes as $theme) {
- _block_rehash($theme->getName());
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/render_template.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/render_template.twig
deleted file mode 100644
index 49c6a4dc5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/render_template.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_render_template().
- */
-function {{ machine_name }}_render_template($template_file, $variables) {
- $twig_service = \Drupal::service('twig');
-
- return $twig_service->loadTemplate($template_file)->render($variables);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/requirements.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/requirements.twig
deleted file mode 100644
index a3f4ad160..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/requirements.twig
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Implements hook_requirements().
- */
-function {{ machine_name }}_requirements($phase) {
- $requirements = [];
-
- // Report Drupal version
- if ($phase == 'runtime') {
- $requirements['drupal'] = [
- 'title' => t('Drupal'),
- 'value' => \Drupal::VERSION,
- 'severity' => REQUIREMENT_INFO,
- ];
- }
-
- // Test PHP version
- $requirements['php'] = [
- 'title' => t('PHP'),
- 'value' => ($phase == 'runtime') ? \Drupal::l(phpversion(), new Url('system.php')) : phpversion(),
- ];
- if (version_compare(phpversion(), DRUPAL_MINIMUM_PHP) < 0) {
- $requirements['php']['description'] = t('Your PHP installation is too old. Drupal requires at least PHP %version.', ['%version' => DRUPAL_MINIMUM_PHP]);
- $requirements['php']['severity'] = REQUIREMENT_ERROR;
- }
-
- // Report cron status
- if ($phase == 'runtime') {
- $cron_last = \Drupal::state()->get('system.cron_last');
-
- if (is_numeric($cron_last)) {
- $requirements['cron']['value'] = t('Last run @time ago', ['@time' => \Drupal::service('date.formatter')->formatTimeDiffSince($cron_last)]);
- }
- else {
- $requirements['cron'] = [
- 'description' => t('Cron has not run. It appears cron jobs have not been setup on your system. Check the help pages for configuring cron jobs.', [':url' => 'https://www.drupal.org/cron']),
- 'severity' => REQUIREMENT_ERROR,
- 'value' => t('Never run'),
- ];
- }
-
- $requirements['cron']['description'] .= ' ' . t('You can run cron manually.', [':cron' => \Drupal::url('system.run_cron')]);
-
- $requirements['cron']['title'] = t('Cron maintenance tasks');
- }
-
- return $requirements;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_relation_uri_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_relation_uri_alter.twig
deleted file mode 100644
index 4a326090b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_relation_uri_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_rest_relation_uri_alter().
- */
-function {{ machine_name }}_rest_relation_uri_alter(&$uri, $context = []) {
- if ($context['mymodule'] == TRUE) {
- $base = \Drupal::config('serialization.settings')->get('link_domain');
- $uri = str_replace($base, 'http://mymodule.domain', $uri);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_resource_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_resource_alter.twig
deleted file mode 100644
index 6c4f3f7d5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_resource_alter.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_rest_resource_alter().
- */
-function {{ machine_name }}_rest_resource_alter(&$definitions) {
- if (isset($definitions['entity:node'])) {
- // We want to handle REST requests regarding nodes with our own plugin
- // class.
- $definitions['entity:node']['class'] = 'Drupal\mymodule\Plugin\rest\resource\NodeResource';
- // Serialized nodes should be expanded to my specific node class.
- $definitions['entity:node']['serialization_class'] = 'Drupal\mymodule\Entity\MyNode';
- }
- // We don't want Views to show up in the array of plugins at all.
- unset($definitions['entity:view']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_type_uri_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_type_uri_alter.twig
deleted file mode 100644
index 7c8c472bc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/rest_type_uri_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_rest_type_uri_alter().
- */
-function {{ machine_name }}_rest_type_uri_alter(&$uri, $context = []) {
- if ($context['mymodule'] == TRUE) {
- $base = \Drupal::config('serialization.settings')->get('link_domain');
- $uri = str_replace($base, 'http://mymodule.domain', $uri);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/schema.twig
deleted file mode 100644
index 8aa980d12..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/schema.twig
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Implements hook_schema().
- */
-function {{ machine_name }}_schema() {
- $schema['node'] = [
- // Example (partial) specification for table "node".
- 'description' => 'The base table for nodes.',
- 'fields' => [
- 'nid' => [
- 'description' => 'The primary identifier for a node.',
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ],
- 'vid' => [
- 'description' => 'The current {node_field_revision}.vid version identifier.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ],
- 'type' => [
- 'description' => 'The type of this node.',
- 'type' => 'varchar',
- 'length' => 32,
- 'not null' => TRUE,
- 'default' => '',
- ],
- 'title' => [
- 'description' => 'The node title.',
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- ],
- ],
- 'indexes' => [
- 'node_changed' => ['changed'],
- 'node_created' => ['created'],
- ],
- 'unique keys' => [
- 'nid_vid' => ['nid', 'vid'],
- 'vid' => ['vid'],
- ],
- // For documentation purposes only; foreign keys are not created in the
- // database.
- 'foreign keys' => [
- 'node_revision' => [
- 'table' => 'node_field_revision',
- 'columns' => ['vid' => 'vid'],
- ],
- 'node_author' => [
- 'table' => 'users',
- 'columns' => ['uid' => 'uid'],
- ],
- ],
- 'primary key' => ['nid'],
- ];
- return $schema;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/search_plugin_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/search_plugin_alter.twig
deleted file mode 100644
index c41aec486..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/search_plugin_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_search_plugin_alter().
- */
-function {{ machine_name }}_search_plugin_alter(array &$definitions) {
- if (isset($definitions['node_search'])) {
- $definitions['node_search']['title'] = t('Nodes');
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/search_preprocess.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/search_preprocess.twig
deleted file mode 100644
index bcfa79bdb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/search_preprocess.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Implements hook_search_preprocess().
- */
-function {{ machine_name }}_search_preprocess($text, $langcode = NULL) {
- // If the language is not set, get it from the language manager.
- if (!isset($langcode)) {
- $langcode = \Drupal::languageManager()->getCurrentLanguage()->getId();
- }
-
- // If the langcode is set to 'en' then add variations of the word "testing"
- // which can also be found during English language searches.
- if ($langcode == 'en') {
- // Add the alternate verb forms for the word "testing".
- if ($text == 'we are testing') {
- $text .= ' test tested';
- }
- }
-
- return $text;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/shortcut_default_set.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/shortcut_default_set.twig
deleted file mode 100644
index bcf8bb5d4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/shortcut_default_set.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_shortcut_default_set().
- */
-function {{ machine_name }}_shortcut_default_set($account) {
- // Use a special set of default shortcuts for administrators only.
- $roles = \Drupal::entityManager()->getStorage('user_role')->loadByProperties(['is_admin' => TRUE]);
- $user_admin_roles = array_intersect(array_keys($roles), $account->getRoles());
- if ($user_admin_roles) {
- return 'admin-shortcuts';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/simpletest_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/simpletest_alter.twig
deleted file mode 100644
index 98cc76eff..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/simpletest_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_simpletest_alter().
- */
-function {{ machine_name }}_simpletest_alter(&$groups) {
- // An alternative session handler module would not want to run the original
- // Session HTTPS handling test because it checks the sessions table in the
- // database.
- unset($groups['Session']['testHttpsSession']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_breadcrumb_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_breadcrumb_alter.twig
deleted file mode 100644
index 3f6e3a454..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_breadcrumb_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_system_breadcrumb_alter().
- */
-function {{ machine_name }}_system_breadcrumb_alter(\Drupal\Core\Breadcrumb\Breadcrumb &$breadcrumb, \Drupal\Core\Routing\RouteMatchInterface $route_match, array $context) {
- // Add an item to the end of the breadcrumb.
- $breadcrumb->addLink(\Drupal\Core\Link::createFromRoute(t('Text'), 'example_route_name'));
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_info_alter.twig
deleted file mode 100644
index 94353f7b3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_system_info_alter().
- */
-function {{ machine_name }}_system_info_alter(array &$info, \Drupal\Core\Extension\Extension $file, $type) {
- // Only fill this in if the .info.yml file does not define a 'datestamp'.
- if (empty($info['datestamp'])) {
- $info['datestamp'] = $file->getMTime();
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_themes_page_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_themes_page_alter.twig
deleted file mode 100644
index 26109f4ef..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/system_themes_page_alter.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Implements hook_system_themes_page_alter().
- */
-function {{ machine_name }}_system_themes_page_alter(&$theme_groups) {
- foreach ($theme_groups as $state => &$group) {
- foreach ($theme_groups[$state] as &$theme) {
- // Add a foo link to each list of theme operations.
- $theme->operations[] = [
- 'title' => t('Foo'),
- 'url' => Url::fromRoute('system.themes_page'),
- 'query' => ['theme' => $theme->getName()],
- ];
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/template_preprocess_default_variables_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/template_preprocess_default_variables_alter.twig
deleted file mode 100644
index 14238f67f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/template_preprocess_default_variables_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_template_preprocess_default_variables_alter().
- */
-function {{ machine_name }}_template_preprocess_default_variables_alter(&$variables) {
- $variables['is_admin'] = \Drupal::currentUser()->hasPermission('access administration pages');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_finished.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_finished.twig
deleted file mode 100644
index dff6f4af6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_finished.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_test_finished().
- */
-function {{ machine_name }}_test_finished($results) {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_group_finished.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_group_finished.twig
deleted file mode 100644
index b2e850ef3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_group_finished.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_test_group_finished().
- */
-function {{ machine_name }}_test_group_finished() {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_group_started.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_group_started.twig
deleted file mode 100644
index fe1c85848..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/test_group_started.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Implements hook_test_group_started().
- */
-function {{ machine_name }}_test_group_started() {
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme.twig
deleted file mode 100644
index 76935e80f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Implements hook_theme().
- */
-function {{ machine_name }}_theme($existing, $type, $theme, $path) {
- return [
- 'forum_display' => [
- 'variables' => ['forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL],
- ],
- 'forum_list' => [
- 'variables' => ['forums' => NULL, 'parents' => NULL, 'tid' => NULL],
- ],
- 'forum_icon' => [
- 'variables' => ['new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0],
- ],
- 'status_report' => [
- 'render element' => 'requirements',
- 'file' => 'system.admin.inc',
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_registry_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_registry_alter.twig
deleted file mode 100644
index cdbb17e9f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_registry_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_theme_registry_alter().
- */
-function {{ machine_name }}_theme_registry_alter(&$theme_registry) {
- // Kill the next/previous forum topic navigation links.
- foreach ($theme_registry['forum_topic_navigation']['preprocess functions'] as $key => $value) {
- if ($value == 'template_preprocess_forum_topic_navigation') {
- unset($theme_registry['forum_topic_navigation']['preprocess functions'][$key]);
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_HOOK.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_HOOK.twig
deleted file mode 100644
index f099429f7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_HOOK.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_theme_suggestions_HOOK().
- */
-function {{ machine_name }}_theme_suggestions_HOOK(array $variables) {
- $suggestions = [];
-
- $suggestions[] = 'hookname__' . $variables['elements']['#langcode'];
-
- return $suggestions;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_HOOK_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_HOOK_alter.twig
deleted file mode 100644
index ce59e81b2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_HOOK_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_theme_suggestions_HOOK_alter().
- */
-function {{ machine_name }}_theme_suggestions_HOOK_alter(array &$suggestions, array $variables) {
- if (empty($variables['header'])) {
- $suggestions[] = 'hookname__' . 'no_header';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_alter.twig
deleted file mode 100644
index 8a6c6cb56..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_suggestions_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_theme_suggestions_alter().
- */
-function {{ machine_name }}_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
- // Add an interface-language specific suggestion to all theme hooks.
- $suggestions[] = $hook . '__' . \Drupal::languageManager()->getCurrentLanguage()->getId();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/themes_installed.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/themes_installed.twig
deleted file mode 100644
index beed725ec..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/themes_installed.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_themes_installed().
- */
-function {{ machine_name }}_themes_installed($theme_list) {
- foreach ($theme_list as $theme) {
- block_theme_initialize($theme);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/themes_uninstalled.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/themes_uninstalled.twig
deleted file mode 100644
index 21664d2c9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/themes_uninstalled.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_themes_uninstalled().
- */
-function {{ machine_name }}_themes_uninstalled(array $themes) {
- // Remove some state entries depending on the theme.
- foreach ($themes as $theme) {
- \Drupal::state()->delete('example.' . $theme);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/token_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/token_info.twig
deleted file mode 100644
index c6340eef8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/token_info.twig
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Implements hook_token_info().
- */
-function {{ machine_name }}_token_info() {
- $type = [
- 'name' => t('Nodes'),
- 'description' => t('Tokens related to individual nodes.'),
- 'needs-data' => 'node',
- ];
-
- // Core tokens for nodes.
- $node['nid'] = [
- 'name' => t("Node ID"),
- 'description' => t("The unique ID of the node."),
- ];
- $node['title'] = [
- 'name' => t("Title"),
- ];
- $node['edit-url'] = [
- 'name' => t("Edit URL"),
- 'description' => t("The URL of the node's edit page."),
- ];
-
- // Chained tokens for nodes.
- $node['created'] = [
- 'name' => t("Date created"),
- 'type' => 'date',
- ];
- $node['author'] = [
- 'name' => t("Author"),
- 'type' => 'user',
- ];
-
- return [
- 'types' => ['node' => $type],
- 'tokens' => ['node' => $node],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/token_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/token_info_alter.twig
deleted file mode 100644
index 3b0b20a19..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/token_info_alter.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Implements hook_token_info_alter().
- */
-function {{ machine_name }}_token_info_alter(&$data) {
- // Modify description of node tokens for our site.
- $data['tokens']['node']['nid'] = [
- 'name' => t("Node ID"),
- 'description' => t("The unique ID of the article."),
- ];
- $data['tokens']['node']['title'] = [
- 'name' => t("Title"),
- 'description' => t("The title of the article."),
- ];
-
- // Chained tokens for nodes.
- $data['tokens']['node']['created'] = [
- 'name' => t("Date created"),
- 'description' => t("The date the article was posted."),
- 'type' => 'date',
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tokens.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tokens.twig
deleted file mode 100644
index 4298e6032..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tokens.twig
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Implements hook_tokens().
- */
-function {{ machine_name }}_tokens($type, $tokens, array $data, array $options, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) {
- $token_service = \Drupal::token();
-
- $url_options = ['absolute' => TRUE];
- if (isset($options['langcode'])) {
- $url_options['language'] = \Drupal::languageManager()->getLanguage($options['langcode']);
- $langcode = $options['langcode'];
- }
- else {
- $langcode = NULL;
- }
- $replacements = [];
-
- if ($type == 'node' && !empty($data['node'])) {
- /** @var \Drupal\node\NodeInterface $node */
- $node = $data['node'];
-
- foreach ($tokens as $name => $original) {
- switch ($name) {
- // Simple key values on the node.
- case 'nid':
- $replacements[$original] = $node->nid;
- break;
-
- case 'title':
- $replacements[$original] = $node->getTitle();
- break;
-
- case 'edit-url':
- $replacements[$original] = $node->url('edit-form', $url_options);
- break;
-
- // Default values for the chained tokens handled below.
- case 'author':
- $account = $node->getOwner() ? $node->getOwner() : User::load(0);
- $replacements[$original] = $account->label();
- $bubbleable_metadata->addCacheableDependency($account);
- break;
-
- case 'created':
- $replacements[$original] = format_date($node->getCreatedTime(), 'medium', '', NULL, $langcode);
- break;
- }
- }
-
- if ($author_tokens = $token_service->findWithPrefix($tokens, 'author')) {
- $replacements += $token_service->generate('user', $author_tokens, ['user' => $node->getOwner()], $options, $bubbleable_metadata);
- }
-
- if ($created_tokens = $token_service->findWithPrefix($tokens, 'created')) {
- $replacements += $token_service->generate('date', $created_tokens, ['date' => $node->getCreatedTime()], $options, $bubbleable_metadata);
- }
- }
-
- return $replacements;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tokens_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tokens_alter.twig
deleted file mode 100644
index 4d44be7af..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tokens_alter.twig
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Implements hook_tokens_alter().
- */
-function {{ machine_name }}_tokens_alter(array &$replacements, array $context, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) {
- $options = $context['options'];
-
- if (isset($options['langcode'])) {
- $url_options['language'] = \Drupal::languageManager()->getLanguage($options['langcode']);
- $langcode = $options['langcode'];
- }
- else {
- $langcode = NULL;
- }
-
- if ($context['type'] == 'node' && !empty($context['data']['node'])) {
- $node = $context['data']['node'];
-
- // Alter the [node:title] token, and replace it with the rendered content
- // of a field (field_title).
- if (isset($context['tokens']['title'])) {
- $title = $node->field_title->view('default');
- $replacements[$context['tokens']['title']] = drupal_render($title);
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/toolbar.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/toolbar.twig
deleted file mode 100644
index 29fbe5ffd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/toolbar.twig
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * Implements hook_toolbar().
- */
-function {{ machine_name }}_toolbar() {
- $items = [];
-
- // Add a search field to the toolbar. The search field employs no toolbar
- // module theming functions.
- $items['global_search'] = [
- '#type' => 'toolbar_item',
- 'tab' => [
- '#type' => 'search',
- '#attributes' => [
- 'placeholder' => t('Search the site'),
- 'class' => ['search-global'],
- ],
- ],
- '#weight' => 200,
- // Custom CSS, JS or a library can be associated with the toolbar item.
- '#attached' => [
- 'library' => [
- 'search/global',
- ],
- ],
- ];
-
- // The 'Home' tab is a simple link, which is wrapped in markup associated
- // with a visual tab styling.
- $items['home'] = [
- '#type' => 'toolbar_item',
- 'tab' => [
- '#type' => 'link',
- '#title' => t('Home'),
- '#url' => Url::fromRoute(''),
- '#options' => [
- 'attributes' => [
- 'title' => t('Home page'),
- 'class' => ['toolbar-icon', 'toolbar-icon-home'],
- ],
- ],
- ],
- '#weight' => -20,
- ];
-
- // A tray may be associated with a tab.
- //
- // When the tab is activated, the tray will become visible, either in a
- // horizontal or vertical orientation on the screen.
- //
- // The tray should contain a renderable array. An optional #heading property
- // can be passed. This text is written to a heading tag in the tray as a
- // landmark for accessibility.
- $items['commerce'] = [
- '#type' => 'toolbar_item',
- 'tab' => [
- '#type' => 'link',
- '#title' => t('Shopping cart'),
- '#url' => Url::fromRoute('cart'),
- '#options' => [
- 'attributes' => [
- 'title' => t('Shopping cart'),
- ],
- ],
- ],
- 'tray' => [
- '#heading' => t('Shopping cart actions'),
- 'shopping_cart' => [
- '#theme' => 'item_list',
- '#items' => [/* An item list renderable array */],
- ],
- ],
- '#weight' => 150,
- ];
-
- // The tray can be used to render arbitrary content.
- //
- // A renderable array passed to the 'tray' property will be rendered outside
- // the administration bar but within the containing toolbar element.
- //
- // If the default behavior and styling of a toolbar tray is not desired, one
- // can render content to the toolbar element and apply custom theming and
- // behaviors.
- $items['user_messages'] = [
- // Include the toolbar_tab_wrapper to style the link like a toolbar tab.
- // Exclude the theme wrapper if custom styling is desired.
- '#type' => 'toolbar_item',
- 'tab' => [
- '#type' => 'link',
- '#theme' => 'user_message_toolbar_tab',
- '#theme_wrappers' => [],
- '#title' => t('Messages'),
- '#url' => Url::fromRoute('user.message'),
- '#options' => [
- 'attributes' => [
- 'title' => t('Messages'),
- ],
- ],
- ],
- 'tray' => [
- '#heading' => t('User messages'),
- 'messages' => [/* renderable content */],
- ],
- '#weight' => 125,
- ];
-
- return $items;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/toolbar_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/toolbar_alter.twig
deleted file mode 100644
index f648cb510..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/toolbar_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_toolbar_alter().
- */
-function {{ machine_name }}_toolbar_alter(&$items) {
- // Move the User tab to the right.
- $items['commerce']['#weight'] = 5;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tour_tips_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tour_tips_alter.twig
deleted file mode 100644
index d17ede84f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tour_tips_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_tour_tips_alter().
- */
-function {{ machine_name }}_tour_tips_alter(array &$tour_tips, Drupal\Core\Entity\EntityInterface $entity) {
- foreach ($tour_tips as $tour_tip) {
- if ($tour_tip->get('id') == 'tour-code-test-1') {
- $tour_tip->set('body', 'Altered by hook_tour_tips_alter');
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tour_tips_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tour_tips_info_alter.twig
deleted file mode 100644
index fd5573413..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/tour_tips_info_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_tour_tips_info_alter().
- */
-function {{ machine_name }}_tour_tips_info_alter(&$info) {
- // Swap out the class used for this tip plugin.
- if (isset($info['text'])) {
- $info['class'] = 'Drupal\mymodule\Plugin\tour\tip\MyCustomTipPlugin';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/transliteration_overrides_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/transliteration_overrides_alter.twig
deleted file mode 100644
index 9f7c9ad7b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/transliteration_overrides_alter.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Implements hook_transliteration_overrides_alter().
- */
-function {{ machine_name }}_transliteration_overrides_alter(&$overrides, $langcode) {
- // Provide special overrides for German for a custom site.
- if ($langcode == 'de') {
- // The core-provided transliteration of Ä is Ae, but we want just A.
- $overrides[0xC4] = 'A';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/uninstall.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/uninstall.twig
deleted file mode 100644
index 677d773fc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/uninstall.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_uninstall().
- */
-function {{ machine_name }}_uninstall() {
- // Remove the styles directory and generated images.
- file_unmanaged_delete_recursive(file_default_scheme() . '://styles');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_N.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_N.twig
deleted file mode 100644
index 726e66daa..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_N.twig
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Implements hook_update_N().
- */
-function {{ machine_name }}_update_N(&$sandbox) {
- // For non-batch updates, the signature can simply be:
- // function {{ machine_name }}_update_N() {
-
- // Example function body for adding a field to a database table, which does
- // not require a batch operation:
- $spec = [
- 'type' => 'varchar',
- 'description' => "New Col",
- 'length' => 20,
- 'not null' => FALSE,
- ];
- $schema = Database::getConnection()->schema();
- $schema->addField('mytable1', 'newcol', $spec);
-
- // Example of what to do if there is an error during your update.
- if ($some_error_condition_met) {
- throw new UpdateException('Something went wrong; here is what you should do.');
- }
-
- // Example function body for a batch update. In this example, the values in
- // a database field are updated.
- if (!isset($sandbox['progress'])) {
- // This must be the first run. Initialize the sandbox.
- $sandbox['progress'] = 0;
- $sandbox['current_pk'] = 0;
- $sandbox['max'] = Database::getConnection()->query('SELECT COUNT(myprimarykey) FROM {mytable1}')->fetchField() - 1;
- }
-
- // Update in chunks of 20.
- $records = Database::getConnection()->select('mytable1', 'm')
- ->fields('m', ['myprimarykey', 'otherfield'])
- ->condition('myprimarykey', $sandbox['current_pk'], '>')
- ->range(0, 20)
- ->orderBy('myprimarykey', 'ASC')
- ->execute();
- foreach ($records as $record) {
- // Here, you would make an update something related to this record. In this
- // example, some text is added to the other field.
- Database::getConnection()->update('mytable1')
- ->fields(['otherfield' => $record->otherfield . '-suffix'])
- ->condition('myprimarykey', $record->myprimarykey)
- ->execute();
-
- $sandbox['progress']++;
- $sandbox['current_pk'] = $record->myprimarykey;
- }
-
- $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']);
-
- // To display a message to the user when the update is completed, return it.
- // If you do not want to display a completion message, return nothing.
- return t('All foo bars were updated with the new suffix');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_dependencies.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_dependencies.twig
deleted file mode 100644
index a7373b04d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_dependencies.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Implements hook_update_dependencies().
- */
-function {{ machine_name }}_update_dependencies() {
- // Indicate that the mymodule_update_8001() function provided by this module
- // must run after the another_module_update_8003() function provided by the
- // 'another_module' module.
- $dependencies['mymodule'][8001] = [
- 'another_module' => 8003,
- ];
- // Indicate that the mymodule_update_8002() function provided by this module
- // must run before the yet_another_module_update_8005() function provided by
- // the 'yet_another_module' module. (Note that declaring dependencies in this
- // direction should be done only in rare situations, since it can lead to the
- // following problem: If a site has already run the yet_another_module
- // module's database updates before it updates its codebase to pick up the
- // newest mymodule code, then the dependency declared here will be ignored.)
- $dependencies['yet_another_module'][8005] = [
- 'mymodule' => 8002,
- ];
- return $dependencies;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_last_removed.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_last_removed.twig
deleted file mode 100644
index 71b8eb0a5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_last_removed.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_update_last_removed().
- */
-function {{ machine_name }}_update_last_removed() {
- // We've removed the 8.x-1.x version of mymodule, including database updates.
- // The next update function is mymodule_update_8200().
- return 8103;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_projects_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_projects_alter.twig
deleted file mode 100644
index 41691cd9b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_projects_alter.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Implements hook_update_projects_alter().
- */
-function {{ machine_name }}_update_projects_alter(&$projects) {
- // Hide a site-specific module from the list.
- unset($projects['site_specific_module']);
-
- // Add a disabled module to the list.
- // The key for the array should be the machine-readable project "short name".
- $projects['disabled_project_name'] = [
- // Machine-readable project short name (same as the array key above).
- 'name' => 'disabled_project_name',
- // Array of values from the main .info.yml file for this project.
- 'info' => [
- 'name' => 'Some disabled module',
- 'description' => 'A module not enabled on the site that you want to see in the available updates report.',
- 'version' => '8.x-1.0',
- 'core' => '8.x',
- // The maximum file change time (the "ctime" returned by the filectime()
- // PHP method) for all of the .info.yml files included in this project.
- '_info_file_ctime' => 1243888165,
- ],
- // The date stamp when the project was released, if known. If the disabled
- // project was an officially packaged release from drupal.org, this will
- // be included in the .info.yml file as the 'datestamp' field. This only
- // really matters for development snapshot releases that are regenerated,
- // so it can be left undefined or set to 0 in most cases.
- 'datestamp' => 1243888185,
- // Any modules (or themes) included in this project. Keyed by machine-
- // readable "short name", value is the human-readable project name printed
- // in the UI.
- 'includes' => [
- 'disabled_project' => 'Disabled module',
- 'disabled_project_helper' => 'Disabled module helper module',
- 'disabled_project_foo' => 'Disabled module foo add-on module',
- ],
- // Does this project contain a 'module', 'theme', 'disabled-module', or
- // 'disabled-theme'?
- 'project_type' => 'disabled-module',
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_status_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_status_alter.twig
deleted file mode 100644
index 0ecd08608..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/update_status_alter.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Implements hook_update_status_alter().
- */
-function {{ machine_name }}_update_status_alter(&$projects) {
- $settings = \Drupal::config('update_advanced.settings')->get('projects');
- foreach ($projects as $project => $project_info) {
- if (isset($settings[$project]) && isset($settings[$project]['check']) &&
- ($settings[$project]['check'] == 'never' ||
- (isset($project_info['recommended']) &&
- $settings[$project]['check'] === $project_info['recommended']))) {
- $projects[$project]['status'] = UPDATE_NOT_CHECKED;
- $projects[$project]['reason'] = t('Ignored from settings');
- if (!empty($settings[$project]['notes'])) {
- $projects[$project]['extra'][] = [
- 'class' => ['admin-note'],
- 'label' => t('Administrator note'),
- 'data' => $settings[$project]['notes'],
- ];
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/updater_info.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/updater_info.twig
deleted file mode 100644
index 4bee33ca9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/updater_info.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_updater_info().
- */
-function {{ machine_name }}_updater_info() {
- return [
- 'module' => [
- 'class' => 'Drupal\Core\Updater\Module',
- 'name' => t('Update modules'),
- 'weight' => 0,
- ],
- 'theme' => [
- 'class' => 'Drupal\Core\Updater\Theme',
- 'name' => t('Update themes'),
- 'weight' => 0,
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/updater_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/updater_info_alter.twig
deleted file mode 100644
index c82213042..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/updater_info_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_updater_info_alter().
- */
-function {{ machine_name }}_updater_info_alter(&$updaters) {
- // Adjust weight so that the theme Updater gets a chance to handle a given
- // update task before module updaters.
- $updaters['theme']['weight'] = -1;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_cancel.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_cancel.twig
deleted file mode 100644
index 8ecdbd06a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_cancel.twig
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Implements hook_user_cancel().
- */
-function {{ machine_name }}_user_cancel($edit, UserInterface $account, $method) {
- switch ($method) {
- case 'user_cancel_block_unpublish':
- // Unpublish nodes (current revisions).
- module_load_include('inc', 'node', 'node.admin');
- $nodes = \Drupal::entityQuery('node')
- ->condition('uid', $account->id())
- ->execute();
- node_mass_update($nodes, ['status' => 0], NULL, TRUE);
- break;
-
- case 'user_cancel_reassign':
- // Anonymize nodes (current revisions).
- module_load_include('inc', 'node', 'node.admin');
- $nodes = \Drupal::entityQuery('node')
- ->condition('uid', $account->id())
- ->execute();
- node_mass_update($nodes, ['uid' => 0], NULL, TRUE);
- // Anonymize old revisions.
- \Drupal::database()->update('node_field_revision')
- ->fields(['uid' => 0])
- ->condition('uid', $account->id())
- ->execute();
- break;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_cancel_methods_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_cancel_methods_alter.twig
deleted file mode 100644
index d44589406..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_cancel_methods_alter.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Implements hook_user_cancel_methods_alter().
- */
-function {{ machine_name }}_user_cancel_methods_alter(&$methods) {
- $account = \Drupal::currentUser();
- // Limit access to disable account and unpublish content method.
- $methods['user_cancel_block_unpublish']['access'] = $account->hasPermission('administer site configuration');
-
- // Remove the content re-assigning method.
- unset($methods['user_cancel_reassign']);
-
- // Add a custom zero-out method.
- $methods['mymodule_zero_out'] = [
- 'title' => t('Delete the account and remove all content.'),
- 'description' => t('All your content will be replaced by empty strings.'),
- // access should be used for administrative methods only.
- 'access' => $account->hasPermission('access zero-out account cancellation method'),
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_format_name_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_format_name_alter.twig
deleted file mode 100644
index d1d13f6f7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_format_name_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_user_format_name_alter().
- */
-function {{ machine_name }}_user_format_name_alter(&$name, AccountInterface $account) {
- // Display the user's uid instead of name.
- if ($account->id()) {
- $name = t('User @uid', ['@uid' => $account->id()]);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_login.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_login.twig
deleted file mode 100644
index e9e0b32b2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_login.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Implements hook_user_login().
- */
-function {{ machine_name }}_user_login(UserInterface $account) {
- $config = \Drupal::config('system.date');
- // If the user has a NULL time zone, notify them to set a time zone.
- if (!$account->getTimezone() && $config->get('timezone.user.configurable') && $config->get('timezone.user.warn')) {
- \Drupal::messenger()
- ->addStatus(t('Configure your account time zone setting.', [
- ':user-edit' => $account->url('edit-form', [
- 'query' => \Drupal::destination()
- ->getAsArray(),
- 'fragment' => 'edit-timezone',
- ]),
- ]));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_logout.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_logout.twig
deleted file mode 100644
index 5dfff2f0a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/user_logout.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_user_logout().
- */
-function {{ machine_name }}_user_logout(AccountInterface $account) {
- \Drupal::database()->insert('logouts')
- ->fields([
- 'uid' => $account->id(),
- 'time' => time(),
- ])
- ->execute();
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/validation_constraint_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/validation_constraint_alter.twig
deleted file mode 100644
index 8d368f3df..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/validation_constraint_alter.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_validation_constraint_alter().
- */
-function {{ machine_name }}_validation_constraint_alter(array &$definitions) {
- $definitions['Null']['class'] = '\Drupal\mymodule\Validator\Constraints\MyClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/verify_update_archive.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/verify_update_archive.twig
deleted file mode 100644
index 5c124567e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/verify_update_archive.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_verify_update_archive().
- */
-function {{ machine_name }}_verify_update_archive($project, $archive_file, $directory) {
- $errors = [];
- if (!file_exists($directory)) {
- $errors[] = t('The %directory does not exist.', ['%directory' => $directory]);
- }
- // Add other checks on the archive integrity here.
- return $errors;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_analyze.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_analyze.twig
deleted file mode 100644
index 08f8fecd1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_analyze.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_views_analyze().
- */
-function {{ machine_name }}_views_analyze(Drupal\views\ViewExecutable $view) {
- $messages = [];
-
- if ($view->display_handler->options['pager']['type'] == 'none') {
- $messages[] = Drupal\views\Analyzer::formatMessage(t('This view has no pager. This could cause performance issues when the view contains many items.'), 'warning');
- }
-
- return $messages;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_data.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_data.twig
deleted file mode 100644
index 855d9a7c8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_data.twig
+++ /dev/null
@@ -1,311 +0,0 @@
-/**
- * Implements hook_views_data().
- */
-function {{ machine_name }}_views_data() {
- // This example describes how to write hook_views_data() for a table defined
- // like this:
- // CREATE TABLE example_table (
- // nid INT(11) NOT NULL COMMENT 'Primary key: {node}.nid.',
- // plain_text_field VARCHAR(32) COMMENT 'Just a plain text field.',
- // numeric_field INT(11) COMMENT 'Just a numeric field.',
- // boolean_field INT(1) COMMENT 'Just an on/off field.',
- // timestamp_field INT(8) COMMENT 'Just a timestamp field.',
- // langcode VARCHAR(12) COMMENT 'Language code field.',
- // PRIMARY KEY(nid)
- // );
-
- // Define the return array.
- $data = [];
-
- // The outermost keys of $data are Views table names, which should usually
- // be the same as the hook_schema() table names.
- $data['example_table'] = [];
-
- // The value corresponding to key 'table' gives properties of the table
- // itself.
- $data['example_table']['table'] = [];
-
- // Within 'table', the value of 'group' (translated string) is used as a
- // prefix in Views UI for this table's fields, filters, etc. When adding
- // a field, filter, etc. you can also filter by the group.
- $data['example_table']['table']['group'] = t('Example table');
-
- // Within 'table', the value of 'provider' is the module that provides schema
- // or the entity type that causes the table to exist. Setting this ensures
- // that views have the correct dependencies. This is automatically set to the
- // module that implements hook_views_data().
- $data['example_table']['table']['provider'] = 'example_module';
-
- // Some tables are "base" tables, meaning that they can be the base tables
- // for views. Non-base tables can only be brought in via relationships in
- // views based on other tables. To define a table to be a base table, add
- // key 'base' to the 'table' array:
- $data['example_table']['table']['base'] = [
- // Identifier (primary) field in this table for Views.
- 'field' => 'nid',
- // Label in the UI.
- 'title' => t('Example table'),
- // Longer description in the UI. Required.
- 'help' => t('Example table contains example content and can be related to nodes.'),
- 'weight' => -10,
- ];
-
- // Some tables have an implicit, automatic relationship to other tables,
- // meaning that when the other table is available in a view (either as the
- // base table or through a relationship), this table's fields, filters, etc.
- // are automatically made available without having to add an additional
- // relationship. To define an implicit relationship that will make your
- // table automatically available when another table is present, add a 'join'
- // section to your 'table' section. Note that it is usually only a good idea
- // to do this for one-to-one joins, because otherwise your automatic join
- // will add more rows to the view. It is also not a good idea to do this if
- // most views won't need your table -- if that is the case, define a
- // relationship instead (see below).
- //
- // If you've decided an automatic join is a good idea, here's how to do it;
- // the resulting SQL query will look something like this:
- // ... FROM example_table et ... JOIN node_field_data nfd
- // ON et.nid = nfd.nid AND ('extra' clauses will be here) ...
- // although the table aliases will be different.
- $data['example_table']['table']['join'] = [
- // Within the 'join' section, list one or more tables to automatically
- // join to. In this example, every time 'node_field_data' is available in
- // a view, 'example_table' will be too. The array keys here are the array
- // keys for the other tables, given in their hook_views_data()
- // implementations. If the table listed here is from another module's
- // hook_views_data() implementation, make sure your module depends on that
- // other module.
- 'node_field_data' => [
- // Primary key field in node_field_data to use in the join.
- 'left_field' => 'nid',
- // Foreign key field in example_table to use in the join.
- 'field' => 'nid',
- // 'extra' is an array of additional conditions on the join.
- 'extra' => [
- 0 => [
- // Adds AND node_field_data.published = TRUE to the join.
- 'field' => 'published',
- 'value' => TRUE,
- ],
- 1 => [
- // Adds AND example_table.numeric_field = 1 to the join.
- 'left_field' => 'numeric_field',
- 'value' => 1,
- // If true, the value will not be surrounded in quotes.
- 'numeric' => TRUE,
- ],
- 2 => [
- // Adds AND example_table.boolean_field <>
- // node_field_data.published to the join.
- 'field' => 'published',
- 'left_field' => 'boolean_field',
- // The operator used, Defaults to "=".
- 'operator' => '!=',
- ],
- ],
- ],
- ];
-
- // You can also do a more complex join, where in order to get to a certain
- // base table defined in a hook_views_data() implementation, you will join
- // to a different table that Views knows how to auto-join to the base table.
- // For instance, if another module that your module depends on had
- // defined a table 'foo' with an automatic join to 'node_field_table' (as
- // shown above), you could join to 'node_field_table' via the 'foo' table.
- // Here's how to do this, and the resulting SQL query would look something
- // like this:
- // ... FROM example_table et ... JOIN foo foo
- // ON et.nid = foo.nid AND ('extra' clauses will be here) ...
- // JOIN node_field_data nfd ON (definition of the join from the foo
- // module goes here) ...
- // although the table aliases will be different.
- $data['example_table']['table']['join']['node_field_data'] = [
- // 'node_field_data' above is the base we're joining to in Views.
- // 'left_table' is the table we're actually joining to, in order to get to
- // 'node_field_data'. It has to be something that Views knows how to join
- // to 'node_field_data'.
- 'left_table' => 'foo',
- 'left_field' => 'nid',
- 'field' => 'nid',
- // 'extra' is an array of additional conditions on the join.
- 'extra' => [
- // This syntax matches additional fields in the two tables:
- // ... AND foo.langcode = example_table.langcode ...
- ['left_field' => 'langcode', 'field' => 'langcode'],
- // This syntax adds a condition on our table. 'operator' defaults to
- // '=' for non-array values, or 'IN' for array values.
- // ... AND example_table.numeric_field > 0 ...
- ['field' => 'numeric_field', 'value' => 0, 'numeric' => TRUE, 'operator' => '>'],
- ],
- ];
-
- // Other array elements at the top level of your table's array describe
- // individual database table fields made available to Views. The array keys
- // are the names (unique within the table) used by Views for the fields,
- // usually equal to the database field names.
- //
- // Each field entry must have the following elements:
- // - title: Translated label for the field in the UI.
- // - help: Description of the field in the UI.
- //
- // Each field entry may also have one or more of the following elements,
- // describing "handlers" (plugins) for the field:
- // - relationship: Specifies a handler that allows this field to be used
- // to define a relationship to another table in Views.
- // - field: Specifies a handler to make it available to Views as a field.
- // - filter: Specifies a handler to make it available to Views as a filter.
- // - sort: Specifies a handler to make it available to Views as a sort.
- // - argument: Specifies a handler to make it available to Views as an
- // argument, or contextual filter as it is known in the UI.
- // - area: Specifies a handler to make it available to Views to add content
- // to the header, footer, or as no result behavior.
- //
- // Note that when specifying handlers, you must give the handler plugin ID
- // and you may also specify overrides for various settings that make up the
- // plugin definition. See examples below; the Boolean example demonstrates
- // setting overrides.
-
- // Node ID field, exposed as relationship only, since it is a foreign key
- // in this table.
- $data['example_table']['nid'] = [
- 'title' => t('Example content'),
- 'help' => t('Relate example content to the node content'),
-
- // Define a relationship to the node_field_data table, so views whose
- // base table is example_table can add a relationship to nodes. To make a
- // relationship in the other direction, you can:
- // - Use hook_views_data_alter() -- see the function body example on that
- // hook for details.
- // - Use the implicit join method described above.
- 'relationship' => [
- // Views name of the table to join to for the relationship.
- 'base' => 'node_field_data',
- // Database field name in the other table to join on.
- 'base field' => 'nid',
- // ID of relationship handler plugin to use.
- 'id' => 'standard',
- // Default label for relationship in the UI.
- 'label' => t('Example node'),
- ],
- ];
-
- // Plain text field, exposed as a field, sort, filter, and argument.
- $data['example_table']['plain_text_field'] = [
- 'title' => t('Plain text field'),
- 'help' => t('Just a plain text field.'),
-
- 'field' => [
- // ID of field handler plugin to use.
- 'id' => 'standard',
- ],
-
- 'sort' => [
- // ID of sort handler plugin to use.
- 'id' => 'standard',
- ],
-
- 'filter' => [
- // ID of filter handler plugin to use.
- 'id' => 'string',
- ],
-
- 'argument' => [
- // ID of argument handler plugin to use.
- 'id' => 'string',
- ],
- ];
-
- // Numeric field, exposed as a field, sort, filter, and argument.
- $data['example_table']['numeric_field'] = [
- 'title' => t('Numeric field'),
- 'help' => t('Just a numeric field.'),
-
- 'field' => [
- // ID of field handler plugin to use.
- 'id' => 'numeric',
- ],
-
- 'sort' => [
- // ID of sort handler plugin to use.
- 'id' => 'standard',
- ],
-
- 'filter' => [
- // ID of filter handler plugin to use.
- 'id' => 'numeric',
- ],
-
- 'argument' => [
- // ID of argument handler plugin to use.
- 'id' => 'numeric',
- ],
- ];
-
- // Boolean field, exposed as a field, sort, and filter. The filter section
- // illustrates overriding various settings.
- $data['example_table']['boolean_field'] = [
- 'title' => t('Boolean field'),
- 'help' => t('Just an on/off field.'),
-
- 'field' => [
- // ID of field handler plugin to use.
- 'id' => 'boolean',
- ],
-
- 'sort' => [
- // ID of sort handler plugin to use.
- 'id' => 'standard',
- ],
-
- 'filter' => [
- // ID of filter handler plugin to use.
- 'id' => 'boolean',
- // Override the generic field title, so that the filter uses a different
- // label in the UI.
- 'label' => t('Published'),
- // Override the default BooleanOperator filter handler's 'type' setting,
- // to display this as a "Yes/No" filter instead of a "True/False" filter.
- 'type' => 'yes-no',
- // Override the default Boolean filter handler's 'use_equal' setting, to
- // make the query use 'boolean_field = 1' instead of 'boolean_field <> 0'.
- 'use_equal' => TRUE,
- ],
- ];
-
- // Integer timestamp field, exposed as a field, sort, and filter.
- $data['example_table']['timestamp_field'] = [
- 'title' => t('Timestamp field'),
- 'help' => t('Just a timestamp field.'),
-
- 'field' => [
- // ID of field handler plugin to use.
- 'id' => 'date',
- ],
-
- 'sort' => [
- // ID of sort handler plugin to use.
- 'id' => 'date',
- ],
-
- 'filter' => [
- // ID of filter handler plugin to use.
- 'id' => 'date',
- ],
- ];
-
- // Area example. Areas are not generally associated with actual data
- // tables and fields. This example is from views_views_data(), which defines
- // the "Global" table (not really a table, but a group of Fields, Filters,
- // etc. that are grouped into section "Global" in the UI). Here's the
- // definition of the generic "Text area":
- $data['views']['area'] = [
- 'title' => t('Text area'),
- 'help' => t('Provide markup text for the area.'),
- 'area' => [
- // ID of the area handler plugin to use.
- 'id' => 'text',
- ],
- ];
-
- return $data;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_data_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_data_alter.twig
deleted file mode 100644
index 03bc80bcd..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_data_alter.twig
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Implements hook_views_data_alter().
- */
-function {{ machine_name }}_views_data_alter(array &$data) {
- // Alter the title of the node_field_data:nid field in the Views UI.
- $data['node_field_data']['nid']['title'] = t('Node-Nid');
-
- // Add an additional field to the users_field_data table.
- $data['users_field_data']['example_field'] = [
- 'title' => t('Example field'),
- 'help' => t('Some example content that references a user'),
-
- 'field' => [
- // ID of the field handler to use.
- 'id' => 'example_field',
- ],
- ];
-
- // Change the handler of the node title field, presumably to a handler plugin
- // you define in your module. Give the ID of this plugin.
- $data['node_field_data']['title']['field']['id'] = 'node_title';
-
- // Add a relationship that will allow a view whose base table is 'foo' (from
- // another module) to have a relationship to 'example_table' (from my module),
- // via joining foo.fid to example_table.eid.
- //
- // This relationship has to be added to the 'foo' Views data, which my module
- // does not control, so it must be done in hook_views_data_alter(), not
- // hook_views_data().
- //
- // In Views data definitions, each field can have only one relationship. So
- // rather than adding this relationship directly to the $data['foo']['fid']
- // field entry, which could overwrite an existing relationship, we define
- // a dummy field key to handle the relationship.
- $data['foo']['unique_dummy_name'] = [
- 'title' => t('Title seen while adding relationship'),
- 'help' => t('More information about the relationship'),
-
- 'relationship' => [
- // Views name of the table being joined to from foo.
- 'base' => 'example_table',
- // Database field name in example_table for the join.
- 'base field' => 'eid',
- // Real database field name in foo for the join, to override
- // 'unique_dummy_name'.
- 'field' => 'fid',
- // ID of relationship handler plugin to use.
- 'id' => 'standard',
- 'label' => t('Default label for relationship'),
- ],
- ];
-
- // Note that the $data array is not returned – it is modified by reference.
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_form_substitutions.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_form_substitutions.twig
deleted file mode 100644
index 52ffe7551..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_form_substitutions.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_views_form_substitutions().
- */
-function {{ machine_name }}_views_form_substitutions() {
- return [
- '' => 'Example Substitution',
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_invalidate_cache.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_invalidate_cache.twig
deleted file mode 100644
index 86ccde1fa..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_invalidate_cache.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Implements hook_views_invalidate_cache().
- */
-function {{ machine_name }}_views_invalidate_cache() {
- \Drupal\Core\Cache\Cache::invalidateTags(['views']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_access_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_access_alter.twig
deleted file mode 100644
index 299993c41..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_access_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_access_alter().
- */
-function {{ machine_name }}_views_plugins_access_alter(array &$plugins) {
- // Remove the available plugin because the users should not have access to it.
- unset($plugins['role']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_area_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_area_alter.twig
deleted file mode 100644
index 9f6d5645e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_area_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_area_alter().
- */
-function {{ machine_name }}_views_plugins_area_alter(array &$plugins) {
- // Change the 'title' handler class.
- $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_alter.twig
deleted file mode 100644
index 61dd60b14..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_argument_alter().
- */
-function {{ machine_name }}_views_plugins_argument_alter(array &$plugins) {
- // Change the 'title' handler class.
- $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_default_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_default_alter.twig
deleted file mode 100644
index 211f90a77..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_default_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_argument_default_alter().
- */
-function {{ machine_name }}_views_plugins_argument_default_alter(array &$plugins) {
- // Remove the available plugin because the users should not have access to it.
- unset($plugins['php']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_validator_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_validator_alter.twig
deleted file mode 100644
index 89cc74cd7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_argument_validator_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_argument_validator_alter().
- */
-function {{ machine_name }}_views_plugins_argument_validator_alter(array &$plugins) {
- // Remove the available plugin because the users should not have access to it.
- unset($plugins['php']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_cache_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_cache_alter.twig
deleted file mode 100644
index c9acf027e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_cache_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_cache_alter().
- */
-function {{ machine_name }}_views_plugins_cache_alter(array &$plugins) {
- // Change the title.
- $plugins['time']['title'] = t('Custom title');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_display_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_display_alter.twig
deleted file mode 100644
index dabb6ed6e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_display_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_display_alter().
- */
-function {{ machine_name }}_views_plugins_display_alter(array &$plugins) {
- // Alter the title of an existing plugin.
- $plugins['rest_export']['title'] = t('Export');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_display_extenders_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_display_extenders_alter.twig
deleted file mode 100644
index ba86f7400..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_display_extenders_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_display_extenders_alter().
- */
-function {{ machine_name }}_views_plugins_display_extenders_alter(array &$plugins) {
- // Alter the title of an existing plugin.
- $plugins['time']['title'] = t('Custom title');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_exposed_form_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_exposed_form_alter.twig
deleted file mode 100644
index 1877b6564..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_exposed_form_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_exposed_form_alter().
- */
-function {{ machine_name }}_views_plugins_exposed_form_alter(array &$plugins) {
- // Remove the available plugin because the users should not have access to it.
- unset($plugins['input_required']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_field_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_field_alter.twig
deleted file mode 100644
index 4ec9bb92e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_field_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_field_alter().
- */
-function {{ machine_name }}_views_plugins_field_alter(array &$plugins) {
- // Change the 'title' handler class.
- $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_filter_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_filter_alter.twig
deleted file mode 100644
index bd96df721..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_filter_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_filter_alter().
- */
-function {{ machine_name }}_views_plugins_filter_alter(array &$plugins) {
- // Change the 'title' handler class.
- $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_join_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_join_alter.twig
deleted file mode 100644
index f01eb0a8e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_join_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_join_alter().
- */
-function {{ machine_name }}_views_plugins_join_alter(array &$plugins) {
- // Print out all join plugin names for debugging purposes.
- debug($plugins);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_pager_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_pager_alter.twig
deleted file mode 100644
index 888b21c14..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_pager_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_pager_alter().
- */
-function {{ machine_name }}_views_plugins_pager_alter(array &$plugins) {
- // Remove the sql based plugin to force good performance.
- unset($plugins['full']);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_query_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_query_alter.twig
deleted file mode 100644
index d2c644049..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_query_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_query_alter().
- */
-function {{ machine_name }}_views_plugins_query_alter(array &$plugins) {
- // Print out all query plugin names for debugging purposes.
- debug($plugins);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_relationship_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_relationship_alter.twig
deleted file mode 100644
index e435d0b76..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_relationship_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_relationship_alter().
- */
-function {{ machine_name }}_views_plugins_relationship_alter(array &$plugins) {
- // Change the 'title' handler class.
- $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_row_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_row_alter.twig
deleted file mode 100644
index 267acc435..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_row_alter.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Implements hook_views_plugins_row_alter().
- */
-function {{ machine_name }}_views_plugins_row_alter(array &$plugins) {
- // Change the used class of a plugin.
- $plugins['entity:node']['class'] = 'Drupal\node\Plugin\views\row\NodeRow';
- $plugins['entity:node']['module'] = 'node';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_sort_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_sort_alter.twig
deleted file mode 100644
index efbc03c09..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_sort_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_sort_alter().
- */
-function {{ machine_name }}_views_plugins_sort_alter(array &$plugins) {
- // Change the 'title' handler class.
- $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_style_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_style_alter.twig
deleted file mode 100644
index 72dd3b49f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_style_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_style_alter().
- */
-function {{ machine_name }}_views_plugins_style_alter(array &$plugins) {
- // Change the theme hook of a plugin.
- $plugins['html_list']['theme'] = 'custom_views_view_list';
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_wizard_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_wizard_alter.twig
deleted file mode 100644
index e842068c5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_plugins_wizard_alter.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Implements hook_views_plugins_wizard_alter().
- */
-function {{ machine_name }}_views_plugins_wizard_alter(array &$plugins) {
- // Change the title of a plugin.
- $plugins['node_revision']['title'] = t('Node revision wizard');
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_build.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_build.twig
deleted file mode 100644
index bfd25720a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_build.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Implements hook_views_post_build().
- */
-function {{ machine_name }}_views_post_build(ViewExecutable $view) {
- // If the exposed field 'type' is set, hide the column containing the content
- // type. (Note that this is a solution for a particular view, and makes
- // assumptions about both exposed filter settings and the fields in the view.
- // Also note that this alter could be done at any point before the view being
- // rendered.)
- if ($view->id() == 'my_view' && isset($view->exposed_raw_input['type']) && $view->exposed_raw_input['type'] != 'All') {
- // 'Type' should be interpreted as content type.
- if (isset($view->field['type'])) {
- $view->field['type']->options['exclude'] = TRUE;
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_execute.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_execute.twig
deleted file mode 100644
index dfad5f44c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_execute.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_views_post_execute().
- */
-function {{ machine_name }}_views_post_execute(ViewExecutable $view) {
- // If there are more than 100 results, show a message that encourages the user
- // to change the filter settings.
- // (This action could be performed later in the execution process, but not
- // earlier.)
- if ($view->total_rows > 100) {
- \Drupal::messenger()->addStatus(t('You have more than 100 hits. Use the filter settings to narrow down your list.'));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_render.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_render.twig
deleted file mode 100644
index 63370538d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_post_render.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_views_post_render().
- */
-function {{ machine_name }}_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) {
- // When using full pager, disable any time-based caching if there are fewer
- // than 10 results.
- if ($view->pager instanceof Drupal\views\Plugin\views\pager\Full && $cache instanceof Drupal\views\Plugin\views\cache\Time && count($view->result) < 10) {
- $cache->options['results_lifespan'] = 0;
- $cache->options['output_lifespan'] = 0;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_build.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_build.twig
deleted file mode 100644
index 646561689..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_build.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_views_pre_build().
- */
-function {{ machine_name }}_views_pre_build(ViewExecutable $view) {
- // Because of some inexplicable business logic, we should remove all
- // attachments from all views on Mondays.
- // (This alter could be done later in the execution process as well.)
- if (date('D') == 'Mon') {
- unset($view->attachment_before);
- unset($view->attachment_after);
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_execute.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_execute.twig
deleted file mode 100644
index 92cae5ffc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_execute.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Implements hook_views_pre_execute().
- */
-function {{ machine_name }}_views_pre_execute(ViewExecutable $view) {
- // Whenever a view queries more than two tables, show a message that notifies
- // view administrators that the query might be heavy.
- // (This action could be performed later in the execution process, but not
- // earlier.)
- $account = \Drupal::currentUser();
-
- if (count($view->query->tables) > 2 && $account->hasPermission('administer views')) {
- \Drupal::messenger()->addWarning(t('The view %view may be heavy to execute.', ['%view' => $view->id()]));
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_render.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_render.twig
deleted file mode 100644
index 0cf94e13f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_render.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_views_pre_render().
- */
-function {{ machine_name }}_views_pre_render(ViewExecutable $view) {
- // Scramble the order of the rows shown on this result page.
- // Note that this could be done earlier, but not later in the view execution
- // process.
- shuffle($view->result);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_view.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_view.twig
deleted file mode 100644
index bd725df56..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_pre_view.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_views_pre_view().
- */
-function {{ machine_name }}_views_pre_view(ViewExecutable $view, $display_id, array &$args) {
-
- // Modify contextual filters for my_special_view if user has 'my special permission'.
- $account = \Drupal::currentUser();
-
- if ($view->id() == 'my_special_view' && $account->hasPermission('my special permission') && $display_id == 'public_display') {
- $args[0] = 'custom value';
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_preview_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_preview_info_alter.twig
deleted file mode 100644
index 1c50ce244..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_preview_info_alter.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Implements hook_views_preview_info_alter().
- */
-function {{ machine_name }}_views_preview_info_alter(array &$rows, ViewExecutable $view) {
- // Adds information about the tables being queried by the view to the query
- // part of the info box.
- $rows['query'][] = [
- t('Table queue'),
- count($view->query->table_queue) . ': (' . implode(', ', array_keys($view->query->table_queue)) . ')',
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_query_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_query_alter.twig
deleted file mode 100644
index d09a7e41e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_query_alter.twig
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Implements hook_views_query_alter().
- */
-function {{ machine_name }}_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
- // (Example assuming a view with an exposed filter on node title.)
- // If the input for the title filter is a positive integer, filter against
- // node ID instead of node title.
- if ($view->id() == 'my_view' && is_numeric($view->exposed_raw_input['title']) && $view->exposed_raw_input['title'] > 0) {
- // Traverse through the 'where' part of the query.
- foreach ($query->where as &$condition_group) {
- foreach ($condition_group['conditions'] as &$condition) {
- // If this is the part of the query filtering on title, chang the
- // condition to filter on node ID.
- if ($condition['field'] == 'node.title') {
- $condition = [
- 'field' => 'node.nid',
- 'value' => $view->exposed_raw_input['title'],
- 'operator' => '=',
- ];
- }
- }
- }
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_query_substitutions.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_query_substitutions.twig
deleted file mode 100644
index 7a43d9e8e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_query_substitutions.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Implements hook_views_query_substitutions().
- */
-function {{ machine_name }}_views_query_substitutions(ViewExecutable $view) {
- // Example from views_views_query_substitutions().
- return [
- '***CURRENT_VERSION***' => \Drupal::VERSION,
- '***CURRENT_TIME***' => REQUEST_TIME,
- '***LANGUAGE_language_content***' => \Drupal::languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId(),
- PluginBase::VIEWS_QUERY_LANGUAGE_SITE_DEFAULT => \Drupal::languageManager()->getDefaultLanguage()->getId(),
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_ui_display_top_links_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_ui_display_top_links_alter.twig
deleted file mode 100644
index 96ec9f1d9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/views_ui_display_top_links_alter.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Implements hook_views_ui_display_top_links_alter().
- */
-function {{ machine_name }}_views_ui_display_top_links_alter(array &$links, ViewExecutable $view, $display_id) {
- // Put the export link first in the list.
- if (isset($links['export'])) {
- $links = ['export' => $links['export']] + $links;
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/install.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/install.twig
deleted file mode 100644
index cdcc1be48..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/install.twig
+++ /dev/null
@@ -1,96 +0,0 @@
-addStatus(__FUNCTION__);
-}
-
-/**
- * Implements hook_uninstall().
- */
-function {{ machine_name }}_uninstall() {
- \Drupal::messenger()->addStatus(__FUNCTION__);
-}
-
-/**
- * Implements hook_schema().
- */
-function {{ machine_name }}_schema() {
- $schema['{{ machine_name }}_example'] = [
- 'description' => 'Table description.',
- 'fields' => [
- 'id' => [
- 'type' => 'serial',
- 'not null' => TRUE,
- 'description' => 'Primary Key: Unique record ID.',
- ],
- 'uid' => [
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The {users}.uid of the user who created the record.',
- ],
- 'status' => [
- 'description' => 'Boolean indicating whether this record is active.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'size' => 'tiny',
- ],
- 'type' => [
- 'type' => 'varchar_ascii',
- 'length' => 64,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'Type of the record.',
- ],
- 'created' => [
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'Timestamp when the record was created.',
- ],
- 'data' => [
- 'type' => 'blob',
- 'not null' => TRUE,
- 'size' => 'big',
- 'description' => 'The arbitrary data for the item.',
- ],
- ],
- 'primary key' => ['id'],
- 'indexes' => [
- 'type' => ['type'],
- 'uid' => ['uid'],
- 'status' => ['status'],
- ],
- ];
-
- return $schema;
-}
-
-/**
- * Implements hook_requirements().
- */
-function {{ machine_name }}_requirements($phase) {
- $requirements = [];
-
- if ($phase == 'runtime') {
- $value = mt_rand(0, 100);
- $requirements['{{ machine_name }}_status'] = [
- 'title' => t('{{ name }} status'),
- 'value' => t('{{ name }} value: @value', ['@value' => $value]),
- 'severity' => $value > 50 ? REQUIREMENT_INFO : REQUIREMENT_WARNING,
- ];
- }
-
- return $requirements;
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/javascript.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/javascript.twig
deleted file mode 100644
index 4b36af2b8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/javascript.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * @file
- * {{ name }} behaviors.
- */
-
-(function ($, Drupal) {
-
- 'use strict';
-
- /**
- * Behavior description.
- */
- Drupal.behaviors.{{ machine_name|camelize(false) }} = {
- attach: function (context, settings) {
-
- console.log('It works!');
-
- }
- };
-
-} (jQuery, Drupal));
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module.twig
deleted file mode 100644
index 24725d306..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-t('Label');
- $header['id'] = $this->t('Machine name');
- $header['status'] = $this->t('Status');
- return $header + parent::buildHeader();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildRow(EntityInterface $entity) {
- /** @var \Drupal\{{ machine_name }}\{{ class_prefix }}Interface $entity */
- $row['label'] = $entity->label();
- $row['id'] = $entity->id();
- $row['status'] = $entity->status() ? $this->t('Enabled') : $this->t('Disabled');
- return $row + parent::buildRow($entity);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/configuration-entity/src/Form/ExampleForm.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/configuration-entity/src/Form/ExampleForm.php.twig
deleted file mode 100644
index b61beba10..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/configuration-entity/src/Form/ExampleForm.php.twig
+++ /dev/null
@@ -1,70 +0,0 @@
- 'textfield',
- '#title' => $this->t('Label'),
- '#maxlength' => 255,
- '#default_value' => $this->entity->label(),
- '#description' => $this->t('Label for the {{ entity_type_label|lower }}.'),
- '#required' => TRUE,
- ];
-
- $form['id'] = [
- '#type' => 'machine_name',
- '#default_value' => $this->entity->id(),
- '#machine_name' => [
- 'exists' => '\Drupal\{{ machine_name }}\Entity\{{ class_prefix }}::load',
- ],
- '#disabled' => !$this->entity->isNew(),
- ];
-
- $form['status'] = [
- '#type' => 'checkbox',
- '#title' => $this->t('Enabled'),
- '#default_value' => $this->entity->status(),
- ];
-
- $form['description'] = [
- '#type' => 'textarea',
- '#title' => $this->t('Description'),
- '#default_value' => $this->entity->get('description'),
- '#description' => $this->t('Description of the {{ entity_type_label|lower }}.'),
- ];
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function save(array $form, FormStateInterface $form_state) {
- $result = parent::save($form, $form_state);
- $message_args = ['%label' => $this->entity->label()];
- $message = $result == SAVED_NEW
- ? $this->t('Created new {{ entity_type_label|lower }} %label.', $message_args)
- : $this->t('Updated {{ entity_type_label|lower }} %label.', $message_args);
- $this->messenger()->addStatus($message);
- $form_state->setRedirectUrl($this->entity->toUrl('collection'));
- return $result;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/rest.resource.entity.example.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/rest.resource.entity.example.yml.twig
deleted file mode 100644
index 830ddea29..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/rest.resource.entity.example.yml.twig
+++ /dev/null
@@ -1,31 +0,0 @@
-id: entity.{{ entity_type_id }}
-plugin_id: 'entity:{{ entity_type_id }}'
-granularity: method
-configuration:
- GET:
- supported_formats:
- - json
- - xml
- supported_auth:
- - cookie
- POST:
- supported_formats:
- - json
- - xml
- supported_auth:
- - cookie
- PATCH:
- supported_formats:
- - json
- - xml
- supported_auth:
- - cookie
- DELETE:
- supported_formats:
- - json
- - xml
- supported_auth:
- - cookie
-dependencies:
- module:
- - user
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/views.view.example.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/views.view.example.yml.twig
deleted file mode 100644
index ab899b483..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/optional/views.view.example.yml.twig
+++ /dev/null
@@ -1,506 +0,0 @@
-langcode: en
-status: true
-dependencies:
- module:
- - {{ machine_name }}
- - user
-id: {{ entity_type_id }}
-label: {{ entity_type_label }}
-module: views
-description: ''
-tag: ''
-base_table: {{ entity_type_id }}_field_data
-base_field: id
-core: 8.x
-display:
- default:
- display_plugin: default
- id: default
- display_title: Master
- position: 0
- display_options:
- access:
- type: perm
- options:
- perm: 'access {{ entity_type_id }} overview'
- cache:
- type: tag
- options: { }
- query:
- type: views_query
- options:
- disable_sql_rewrite: false
- distinct: false
- replica: false
- query_comment: ''
- query_tags: { }
- exposed_form:
- type: basic
- options:
- submit_button: Submit
- reset_button: true
- reset_button_label: Reset
- exposed_sorts_label: 'Sort by'
- expose_sort_order: true
- sort_asc_label: Asc
- sort_desc_label: Desc
- pager:
- type: full
- options:
- items_per_page: 50
- offset: 0
- id: 0
- total_pages: null
- tags:
- previous: ‹‹
- next: ››
- first: '«'
- last: '»'
- expose:
- items_per_page: false
- items_per_page_label: 'Items per page'
- items_per_page_options: '5, 10, 25, 50'
- items_per_page_options_all: false
- items_per_page_options_all_label: '- All -'
- offset: false
- offset_label: Offset
- quantity: 9
- style:
- type: table
- options:
- grouping: { }
- row_class: ''
- default_row_class: true
- override: true
- sticky: false
- caption: ''
- summary: ''
- description: ''
- columns:
- title: title
- bundle: bundle
- changed: changed
- operations: operations
- info:
- title:
- sortable: true
- default_sort_order: asc
- align: ''
- separator: ''
- empty_column: false
- responsive: priority-medium
- bundle:
- sortable: true
- default_sort_order: asc
- align: ''
- separator: ''
- empty_column: false
- responsive: priority-medium
- changed:
- sortable: true
- default_sort_order: desc
- align: ''
- separator: ''
- empty_column: false
- responsive: ''
- operations:
- align: ''
- separator: ''
- empty_column: false
- responsive: priority-medium
- default: changed
- empty_table: false
- row:
- type: fields
- fields:
- title:
- table: {{ entity_type_id }}_field_data
- field: title
- id: title
- entity_type: null
- entity_field: title
- plugin_id: field
- relationship: none
- group_type: group
- admin_label: ''
- label: Title
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: value
- type: string
- settings: { }
- group_column: value
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- bundle:
- id: bundle
- table: {{ entity_type_id }}_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- label: '{{ entity_type_label }} type'
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: false
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: target_id
- type: entity_reference_label
- settings:
- link: true
- group_column: target_id
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- entity_type: {{ entity_type_id }}
- entity_field: bundle
- plugin_id: field
- changed:
- id: changed
- table: {{ entity_type_id }}_field_data
- field: changed
- relationship: none
- group_type: group
- admin_label: ''
- label: Changed
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- click_sort_column: value
- type: timestamp
- settings:
- date_format: short
- custom_date_format: ''
- timezone: ''
- group_column: value
- group_columns: { }
- group_rows: true
- delta_limit: 0
- delta_offset: 0
- delta_reversed: false
- delta_first_last: false
- multi_type: separator
- separator: ', '
- field_api_classes: false
- entity_type: {{ entity_type_id }}
- entity_field: changed
- plugin_id: field
- operations:
- id: operations
- table: {{ entity_type_id }}
- field: operations
- relationship: none
- group_type: group
- admin_label: ''
- label: Operations
- exclude: false
- alter:
- alter_text: false
- text: ''
- make_link: false
- path: ''
- absolute: false
- external: false
- replace_spaces: false
- path_case: none
- trim_whitespace: false
- alt: ''
- rel: ''
- link_class: ''
- prefix: ''
- suffix: ''
- target: ''
- nl2br: false
- max_length: 0
- word_boundary: true
- ellipsis: true
- more_link: false
- more_link_text: ''
- more_link_path: ''
- strip_tags: false
- trim: false
- preserve_tags: ''
- html: false
- element_type: ''
- element_class: ''
- element_label_type: ''
- element_label_class: ''
- element_label_colon: true
- element_wrapper_type: ''
- element_wrapper_class: ''
- element_default_classes: true
- empty: ''
- hide_empty: false
- empty_zero: false
- hide_alter_empty: true
- destination: false
- entity_type: {{ entity_type_id }}
- plugin_id: entity_operations
- filters:
- title:
- id: title
- table: {{ entity_type_id }}_field_data
- field: title
- relationship: none
- group_type: group
- admin_label: ''
- operator: contains
- value: ''
- group: 1
- exposed: true
- expose:
- operator_id: title_op
- label: Title
- description: ''
- use_operator: false
- operator: title_op
- identifier: title
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- placeholder: ''
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: {{ entity_type_id }}
- entity_field: title
- plugin_id: string
- bundle:
- id: bundle
- table: {{ entity_type_id }}_field_data
- field: bundle
- relationship: none
- group_type: group
- admin_label: ''
- operator: in
- value: { }
- group: 1
- exposed: true
- expose:
- operator_id: bundle_op
- label: '{{ entity_type_label }} type'
- description: ''
- use_operator: false
- operator: bundle_op
- identifier: bundle
- required: false
- remember: false
- multiple: false
- remember_roles:
- authenticated: authenticated
- anonymous: '0'
- reduce: false
- is_grouped: false
- group_info:
- label: ''
- description: ''
- identifier: ''
- optional: true
- widget: select
- multiple: false
- remember: false
- default_group: All
- default_group_multiple: { }
- group_items: { }
- entity_type: {{ entity_type_id }}
- entity_field: bundle
- plugin_id: bundle
- sorts: { }
- title: {{ entity_type_label }}
- header: { }
- footer: { }
- empty:
- area_text_custom:
- id: area_text_custom
- table: views
- field: area_text_custom
- relationship: none
- group_type: group
- admin_label: ''
- empty: true
- tokenize: false
- content: 'No {{ entity_type_id }} available.'
- plugin_id: text_custom
- relationships: { }
- arguments: { }
- display_extenders: { }
- filter_groups:
- operator: AND
- groups:
- 1: AND
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_content'
- - 'languages:language_interface'
- - url
- - url.query_args
- - user.permissions
- tags: { }
- page:
- display_plugin: page
- id: page
- display_title: Page
- position: 1
- display_options:
- display_extenders: { }
- path: admin/content/{{ entity_type_id }}
- menu:
- type: tab
- title: {{ entity_type_label }}
- description: ''
- expanded: false
- parent: ''
- weight: 10
- context: '0'
- menu_name: main
- tab_options:
- type: normal
- title: {{ entity_type_label }}
- description: 'Manage and find {{ entity_type_id }}'
- weight: 0
- cache_metadata:
- max-age: -1
- contexts:
- - 'languages:language_content'
- - 'languages:language_interface'
- - url
- - url.query_args
- - user.permissions
- tags: { }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/schema/model.entity_type.schema.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/schema/model.entity_type.schema.yml.twig
deleted file mode 100644
index f64825474..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/config/schema/model.entity_type.schema.yml.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ machine_name }}.{{ entity_type_id }}_type.*:
- type: config_entity
- label: '{{ entity_type_label }} type config'
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- uuid:
- type: string
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.info.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.info.yml.twig
deleted file mode 100755
index ec3a80036..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.info.yml.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-name: {{ name }}
-type: module
-description: 'Provides {{ entity_type_label|article|lower }} entity.'
-package: {{ package }}
-core: 8.x
-{% if dependencies %}
-dependencies:
-{% for dependency in dependencies %}
- - {{ dependency }}
-{% endfor %}
-{% endif %}
-{% if configure %}
-configure: {{ configure }}
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.action.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.action.yml.twig
deleted file mode 100755
index c093809da..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.action.yml.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-{% if bundle %}
-{{ entity_type_id }}.type_add:
- route_name: entity.{{ entity_type_id }}_type.add_form
- title: 'Add {{ entity_type_label|lower }} type'
- appears_on:
- - entity.{{ entity_type_id }}_type.collection
-
-{{ entity_type_id }}.add_page:
- route_name: entity.{{ entity_type_id }}.add_page
- title: 'Add {{ entity_type_label|lower }}'
- appears_on:
- - entity.{{ entity_type_id }}.collection
-{% else %}
-{{ entity_type_id }}.add_form:
- route_name: entity.{{ entity_type_id }}.add_form
- title: 'Add {{ entity_type_label|lower }}'
- appears_on:
- - entity.{{ entity_type_id }}.collection
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.menu.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.menu.yml.twig
deleted file mode 100755
index e5803fa48..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.menu.yml.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-{% if fieldable_no_bundle %}
-entity.{{ entity_type_id }}.settings:
- title: {{ entity_type_label }}
- description: Configure {{ entity_type_label|article }} entity type
- route_name: entity.{{ entity_type_id }}.settings
- parent: system.admin_structure
-entity.{{ entity_type_id }}.collection:
- title: {{ entity_type_label|plural }}
- description: List of {{ entity_type_label|plural|lower }}
- route_name: entity.{{ entity_type_id }}.collection
- parent: system.admin_content
-{% elseif bundle %}
-entity.{{ entity_type_id }}_type.collection:
- title: '{{ entity_type_label }} types'
- parent: system.admin_structure
- description: 'Manage and CRUD actions on {{ entity_type_label }} type.'
- route_name: entity.{{ entity_type_id }}_type.collection
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.task.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.task.yml.twig
deleted file mode 100755
index ef22ad637..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.links.task.yml.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-{% if fieldable_no_bundle %}
-entity.{{ entity_type_id }}.settings:
- title: Settings
- route_name: entity.{{ entity_type_id }}.settings
- base_route: entity.{{ entity_type_id }}.settings
-{% endif %}
-entity.{{ entity_type_id }}.view:
- title: View
- route_name: entity.{{ entity_type_id }}.canonical
- base_route: entity.{{ entity_type_id }}.canonical
-entity.{{ entity_type_id }}.edit_form:
- title: Edit
- route_name: entity.{{ entity_type_id }}.edit_form
- base_route: entity.{{ entity_type_id }}.canonical
-entity.{{ entity_type_id }}.delete_form:
- title: Delete
- route_name: entity.{{ entity_type_id }}.delete_form
- base_route: entity.{{ entity_type_id }}.canonical
- weight: 10
-entity.{{ entity_type_id }}.collection:
- title: {{ entity_type_label }}
- route_name: entity.{{ entity_type_id }}.collection
- base_route: system.admin_content
- weight: 10
-{% if bundle %}
-entity.{{ entity_type_id }}_type.edit_form:
- title: Edit
- route_name: entity.{{ entity_type_id }}_type.edit_form
- base_route: entity.{{ entity_type_id }}_type.edit_form
-entity.{{ entity_type_id }}_type.collection:
- title: List
- route_name: entity.{{ entity_type_id }}_type.collection
- base_route: entity.{{ entity_type_id }}_type.collection
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.module.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.module.twig
deleted file mode 100644
index 8b3ffa9e9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.module.twig
+++ /dev/null
@@ -1,36 +0,0 @@
- [
- 'render element' => 'elements',
- ],
- ];
-}
-
-/**
- * Prepares variables for {{ entity_type_label|lower }} templates.
- *
- * Default template: {{ template_name }}.
- *
- * @param array $variables
- * An associative array containing:
- * - elements: An associative array containing the {{ entity_type_label|lower }} information and any
- * fields attached to the entity.
- * - attributes: HTML attributes for the containing element.
- */
-function template_preprocess_{{ entity_type_id }}(array &$variables) {
- foreach (Element::children($variables['elements']) as $key) {
- $variables['content'][$key] = $variables['elements'][$key];
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.permissions.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.permissions.yml.twig
deleted file mode 100644
index b48f65f5c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.permissions.yml.twig
+++ /dev/null
@@ -1,19 +0,0 @@
-administer {{ entity_type_label|lower }} types:
- title: 'Administer {{ entity_type_label|lower }} types'
- description: 'Maintain the types of {{ entity_type_label|lower }} entity.'
- restrict access: true
-administer {{ entity_type_label|lower }}:
- title: Administer {{ entity_type_label|lower }} settings
- restrict access: true
-access {{ entity_type_label|lower }} overview:
- title: 'Access {{ entity_type_label|lower }} overview page'
-{% if access_controller %}
-delete {{ entity_type_label|lower }}:
- title: Delete {{ entity_type_label|lower }}
-create {{ entity_type_label|lower }}:
- title: Create {{ entity_type_label|lower }}
-view {{ entity_type_label|lower }}:
- title: View {{ entity_type_label|lower }}
-edit {{ entity_type_label|lower }}:
- title: Edit {{ entity_type_label|lower }}
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.routing.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.routing.yml.twig
deleted file mode 100755
index 300eab1fb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/model.routing.yml.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-{% if fieldable_no_bundle %}
-entity.{{ entity_type_id }}.settings:
- path: 'admin/structure/{{ entity_type_id|u2h }}'
- defaults:
- _form: '\Drupal\{{ machine_name }}\Form\{{ class_prefix }}SettingsForm'
- _title: '{{ entity_type_label }}'
- requirements:
- _permission: 'administer {{ entity_type_label|lower }}'
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Entity/Example.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Entity/Example.php.twig
deleted file mode 100755
index 107e8c042..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Entity/Example.php.twig
+++ /dev/null
@@ -1,354 +0,0 @@
- \Drupal::currentUser()->id()];
- }
-
-{% if title_base_field %}
- /**
- * {@inheritdoc}
- */
- public function getTitle() {
- return $this->get('title')->value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setTitle($title) {
- $this->set('title', $title);
- return $this;
- }
-
-{% endif %}
-{% if status_base_field %}
- /**
- * {@inheritdoc}
- */
- public function isEnabled() {
- return (bool) $this->get('status')->value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setStatus($status) {
- $this->set('status', $status);
- return $this;
- }
-
-{% endif %}
-{% if created_base_field %}
- /**
- * {@inheritdoc}
- */
- public function getCreatedTime() {
- return $this->get('created')->value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setCreatedTime($timestamp) {
- $this->set('created', $timestamp);
- return $this;
- }
-
-{% endif %}
-{% if author_base_field %}
- /**
- * {@inheritdoc}
- */
- public function getOwner() {
- return $this->get('uid')->entity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getOwnerId() {
- return $this->get('uid')->target_id;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setOwnerId($uid) {
- $this->set('uid', $uid);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setOwner(UserInterface $account) {
- $this->set('uid', $account->id());
- return $this;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
-
- $fields = parent::baseFieldDefinitions($entity_type);
-
-{% if title_base_field %}
- $fields['title'] = BaseFieldDefinition::create('string')
-{% if revisionable %}
- ->setRevisionable(TRUE)
-{% endif %}
-{% if translatable %}
- ->setTranslatable(TRUE)
-{% endif %}
- ->setLabel(t('Title'))
- ->setDescription(t('The title of the {{ entity_type_label|lower }} entity.'))
- ->setRequired(TRUE)
- ->setSetting('max_length', 255)
- ->setDisplayOptions('form', [
- 'type' => 'string_textfield',
- 'weight' => -5,
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayOptions('view', [
- 'label' => 'hidden',
- 'type' => 'string',
- 'weight' => -5,
- ])
- ->setDisplayConfigurable('view', TRUE);
-
-{% endif %}
-{% if status_base_field %}
- $fields['status'] = BaseFieldDefinition::create('boolean')
-{% if revisionable %}
- ->setRevisionable(TRUE)
-{% endif %}
- ->setLabel(t('Status'))
- ->setDescription(t('A boolean indicating whether the {{ entity_type_label|lower }} is enabled.'))
- ->setDefaultValue(TRUE)
- ->setSetting('on_label', 'Enabled')
- ->setDisplayOptions('form', [
- 'type' => 'boolean_checkbox',
- 'settings' => [
- 'display_label' => FALSE,
- ],
- 'weight' => 0,
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayOptions('view', [
- 'type' => 'boolean',
- 'label' => 'above',
- 'weight' => 0,
- 'settings' => [
- 'format' => 'enabled-disabled',
- ],
- ])
- ->setDisplayConfigurable('view', TRUE);
-
-{% endif %}
-{% if description_base_field %}
- $fields['description'] = BaseFieldDefinition::create('text_long')
-{% if revisionable %}
- ->setRevisionable(TRUE)
-{% endif %}
-{% if translatable %}
- ->setTranslatable(TRUE)
-{% endif %}
- ->setLabel(t('Description'))
- ->setDescription(t('A description of the {{ entity_type_label|lower }}.'))
- ->setDisplayOptions('form', [
- 'type' => 'text_textarea',
- 'weight' => 10,
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayOptions('view', [
- 'type' => 'text_default',
- 'label' => 'above',
- 'weight' => 10,
- ])
- ->setDisplayConfigurable('view', TRUE);
-
-{% endif %}
-{% if author_base_field %}
- $fields['uid'] = BaseFieldDefinition::create('entity_reference')
-{% if revisionable %}
- ->setRevisionable(TRUE)
-{% endif %}
-{% if translatable %}
- ->setTranslatable(TRUE)
-{% endif %}
- ->setLabel(t('Author'))
- ->setDescription(t('The user ID of the {{ entity_type_label|lower }} author.'))
- ->setSetting('target_type', 'user')
- ->setDisplayOptions('form', [
- 'type' => 'entity_reference_autocomplete',
- 'settings' => [
- 'match_operator' => 'CONTAINS',
- 'size' => 60,
- 'placeholder' => '',
- ],
- 'weight' => 15,
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayOptions('view', [
- 'label' => 'above',
- 'type' => 'author',
- 'weight' => 15,
- ])
- ->setDisplayConfigurable('view', TRUE);
-
-{% endif %}
-{% if created_base_field %}
- $fields['created'] = BaseFieldDefinition::create('created')
- ->setLabel(t('Authored on'))
-{% if translatable %}
- ->setTranslatable(TRUE)
-{% endif %}
- ->setDescription(t('The time that the {{ entity_type_label|lower }} was created.'))
- ->setDisplayOptions('view', [
- 'label' => 'above',
- 'type' => 'timestamp',
- 'weight' => 20,
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayOptions('form', [
- 'type' => 'datetime_timestamp',
- 'weight' => 20,
- ])
- ->setDisplayConfigurable('view', TRUE);
-
-{% endif %}
-{% if changed_base_field %}
- $fields['changed'] = BaseFieldDefinition::create('changed')
- ->setLabel(t('Changed'))
-{% if translatable %}
- ->setTranslatable(TRUE)
-{% endif %}
- ->setDescription(t('The time that the {{ entity_type_label|lower }} was last edited.'));
-
-{% endif %}
- return $fields;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Entity/ExampleType.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Entity/ExampleType.php.twig
deleted file mode 100644
index 144e11507..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Entity/ExampleType.php.twig
+++ /dev/null
@@ -1,61 +0,0 @@
-dateFormatter = $date_formatter;
- $this->redirectDestination = $redirect_destination;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
- return new static(
- $entity_type,
- $container->get('entity_type.manager')->getStorage($entity_type->id()),
- $container->get('date.formatter'),
- $container->get('redirect.destination')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function render() {
- $build['table'] = parent::render();
-
- $total = \Drupal::database()
- ->query('SELECT COUNT(*) FROM {{ '{' }}{{ entity_type_id }}{{ '}' }}')
- ->fetchField();
-
- $build['summary']['#markup'] = $this->t('Total {{ entity_type_label|lower|plural }}: @total', ['@total' => $total]);
- return $build;
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildHeader() {
- $header['id'] = $this->t('ID');
-{% if title_base_field %}
- $header['title'] = $this->t('Title');
-{% endif %}
-{% if status_base_field %}
- $header['status'] = $this->t('Status');
-{% endif %}
-{% if author_base_field %}
- $header['uid'] = $this->t('Author');
-{% endif %}
-{% if created_base_field %}
- $header['created'] = $this->t('Created');
-{% endif %}
-{% if changed_base_field %}
- $header['changed'] = $this->t('Updated');
-{% endif %}
- return $header + parent::buildHeader();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildRow(EntityInterface $entity) {
- /* @var $entity \Drupal\{{ machine_name }}\Entity\{{ class_prefix }} */
- $row['id'] = $entity->{{ title_base_field ? 'id' : 'link' }}();
-{% if title_base_field %}
- $row['title'] = $entity->link();
-{% endif %}
-{% if status_base_field %}
- $row['status'] = $entity->isEnabled() ? $this->t('Enabled') : $this->t('Disabled');
-{% endif %}
-{% if author_base_field %}
- $row['uid']['data'] = [
- '#theme' => 'username',
- '#account' => $entity->getOwner(),
- ];
-{% endif %}
-{% if created_base_field %}
- $row['created'] = $this->dateFormatter->format($entity->getCreatedTime());
-{% endif %}
-{% if changed_base_field %}
- $row['changed'] = $this->dateFormatter->format($entity->getChangedTime());
-{% endif %}
- return $row + parent::buildRow($entity);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getDefaultOperations(EntityInterface $entity) {
- $operations = parent::getDefaultOperations($entity);
- $destination = $this->redirectDestination->getAsArray();
- foreach ($operations as $key => $operation) {
- $operations[$key]['query'] = $destination;
- }
- return $operations;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/ExampleTypeListBuilder.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/ExampleTypeListBuilder.php.twig
deleted file mode 100644
index 03aeca5c1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/ExampleTypeListBuilder.php.twig
+++ /dev/null
@@ -1,51 +0,0 @@
-t('Label');
-
- return $header + parent::buildHeader();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildRow(EntityInterface $entity) {
- $row['title'] = [
- 'data' => $entity->label(),
- 'class' => ['menu-label'],
- ];
-
- return $row + parent::buildRow($entity);
- }
-
- /**
- * {@inheritdoc}
- */
- public function render() {
- $build = parent::render();
-
- $build['table']['#empty'] = $this->t(
- 'No {{ entity_type_label|lower }} types available. Add {{ entity_type_label|lower }} type.',
- [':link' => Url::fromRoute('entity.{{ entity_type_id }}_type.add_form')->toString()]
- );
-
- return $build;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/ExampleViewBuilder.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/ExampleViewBuilder.php.twig
deleted file mode 100644
index 389abfbd6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/ExampleViewBuilder.php.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-getEntity();
- $result = $entity->save();
- $link = $entity->toLink($this->t('View'))->toRenderable();
-
- $message_arguments = ['%label' => $this->entity->label()];
- $logger_arguments = $message_arguments + ['link' => render($link)];
-
- if ($result == SAVED_NEW) {
- drupal_set_message($this->t('New {{ entity_type_label|lower }} %label has been created.', $message_arguments));
- $this->logger('{{ machine_name }}')->notice('Created new {{ entity_type_label|lower }} %label', $logger_arguments);
- }
- else {
- drupal_set_message($this->t('The {{ entity_type_label|lower }} %label has been updated.', $message_arguments));
- $this->logger('{{ machine_name }}')->notice('Created new {{ entity_type_label|lower }} %label.', $logger_arguments);
- }
-
- $form_state->setRedirect('entity.{{ entity_type_id }}.canonical', ['{{ entity_type_id }}' => $entity->id()]);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Form/ExampleSettingsForm.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Form/ExampleSettingsForm.php.twig
deleted file mode 100644
index d9f4c3c84..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Form/ExampleSettingsForm.php.twig
+++ /dev/null
@@ -1,48 +0,0 @@
- $this->t('Settings form for {{ entity_type_label|article|lower }} entity type.'),
- ];
-
- $form['actions'] = [
- '#type' => 'actions',
- ];
-
- $form['actions']['submit'] = [
- '#type' => 'submit',
- '#value' => $this->t('Save'),
- ];
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- drupal_set_message($this->t('The configuration has been updated.'));
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Form/ExampleTypeForm.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Form/ExampleTypeForm.php.twig
deleted file mode 100644
index ae3a94231..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/src/Form/ExampleTypeForm.php.twig
+++ /dev/null
@@ -1,117 +0,0 @@
-entityManager = $entity_manager;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container) {
- return new static(
- $container->get('entity.manager')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function form(array $form, FormStateInterface $form_state) {
- $form = parent::form($form, $form_state);
-
- $entity_type = $this->entity;
- if ($this->operation == 'add') {
- $form['#title'] = $this->t('Add {{ entity_type_label|lower }} type');
- }
- else {
- $form['#title'] = $this->t(
- 'Edit %label {{ entity_type_label|lower }} type',
- ['%label' => $entity_type->label()]
- );
- }
-
- $form['label'] = [
- '#title' => $this->t('Label'),
- '#type' => 'textfield',
- '#default_value' => $entity_type->label(),
- '#description' => $this->t('The human-readable name of this {{ entity_type_label|lower }} type.'),
- '#required' => TRUE,
- '#size' => 30,
- ];
-
- $form['id'] = [
- '#type' => 'machine_name',
- '#default_value' => $entity_type->id(),
- '#maxlength' => EntityTypeInterface::BUNDLE_MAX_LENGTH,
- '#machine_name' => [
- 'exists' => ['Drupal\{{ machine_name }}\Entity\{{ class_prefix }}Type', 'load'],
- 'source' => ['label'],
- ],
- '#description' => $this->t('A unique machine-readable name for this {{ entity_type_label|lower }} type. It must only contain lowercase letters, numbers, and underscores.'),
- ];
-
- return $this->protectBundleIdElement($form);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function actions(array $form, FormStateInterface $form_state) {
- $actions = parent::actions($form, $form_state);
- $actions['submit']['#value'] = $this->t('Save {{ entity_type_label|lower }} type');
- $actions['delete']['#value'] = $this->t('Delete {{ entity_type_label|lower }} type');
- return $actions;
- }
-
- /**
- * {@inheritdoc}
- */
- public function save(array $form, FormStateInterface $form_state) {
- $entity_type = $this->entity;
-
- $entity_type->set('id', trim($entity_type->id()));
- $entity_type->set('label', trim($entity_type->label()));
-
- $status = $entity_type->save();
-
- $t_args = ['%name' => $entity_type->label()];
-
- if ($status == SAVED_UPDATED) {
- $message = 'The {{ entity_type_label|lower }} type %name has been updated.';
- }
- elseif ($status == SAVED_NEW) {
- $message = 'The {{ entity_type_label|lower }} type %name has been added.';
- }
- drupal_set_message($this->t($message, $t_args));
-
- $this->entityManager->clearCachedFieldDefinitions();
- $form_state->setRedirectUrl($entity_type->urlInfo('collection'));
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/templates/model-example.html.twig.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/templates/model-example.html.twig.twig
deleted file mode 100644
index e88cf237e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/module/content-entity/templates/model-example.html.twig.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-{{ '{#' }}
-/**
- * @file
- * Default theme implementation to present {{ entity_type_label|article|lower }} entity.
- *
- * This template is used when viewing a registered {{ entity_type_label|lower }}'s page,
- * e.g., {{ entity_base_path }})/123. 123 being the {{ entity_type_label|lower }}'s ID.
- *
- * Available variables:
- * - content: A list of content items. Use 'content' to print all content, or
- * print a subset such as 'content.title'.
- * - attributes: HTML attributes for the container element.
- *
- * @see template_preprocess_{{ entity_type_id }}()
- */
-{{ '#}' }}{% verbatim %}
-
- {% if content %}
- {{- content -}}
- {% endif %}
- {% endverbatim %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/model.services.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/model.services.yml.twig
deleted file mode 100644
index 65d61f802..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/model.services.yml.twig
+++ /dev/null
@@ -1,4 +0,0 @@
-services:
- plugin.manager.{{ plugin_type }}:
- class: Drupal\{{ machine_name }}\{{ class_prefix }}PluginManager
- parent: default_plugin_manager
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Annotation/Example.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Annotation/Example.php.twig
deleted file mode 100644
index 6dd2134c1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Annotation/Example.php.twig
+++ /dev/null
@@ -1,39 +0,0 @@
-pluginDefinition['label'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/ExamplePluginManager.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/ExamplePluginManager.php.twig
deleted file mode 100644
index e498a3eef..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/ExamplePluginManager.php.twig
+++ /dev/null
@@ -1,37 +0,0 @@
-alterInfo('{{ plugin_type }}_info');
- $this->setCacheBackend($cache_backend, '{{ plugin_type }}_plugins');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Plugin/Example/Foo.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Plugin/Example/Foo.php.twig
deleted file mode 100644
index b1e31e1ed..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/annotation/src/Plugin/Example/Foo.php.twig
+++ /dev/null
@@ -1,18 +0,0 @@
- [
- 'id' => 'foo',
- 'label' => t('Foo'),
- 'description' => t('Foo description.'),
- ],
- 'bar' => [
- 'id' => 'bar',
- 'label' => t('Bar'),
- 'description' => t('Bar description.'),
- ],
- ];
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.services.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.services.yml.twig
deleted file mode 100644
index 87c0e7391..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.services.yml.twig
+++ /dev/null
@@ -1,4 +0,0 @@
-services:
- plugin.manager.{{ plugin_type }}:
- class: Drupal\{{ machine_name }}\{{ class_prefix }}PluginManager
- arguments: ['@module_handler', '@cache.discovery']
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/src/ExampleDefault.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/src/ExampleDefault.php.twig
deleted file mode 100644
index 508e5cd50..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/src/ExampleDefault.php.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-pluginDefinition['label'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/src/ExampleInterface.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/src/ExampleInterface.php.twig
deleted file mode 100644
index c15879d0c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/src/ExampleInterface.php.twig
+++ /dev/null
@@ -1,18 +0,0 @@
- '',
- // The {{ plugin_type }} label.
- 'label' => '',
- // The {{ plugin_type }} description.
- 'description' => '',
- // Default plugin class.
- 'class' => 'Drupal\{{ machine_name }}\{{ class_prefix }}Default',
- ];
-
- /**
- * Constructs {{ class_prefix }}PluginManager object.
- *
- * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
- * The module handler to invoke the alter hook with.
- * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
- * Cache backend instance to use.
- */
- public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
- $this->factory = new ContainerFactory($this);
- $this->moduleHandler = $module_handler;
- $this->alterInfo('{{ plugin_type }}_info');
- $this->setCacheBackend($cache_backend, '{{ plugin_type }}_plugins');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getDiscovery() {
- if (!isset($this->discovery)) {
- $this->discovery = new HookDiscovery($this->moduleHandler, '{{ plugin_type }}_info');
- }
- return $this->discovery;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/model.examples.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/model.examples.yml.twig
deleted file mode 100644
index a06f3d036..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/model.examples.yml.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-foo_1:
- label: 'Foo 1'
- description: 'Plugin description.'
-foo_2:
- label: 'Foo 2'
- description: 'Plugin description.'
-foo_3:
- label: 'Foo 3'
- description: 'Plugin description.'
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/model.services.yml.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/model.services.yml.twig
deleted file mode 100644
index 87c0e7391..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/model.services.yml.twig
+++ /dev/null
@@ -1,4 +0,0 @@
-services:
- plugin.manager.{{ plugin_type }}:
- class: Drupal\{{ machine_name }}\{{ class_prefix }}PluginManager
- arguments: ['@module_handler', '@cache.discovery']
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/src/ExampleDefault.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/src/ExampleDefault.php.twig
deleted file mode 100644
index 519752642..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/src/ExampleDefault.php.twig
+++ /dev/null
@@ -1,20 +0,0 @@
-pluginDefinition['label'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/src/ExampleInterface.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/src/ExampleInterface.php.twig
deleted file mode 100644
index c15879d0c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/yaml/src/ExampleInterface.php.twig
+++ /dev/null
@@ -1,18 +0,0 @@
- '',
- // The {{ plugin_type }} label.
- 'label' => '',
- // The {{ plugin_type }} description.
- 'description' => '',
- // Default plugin class.
- 'class' => 'Drupal\{{ machine_name }}\{{ class_prefix }}Default',
- ];
-
- /**
- * Constructs {{ class_prefix }}PluginManager object.
- *
- * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
- * The module handler to invoke the alter hook with.
- * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
- * Cache backend instance to use.
- */
- public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
- $this->factory = new ContainerFactory($this);
- $this->moduleHandler = $module_handler;
- $this->alterInfo('{{ plugin_type }}_info');
- $this->setCacheBackend($cache_backend, '{{ plugin_type }}_plugins');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getDiscovery() {
- if (!isset($this->discovery)) {
- $this->discovery = new YamlDiscovery('{{ plugin_type|plural }}', $this->moduleHandler->getModuleDirectories());
- $this->discovery->addTranslatableProperty('label', 'label_context');
- $this->discovery->addTranslatableProperty('description', 'description_context');
- }
- return $this->discovery;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/ckeditor.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/ckeditor.twig
deleted file mode 100644
index b12884a89..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/ckeditor.twig
+++ /dev/null
@@ -1,46 +0,0 @@
- [
- 'label' => $this->t('{{ plugin_label }}'),
- 'image' => $module_path . '/js/plugins/{{ short_plugin_id }}/icons/{{ short_plugin_id }}.png',
- ],
- ];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/dialog.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/dialog.twig
deleted file mode 100644
index dfdbdc352..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/dialog.twig
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * @file
- * Defines dialog for {{ plugin_label }} CKEditor plugin.
- */
-(function (Drupal) {
-
- 'use strict';
-
- // Dialog definition.
- CKEDITOR.dialog.add('{{ command_name }}Dialog', function(editor) {
-
- return {
-
- // Basic properties of the dialog window: title, minimum size.
- title: Drupal.t('Abbreviation properties'),
- minWidth: 400,
- minHeight: 150,
-
- // Dialog window content definition.
- contents: [
- {
- // Definition of the settings dialog tab.
- id: 'tab-settings',
- label: 'Settings',
-
- // The tab content.
- elements: [
- {
- // Text input field for the abbreviation text.
- type: 'text',
- id: 'abbr',
- label: Drupal.t('Abbreviation'),
-
- // Validation checking whether the field is not empty.
- validate: CKEDITOR.dialog.validate.notEmpty(Drupal.t('Abbreviation field cannot be empty.'))
- },
- {
- // Text input field for the abbreviation title (explanation).
- type: 'text',
- id: 'title',
- label: Drupal.t('Explanation'),
- validate: CKEDITOR.dialog.validate.notEmpty(Drupal.t('Explanation field cannot be empty.'))
- }
- ]
- }
- ],
-
- // This method is invoked once a user clicks the OK button, confirming the
- // dialog.
- onOk: function() {
-
- // The context of this function is the dialog object itself.
- // See http://docs.ckeditor.com/#!/api/CKEDITOR.dialog.
- var dialog = this;
-
- // Create a new element.
- var abbr = editor.document.createElement('abbr');
-
- // Set element attribute and text by getting the defined field values.
- abbr.setAttribute('title', dialog.getValueOf('tab-settings', 'title'));
- abbr.setText( dialog.getValueOf('tab-settings', 'abbr'));
-
- // Finally, insert the element into the editor at the caret position.
- editor.insertElement(abbr);
- }
- };
-
- });
-
-} (Drupal));
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/icon.png b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/icon.png
deleted file mode 100644
index 5148ccf86..000000000
Binary files a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/icon.png and /dev/null differ
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/plugin.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/plugin.twig
deleted file mode 100644
index 663f104f7..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/_ckeditor/plugin.twig
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * @file
- * {{ plugin_label }} CKEditor plugin.
- *
- * Basic plugin inserting abbreviation elements into the CKEditor editing area.
- *
- * @DCG The code is based on an example from CKEditor Plugin SDK tutorial.
- *
- * @see http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
- */
-(function (Drupal) {
-
- 'use strict';
-
- CKEDITOR.plugins.add('{{ plugin_id }}', {
-
- // Register the icons.
- icons: '{{ short_plugin_id }}',
-
- // The plugin initialization logic goes inside this method.
- init: function(editor) {
-
- // Define an editor command that opens our dialog window.
- editor.addCommand('{{ command_name }}', new CKEDITOR.dialogCommand('{{ command_name }}Dialog'));
-
- // Create a toolbar button that executes the above command.
- editor.ui.addButton('{{ short_plugin_id }}', {
-
- // The text part of the button (if available) and the tooltip.
- label: Drupal.t('Insert abbreviation'),
-
- // The command to execute on click.
- command: '{{ command_name }}',
-
- // The button placement in the toolbar (toolbar group name).
- toolbar: 'insert'
- });
-
- // Register our dialog file, this.path is the plugin folder path.
- CKEDITOR.dialog.add('{{ command_name }}Dialog', this.path + 'dialogs/{{ short_plugin_id }}.js');
- }
- });
-
-} (Drupal));
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/action-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/action-schema.twig
deleted file mode 100644
index 94b93fa1d..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/action-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-action.configuration.{{ plugin_id }}:
- type: mapping
- label: '{{ plugin_label }} configuration'
- mapping:
- title:
- type: string
- label: Title
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/action.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/action.twig
deleted file mode 100644
index ec7ac843f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/action.twig
+++ /dev/null
@@ -1,80 +0,0 @@
- ''];
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
- $form['title'] = [
- '#title' => t('New title'),
- '#type' => 'textfield',
- '#required' => TRUE,
- '#default_value' => $this->configuration['title'],
- ];
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
- $this->configuration['title'] = $form_state->getValue('title');
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function access($node, AccountInterface $account = NULL, $return_as_object = FALSE) {
- /** @var \Drupal\node\NodeInterface $node */
- $access = $node->access('update', $account, TRUE)
- ->andIf($node->title->access('edit', $account, TRUE));
- return $return_as_object ? $access : $access->isAllowed();
- }
-
- /**
- * {@inheritdoc}
- */
- public function execute($node = NULL) {
- /** @var \Drupal\node\NodeInterface $node */
-{% if configurable %}
- $node->setTitle($this->configuration['title'])->save();
-{% else %}
- $node->setTitle(t('New title'))->save();
-{% endif %}
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/block-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/block-schema.twig
deleted file mode 100644
index 866de58b4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/block-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-block.settings.{{ plugin_id }}:
- type: block_settings
- label: '{{ plugin_label }} block'
- mapping:
- foo:
- type: string
- label: Foo
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/block.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/block.twig
deleted file mode 100644
index ab96052a9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/block.twig
+++ /dev/null
@@ -1,119 +0,0 @@
-{% import 'lib/di.twig' as di %}
- $this->t('Hello world!'),
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function blockForm($form, FormStateInterface $form_state) {
- $form['foo'] = [
- '#type' => 'textarea',
- '#title' => $this->t('Foo'),
- '#default_value' => $this->configuration['foo'],
- ];
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function blockSubmit($form, FormStateInterface $form_state) {
- $this->configuration['foo'] = $form_state->getValue('foo');
- }
-
-{% endif %}
-{% if access %}
- /**
- * {@inheritdoc}
- */
- protected function blockAccess(AccountInterface $account) {
- // @DCG Evaluate the access condition here.
- $condition = TRUE;
- return AccessResult::allowedIf($condition);
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function build() {
- $build['content'] = [
- '#markup' => $this->t('It works!'),
- ];
- return $build;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/condition-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/condition-schema.twig
deleted file mode 100644
index fa08f5be8..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/condition-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-condition.plugin.{{ plugin_id }}:
- type: condition.plugin
- label: '{{ plugin_label }} condition'
- mapping:
- age:
- type: integer
- label: Age
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/condition.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/condition.twig
deleted file mode 100644
index cc1b29f3e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/condition.twig
+++ /dev/null
@@ -1,129 +0,0 @@
-dateFormatter = $date_formatter;
- $this->time = $time;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
- $container->get('date.formatter'),
- $container->get('datetime.time')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function defaultConfiguration() {
- return ['age' => NULL] + parent::defaultConfiguration();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
-
- $form['age'] = [
- '#title' => $this->t('Node age, sec'),
- '#type' => 'number',
- '#min' => 0,
- '#default_value' => $this->configuration['age'],
- ];
-
- return parent::buildConfigurationForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
- $this->configuration['age'] = $form_state->getValue('age');
- parent::submitConfigurationForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function summary() {
- return $this->t(
- 'Node age: @age',
- ['@age' => $this->dateFormatter->formatInterval($this->configuration['age'])]
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function evaluate() {
- if (!$this->configuration['age'] && !$this->isNegated()) {
- return TRUE;
- }
- $age = $this->time->getRequestTime() - $this->getContextValue('node')->getCreatedTime();
- return $age < $this->configuration['age'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/constraint-validator.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/constraint-validator.twig
deleted file mode 100644
index 5537908e9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/constraint-validator.twig
+++ /dev/null
@@ -1,62 +0,0 @@
-label() == 'foo') {
- $this->context->buildViolation($constraint->errorMessage)
- // @DCG The path depends on entity type. It can be title, name, etc.
- ->atPath('title')
- ->addViolation();
- }
-
- }
-{% elseif input_type == 'item_list' %}
- public function validate($items, Constraint $constraint) {
-
- foreach ($items as $delta => $item) {
- // @DCG Validate the item here.
- if ($item->value == 'foo') {
- $this->context->buildViolation($constraint->errorMessage)
- ->atPath($delta)
- ->addViolation();
- }
- }
-
- }
-{% elseif input_type == 'item' %}
- public function validate($item, Constraint $constraint) {
-
- $value = $item->getValue()['value'];
- // @DCG Validate the value here.
- if ($value == 'foo') {
- $this->context->addViolation($constraint->errorMessage);
- }
-
- }
-{% else %}
- public function validate($value, Constraint $constraint) {
-
- // @DCG Validate the value here.
- if ($value == 'foo') {
- $this->context->addViolation($constraint->errorMessage);
- }
-
- }
-{% endif %}
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/constraint.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/constraint.twig
deleted file mode 100644
index 97dd76b27..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/constraint.twig
+++ /dev/null
@@ -1,35 +0,0 @@
- 'bar',
- ];
-
- return $default_configuration + parent::defaultConfiguration();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
- $form = parent::buildConfigurationForm($form, $form_state);
-
- $form['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $this->configuration['foo'],
- ];
-
- return $form;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
- $query = parent::buildEntityQuery($match, $match_operator);
-
- // @DCG
- // Here you can apply addition conditions, sorting, etc to the query.
- // Also see self::entityQueryAlter().
- $query->condition('field_example', 123);
-
- return $query;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/formatter-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/formatter-schema.twig
deleted file mode 100644
index 24087a352..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/formatter-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-field.formatter.settings.{{ plugin_id }}:
- type: mapping
- label: {{ plugin_label }} formatter settings
- mapping:
- foo:
- type: string
- label: Foo
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/formatter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/formatter.twig
deleted file mode 100644
index f052902c5..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/formatter.twig
+++ /dev/null
@@ -1,73 +0,0 @@
- 'bar',
- ] + parent::defaultSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
-
- $elements['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $this->getSetting('foo'),
- ];
-
- return $elements;
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $summary[] = $this->t('Foo: @foo', ['@foo' => $this->getSetting('foo')]);
- return $summary;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function viewElements(FieldItemListInterface $items, $langcode) {
- $element = [];
-
- foreach ($items as $delta => $item) {
- $element[$delta] = [
- '#type' => 'item',
- '#markup' => $item->value,
- ];
- }
-
- return $element;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/type-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/type-schema.twig
deleted file mode 100644
index 55d106520..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/type-schema.twig
+++ /dev/null
@@ -1,27 +0,0 @@
-{% if configurable_storage %}
-field.storage_settings.{{ plugin_id }}:
- type: mapping
- label: {{ plugin_label }} storage settings
- mapping:
- foo:
- type: string
- label: Foo
-
-{% endif %}
-{% if configurable_instance %}
-field.field_settings.{{ plugin_id }}:
- type: mapping
- label: {{ plugin_label }} field settings
- mapping:
- bar:
- type: string
- label: Bar
-
-{% endif %}
-field.value.{{ plugin_id }}:
- type: mapping
- label: Default value
- mapping:
- value:
- type: label
- label: Value
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/type.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/type.twig
deleted file mode 100644
index ae320118e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/type.twig
+++ /dev/null
@@ -1,154 +0,0 @@
- 'wine'];
- return $settings + parent::defaultStorageSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function storageSettingsForm(array &$form, FormStateInterface $form_state, $has_data) {
-
- $element['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $this->getSetting('foo'),
- '#disabled' => $has_data,
- ];
-
- return $element;
- }
-
-{% endif %}
-{% if configurable_instance %}
- /**
- * {@inheritdoc}
- */
- public static function defaultFieldSettings() {
- $settings = ['bar' => 'beer'];
- return $settings + parent::defaultFieldSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
-
- $element['bar'] = [
- '#type' => 'textfield',
- '#title' => t('Bar'),
- '#default_value' => $this->getSetting('bar'),
- ];
-
- return $element;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function isEmpty() {
- $value = $this->get('value')->getValue();
- return $value === NULL || $value === '';
- }
-
- /**
- * {@inheritdoc}
- */
- public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
-
- // @DCG
- // See /core/lib/Drupal/Core/TypedData/Plugin/DataType directory for
- // available data types.
- $properties['value'] = DataDefinition::create('string')
- ->setLabel(t('Text value'))
- ->setRequired(TRUE);
-
- return $properties;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConstraints() {
- $constraints = parent::getConstraints();
-
- $constraint_manager = \Drupal::typedDataManager()->getValidationConstraintManager();
-
- // @DCG Suppose our value must not be longer than 10 characters.
- $options['value']['Length']['max'] = 10;
-
- // @DCG
- // See /core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint
- // directory for available constraints.
- $constraints[] = $constraint_manager->create('ComplexData', $options);
- return $constraints;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function schema(FieldStorageDefinitionInterface $field_definition) {
-
- $columns = [
- 'value' => [
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'description' => 'Column description.',
- 'length' => 255,
- ],
- ];
-
- $schema = [
- 'columns' => $columns,
- // @DCG Add indexes here if necessary.
- ];
-
- return $schema;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
- $random = new Random();
- $values['value'] = $random->word(mt_rand(1, 50));
- return $values;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/widget-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/widget-schema.twig
deleted file mode 100644
index 2c98edbdc..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/widget-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-field.widget.settings.{{ plugin_id }}:
- type: mapping
- label: {{ plugin_label }} widget settings
- mapping:
- foo:
- type: string
- label: Foo
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/widget.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/widget.twig
deleted file mode 100644
index 5089c302f..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/field/widget.twig
+++ /dev/null
@@ -1,66 +0,0 @@
- 'bar',
- ] + parent::defaultSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
-
- $element['foo'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Foo'),
- '#default_value' => $this->getSetting('foo'),
- ];
-
- return $element;
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $summary[] = $this->t('Foo: @foo', ['@foo' => $this->getSetting('foo')]);
- return $summary;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
-
- $element['value'] = $element + [
- '#type' => 'textfield',
- '#default_value' => isset($items[$delta]->value) ? $items[$delta]->value : NULL,
- ];
-
- return $element;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/filter-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/filter-schema.twig
deleted file mode 100644
index 83dec2bac..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/filter-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-filter_settings.{{ plugin_id }}:
- type: filter
- label: '{{ plugin_label }} filter'
- mapping:
- example:
- type: string
- label: Example
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/filter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/filter.twig
deleted file mode 100644
index d080e2bc6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/filter.twig
+++ /dev/null
@@ -1,54 +0,0 @@
- 'textfield',
- '#title' => $this->t('Example'),
- '#default_value' => $this->settings['example'],
- '#description' => $this->t('Description of the setting.'),
- ];
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function process($text, $langcode) {
- // @DCG Process text here.
- $example = $this->settings['example'];
- $text = str_replace($example, "$example", $text);
- return new FilterProcessResult($text);
- }
-
- /**
- * {@inheritdoc}
- */
- public function tips($long = FALSE) {
- return $this->t('Some filter tips here.');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/menu-link.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/menu-link.twig
deleted file mode 100644
index 560e99fa4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/menu-link.twig
+++ /dev/null
@@ -1,77 +0,0 @@
-dbConnection = $db_connection;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
- $container->get('menu_link.static.overrides'),
- $container->get('database')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function getTitle() {
- $count = $this->dbConnection->query('SELECT COUNT(*) FROM {messages}')->fetchField();
- return $this->t('Messages (@count)', ['@count' => $count]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getRouteName() {
- return '{{ machine_name }}.messages';
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCacheTags() {
- // @DCG Invalidate this tags when messages are created or removed.
- return ['{{ machine_name }}.messages_count'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/migrate/process.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/migrate/process.twig
deleted file mode 100644
index 4b0104353..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/migrate/process.twig
+++ /dev/null
@@ -1,79 +0,0 @@
-transliteration = $transliteration;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
- $container->get('transliteration')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
- return $this->transliteration->transliterate($value, LanguageInterface::LANGCODE_DEFAULT);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/rest-resource.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/rest-resource.twig
deleted file mode 100644
index ed23b4270..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/rest-resource.twig
+++ /dev/null
@@ -1,306 +0,0 @@
-dbConnection = $db_connection;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
- $container->getParameter('serializer.formats'),
- $container->get('logger.factory')->get('rest'),
- $container->get('database')
- );
- }
-
- /**
- * Responds to GET requests.
- *
- * @param int $id
- * The ID of the record.
- *
- * @return \Drupal\rest\ResourceResponse
- * The response containing the record.
- *
- * @throws \Symfony\Component\HttpKernel\Exception\HttpException
- */
- public function get($id) {
- return new ResourceResponse($this->loadRecord($id));
- }
-
- /**
- * Responds to POST requests and saves the new record.
- *
- * @param mixed $record
- * Data to write into the database.
- *
- * @return \Drupal\rest\ModifiedResourceResponse
- * The HTTP response object.
- */
- public function post($record) {
-
- $this->validate($record);
-
- $id = $this->dbConnection->insert('{{ plugin_id }}')
- ->fields($record)
- ->execute();
-
- $this->logger->notice('New {{ plugin_label|lower }} record has been created.');
-
- $created_record = $this->loadRecord($id);
-
- // Return the newly created record in the response body.
- return new ModifiedResourceResponse($created_record, 201);
- }
-
- /**
- * Responds to entity PATCH requests.
- *
- * @param int $id
- * The ID of the record.
- * @param mixed $record
- * Data to write into the database.
- *
- * @return \Drupal\rest\ModifiedResourceResponse
- * The HTTP response object.
- */
- public function patch($id, $record) {
- $this->validate($record);
- return $this->updateRecord($id, $record);
- }
-
- /**
- * Responds to entity PUT requests.
- *
- * @param int $id
- * The ID of the record.
- * @param mixed $record
- * Data to write into the database.
- *
- * @return \Drupal\rest\ModifiedResourceResponse
- * The HTTP response object.
- */
- public function put($id, $record) {
-
- $this->validate($record);
-
- // Provide default values to make sure the record is completely replaced.
- $record += [
- 'title' => '',
- 'description' => '',
- 'price' => 0,
- ];
-
- return $this->updateRecord($id, $record);
- }
-
- /**
- * Responds to entity DELETE requests.
- *
- * @param int $id
- * The ID of the record.
- *
- * @return \Drupal\rest\ModifiedResourceResponse
- * The HTTP response object.
- *
- * @throws \Symfony\Component\HttpKernel\Exception\HttpException
- */
- public function delete($id) {
-
- // Make sure the record still exists.
- $this->loadRecord($id);
-
- $this->dbConnection->delete('{{ plugin_id }}')
- ->condition('id', $id)
- ->execute();
-
- $this->logger->notice('{{ plugin_label }} record @id has been deleted.', ['@id' => $id]);
-
- // Deleted responses have an empty body.
- return new ModifiedResourceResponse(NULL, 204);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getBaseRoute($canonical_path, $method) {
- $route = parent::getBaseRoute($canonical_path, $method);
-
- // Change ID validation pattern.
- if ($method != 'POST') {
- $route->setRequirement('id', '\d+');
- }
-
- return $route;
- }
-
- /**
- * {@inheritdoc}
- */
- public function calculateDependencies() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function routes() {
- $collection = parent::routes();
-
- // ResourceBase class does not support PUT method by some reason.
- $definition = $this->getPluginDefinition();
- $canonical_path = $definition['uri_paths']['canonical'];
- $route = $this->getBaseRoute($canonical_path, 'PUT');
- $route->addRequirements(['_content_type_format' => implode('|', $this->serializerFormats)]);
- $collection->add('{{ plugin_id }}.PUT', $route);
-
- return $collection;
- }
-
- /**
- * Validates incoming record.
- *
- * @param mixed $record
- * Data to validate.
- *
- * @throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
- */
- protected function validate($record) {
- if (!is_array($record) || count($record) == 0) {
- throw new BadRequestHttpException('No record content received.');
- }
-
- $allowed_fields = [
- 'title',
- 'description',
- 'price',
- ];
-
- if (count(array_diff(array_keys($record), $allowed_fields)) > 0) {
- throw new BadRequestHttpException('Record structure is not correct.');
- }
-
- if (empty($record['title'])) {
- throw new BadRequestHttpException('Title is required.');
- }
- elseif (isset($record['title']) && strlen($record['title']) > 255) {
- throw new BadRequestHttpException('Title is too big.');
- }
- // @DCG Add more validation rules here.
- }
-
- /**
- * Loads record from database.
- *
- * @param int $id
- * The ID of the record.
- *
- * @return array
- * The database record.
- *
- * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- */
- protected function loadRecord($id) {
- $record = $this->dbConnection->query('SELECT * FROM {{ '{' }}{{ plugin_id }}{{ '}' }} WHERE id = :id', [':id' => $id])->fetchAssoc();
- if (!$record) {
- throw new NotFoundHttpException('The record was not found.');
- }
- return $record;
- }
-
- /**
- * Updates record.
- *
- * @param int $id
- * The ID of the record.
- * @param array $record
- * The record to validate.
- *
- * @return \Drupal\rest\ModifiedResourceResponse
- * The HTTP response object.
- */
- protected function updateRecord($id, array $record) {
-
- // Make sure the record already exists.
- $this->loadRecord($id);
-
- $this->validate($record);
-
- $this->dbConnection->update('{{ plugin_id }}')
- ->fields($record)
- ->condition('id', $id)
- ->execute();
-
- $this->logger->notice('{{ plugin_label }} record @id has been updated.', ['@id' => $id]);
-
- // Return the updated record in the response body.
- $updated_record = $this->loadRecord($id);
- return new ModifiedResourceResponse($updated_record, 200);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/argument-default.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/argument-default.twig
deleted file mode 100644
index c1c7ae51e..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/argument-default.twig
+++ /dev/null
@@ -1,112 +0,0 @@
-routeMatch = $route_match;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
- $container->get('current_route_match')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function defineOptions() {
- $options = parent::defineOptions();
- $options['example_option'] = ['default' => ''];
- return $options;
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildOptionsForm(&$form, FormStateInterface $form_state) {
- $form['example_option'] = [
- '#type' => 'textfield',
- '#title' => t('Some example option'),
- '#default_value' => $this->options['example_option'],
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getArgument() {
-
- // @DCG
- // Here is the place where you should create a default argument for the
- // contextual filter. The source of this argument depends on your needs.
- // For example, you can extract the value from the URL or fetch it from
- // some fields of the current viewed entity.
- // For now let's use example option as an argument.
- $argument = $this->options['example_option'];
-
- return $argument;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCacheMaxAge() {
- return Cache::PERMANENT;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCacheContexts() {
- return ['url'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/field.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/field.twig
deleted file mode 100644
index e373cb4ec..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/field.twig
+++ /dev/null
@@ -1,52 +0,0 @@
- ''];
- $options['suffix'] = ['default' => ''];
- return $options;
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildOptionsForm(&$form, FormStateInterface $form_state) {
- parent::buildOptionsForm($form, $form_state);
-
- $form['prefix'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Prefix'),
- '#default_value' => $this->options['prefix'],
- ];
-
- $form['suffix'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Suffix'),
- '#default_value' => $this->options['suffix'],
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function render(ResultRow $values) {
- return $this->options['prefix'] . parent::render($values) . $this->options['suffix'];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-plugin.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-plugin.twig
deleted file mode 100644
index 860c6bdad..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-plugin.twig
+++ /dev/null
@@ -1,53 +0,0 @@
- 'item-list'];
- return $options;
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildOptionsForm(&$form, FormStateInterface $form_state) {
- parent::buildOptionsForm($form, $form_state);
- $form['wrapper_class'] = [
- '#title' => $this->t('Wrapper class'),
- '#description' => $this->t('The class to provide on the wrapper, outside rows.'),
- '#type' => 'textfield',
- '#default_value' => $this->options['wrapper_class'],
- ];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-preprocess.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-preprocess.twig
deleted file mode 100644
index 6578191ef..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-preprocess.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Prepares variables for views-style-{{ plugin_id|u2h }}.html.twig template.
- */
-function template_preprocess_views_style_{{ plugin_id }}(&$variables) {
- $handler = $variables['view']->style_plugin;
-
- // Fetch wrapper classes from handler options.
- if ($handler->options['wrapper_class']) {
- $wrapper_class = explode(' ', $handler->options['wrapper_class']);
- $variables['attributes']['class'] = array_map('\Drupal\Component\Utility\Html::cleanCssIdentifier', $wrapper_class);
- }
-
- template_preprocess_views_view_unformatted($variables);
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-schema.twig
deleted file mode 100644
index af3316dc1..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-schema.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-views.style.{{ plugin_id }}:
- type: views_style
- label: '{{ plugin_label }}'
- mapping:
- wrapper_class:
- type: string
- label: Wrapper class
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-template.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-template.twig
deleted file mode 100644
index 4860e08f2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/plugin/views/style-template.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{{ '{#' }}
-/**
- * @file
- * Default theme implementation for a view template to display a list of rows.
- *
- * Available variables:
- * - attributes: HTML attributes for the container.
- * - rows: A list of rows.
- * - attributes: The row's HTML attributes.
- * - content: The row's contents.
- * - title: The title of this group of rows. May be empty.
- *
- * @see template_preprocess_views_style_{{ plugin_id }}()
- */
-{{ '#}' }}{% verbatim %}
-
-
- {% for row in rows %}
- {{ row.content }}
- {% endfor %}
-
-{% endverbatim %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/render-element.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/render-element.twig
deleted file mode 100644
index 66c2856ce..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/render-element.twig
+++ /dev/null
@@ -1,70 +0,0 @@
- 'entity',
- * '#entity_type' => 'node',
- * '#entity_id' => 1,
- * '#view_mode' => 'teaser,
- * '#langcode' => 'en',
- * ];
- * @endcode
- *
- * @RenderElement("entity")
- */
-class Entity extends RenderElement {
-
- /**
- * {@inheritdoc}
- */
- public function getInfo() {
- return [
- '#pre_render' => [
- [get_class($this), 'preRenderEntityElement'],
- ],
- '#view_mode' => 'full',
- '#langcode' => NULL,
- ];
- }
-
- /**
- * Entity element pre render callback.
- *
- * @param array $element
- * An associative array containing the properties of the entity element.
- *
- * @return array
- * The modified element.
- */
- public static function preRenderEntityElement(array $element) {
-
- $entity_type_manager = \Drupal::entityTypeManager();
-
- $entity = $entity_type_manager
- ->getStorage($element['#entity_type'])
- ->load($element['#entity_id']);
-
- if ($entity && $entity->access('view')) {
- $element['entity'] = $entity_type_manager
- ->getViewBuilder($element['#entity_type'])
- ->view($entity, $element['#view_mode'], $element['#langcode']);
- }
-
- return $element;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service-provider.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service-provider.twig
deleted file mode 100644
index c55af934b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service-provider.twig
+++ /dev/null
@@ -1,35 +0,0 @@
-register('{{ machine_name }}.subscriber', 'Drupal\{{ machine_name }}\EventSubscriber\{{ machine_name|camelize }}Subscriber')
- ->addTag('event_subscriber')
- ->addArgument(new Reference('entity_type.manager'));
- }
-
- /**
- * {@inheritdoc}
- */
- public function alter(ContainerBuilder $container) {
- $modules = $container->getParameter('container.modules');
- if (isset($modules['dblog'])) {
- // Override default DB logger to exclude some unwanted log messages.
- $container->getDefinition('logger.dblog')
- ->setClass('Drupal\{{ machine_name }}\Logger\{{ machine_name|camelize }}Log');
- }
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/access-checker.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/access-checker.services.twig
deleted file mode 100644
index f5cce4194..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/access-checker.services.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-services:
- access_check.{{ machine_name }}.{{ applies_to|trim('_') }}:
- class: Drupal\{{ machine_name }}\Access\{{ class }}
- tags:
- - { name: access_check, applies_to: {{ applies_to }} }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/access-checker.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/access-checker.twig
deleted file mode 100644
index c585ed380..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/access-checker.twig
+++ /dev/null
@@ -1,33 +0,0 @@
-getSomeValue() == $route->getRequirement('{{ applies_to }}'));
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/breadcrumb-builder.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/breadcrumb-builder.services.twig
deleted file mode 100644
index 07b204199..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/breadcrumb-builder.services.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-services:
- {{ machine_name }}.breadcrumb:
- class: Drupal\{{ machine_name }}\{{ class }}
- tags:
- - { name: breadcrumb_builder, priority: 1000 }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/breadcrumb-builder.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/breadcrumb-builder.twig
deleted file mode 100644
index 91ed742ce..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/breadcrumb-builder.twig
+++ /dev/null
@@ -1,46 +0,0 @@
-getParameter('node');
- return $node instanceof NodeInterface && $node->getType() == 'article';
- }
-
- /**
- * {@inheritdoc}
- */
- public function build(RouteMatchInterface $route_match) {
- $breadcrumb = new Breadcrumb();
-
- $links[] = Link::createFromRoute($this->t('Home'), '');
-
- // Articles page is a view.
- $links[] = Link::createFromRoute($this->t('Articles'), 'view.articles.page_1');
-
- $node = $route_match->getParameter('node');
- $links[] = Link::createFromRoute($node->label(), '');
-
- $breadcrumb->setLinks($links);
-
- return $breadcrumb;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.services.twig
deleted file mode 100644
index 8e441f086..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.services.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-services:
- cache_context.{{ context_id }}:
- class: Drupal\{{ machine_name }}\Cache\Context\{{ class }}
-{% if base_class == 'RequestStackCacheContextBase' %}
- arguments: ['@request_stack']
-{% elseif base_class == 'UserCacheContextBase' %}
- arguments: ['@current_user']
-{% endif %}
- tags:
- - { name: cache.context}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.twig
deleted file mode 100644
index 394402af4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/cache-context.twig
+++ /dev/null
@@ -1,45 +0,0 @@
-messenger = $messenger;
- }
-
- /**
- * Kernel request event handler.
- *
- * @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event
- * Response event.
- */
- public function onKernelRequest(GetResponseEvent $event) {
- $this->messenger->addStatus(__FUNCTION__);
- }
-
- /**
- * Kernel response event handler.
- *
- * @param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event
- * Response event.
- */
- public function onKernelResponse(FilterResponseEvent $event) {
- $this->messenger->addStatus(__FUNCTION__);
- }
-
- /**
- * {@inheritdoc}
- */
- public static function getSubscribedEvents() {
- return [
- KernelEvents::REQUEST => ['onKernelRequest'],
- KernelEvents::RESPONSE => ['onKernelResponse'],
- ];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/logger.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/logger.services.twig
deleted file mode 100644
index 69c8ac064..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/logger.services.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- logger.{{ machine_name }}:
- class: Drupal\{{ machine_name }}\Logger\{{ class }}
- arguments: ['@config.factory', '@logger.log_message_parser', '@date.formatter']
- tags:
- - { name: logger }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/logger.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/logger.twig
deleted file mode 100644
index 0747d1161..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/logger.twig
+++ /dev/null
@@ -1,83 +0,0 @@
-config = $config_factory->get('system.file');
- $this->parser = $parser;
- $this->dateFormatter = $date_formatter;
- }
-
- /**
- * {@inheritdoc}
- */
- public function log($level, $message, array $context = []) {
-
- // Populate the message placeholders and then replace them in the message.
- $message_placeholders = $this->parser->parseMessagePlaceholders($message, $context);
- $message = empty($message_placeholders) ? $message : strtr($message, $message_placeholders);
-
- $entry = [
- 'message' => strip_tags($message),
- 'date' => $this->dateFormatter->format($context['timestamp']),
- 'type' => $context['channel'],
- 'ip' => $context['ip'],
- 'request_uri' => $context['request_uri'],
- 'referer' => $context['referer'],
- 'severity' => (string) RfcLogLevel::getLevels()[$level],
- 'uid' => $context['uid'],
- ];
-
- file_put_contents(
- $this->config->get('path.temporary') . '/drupal.log',
- print_r($entry, TRUE),
- FILE_APPEND
- );
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/middleware.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/middleware.services.twig
deleted file mode 100644
index e3e0d2969..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/middleware.services.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-services:
- {{ machine_name }}.middleware:
- class: Drupal\{{ machine_name }}\{{ class }}
- tags:
- - { name: http_middleware, priority: 1000 }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/middleware.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/middleware.twig
deleted file mode 100644
index 9aba55849..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/middleware.twig
+++ /dev/null
@@ -1,46 +0,0 @@
-httpKernel = $http_kernel;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
-
- if ($request->getClientIp() == '127.0.0.10') {
- return new Response($this->t('Bye!'), 403);
- }
-
- return $this->httpKernel->handle($request, $type, $catch);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/param-converter.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/param-converter.services.twig
deleted file mode 100644
index a7bfd1e57..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/param-converter.services.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- {{ machine_name }}.foo_param_converter:
- class: Drupal\{{ machine_name }}\{{ class }}
- arguments: ['@database']
- tags:
- - { name: paramconverter }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/param-converter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/param-converter.twig
deleted file mode 100644
index 771506d60..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/param-converter.twig
+++ /dev/null
@@ -1,65 +0,0 @@
-connection = $connection;
- }
-
- /**
- * {@inheritdoc}
- */
- public function convert($value, $definition, $name, array $defaults) {
- // Return NULL if record not found to trigger 404 HTTP error.
- return $this->connection->query('SELECT * FROM {table_name} WHERE id = ?', [$value])->fetch() ?: NULL;
- }
-
- /**
- * {@inheritdoc}
- */
- public function applies($definition, $name, Route $route) {
- return !empty($definition['type']) && $definition['type'] == '{{ parameter_type }}';
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/path-processor.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/path-processor.services.twig
deleted file mode 100644
index c27167474..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/path-processor.services.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- path_processor.{{ machine_name }}:
- class: Drupal\{{ machine_name }}\PathProcessor\{{ class }}
- tags:
- - { name: path_processor_inbound, priority: 1000 }
- - { name: path_processor_outbound, priority: 1000 }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/path-processor.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/path-processor.twig
deleted file mode 100644
index 8f370db59..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/path-processor.twig
+++ /dev/null
@@ -1,29 +0,0 @@
-get('no-cache'))) {
- return self::DENY;
- }
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/response-policy.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/response-policy.services.twig
deleted file mode 100644
index 51a94b720..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/response-policy.services.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-services:
- {{ machine_name }}.page_cache_response_policy.example:
- class: Drupal\{{ machine_name }}\PageCache\{{ class }}
- public: false
- tags:
- - { name: page_cache_response_policy }
- - { name: dynamic_page_cache_response_policy }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/response-policy.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/response-policy.twig
deleted file mode 100644
index 2dd7672db..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/response-policy.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-cookies->get('foo')) {
- return self::DENY;
- }
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/route-subscriber.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/route-subscriber.services.twig
deleted file mode 100644
index 9881ab2d2..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/route-subscriber.services.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-services:
- {{ machine_name }}.route_subscriber:
- class: Drupal\{{ machine_name }}\EventSubscriber\{{ class }}
- tags:
- - { name: event_subscriber }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/route-subscriber.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/route-subscriber.twig
deleted file mode 100644
index b1c1992fa..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/route-subscriber.twig
+++ /dev/null
@@ -1,39 +0,0 @@
-all() as $route) {
- // Hide taxonomy pages from unprivileged users.
- if (strpos($route->getPath(), '/taxonomy/term') === 0) {
- $route->setRequirement('_role', 'administrator');
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public static function getSubscribedEvents() {
- $events = parent::getSubscribedEvents();
-
- // Use a lower priority than \Drupal\views\EventSubscriber\RouteSubscriber
- // to ensure the requirement will be added to its routes.
- $events[RoutingEvents::ALTER] = ['onAlterRoutes', -300];
-
- return $events;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.services.twig
deleted file mode 100644
index 1e83b4a7c..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.services.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- theme.negotiator.{{ machine_name }}.example:
- class: Drupal\{{ machine_name }}\Theme\{{ class }}
- arguments: ['@request_stack']
- tags:
- - { name: theme_negotiator, priority: 1000 }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.twig
deleted file mode 100644
index 1c63e6b41..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/theme-negotiator.twig
+++ /dev/null
@@ -1,49 +0,0 @@
-requestStack = $request_stack;
- }
-
- /**
- * {@inheritdoc}
- */
- public function applies(RouteMatchInterface $route_match) {
- return $route_match->getRouteName() == '{{ machine_name }}.example';
- }
-
- /**
- * {@inheritdoc}
- */
- public function determineActiveTheme(RouteMatchInterface $route_match) {
- // Allow users to pass theme name through 'theme' query parameter.
- $theme = $this->requestStack->getCurrentRequest()->query->get('theme');
- if (is_string($theme)) {
- return $theme;
- }
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/twig-extension.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/twig-extension.services.twig
deleted file mode 100644
index 2b292ab80..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/twig-extension.services.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-services:
- {{ machine_name }}.twig_extension:
- class: Drupal\{{ machine_name }}\{{ class }}
-{% if di %}
- arguments: ['@example']
-{% endif %}
- tags:
- - { name: twig.extension }
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/twig-extension.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/twig-extension.twig
deleted file mode 100644
index 99f5acd90..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/twig-extension.twig
+++ /dev/null
@@ -1,66 +0,0 @@
-example = $example;
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function getFunctions() {
- return [
- new \Twig_SimpleFunction('foo', function ($argument = NULL) {
- return 'Foo: ' . $argument;
- }),
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFilters() {
- return [
- new \Twig_SimpleFilter('bar', function ($text) {
- return str_replace('bar', 'BAR', $text);
- }),
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getTests() {
- return [
- new \Twig_SimpleTest('color', function ($text) {
- return preg_match('/^#(?:[0-9a-f]{3}){1,2}$/i', $text);
- }),
- ];
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/uninstall-validator.services.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/uninstall-validator.services.twig
deleted file mode 100644
index a00c2f9ee..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/uninstall-validator.services.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- {{ machine_name }}.uninstall_validator:
- class: Drupal\{{ machine_name }}\{{ class }}
- tags:
- - { name: module_install.uninstall_validator }
- arguments: ['@plugin.manager.block', '@entity_type.manager', '@string_translation']
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/service/uninstall-validator.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/service/uninstall-validator.twig
deleted file mode 100644
index ebceaca16..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/service/uninstall-validator.twig
+++ /dev/null
@@ -1,70 +0,0 @@
-blockManager = $block_manager;
- $this->blockStorage = $entity_manager->getStorage('block');
- $this->stringTranslation = $string_translation;
- }
-
- /**
- * {@inheritdoc}
- */
- public function validate($module) {
- $reasons = [];
-
- foreach ($this->blockStorage->loadMultiple() as $block) {
- /** @var \Drupal\block\BlockInterface $block */
- $definition = $block->getPlugin()
- ->getPluginDefinition();
- if ($definition['provider'] == $module) {
- $message_arguments = [
- ':url' => $block->toUrl('edit-form')->toString(),
- '@block_id' => $block->id(),
- ];
- $reasons[] = $this->t('Provides a block plugin that is in use in the following block: @block_id', $message_arguments);
- }
- }
-
- return $reasons;
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/settings.local.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/settings.local.twig
deleted file mode 100644
index 4072128b4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/settings.local.twig
+++ /dev/null
@@ -1,131 +0,0 @@
- '{{ database }}',
- 'username' => '{{ username }}',
- 'password' => '{{ password }}',
- 'prefix' => '',
- 'host' => '{{ host }}',
- 'port' => '',
- 'namespace' => 'Drupal\\Core\\Database\\Driver\\{{ driver }}',
- 'driver' => '{{ driver }}',
-];
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/template-module.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/template-module.twig
deleted file mode 100644
index da322d1c0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/template-module.twig
+++ /dev/null
@@ -1,34 +0,0 @@
- [
- 'variables' => ['foo' => NULL],
- ],
- ];
-}
-{% endif %}
-{% if create_preprocess %}
-
-/**
- * Prepares variables for {{ template_name }} template.
- *
- * Default template: {{ template_name }}.html.twig.
- *
- * @param array $variables
- * An associative array containing:
- * - foo: Foo variable description.
- */
-function template_preprocess_{{ template_name|h2u }}(array &$variables) {
- $variables['foo'] = 'bar';
-}
-{% endif %}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/template-template.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/template-template.twig
deleted file mode 100644
index 890ad7604..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/template-template.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ '{#' }}
-/**
- * @file
- * Default theme implementation to display something.
- *
- * Available variables:
- * - foo: Foo variable description.
-{% if create_preprocess %}
- *
- * @see template_preprocess_{{ template_name|h2u }}()
-{% endif %}
- *
- * @ingroup themeable
- */
-{{ '#}' }}
-
- {{ '{{' }} foo {{ '}}' }}
-
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig
deleted file mode 100644
index 239e41da3..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/test/browser.twig
+++ /dev/null
@@ -1,37 +0,0 @@
-drupalCreateUser(['access administration pages']);
- $this->drupalLogin($admin_user);
- $this->drupalGet('admin');
- $this->assertSession()->elementExists('xpath', '//h1[text() = "Administration"]');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/kernel.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/kernel.twig
deleted file mode 100644
index 84af97e43..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/test/kernel.twig
+++ /dev/null
@@ -1,35 +0,0 @@
-container->get('transliteration')->transliterate('Друпал');
- $this->assertEquals('Drupal', $result);
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/nightwatch.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/nightwatch.twig
deleted file mode 100644
index d92fc529a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/test/nightwatch.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- '@tags': ['{{ machine_name }}'],
- before(browser) {
- browser.drupalInstall();
- },
- after(browser) {
- browser.drupalUninstall();
- },
- 'Front page': browser => {
- browser
- .drupalRelativeURL('/')
- .waitForElementVisible('body', 1000)
- .assert.containsText('h1', 'Log in')
- .drupalLogAndEnd({onlyOnError: false});
- },
-};
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/unit.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/unit.twig
deleted file mode 100644
index 5b142b642..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/test/unit.twig
+++ /dev/null
@@ -1,29 +0,0 @@
-assertTrue(TRUE, 'This is TRUE!');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/web.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/web.twig
deleted file mode 100644
index a568c87c4..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/test/web.twig
+++ /dev/null
@@ -1,50 +0,0 @@
-drupalCreateUser(['administer site configuration']);
- $this->drupalLogin($user);
- }
-
- /**
- * Test site information form.
- */
- public function testFieldStorageSettingsForm() {
- $edit = [
- 'site_name' => 'Drupal',
- 'site_slogan' => 'Community plumbing',
- 'site_mail' => 'admin@example.local',
- 'site_frontpage' => '/user',
- ];
- $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
- $this->assertText(t('The configuration options have been saved.'), 'Configuration options have been saved');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/webdriver.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/webdriver.twig
deleted file mode 100644
index 77e565b5b..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/test/webdriver.twig
+++ /dev/null
@@ -1,55 +0,0 @@
-getEditable('user.settings')
- ->set('verify_mail', FALSE)
- ->save();
-
- $this->drupalGet('user/register');
-
- $page = $this->getSession()->getPage();
-
- $password_field = $page->findField('Password');
- $password_strength = $page->find('css', '.js-password-strength__text');
-
- $this->assertEquals('', $password_strength->getText());
-
- $password_field->setValue('abc');
- $this->assertEquals('Weak', $password_strength->getText());
-
- $password_field->setValue('abcABC123!');
- $this->assertEquals('Fair', $password_strength->getText());
-
- $password_field->setValue('abcABC123!sss');
- $this->assertEquals('Strong', $password_strength->getText());
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-logo.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/theme-logo.twig
deleted file mode 100644
index aa0c4a4fb..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-logo.twig
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-package.json.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/theme-package.json.twig
deleted file mode 100644
index c7a0fc3b9..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-package.json.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "{{ machine_name }}",
- "private": true,
- "scripts": {
- "sass-watch": "node-sass -w --output-style expanded scss -o css",
- "sass-compile": "node-sass --output-style expanded scss -o css",
- "livereload": "livereload css",
- "start": "run-p sass-watch livereload"
- },
- "devDependencies": {
- "livereload": "^0.7.0",
- "node-sass": "^4.9.3",
- "npm-run-all": "^4.1.3"
- }
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-config.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-config.twig
deleted file mode 100644
index 9a68d6be0..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-config.twig
+++ /dev/null
@@ -1,2 +0,0 @@
-# Default settings of {{ name }} theme.
-font_size: 16
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-form.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-form.twig
deleted file mode 100644
index 161120800..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-form.twig
+++ /dev/null
@@ -1,27 +0,0 @@
- 'details',
- '#title' => t('{{ name }}'),
- '#open' => TRUE,
- ];
-
- $form['{{ machine_name }}']['font_size'] = [
- '#type' => 'number',
- '#title' => t('Font size'),
- '#min' => 12,
- '#max' => 18,
- '#default_value' => theme_get_setting('font_size'),
- ];
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-schema.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-schema.twig
deleted file mode 100644
index 3dc7cdcd6..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/theme-settings-schema.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-# Schema for the configuration files of the {{ name }} theme.
-{{ machine_name }}.settings:
- type: theme_settings
- label: '{{ name }} settings'
- mapping:
- font_size:
- type: integer
- label: Font size
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/theme.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/theme.twig
deleted file mode 100644
index b0214cc48..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/d8/theme.twig
+++ /dev/null
@@ -1,27 +0,0 @@
-{{ service.name|camelize(false) }} = ${{ service.name }};{{ loop.last ? '' : "\n" }}
- {%- endfor %}
-{% endmacro %}
-
-{% macro container(services) %}
- {% for service_id, service in services %}
- $container->get('{{ service_id }}'){{ loop.last ? '' : ",\n" }}
- {%- endfor %}
-{% endmacro %}
-
diff --git a/vendor/chi-teck/drupal-code-generator/templates/other/apache-virtual-host.twig b/vendor/chi-teck/drupal-code-generator/templates/other/apache-virtual-host.twig
deleted file mode 100644
index b9618d823..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/other/apache-virtual-host.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-
- ServerName {{ hostname }}
- ServerAlias www.{{ hostname }}
- ServerAlias m.{{ hostname }}
- DocumentRoot {{ docroot }}
-
-
- Options All
- AllowOverride All
- Order allow,deny
- Allow from all
-
-
-
diff --git a/vendor/chi-teck/drupal-code-generator/templates/other/dcg-command-template.twig b/vendor/chi-teck/drupal-code-generator/templates/other/dcg-command-template.twig
deleted file mode 100644
index 0c94e4b11..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/other/dcg-command-template.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-{% verbatim %}collectVars($input, $output, $questions);
-
- // @DCG The template should be located under directory specified in
- // $self::templatePath property.
- $this->addFile()
- ->path('src/{class}.php')
- ->template('{{ template_name }}');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/other/drupal-console-command.twig b/vendor/chi-teck/drupal-code-generator/templates/other/drupal-console-command.twig
deleted file mode 100644
index cb9a64020..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/other/drupal-console-command.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-setName('{{ command_name }}')
- ->setDescription('{{ description }}');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output) {
- $io = new DrupalStyle($input, $output);
-
- $io->info('It works!');
- }
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/other/drush-command.twig b/vendor/chi-teck/drupal-code-generator/templates/other/drush-command.twig
deleted file mode 100644
index 1bbc5ebfe..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/other/drush-command.twig
+++ /dev/null
@@ -1,55 +0,0 @@
- '{{ description }}',
- 'arguments' => [
- '{{ argument }}' => 'Argument description',
- ],
- 'required-arguments' => TRUE,
- 'options' => [
- '{{ option }}' => 'Option description',
- ],
- 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
- 'aliases' => ['{{ alias }}'],
- 'examples' => [
- 'drush {{ alias }} {{ argument }} --{{ option }}' => 'It does something with this argument',
- ],
- ];
-
- return $items;
-}
-
-/**
- * Callback function for {{ command_name }} command.
- */
-function drush_{{ command_callback_suffix|h2u }}($argument) {
-
- $option = drush_get_option('{{ option }}', 'default');
- drush_print(dt('Argument value is "@argument".', ['@argument' => $argument]));
- drush_print(dt('Option value is "@option".', ['@option' => $option]));
-
- drush_set_error(dt('Error text here.'));
- drush_log(dt('Log text here'));
-
-}
diff --git a/vendor/chi-teck/drupal-code-generator/templates/other/html.twig b/vendor/chi-teck/drupal-code-generator/templates/other/html.twig
deleted file mode 100644
index 10966a05a..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/other/html.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- Hello world!
-
-
-
-
-Hello world!
-
-
-
-
diff --git a/vendor/chi-teck/drupal-code-generator/templates/other/nginx-virtual-host.twig b/vendor/chi-teck/drupal-code-generator/templates/other/nginx-virtual-host.twig
deleted file mode 100644
index e40d39dde..000000000
--- a/vendor/chi-teck/drupal-code-generator/templates/other/nginx-virtual-host.twig
+++ /dev/null
@@ -1,105 +0,0 @@
-#
-# @DCG
-# The configuration is based on official Nginx recipe.
-# See https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/
-# Check out Perusio's config for more delicate configuration.
-# See https://github.com/perusio/drupal-with-nginx
-#
-server {
- server_name {{ server_name }};
- root {{ docroot }};
-
- client_max_body_size 16m;
-
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
-
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
-
- # Very rarely should these ever be accessed.
- location ~* \.(make|txt|log|engine|inc|info|install|module|profile|po|pot|sh|sql|test|theme)$ {
- return 404;
- }
-
- location ~ \..*/.*\.php$ {
- return 404;
- }
-
-{% if file_private_path %}
- location ~ ^/{{ file_private_path }}/ {
- return 403;
- }
-
-{% endif %}
- # Allow "Well-Known URIs" as per RFC 5785.
- location ~* ^/.well-known/ {
- allow all;
- }
-
- # Block access to "hidden" files and directories whose names begin with a
- # period. This includes directories used by version control systems such
- # as Subversion or Git to store control files.
- location ~ (^|/)\. {
- return 404;
- }
-
- location / {
- try_files $uri /index.php?$query_string;
- }
-
- location @rewrite {
- rewrite ^/(.*)$ /index.php?q=$1;
- }
-
- # Don't allow direct access to PHP files in the vendor directory.
- location ~ /vendor/.*\.php$ {
- deny all;
- return 404;
- }
-
- # In Drupal 8, we must also match new paths where the '.php' appears in
- # the middle, such as update.php/selection. The rule we use is strict,
- # and only allows this pattern with the update.php front controller.
- # This allows legacy path aliases in the form of
- # blog/index.php/legacy-path to continue to route to Drupal nodes. If
- # you do not have any paths like that, then you might prefer to use a
- # laxer rule, such as:
- # location ~ \.php(/|$) {
- # The laxer rule will continue to work if Drupal uses this new URL
- # pattern with front controllers other than update.php in a future
- # release.
- location ~ '\.php$|^/update.php' {
- fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
- # Security note: If you're running a version of PHP older than the
- # latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.
- # See http://serverfault.com/q/627903/94922 for details.
- include fastcgi_params;
- # Block httpoxy attacks. See https://httpoxy.org/.
- fastcgi_param HTTP_PROXY "";
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_intercept_errors on;
- fastcgi_pass {{ fastcgi_pass }};
- }
-
- # Fighting with Styles? This little gem is amazing.
- location ~ ^/{{ file_public_path }}/styles/ {
- try_files $uri @rewrite;
- }
-
- # Handle private files through Drupal.
- location ~ ^/system/files/ {
- try_files $uri /index.php?$query_string;
- }
-
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
-}
diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php
deleted file mode 100644
index 95f7e0978..000000000
--- a/vendor/composer/ClassLoader.php
+++ /dev/null
@@ -1,445 +0,0 @@
-
- * Jordi Boggiano
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer\Autoload;
-
-/**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- * $loader = new \Composer\Autoload\ClassLoader();
- *
- * // register classes with namespaces
- * $loader->add('Symfony\Component', __DIR__.'/component');
- * $loader->add('Symfony', __DIR__.'/framework');
- *
- * // activate the autoloader
- * $loader->register();
- *
- * // to enable searching the include path (eg. for PEAR packages)
- * $loader->setUseIncludePath(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier
- * @author Jordi Boggiano
- * @see http://www.php-fig.org/psr/psr-0/
- * @see http://www.php-fig.org/psr/psr-4/
- */
-class ClassLoader
-{
- // PSR-4
- private $prefixLengthsPsr4 = array();
- private $prefixDirsPsr4 = array();
- private $fallbackDirsPsr4 = array();
-
- // PSR-0
- private $prefixesPsr0 = array();
- private $fallbackDirsPsr0 = array();
-
- private $useIncludePath = false;
- private $classMap = array();
- private $classMapAuthoritative = false;
- private $missingClasses = array();
- private $apcuPrefix;
-
- public function getPrefixes()
- {
- if (!empty($this->prefixesPsr0)) {
- return call_user_func_array('array_merge', $this->prefixesPsr0);
- }
-
- return array();
- }
-
- public function getPrefixesPsr4()
- {
- return $this->prefixDirsPsr4;
- }
-
- public function getFallbackDirs()
- {
- return $this->fallbackDirsPsr0;
- }
-
- public function getFallbackDirsPsr4()
- {
- return $this->fallbackDirsPsr4;
- }
-
- public function getClassMap()
- {
- return $this->classMap;
- }
-
- /**
- * @param array $classMap Class to filename map
- */
- public function addClassMap(array $classMap)
- {
- if ($this->classMap) {
- $this->classMap = array_merge($this->classMap, $classMap);
- } else {
- $this->classMap = $classMap;
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix, either
- * appending or prepending to the ones previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param array|string $paths The PSR-0 root directories
- * @param bool $prepend Whether to prepend the directories
- */
- public function add($prefix, $paths, $prepend = false)
- {
- if (!$prefix) {
- if ($prepend) {
- $this->fallbackDirsPsr0 = array_merge(
- (array) $paths,
- $this->fallbackDirsPsr0
- );
- } else {
- $this->fallbackDirsPsr0 = array_merge(
- $this->fallbackDirsPsr0,
- (array) $paths
- );
- }
-
- return;
- }
-
- $first = $prefix[0];
- if (!isset($this->prefixesPsr0[$first][$prefix])) {
- $this->prefixesPsr0[$first][$prefix] = (array) $paths;
-
- return;
- }
- if ($prepend) {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- (array) $paths,
- $this->prefixesPsr0[$first][$prefix]
- );
- } else {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- $this->prefixesPsr0[$first][$prefix],
- (array) $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace, either
- * appending or prepending to the ones previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param array|string $paths The PSR-4 base directories
- * @param bool $prepend Whether to prepend the directories
- *
- * @throws \InvalidArgumentException
- */
- public function addPsr4($prefix, $paths, $prepend = false)
- {
- if (!$prefix) {
- // Register directories for the root namespace.
- if ($prepend) {
- $this->fallbackDirsPsr4 = array_merge(
- (array) $paths,
- $this->fallbackDirsPsr4
- );
- } else {
- $this->fallbackDirsPsr4 = array_merge(
- $this->fallbackDirsPsr4,
- (array) $paths
- );
- }
- } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
- // Register directories for a new namespace.
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- } elseif ($prepend) {
- // Prepend directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- (array) $paths,
- $this->prefixDirsPsr4[$prefix]
- );
- } else {
- // Append directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- $this->prefixDirsPsr4[$prefix],
- (array) $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix,
- * replacing any others previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param array|string $paths The PSR-0 base directories
- */
- public function set($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr0 = (array) $paths;
- } else {
- $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace,
- * replacing any others previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param array|string $paths The PSR-4 base directories
- *
- * @throws \InvalidArgumentException
- */
- public function setPsr4($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr4 = (array) $paths;
- } else {
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- }
- }
-
- /**
- * Turns on searching the include path for class files.
- *
- * @param bool $useIncludePath
- */
- public function setUseIncludePath($useIncludePath)
- {
- $this->useIncludePath = $useIncludePath;
- }
-
- /**
- * Can be used to check if the autoloader uses the include path to check
- * for classes.
- *
- * @return bool
- */
- public function getUseIncludePath()
- {
- return $this->useIncludePath;
- }
-
- /**
- * Turns off searching the prefix and fallback directories for classes
- * that have not been registered with the class map.
- *
- * @param bool $classMapAuthoritative
- */
- public function setClassMapAuthoritative($classMapAuthoritative)
- {
- $this->classMapAuthoritative = $classMapAuthoritative;
- }
-
- /**
- * Should class lookup fail if not found in the current class map?
- *
- * @return bool
- */
- public function isClassMapAuthoritative()
- {
- return $this->classMapAuthoritative;
- }
-
- /**
- * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
- *
- * @param string|null $apcuPrefix
- */
- public function setApcuPrefix($apcuPrefix)
- {
- $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
- }
-
- /**
- * The APCu prefix in use, or null if APCu caching is not enabled.
- *
- * @return string|null
- */
- public function getApcuPrefix()
- {
- return $this->apcuPrefix;
- }
-
- /**
- * Registers this instance as an autoloader.
- *
- * @param bool $prepend Whether to prepend the autoloader or not
- */
- public function register($prepend = false)
- {
- spl_autoload_register(array($this, 'loadClass'), true, $prepend);
- }
-
- /**
- * Unregisters this instance as an autoloader.
- */
- public function unregister()
- {
- spl_autoload_unregister(array($this, 'loadClass'));
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $class The name of the class
- * @return bool|null True if loaded, null otherwise
- */
- public function loadClass($class)
- {
- if ($file = $this->findFile($class)) {
- includeFile($file);
-
- return true;
- }
- }
-
- /**
- * Finds the path to the file where the class is defined.
- *
- * @param string $class The name of the class
- *
- * @return string|false The path if found, false otherwise
- */
- public function findFile($class)
- {
- // class map lookup
- if (isset($this->classMap[$class])) {
- return $this->classMap[$class];
- }
- if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
- return false;
- }
- if (null !== $this->apcuPrefix) {
- $file = apcu_fetch($this->apcuPrefix.$class, $hit);
- if ($hit) {
- return $file;
- }
- }
-
- $file = $this->findFileWithExtension($class, '.php');
-
- // Search for Hack files if we are running on HHVM
- if (false === $file && defined('HHVM_VERSION')) {
- $file = $this->findFileWithExtension($class, '.hh');
- }
-
- if (null !== $this->apcuPrefix) {
- apcu_add($this->apcuPrefix.$class, $file);
- }
-
- if (false === $file) {
- // Remember that this class does not exist.
- $this->missingClasses[$class] = true;
- }
-
- return $file;
- }
-
- private function findFileWithExtension($class, $ext)
- {
- // PSR-4 lookup
- $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
- $first = $class[0];
- if (isset($this->prefixLengthsPsr4[$first])) {
- $subPath = $class;
- while (false !== $lastPos = strrpos($subPath, '\\')) {
- $subPath = substr($subPath, 0, $lastPos);
- $search = $subPath . '\\';
- if (isset($this->prefixDirsPsr4[$search])) {
- $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
- foreach ($this->prefixDirsPsr4[$search] as $dir) {
- if (file_exists($file = $dir . $pathEnd)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-4 fallback dirs
- foreach ($this->fallbackDirsPsr4 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
- return $file;
- }
- }
-
- // PSR-0 lookup
- if (false !== $pos = strrpos($class, '\\')) {
- // namespaced class name
- $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
- . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
- } else {
- // PEAR-like class name
- $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
- }
-
- if (isset($this->prefixesPsr0[$first])) {
- foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
- if (0 === strpos($class, $prefix)) {
- foreach ($dirs as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-0 fallback dirs
- foreach ($this->fallbackDirsPsr0 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
-
- // PSR-0 include paths.
- if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
- return $file;
- }
-
- return false;
- }
-}
-
-/**
- * Scope isolated include.
- *
- * Prevents access to $this/self from included files.
- */
-function includeFile($file)
-{
- include $file;
-}
diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE
deleted file mode 100644
index f27399a04..000000000
--- a/vendor/composer/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-
-Copyright (c) Nils Adermann, Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php
deleted file mode 100644
index ea5342ea6..000000000
--- a/vendor/composer/autoload_classmap.php
+++ /dev/null
@@ -1,25 +0,0 @@
- $vendorDir . '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php',
- 'AssertionError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/AssertionError.php',
- 'DivisionByZeroError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php',
- 'Drupal' => $baseDir . '/web/core/lib/Drupal.php',
- 'DrupalFinder\\DrupalFinder' => $vendorDir . '/webflo/drupal-finder/src/DrupalFinder.php',
- 'DrupalProject\\composer\\ScriptHandler' => $baseDir . '/scripts/composer/ScriptHandler.php',
- 'Drupal\\Component\\Utility\\Timer' => $baseDir . '/web/core/lib/Drupal/Component/Utility/Timer.php',
- 'Drupal\\Component\\Utility\\Unicode' => $baseDir . '/web/core/lib/Drupal/Component/Utility/Unicode.php',
- 'Drupal\\Core\\Database\\Database' => $baseDir . '/web/core/lib/Drupal/Core/Database/Database.php',
- 'Drupal\\Core\\DrupalKernel' => $baseDir . '/web/core/lib/Drupal/Core/DrupalKernel.php',
- 'Drupal\\Core\\DrupalKernelInterface' => $baseDir . '/web/core/lib/Drupal/Core/DrupalKernelInterface.php',
- 'Drupal\\Core\\Site\\Settings' => $baseDir . '/web/core/lib/Drupal/Core/Site/Settings.php',
- 'Error' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/Error.php',
- 'ParseError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/ParseError.php',
- 'SessionUpdateTimestampHandlerInterface' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php',
- 'TypeError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/TypeError.php',
-);
diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php
deleted file mode 100644
index 55f3c4b15..000000000
--- a/vendor/composer/autoload_files.php
+++ /dev/null
@@ -1,32 +0,0 @@
- $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
- '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
- '5255c38a0faeba867671b61dfda6d864' => $vendorDir . '/paragonie/random_compat/lib/random.php',
- '023d27dca8066ef29e6739335ea73bad' => $vendorDir . '/symfony/polyfill-php70/bootstrap.php',
- '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php',
- '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
- '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
- 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
- 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
- '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
- 'def43f6c87e4f8dfd0c9e1b1bab14fe8' => $vendorDir . '/symfony/polyfill-iconv/bootstrap.php',
- 'cf97c57bfe0f23854afd2f3818abb7a0' => $vendorDir . '/zendframework/zend-diactoros/src/functions/create_uploaded_file.php',
- '9bf37a3d0dad93e29cb4e1b1bfab04e9' => $vendorDir . '/zendframework/zend-diactoros/src/functions/marshal_headers_from_sapi.php',
- 'ce70dccb4bcc2efc6e94d2ee526e6972' => $vendorDir . '/zendframework/zend-diactoros/src/functions/marshal_method_from_sapi.php',
- 'f86420df471f14d568bfcb71e271b523' => $vendorDir . '/zendframework/zend-diactoros/src/functions/marshal_protocol_version_from_sapi.php',
- 'b87481e008a3700344428ae089e7f9e5' => $vendorDir . '/zendframework/zend-diactoros/src/functions/marshal_uri_from_sapi.php',
- '0b0974a5566a1077e4f2e111341112c1' => $vendorDir . '/zendframework/zend-diactoros/src/functions/normalize_server.php',
- '1ca3bc274755662169f9629d5412a1da' => $vendorDir . '/zendframework/zend-diactoros/src/functions/normalize_uploaded_files.php',
- '40360c0b9b437e69bcbb7f1349ce029e' => $vendorDir . '/zendframework/zend-diactoros/src/functions/parse_cookie_header.php',
- '801c31d8ed748cfa537fa45402288c95' => $vendorDir . '/psy/psysh/src/functions.php',
- '952683d815ff0a7bf322b93c0be7e4e4' => $vendorDir . '/chi-teck/drupal-code-generator/src/bootstrap.php',
- '5a12a5271c58108e0aa33355e6ac54ea' => $vendorDir . '/drupal/console-core/src/functions.php',
- 'd511210698f02d87ca48e3972f64323e' => $baseDir . '/load.environment.php',
-);
diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php
deleted file mode 100644
index d08792e31..000000000
--- a/vendor/composer/autoload_namespaces.php
+++ /dev/null
@@ -1,18 +0,0 @@
- array($vendorDir . '/twig/twig/lib'),
- 'Stack' => array($vendorDir . '/stack/builder/src'),
- 'Egulias\\' => array($vendorDir . '/egulias/email-validator/src'),
- 'EasyRdf_' => array($vendorDir . '/easyrdf/easyrdf/lib'),
- 'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/lib'),
- 'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib'),
- 'Dflydev\\PlaceholderResolver' => array($vendorDir . '/dflydev/placeholder-resolver/src'),
- 'Dflydev\\DotAccessData' => array($vendorDir . '/dflydev/dot-access-data/src'),
- 'Dflydev\\DotAccessConfiguration' => array($vendorDir . '/dflydev/dot-access-configuration/src'),
-);
diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php
deleted file mode 100644
index abaac76e1..000000000
--- a/vendor/composer/autoload_psr4.php
+++ /dev/null
@@ -1,88 +0,0 @@
- array($vendorDir . '/cweagans/composer-patches/src'),
- 'Zend\\Stdlib\\' => array($vendorDir . '/zendframework/zend-stdlib/src'),
- 'Zend\\Feed\\' => array($vendorDir . '/zendframework/zend-feed/src'),
- 'Zend\\Escaper\\' => array($vendorDir . '/zendframework/zend-escaper/src'),
- 'Zend\\Diactoros\\' => array($vendorDir . '/zendframework/zend-diactoros/src'),
- 'XdgBaseDir\\' => array($vendorDir . '/dnoegel/php-xdg-base-dir/src'),
- 'Webmozart\\PathUtil\\' => array($vendorDir . '/webmozart/path-util/src'),
- 'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
- 'Unish\\' => array($vendorDir . '/drush/drush/tests'),
- 'Twig\\' => array($vendorDir . '/twig/twig/src'),
- 'TYPO3\\PharStreamWrapper\\' => array($vendorDir . '/typo3/phar-stream-wrapper/src'),
- 'Symfony\\Polyfill\\Php72\\' => array($vendorDir . '/symfony/polyfill-php72'),
- 'Symfony\\Polyfill\\Php70\\' => array($vendorDir . '/symfony/polyfill-php70'),
- 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
- 'Symfony\\Polyfill\\Iconv\\' => array($vendorDir . '/symfony/polyfill-iconv'),
- 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
- 'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
- 'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'),
- 'Symfony\\Component\\Validator\\' => array($vendorDir . '/symfony/validator'),
- 'Symfony\\Component\\Translation\\' => array($vendorDir . '/symfony/translation'),
- 'Symfony\\Component\\Serializer\\' => array($vendorDir . '/symfony/serializer'),
- 'Symfony\\Component\\Routing\\' => array($vendorDir . '/symfony/routing'),
- 'Symfony\\Component\\Process\\' => array($vendorDir . '/symfony/process'),
- 'Symfony\\Component\\HttpKernel\\' => array($vendorDir . '/symfony/http-kernel'),
- 'Symfony\\Component\\HttpFoundation\\' => array($vendorDir . '/symfony/http-foundation'),
- 'Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'),
- 'Symfony\\Component\\Filesystem\\' => array($vendorDir . '/symfony/filesystem'),
- 'Symfony\\Component\\EventDispatcher\\' => array($vendorDir . '/symfony/event-dispatcher'),
- 'Symfony\\Component\\DomCrawler\\' => array($vendorDir . '/symfony/dom-crawler'),
- 'Symfony\\Component\\DependencyInjection\\' => array($vendorDir . '/symfony/dependency-injection'),
- 'Symfony\\Component\\Debug\\' => array($vendorDir . '/symfony/debug'),
- 'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
- 'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
- 'Symfony\\Component\\Config\\' => array($vendorDir . '/symfony/config'),
- 'Symfony\\Component\\ClassLoader\\' => array($vendorDir . '/symfony/class-loader'),
- 'Symfony\\Cmf\\Component\\Routing\\' => array($vendorDir . '/symfony-cmf/routing'),
- 'Symfony\\Bridge\\PsrHttpMessage\\' => array($vendorDir . '/symfony/psr-http-message-bridge'),
- 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\' => array($vendorDir . '/stecman/symfony-console-completion/src'),
- 'SelfUpdate\\' => array($vendorDir . '/consolidation/self-update/src'),
- 'Robo\\' => array($vendorDir . '/consolidation/robo/src'),
- 'Psy\\' => array($vendorDir . '/psy/psysh/src'),
- 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
- 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
- 'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
- 'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
- 'Masterminds\\' => array($vendorDir . '/masterminds/html5/src'),
- 'League\\Container\\' => array($vendorDir . '/league/container/src'),
- 'JakubOnderka\\PhpConsoleHighlighter\\' => array($vendorDir . '/jakub-onderka/php-console-highlighter/src'),
- 'JakubOnderka\\PhpConsoleColor\\' => array($vendorDir . '/jakub-onderka/php-console-color/src'),
- 'Interop\\Container\\' => array($vendorDir . '/container-interop/container-interop/src/Interop/Container'),
- 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
- 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
- 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
- 'Grasmash\\YamlExpander\\' => array($vendorDir . '/grasmash/yaml-expander/src'),
- 'Grasmash\\Expander\\' => array($vendorDir . '/grasmash/expander/src'),
- 'Drush\\Internal\\' => array($vendorDir . '/drush/drush/internal-copy'),
- 'Drush\\' => array($vendorDir . '/drush/drush/src'),
- 'Drupal\\Driver\\' => array($baseDir . '/web/drivers/lib/Drupal/Driver'),
- 'Drupal\\Core\\' => array($baseDir . '/web/core/lib/Drupal/Core'),
- 'Drupal\\Console\\Core\\' => array($vendorDir . '/drupal/console-core/src'),
- 'Drupal\\Console\\Composer\\Plugin\\' => array($vendorDir . '/drupal/console-extend-plugin/src'),
- 'Drupal\\Console\\' => array($vendorDir . '/drupal/console/src'),
- 'Drupal\\Component\\' => array($baseDir . '/web/core/lib/Drupal/Component'),
- 'DrupalComposer\\DrupalScaffold\\' => array($vendorDir . '/drupal-composer/drupal-scaffold/src'),
- 'DrupalCodeGenerator\\' => array($vendorDir . '/chi-teck/drupal-code-generator/src'),
- 'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
- 'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib/Doctrine/Common/Inflector'),
- 'Doctrine\\Common\\Cache\\' => array($vendorDir . '/doctrine/cache/lib/Doctrine/Common/Cache'),
- 'Doctrine\\Common\\Annotations\\' => array($vendorDir . '/doctrine/annotations/lib/Doctrine/Common/Annotations'),
- 'Doctrine\\Common\\' => array($vendorDir . '/doctrine/common/lib/Doctrine/Common', $vendorDir . '/doctrine/event-manager/lib/Doctrine/Common', $vendorDir . '/doctrine/persistence/lib/Doctrine/Common', $vendorDir . '/doctrine/reflection/lib/Doctrine/Common'),
- 'Consolidation\\SiteAlias\\' => array($vendorDir . '/consolidation/site-alias/src'),
- 'Consolidation\\OutputFormatters\\' => array($vendorDir . '/consolidation/output-formatters/src'),
- 'Consolidation\\Log\\' => array($vendorDir . '/consolidation/log/src'),
- 'Consolidation\\Config\\' => array($vendorDir . '/consolidation/config/src'),
- 'Consolidation\\AnnotatedCommand\\' => array($vendorDir . '/consolidation/annotated-command/src'),
- 'Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'),
- 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
- 'Asm89\\Stack\\' => array($vendorDir . '/asm89/stack-cors/src/Asm89/Stack'),
- 'Alchemy\\Zippy\\' => array($vendorDir . '/alchemy/zippy/src'),
-);
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
deleted file mode 100644
index 6bdb3ce51..000000000
--- a/vendor/composer/autoload_real.php
+++ /dev/null
@@ -1,70 +0,0 @@
-= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
- if ($useStaticLoader) {
- require_once __DIR__ . '/autoload_static.php';
-
- call_user_func(\Composer\Autoload\ComposerStaticInit5b1c1b80ca16f098d2571547d6c6045f::getInitializer($loader));
- } else {
- $map = require __DIR__ . '/autoload_namespaces.php';
- foreach ($map as $namespace => $path) {
- $loader->set($namespace, $path);
- }
-
- $map = require __DIR__ . '/autoload_psr4.php';
- foreach ($map as $namespace => $path) {
- $loader->setPsr4($namespace, $path);
- }
-
- $classMap = require __DIR__ . '/autoload_classmap.php';
- if ($classMap) {
- $loader->addClassMap($classMap);
- }
- }
-
- $loader->register(true);
-
- if ($useStaticLoader) {
- $includeFiles = Composer\Autoload\ComposerStaticInit5b1c1b80ca16f098d2571547d6c6045f::$files;
- } else {
- $includeFiles = require __DIR__ . '/autoload_files.php';
- }
- foreach ($includeFiles as $fileIdentifier => $file) {
- composerRequire5b1c1b80ca16f098d2571547d6c6045f($fileIdentifier, $file);
- }
-
- return $loader;
- }
-}
-
-function composerRequire5b1c1b80ca16f098d2571547d6c6045f($fileIdentifier, $file)
-{
- if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
- require $file;
-
- $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
- }
-}
diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php
deleted file mode 100644
index 50c565744..000000000
--- a/vendor/composer/autoload_static.php
+++ /dev/null
@@ -1,570 +0,0 @@
- __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
- '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
- '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
- '023d27dca8066ef29e6739335ea73bad' => __DIR__ . '/..' . '/symfony/polyfill-php70/bootstrap.php',
- '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
- '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php',
- '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
- 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
- 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
- '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
- 'def43f6c87e4f8dfd0c9e1b1bab14fe8' => __DIR__ . '/..' . '/symfony/polyfill-iconv/bootstrap.php',
- 'cf97c57bfe0f23854afd2f3818abb7a0' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/create_uploaded_file.php',
- '9bf37a3d0dad93e29cb4e1b1bfab04e9' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/marshal_headers_from_sapi.php',
- 'ce70dccb4bcc2efc6e94d2ee526e6972' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/marshal_method_from_sapi.php',
- 'f86420df471f14d568bfcb71e271b523' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/marshal_protocol_version_from_sapi.php',
- 'b87481e008a3700344428ae089e7f9e5' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/marshal_uri_from_sapi.php',
- '0b0974a5566a1077e4f2e111341112c1' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/normalize_server.php',
- '1ca3bc274755662169f9629d5412a1da' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/normalize_uploaded_files.php',
- '40360c0b9b437e69bcbb7f1349ce029e' => __DIR__ . '/..' . '/zendframework/zend-diactoros/src/functions/parse_cookie_header.php',
- '801c31d8ed748cfa537fa45402288c95' => __DIR__ . '/..' . '/psy/psysh/src/functions.php',
- '952683d815ff0a7bf322b93c0be7e4e4' => __DIR__ . '/..' . '/chi-teck/drupal-code-generator/src/bootstrap.php',
- '5a12a5271c58108e0aa33355e6ac54ea' => __DIR__ . '/..' . '/drupal/console-core/src/functions.php',
- 'd511210698f02d87ca48e3972f64323e' => __DIR__ . '/../..' . '/load.environment.php',
- );
-
- public static $prefixLengthsPsr4 = array (
- 'c' =>
- array (
- 'cweagans\\Composer\\' => 18,
- ),
- 'Z' =>
- array (
- 'Zend\\Stdlib\\' => 12,
- 'Zend\\Feed\\' => 10,
- 'Zend\\Escaper\\' => 13,
- 'Zend\\Diactoros\\' => 15,
- ),
- 'X' =>
- array (
- 'XdgBaseDir\\' => 11,
- ),
- 'W' =>
- array (
- 'Webmozart\\PathUtil\\' => 19,
- 'Webmozart\\Assert\\' => 17,
- ),
- 'U' =>
- array (
- 'Unish\\' => 6,
- ),
- 'T' =>
- array (
- 'Twig\\' => 5,
- 'TYPO3\\PharStreamWrapper\\' => 24,
- ),
- 'S' =>
- array (
- 'Symfony\\Polyfill\\Php72\\' => 23,
- 'Symfony\\Polyfill\\Php70\\' => 23,
- 'Symfony\\Polyfill\\Mbstring\\' => 26,
- 'Symfony\\Polyfill\\Iconv\\' => 23,
- 'Symfony\\Polyfill\\Ctype\\' => 23,
- 'Symfony\\Component\\Yaml\\' => 23,
- 'Symfony\\Component\\VarDumper\\' => 28,
- 'Symfony\\Component\\Validator\\' => 28,
- 'Symfony\\Component\\Translation\\' => 30,
- 'Symfony\\Component\\Serializer\\' => 29,
- 'Symfony\\Component\\Routing\\' => 26,
- 'Symfony\\Component\\Process\\' => 26,
- 'Symfony\\Component\\HttpKernel\\' => 29,
- 'Symfony\\Component\\HttpFoundation\\' => 33,
- 'Symfony\\Component\\Finder\\' => 25,
- 'Symfony\\Component\\Filesystem\\' => 29,
- 'Symfony\\Component\\EventDispatcher\\' => 34,
- 'Symfony\\Component\\DomCrawler\\' => 29,
- 'Symfony\\Component\\DependencyInjection\\' => 38,
- 'Symfony\\Component\\Debug\\' => 24,
- 'Symfony\\Component\\CssSelector\\' => 30,
- 'Symfony\\Component\\Console\\' => 26,
- 'Symfony\\Component\\Config\\' => 25,
- 'Symfony\\Component\\ClassLoader\\' => 30,
- 'Symfony\\Cmf\\Component\\Routing\\' => 30,
- 'Symfony\\Bridge\\PsrHttpMessage\\' => 30,
- 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\' => 49,
- 'SelfUpdate\\' => 11,
- ),
- 'R' =>
- array (
- 'Robo\\' => 5,
- ),
- 'P' =>
- array (
- 'Psy\\' => 4,
- 'Psr\\Log\\' => 8,
- 'Psr\\Http\\Message\\' => 17,
- 'Psr\\Container\\' => 14,
- 'PhpParser\\' => 10,
- ),
- 'M' =>
- array (
- 'Masterminds\\' => 12,
- ),
- 'L' =>
- array (
- 'League\\Container\\' => 17,
- ),
- 'J' =>
- array (
- 'JakubOnderka\\PhpConsoleHighlighter\\' => 35,
- 'JakubOnderka\\PhpConsoleColor\\' => 29,
- ),
- 'I' =>
- array (
- 'Interop\\Container\\' => 18,
- ),
- 'G' =>
- array (
- 'GuzzleHttp\\Psr7\\' => 16,
- 'GuzzleHttp\\Promise\\' => 19,
- 'GuzzleHttp\\' => 11,
- 'Grasmash\\YamlExpander\\' => 22,
- 'Grasmash\\Expander\\' => 18,
- ),
- 'D' =>
- array (
- 'Drush\\Internal\\' => 15,
- 'Drush\\' => 6,
- 'Drupal\\Driver\\' => 14,
- 'Drupal\\Core\\' => 12,
- 'Drupal\\Console\\Core\\' => 20,
- 'Drupal\\Console\\Composer\\Plugin\\' => 31,
- 'Drupal\\Console\\' => 15,
- 'Drupal\\Component\\' => 17,
- 'DrupalComposer\\DrupalScaffold\\' => 30,
- 'DrupalCodeGenerator\\' => 20,
- 'Dotenv\\' => 7,
- 'Doctrine\\Common\\Inflector\\' => 26,
- 'Doctrine\\Common\\Cache\\' => 22,
- 'Doctrine\\Common\\Annotations\\' => 28,
- 'Doctrine\\Common\\' => 16,
- ),
- 'C' =>
- array (
- 'Consolidation\\SiteAlias\\' => 24,
- 'Consolidation\\OutputFormatters\\' => 31,
- 'Consolidation\\Log\\' => 18,
- 'Consolidation\\Config\\' => 21,
- 'Consolidation\\AnnotatedCommand\\' => 31,
- 'Composer\\Semver\\' => 16,
- 'Composer\\Installers\\' => 20,
- ),
- 'A' =>
- array (
- 'Asm89\\Stack\\' => 12,
- 'Alchemy\\Zippy\\' => 14,
- ),
- );
-
- public static $prefixDirsPsr4 = array (
- 'cweagans\\Composer\\' =>
- array (
- 0 => __DIR__ . '/..' . '/cweagans/composer-patches/src',
- ),
- 'Zend\\Stdlib\\' =>
- array (
- 0 => __DIR__ . '/..' . '/zendframework/zend-stdlib/src',
- ),
- 'Zend\\Feed\\' =>
- array (
- 0 => __DIR__ . '/..' . '/zendframework/zend-feed/src',
- ),
- 'Zend\\Escaper\\' =>
- array (
- 0 => __DIR__ . '/..' . '/zendframework/zend-escaper/src',
- ),
- 'Zend\\Diactoros\\' =>
- array (
- 0 => __DIR__ . '/..' . '/zendframework/zend-diactoros/src',
- ),
- 'XdgBaseDir\\' =>
- array (
- 0 => __DIR__ . '/..' . '/dnoegel/php-xdg-base-dir/src',
- ),
- 'Webmozart\\PathUtil\\' =>
- array (
- 0 => __DIR__ . '/..' . '/webmozart/path-util/src',
- ),
- 'Webmozart\\Assert\\' =>
- array (
- 0 => __DIR__ . '/..' . '/webmozart/assert/src',
- ),
- 'Unish\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drush/drush/tests',
- ),
- 'Twig\\' =>
- array (
- 0 => __DIR__ . '/..' . '/twig/twig/src',
- ),
- 'TYPO3\\PharStreamWrapper\\' =>
- array (
- 0 => __DIR__ . '/..' . '/typo3/phar-stream-wrapper/src',
- ),
- 'Symfony\\Polyfill\\Php72\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-php72',
- ),
- 'Symfony\\Polyfill\\Php70\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-php70',
- ),
- 'Symfony\\Polyfill\\Mbstring\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
- ),
- 'Symfony\\Polyfill\\Iconv\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-iconv',
- ),
- 'Symfony\\Polyfill\\Ctype\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
- ),
- 'Symfony\\Component\\Yaml\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/yaml',
- ),
- 'Symfony\\Component\\VarDumper\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/var-dumper',
- ),
- 'Symfony\\Component\\Validator\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/validator',
- ),
- 'Symfony\\Component\\Translation\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/translation',
- ),
- 'Symfony\\Component\\Serializer\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/serializer',
- ),
- 'Symfony\\Component\\Routing\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/routing',
- ),
- 'Symfony\\Component\\Process\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/process',
- ),
- 'Symfony\\Component\\HttpKernel\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/http-kernel',
- ),
- 'Symfony\\Component\\HttpFoundation\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/http-foundation',
- ),
- 'Symfony\\Component\\Finder\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/finder',
- ),
- 'Symfony\\Component\\Filesystem\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/filesystem',
- ),
- 'Symfony\\Component\\EventDispatcher\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/event-dispatcher',
- ),
- 'Symfony\\Component\\DomCrawler\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/dom-crawler',
- ),
- 'Symfony\\Component\\DependencyInjection\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/dependency-injection',
- ),
- 'Symfony\\Component\\Debug\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/debug',
- ),
- 'Symfony\\Component\\CssSelector\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/css-selector',
- ),
- 'Symfony\\Component\\Console\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/console',
- ),
- 'Symfony\\Component\\Config\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/config',
- ),
- 'Symfony\\Component\\ClassLoader\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/class-loader',
- ),
- 'Symfony\\Cmf\\Component\\Routing\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony-cmf/routing',
- ),
- 'Symfony\\Bridge\\PsrHttpMessage\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/psr-http-message-bridge',
- ),
- 'Stecman\\Component\\Symfony\\Console\\BashCompletion\\' =>
- array (
- 0 => __DIR__ . '/..' . '/stecman/symfony-console-completion/src',
- ),
- 'SelfUpdate\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/self-update/src',
- ),
- 'Robo\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/robo/src',
- ),
- 'Psy\\' =>
- array (
- 0 => __DIR__ . '/..' . '/psy/psysh/src',
- ),
- 'Psr\\Log\\' =>
- array (
- 0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
- ),
- 'Psr\\Http\\Message\\' =>
- array (
- 0 => __DIR__ . '/..' . '/psr/http-message/src',
- ),
- 'Psr\\Container\\' =>
- array (
- 0 => __DIR__ . '/..' . '/psr/container/src',
- ),
- 'PhpParser\\' =>
- array (
- 0 => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser',
- ),
- 'Masterminds\\' =>
- array (
- 0 => __DIR__ . '/..' . '/masterminds/html5/src',
- ),
- 'League\\Container\\' =>
- array (
- 0 => __DIR__ . '/..' . '/league/container/src',
- ),
- 'JakubOnderka\\PhpConsoleHighlighter\\' =>
- array (
- 0 => __DIR__ . '/..' . '/jakub-onderka/php-console-highlighter/src',
- ),
- 'JakubOnderka\\PhpConsoleColor\\' =>
- array (
- 0 => __DIR__ . '/..' . '/jakub-onderka/php-console-color/src',
- ),
- 'Interop\\Container\\' =>
- array (
- 0 => __DIR__ . '/..' . '/container-interop/container-interop/src/Interop/Container',
- ),
- 'GuzzleHttp\\Psr7\\' =>
- array (
- 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
- ),
- 'GuzzleHttp\\Promise\\' =>
- array (
- 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
- ),
- 'GuzzleHttp\\' =>
- array (
- 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
- ),
- 'Grasmash\\YamlExpander\\' =>
- array (
- 0 => __DIR__ . '/..' . '/grasmash/yaml-expander/src',
- ),
- 'Grasmash\\Expander\\' =>
- array (
- 0 => __DIR__ . '/..' . '/grasmash/expander/src',
- ),
- 'Drush\\Internal\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drush/drush/internal-copy',
- ),
- 'Drush\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drush/drush/src',
- ),
- 'Drupal\\Driver\\' =>
- array (
- 0 => __DIR__ . '/../..' . '/web/drivers/lib/Drupal/Driver',
- ),
- 'Drupal\\Core\\' =>
- array (
- 0 => __DIR__ . '/../..' . '/web/core/lib/Drupal/Core',
- ),
- 'Drupal\\Console\\Core\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drupal/console-core/src',
- ),
- 'Drupal\\Console\\Composer\\Plugin\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drupal/console-extend-plugin/src',
- ),
- 'Drupal\\Console\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drupal/console/src',
- ),
- 'Drupal\\Component\\' =>
- array (
- 0 => __DIR__ . '/../..' . '/web/core/lib/Drupal/Component',
- ),
- 'DrupalComposer\\DrupalScaffold\\' =>
- array (
- 0 => __DIR__ . '/..' . '/drupal-composer/drupal-scaffold/src',
- ),
- 'DrupalCodeGenerator\\' =>
- array (
- 0 => __DIR__ . '/..' . '/chi-teck/drupal-code-generator/src',
- ),
- 'Dotenv\\' =>
- array (
- 0 => __DIR__ . '/..' . '/vlucas/phpdotenv/src',
- ),
- 'Doctrine\\Common\\Inflector\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/inflector/lib/Doctrine/Common/Inflector',
- ),
- 'Doctrine\\Common\\Cache\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/cache/lib/Doctrine/Common/Cache',
- ),
- 'Doctrine\\Common\\Annotations\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/annotations/lib/Doctrine/Common/Annotations',
- ),
- 'Doctrine\\Common\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/common/lib/Doctrine/Common',
- 1 => __DIR__ . '/..' . '/doctrine/event-manager/lib/Doctrine/Common',
- 2 => __DIR__ . '/..' . '/doctrine/persistence/lib/Doctrine/Common',
- 3 => __DIR__ . '/..' . '/doctrine/reflection/lib/Doctrine/Common',
- ),
- 'Consolidation\\SiteAlias\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/site-alias/src',
- ),
- 'Consolidation\\OutputFormatters\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/output-formatters/src',
- ),
- 'Consolidation\\Log\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/log/src',
- ),
- 'Consolidation\\Config\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/config/src',
- ),
- 'Consolidation\\AnnotatedCommand\\' =>
- array (
- 0 => __DIR__ . '/..' . '/consolidation/annotated-command/src',
- ),
- 'Composer\\Semver\\' =>
- array (
- 0 => __DIR__ . '/..' . '/composer/semver/src',
- ),
- 'Composer\\Installers\\' =>
- array (
- 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
- ),
- 'Asm89\\Stack\\' =>
- array (
- 0 => __DIR__ . '/..' . '/asm89/stack-cors/src/Asm89/Stack',
- ),
- 'Alchemy\\Zippy\\' =>
- array (
- 0 => __DIR__ . '/..' . '/alchemy/zippy/src',
- ),
- );
-
- public static $prefixesPsr0 = array (
- 'T' =>
- array (
- 'Twig_' =>
- array (
- 0 => __DIR__ . '/..' . '/twig/twig/lib',
- ),
- ),
- 'S' =>
- array (
- 'Stack' =>
- array (
- 0 => __DIR__ . '/..' . '/stack/builder/src',
- ),
- ),
- 'E' =>
- array (
- 'Egulias\\' =>
- array (
- 0 => __DIR__ . '/..' . '/egulias/email-validator/src',
- ),
- 'EasyRdf_' =>
- array (
- 0 => __DIR__ . '/..' . '/easyrdf/easyrdf/lib',
- ),
- ),
- 'D' =>
- array (
- 'Doctrine\\Common\\Lexer\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/lexer/lib',
- ),
- 'Doctrine\\Common\\Collections\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/collections/lib',
- ),
- 'Dflydev\\PlaceholderResolver' =>
- array (
- 0 => __DIR__ . '/..' . '/dflydev/placeholder-resolver/src',
- ),
- 'Dflydev\\DotAccessData' =>
- array (
- 0 => __DIR__ . '/..' . '/dflydev/dot-access-data/src',
- ),
- 'Dflydev\\DotAccessConfiguration' =>
- array (
- 0 => __DIR__ . '/..' . '/dflydev/dot-access-configuration/src',
- ),
- ),
- );
-
- public static $classMap = array (
- 'ArithmeticError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php',
- 'AssertionError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/AssertionError.php',
- 'DivisionByZeroError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php',
- 'Drupal' => __DIR__ . '/../..' . '/web/core/lib/Drupal.php',
- 'DrupalFinder\\DrupalFinder' => __DIR__ . '/..' . '/webflo/drupal-finder/src/DrupalFinder.php',
- 'DrupalProject\\composer\\ScriptHandler' => __DIR__ . '/../..' . '/scripts/composer/ScriptHandler.php',
- 'Drupal\\Component\\Utility\\Timer' => __DIR__ . '/../..' . '/web/core/lib/Drupal/Component/Utility/Timer.php',
- 'Drupal\\Component\\Utility\\Unicode' => __DIR__ . '/../..' . '/web/core/lib/Drupal/Component/Utility/Unicode.php',
- 'Drupal\\Core\\Database\\Database' => __DIR__ . '/../..' . '/web/core/lib/Drupal/Core/Database/Database.php',
- 'Drupal\\Core\\DrupalKernel' => __DIR__ . '/../..' . '/web/core/lib/Drupal/Core/DrupalKernel.php',
- 'Drupal\\Core\\DrupalKernelInterface' => __DIR__ . '/../..' . '/web/core/lib/Drupal/Core/DrupalKernelInterface.php',
- 'Drupal\\Core\\Site\\Settings' => __DIR__ . '/../..' . '/web/core/lib/Drupal/Core/Site/Settings.php',
- 'Error' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/Error.php',
- 'ParseError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/ParseError.php',
- 'SessionUpdateTimestampHandlerInterface' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php',
- 'TypeError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/TypeError.php',
- );
-
- public static function getInitializer(ClassLoader $loader)
- {
- return \Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInit5b1c1b80ca16f098d2571547d6c6045f::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInit5b1c1b80ca16f098d2571547d6c6045f::$prefixDirsPsr4;
- $loader->prefixesPsr0 = ComposerStaticInit5b1c1b80ca16f098d2571547d6c6045f::$prefixesPsr0;
- $loader->classMap = ComposerStaticInit5b1c1b80ca16f098d2571547d6c6045f::$classMap;
-
- }, null, ClassLoader::class);
- }
-}
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
deleted file mode 100644
index 600a11959..000000000
--- a/vendor/composer/installed.json
+++ /dev/null
@@ -1,6298 +0,0 @@
-[
- {
- "name": "alchemy/zippy",
- "version": "0.4.3",
- "version_normalized": "0.4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/alchemy-fr/Zippy.git",
- "reference": "5ffdc93de0af2770d396bf433d8b2667c77277ea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/alchemy-fr/Zippy/zipball/5ffdc93de0af2770d396bf433d8b2667c77277ea",
- "reference": "5ffdc93de0af2770d396bf433d8b2667c77277ea",
- "shasum": ""
- },
- "require": {
- "doctrine/collections": "~1.0",
- "ext-mbstring": "*",
- "php": ">=5.5",
- "symfony/filesystem": "^2.0.5|^3.0",
- "symfony/process": "^2.1|^3.0"
- },
- "require-dev": {
- "ext-zip": "*",
- "guzzle/guzzle": "~3.0",
- "guzzlehttp/guzzle": "^6.0",
- "phpunit/phpunit": "^4.0|^5.0",
- "symfony/finder": "^2.0.5|^3.0"
- },
- "suggest": {
- "ext-zip": "To use the ZipExtensionAdapter",
- "guzzle/guzzle": "To use the GuzzleTeleporter with Guzzle 3",
- "guzzlehttp/guzzle": "To use the GuzzleTeleporter with Guzzle 6"
- },
- "time": "2016-11-03T16:10:31+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.4.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Alchemy\\Zippy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Alchemy",
- "email": "dev.team@alchemy.fr",
- "homepage": "http://www.alchemy.fr/"
- }
- ],
- "description": "Zippy, the archive manager companion",
- "keywords": [
- "bzip",
- "compression",
- "tar",
- "zip"
- ]
- },
- {
- "name": "asm89/stack-cors",
- "version": "1.2.0",
- "version_normalized": "1.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/asm89/stack-cors.git",
- "reference": "c163e2b614550aedcf71165db2473d936abbced6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/asm89/stack-cors/zipball/c163e2b614550aedcf71165db2473d936abbced6",
- "reference": "c163e2b614550aedcf71165db2473d936abbced6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.9",
- "symfony/http-foundation": "~2.7|~3.0|~4.0",
- "symfony/http-kernel": "~2.7|~3.0|~4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0 || ^4.8.10",
- "squizlabs/php_codesniffer": "^2.3"
- },
- "time": "2017-12-20T14:37:45+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Asm89\\Stack\\": "src/Asm89/Stack/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Alexander",
- "email": "iam.asm89@gmail.com"
- }
- ],
- "description": "Cross-origin resource sharing library and stack middleware",
- "homepage": "https://github.com/asm89/stack-cors",
- "keywords": [
- "cors",
- "stack"
- ]
- },
- {
- "name": "chi-teck/drupal-code-generator",
- "version": "1.27.0",
- "version_normalized": "1.27.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Chi-teck/drupal-code-generator.git",
- "reference": "a839bc89d385087d8a7a96a9c1c4bd470ffb627e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Chi-teck/drupal-code-generator/zipball/a839bc89d385087d8a7a96a9c1c4bd470ffb627e",
- "reference": "a839bc89d385087d8a7a96a9c1c4bd470ffb627e",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "php": ">=5.5.9",
- "symfony/console": "~2.7|^3",
- "symfony/filesystem": "~2.7|^3",
- "twig/twig": "^1.23.1"
- },
- "time": "2018-10-11T08:05:59+00:00",
- "bin": [
- "bin/dcg"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/bootstrap.php"
- ],
- "psr-4": {
- "DrupalCodeGenerator\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "description": "Drupal code generator"
- },
- {
- "name": "composer/installers",
- "version": "v1.6.0",
- "version_normalized": "1.6.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/installers.git",
- "reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/installers/zipball/cfcca6b1b60bc4974324efb5783c13dca6932b5b",
- "reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0"
- },
- "replace": {
- "roundcube/plugin-installer": "*",
- "shama/baton": "*"
- },
- "require-dev": {
- "composer/composer": "1.0.*@dev",
- "phpunit/phpunit": "^4.8.36"
- },
- "time": "2018-08-27T06:10:37+00:00",
- "type": "composer-plugin",
- "extra": {
- "class": "Composer\\Installers\\Plugin",
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Composer\\Installers\\": "src/Composer/Installers"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kyle Robinson Young",
- "email": "kyle@dontkry.com",
- "homepage": "https://github.com/shama"
- }
- ],
- "description": "A multi-framework Composer library installer",
- "homepage": "https://composer.github.io/installers/",
- "keywords": [
- "Craft",
- "Dolibarr",
- "Eliasis",
- "Hurad",
- "ImageCMS",
- "Kanboard",
- "Lan Management System",
- "MODX Evo",
- "Mautic",
- "Maya",
- "OXID",
- "Plentymarkets",
- "Porto",
- "RadPHP",
- "SMF",
- "Thelia",
- "WolfCMS",
- "agl",
- "aimeos",
- "annotatecms",
- "attogram",
- "bitrix",
- "cakephp",
- "chef",
- "cockpit",
- "codeigniter",
- "concrete5",
- "croogo",
- "dokuwiki",
- "drupal",
- "eZ Platform",
- "elgg",
- "expressionengine",
- "fuelphp",
- "grav",
- "installer",
- "itop",
- "joomla",
- "kohana",
- "laravel",
- "lavalite",
- "lithium",
- "magento",
- "majima",
- "mako",
- "mediawiki",
- "modulework",
- "modx",
- "moodle",
- "osclass",
- "phpbb",
- "piwik",
- "ppi",
- "puppet",
- "pxcms",
- "reindex",
- "roundcube",
- "shopware",
- "silverstripe",
- "sydes",
- "symfony",
- "typo3",
- "wordpress",
- "yawik",
- "zend",
- "zikula"
- ]
- },
- {
- "name": "composer/semver",
- "version": "1.4.2",
- "version_normalized": "1.4.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/semver.git",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.5 || ^5.0.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "time": "2016-08-30T16:08:34+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Composer\\Semver\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "Semver library that offers utilities, version constraint parsing and validation.",
- "keywords": [
- "semantic",
- "semver",
- "validation",
- "versioning"
- ]
- },
- {
- "name": "consolidation/annotated-command",
- "version": "2.11.0",
- "version_normalized": "2.11.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/annotated-command.git",
- "reference": "edea407f57104ed518cc3c3b47d5b84403ee267a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/edea407f57104ed518cc3c3b47d5b84403ee267a",
- "reference": "edea407f57104ed518cc3c3b47d5b84403ee267a",
- "shasum": ""
- },
- "require": {
- "consolidation/output-formatters": "^3.4",
- "php": ">=5.4.0",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "time": "2018-12-29T04:43:17+00:00",
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- },
- "scenario-options": {
- "create-lockfile": "false"
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Initialize Symfony Console commands from annotated command class methods."
- },
- {
- "name": "consolidation/config",
- "version": "1.1.1",
- "version_normalized": "1.1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/config.git",
- "reference": "925231dfff32f05b787e1fddb265e789b939cf4c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/config/zipball/925231dfff32f05b787e1fddb265e789b939cf4c",
- "reference": "925231dfff32f05b787e1fddb265e789b939cf4c",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "grasmash/expander": "^1",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^5",
- "satooshi/php-coveralls": "^1.0",
- "squizlabs/php_codesniffer": "2.*",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "suggest": {
- "symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
- },
- "time": "2018-10-24T17:55:35+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Consolidation\\Config\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Provide configuration services for a commandline tool."
- },
- {
- "name": "consolidation/log",
- "version": "1.1.1",
- "version_normalized": "1.1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/log.git",
- "reference": "b2e887325ee90abc96b0a8b7b474cd9e7c896e3a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/log/zipball/b2e887325ee90abc96b0a8b7b474cd9e7c896e3a",
- "reference": "b2e887325ee90abc96b0a8b7b474cd9e7c896e3a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.5",
- "psr/log": "^1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2"
- },
- "time": "2019-01-01T17:30:51+00:00",
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components."
- },
- {
- "name": "consolidation/output-formatters",
- "version": "3.4.0",
- "version_normalized": "3.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/a942680232094c4a5b21c0b7e54c20cce623ae19",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "time": "2018-10-19T22:35:38+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters."
- },
- {
- "name": "consolidation/robo",
- "version": "1.4.3",
- "version_normalized": "1.4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/Robo.git",
- "reference": "d0b6f516ec940add7abed4f1432d30cca5f8ae0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/Robo/zipball/d0b6f516ec940add7abed4f1432d30cca5f8ae0c",
- "reference": "d0b6f516ec940add7abed4f1432d30cca5f8ae0c",
- "shasum": ""
- },
- "require": {
- "consolidation/annotated-command": "^2.10.2",
- "consolidation/config": "^1.0.10",
- "consolidation/log": "~1",
- "consolidation/output-formatters": "^3.1.13",
- "consolidation/self-update": "^1",
- "grasmash/yaml-expander": "^1.3",
- "league/container": "^2.2",
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/process": "^2.5|^3|^4"
- },
- "replace": {
- "codegyre/robo": "< 1.0"
- },
- "require-dev": {
- "codeception/aspect-mock": "^1|^2.1.1",
- "codeception/base": "^2.3.7",
- "codeception/verify": "^0.3.2",
- "g1a/composer-test-scenarios": "^3",
- "goaop/framework": "~2.1.2",
- "goaop/parser-reflection": "^1.1.0",
- "natxet/cssmin": "3.0.4",
- "nikic/php-parser": "^3.1.5",
- "patchwork/jsqueeze": "~2",
- "pear/archive_tar": "^1.4.2",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/php-code-coverage": "~2|~4",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "suggest": {
- "henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "natxet/CssMin": "For minifying CSS files in taskMinify",
- "patchwork/jsqueeze": "For minifying JS files in taskMinify",
- "pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively."
- },
- "time": "2019-01-02T21:33:28+00:00",
- "bin": [
- "robo"
- ],
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "remove": [
- "goaop/framework"
- ],
- "config": {
- "platform": {
- "php": "5.5.9"
- }
- },
- "scenario-options": {
- "create-lockfile": "false"
- }
- }
- },
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Robo\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "description": "Modern task runner"
- },
- {
- "name": "consolidation/self-update",
- "version": "1.1.5",
- "version_normalized": "1.1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/self-update.git",
- "reference": "a1c273b14ce334789825a09d06d4c87c0a02ad54"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/self-update/zipball/a1c273b14ce334789825a09d06d4c87c0a02ad54",
- "reference": "a1c273b14ce334789825a09d06d4c87c0a02ad54",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4"
- },
- "time": "2018-10-28T01:52:03+00:00",
- "bin": [
- "scripts/release"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "SelfUpdate\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Alexander Menk",
- "email": "menk@mestrona.net"
- }
- ],
- "description": "Provides a self:update command for Symfony Console applications."
- },
- {
- "name": "consolidation/site-alias",
- "version": "1.1.11",
- "version_normalized": "1.1.11.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/site-alias.git",
- "reference": "54ea74ee7dbd54ef356798028ca9a3548cb8df14"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/site-alias/zipball/54ea74ee7dbd54ef356798028ca9a3548cb8df14",
- "reference": "54ea74ee7dbd54ef356798028ca9a3548cb8df14",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "consolidation/robo": "^1.2.3",
- "g1a/composer-test-scenarios": "^2",
- "knplabs/github-api": "^2.7",
- "php-http/guzzle6-adapter": "^1.1",
- "phpunit/phpunit": "^5",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.8",
- "symfony/console": "^2.8|^3|^4",
- "symfony/yaml": "~2.3|^3"
- },
- "time": "2018-11-03T05:07:56+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Consolidation\\SiteAlias\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Moshe Weitzman",
- "email": "weitzman@tejasa.com"
- },
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Manage alias records for local and remote sites."
- },
- {
- "name": "container-interop/container-interop",
- "version": "1.2.0",
- "version_normalized": "1.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/container-interop/container-interop.git",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "shasum": ""
- },
- "require": {
- "psr/container": "^1.0"
- },
- "time": "2017-02-14T19:40:03+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop"
- },
- {
- "name": "cweagans/composer-patches",
- "version": "1.6.5",
- "version_normalized": "1.6.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/cweagans/composer-patches.git",
- "reference": "2ec4f00ff5fb64de584c8c4aea53bf9053ecb0b3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/cweagans/composer-patches/zipball/2ec4f00ff5fb64de584c8c4aea53bf9053ecb0b3",
- "reference": "2ec4f00ff5fb64de584c8c4aea53bf9053ecb0b3",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0",
- "php": ">=5.3.0"
- },
- "require-dev": {
- "composer/composer": "~1.0",
- "phpunit/phpunit": "~4.6"
- },
- "time": "2018-05-11T18:00:16+00:00",
- "type": "composer-plugin",
- "extra": {
- "class": "cweagans\\Composer\\Patches"
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "cweagans\\Composer\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Cameron Eagans",
- "email": "me@cweagans.net"
- }
- ],
- "description": "Provides a way to patch Composer packages."
- },
- {
- "name": "dflydev/dot-access-configuration",
- "version": "v1.0.3",
- "version_normalized": "1.0.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-configuration.git",
- "reference": "2e6eb0c8b8830b26bb23defcfc38d4276508fc49"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-configuration/zipball/2e6eb0c8b8830b26bb23defcfc38d4276508fc49",
- "reference": "2e6eb0c8b8830b26bb23defcfc38d4276508fc49",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "1.*",
- "dflydev/placeholder-resolver": "1.*",
- "php": ">=5.3.2"
- },
- "require-dev": {
- "symfony/yaml": "~2.1"
- },
- "suggest": {
- "symfony/yaml": "Required for using the YAML Configuration Builders"
- },
- "time": "2018-09-08T23:00:17+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessConfiguration": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- }
- ],
- "description": "Given a deep data structure representing a configuration, access configuration by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-configuration",
- "keywords": [
- "config",
- "configuration"
- ]
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "version_normalized": "1.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "time": "2017-01-20T21:14:22+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ]
- },
- {
- "name": "dflydev/placeholder-resolver",
- "version": "v1.0.2",
- "version_normalized": "1.0.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-placeholder-resolver.git",
- "reference": "c498d0cae91b1bb36cc7d60906dab8e62bb7c356"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-placeholder-resolver/zipball/c498d0cae91b1bb36cc7d60906dab8e62bb7c356",
- "reference": "c498d0cae91b1bb36cc7d60906dab8e62bb7c356",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "time": "2012-10-28T21:08:28+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Dflydev\\PlaceholderResolver": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- }
- ],
- "description": "Given a data source representing key => value pairs, resolve placeholders like ${foo.bar} to the value associated with the 'foo.bar' key in the data source.",
- "homepage": "https://github.com/dflydev/dflydev-placeholder-resolver",
- "keywords": [
- "placeholder",
- "resolver"
- ]
- },
- {
- "name": "dnoegel/php-xdg-base-dir",
- "version": "0.1",
- "version_normalized": "0.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dnoegel/php-xdg-base-dir.git",
- "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a",
- "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "@stable"
- },
- "time": "2014-10-24T07:27:01+00:00",
- "type": "project",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "XdgBaseDir\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "implementation of xdg base directory specification for php"
- },
- {
- "name": "doctrine/annotations",
- "version": "v1.6.0",
- "version_normalized": "1.6.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/annotations.git",
- "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5",
- "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5",
- "shasum": ""
- },
- "require": {
- "doctrine/lexer": "1.*",
- "php": "^7.1"
- },
- "require-dev": {
- "doctrine/cache": "1.*",
- "phpunit/phpunit": "^6.4"
- },
- "time": "2017-12-06T07:11:42+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Docblock Annotations Parser",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "annotations",
- "docblock",
- "parser"
- ]
- },
- {
- "name": "doctrine/cache",
- "version": "v1.8.0",
- "version_normalized": "1.8.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/cache.git",
- "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/cache/zipball/d768d58baee9a4862ca783840eca1b9add7a7f57",
- "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57",
- "shasum": ""
- },
- "require": {
- "php": "~7.1"
- },
- "conflict": {
- "doctrine/common": ">2.2,<2.4"
- },
- "require-dev": {
- "alcaeus/mongo-php-adapter": "^1.1",
- "doctrine/coding-standard": "^4.0",
- "mongodb/mongodb": "^1.1",
- "phpunit/phpunit": "^7.0",
- "predis/predis": "~1.0"
- },
- "suggest": {
- "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver"
- },
- "time": "2018-08-21T18:01:43+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Caching library offering an object-oriented API for many cache backends",
- "homepage": "https://www.doctrine-project.org",
- "keywords": [
- "cache",
- "caching"
- ]
- },
- {
- "name": "doctrine/collections",
- "version": "v1.5.0",
- "version_normalized": "1.5.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/collections.git",
- "reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/collections/zipball/a01ee38fcd999f34d9bfbcee59dbda5105449cbf",
- "reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "doctrine/coding-standard": "~0.1@dev",
- "phpunit/phpunit": "^5.7"
- },
- "time": "2017-07-22T10:37:32+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Collections\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Collections Abstraction library",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "array",
- "collections",
- "iterator"
- ]
- },
- {
- "name": "doctrine/common",
- "version": "v2.10.0",
- "version_normalized": "2.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/common.git",
- "reference": "30e33f60f64deec87df728c02b107f82cdafad9d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/common/zipball/30e33f60f64deec87df728c02b107f82cdafad9d",
- "reference": "30e33f60f64deec87df728c02b107f82cdafad9d",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "^1.0",
- "doctrine/cache": "^1.0",
- "doctrine/collections": "^1.0",
- "doctrine/event-manager": "^1.0",
- "doctrine/inflector": "^1.0",
- "doctrine/lexer": "^1.0",
- "doctrine/persistence": "^1.1",
- "doctrine/reflection": "^1.0",
- "php": "^7.1"
- },
- "require-dev": {
- "doctrine/coding-standard": "^1.0",
- "phpunit/phpunit": "^6.3",
- "squizlabs/php_codesniffer": "^3.0",
- "symfony/phpunit-bridge": "^4.0.5"
- },
- "time": "2018-11-21T01:24:55+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.10.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- },
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com"
- }
- ],
- "description": "PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.",
- "homepage": "https://www.doctrine-project.org/projects/common.html",
- "keywords": [
- "common",
- "doctrine",
- "php"
- ]
- },
- {
- "name": "doctrine/event-manager",
- "version": "v1.0.0",
- "version_normalized": "1.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/event-manager.git",
- "reference": "a520bc093a0170feeb6b14e9d83f3a14452e64b3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/event-manager/zipball/a520bc093a0170feeb6b14e9d83f3a14452e64b3",
- "reference": "a520bc093a0170feeb6b14e9d83f3a14452e64b3",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "conflict": {
- "doctrine/common": "<2.9@dev"
- },
- "require-dev": {
- "doctrine/coding-standard": "^4.0",
- "phpunit/phpunit": "^7.0"
- },
- "time": "2018-06-11T11:59:03+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- },
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com"
- }
- ],
- "description": "Doctrine Event Manager component",
- "homepage": "https://www.doctrine-project.org/projects/event-manager.html",
- "keywords": [
- "event",
- "eventdispatcher",
- "eventmanager"
- ]
- },
- {
- "name": "doctrine/inflector",
- "version": "v1.3.0",
- "version_normalized": "1.3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/inflector.git",
- "reference": "5527a48b7313d15261292c149e55e26eae771b0a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a",
- "reference": "5527a48b7313d15261292c149e55e26eae771b0a",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2"
- },
- "time": "2018-01-09T20:05:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Common String Manipulations with regard to casing and singular/plural rules.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "inflection",
- "pluralize",
- "singularize",
- "string"
- ]
- },
- {
- "name": "doctrine/lexer",
- "version": "v1.0.1",
- "version_normalized": "1.0.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/lexer.git",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "time": "2014-09-09T13:34:57+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Lexer\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "lexer",
- "parser"
- ]
- },
- {
- "name": "doctrine/persistence",
- "version": "v1.1.0",
- "version_normalized": "1.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/persistence.git",
- "reference": "c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/persistence/zipball/c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38",
- "reference": "c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "^1.0",
- "doctrine/cache": "^1.0",
- "doctrine/collections": "^1.0",
- "doctrine/event-manager": "^1.0",
- "doctrine/reflection": "^1.0",
- "php": "^7.1"
- },
- "conflict": {
- "doctrine/common": "<2.10@dev"
- },
- "require-dev": {
- "doctrine/coding-standard": "^5.0",
- "phpstan/phpstan": "^0.8",
- "phpunit/phpunit": "^7.0"
- },
- "time": "2018-11-21T00:33:13+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- },
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com"
- }
- ],
- "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.",
- "homepage": "https://doctrine-project.org/projects/persistence.html",
- "keywords": [
- "mapper",
- "object",
- "odm",
- "orm",
- "persistence"
- ]
- },
- {
- "name": "doctrine/reflection",
- "version": "v1.0.0",
- "version_normalized": "1.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/reflection.git",
- "reference": "02538d3f95e88eb397a5f86274deb2c6175c2ab6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/reflection/zipball/02538d3f95e88eb397a5f86274deb2c6175c2ab6",
- "reference": "02538d3f95e88eb397a5f86274deb2c6175c2ab6",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "^1.0",
- "ext-tokenizer": "*",
- "php": "^7.1"
- },
- "require-dev": {
- "doctrine/coding-standard": "^4.0",
- "doctrine/common": "^2.8",
- "phpstan/phpstan": "^0.9.2",
- "phpstan/phpstan-phpunit": "^0.9.4",
- "phpunit/phpunit": "^7.0",
- "squizlabs/php_codesniffer": "^3.0"
- },
- "time": "2018-06-14T14:45:07+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- },
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com"
- }
- ],
- "description": "Doctrine Reflection component",
- "homepage": "https://www.doctrine-project.org/projects/reflection.html",
- "keywords": [
- "reflection"
- ]
- },
- {
- "name": "drupal-composer/drupal-scaffold",
- "version": "2.5.4",
- "version_normalized": "2.5.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/drupal-composer/drupal-scaffold.git",
- "reference": "fc6bf4ceecb5d47327f54d48d4d4f67b17da956d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/drupal-composer/drupal-scaffold/zipball/fc6bf4ceecb5d47327f54d48d4d4f67b17da956d",
- "reference": "fc6bf4ceecb5d47327f54d48d4d4f67b17da956d",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "composer/semver": "^1.4",
- "php": ">=5.4.5"
- },
- "require-dev": {
- "composer/composer": "dev-master",
- "g1a/composer-test-scenarios": "^2.1.0",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "time": "2018-07-27T10:07:07+00:00",
- "type": "composer-plugin",
- "extra": {
- "class": "DrupalComposer\\DrupalScaffold\\Plugin",
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "DrupalComposer\\DrupalScaffold\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "description": "Composer Plugin for updating the Drupal scaffold files when using drupal/core"
- },
- {
- "name": "drupal/admin_toolbar",
- "version": "1.25.0",
- "version_normalized": "1.25.0.0",
- "source": {
- "type": "git",
- "url": "https://git.drupal.org/project/admin_toolbar",
- "reference": "8.x-1.25"
- },
- "dist": {
- "type": "zip",
- "url": "https://ftp.drupal.org/files/projects/admin_toolbar-8.x-1.25.zip",
- "reference": "8.x-1.25",
- "shasum": "bc24929d5e49932518797c1228e647e98b03542b"
- },
- "require": {
- "drupal/core": "*"
- },
- "type": "drupal-module",
- "extra": {
- "branch-alias": {
- "dev-1.x": "1.x-dev"
- },
- "drupal": {
- "version": "8.x-1.25",
- "datestamp": "1542915180",
- "security-coverage": {
- "status": "covered",
- "message": "Covered by Drupal's security advisory policy"
- }
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packages.drupal.org/8/downloads",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Wilfrid Roze (eme)",
- "homepage": "https://www.drupal.org/u/eme",
- "role": "Maintainer"
- },
- {
- "name": "Romain Jarraud (romainj)",
- "homepage": "https://www.drupal.org/u/romainj",
- "role": "Maintainer"
- },
- {
- "name": "Adrian Cid Almaguer (adriancid)",
- "homepage": "https://www.drupal.org/u/adriancid",
- "email": "adriancid@gmail.com",
- "role": "Maintainer"
- },
- {
- "name": "Mohamed Anis Taktak (matio89)",
- "homepage": "https://www.drupal.org/u/matio89",
- "role": "Maintainer"
- },
- {
- "name": "fethi.krout",
- "homepage": "https://www.drupal.org/user/3206765"
- },
- {
- "name": "matio89",
- "homepage": "https://www.drupal.org/user/2320090"
- },
- {
- "name": "romainj",
- "homepage": "https://www.drupal.org/user/370706"
- }
- ],
- "description": "Provides a drop-down menu interface to the core Drupal Toolbar.",
- "homepage": "http://drupal.org/project/admin_toolbar",
- "keywords": [
- "Drupal",
- "Toolbar"
- ],
- "support": {
- "source": "http://cgit.drupalcode.org/admin_toolbar",
- "issues": "https://www.drupal.org/project/issues/admin_toolbar"
- }
- },
- {
- "name": "drupal/console",
- "version": "1.8.0",
- "version_normalized": "1.8.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/hechoendrupal/drupal-console.git",
- "reference": "368bbfa44dc6b957eb4db01977f7c39e83032d18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hechoendrupal/drupal-console/zipball/368bbfa44dc6b957eb4db01977f7c39e83032d18",
- "reference": "368bbfa44dc6b957eb4db01977f7c39e83032d18",
- "shasum": ""
- },
- "require": {
- "alchemy/zippy": "0.4.3",
- "composer/installers": "~1.0",
- "doctrine/annotations": "^1.2",
- "doctrine/collections": "^1.3",
- "drupal/console-core": "1.8.0",
- "drupal/console-extend-plugin": "~0",
- "guzzlehttp/guzzle": "~6.1",
- "php": "^5.5.9 || ^7.0",
- "psy/psysh": "0.6.* || ~0.8",
- "symfony/css-selector": "~2.8|~3.0",
- "symfony/dom-crawler": "~2.8|~3.0",
- "symfony/http-foundation": "~2.8|~3.0"
- },
- "suggest": {
- "symfony/thanks": "Thank your favorite PHP projects on Github using the CLI!",
- "vlucas/phpdotenv": "Loads environment variables from .env to getenv(), $_ENV and $_SERVER automagically."
- },
- "time": "2018-03-21T20:50:16+00:00",
- "bin": [
- "bin/drupal"
- ],
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Drupal\\Console\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "David Flores",
- "email": "dmousex@gmail.com",
- "homepage": "http://dmouse.net"
- },
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com",
- "homepage": "http://jmolivas.com"
- },
- {
- "name": "Eduardo Garcia",
- "email": "enzo@enzolutions.com",
- "homepage": "http://enzolutions.com/"
- },
- {
- "name": "Omar Aguirre",
- "email": "omersguchigu@gmail.com"
- },
- {
- "name": "Drupal Console Contributors",
- "homepage": "https://github.com/hechoendrupal/drupal-console/graphs/contributors"
- }
- ],
- "description": "The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.",
- "homepage": "http://drupalconsole.com/",
- "keywords": [
- "console",
- "development",
- "drupal",
- "symfony"
- ]
- },
- {
- "name": "drupal/console-core",
- "version": "1.8.0",
- "version_normalized": "1.8.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/hechoendrupal/drupal-console-core.git",
- "reference": "bf1fb4a6f689377acec1694267f674178d28e5d1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hechoendrupal/drupal-console-core/zipball/bf1fb4a6f689377acec1694267f674178d28e5d1",
- "reference": "bf1fb4a6f689377acec1694267f674178d28e5d1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-configuration": "^1.0",
- "drupal/console-en": "1.8.0",
- "php": "^5.5.9 || ^7.0",
- "stecman/symfony-console-completion": "~0.7",
- "symfony/config": "~2.8|~3.0",
- "symfony/console": "~2.8|~3.0",
- "symfony/debug": "~2.8|~3.0",
- "symfony/dependency-injection": "~2.8|~3.0",
- "symfony/event-dispatcher": "~2.8|~3.0",
- "symfony/filesystem": "~2.8|~3.0",
- "symfony/finder": "~2.8|~3.0",
- "symfony/process": "~2.8|~3.0",
- "symfony/translation": "~2.8|~3.0",
- "symfony/yaml": "~2.8|~3.0",
- "twig/twig": "^1.23.1",
- "webflo/drupal-finder": "^1.0",
- "webmozart/path-util": "^2.3"
- },
- "time": "2018-03-21T19:33:23+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/functions.php"
- ],
- "psr-4": {
- "Drupal\\Console\\Core\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "David Flores",
- "email": "dmousex@gmail.com",
- "homepage": "http://dmouse.net"
- },
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com",
- "homepage": "http://jmolivas.com"
- },
- {
- "name": "Drupal Console Contributors",
- "homepage": "https://github.com/hechoendrupal/DrupalConsole/graphs/contributors"
- },
- {
- "name": "Eduardo Garcia",
- "email": "enzo@enzolutions.com",
- "homepage": "http://enzolutions.com/"
- },
- {
- "name": "Omar Aguirre",
- "email": "omersguchigu@gmail.com"
- }
- ],
- "description": "Drupal Console Core",
- "homepage": "http://drupalconsole.com/",
- "keywords": [
- "console",
- "development",
- "drupal",
- "symfony"
- ]
- },
- {
- "name": "drupal/console-en",
- "version": "1.8.0",
- "version_normalized": "1.8.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/hechoendrupal/drupal-console-en.git",
- "reference": "ea956ddffab04f519a89858810e5f695b9def92b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hechoendrupal/drupal-console-en/zipball/ea956ddffab04f519a89858810e5f695b9def92b",
- "reference": "ea956ddffab04f519a89858810e5f695b9def92b",
- "shasum": ""
- },
- "time": "2018-03-21T19:16:27+00:00",
- "type": "drupal-console-language",
- "installation-source": "dist",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "David Flores",
- "email": "dmousex@gmail.com",
- "homepage": "http://dmouse.net"
- },
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com",
- "homepage": "http://jmolivas.com"
- },
- {
- "name": "Drupal Console Contributors",
- "homepage": "https://github.com/hechoendrupal/DrupalConsole/graphs/contributors"
- },
- {
- "name": "Eduardo Garcia",
- "email": "enzo@enzolutions.com",
- "homepage": "http://enzolutions.com/"
- },
- {
- "name": "Omar Aguirre",
- "email": "omersguchigu@gmail.com"
- }
- ],
- "description": "Drupal Console English Language",
- "homepage": "http://drupalconsole.com/",
- "keywords": [
- "console",
- "development",
- "drupal",
- "symfony"
- ]
- },
- {
- "name": "drupal/console-extend-plugin",
- "version": "0.9.2",
- "version_normalized": "0.9.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/hechoendrupal/drupal-console-extend-plugin.git",
- "reference": "f3bac233fd305359c33e96621443b3bd065555cc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hechoendrupal/drupal-console-extend-plugin/zipball/f3bac233fd305359c33e96621443b3bd065555cc",
- "reference": "f3bac233fd305359c33e96621443b3bd065555cc",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0",
- "symfony/finder": "~2.7|~3.0",
- "symfony/yaml": "~2.7|~3.0"
- },
- "time": "2017-07-28T17:11:54+00:00",
- "type": "composer-plugin",
- "extra": {
- "class": "Drupal\\Console\\Composer\\Plugin\\Extender"
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Drupal\\Console\\Composer\\Plugin\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com"
- }
- ],
- "description": "Drupal Console Extend Plugin"
- },
- {
- "name": "drupal/core",
- "version": "8.6.7",
- "version_normalized": "8.6.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/drupal/core.git",
- "reference": "e0a09bda1da7552204464894811a59387608c9f9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/drupal/core/zipball/e0a09bda1da7552204464894811a59387608c9f9",
- "reference": "e0a09bda1da7552204464894811a59387608c9f9",
- "shasum": ""
- },
- "require": {
- "asm89/stack-cors": "^1.1",
- "composer/semver": "^1.0",
- "doctrine/annotations": "^1.2",
- "doctrine/common": "^2.5",
- "easyrdf/easyrdf": "^0.9",
- "egulias/email-validator": "^1.2",
- "ext-date": "*",
- "ext-dom": "*",
- "ext-filter": "*",
- "ext-gd": "*",
- "ext-hash": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-pdo": "*",
- "ext-session": "*",
- "ext-simplexml": "*",
- "ext-spl": "*",
- "ext-tokenizer": "*",
- "ext-xml": "*",
- "guzzlehttp/guzzle": "^6.2.1",
- "masterminds/html5": "^2.1",
- "paragonie/random_compat": "^1.0|^2.0",
- "php": "^5.5.9|>=7.0.8",
- "stack/builder": "^1.0",
- "symfony-cmf/routing": "^1.4",
- "symfony/class-loader": "~3.4.0",
- "symfony/console": "~3.4.0",
- "symfony/dependency-injection": "~3.4.0",
- "symfony/event-dispatcher": "~3.4.0",
- "symfony/http-foundation": "~3.4.14",
- "symfony/http-kernel": "~3.4.14",
- "symfony/polyfill-iconv": "^1.0",
- "symfony/process": "~3.4.0",
- "symfony/psr-http-message-bridge": "^1.0",
- "symfony/routing": "~3.4.0",
- "symfony/serializer": "~3.4.0",
- "symfony/translation": "~3.4.0",
- "symfony/validator": "~3.4.0",
- "symfony/yaml": "~3.4.5",
- "twig/twig": "^1.35.0",
- "typo3/phar-stream-wrapper": "^2.0.1",
- "zendframework/zend-diactoros": "^1.1",
- "zendframework/zend-feed": "^2.4"
- },
- "conflict": {
- "drush/drush": "<8.1.10"
- },
- "replace": {
- "drupal/action": "self.version",
- "drupal/aggregator": "self.version",
- "drupal/automated_cron": "self.version",
- "drupal/ban": "self.version",
- "drupal/bartik": "self.version",
- "drupal/basic_auth": "self.version",
- "drupal/big_pipe": "self.version",
- "drupal/block": "self.version",
- "drupal/block_content": "self.version",
- "drupal/block_place": "self.version",
- "drupal/book": "self.version",
- "drupal/breakpoint": "self.version",
- "drupal/ckeditor": "self.version",
- "drupal/classy": "self.version",
- "drupal/color": "self.version",
- "drupal/comment": "self.version",
- "drupal/config": "self.version",
- "drupal/config_translation": "self.version",
- "drupal/contact": "self.version",
- "drupal/content_moderation": "self.version",
- "drupal/content_translation": "self.version",
- "drupal/contextual": "self.version",
- "drupal/core-annotation": "self.version",
- "drupal/core-assertion": "self.version",
- "drupal/core-bridge": "self.version",
- "drupal/core-class-finder": "self.version",
- "drupal/core-datetime": "self.version",
- "drupal/core-dependency-injection": "self.version",
- "drupal/core-diff": "self.version",
- "drupal/core-discovery": "self.version",
- "drupal/core-event-dispatcher": "self.version",
- "drupal/core-file-cache": "self.version",
- "drupal/core-filesystem": "self.version",
- "drupal/core-gettext": "self.version",
- "drupal/core-graph": "self.version",
- "drupal/core-http-foundation": "self.version",
- "drupal/core-php-storage": "self.version",
- "drupal/core-plugin": "self.version",
- "drupal/core-proxy-builder": "self.version",
- "drupal/core-render": "self.version",
- "drupal/core-serialization": "self.version",
- "drupal/core-transliteration": "self.version",
- "drupal/core-utility": "self.version",
- "drupal/core-uuid": "self.version",
- "drupal/datetime": "self.version",
- "drupal/datetime_range": "self.version",
- "drupal/dblog": "self.version",
- "drupal/dynamic_page_cache": "self.version",
- "drupal/editor": "self.version",
- "drupal/entity_reference": "self.version",
- "drupal/field": "self.version",
- "drupal/field_layout": "self.version",
- "drupal/field_ui": "self.version",
- "drupal/file": "self.version",
- "drupal/filter": "self.version",
- "drupal/forum": "self.version",
- "drupal/hal": "self.version",
- "drupal/help": "self.version",
- "drupal/history": "self.version",
- "drupal/image": "self.version",
- "drupal/inline_form_errors": "self.version",
- "drupal/language": "self.version",
- "drupal/layout_builder": "self.version",
- "drupal/layout_discovery": "self.version",
- "drupal/link": "self.version",
- "drupal/locale": "self.version",
- "drupal/media": "self.version",
- "drupal/media_library": "self.version",
- "drupal/menu_link_content": "self.version",
- "drupal/menu_ui": "self.version",
- "drupal/migrate": "self.version",
- "drupal/migrate_drupal": "self.version",
- "drupal/migrate_drupal_multilingual": "self.version",
- "drupal/migrate_drupal_ui": "self.version",
- "drupal/minimal": "self.version",
- "drupal/node": "self.version",
- "drupal/options": "self.version",
- "drupal/page_cache": "self.version",
- "drupal/path": "self.version",
- "drupal/quickedit": "self.version",
- "drupal/rdf": "self.version",
- "drupal/responsive_image": "self.version",
- "drupal/rest": "self.version",
- "drupal/search": "self.version",
- "drupal/serialization": "self.version",
- "drupal/settings_tray": "self.version",
- "drupal/seven": "self.version",
- "drupal/shortcut": "self.version",
- "drupal/simpletest": "self.version",
- "drupal/standard": "self.version",
- "drupal/stark": "self.version",
- "drupal/statistics": "self.version",
- "drupal/syslog": "self.version",
- "drupal/system": "self.version",
- "drupal/taxonomy": "self.version",
- "drupal/telephone": "self.version",
- "drupal/text": "self.version",
- "drupal/toolbar": "self.version",
- "drupal/tour": "self.version",
- "drupal/tracker": "self.version",
- "drupal/update": "self.version",
- "drupal/user": "self.version",
- "drupal/views": "self.version",
- "drupal/views_ui": "self.version",
- "drupal/workflows": "self.version",
- "drupal/workspaces": "self.version"
- },
- "require-dev": {
- "behat/mink": "1.7.x-dev",
- "behat/mink-goutte-driver": "^1.2",
- "behat/mink-selenium2-driver": "1.3.x-dev",
- "drupal/coder": "^8.2.12",
- "jcalderonzumba/gastonjs": "^1.0.2",
- "jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
- "mikey179/vfsstream": "^1.2",
- "phpspec/prophecy": "^1.7",
- "phpunit/phpunit": "^4.8.35 || ^6.5",
- "symfony/css-selector": "^3.4.0",
- "symfony/debug": "^3.4.0",
- "symfony/phpunit-bridge": "^3.4.3"
- },
- "time": "2019-01-16T23:30:03+00:00",
- "type": "drupal-core",
- "extra": {
- "merge-plugin": {
- "require": [
- "core/lib/Drupal/Component/Annotation/composer.json",
- "core/lib/Drupal/Component/Assertion/composer.json",
- "core/lib/Drupal/Component/Bridge/composer.json",
- "core/lib/Drupal/Component/ClassFinder/composer.json",
- "core/lib/Drupal/Component/Datetime/composer.json",
- "core/lib/Drupal/Component/DependencyInjection/composer.json",
- "core/lib/Drupal/Component/Diff/composer.json",
- "core/lib/Drupal/Component/Discovery/composer.json",
- "core/lib/Drupal/Component/EventDispatcher/composer.json",
- "core/lib/Drupal/Component/FileCache/composer.json",
- "core/lib/Drupal/Component/FileSystem/composer.json",
- "core/lib/Drupal/Component/Gettext/composer.json",
- "core/lib/Drupal/Component/Graph/composer.json",
- "core/lib/Drupal/Component/HttpFoundation/composer.json",
- "core/lib/Drupal/Component/PhpStorage/composer.json",
- "core/lib/Drupal/Component/Plugin/composer.json",
- "core/lib/Drupal/Component/ProxyBuilder/composer.json",
- "core/lib/Drupal/Component/Render/composer.json",
- "core/lib/Drupal/Component/Serialization/composer.json",
- "core/lib/Drupal/Component/Transliteration/composer.json",
- "core/lib/Drupal/Component/Utility/composer.json",
- "core/lib/Drupal/Component/Uuid/composer.json"
- ],
- "recurse": false,
- "replace": false,
- "merge-extra": false
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Drupal\\Core\\": "lib/Drupal/Core",
- "Drupal\\Component\\": "lib/Drupal/Component",
- "Drupal\\Driver\\": "../drivers/lib/Drupal/Driver"
- },
- "classmap": [
- "lib/Drupal.php",
- "lib/Drupal/Component/Utility/Timer.php",
- "lib/Drupal/Component/Utility/Unicode.php",
- "lib/Drupal/Core/Database/Database.php",
- "lib/Drupal/Core/DrupalKernel.php",
- "lib/Drupal/Core/DrupalKernelInterface.php",
- "lib/Drupal/Core/Site/Settings.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "description": "Drupal is an open source content management platform powering millions of websites and applications."
- },
- {
- "name": "drupal/ctools",
- "version": "3.0.0",
- "version_normalized": "3.0.0.0",
- "source": {
- "type": "git",
- "url": "https://git.drupal.org/project/ctools",
- "reference": "8.x-3.0"
- },
- "dist": {
- "type": "zip",
- "url": "https://ftp.drupal.org/files/projects/ctools-8.x-3.0.zip",
- "reference": "8.x-3.0",
- "shasum": "302e869ecd1e59fe55663673999fee2ccac5daa8"
- },
- "require": {
- "drupal/core": "~8.0"
- },
- "type": "drupal-module",
- "extra": {
- "branch-alias": {
- "dev-3.x": "3.x-dev"
- },
- "drupal": {
- "version": "8.x-3.0",
- "datestamp": "1493401742",
- "security-coverage": {
- "status": "covered",
- "message": "Covered by Drupal's security advisory policy"
- }
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packages.drupal.org/8/downloads",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Kris Vanderwater (EclipseGc)",
- "homepage": "https://www.drupal.org/u/eclipsegc",
- "role": "Maintainer"
- },
- {
- "name": "Jakob Perry (japerry)",
- "homepage": "https://www.drupal.org/u/japerry",
- "role": "Maintainer"
- },
- {
- "name": "Tim Plunkett (tim.plunkett)",
- "homepage": "https://www.drupal.org/u/timplunkett",
- "role": "Maintainer"
- },
- {
- "name": "James Gilliland (neclimdul)",
- "homepage": "https://www.drupal.org/u/neclimdul",
- "role": "Maintainer"
- },
- {
- "name": "Daniel Wehner (dawehner)",
- "homepage": "https://www.drupal.org/u/dawehner",
- "role": "Maintainer"
- },
- {
- "name": "joelpittet",
- "homepage": "https://www.drupal.org/user/160302"
- },
- {
- "name": "merlinofchaos",
- "homepage": "https://www.drupal.org/user/26979"
- },
- {
- "name": "neclimdul",
- "homepage": "https://www.drupal.org/user/48673"
- },
- {
- "name": "sdboyer",
- "homepage": "https://www.drupal.org/user/146719"
- },
- {
- "name": "sun",
- "homepage": "https://www.drupal.org/user/54136"
- },
- {
- "name": "tim.plunkett",
- "homepage": "https://www.drupal.org/user/241634"
- }
- ],
- "description": "Provides a number of utility and helper APIs for Drupal developers and site builders.",
- "homepage": "https://www.drupal.org/project/ctools",
- "support": {
- "source": "http://cgit.drupalcode.org/ctools",
- "issues": "https://www.drupal.org/project/issues/ctools"
- }
- },
- {
- "name": "drupal/pathauto",
- "version": "1.3.0",
- "version_normalized": "1.3.0.0",
- "source": {
- "type": "git",
- "url": "https://git.drupal.org/project/pathauto",
- "reference": "8.x-1.3"
- },
- "dist": {
- "type": "zip",
- "url": "https://ftp.drupal.org/files/projects/pathauto-8.x-1.3.zip",
- "reference": "8.x-1.3",
- "shasum": "115d5998d7636a03e26c7ce34261b65809d53965"
- },
- "require": {
- "drupal/core": "^8.5",
- "drupal/ctools": "*",
- "drupal/token": "*"
- },
- "type": "drupal-module",
- "extra": {
- "branch-alias": {
- "dev-1.x": "1.x-dev"
- },
- "drupal": {
- "version": "8.x-1.3",
- "datestamp": "1536407884",
- "security-coverage": {
- "status": "covered",
- "message": "Covered by Drupal's security advisory policy"
- }
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packages.drupal.org/8/downloads",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "Berdir",
- "homepage": "https://www.drupal.org/user/214652"
- },
- {
- "name": "Dave Reid",
- "homepage": "https://www.drupal.org/user/53892"
- },
- {
- "name": "Freso",
- "homepage": "https://www.drupal.org/user/27504"
- },
- {
- "name": "greggles",
- "homepage": "https://www.drupal.org/user/36762"
- }
- ],
- "description": "Provides a mechanism for modules to automatically generate aliases for the content they manage.",
- "homepage": "https://www.drupal.org/project/pathauto",
- "support": {
- "source": "http://cgit.drupalcode.org/pathauto"
- }
- },
- {
- "name": "drupal/stage_file_proxy",
- "version": "1.0.0-alpha3",
- "version_normalized": "1.0.0.0-alpha3",
- "source": {
- "type": "git",
- "url": "https://git.drupal.org/project/stage_file_proxy",
- "reference": "8.x-1.0-alpha3"
- },
- "dist": {
- "type": "zip",
- "url": "https://ftp.drupal.org/files/projects/stage_file_proxy-8.x-1.0-alpha3.zip",
- "reference": "8.x-1.0-alpha3",
- "shasum": "0eb1fc47fa1437c2db623a57c2b2cdbecab5b350"
- },
- "require": {
- "drupal/core": "~8.0"
- },
- "type": "drupal-module",
- "extra": {
- "branch-alias": {
- "dev-1.x": "1.x-dev"
- },
- "drupal": {
- "version": "8.x-1.0-alpha3",
- "datestamp": "1499900942",
- "security-coverage": {
- "status": "not-covered",
- "message": "Alpha releases are not covered by Drupal security advisories."
- }
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packages.drupal.org/8/downloads",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "BarisW",
- "homepage": "https://www.drupal.org/user/107229"
- },
- {
- "name": "axel.rutz",
- "homepage": "https://www.drupal.org/user/229048"
- },
- {
- "name": "greggles",
- "homepage": "https://www.drupal.org/user/36762"
- },
- {
- "name": "markdorison",
- "homepage": "https://www.drupal.org/user/346106"
- },
- {
- "name": "moshe weitzman",
- "homepage": "https://www.drupal.org/user/23"
- },
- {
- "name": "msonnabaum",
- "homepage": "https://www.drupal.org/user/75278"
- },
- {
- "name": "netaustin",
- "homepage": "https://www.drupal.org/user/199298"
- },
- {
- "name": "robwilmshurst",
- "homepage": "https://www.drupal.org/user/144488"
- }
- ],
- "description": "Provides stage_file_proxy module.",
- "homepage": "https://www.drupal.org/project/stage_file_proxy",
- "support": {
- "source": "http://cgit.drupalcode.org/stage_file_proxy"
- }
- },
- {
- "name": "drupal/token",
- "version": "1.5.0",
- "version_normalized": "1.5.0.0",
- "source": {
- "type": "git",
- "url": "https://git.drupal.org/project/token",
- "reference": "8.x-1.5"
- },
- "dist": {
- "type": "zip",
- "url": "https://ftp.drupal.org/files/projects/token-8.x-1.5.zip",
- "reference": "8.x-1.5",
- "shasum": "6382a7e1aabbd8246f1117a26bf4916d285b401d"
- },
- "require": {
- "drupal/core": "^8.5"
- },
- "type": "drupal-module",
- "extra": {
- "branch-alias": {
- "dev-1.x": "1.x-dev"
- },
- "drupal": {
- "version": "8.x-1.5",
- "datestamp": "1537557481",
- "security-coverage": {
- "status": "covered",
- "message": "Covered by Drupal's security advisory policy"
- }
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packages.drupal.org/8/downloads",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "Berdir",
- "homepage": "https://www.drupal.org/user/214652"
- },
- {
- "name": "Dave Reid",
- "homepage": "https://www.drupal.org/user/53892"
- },
- {
- "name": "eaton",
- "homepage": "https://www.drupal.org/user/16496"
- },
- {
- "name": "fago",
- "homepage": "https://www.drupal.org/user/16747"
- },
- {
- "name": "greggles",
- "homepage": "https://www.drupal.org/user/36762"
- },
- {
- "name": "mikeryan",
- "homepage": "https://www.drupal.org/user/4420"
- }
- ],
- "description": "Provides a user interface for the Token API and some missing core tokens.",
- "homepage": "https://www.drupal.org/project/token",
- "support": {
- "source": "http://cgit.drupalcode.org/token"
- }
- },
- {
- "name": "drupal/webform",
- "version": "5.1.0",
- "version_normalized": "5.1.0.0",
- "source": {
- "type": "git",
- "url": "https://git.drupal.org/project/webform",
- "reference": "8.x-5.1"
- },
- "dist": {
- "type": "zip",
- "url": "https://ftp.drupal.org/files/projects/webform-8.x-5.1.zip",
- "reference": "8.x-5.1",
- "shasum": "d04743f078dc154685f9532253e6b5ea8dda1a56"
- },
- "require": {
- "drupal/core": "*"
- },
- "require-dev": {
- "drupal/address": "~1.4",
- "drupal/chosen": "~2.6",
- "drupal/devel": "*",
- "drupal/jsonapi": "~2.0",
- "drupal/select2": "~1.1",
- "drupal/token": "~1.3",
- "drupal/webform_access": "*",
- "drupal/webform_node": "*",
- "drupal/webform_scheduled_email": "*",
- "drupal/webform_ui": "*"
- },
- "type": "drupal-module",
- "extra": {
- "branch-alias": {
- "dev-5.x": "5.x-dev"
- },
- "drupal": {
- "version": "8.x-5.1",
- "datestamp": "1546458480",
- "security-coverage": {
- "status": "covered",
- "message": "Covered by Drupal's security advisory policy"
- }
- },
- "drush": {
- "services": {
- "drush.services.yml": "^9"
- }
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packages.drupal.org/8/downloads",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Jacob Rockowitz (jrockowitz)",
- "homepage": "https://www.drupal.org/u/jrockowitz",
- "role": "Maintainer"
- },
- {
- "name": "Alexander Trotsenko (bucefal91)",
- "homepage": "https://www.drupal.org/u/bucefal91",
- "role": "Co-maintainer"
- },
- {
- "name": "bucefal91",
- "homepage": "https://www.drupal.org/user/504128"
- },
- {
- "name": "fenstrat",
- "homepage": "https://www.drupal.org/user/362649"
- },
- {
- "name": "jrockowitz",
- "homepage": "https://www.drupal.org/user/371407"
- },
- {
- "name": "podarok",
- "homepage": "https://www.drupal.org/user/116002"
- },
- {
- "name": "quicksketch",
- "homepage": "https://www.drupal.org/user/35821"
- },
- {
- "name": "sanchiz",
- "homepage": "https://www.drupal.org/user/1671246"
- },
- {
- "name": "tedbow",
- "homepage": "https://www.drupal.org/user/240860"
- },
- {
- "name": "torotil",
- "homepage": "https://www.drupal.org/user/865256"
- }
- ],
- "description": "Enables the creation of webforms and questionnaires.",
- "homepage": "https://drupal.org/project/webform",
- "support": {
- "source": "http://cgit.drupalcode.org/webform",
- "issues": "https://www.drupal.org/project/issues/webform?version=8.x",
- "docs": "https://www.drupal.org/docs/8/modules/webform",
- "forum": "https://drupal.stackexchange.com/questions/tagged/webform"
- }
- },
- {
- "name": "drush/drush",
- "version": "9.4.0",
- "version_normalized": "9.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/drush-ops/drush.git",
- "reference": "9d46a2a67554ae8b6f6edec234a1272c3b4c6a9e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/drush-ops/drush/zipball/9d46a2a67554ae8b6f6edec234a1272c3b4c6a9e",
- "reference": "9d46a2a67554ae8b6f6edec234a1272c3b4c6a9e",
- "shasum": ""
- },
- "require": {
- "chi-teck/drupal-code-generator": "^1.24.0",
- "composer/semver": "^1.4",
- "consolidation/annotated-command": "^2.8.1",
- "consolidation/config": "^1.1.0",
- "consolidation/output-formatters": "^3.1.12",
- "consolidation/robo": "^1.1.5",
- "consolidation/site-alias": "^1.1.2",
- "ext-dom": "*",
- "grasmash/yaml-expander": "^1.1.1",
- "league/container": "~2",
- "php": ">=5.6.0",
- "psr/log": "~1.0",
- "psy/psysh": "~0.6",
- "symfony/config": "~2.2|^3",
- "symfony/console": "~2.7|^3",
- "symfony/event-dispatcher": "~2.7|^3",
- "symfony/finder": "~2.7|^3",
- "symfony/process": "~2.7|^3",
- "symfony/var-dumper": "~2.7|^3|^4",
- "symfony/yaml": "~2.3|^3",
- "webflo/drupal-finder": "^1.1",
- "webmozart/path-util": "^2.1.0"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2.2.0",
- "lox/xhprof": "dev-master",
- "phpunit/phpunit": "^4.8.36|^5.5.4",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "time": "2018-09-04T17:24:36+00:00",
- "bin": [
- "drush"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "9.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Drush\\": "src/",
- "Drush\\Internal\\": "internal-copy/",
- "Unish\\": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0-or-later"
- ],
- "authors": [
- {
- "name": "Moshe Weitzman",
- "email": "weitzman@tejasa.com"
- },
- {
- "name": "Owen Barton",
- "email": "drupal@owenbarton.com"
- },
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Jonathan Araña Cruz",
- "email": "jonhattan@faita.net"
- },
- {
- "name": "Jonathan Hedstrom",
- "email": "jhedstrom@gmail.com"
- },
- {
- "name": "Christopher Gervais",
- "email": "chris@ergonlogic.com"
- },
- {
- "name": "Dave Reid",
- "email": "dave@davereid.net"
- },
- {
- "name": "Damian Lee",
- "email": "damiankloip@googlemail.com"
- }
- ],
- "description": "Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.",
- "homepage": "http://www.drush.org"
- },
- {
- "name": "easyrdf/easyrdf",
- "version": "0.9.1",
- "version_normalized": "0.9.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/njh/easyrdf.git",
- "reference": "acd09dfe0555fbcfa254291e433c45fdd4652566"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/njh/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566",
- "reference": "acd09dfe0555fbcfa254291e433c45fdd4652566",
- "shasum": ""
- },
- "require": {
- "ext-mbstring": "*",
- "ext-pcre": "*",
- "php": ">=5.2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.5",
- "sami/sami": "~1.4",
- "squizlabs/php_codesniffer": "~1.4.3"
- },
- "suggest": {
- "ml/json-ld": "~1.0"
- },
- "time": "2015-02-27T09:45:49+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "EasyRdf_": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nicholas Humfrey",
- "email": "njh@aelius.com",
- "homepage": "http://www.aelius.com/njh/",
- "role": "Developer"
- },
- {
- "name": "Alexey Zakhlestin",
- "email": "indeyets@gmail.com",
- "role": "Developer"
- }
- ],
- "description": "EasyRdf is a PHP library designed to make it easy to consume and produce RDF.",
- "homepage": "http://www.easyrdf.org/",
- "keywords": [
- "Linked Data",
- "RDF",
- "Semantic Web",
- "Turtle",
- "rdfa",
- "sparql"
- ]
- },
- {
- "name": "egulias/email-validator",
- "version": "1.2.15",
- "version_normalized": "1.2.15.0",
- "source": {
- "type": "git",
- "url": "https://github.com/egulias/EmailValidator.git",
- "reference": "758a77525bdaabd6c0f5669176bd4361cb2dda9e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/758a77525bdaabd6c0f5669176bd4361cb2dda9e",
- "reference": "758a77525bdaabd6c0f5669176bd4361cb2dda9e",
- "shasum": ""
- },
- "require": {
- "doctrine/lexer": "^1.0.1",
- "php": ">= 5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.24"
- },
- "time": "2018-09-25T20:59:41+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Egulias\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Eduardo Gulias Davis"
- }
- ],
- "description": "A library for validating emails",
- "homepage": "https://github.com/egulias/EmailValidator",
- "keywords": [
- "email",
- "emailvalidation",
- "emailvalidator",
- "validation",
- "validator"
- ]
- },
- {
- "name": "grasmash/expander",
- "version": "1.0.0",
- "version_normalized": "1.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/expander.git",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "time": "2017-12-21T22:14:55+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Grasmash\\Expander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in PHP arrays file."
- },
- {
- "name": "grasmash/yaml-expander",
- "version": "1.4.0",
- "version_normalized": "1.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/yaml-expander.git",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/yaml-expander/zipball/3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "time": "2017-12-16T16:06:03+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Grasmash\\YamlExpander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in a yaml file."
- },
- {
- "name": "guzzlehttp/guzzle",
- "version": "6.3.3",
- "version_normalized": "6.3.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "shasum": ""
- },
- "require": {
- "guzzlehttp/promises": "^1.0",
- "guzzlehttp/psr7": "^1.4",
- "php": ">=5.5"
- },
- "require-dev": {
- "ext-curl": "*",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
- "psr/log": "^1.0"
- },
- "suggest": {
- "psr/log": "Required for using the Log middleware"
- },
- "time": "2018-04-22T15:46:56+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.3-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/functions_include.php"
- ],
- "psr-4": {
- "GuzzleHttp\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ]
- },
- {
- "name": "guzzlehttp/promises",
- "version": "v1.3.1",
- "version_normalized": "1.3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/promises.git",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0"
- },
- "time": "2016-12-20T10:07:11+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Promise\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle promises library",
- "keywords": [
- "promise"
- ]
- },
- {
- "name": "guzzlehttp/psr7",
- "version": "1.5.2",
- "version_normalized": "1.5.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/psr7.git",
- "reference": "9f83dded91781a01c63574e387eaa769be769115"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
- "reference": "9f83dded91781a01c63574e387eaa769be769115",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0",
- "ralouphie/getallheaders": "^2.0.5"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
- },
- "time": "2018-12-04T20:46:45+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Tobias Schultze",
- "homepage": "https://github.com/Tobion"
- }
- ],
- "description": "PSR-7 message implementation that also provides common utility methods",
- "keywords": [
- "http",
- "message",
- "psr-7",
- "request",
- "response",
- "stream",
- "uri",
- "url"
- ]
- },
- {
- "name": "jakub-onderka/php-console-color",
- "version": "v0.2",
- "version_normalized": "0.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/JakubOnderka/PHP-Console-Color.git",
- "reference": "d5deaecff52a0d61ccb613bb3804088da0307191"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/d5deaecff52a0d61ccb613bb3804088da0307191",
- "reference": "d5deaecff52a0d61ccb613bb3804088da0307191",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0"
- },
- "require-dev": {
- "jakub-onderka/php-code-style": "1.0",
- "jakub-onderka/php-parallel-lint": "1.0",
- "jakub-onderka/php-var-dump-check": "0.*",
- "phpunit/phpunit": "~4.3",
- "squizlabs/php_codesniffer": "1.*"
- },
- "time": "2018-09-29T17:23:10+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "JakubOnderka\\PhpConsoleColor\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "jakub.onderka@gmail.com"
- }
- ]
- },
- {
- "name": "jakub-onderka/php-console-highlighter",
- "version": "v0.4",
- "version_normalized": "0.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git",
- "reference": "9f7a229a69d52506914b4bc61bfdb199d90c5547"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/9f7a229a69d52506914b4bc61bfdb199d90c5547",
- "reference": "9f7a229a69d52506914b4bc61bfdb199d90c5547",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "jakub-onderka/php-console-color": "~0.2",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "jakub-onderka/php-code-style": "~1.0",
- "jakub-onderka/php-parallel-lint": "~1.0",
- "jakub-onderka/php-var-dump-check": "~0.1",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~1.5"
- },
- "time": "2018-09-29T18:48:56+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "JakubOnderka\\PhpConsoleHighlighter\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "acci@acci.cz",
- "homepage": "http://www.acci.cz/"
- }
- ],
- "description": "Highlight PHP code in terminal"
- },
- {
- "name": "league/container",
- "version": "2.4.1",
- "version_normalized": "2.4.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/thephpleague/container.git",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/thephpleague/container/zipball/43f35abd03a12977a60ffd7095efd6a7808488c0",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0",
- "shasum": ""
- },
- "require": {
- "container-interop/container-interop": "^1.2",
- "php": "^5.4.0 || ^7.0"
- },
- "provide": {
- "container-interop/container-interop-implementation": "^1.2",
- "psr/container-implementation": "^1.0"
- },
- "replace": {
- "orno/di": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*"
- },
- "time": "2017-05-10T09:20:27+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-2.x": "2.x-dev",
- "dev-1.x": "1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "League\\Container\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Phil Bennett",
- "email": "philipobenito@gmail.com",
- "homepage": "http://www.philipobenito.com",
- "role": "Developer"
- }
- ],
- "description": "A fast and intuitive dependency injection container.",
- "homepage": "https://github.com/thephpleague/container",
- "keywords": [
- "container",
- "dependency",
- "di",
- "injection",
- "league",
- "provider",
- "service"
- ]
- },
- {
- "name": "masterminds/html5",
- "version": "2.5.0",
- "version_normalized": "2.5.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Masterminds/html5-php.git",
- "reference": "b5d892a4bd058d61f736935d32a9c248f11ccc93"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/b5d892a4bd058d61f736935d32a9c248f11ccc93",
- "reference": "b5d892a4bd058d61f736935d32a9c248f11ccc93",
- "shasum": ""
- },
- "require": {
- "ext-ctype": "*",
- "ext-dom": "*",
- "ext-libxml": "*",
- "php": ">=5.3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35",
- "sami/sami": "~2.0",
- "satooshi/php-coveralls": "1.0.*"
- },
- "time": "2018-12-27T22:03:43+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Masterminds\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matt Butcher",
- "email": "technosophos@gmail.com"
- },
- {
- "name": "Asmir Mustafic",
- "email": "goetas@gmail.com"
- },
- {
- "name": "Matt Farina",
- "email": "matt@mattfarina.com"
- }
- ],
- "description": "An HTML5 parser and serializer.",
- "homepage": "http://masterminds.github.io/html5-php",
- "keywords": [
- "HTML5",
- "dom",
- "html",
- "parser",
- "querypath",
- "serializer",
- "xml"
- ]
- },
- {
- "name": "nikic/php-parser",
- "version": "v4.2.0",
- "version_normalized": "4.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "594bcae1fc0bccd3993d2f0d61a018e26ac2865a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/594bcae1fc0bccd3993d2f0d61a018e26ac2865a",
- "reference": "594bcae1fc0bccd3993d2f0d61a018e26ac2865a",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.5 || ^7.0"
- },
- "time": "2019-01-12T16:31:37+00:00",
- "bin": [
- "bin/php-parse"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ]
- },
- {
- "name": "paragonie/random_compat",
- "version": "v2.0.18",
- "version_normalized": "2.0.18.0",
- "source": {
- "type": "git",
- "url": "https://github.com/paragonie/random_compat.git",
- "reference": "0a58ef6e3146256cc3dc7cc393927bcc7d1b72db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/paragonie/random_compat/zipball/0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",
- "reference": "0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",
- "shasum": ""
- },
- "require": {
- "php": ">=5.2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*|5.*"
- },
- "suggest": {
- "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
- },
- "time": "2019-01-03T20:59:08+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "files": [
- "lib/random.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Paragon Initiative Enterprises",
- "email": "security@paragonie.com",
- "homepage": "https://paragonie.com"
- }
- ],
- "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
- "keywords": [
- "csprng",
- "polyfill",
- "pseudorandom",
- "random"
- ]
- },
- {
- "name": "psr/container",
- "version": "1.0.0",
- "version_normalized": "1.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/container.git",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "time": "2017-02-14T16:28:37+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common Container Interface (PHP FIG PSR-11)",
- "homepage": "https://github.com/php-fig/container",
- "keywords": [
- "PSR-11",
- "container",
- "container-interface",
- "container-interop",
- "psr"
- ]
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "version_normalized": "1.0.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "time": "2016-08-06T14:39:51+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ]
- },
- {
- "name": "psr/log",
- "version": "1.1.0",
- "version_normalized": "1.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "time": "2018-11-20T15:27:04+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ]
- },
- {
- "name": "psy/psysh",
- "version": "v0.9.9",
- "version_normalized": "0.9.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/bobthecow/psysh.git",
- "reference": "9aaf29575bb8293206bb0420c1e1c87ff2ffa94e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/bobthecow/psysh/zipball/9aaf29575bb8293206bb0420c1e1c87ff2ffa94e",
- "reference": "9aaf29575bb8293206bb0420c1e1c87ff2ffa94e",
- "shasum": ""
- },
- "require": {
- "dnoegel/php-xdg-base-dir": "0.1",
- "ext-json": "*",
- "ext-tokenizer": "*",
- "jakub-onderka/php-console-highlighter": "0.3.*|0.4.*",
- "nikic/php-parser": "~1.3|~2.0|~3.0|~4.0",
- "php": ">=5.4.0",
- "symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0",
- "symfony/var-dumper": "~2.7|~3.0|~4.0"
- },
- "require-dev": {
- "bamarni/composer-bin-plugin": "^1.2",
- "hoa/console": "~2.15|~3.16",
- "phpunit/phpunit": "~4.8.35|~5.0|~6.0|~7.0"
- },
- "suggest": {
- "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)",
- "ext-pdo-sqlite": "The doc command requires SQLite to work.",
- "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.",
- "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.",
- "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit."
- },
- "time": "2018-10-13T15:16:03+00:00",
- "bin": [
- "bin/psysh"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-develop": "0.9.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/functions.php"
- ],
- "psr-4": {
- "Psy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Justin Hileman",
- "email": "justin@justinhileman.info",
- "homepage": "http://justinhileman.com"
- }
- ],
- "description": "An interactive shell for modern PHP.",
- "homepage": "http://psysh.org",
- "keywords": [
- "REPL",
- "console",
- "interactive",
- "shell"
- ]
- },
- {
- "name": "ralouphie/getallheaders",
- "version": "2.0.5",
- "version_normalized": "2.0.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/ralouphie/getallheaders.git",
- "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
- "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.7.0",
- "satooshi/php-coveralls": ">=1.0"
- },
- "time": "2016-02-11T07:05:27+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/getallheaders.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Ralph Khattar",
- "email": "ralph.khattar@gmail.com"
- }
- ],
- "description": "A polyfill for getallheaders."
- },
- {
- "name": "stack/builder",
- "version": "v1.0.5",
- "version_normalized": "1.0.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/stackphp/builder.git",
- "reference": "fb3d136d04c6be41120ebf8c0cc71fe9507d750a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/stackphp/builder/zipball/fb3d136d04c6be41120ebf8c0cc71fe9507d750a",
- "reference": "fb3d136d04c6be41120ebf8c0cc71fe9507d750a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0",
- "symfony/http-foundation": "~2.1|~3.0|~4.0",
- "symfony/http-kernel": "~2.1|~3.0|~4.0"
- },
- "require-dev": {
- "silex/silex": "~1.0"
- },
- "time": "2017-11-18T14:57:29+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Stack": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
- }
- ],
- "description": "Builder for stack middlewares based on HttpKernelInterface.",
- "keywords": [
- "stack"
- ]
- },
- {
- "name": "stecman/symfony-console-completion",
- "version": "0.9.0",
- "version_normalized": "0.9.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/stecman/symfony-console-completion.git",
- "reference": "bd07a24190541de2828c1d6469a8ddce599d3c5a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/stecman/symfony-console-completion/zipball/bd07a24190541de2828c1d6469a8ddce599d3c5a",
- "reference": "bd07a24190541de2828c1d6469a8ddce599d3c5a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2",
- "symfony/console": "~2.3 || ~3.0 || ~4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.8.36 || ~5.7 || ~6.4"
- },
- "time": "2019-01-19T21:25:25+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.6.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Stecman\\Component\\Symfony\\Console\\BashCompletion\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Stephen Holdaway",
- "email": "stephen@stecman.co.nz"
- }
- ],
- "description": "Automatic BASH completion for Symfony Console Component based applications."
- },
- {
- "name": "symfony-cmf/routing",
- "version": "1.4.1",
- "version_normalized": "1.4.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony-cmf/routing.git",
- "reference": "fb1e7f85ff8c6866238b7e73a490a0a0243ae8ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony-cmf/routing/zipball/fb1e7f85ff8c6866238b7e73a490a0a0243ae8ac",
- "reference": "fb1e7f85ff8c6866238b7e73a490a0a0243ae8ac",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.9|^7.0",
- "psr/log": "1.*",
- "symfony/http-kernel": "^2.2|3.*",
- "symfony/routing": "^2.2|3.*"
- },
- "require-dev": {
- "friendsofsymfony/jsrouting-bundle": "^1.1",
- "symfony-cmf/testing": "^1.3",
- "symfony/config": "^2.2|3.*",
- "symfony/dependency-injection": "^2.0.5|3.*",
- "symfony/event-dispatcher": "^2.1|3.*"
- },
- "suggest": {
- "symfony/event-dispatcher": "DynamicRouter can optionally trigger an event at the start of matching. Minimal version (~2.1)"
- },
- "time": "2017-05-09T08:10:41+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Cmf\\Component\\Routing\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony CMF Community",
- "homepage": "https://github.com/symfony-cmf/Routing/contributors"
- }
- ],
- "description": "Extends the Symfony2 routing component for dynamic routes and chaining several routers",
- "homepage": "http://cmf.symfony.com",
- "keywords": [
- "database",
- "routing"
- ]
- },
- {
- "name": "symfony/class-loader",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/class-loader.git",
- "reference": "4513348012c25148f8cbc3a7761a1d1e60ca3e87"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/class-loader/zipball/4513348012c25148f8cbc3a7761a1d1e60ca3e87",
- "reference": "4513348012c25148f8cbc3a7761a1d1e60ca3e87",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "require-dev": {
- "symfony/finder": "~2.8|~3.0|~4.0",
- "symfony/polyfill-apcu": "~1.1"
- },
- "suggest": {
- "symfony/polyfill-apcu": "For using ApcClassLoader on HHVM"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\ClassLoader\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony ClassLoader Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "17c5d8941eb75a03d19bc76a43757738632d87b3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/17c5d8941eb75a03d19bc76a43757738632d87b3",
- "reference": "17c5d8941eb75a03d19bc76a43757738632d87b3",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "a700b874d3692bc8342199adfb6d3b99f62cc61a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/a700b874d3692bc8342199adfb6d3b99f62cc61a",
- "reference": "a700b874d3692bc8342199adfb6d3b99f62cc61a",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "time": "2019-01-04T04:42:43+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/css-selector",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/css-selector.git",
- "reference": "12f86295c46c36af9896cf21db6b6b8a1465315d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/css-selector/zipball/12f86295c46c36af9896cf21db6b6b8a1465315d",
- "reference": "12f86295c46c36af9896cf21db6b6b8a1465315d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "time": "2019-01-02T09:30:52+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\CssSelector\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jean-François Simon",
- "email": "jeanfrancois.simon@sensiolabs.com"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony CssSelector Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "26d7f23b9bd0b93bee5583e4d6ca5cb1ab31b186"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/26d7f23b9bd0b93bee5583e4d6ca5cb1ab31b186",
- "reference": "26d7f23b9bd0b93bee5583e4d6ca5cb1ab31b186",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/dependency-injection",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/dependency-injection.git",
- "reference": "928a38b18bd632d67acbca74d0b2eed09915e83e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/928a38b18bd632d67acbca74d0b2eed09915e83e",
- "reference": "928a38b18bd632d67acbca74d0b2eed09915e83e",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/container": "^1.0"
- },
- "conflict": {
- "symfony/config": "<3.3.7",
- "symfony/finder": "<3.3",
- "symfony/proxy-manager-bridge": "<3.4",
- "symfony/yaml": "<3.4"
- },
- "provide": {
- "psr/container-implementation": "1.0"
- },
- "require-dev": {
- "symfony/config": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/config": "",
- "symfony/expression-language": "For using expressions in service container configuration",
- "symfony/finder": "For using double-star glob patterns or when GLOB_BRACE portability is required",
- "symfony/proxy-manager-bridge": "Generate service proxies to lazy load them",
- "symfony/yaml": ""
- },
- "time": "2019-01-05T12:26:58+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\DependencyInjection\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony DependencyInjection Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/dom-crawler",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/dom-crawler.git",
- "reference": "311f666d85d1075b0a294ba1f3de4ae9307d8180"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/311f666d85d1075b0a294ba1f3de4ae9307d8180",
- "reference": "311f666d85d1075b0a294ba1f3de4ae9307d8180",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "symfony/css-selector": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/css-selector": ""
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\DomCrawler\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony DomCrawler Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "d1cdd46c53c264a2bd42505bd0e8ce21423bd0e2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d1cdd46c53c264a2bd42505bd0e8ce21423bd0e2",
- "reference": "d1cdd46c53c264a2bd42505bd0e8ce21423bd0e2",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "time": "2019-01-01T18:08:36+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "c24ce3d18ccc9bb9d7e1d6ce9330fcc6061cafde"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/c24ce3d18ccc9bb9d7e1d6ce9330fcc6061cafde",
- "reference": "c24ce3d18ccc9bb9d7e1d6ce9330fcc6061cafde",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "3f2a2ab6315dd7682d4c16dcae1e7b95c8b8555e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/3f2a2ab6315dd7682d4c16dcae1e7b95c8b8555e",
- "reference": "3f2a2ab6315dd7682d4c16dcae1e7b95c8b8555e",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/http-foundation",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/http-foundation.git",
- "reference": "2b97319e68816d2120eee7f13f4b76da12e04d03"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/http-foundation/zipball/2b97319e68816d2120eee7f13f4b76da12e04d03",
- "reference": "2b97319e68816d2120eee7f13f4b76da12e04d03",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-mbstring": "~1.1",
- "symfony/polyfill-php70": "~1.6"
- },
- "require-dev": {
- "symfony/expression-language": "~2.8|~3.0|~4.0"
- },
- "time": "2019-01-05T08:05:37+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\HttpFoundation\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony HttpFoundation Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/http-kernel",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/http-kernel.git",
- "reference": "60bd9d7444ca436e131c347d78ec039dd99a34b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/http-kernel/zipball/60bd9d7444ca436e131c347d78ec039dd99a34b4",
- "reference": "60bd9d7444ca436e131c347d78ec039dd99a34b4",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/http-foundation": "~3.4.12|~4.0.12|^4.1.1",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/config": "<2.8",
- "symfony/dependency-injection": "<3.4.10|<4.0.10,>=4",
- "symfony/var-dumper": "<3.3",
- "twig/twig": "<1.34|<2.4,>=2"
- },
- "provide": {
- "psr/log-implementation": "1.0"
- },
- "require-dev": {
- "psr/cache": "~1.0",
- "symfony/browser-kit": "~2.8|~3.0|~4.0",
- "symfony/class-loader": "~2.8|~3.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/console": "~2.8|~3.0|~4.0",
- "symfony/css-selector": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "^3.4.10|^4.0.10",
- "symfony/dom-crawler": "~2.8|~3.0|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/finder": "~2.8|~3.0|~4.0",
- "symfony/process": "~2.8|~3.0|~4.0",
- "symfony/routing": "~3.4|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0",
- "symfony/templating": "~2.8|~3.0|~4.0",
- "symfony/translation": "~2.8|~3.0|~4.0",
- "symfony/var-dumper": "~3.3|~4.0"
- },
- "suggest": {
- "symfony/browser-kit": "",
- "symfony/config": "",
- "symfony/console": "",
- "symfony/dependency-injection": "",
- "symfony/finder": "",
- "symfony/var-dumper": ""
- },
- "time": "2019-01-06T15:53:59+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\HttpKernel\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony HttpKernel Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "time": "2018-08-06T14:22:27+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ]
- },
- {
- "name": "symfony/polyfill-iconv",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-iconv.git",
- "reference": "97001cfc283484c9691769f51cdf25259037eba2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/97001cfc283484c9691769f51cdf25259037eba2",
- "reference": "97001cfc283484c9691769f51cdf25259037eba2",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-iconv": "For best performance"
- },
- "time": "2018-09-21T06:26:08+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Iconv\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Iconv extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "iconv",
- "polyfill",
- "portable",
- "shim"
- ]
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "time": "2018-09-21T13:07:52+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ]
- },
- {
- "name": "symfony/polyfill-php70",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-php70.git",
- "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/6b88000cdd431cd2e940caa2cb569201f3f84224",
- "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224",
- "shasum": ""
- },
- "require": {
- "paragonie/random_compat": "~1.0|~2.0|~9.99",
- "php": ">=5.3.3"
- },
- "time": "2018-09-21T06:26:08+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php70\\": ""
- },
- "files": [
- "bootstrap.php"
- ],
- "classmap": [
- "Resources/stubs"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
- ]
- },
- {
- "name": "symfony/polyfill-php72",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-php72.git",
- "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9050816e2ca34a8e916c3a0ae8b9c2fccf68b631",
- "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "time": "2018-09-21T13:07:52+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php72\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
- ]
- },
- {
- "name": "symfony/process",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "0d41dd7d95ed179aed6a13393b0f4f97bfa2d25c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/0d41dd7d95ed179aed6a13393b0f4f97bfa2d25c",
- "reference": "0d41dd7d95ed179aed6a13393b0f4f97bfa2d25c",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "time": "2019-01-02T21:24:08+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/psr-http-message-bridge",
- "version": "v1.1.0",
- "version_normalized": "1.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/psr-http-message-bridge.git",
- "reference": "53c15a6a7918e6c2ab16ae370ea607fb40cab196"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/53c15a6a7918e6c2ab16ae370ea607fb40cab196",
- "reference": "53c15a6a7918e6c2ab16ae370ea607fb40cab196",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "psr/http-message": "^1.0",
- "symfony/http-foundation": "^2.3.42 || ^3.4 || ^4.0"
- },
- "require-dev": {
- "symfony/phpunit-bridge": "^3.4 || 4.0"
- },
- "suggest": {
- "psr/http-factory-implementation": "To use the PSR-17 factory",
- "psr/http-message-implementation": "To use the HttpFoundation factory",
- "zendframework/zend-diactoros": "To use the Zend Diactoros factory"
- },
- "time": "2018-08-30T16:28:28+00:00",
- "type": "symfony-bridge",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Bridge\\PsrHttpMessage\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "PSR HTTP message bridge",
- "homepage": "http://symfony.com",
- "keywords": [
- "http",
- "http-message",
- "psr-7"
- ]
- },
- {
- "name": "symfony/routing",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/routing.git",
- "reference": "445d3629a26930158347a50d1a5f2456c49e0ae6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/routing/zipball/445d3629a26930158347a50d1a5f2456c49e0ae6",
- "reference": "445d3629a26930158347a50d1a5f2456c49e0ae6",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/config": "<3.3.1",
- "symfony/dependency-injection": "<3.3",
- "symfony/yaml": "<3.4"
- },
- "require-dev": {
- "doctrine/annotations": "~1.0",
- "psr/log": "~1.0",
- "symfony/config": "^3.3.1|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/http-foundation": "~2.8|~3.0|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "doctrine/annotations": "For using the annotation loader",
- "symfony/config": "For using the all-in-one router or any loader",
- "symfony/dependency-injection": "For loading routes from a service",
- "symfony/expression-language": "For using expression matching",
- "symfony/http-foundation": "For using a Symfony Request object",
- "symfony/yaml": "For using the YAML loader"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Routing\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Routing Component",
- "homepage": "https://symfony.com",
- "keywords": [
- "router",
- "routing",
- "uri",
- "url"
- ]
- },
- {
- "name": "symfony/serializer",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/serializer.git",
- "reference": "3bb84f8a785bf30be3d4aef6f3c80f103acc54df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/serializer/zipball/3bb84f8a785bf30be3d4aef6f3c80f103acc54df",
- "reference": "3bb84f8a785bf30be3d4aef6f3c80f103acc54df",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "phpdocumentor/type-resolver": "<0.2.1",
- "symfony/dependency-injection": "<3.2",
- "symfony/property-access": ">=3.0,<3.0.4|>=2.8,<2.8.4",
- "symfony/property-info": "<3.1",
- "symfony/yaml": "<3.4"
- },
- "require-dev": {
- "doctrine/annotations": "~1.0",
- "doctrine/cache": "~1.0",
- "phpdocumentor/reflection-docblock": "^3.0|^4.0",
- "symfony/cache": "~3.1|~4.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.2|~4.0",
- "symfony/http-foundation": "~2.8|~3.0|~4.0",
- "symfony/property-access": "~2.8|~3.0|~4.0",
- "symfony/property-info": "~3.1|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "doctrine/annotations": "For using the annotation mapping. You will also need doctrine/cache.",
- "doctrine/cache": "For using the default cached annotation reader and metadata cache.",
- "psr/cache-implementation": "For using the metadata cache.",
- "symfony/config": "For using the XML mapping loader.",
- "symfony/http-foundation": "To use the DataUriNormalizer.",
- "symfony/property-access": "For using the ObjectNormalizer.",
- "symfony/property-info": "To deserialize relations.",
- "symfony/yaml": "For using the default YAML mapping loader."
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Serializer\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Serializer Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/translation",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/translation.git",
- "reference": "5f357063f4907cef47e5cf82fa3187fbfb700456"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/translation/zipball/5f357063f4907cef47e5cf82fa3187fbfb700456",
- "reference": "5f357063f4907cef47e5cf82fa3187fbfb700456",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/config": "<2.8",
- "symfony/dependency-injection": "<3.4",
- "symfony/yaml": "<3.4"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/finder": "~2.8|~3.0|~4.0",
- "symfony/intl": "^2.8.18|^3.2.5|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "To use logging capability in translator",
- "symfony/config": "",
- "symfony/yaml": ""
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Translation\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Translation Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/validator",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/validator.git",
- "reference": "cd3fba16d309347883b74bb0ee8cb4720a60554c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/validator/zipball/cd3fba16d309347883b74bb0ee8cb4720a60554c",
- "reference": "cd3fba16d309347883b74bb0ee8cb4720a60554c",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8",
- "symfony/polyfill-mbstring": "~1.0",
- "symfony/translation": "~2.8|~3.0|~4.0"
- },
- "conflict": {
- "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
- "symfony/dependency-injection": "<3.3",
- "symfony/http-kernel": "<3.3.5",
- "symfony/yaml": "<3.4"
- },
- "require-dev": {
- "doctrine/annotations": "~1.0",
- "doctrine/cache": "~1.0",
- "egulias/email-validator": "^1.2.8|~2.0",
- "symfony/cache": "~3.1|~4.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/http-foundation": "~2.8|~3.0|~4.0",
- "symfony/http-kernel": "^3.3.5|~4.0",
- "symfony/intl": "^2.8.18|^3.2.5|~4.0",
- "symfony/property-access": "~2.8|~3.0|~4.0",
- "symfony/var-dumper": "~3.3|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "doctrine/annotations": "For using the annotation mapping. You will also need doctrine/cache.",
- "doctrine/cache": "For using the default cached annotation reader and metadata cache.",
- "egulias/email-validator": "Strict (RFC compliant) email validation",
- "psr/cache-implementation": "For using the metadata cache.",
- "symfony/config": "",
- "symfony/expression-language": "For using the Expression validator",
- "symfony/http-foundation": "",
- "symfony/intl": "",
- "symfony/property-access": "For accessing properties within comparison constraints",
- "symfony/yaml": ""
- },
- "time": "2019-01-06T14:07:11+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Validator\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Validator Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/var-dumper",
- "version": "v4.2.2",
- "version_normalized": "4.2.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/var-dumper.git",
- "reference": "85bde661b178173d85c6f11ea9d03b61d1212bb2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/85bde661b178173d85c6f11ea9d03b61d1212bb2",
- "reference": "85bde661b178173d85c6f11ea9d03b61d1212bb2",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-mbstring": "~1.0",
- "symfony/polyfill-php72": "~1.5"
- },
- "conflict": {
- "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "ext-iconv": "*",
- "symfony/console": "~3.4|~4.0",
- "symfony/process": "~3.4|~4.0",
- "twig/twig": "~1.34|~2.4"
- },
- "suggest": {
- "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
- "ext-intl": "To show region name in time zone dump",
- "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script"
- },
- "time": "2019-01-03T09:07:35+00:00",
- "bin": [
- "Resources/bin/var-dump-server"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "Resources/functions/dump.php"
- ],
- "psr-4": {
- "Symfony\\Component\\VarDumper\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony mechanism for exploring and dumping PHP variables",
- "homepage": "https://symfony.com",
- "keywords": [
- "debug",
- "dump"
- ]
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.21",
- "version_normalized": "3.4.21.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "554a59a1ccbaac238a89b19c8e551a556fd0e2ea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/554a59a1ccbaac238a89b19c8e551a556fd0e2ea",
- "reference": "554a59a1ccbaac238a89b19c8e551a556fd0e2ea",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "time": "2019-01-01T13:45:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "twig/twig",
- "version": "v1.37.1",
- "version_normalized": "1.37.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/twigphp/Twig.git",
- "reference": "66be9366c76cbf23e82e7171d47cbfa54a057a62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/66be9366c76cbf23e82e7171d47cbfa54a057a62",
- "reference": "66be9366c76cbf23e82e7171d47cbfa54a057a62",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "psr/container": "^1.0",
- "symfony/debug": "^2.7",
- "symfony/phpunit-bridge": "^3.4.19|^4.1.8"
- },
- "time": "2019-01-14T14:59:29+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.37-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Twig_": "lib/"
- },
- "psr-4": {
- "Twig\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Armin Ronacher",
- "email": "armin.ronacher@active-4.com",
- "role": "Project Founder"
- },
- {
- "name": "Twig Team",
- "homepage": "https://twig.symfony.com/contributors",
- "role": "Contributors"
- }
- ],
- "description": "Twig, the flexible, fast, and secure template language for PHP",
- "homepage": "https://twig.symfony.com",
- "keywords": [
- "templating"
- ]
- },
- {
- "name": "typo3/phar-stream-wrapper",
- "version": "v2.0.1",
- "version_normalized": "2.0.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/TYPO3/phar-stream-wrapper.git",
- "reference": "0469d9fefa0146ea4299d3b11cfbb76faa7045bf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/TYPO3/phar-stream-wrapper/zipball/0469d9fefa0146ea4299d3b11cfbb76faa7045bf",
- "reference": "0469d9fefa0146ea4299d3b11cfbb76faa7045bf",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3|^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "time": "2018-10-18T08:46:28+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "TYPO3\\PharStreamWrapper\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Interceptors for PHP's native phar:// stream handling",
- "homepage": "https://typo3.org/",
- "keywords": [
- "phar",
- "php",
- "security",
- "stream-wrapper"
- ]
- },
- {
- "name": "vlucas/phpdotenv",
- "version": "v2.5.2",
- "version_normalized": "2.5.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/vlucas/phpdotenv.git",
- "reference": "cfd5dc225767ca154853752abc93aeec040fcf36"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/cfd5dc225767ca154853752abc93aeec040fcf36",
- "reference": "cfd5dc225767ca154853752abc93aeec040fcf36",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.0"
- },
- "time": "2018-10-30T17:29:25+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Dotenv\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Vance Lucas",
- "email": "vance@vancelucas.com",
- "homepage": "http://www.vancelucas.com"
- }
- ],
- "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
- "keywords": [
- "dotenv",
- "env",
- "environment"
- ]
- },
- {
- "name": "webflo/drupal-finder",
- "version": "1.1.0",
- "version_normalized": "1.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webflo/drupal-finder.git",
- "reference": "8a7886c575d6eaa67a425dceccc84e735c0b9637"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webflo/drupal-finder/zipball/8a7886c575d6eaa67a425dceccc84e735c0b9637",
- "reference": "8a7886c575d6eaa67a425dceccc84e735c0b9637",
- "shasum": ""
- },
- "require-dev": {
- "mikey179/vfsstream": "^1.6",
- "phpunit/phpunit": "^4.8"
- },
- "time": "2017-10-24T08:12:11+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/DrupalFinder.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Florian Weber",
- "email": "florian@webflo.org"
- }
- ],
- "description": "Helper class to locate a Drupal installation from a given path."
- },
- {
- "name": "webmozart/assert",
- "version": "1.4.0",
- "version_normalized": "1.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "time": "2018-12-25T11:19:39+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ]
- },
- {
- "name": "webmozart/path-util",
- "version": "2.3.0",
- "version_normalized": "2.3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/path-util.git",
- "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725",
- "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "webmozart/assert": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "time": "2015-12-17T08:42:14+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Webmozart\\PathUtil\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths."
- },
- {
- "name": "zendframework/zend-diactoros",
- "version": "1.8.6",
- "version_normalized": "1.8.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/zend-diactoros.git",
- "reference": "20da13beba0dde8fb648be3cc19765732790f46e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/20da13beba0dde8fb648be3cc19765732790f46e",
- "reference": "20da13beba0dde8fb648be3cc19765732790f46e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "psr/http-message": "^1.0"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "ext-dom": "*",
- "ext-libxml": "*",
- "php-http/psr7-integration-tests": "dev-master",
- "phpunit/phpunit": "^5.7.16 || ^6.0.8 || ^7.2.7",
- "zendframework/zend-coding-standard": "~1.0"
- },
- "time": "2018-09-05T19:29:37+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev",
- "dev-develop": "1.9.x-dev",
- "dev-release-2.0": "2.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/functions/create_uploaded_file.php",
- "src/functions/marshal_headers_from_sapi.php",
- "src/functions/marshal_method_from_sapi.php",
- "src/functions/marshal_protocol_version_from_sapi.php",
- "src/functions/marshal_uri_from_sapi.php",
- "src/functions/normalize_server.php",
- "src/functions/normalize_uploaded_files.php",
- "src/functions/parse_cookie_header.php"
- ],
- "psr-4": {
- "Zend\\Diactoros\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause"
- ],
- "description": "PSR HTTP Message implementations",
- "homepage": "https://github.com/zendframework/zend-diactoros",
- "keywords": [
- "http",
- "psr",
- "psr-7"
- ]
- },
- {
- "name": "zendframework/zend-escaper",
- "version": "2.6.0",
- "version_normalized": "2.6.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/zend-escaper.git",
- "reference": "31d8aafae982f9568287cb4dce987e6aff8fd074"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-escaper/zipball/31d8aafae982f9568287cb4dce987e6aff8fd074",
- "reference": "31d8aafae982f9568287cb4dce987e6aff8fd074",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
- "zendframework/zend-coding-standard": "~1.0.0"
- },
- "time": "2018-04-25T15:48:53+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.6.x-dev",
- "dev-develop": "2.7.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Zend\\Escaper\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs",
- "keywords": [
- "ZendFramework",
- "escaper",
- "zf"
- ]
- },
- {
- "name": "zendframework/zend-feed",
- "version": "2.10.3",
- "version_normalized": "2.10.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/zend-feed.git",
- "reference": "6641f4cf3f4586c63f83fd70b6d19966025c8888"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-feed/zipball/6641f4cf3f4586c63f83fd70b6d19966025c8888",
- "reference": "6641f4cf3f4586c63f83fd70b6d19966025c8888",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "zendframework/zend-escaper": "^2.5.2",
- "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.23 || ^6.4.3",
- "psr/http-message": "^1.0.1",
- "zendframework/zend-cache": "^2.7.2",
- "zendframework/zend-coding-standard": "~1.0.0",
- "zendframework/zend-db": "^2.8.2",
- "zendframework/zend-http": "^2.7",
- "zendframework/zend-servicemanager": "^2.7.8 || ^3.3",
- "zendframework/zend-validator": "^2.10.1"
- },
- "suggest": {
- "psr/http-message": "PSR-7 ^1.0.1, if you wish to use Zend\\Feed\\Reader\\Http\\Psr7ResponseDecorator",
- "zendframework/zend-cache": "Zend\\Cache component, for optionally caching feeds between requests",
- "zendframework/zend-db": "Zend\\Db component, for use with PubSubHubbub",
- "zendframework/zend-http": "Zend\\Http for PubSubHubbub, and optionally for use with Zend\\Feed\\Reader",
- "zendframework/zend-servicemanager": "Zend\\ServiceManager component, for easily extending ExtensionManager implementations",
- "zendframework/zend-validator": "Zend\\Validator component, for validating email addresses used in Atom feeds and entries when using the Writer subcomponent"
- },
- "time": "2018-08-01T13:53:20+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.10.x-dev",
- "dev-develop": "2.11.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Zend\\Feed\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "provides functionality for consuming RSS and Atom feeds",
- "keywords": [
- "ZendFramework",
- "feed",
- "zf"
- ]
- },
- {
- "name": "zendframework/zend-stdlib",
- "version": "3.2.1",
- "version_normalized": "3.2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/zendframework/zend-stdlib.git",
- "reference": "66536006722aff9e62d1b331025089b7ec71c065"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-stdlib/zipball/66536006722aff9e62d1b331025089b7ec71c065",
- "reference": "66536006722aff9e62d1b331025089b7ec71c065",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpbench/phpbench": "^0.13",
- "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
- "zendframework/zend-coding-standard": "~1.0.0"
- },
- "time": "2018-08-28T21:34:05+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev",
- "dev-develop": "3.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Zend\\Stdlib\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "SPL extensions, array utilities, error handlers, and more",
- "keywords": [
- "ZendFramework",
- "stdlib",
- "zf"
- ]
- }
-]
diff --git a/vendor/composer/installers/LICENSE b/vendor/composer/installers/LICENSE
deleted file mode 100644
index 85f97fc79..000000000
--- a/vendor/composer/installers/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2012 Kyle Robinson Young
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
\ No newline at end of file
diff --git a/vendor/composer/installers/composer.json b/vendor/composer/installers/composer.json
deleted file mode 100644
index 6de40853c..000000000
--- a/vendor/composer/installers/composer.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "name": "composer/installers",
- "type": "composer-plugin",
- "license": "MIT",
- "description": "A multi-framework Composer library installer",
- "keywords": [
- "installer",
- "Aimeos",
- "AGL",
- "AnnotateCms",
- "Attogram",
- "Bitrix",
- "CakePHP",
- "Chef",
- "Cockpit",
- "CodeIgniter",
- "concrete5",
- "Craft",
- "Croogo",
- "DokuWiki",
- "Dolibarr",
- "Drupal",
- "Elgg",
- "Eliasis",
- "ExpressionEngine",
- "eZ Platform",
- "FuelPHP",
- "Grav",
- "Hurad",
- "ImageCMS",
- "iTop",
- "Joomla",
- "Kanboard",
- "Kohana",
- "Lan Management System",
- "Laravel",
- "Lavalite",
- "Lithium",
- "Magento",
- "majima",
- "Mako",
- "Mautic",
- "Maya",
- "MODX",
- "MODX Evo",
- "MediaWiki",
- "OXID",
- "osclass",
- "MODULEWork",
- "Moodle",
- "Piwik",
- "pxcms",
- "phpBB",
- "Plentymarkets",
- "PPI",
- "Puppet",
- "Porto",
- "RadPHP",
- "ReIndex",
- "Roundcube",
- "shopware",
- "SilverStripe",
- "SMF",
- "SyDES",
- "symfony",
- "Thelia",
- "TYPO3",
- "WolfCMS",
- "WordPress",
- "YAWIK",
- "Zend",
- "Zikula"
- ],
- "homepage": "https://composer.github.io/installers/",
- "authors": [
- {
- "name": "Kyle Robinson Young",
- "email": "kyle@dontkry.com",
- "homepage": "https://github.com/shama"
- }
- ],
- "autoload": {
- "psr-4": { "Composer\\Installers\\": "src/Composer/Installers" }
- },
- "extra": {
- "class": "Composer\\Installers\\Plugin",
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "replace": {
- "shama/baton": "*",
- "roundcube/plugin-installer": "*"
- },
- "require": {
- "composer-plugin-api": "^1.0"
- },
- "require-dev": {
- "composer/composer": "1.0.*@dev",
- "phpunit/phpunit": "^4.8.36"
- },
- "scripts": {
- "test": "phpunit"
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/AglInstaller.php b/vendor/composer/installers/src/Composer/Installers/AglInstaller.php
deleted file mode 100644
index 01b8a4165..000000000
--- a/vendor/composer/installers/src/Composer/Installers/AglInstaller.php
+++ /dev/null
@@ -1,21 +0,0 @@
- 'More/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
- return strtoupper($matches[1]);
- }, $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php b/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php
deleted file mode 100644
index 79a0e958f..000000000
--- a/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'ext/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php b/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php
deleted file mode 100644
index 89d7ad905..000000000
--- a/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'addons/modules/{$name}/',
- 'component' => 'addons/components/{$name}/',
- 'service' => 'addons/services/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php b/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
deleted file mode 100644
index 22dad1b9a..000000000
--- a/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
+++ /dev/null
@@ -1,49 +0,0 @@
- 'Modules/{$name}/',
- 'theme' => 'Themes/{$name}/'
- );
-
- /**
- * Format package name.
- *
- * For package type asgard-module, cut off a trailing '-plugin' if present.
- *
- * For package type asgard-theme, cut off a trailing '-theme' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'asgard-module') {
- return $this->inflectPluginVars($vars);
- }
-
- if ($vars['type'] === 'asgard-theme') {
- return $this->inflectThemeVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectPluginVars($vars)
- {
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-
- protected function inflectThemeVars($vars)
- {
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php b/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php
deleted file mode 100644
index d62fd8fd1..000000000
--- a/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'modules/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php b/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php
deleted file mode 100644
index 7082bf2cb..000000000
--- a/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php
+++ /dev/null
@@ -1,136 +0,0 @@
-composer = $composer;
- $this->package = $package;
- $this->io = $io;
- }
-
- /**
- * Return the install path based on package type.
- *
- * @param PackageInterface $package
- * @param string $frameworkType
- * @return string
- */
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
- {
- $type = $this->package->getType();
-
- $prettyName = $this->package->getPrettyName();
- if (strpos($prettyName, '/') !== false) {
- list($vendor, $name) = explode('/', $prettyName);
- } else {
- $vendor = '';
- $name = $prettyName;
- }
-
- $availableVars = $this->inflectPackageVars(compact('name', 'vendor', 'type'));
-
- $extra = $package->getExtra();
- if (!empty($extra['installer-name'])) {
- $availableVars['name'] = $extra['installer-name'];
- }
-
- if ($this->composer->getPackage()) {
- $extra = $this->composer->getPackage()->getExtra();
- if (!empty($extra['installer-paths'])) {
- $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
- if ($customPath !== false) {
- return $this->templatePath($customPath, $availableVars);
- }
- }
- }
-
- $packageType = substr($type, strlen($frameworkType) + 1);
- $locations = $this->getLocations();
- if (!isset($locations[$packageType])) {
- throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type));
- }
-
- return $this->templatePath($locations[$packageType], $availableVars);
- }
-
- /**
- * For an installer to override to modify the vars per installer.
- *
- * @param array $vars
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- return $vars;
- }
-
- /**
- * Gets the installer's locations
- *
- * @return array
- */
- public function getLocations()
- {
- return $this->locations;
- }
-
- /**
- * Replace vars in a path
- *
- * @param string $path
- * @param array $vars
- * @return string
- */
- protected function templatePath($path, array $vars = array())
- {
- if (strpos($path, '{') !== false) {
- extract($vars);
- preg_match_all('@\{\$([A-Za-z0-9_]*)\}@i', $path, $matches);
- if (!empty($matches[1])) {
- foreach ($matches[1] as $var) {
- $path = str_replace('{$' . $var . '}', $$var, $path);
- }
- }
- }
-
- return $path;
- }
-
- /**
- * Search through a passed paths array for a custom install path.
- *
- * @param array $paths
- * @param string $name
- * @param string $type
- * @param string $vendor = NULL
- * @return string
- */
- protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)
- {
- foreach ($paths as $path => $names) {
- if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) {
- return $path;
- }
- }
-
- return false;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php b/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php
deleted file mode 100644
index e80cd1e10..000000000
--- a/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php
+++ /dev/null
@@ -1,126 +0,0 @@
-.`.
- * - `bitrix-d7-component` — copy the component to directory `bitrix/components//`.
- * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/_`.
- *
- * You can set custom path to directory with Bitrix kernel in `composer.json`:
- *
- * ```json
- * {
- * "extra": {
- * "bitrix-dir": "s1/bitrix"
- * }
- * }
- * ```
- *
- * @author Nik Samokhvalov
- * @author Denis Kulichkin
- */
-class BitrixInstaller extends BaseInstaller
-{
- protected $locations = array(
- 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
- 'component' => '{$bitrix_dir}/components/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
- 'theme' => '{$bitrix_dir}/templates/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
- 'd7-module' => '{$bitrix_dir}/modules/{$vendor}.{$name}/',
- 'd7-component' => '{$bitrix_dir}/components/{$vendor}/{$name}/',
- 'd7-template' => '{$bitrix_dir}/templates/{$vendor}_{$name}/',
- );
-
- /**
- * @var array Storage for informations about duplicates at all the time of installation packages.
- */
- private static $checkedDuplicates = array();
-
- /**
- * {@inheritdoc}
- */
- public function inflectPackageVars($vars)
- {
- if ($this->composer->getPackage()) {
- $extra = $this->composer->getPackage()->getExtra();
-
- if (isset($extra['bitrix-dir'])) {
- $vars['bitrix_dir'] = $extra['bitrix-dir'];
- }
- }
-
- if (!isset($vars['bitrix_dir'])) {
- $vars['bitrix_dir'] = 'bitrix';
- }
-
- return parent::inflectPackageVars($vars);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function templatePath($path, array $vars = array())
- {
- $templatePath = parent::templatePath($path, $vars);
- $this->checkDuplicates($templatePath, $vars);
-
- return $templatePath;
- }
-
- /**
- * Duplicates search packages.
- *
- * @param string $path
- * @param array $vars
- */
- protected function checkDuplicates($path, array $vars = array())
- {
- $packageType = substr($vars['type'], strlen('bitrix') + 1);
- $localDir = explode('/', $vars['bitrix_dir']);
- array_pop($localDir);
- $localDir[] = 'local';
- $localDir = implode('/', $localDir);
-
- $oldPath = str_replace(
- array('{$bitrix_dir}', '{$name}'),
- array($localDir, $vars['name']),
- $this->locations[$packageType]
- );
-
- if (in_array($oldPath, static::$checkedDuplicates)) {
- return;
- }
-
- if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) {
-
- $this->io->writeError(' Duplication of packages: ');
- $this->io->writeError(' Package ' . $oldPath . ' will be called instead package ' . $path . ' ');
-
- while (true) {
- switch ($this->io->ask(' Delete ' . $oldPath . ' [y,n,?]? ', '?')) {
- case 'y':
- $fs = new Filesystem();
- $fs->removeDirectory($oldPath);
- break 2;
-
- case 'n':
- break 2;
-
- case '?':
- default:
- $this->io->writeError(array(
- ' y - delete package ' . $oldPath . ' and to continue with the installation',
- ' n - don\'t delete and to continue with the installation',
- ));
- $this->io->writeError(' ? - print help');
- break;
- }
- }
- }
-
- static::$checkedDuplicates[] = $oldPath;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php b/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php
deleted file mode 100644
index da3aad2a3..000000000
--- a/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'Packages/{$vendor}/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php b/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
deleted file mode 100644
index 6352beb11..000000000
--- a/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
+++ /dev/null
@@ -1,82 +0,0 @@
- 'Plugin/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- if ($this->matchesCakeVersion('>=', '3.0.0')) {
- return $vars;
- }
-
- $nameParts = explode('/', $vars['name']);
- foreach ($nameParts as &$value) {
- $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
- $value = str_replace(array('-', '_'), ' ', $value);
- $value = str_replace(' ', '', ucwords($value));
- }
- $vars['name'] = implode('/', $nameParts);
-
- return $vars;
- }
-
- /**
- * Change the default plugin location when cakephp >= 3.0
- */
- public function getLocations()
- {
- if ($this->matchesCakeVersion('>=', '3.0.0')) {
- $this->locations['plugin'] = $this->composer->getConfig()->get('vendor-dir') . '/{$vendor}/{$name}/';
- }
- return $this->locations;
- }
-
- /**
- * Check if CakePHP version matches against a version
- *
- * @param string $matcher
- * @param string $version
- * @return bool
- */
- protected function matchesCakeVersion($matcher, $version)
- {
- if (class_exists('Composer\Semver\Constraint\MultiConstraint')) {
- $multiClass = 'Composer\Semver\Constraint\MultiConstraint';
- $constraintClass = 'Composer\Semver\Constraint\Constraint';
- } else {
- $multiClass = 'Composer\Package\LinkConstraint\MultiConstraint';
- $constraintClass = 'Composer\Package\LinkConstraint\VersionConstraint';
- }
-
- $repositoryManager = $this->composer->getRepositoryManager();
- if ($repositoryManager) {
- $repos = $repositoryManager->getLocalRepository();
- if (!$repos) {
- return false;
- }
- $cake3 = new $multiClass(array(
- new $constraintClass($matcher, $version),
- new $constraintClass('!=', '9999999-dev'),
- ));
- $pool = new Pool('dev');
- $pool->addRepository($repos);
- $packages = $pool->whatProvides('cakephp/cakephp');
- foreach ($packages as $package) {
- $installed = new $constraintClass('=', $package->getVersion());
- if ($cake3->matches($installed)) {
- return true;
- }
- }
- }
- return false;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php b/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php
deleted file mode 100644
index ab2f9aad8..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'Chef/{$vendor}/{$name}/',
- 'role' => 'Chef/roles/{$name}/',
- );
-}
-
diff --git a/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php b/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php
deleted file mode 100644
index 6673aea94..000000000
--- a/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'ext/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php b/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php
deleted file mode 100644
index c887815c9..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'CCF/orbit/{$name}/',
- 'theme' => 'CCF/app/themes/{$name}/',
- );
-}
\ No newline at end of file
diff --git a/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php b/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php
deleted file mode 100644
index c7816dfce..000000000
--- a/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php
+++ /dev/null
@@ -1,34 +0,0 @@
- 'cockpit/modules/addons/{$name}/',
- );
-
- /**
- * Format module name.
- *
- * Strip `module-` prefix from package name.
- *
- * @param array @vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] == 'cockpit-module') {
- return $this->inflectModuleVars($vars);
- }
-
- return $vars;
- }
-
- public function inflectModuleVars($vars)
- {
- $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php b/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php
deleted file mode 100644
index 3b4a4ece1..000000000
--- a/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'application/libraries/{$name}/',
- 'third-party' => 'application/third_party/{$name}/',
- 'module' => 'application/modules/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php b/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php
deleted file mode 100644
index 5c01bafd7..000000000
--- a/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php
+++ /dev/null
@@ -1,13 +0,0 @@
- 'concrete/',
- 'block' => 'application/blocks/{$name}/',
- 'package' => 'packages/{$name}/',
- 'theme' => 'application/themes/{$name}/',
- 'update' => 'updates/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php b/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php
deleted file mode 100644
index d37a77ae2..000000000
--- a/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php
+++ /dev/null
@@ -1,35 +0,0 @@
- 'craft/plugins/{$name}/',
- );
-
- /**
- * Strip `craft-` prefix and/or `-plugin` suffix from package names
- *
- * @param array $vars
- *
- * @return array
- */
- final public function inflectPackageVars($vars)
- {
- return $this->inflectPluginVars($vars);
- }
-
- private function inflectPluginVars($vars)
- {
- $vars['name'] = preg_replace('/-' . self::NAME_SUFFIX . '$/i', '', $vars['name']);
- $vars['name'] = preg_replace('/^' . self::NAME_PREFIX . '-/i', '', $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php b/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php
deleted file mode 100644
index d94219d3a..000000000
--- a/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php
+++ /dev/null
@@ -1,21 +0,0 @@
- 'Plugin/{$name}/',
- 'theme' => 'View/Themed/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name']));
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php b/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php
deleted file mode 100644
index f4837a6c1..000000000
--- a/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'app/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php b/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php
deleted file mode 100644
index cfd638d5f..000000000
--- a/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php
+++ /dev/null
@@ -1,50 +0,0 @@
- 'lib/plugins/{$name}/',
- 'template' => 'lib/tpl/{$name}/',
- );
-
- /**
- * Format package name.
- *
- * For package type dokuwiki-plugin, cut off a trailing '-plugin',
- * or leading dokuwiki_ if present.
- *
- * For package type dokuwiki-template, cut off a trailing '-template' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
-
- if ($vars['type'] === 'dokuwiki-plugin') {
- return $this->inflectPluginVars($vars);
- }
-
- if ($vars['type'] === 'dokuwiki-template') {
- return $this->inflectTemplateVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectPluginVars($vars)
- {
- $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
- $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectTemplateVars($vars)
- {
- $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
- $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
-
- return $vars;
- }
-
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php b/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php
deleted file mode 100644
index 21f7e8e80..000000000
--- a/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
- */
-class DolibarrInstaller extends BaseInstaller
-{
- //TODO: Add support for scripts and themes
- protected $locations = array(
- 'module' => 'htdocs/custom/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php b/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
deleted file mode 100644
index fef7c525d..000000000
--- a/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'core/',
- 'module' => 'modules/{$name}/',
- 'theme' => 'themes/{$name}/',
- 'library' => 'libraries/{$name}/',
- 'profile' => 'profiles/{$name}/',
- 'drush' => 'drush/{$name}/',
- 'custom-theme' => 'themes/custom/{$name}/',
- 'custom-module' => 'modules/custom/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php b/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php
deleted file mode 100644
index c0bb609f4..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'mod/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php b/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php
deleted file mode 100644
index 6f3dc97b1..000000000
--- a/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php
+++ /dev/null
@@ -1,12 +0,0 @@
- 'components/{$name}/',
- 'module' => 'modules/{$name}/',
- 'plugin' => 'plugins/{$name}/',
- 'template' => 'templates/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php b/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php
deleted file mode 100644
index d5321a8ca..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php
+++ /dev/null
@@ -1,29 +0,0 @@
- 'system/expressionengine/third_party/{$name}/',
- 'theme' => 'themes/third_party/{$name}/',
- );
-
- private $ee3Locations = array(
- 'addon' => 'system/user/addons/{$name}/',
- 'theme' => 'themes/user/{$name}/',
- );
-
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
- {
-
- $version = "{$frameworkType}Locations";
- $this->locations = $this->$version;
-
- return parent::getInstallPath($package, $frameworkType);
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php b/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php
deleted file mode 100644
index f30ebcc77..000000000
--- a/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'web/assets/ezplatform/',
- 'assets' => 'web/assets/ezplatform/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php b/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php
deleted file mode 100644
index 6eba2e34f..000000000
--- a/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'fuel/app/modules/{$name}/',
- 'package' => 'fuel/packages/{$name}/',
- 'theme' => 'fuel/app/themes/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php b/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php
deleted file mode 100644
index 29d980b30..000000000
--- a/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'components/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/GravInstaller.php b/vendor/composer/installers/src/Composer/Installers/GravInstaller.php
deleted file mode 100644
index dbe63e07e..000000000
--- a/vendor/composer/installers/src/Composer/Installers/GravInstaller.php
+++ /dev/null
@@ -1,30 +0,0 @@
- 'user/plugins/{$name}/',
- 'theme' => 'user/themes/{$name}/',
- );
-
- /**
- * Format package name
- *
- * @param array $vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- $restrictedWords = implode('|', array_keys($this->locations));
-
- $vars['name'] = strtolower($vars['name']);
- $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
- '$1',
- $vars['name']
- );
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php b/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php
deleted file mode 100644
index 8fe017f0f..000000000
--- a/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php
+++ /dev/null
@@ -1,25 +0,0 @@
- 'plugins/{$name}/',
- 'theme' => 'plugins/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $nameParts = explode('/', $vars['name']);
- foreach ($nameParts as &$value) {
- $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
- $value = str_replace(array('-', '_'), ' ', $value);
- $value = str_replace(' ', '', ucwords($value));
- }
- $vars['name'] = implode('/', $nameParts);
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php b/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php
deleted file mode 100644
index 5e2142ea5..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'templates/{$name}/',
- 'module' => 'application/modules/{$name}/',
- 'library' => 'application/libraries/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/Installer.php b/vendor/composer/installers/src/Composer/Installers/Installer.php
deleted file mode 100644
index 352cb7fae..000000000
--- a/vendor/composer/installers/src/Composer/Installers/Installer.php
+++ /dev/null
@@ -1,274 +0,0 @@
- 'AimeosInstaller',
- 'asgard' => 'AsgardInstaller',
- 'attogram' => 'AttogramInstaller',
- 'agl' => 'AglInstaller',
- 'annotatecms' => 'AnnotateCmsInstaller',
- 'bitrix' => 'BitrixInstaller',
- 'bonefish' => 'BonefishInstaller',
- 'cakephp' => 'CakePHPInstaller',
- 'chef' => 'ChefInstaller',
- 'civicrm' => 'CiviCrmInstaller',
- 'ccframework' => 'ClanCatsFrameworkInstaller',
- 'cockpit' => 'CockpitInstaller',
- 'codeigniter' => 'CodeIgniterInstaller',
- 'concrete5' => 'Concrete5Installer',
- 'craft' => 'CraftInstaller',
- 'croogo' => 'CroogoInstaller',
- 'dokuwiki' => 'DokuWikiInstaller',
- 'dolibarr' => 'DolibarrInstaller',
- 'decibel' => 'DecibelInstaller',
- 'drupal' => 'DrupalInstaller',
- 'elgg' => 'ElggInstaller',
- 'eliasis' => 'EliasisInstaller',
- 'ee3' => 'ExpressionEngineInstaller',
- 'ee2' => 'ExpressionEngineInstaller',
- 'ezplatform' => 'EzPlatformInstaller',
- 'fuel' => 'FuelInstaller',
- 'fuelphp' => 'FuelphpInstaller',
- 'grav' => 'GravInstaller',
- 'hurad' => 'HuradInstaller',
- 'imagecms' => 'ImageCMSInstaller',
- 'itop' => 'ItopInstaller',
- 'joomla' => 'JoomlaInstaller',
- 'kanboard' => 'KanboardInstaller',
- 'kirby' => 'KirbyInstaller',
- 'kodicms' => 'KodiCMSInstaller',
- 'kohana' => 'KohanaInstaller',
- 'lms' => 'LanManagementSystemInstaller',
- 'laravel' => 'LaravelInstaller',
- 'lavalite' => 'LavaLiteInstaller',
- 'lithium' => 'LithiumInstaller',
- 'magento' => 'MagentoInstaller',
- 'majima' => 'MajimaInstaller',
- 'mako' => 'MakoInstaller',
- 'maya' => 'MayaInstaller',
- 'mautic' => 'MauticInstaller',
- 'mediawiki' => 'MediaWikiInstaller',
- 'microweber' => 'MicroweberInstaller',
- 'modulework' => 'MODULEWorkInstaller',
- 'modx' => 'ModxInstaller',
- 'modxevo' => 'MODXEvoInstaller',
- 'moodle' => 'MoodleInstaller',
- 'october' => 'OctoberInstaller',
- 'ontowiki' => 'OntoWikiInstaller',
- 'oxid' => 'OxidInstaller',
- 'osclass' => 'OsclassInstaller',
- 'pxcms' => 'PxcmsInstaller',
- 'phpbb' => 'PhpBBInstaller',
- 'pimcore' => 'PimcoreInstaller',
- 'piwik' => 'PiwikInstaller',
- 'plentymarkets'=> 'PlentymarketsInstaller',
- 'ppi' => 'PPIInstaller',
- 'puppet' => 'PuppetInstaller',
- 'radphp' => 'RadPHPInstaller',
- 'phifty' => 'PhiftyInstaller',
- 'porto' => 'PortoInstaller',
- 'redaxo' => 'RedaxoInstaller',
- 'reindex' => 'ReIndexInstaller',
- 'roundcube' => 'RoundcubeInstaller',
- 'shopware' => 'ShopwareInstaller',
- 'sitedirect' => 'SiteDirectInstaller',
- 'silverstripe' => 'SilverStripeInstaller',
- 'smf' => 'SMFInstaller',
- 'sydes' => 'SyDESInstaller',
- 'symfony1' => 'Symfony1Installer',
- 'thelia' => 'TheliaInstaller',
- 'tusk' => 'TuskInstaller',
- 'typo3-cms' => 'TYPO3CmsInstaller',
- 'typo3-flow' => 'TYPO3FlowInstaller',
- 'userfrosting' => 'UserFrostingInstaller',
- 'vanilla' => 'VanillaInstaller',
- 'whmcs' => 'WHMCSInstaller',
- 'wolfcms' => 'WolfCMSInstaller',
- 'wordpress' => 'WordPressInstaller',
- 'yawik' => 'YawikInstaller',
- 'zend' => 'ZendInstaller',
- 'zikula' => 'ZikulaInstaller',
- 'prestashop' => 'PrestashopInstaller'
- );
-
- /**
- * Installer constructor.
- *
- * Disables installers specified in main composer extra installer-disable
- * list
- *
- * @param IOInterface $io
- * @param Composer $composer
- * @param string $type
- * @param Filesystem|null $filesystem
- * @param BinaryInstaller|null $binaryInstaller
- */
- public function __construct(
- IOInterface $io,
- Composer $composer,
- $type = 'library',
- Filesystem $filesystem = null,
- BinaryInstaller $binaryInstaller = null
- ) {
- parent::__construct($io, $composer, $type, $filesystem,
- $binaryInstaller);
- $this->removeDisabledInstallers();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getInstallPath(PackageInterface $package)
- {
- $type = $package->getType();
- $frameworkType = $this->findFrameworkType($type);
-
- if ($frameworkType === false) {
- throw new \InvalidArgumentException(
- 'Sorry the package type of this package is not yet supported.'
- );
- }
-
- $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
- $installer = new $class($package, $this->composer, $this->getIO());
-
- return $installer->getInstallPath($package, $frameworkType);
- }
-
- public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
- {
- parent::uninstall($repo, $package);
- $installPath = $this->getPackageBasePath($package);
- $this->io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? 'deleted ' : 'not deleted '));
- }
-
- /**
- * {@inheritDoc}
- */
- public function supports($packageType)
- {
- $frameworkType = $this->findFrameworkType($packageType);
-
- if ($frameworkType === false) {
- return false;
- }
-
- $locationPattern = $this->getLocationPattern($frameworkType);
-
- return preg_match('#' . $frameworkType . '-' . $locationPattern . '#', $packageType, $matches) === 1;
- }
-
- /**
- * Finds a supported framework type if it exists and returns it
- *
- * @param string $type
- * @return string
- */
- protected function findFrameworkType($type)
- {
- $frameworkType = false;
-
- krsort($this->supportedTypes);
-
- foreach ($this->supportedTypes as $key => $val) {
- if ($key === substr($type, 0, strlen($key))) {
- $frameworkType = substr($type, 0, strlen($key));
- break;
- }
- }
-
- return $frameworkType;
- }
-
- /**
- * Get the second part of the regular expression to check for support of a
- * package type
- *
- * @param string $frameworkType
- * @return string
- */
- protected function getLocationPattern($frameworkType)
- {
- $pattern = false;
- if (!empty($this->supportedTypes[$frameworkType])) {
- $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
- /** @var BaseInstaller $framework */
- $framework = new $frameworkClass(null, $this->composer, $this->getIO());
- $locations = array_keys($framework->getLocations());
- $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
- }
-
- return $pattern ? : '(\w+)';
- }
-
- /**
- * Get I/O object
- *
- * @return IOInterface
- */
- private function getIO()
- {
- return $this->io;
- }
-
- /**
- * Look for installers set to be disabled in composer's extra config and
- * remove them from the list of supported installers.
- *
- * Globals:
- * - true, "all", and "*" - disable all installers.
- * - false - enable all installers (useful with
- * wikimedia/composer-merge-plugin or similar)
- *
- * @return void
- */
- protected function removeDisabledInstallers()
- {
- $extra = $this->composer->getPackage()->getExtra();
-
- if (!isset($extra['installer-disable']) || $extra['installer-disable'] === false) {
- // No installers are disabled
- return;
- }
-
- // Get installers to disable
- $disable = $extra['installer-disable'];
-
- // Ensure $disabled is an array
- if (!is_array($disable)) {
- $disable = array($disable);
- }
-
- // Check which installers should be disabled
- $all = array(true, "all", "*");
- $intersect = array_intersect($all, $disable);
- if (!empty($intersect)) {
- // Disable all installers
- $this->supportedTypes = array();
- } else {
- // Disable specified installers
- foreach ($disable as $key => $installer) {
- if (is_string($installer) && key_exists($installer, $this->supportedTypes)) {
- unset($this->supportedTypes[$installer]);
- }
- }
- }
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php b/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php
deleted file mode 100644
index c6c1b3374..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'extensions/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php b/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php
deleted file mode 100644
index 9ee775965..000000000
--- a/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php
+++ /dev/null
@@ -1,15 +0,0 @@
- 'components/{$name}/',
- 'module' => 'modules/{$name}/',
- 'template' => 'templates/{$name}/',
- 'plugin' => 'plugins/{$name}/',
- 'library' => 'libraries/{$name}/',
- );
-
- // TODO: Add inflector for mod_ and com_ names
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php b/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php
deleted file mode 100644
index 9cb7b8cdb..000000000
--- a/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php
+++ /dev/null
@@ -1,18 +0,0 @@
- 'plugins/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php b/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php
deleted file mode 100644
index 36b2f84a7..000000000
--- a/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'site/plugins/{$name}/',
- 'field' => 'site/fields/{$name}/',
- 'tag' => 'site/tags/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php b/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php
deleted file mode 100644
index 7143e232b..000000000
--- a/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'cms/plugins/{$name}/',
- 'media' => 'cms/media/vendor/{$name}/'
- );
-}
\ No newline at end of file
diff --git a/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php b/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php
deleted file mode 100644
index dcd6d2632..000000000
--- a/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'modules/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php b/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php
deleted file mode 100644
index 903143a55..000000000
--- a/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php
+++ /dev/null
@@ -1,27 +0,0 @@
- 'plugins/{$name}/',
- 'template' => 'templates/{$name}/',
- 'document-template' => 'documents/templates/{$name}/',
- 'userpanel-module' => 'userpanel/modules/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php b/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php
deleted file mode 100644
index be4d53a7b..000000000
--- a/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'libraries/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php b/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php
deleted file mode 100644
index 412c0b5c0..000000000
--- a/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'packages/{$vendor}/{$name}/',
- 'theme' => 'public/themes/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php b/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php
deleted file mode 100644
index 47bbd4cab..000000000
--- a/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'libraries/{$name}/',
- 'source' => 'libraries/_source/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php b/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php
deleted file mode 100644
index 9c2e9fb40..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'modules/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php b/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php
deleted file mode 100644
index 5a664608d..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'assets/snippets/{$name}/',
- 'plugin' => 'assets/plugins/{$name}/',
- 'module' => 'assets/modules/{$name}/',
- 'template' => 'assets/templates/{$name}/',
- 'lib' => 'assets/lib/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php b/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php
deleted file mode 100644
index cf18e9478..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'app/design/frontend/{$name}/',
- 'skin' => 'skin/frontend/default/{$name}/',
- 'library' => 'lib/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php b/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php
deleted file mode 100644
index e463756fa..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php
+++ /dev/null
@@ -1,37 +0,0 @@
- 'plugins/{$name}/',
- );
-
- /**
- * Transforms the names
- * @param array $vars
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- return $this->correctPluginName($vars);
- }
-
- /**
- * Change hyphenated names to camelcase
- * @param array $vars
- * @return array
- */
- private function correctPluginName($vars)
- {
- $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) {
- return strtoupper($matches[0][1]);
- }, $vars['name']);
- $vars['name'] = ucfirst($camelCasedName);
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php b/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php
deleted file mode 100644
index ca3cfacb4..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'app/packages/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php b/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php
deleted file mode 100644
index 3e1ce2b2d..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php
+++ /dev/null
@@ -1,25 +0,0 @@
- 'plugins/{$name}/',
- 'theme' => 'themes/{$name}/',
- );
-
- /**
- * Format package name of mautic-plugins to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] == 'mautic-plugin') {
- $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
- return strtoupper($matches[0][1]);
- }, ucfirst($vars['name']));
- }
-
- return $vars;
- }
-
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php b/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php
deleted file mode 100644
index 30a91676d..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php
+++ /dev/null
@@ -1,33 +0,0 @@
- 'modules/{$name}/',
- );
-
- /**
- * Format package name.
- *
- * For package type maya-module, cut off a trailing '-module' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'maya-module') {
- return $this->inflectModuleVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectModuleVars($vars)
- {
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php b/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php
deleted file mode 100644
index f5a8957ef..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php
+++ /dev/null
@@ -1,51 +0,0 @@
- 'core/',
- 'extension' => 'extensions/{$name}/',
- 'skin' => 'skins/{$name}/',
- );
-
- /**
- * Format package name.
- *
- * For package type mediawiki-extension, cut off a trailing '-extension' if present and transform
- * to CamelCase keeping existing uppercase chars.
- *
- * For package type mediawiki-skin, cut off a trailing '-skin' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
-
- if ($vars['type'] === 'mediawiki-extension') {
- return $this->inflectExtensionVars($vars);
- }
-
- if ($vars['type'] === 'mediawiki-skin') {
- return $this->inflectSkinVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectExtensionVars($vars)
- {
- $vars['name'] = preg_replace('/-extension$/', '', $vars['name']);
- $vars['name'] = str_replace('-', ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-
- protected function inflectSkinVars($vars)
- {
- $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
-
- return $vars;
- }
-
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php b/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php
deleted file mode 100644
index 4bbbec8c0..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php
+++ /dev/null
@@ -1,111 +0,0 @@
- 'userfiles/modules/{$name}/',
- 'module-skin' => 'userfiles/modules/{$name}/templates/',
- 'template' => 'userfiles/templates/{$name}/',
- 'element' => 'userfiles/elements/{$name}/',
- 'vendor' => 'vendor/{$name}/',
- 'components' => 'components/{$name}/'
- );
-
- /**
- * Format package name.
- *
- * For package type microweber-module, cut off a trailing '-module' if present
- *
- * For package type microweber-template, cut off a trailing '-template' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'microweber-template') {
- return $this->inflectTemplateVars($vars);
- }
- if ($vars['type'] === 'microweber-templates') {
- return $this->inflectTemplatesVars($vars);
- }
- if ($vars['type'] === 'microweber-core') {
- return $this->inflectCoreVars($vars);
- }
- if ($vars['type'] === 'microweber-adapter') {
- return $this->inflectCoreVars($vars);
- }
- if ($vars['type'] === 'microweber-module') {
- return $this->inflectModuleVars($vars);
- }
- if ($vars['type'] === 'microweber-modules') {
- return $this->inflectModulesVars($vars);
- }
- if ($vars['type'] === 'microweber-skin') {
- return $this->inflectSkinVars($vars);
- }
- if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') {
- return $this->inflectElementVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectTemplateVars($vars)
- {
- $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
- $vars['name'] = preg_replace('/template-$/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectTemplatesVars($vars)
- {
- $vars['name'] = preg_replace('/-templates$/', '', $vars['name']);
- $vars['name'] = preg_replace('/templates-$/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectCoreVars($vars)
- {
- $vars['name'] = preg_replace('/-providers$/', '', $vars['name']);
- $vars['name'] = preg_replace('/-provider$/', '', $vars['name']);
- $vars['name'] = preg_replace('/-adapter$/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectModuleVars($vars)
- {
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
- $vars['name'] = preg_replace('/module-$/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectModulesVars($vars)
- {
- $vars['name'] = preg_replace('/-modules$/', '', $vars['name']);
- $vars['name'] = preg_replace('/modules-$/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectSkinVars($vars)
- {
- $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
- $vars['name'] = preg_replace('/skin-$/', '', $vars['name']);
-
- return $vars;
- }
-
- protected function inflectElementVars($vars)
- {
- $vars['name'] = preg_replace('/-elements$/', '', $vars['name']);
- $vars['name'] = preg_replace('/elements-$/', '', $vars['name']);
- $vars['name'] = preg_replace('/-element$/', '', $vars['name']);
- $vars['name'] = preg_replace('/element-$/', '', $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php b/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php
deleted file mode 100644
index 0ee140abf..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ModxInstaller.php
+++ /dev/null
@@ -1,12 +0,0 @@
- 'core/packages/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php b/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php
deleted file mode 100644
index a89c82f73..000000000
--- a/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php
+++ /dev/null
@@ -1,57 +0,0 @@
- 'mod/{$name}/',
- 'admin_report' => 'admin/report/{$name}/',
- 'atto' => 'lib/editor/atto/plugins/{$name}/',
- 'tool' => 'admin/tool/{$name}/',
- 'assignment' => 'mod/assignment/type/{$name}/',
- 'assignsubmission' => 'mod/assign/submission/{$name}/',
- 'assignfeedback' => 'mod/assign/feedback/{$name}/',
- 'auth' => 'auth/{$name}/',
- 'availability' => 'availability/condition/{$name}/',
- 'block' => 'blocks/{$name}/',
- 'booktool' => 'mod/book/tool/{$name}/',
- 'cachestore' => 'cache/stores/{$name}/',
- 'cachelock' => 'cache/locks/{$name}/',
- 'calendartype' => 'calendar/type/{$name}/',
- 'format' => 'course/format/{$name}/',
- 'coursereport' => 'course/report/{$name}/',
- 'datafield' => 'mod/data/field/{$name}/',
- 'datapreset' => 'mod/data/preset/{$name}/',
- 'editor' => 'lib/editor/{$name}/',
- 'enrol' => 'enrol/{$name}/',
- 'filter' => 'filter/{$name}/',
- 'gradeexport' => 'grade/export/{$name}/',
- 'gradeimport' => 'grade/import/{$name}/',
- 'gradereport' => 'grade/report/{$name}/',
- 'gradingform' => 'grade/grading/form/{$name}/',
- 'local' => 'local/{$name}/',
- 'logstore' => 'admin/tool/log/store/{$name}/',
- 'ltisource' => 'mod/lti/source/{$name}/',
- 'ltiservice' => 'mod/lti/service/{$name}/',
- 'message' => 'message/output/{$name}/',
- 'mnetservice' => 'mnet/service/{$name}/',
- 'plagiarism' => 'plagiarism/{$name}/',
- 'portfolio' => 'portfolio/{$name}/',
- 'qbehaviour' => 'question/behaviour/{$name}/',
- 'qformat' => 'question/format/{$name}/',
- 'qtype' => 'question/type/{$name}/',
- 'quizaccess' => 'mod/quiz/accessrule/{$name}/',
- 'quiz' => 'mod/quiz/report/{$name}/',
- 'report' => 'report/{$name}/',
- 'repository' => 'repository/{$name}/',
- 'scormreport' => 'mod/scorm/report/{$name}/',
- 'search' => 'search/engine/{$name}/',
- 'theme' => 'theme/{$name}/',
- 'tinymce' => 'lib/editor/tinymce/plugins/{$name}/',
- 'profilefield' => 'user/profile/field/{$name}/',
- 'webservice' => 'webservice/{$name}/',
- 'workshopallocation' => 'mod/workshop/allocation/{$name}/',
- 'workshopeval' => 'mod/workshop/eval/{$name}/',
- 'workshopform' => 'mod/workshop/form/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php b/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php
deleted file mode 100644
index 08d5dc4e7..000000000
--- a/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php
+++ /dev/null
@@ -1,47 +0,0 @@
- 'modules/{$name}/',
- 'plugin' => 'plugins/{$vendor}/{$name}/',
- 'theme' => 'themes/{$name}/'
- );
-
- /**
- * Format package name.
- *
- * For package type october-plugin, cut off a trailing '-plugin' if present.
- *
- * For package type october-theme, cut off a trailing '-theme' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'october-plugin') {
- return $this->inflectPluginVars($vars);
- }
-
- if ($vars['type'] === 'october-theme') {
- return $this->inflectThemeVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectPluginVars($vars)
- {
- $vars['name'] = preg_replace('/^oc-|-plugin$/', '', $vars['name']);
- $vars['vendor'] = preg_replace('/[^a-z0-9_]/i', '', $vars['vendor']);
-
- return $vars;
- }
-
- protected function inflectThemeVars($vars)
- {
- $vars['name'] = preg_replace('/^oc-|-theme$/', '', $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php b/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php
deleted file mode 100644
index 5dd3438d9..000000000
--- a/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php
+++ /dev/null
@@ -1,24 +0,0 @@
- 'extensions/{$name}/',
- 'theme' => 'extensions/themes/{$name}/',
- 'translation' => 'extensions/translations/{$name}/',
- );
-
- /**
- * Format package name to lower case and remove ".ontowiki" suffix
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower($vars['name']);
- $vars['name'] = preg_replace('/.ontowiki$/', '', $vars['name']);
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
- $vars['name'] = preg_replace('/-translation$/', '', $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php b/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php
deleted file mode 100644
index 3ca7954c9..000000000
--- a/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php
+++ /dev/null
@@ -1,14 +0,0 @@
- 'oc-content/plugins/{$name}/',
- 'theme' => 'oc-content/themes/{$name}/',
- 'language' => 'oc-content/languages/{$name}/',
- );
-
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php b/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php
deleted file mode 100644
index 49940ff6d..000000000
--- a/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php
+++ /dev/null
@@ -1,59 +0,0 @@
-.+)\/.+/';
-
- protected $locations = array(
- 'module' => 'modules/{$name}/',
- 'theme' => 'application/views/{$name}/',
- 'out' => 'out/{$name}/',
- );
-
- /**
- * getInstallPath
- *
- * @param PackageInterface $package
- * @param string $frameworkType
- * @return void
- */
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
- {
- $installPath = parent::getInstallPath($package, $frameworkType);
- $type = $this->package->getType();
- if ($type === 'oxid-module') {
- $this->prepareVendorDirectory($installPath);
- }
- return $installPath;
- }
-
- /**
- * prepareVendorDirectory
- *
- * Makes sure there is a vendormetadata.php file inside
- * the vendor folder if there is a vendor folder.
- *
- * @param string $installPath
- * @return void
- */
- protected function prepareVendorDirectory($installPath)
- {
- $matches = '';
- $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches);
- if (!$hasVendorDirectory) {
- return;
- }
-
- $vendorDirectory = $matches['vendor'];
- $vendorPath = getcwd() . '/modules/' . $vendorDirectory;
- if (!file_exists($vendorPath)) {
- mkdir($vendorPath, 0755, true);
- }
-
- $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';
- touch($vendorMetaDataPath);
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php b/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php
deleted file mode 100644
index 170136f98..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'modules/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php b/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php
deleted file mode 100644
index 4e59a8a74..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'bundles/{$name}/',
- 'library' => 'libraries/{$name}/',
- 'framework' => 'frameworks/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php b/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php
deleted file mode 100644
index deb2b77a6..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'ext/{$vendor}/{$name}/',
- 'language' => 'language/{$name}/',
- 'style' => 'styles/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php b/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php
deleted file mode 100644
index 4781fa6d1..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php
+++ /dev/null
@@ -1,21 +0,0 @@
- 'plugins/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php b/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php
deleted file mode 100644
index c17f4572b..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php
+++ /dev/null
@@ -1,32 +0,0 @@
- 'plugins/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- * @param array $vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php b/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php
deleted file mode 100644
index 903e55f62..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php
+++ /dev/null
@@ -1,29 +0,0 @@
- '{$name}/'
- );
-
- /**
- * Remove hyphen, "plugin" and format to camelcase
- * @param array $vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = explode("-", $vars['name']);
- foreach ($vars['name'] as $key => $name) {
- $vars['name'][$key] = ucfirst($vars['name'][$key]);
- if (strcasecmp($name, "Plugin") == 0) {
- unset($vars['name'][$key]);
- }
- }
- $vars['name'] = implode("",$vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/Plugin.php b/vendor/composer/installers/src/Composer/Installers/Plugin.php
deleted file mode 100644
index 5eb04af17..000000000
--- a/vendor/composer/installers/src/Composer/Installers/Plugin.php
+++ /dev/null
@@ -1,17 +0,0 @@
-getInstallationManager()->addInstaller($installer);
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php b/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php
deleted file mode 100644
index dbf85e635..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'app/Containers/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php b/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php
deleted file mode 100644
index 4c8421e36..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'modules/{$name}/',
- 'theme' => 'themes/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php b/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php
deleted file mode 100644
index 77cc3dd87..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'modules/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php b/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php
deleted file mode 100644
index 65510580e..000000000
--- a/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php
+++ /dev/null
@@ -1,63 +0,0 @@
- 'app/Modules/{$name}/',
- 'theme' => 'themes/{$name}/',
- );
-
- /**
- * Format package name.
- *
- * @param array $vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'pxcms-module') {
- return $this->inflectModuleVars($vars);
- }
-
- if ($vars['type'] === 'pxcms-theme') {
- return $this->inflectThemeVars($vars);
- }
-
- return $vars;
- }
-
- /**
- * For package type pxcms-module, cut off a trailing '-plugin' if present.
- *
- * return string
- */
- protected function inflectModuleVars($vars)
- {
- $vars['name'] = str_replace('pxcms-', '', $vars['name']); // strip out pxcms- just incase (legacy)
- $vars['name'] = str_replace('module-', '', $vars['name']); // strip out module-
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']); // strip out -module
- $vars['name'] = str_replace('-', '_', $vars['name']); // make -'s be _'s
- $vars['name'] = ucwords($vars['name']); // make module name camelcased
-
- return $vars;
- }
-
-
- /**
- * For package type pxcms-module, cut off a trailing '-plugin' if present.
- *
- * return string
- */
- protected function inflectThemeVars($vars)
- {
- $vars['name'] = str_replace('pxcms-', '', $vars['name']); // strip out pxcms- just incase (legacy)
- $vars['name'] = str_replace('theme-', '', $vars['name']); // strip out theme-
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); // strip out -theme
- $vars['name'] = str_replace('-', '_', $vars['name']); // make -'s be _'s
- $vars['name'] = ucwords($vars['name']); // make module name camelcased
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php b/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php
deleted file mode 100644
index 0f78b5ca6..000000000
--- a/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php
+++ /dev/null
@@ -1,24 +0,0 @@
- 'src/{$name}/'
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $nameParts = explode('/', $vars['name']);
- foreach ($nameParts as &$value) {
- $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
- $value = str_replace(array('-', '_'), ' ', $value);
- $value = str_replace(' ', '', ucwords($value));
- }
- $vars['name'] = implode('/', $nameParts);
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php b/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php
deleted file mode 100644
index 252c7339f..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'themes/{$name}/',
- 'plugin' => 'plugins/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php b/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php
deleted file mode 100644
index 09544576b..000000000
--- a/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'redaxo/include/addons/{$name}/',
- 'bestyle-plugin' => 'redaxo/include/addons/be_style/plugins/{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php b/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php
deleted file mode 100644
index d8d795be0..000000000
--- a/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php
+++ /dev/null
@@ -1,22 +0,0 @@
- 'plugins/{$name}/',
- );
-
- /**
- * Lowercase name and changes the name to a underscores
- *
- * @param array $vars
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower(str_replace('-', '_', $vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php b/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php
deleted file mode 100644
index 1acd3b14c..000000000
--- a/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'Sources/{$name}/',
- 'theme' => 'Themes/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php b/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php
deleted file mode 100644
index 7d20d27a2..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php
+++ /dev/null
@@ -1,60 +0,0 @@
- 'engine/Shopware/Plugins/Local/Backend/{$name}/',
- 'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/',
- 'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/',
- 'theme' => 'templates/{$name}/',
- 'plugin' => 'custom/plugins/{$name}/',
- 'frontend-theme' => 'themes/Frontend/{$name}/',
- );
-
- /**
- * Transforms the names
- * @param array $vars
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'shopware-theme') {
- return $this->correctThemeName($vars);
- }
-
- return $this->correctPluginName($vars);
- }
-
- /**
- * Changes the name to a camelcased combination of vendor and name
- * @param array $vars
- * @return array
- */
- private function correctPluginName($vars)
- {
- $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) {
- return strtoupper($matches[0][1]);
- }, $vars['name']);
-
- $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName);
-
- return $vars;
- }
-
- /**
- * Changes the name to a underscore separated name
- * @param array $vars
- * @return array
- */
- private function correctThemeName($vars)
- {
- $vars['name'] = str_replace('-', '_', $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php b/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php
deleted file mode 100644
index 81910e9f1..000000000
--- a/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php
+++ /dev/null
@@ -1,35 +0,0 @@
- '{$name}/',
- 'theme' => 'themes/{$name}/',
- );
-
- /**
- * Return the install path based on package type.
- *
- * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework
- * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0
- *
- * @param PackageInterface $package
- * @param string $frameworkType
- * @return string
- */
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
- {
- if (
- $package->getName() == 'silverstripe/framework'
- && preg_match('/^\d+\.\d+\.\d+/', $package->getVersion())
- && version_compare($package->getVersion(), '2.999.999') < 0
- ) {
- return $this->templatePath($this->locations['module'], array('name' => 'sapphire'));
- }
-
- return parent::getInstallPath($package, $frameworkType);
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php b/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php
deleted file mode 100644
index 762d94c68..000000000
--- a/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php
+++ /dev/null
@@ -1,25 +0,0 @@
- 'modules/{$vendor}/{$name}/',
- 'plugin' => 'plugins/{$vendor}/{$name}/'
- );
-
- public function inflectPackageVars($vars)
- {
- return $this->parseVars($vars);
- }
-
- protected function parseVars($vars)
- {
- $vars['vendor'] = strtolower($vars['vendor']) == 'sitedirect' ? 'SiteDirect' : $vars['vendor'];
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php b/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php
deleted file mode 100644
index 83ef9d091..000000000
--- a/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php
+++ /dev/null
@@ -1,49 +0,0 @@
- 'app/modules/{$name}/',
- 'theme' => 'themes/{$name}/',
- );
-
- /**
- * Format module name.
- *
- * Strip `sydes-` prefix and a trailing '-theme' or '-module' from package name if present.
- *
- * @param array @vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] == 'sydes-module') {
- return $this->inflectModuleVars($vars);
- }
-
- if ($vars['type'] === 'sydes-theme') {
- return $this->inflectThemeVars($vars);
- }
-
- return $vars;
- }
-
- public function inflectModuleVars($vars)
- {
- $vars['name'] = preg_replace('/(^sydes-|-module$)/i', '', $vars['name']);
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-
- protected function inflectThemeVars($vars)
- {
- $vars['name'] = preg_replace('/(^sydes-|-theme$)/', '', $vars['name']);
- $vars['name'] = strtolower($vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php b/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php
deleted file mode 100644
index 1675c4f21..000000000
--- a/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
- */
-class Symfony1Installer extends BaseInstaller
-{
- protected $locations = array(
- 'plugin' => 'plugins/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
- return strtoupper($matches[0][1]);
- }, $vars['name']);
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php b/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php
deleted file mode 100644
index b1663e843..000000000
--- a/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
- */
-class TYPO3CmsInstaller extends BaseInstaller
-{
- protected $locations = array(
- 'extension' => 'typo3conf/ext/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php b/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php
deleted file mode 100644
index 42572f44f..000000000
--- a/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php
+++ /dev/null
@@ -1,38 +0,0 @@
- 'Packages/Application/{$name}/',
- 'framework' => 'Packages/Framework/{$name}/',
- 'plugin' => 'Packages/Plugins/{$name}/',
- 'site' => 'Packages/Sites/{$name}/',
- 'boilerplate' => 'Packages/Boilerplates/{$name}/',
- 'build' => 'Build/{$name}/',
- );
-
- /**
- * Modify the package name to be a TYPO3 Flow style key.
- *
- * @param array $vars
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- $autoload = $this->package->getAutoload();
- if (isset($autoload['psr-0']) && is_array($autoload['psr-0'])) {
- $namespace = key($autoload['psr-0']);
- $vars['name'] = str_replace('\\', '.', $namespace);
- }
- if (isset($autoload['psr-4']) && is_array($autoload['psr-4'])) {
- $namespace = key($autoload['psr-4']);
- $vars['name'] = rtrim(str_replace('\\', '.', $namespace), '.');
- }
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php b/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php
deleted file mode 100644
index 158af5261..000000000
--- a/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php
+++ /dev/null
@@ -1,12 +0,0 @@
- 'local/modules/{$name}/',
- 'frontoffice-template' => 'templates/frontOffice/{$name}/',
- 'backoffice-template' => 'templates/backOffice/{$name}/',
- 'email-template' => 'templates/email/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php b/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php
deleted file mode 100644
index 7c0113b85..000000000
--- a/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
- */
- class TuskInstaller extends BaseInstaller
- {
- protected $locations = array(
- 'task' => '.tusk/tasks/{$name}/',
- 'command' => '.tusk/commands/{$name}/',
- 'asset' => 'assets/tusk/{$name}/',
- );
- }
diff --git a/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php b/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php
deleted file mode 100644
index fcb414ab7..000000000
--- a/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'app/sprinkles/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php b/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php
deleted file mode 100644
index 24ca64512..000000000
--- a/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'plugins/{$name}/',
- 'theme' => 'themes/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php b/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php
deleted file mode 100644
index 7d90c5e6e..000000000
--- a/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php
+++ /dev/null
@@ -1,49 +0,0 @@
- 'src/{$vendor}/{$name}/',
- 'theme' => 'themes/{$name}/'
- );
-
- /**
- * Format package name.
- *
- * For package type vgmcp-bundle, cut off a trailing '-bundle' if present.
- *
- * For package type vgmcp-theme, cut off a trailing '-theme' if present.
- *
- */
- public function inflectPackageVars($vars)
- {
- if ($vars['type'] === 'vgmcp-bundle') {
- return $this->inflectPluginVars($vars);
- }
-
- if ($vars['type'] === 'vgmcp-theme') {
- return $this->inflectThemeVars($vars);
- }
-
- return $vars;
- }
-
- protected function inflectPluginVars($vars)
- {
- $vars['name'] = preg_replace('/-bundle$/', '', $vars['name']);
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-
- protected function inflectThemeVars($vars)
- {
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php b/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php
deleted file mode 100644
index 2cbb4a463..000000000
--- a/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'modules/gateways/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php b/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php
deleted file mode 100644
index cb387881d..000000000
--- a/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
- 'wolf/plugins/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php b/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php
deleted file mode 100644
index 91c46ad99..000000000
--- a/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php
+++ /dev/null
@@ -1,12 +0,0 @@
- 'wp-content/plugins/{$name}/',
- 'theme' => 'wp-content/themes/{$name}/',
- 'muplugin' => 'wp-content/mu-plugins/{$name}/',
- 'dropin' => 'wp-content/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php b/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php
deleted file mode 100644
index 27f429ff2..000000000
--- a/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php
+++ /dev/null
@@ -1,32 +0,0 @@
- 'module/{$name}/',
- );
-
- /**
- * Format package name to CamelCase
- * @param array $vars
- *
- * @return array
- */
- public function inflectPackageVars($vars)
- {
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
-
- return $vars;
- }
-}
\ No newline at end of file
diff --git a/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php b/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php
deleted file mode 100644
index bde9bc8c8..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'library/{$name}/',
- 'extra' => 'extras/library/{$name}/',
- 'module' => 'module/{$name}/',
- );
-}
diff --git a/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php b/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php
deleted file mode 100644
index 56cdf5da7..000000000
--- a/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php
+++ /dev/null
@@ -1,10 +0,0 @@
- 'modules/{$vendor}-{$name}/',
- 'theme' => 'themes/{$vendor}-{$name}/'
- );
-}
diff --git a/vendor/composer/installers/src/bootstrap.php b/vendor/composer/installers/src/bootstrap.php
deleted file mode 100644
index 0de276ee2..000000000
--- a/vendor/composer/installers/src/bootstrap.php
+++ /dev/null
@@ -1,13 +0,0 @@
- `Composer\Semver`
- - Namespace: `Composer\Package\LinkConstraint` -> `Composer\Semver\Constraint`
- - Namespace: `Composer\Test\Package\Version` -> `Composer\Test\Semver`
- - Namespace: `Composer\Test\Package\LinkConstraint` -> `Composer\Test\Semver\Constraint`
- * Changed: code style using php-cs-fixer.
-
-[1.4.1]: https://github.com/composer/semver/compare/1.4.0...1.4.1
-[1.4.0]: https://github.com/composer/semver/compare/1.3.0...1.4.0
-[1.3.0]: https://github.com/composer/semver/compare/1.2.0...1.3.0
-[1.2.0]: https://github.com/composer/semver/compare/1.1.0...1.2.0
-[1.1.0]: https://github.com/composer/semver/compare/1.0.0...1.1.0
-[1.0.0]: https://github.com/composer/semver/compare/0.1.0...1.0.0
-[0.1.0]: https://github.com/composer/semver/compare/5e0b9a4da...0.1.0
diff --git a/vendor/composer/semver/LICENSE b/vendor/composer/semver/LICENSE
deleted file mode 100644
index 466975862..000000000
--- a/vendor/composer/semver/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2015 Composer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/composer/semver/README.md b/vendor/composer/semver/README.md
deleted file mode 100644
index 143daa0d6..000000000
--- a/vendor/composer/semver/README.md
+++ /dev/null
@@ -1,70 +0,0 @@
-composer/semver
-===============
-
-Semver library that offers utilities, version constraint parsing and validation.
-
-Originally written as part of [composer/composer](https://github.com/composer/composer),
-now extracted and made available as a stand-alone library.
-
-[![Build Status](https://travis-ci.org/composer/semver.svg?branch=master)](https://travis-ci.org/composer/semver)
-
-
-Installation
-------------
-
-Install the latest version with:
-
-```bash
-$ composer require composer/semver
-```
-
-
-Requirements
-------------
-
-* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.
-
-
-Version Comparison
-------------------
-
-For details on how versions are compared, refer to the [Versions](https://getcomposer.org/doc/articles/versions.md)
-article in the documentation section of the [getcomposer.org](https://getcomposer.org) website.
-
-
-Basic usage
------------
-
-### Comparator
-
-The `Composer\Semver\Comparator` class provides the following methods for comparing versions:
-
-* greaterThan($v1, $v2)
-* greaterThanOrEqualTo($v1, $v2)
-* lessThan($v1, $v2)
-* lessThanOrEqualTo($v1, $v2)
-* equalTo($v1, $v2)
-* notEqualTo($v1, $v2)
-
-Each function takes two version strings as arguments. For example:
-
-```php
-use Composer\Semver\Comparator;
-
-Comparator::greaterThan('1.25.0', '1.24.0'); // 1.25.0 > 1.24.0
-```
-
-### Semver
-
-The `Composer\Semver\Semver` class provides the following methods:
-
-* satisfies($version, $constraints)
-* satisfiedBy(array $versions, $constraint)
-* sort($versions)
-* rsort($versions)
-
-
-License
--------
-
-composer/semver is licensed under the MIT License, see the LICENSE file for details.
diff --git a/vendor/composer/semver/composer.json b/vendor/composer/semver/composer.json
deleted file mode 100644
index b0400cd7b..000000000
--- a/vendor/composer/semver/composer.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "composer/semver",
- "description": "Semver library that offers utilities, version constraint parsing and validation.",
- "type": "library",
- "license": "MIT",
- "keywords": [
- "semver",
- "semantic",
- "versioning",
- "validation"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "support": {
- "irc": "irc://irc.freenode.org/composer",
- "issues": "https://github.com/composer/semver/issues"
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.5 || ^5.0.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "autoload": {
- "psr-4": {
- "Composer\\Semver\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Composer\\Semver\\": "tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "scripts": {
- "test": "phpunit"
- }
-}
diff --git a/vendor/composer/semver/src/Comparator.php b/vendor/composer/semver/src/Comparator.php
deleted file mode 100644
index a9d758f1c..000000000
--- a/vendor/composer/semver/src/Comparator.php
+++ /dev/null
@@ -1,111 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Comparator
-{
- /**
- * Evaluates the expression: $version1 > $version2.
- *
- * @param string $version1
- * @param string $version2
- *
- * @return bool
- */
- public static function greaterThan($version1, $version2)
- {
- return self::compare($version1, '>', $version2);
- }
-
- /**
- * Evaluates the expression: $version1 >= $version2.
- *
- * @param string $version1
- * @param string $version2
- *
- * @return bool
- */
- public static function greaterThanOrEqualTo($version1, $version2)
- {
- return self::compare($version1, '>=', $version2);
- }
-
- /**
- * Evaluates the expression: $version1 < $version2.
- *
- * @param string $version1
- * @param string $version2
- *
- * @return bool
- */
- public static function lessThan($version1, $version2)
- {
- return self::compare($version1, '<', $version2);
- }
-
- /**
- * Evaluates the expression: $version1 <= $version2.
- *
- * @param string $version1
- * @param string $version2
- *
- * @return bool
- */
- public static function lessThanOrEqualTo($version1, $version2)
- {
- return self::compare($version1, '<=', $version2);
- }
-
- /**
- * Evaluates the expression: $version1 == $version2.
- *
- * @param string $version1
- * @param string $version2
- *
- * @return bool
- */
- public static function equalTo($version1, $version2)
- {
- return self::compare($version1, '==', $version2);
- }
-
- /**
- * Evaluates the expression: $version1 != $version2.
- *
- * @param string $version1
- * @param string $version2
- *
- * @return bool
- */
- public static function notEqualTo($version1, $version2)
- {
- return self::compare($version1, '!=', $version2);
- }
-
- /**
- * Evaluates the expression: $version1 $operator $version2.
- *
- * @param string $version1
- * @param string $operator
- * @param string $version2
- *
- * @return bool
- */
- public static function compare($version1, $operator, $version2)
- {
- $constraint = new Constraint($operator, $version2);
-
- return $constraint->matches(new Constraint('==', $version1));
- }
-}
diff --git a/vendor/composer/semver/src/Constraint/AbstractConstraint.php b/vendor/composer/semver/src/Constraint/AbstractConstraint.php
deleted file mode 100644
index be83f750b..000000000
--- a/vendor/composer/semver/src/Constraint/AbstractConstraint.php
+++ /dev/null
@@ -1,63 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-trigger_error('The ' . __CLASS__ . ' abstract class is deprecated, there is no replacement for it, it will be removed in the next major version.', E_USER_DEPRECATED);
-
-/**
- * Base constraint class.
- */
-abstract class AbstractConstraint implements ConstraintInterface
-{
- /** @var string */
- protected $prettyString;
-
- /**
- * @param ConstraintInterface $provider
- *
- * @return bool
- */
- public function matches(ConstraintInterface $provider)
- {
- if ($provider instanceof $this) {
- // see note at bottom of this class declaration
- return $this->matchSpecific($provider);
- }
-
- // turn matching around to find a match
- return $provider->matches($this);
- }
-
- /**
- * @param string $prettyString
- */
- public function setPrettyString($prettyString)
- {
- $this->prettyString = $prettyString;
- }
-
- /**
- * @return string
- */
- public function getPrettyString()
- {
- if ($this->prettyString) {
- return $this->prettyString;
- }
-
- return $this->__toString();
- }
-
- // implementations must implement a method of this format:
- // not declared abstract here because type hinting violates parameter coherence (TODO right word?)
- // public function matchSpecific( $provider);
-}
diff --git a/vendor/composer/semver/src/Constraint/Constraint.php b/vendor/composer/semver/src/Constraint/Constraint.php
deleted file mode 100644
index 7a21eb47f..000000000
--- a/vendor/composer/semver/src/Constraint/Constraint.php
+++ /dev/null
@@ -1,219 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Defines a constraint.
- */
-class Constraint implements ConstraintInterface
-{
- /* operator integer values */
- const OP_EQ = 0;
- const OP_LT = 1;
- const OP_LE = 2;
- const OP_GT = 3;
- const OP_GE = 4;
- const OP_NE = 5;
-
- /**
- * Operator to integer translation table.
- *
- * @var array
- */
- private static $transOpStr = array(
- '=' => self::OP_EQ,
- '==' => self::OP_EQ,
- '<' => self::OP_LT,
- '<=' => self::OP_LE,
- '>' => self::OP_GT,
- '>=' => self::OP_GE,
- '<>' => self::OP_NE,
- '!=' => self::OP_NE,
- );
-
- /**
- * Integer to operator translation table.
- *
- * @var array
- */
- private static $transOpInt = array(
- self::OP_EQ => '==',
- self::OP_LT => '<',
- self::OP_LE => '<=',
- self::OP_GT => '>',
- self::OP_GE => '>=',
- self::OP_NE => '!=',
- );
-
- /** @var string */
- protected $operator;
-
- /** @var string */
- protected $version;
-
- /** @var string */
- protected $prettyString;
-
- /**
- * @param ConstraintInterface $provider
- *
- * @return bool
- */
- public function matches(ConstraintInterface $provider)
- {
- if ($provider instanceof $this) {
- return $this->matchSpecific($provider);
- }
-
- // turn matching around to find a match
- return $provider->matches($this);
- }
-
- /**
- * @param string $prettyString
- */
- public function setPrettyString($prettyString)
- {
- $this->prettyString = $prettyString;
- }
-
- /**
- * @return string
- */
- public function getPrettyString()
- {
- if ($this->prettyString) {
- return $this->prettyString;
- }
-
- return $this->__toString();
- }
-
- /**
- * Get all supported comparison operators.
- *
- * @return array
- */
- public static function getSupportedOperators()
- {
- return array_keys(self::$transOpStr);
- }
-
- /**
- * Sets operator and version to compare with.
- *
- * @param string $operator
- * @param string $version
- *
- * @throws \InvalidArgumentException if invalid operator is given.
- */
- public function __construct($operator, $version)
- {
- if (!isset(self::$transOpStr[$operator])) {
- throw new \InvalidArgumentException(sprintf(
- 'Invalid operator "%s" given, expected one of: %s',
- $operator,
- implode(', ', self::getSupportedOperators())
- ));
- }
-
- $this->operator = self::$transOpStr[$operator];
- $this->version = $version;
- }
-
- /**
- * @param string $a
- * @param string $b
- * @param string $operator
- * @param bool $compareBranches
- *
- * @throws \InvalidArgumentException if invalid operator is given.
- *
- * @return bool
- */
- public function versionCompare($a, $b, $operator, $compareBranches = false)
- {
- if (!isset(self::$transOpStr[$operator])) {
- throw new \InvalidArgumentException(sprintf(
- 'Invalid operator "%s" given, expected one of: %s',
- $operator,
- implode(', ', self::getSupportedOperators())
- ));
- }
-
- $aIsBranch = 'dev-' === substr($a, 0, 4);
- $bIsBranch = 'dev-' === substr($b, 0, 4);
-
- if ($aIsBranch && $bIsBranch) {
- return $operator === '==' && $a === $b;
- }
-
- // when branches are not comparable, we make sure dev branches never match anything
- if (!$compareBranches && ($aIsBranch || $bIsBranch)) {
- return false;
- }
-
- return version_compare($a, $b, $operator);
- }
-
- /**
- * @param Constraint $provider
- * @param bool $compareBranches
- *
- * @return bool
- */
- public function matchSpecific(Constraint $provider, $compareBranches = false)
- {
- $noEqualOp = str_replace('=', '', self::$transOpInt[$this->operator]);
- $providerNoEqualOp = str_replace('=', '', self::$transOpInt[$provider->operator]);
-
- $isEqualOp = self::OP_EQ === $this->operator;
- $isNonEqualOp = self::OP_NE === $this->operator;
- $isProviderEqualOp = self::OP_EQ === $provider->operator;
- $isProviderNonEqualOp = self::OP_NE === $provider->operator;
-
- // '!=' operator is match when other operator is not '==' operator or version is not match
- // these kinds of comparisons always have a solution
- if ($isNonEqualOp || $isProviderNonEqualOp) {
- return !$isEqualOp && !$isProviderEqualOp
- || $this->versionCompare($provider->version, $this->version, '!=', $compareBranches);
- }
-
- // an example for the condition is <= 2.0 & < 1.0
- // these kinds of comparisons always have a solution
- if ($this->operator !== self::OP_EQ && $noEqualOp === $providerNoEqualOp) {
- return true;
- }
-
- if ($this->versionCompare($provider->version, $this->version, self::$transOpInt[$this->operator], $compareBranches)) {
- // special case, e.g. require >= 1.0 and provide < 1.0
- // 1.0 >= 1.0 but 1.0 is outside of the provided interval
- if ($provider->version === $this->version
- && self::$transOpInt[$provider->operator] === $providerNoEqualOp
- && self::$transOpInt[$this->operator] !== $noEqualOp) {
- return false;
- }
-
- return true;
- }
-
- return false;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return self::$transOpInt[$this->operator] . ' ' . $this->version;
- }
-}
diff --git a/vendor/composer/semver/src/Constraint/ConstraintInterface.php b/vendor/composer/semver/src/Constraint/ConstraintInterface.php
deleted file mode 100644
index 7cb13b6a8..000000000
--- a/vendor/composer/semver/src/Constraint/ConstraintInterface.php
+++ /dev/null
@@ -1,32 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-interface ConstraintInterface
-{
- /**
- * @param ConstraintInterface $provider
- *
- * @return bool
- */
- public function matches(ConstraintInterface $provider);
-
- /**
- * @return string
- */
- public function getPrettyString();
-
- /**
- * @return string
- */
- public function __toString();
-}
diff --git a/vendor/composer/semver/src/Constraint/EmptyConstraint.php b/vendor/composer/semver/src/Constraint/EmptyConstraint.php
deleted file mode 100644
index faba56bf0..000000000
--- a/vendor/composer/semver/src/Constraint/EmptyConstraint.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Defines the absence of a constraint.
- */
-class EmptyConstraint implements ConstraintInterface
-{
- /** @var string */
- protected $prettyString;
-
- /**
- * @param ConstraintInterface $provider
- *
- * @return bool
- */
- public function matches(ConstraintInterface $provider)
- {
- return true;
- }
-
- /**
- * @param $prettyString
- */
- public function setPrettyString($prettyString)
- {
- $this->prettyString = $prettyString;
- }
-
- /**
- * @return string
- */
- public function getPrettyString()
- {
- if ($this->prettyString) {
- return $this->prettyString;
- }
-
- return $this->__toString();
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return '[]';
- }
-}
diff --git a/vendor/composer/semver/src/Constraint/MultiConstraint.php b/vendor/composer/semver/src/Constraint/MultiConstraint.php
deleted file mode 100644
index 0c547afd4..000000000
--- a/vendor/composer/semver/src/Constraint/MultiConstraint.php
+++ /dev/null
@@ -1,120 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Defines a conjunctive or disjunctive set of constraints.
- */
-class MultiConstraint implements ConstraintInterface
-{
- /** @var ConstraintInterface[] */
- protected $constraints;
-
- /** @var string */
- protected $prettyString;
-
- /** @var bool */
- protected $conjunctive;
-
- /**
- * @param ConstraintInterface[] $constraints A set of constraints
- * @param bool $conjunctive Whether the constraints should be treated as conjunctive or disjunctive
- */
- public function __construct(array $constraints, $conjunctive = true)
- {
- $this->constraints = $constraints;
- $this->conjunctive = $conjunctive;
- }
-
- /**
- * @return ConstraintInterface[]
- */
- public function getConstraints()
- {
- return $this->constraints;
- }
-
- /**
- * @return bool
- */
- public function isConjunctive()
- {
- return $this->conjunctive;
- }
-
- /**
- * @return bool
- */
- public function isDisjunctive()
- {
- return !$this->conjunctive;
- }
-
- /**
- * @param ConstraintInterface $provider
- *
- * @return bool
- */
- public function matches(ConstraintInterface $provider)
- {
- if (false === $this->conjunctive) {
- foreach ($this->constraints as $constraint) {
- if ($constraint->matches($provider)) {
- return true;
- }
- }
-
- return false;
- }
-
- foreach ($this->constraints as $constraint) {
- if (!$constraint->matches($provider)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * @param string $prettyString
- */
- public function setPrettyString($prettyString)
- {
- $this->prettyString = $prettyString;
- }
-
- /**
- * @return string
- */
- public function getPrettyString()
- {
- if ($this->prettyString) {
- return $this->prettyString;
- }
-
- return $this->__toString();
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- $constraints = array();
- foreach ($this->constraints as $constraint) {
- $constraints[] = (string) $constraint;
- }
-
- return '[' . implode($this->conjunctive ? ' ' : ' || ', $constraints) . ']';
- }
-}
diff --git a/vendor/composer/semver/src/Semver.php b/vendor/composer/semver/src/Semver.php
deleted file mode 100644
index 0225bb55a..000000000
--- a/vendor/composer/semver/src/Semver.php
+++ /dev/null
@@ -1,127 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Semver
-{
- const SORT_ASC = 1;
- const SORT_DESC = -1;
-
- /** @var VersionParser */
- private static $versionParser;
-
- /**
- * Determine if given version satisfies given constraints.
- *
- * @param string $version
- * @param string $constraints
- *
- * @return bool
- */
- public static function satisfies($version, $constraints)
- {
- if (null === self::$versionParser) {
- self::$versionParser = new VersionParser();
- }
-
- $versionParser = self::$versionParser;
- $provider = new Constraint('==', $versionParser->normalize($version));
- $constraints = $versionParser->parseConstraints($constraints);
-
- return $constraints->matches($provider);
- }
-
- /**
- * Return all versions that satisfy given constraints.
- *
- * @param array $versions
- * @param string $constraints
- *
- * @return array
- */
- public static function satisfiedBy(array $versions, $constraints)
- {
- $versions = array_filter($versions, function ($version) use ($constraints) {
- return Semver::satisfies($version, $constraints);
- });
-
- return array_values($versions);
- }
-
- /**
- * Sort given array of versions.
- *
- * @param array $versions
- *
- * @return array
- */
- public static function sort(array $versions)
- {
- return self::usort($versions, self::SORT_ASC);
- }
-
- /**
- * Sort given array of versions in reverse.
- *
- * @param array $versions
- *
- * @return array
- */
- public static function rsort(array $versions)
- {
- return self::usort($versions, self::SORT_DESC);
- }
-
- /**
- * @param array $versions
- * @param int $direction
- *
- * @return array
- */
- private static function usort(array $versions, $direction)
- {
- if (null === self::$versionParser) {
- self::$versionParser = new VersionParser();
- }
-
- $versionParser = self::$versionParser;
- $normalized = array();
-
- // Normalize outside of usort() scope for minor performance increase.
- // Creates an array of arrays: [[normalized, key], ...]
- foreach ($versions as $key => $version) {
- $normalized[] = array($versionParser->normalize($version), $key);
- }
-
- usort($normalized, function (array $left, array $right) use ($direction) {
- if ($left[0] === $right[0]) {
- return 0;
- }
-
- if (Comparator::lessThan($left[0], $right[0])) {
- return -$direction;
- }
-
- return $direction;
- });
-
- // Recreate input array, using the original indexes which are now in sorted order.
- $sorted = array();
- foreach ($normalized as $item) {
- $sorted[] = $versions[$item[1]];
- }
-
- return $sorted;
- }
-}
diff --git a/vendor/composer/semver/src/VersionParser.php b/vendor/composer/semver/src/VersionParser.php
deleted file mode 100644
index 359c18c46..000000000
--- a/vendor/composer/semver/src/VersionParser.php
+++ /dev/null
@@ -1,548 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\EmptyConstraint;
-use Composer\Semver\Constraint\MultiConstraint;
-use Composer\Semver\Constraint\Constraint;
-
-/**
- * Version parser.
- *
- * @author Jordi Boggiano
- */
-class VersionParser
-{
- /**
- * Regex to match pre-release data (sort of).
- *
- * Due to backwards compatibility:
- * - Instead of enforcing hyphen, an underscore, dot or nothing at all are also accepted.
- * - Only stabilities as recognized by Composer are allowed to precede a numerical identifier.
- * - Numerical-only pre-release identifiers are not supported, see tests.
- *
- * |--------------|
- * [major].[minor].[patch] -[pre-release] +[build-metadata]
- *
- * @var string
- */
- private static $modifierRegex = '[._-]?(?:(stable|beta|b|RC|alpha|a|patch|pl|p)((?:[.-]?\d+)*+)?)?([.-]?dev)?';
-
- /** @var array */
- private static $stabilities = array('stable', 'RC', 'beta', 'alpha', 'dev');
-
- /**
- * Returns the stability of a version.
- *
- * @param string $version
- *
- * @return string
- */
- public static function parseStability($version)
- {
- $version = preg_replace('{#.+$}i', '', $version);
-
- if ('dev-' === substr($version, 0, 4) || '-dev' === substr($version, -4)) {
- return 'dev';
- }
-
- preg_match('{' . self::$modifierRegex . '(?:\+.*)?$}i', strtolower($version), $match);
- if (!empty($match[3])) {
- return 'dev';
- }
-
- if (!empty($match[1])) {
- if ('beta' === $match[1] || 'b' === $match[1]) {
- return 'beta';
- }
- if ('alpha' === $match[1] || 'a' === $match[1]) {
- return 'alpha';
- }
- if ('rc' === $match[1]) {
- return 'RC';
- }
- }
-
- return 'stable';
- }
-
- /**
- * @param string $stability
- *
- * @return string
- */
- public static function normalizeStability($stability)
- {
- $stability = strtolower($stability);
-
- return $stability === 'rc' ? 'RC' : $stability;
- }
-
- /**
- * Normalizes a version string to be able to perform comparisons on it.
- *
- * @param string $version
- * @param string $fullVersion optional complete version string to give more context
- *
- * @throws \UnexpectedValueException
- *
- * @return string
- */
- public function normalize($version, $fullVersion = null)
- {
- $version = trim($version);
- if (null === $fullVersion) {
- $fullVersion = $version;
- }
-
- // strip off aliasing
- if (preg_match('{^([^,\s]++) ++as ++([^,\s]++)$}', $version, $match)) {
- $version = $match[1];
- }
-
- // match master-like branches
- if (preg_match('{^(?:dev-)?(?:master|trunk|default)$}i', $version)) {
- return '9999999-dev';
- }
-
- // if requirement is branch-like, use full name
- if ('dev-' === strtolower(substr($version, 0, 4))) {
- return 'dev-' . substr($version, 4);
- }
-
- // strip off build metadata
- if (preg_match('{^([^,\s+]++)\+[^\s]++$}', $version, $match)) {
- $version = $match[1];
- }
-
- // match classical versioning
- if (preg_match('{^v?(\d{1,5})(\.\d++)?(\.\d++)?(\.\d++)?' . self::$modifierRegex . '$}i', $version, $matches)) {
- $version = $matches[1]
- . (!empty($matches[2]) ? $matches[2] : '.0')
- . (!empty($matches[3]) ? $matches[3] : '.0')
- . (!empty($matches[4]) ? $matches[4] : '.0');
- $index = 5;
- // match date(time) based versioning
- } elseif (preg_match('{^v?(\d{4}(?:[.:-]?\d{2}){1,6}(?:[.:-]?\d{1,3})?)' . self::$modifierRegex . '$}i', $version, $matches)) {
- $version = preg_replace('{\D}', '.', $matches[1]);
- $index = 2;
- }
-
- // add version modifiers if a version was matched
- if (isset($index)) {
- if (!empty($matches[$index])) {
- if ('stable' === $matches[$index]) {
- return $version;
- }
- $version .= '-' . $this->expandStability($matches[$index]) . (!empty($matches[$index + 1]) ? ltrim($matches[$index + 1], '.-') : '');
- }
-
- if (!empty($matches[$index + 2])) {
- $version .= '-dev';
- }
-
- return $version;
- }
-
- // match dev branches
- if (preg_match('{(.*?)[.-]?dev$}i', $version, $match)) {
- try {
- return $this->normalizeBranch($match[1]);
- } catch (\Exception $e) {
- }
- }
-
- $extraMessage = '';
- if (preg_match('{ +as +' . preg_quote($version) . '$}', $fullVersion)) {
- $extraMessage = ' in "' . $fullVersion . '", the alias must be an exact version';
- } elseif (preg_match('{^' . preg_quote($version) . ' +as +}', $fullVersion)) {
- $extraMessage = ' in "' . $fullVersion . '", the alias source must be an exact version, if it is a branch name you should prefix it with dev-';
- }
-
- throw new \UnexpectedValueException('Invalid version string "' . $version . '"' . $extraMessage);
- }
-
- /**
- * Extract numeric prefix from alias, if it is in numeric format, suitable for version comparison.
- *
- * @param string $branch Branch name (e.g. 2.1.x-dev)
- *
- * @return string|false Numeric prefix if present (e.g. 2.1.) or false
- */
- public function parseNumericAliasPrefix($branch)
- {
- if (preg_match('{^(?P(\d++\\.)*\d++)(?:\.x)?-dev$}i', $branch, $matches)) {
- return $matches['version'] . '.';
- }
-
- return false;
- }
-
- /**
- * Normalizes a branch name to be able to perform comparisons on it.
- *
- * @param string $name
- *
- * @return string
- */
- public function normalizeBranch($name)
- {
- $name = trim($name);
-
- if (in_array($name, array('master', 'trunk', 'default'))) {
- return $this->normalize($name);
- }
-
- if (preg_match('{^v?(\d++)(\.(?:\d++|[xX*]))?(\.(?:\d++|[xX*]))?(\.(?:\d++|[xX*]))?$}i', $name, $matches)) {
- $version = '';
- for ($i = 1; $i < 5; ++$i) {
- $version .= isset($matches[$i]) ? str_replace(array('*', 'X'), 'x', $matches[$i]) : '.x';
- }
-
- return str_replace('x', '9999999', $version) . '-dev';
- }
-
- return 'dev-' . $name;
- }
-
- /**
- * Parses a constraint string into MultiConstraint and/or Constraint objects.
- *
- * @param string $constraints
- *
- * @return ConstraintInterface
- */
- public function parseConstraints($constraints)
- {
- $prettyConstraint = $constraints;
-
- if (preg_match('{^([^,\s]*?)@(' . implode('|', self::$stabilities) . ')$}i', $constraints, $match)) {
- $constraints = empty($match[1]) ? '*' : $match[1];
- }
-
- if (preg_match('{^(dev-[^,\s@]+?|[^,\s@]+?\.x-dev)#.+$}i', $constraints, $match)) {
- $constraints = $match[1];
- }
-
- $orConstraints = preg_split('{\s*\|\|?\s*}', trim($constraints));
- $orGroups = array();
- foreach ($orConstraints as $constraints) {
- $andConstraints = preg_split('{(?< ,]) *(? 1) {
- $constraintObjects = array();
- foreach ($andConstraints as $constraint) {
- foreach ($this->parseConstraint($constraint) as $parsedConstraint) {
- $constraintObjects[] = $parsedConstraint;
- }
- }
- } else {
- $constraintObjects = $this->parseConstraint($andConstraints[0]);
- }
-
- if (1 === count($constraintObjects)) {
- $constraint = $constraintObjects[0];
- } else {
- $constraint = new MultiConstraint($constraintObjects);
- }
-
- $orGroups[] = $constraint;
- }
-
- if (1 === count($orGroups)) {
- $constraint = $orGroups[0];
- } elseif (2 === count($orGroups)
- // parse the two OR groups and if they are contiguous we collapse
- // them into one constraint
- && $orGroups[0] instanceof MultiConstraint
- && $orGroups[1] instanceof MultiConstraint
- && 2 === count($orGroups[0]->getConstraints())
- && 2 === count($orGroups[1]->getConstraints())
- && ($a = (string) $orGroups[0])
- && substr($a, 0, 3) === '[>=' && (false !== ($posA = strpos($a, '<', 4)))
- && ($b = (string) $orGroups[1])
- && substr($b, 0, 3) === '[>=' && (false !== ($posB = strpos($b, '<', 4)))
- && substr($a, $posA + 2, -1) === substr($b, 4, $posB - 5)
- ) {
- $constraint = new MultiConstraint(array(
- new Constraint('>=', substr($a, 4, $posA - 5)),
- new Constraint('<', substr($b, $posB + 2, -1)),
- ));
- } else {
- $constraint = new MultiConstraint($orGroups, false);
- }
-
- $constraint->setPrettyString($prettyConstraint);
-
- return $constraint;
- }
-
- /**
- * @param string $constraint
- *
- * @throws \UnexpectedValueException
- *
- * @return array
- */
- private function parseConstraint($constraint)
- {
- if (preg_match('{^([^,\s]+?)@(' . implode('|', self::$stabilities) . ')$}i', $constraint, $match)) {
- $constraint = $match[1];
- if ($match[2] !== 'stable') {
- $stabilityModifier = $match[2];
- }
- }
-
- if (preg_match('{^v?[xX*](\.[xX*])*$}i', $constraint)) {
- return array(new EmptyConstraint());
- }
-
- $versionRegex = 'v?(\d++)(?:\.(\d++))?(?:\.(\d++))?(?:\.(\d++))?' . self::$modifierRegex . '(?:\+[^\s]+)?';
-
- // Tilde Range
- //
- // Like wildcard constraints, unsuffixed tilde constraints say that they must be greater than the previous
- // version, to ensure that unstable instances of the current version are allowed. However, if a stability
- // suffix is added to the constraint, then a >= match on the current version is used instead.
- if (preg_match('{^~>?' . $versionRegex . '$}i', $constraint, $matches)) {
- if (substr($constraint, 0, 2) === '~>') {
- throw new \UnexpectedValueException(
- 'Could not parse version constraint ' . $constraint . ': ' .
- 'Invalid operator "~>", you probably meant to use the "~" operator'
- );
- }
-
- // Work out which position in the version we are operating at
- if (isset($matches[4]) && '' !== $matches[4]) {
- $position = 4;
- } elseif (isset($matches[3]) && '' !== $matches[3]) {
- $position = 3;
- } elseif (isset($matches[2]) && '' !== $matches[2]) {
- $position = 2;
- } else {
- $position = 1;
- }
-
- // Calculate the stability suffix
- $stabilitySuffix = '';
- if (!empty($matches[5])) {
- $stabilitySuffix .= '-' . $this->expandStability($matches[5]) . (!empty($matches[6]) ? $matches[6] : '');
- }
-
- if (!empty($matches[7])) {
- $stabilitySuffix .= '-dev';
- }
-
- if (!$stabilitySuffix) {
- $stabilitySuffix = '-dev';
- }
-
- $lowVersion = $this->manipulateVersionString($matches, $position, 0) . $stabilitySuffix;
- $lowerBound = new Constraint('>=', $lowVersion);
-
- // For upper bound, we increment the position of one more significance,
- // but highPosition = 0 would be illegal
- $highPosition = max(1, $position - 1);
- $highVersion = $this->manipulateVersionString($matches, $highPosition, 1) . '-dev';
- $upperBound = new Constraint('<', $highVersion);
-
- return array(
- $lowerBound,
- $upperBound,
- );
- }
-
- // Caret Range
- //
- // Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple.
- // In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for
- // versions 0.X >=0.1.0, and no updates for versions 0.0.X
- if (preg_match('{^\^' . $versionRegex . '($)}i', $constraint, $matches)) {
- // Work out which position in the version we are operating at
- if ('0' !== $matches[1] || '' === $matches[2]) {
- $position = 1;
- } elseif ('0' !== $matches[2] || '' === $matches[3]) {
- $position = 2;
- } else {
- $position = 3;
- }
-
- // Calculate the stability suffix
- $stabilitySuffix = '';
- if (empty($matches[5]) && empty($matches[7])) {
- $stabilitySuffix .= '-dev';
- }
-
- $lowVersion = $this->normalize(substr($constraint . $stabilitySuffix, 1));
- $lowerBound = new Constraint('>=', $lowVersion);
-
- // For upper bound, we increment the position of one more significance,
- // but highPosition = 0 would be illegal
- $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev';
- $upperBound = new Constraint('<', $highVersion);
-
- return array(
- $lowerBound,
- $upperBound,
- );
- }
-
- // X Range
- //
- // Any of X, x, or * may be used to "stand in" for one of the numeric values in the [major, minor, patch] tuple.
- // A partial version range is treated as an X-Range, so the special character is in fact optional.
- if (preg_match('{^v?(\d++)(?:\.(\d++))?(?:\.(\d++))?(?:\.[xX*])++$}', $constraint, $matches)) {
- if (isset($matches[3]) && '' !== $matches[3]) {
- $position = 3;
- } elseif (isset($matches[2]) && '' !== $matches[2]) {
- $position = 2;
- } else {
- $position = 1;
- }
-
- $lowVersion = $this->manipulateVersionString($matches, $position) . '-dev';
- $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev';
-
- if ($lowVersion === '0.0.0.0-dev') {
- return array(new Constraint('<', $highVersion));
- }
-
- return array(
- new Constraint('>=', $lowVersion),
- new Constraint('<', $highVersion),
- );
- }
-
- // Hyphen Range
- //
- // Specifies an inclusive set. If a partial version is provided as the first version in the inclusive range,
- // then the missing pieces are replaced with zeroes. If a partial version is provided as the second version in
- // the inclusive range, then all versions that start with the supplied parts of the tuple are accepted, but
- // nothing that would be greater than the provided tuple parts.
- if (preg_match('{^(?P' . $versionRegex . ') +- +(?P' . $versionRegex . ')($)}i', $constraint, $matches)) {
- // Calculate the stability suffix
- $lowStabilitySuffix = '';
- if (empty($matches[6]) && empty($matches[8])) {
- $lowStabilitySuffix = '-dev';
- }
-
- $lowVersion = $this->normalize($matches['from']);
- $lowerBound = new Constraint('>=', $lowVersion . $lowStabilitySuffix);
-
- $empty = function ($x) {
- return ($x === 0 || $x === '0') ? false : empty($x);
- };
-
- if ((!$empty($matches[11]) && !$empty($matches[12])) || !empty($matches[14]) || !empty($matches[16])) {
- $highVersion = $this->normalize($matches['to']);
- $upperBound = new Constraint('<=', $highVersion);
- } else {
- $highMatch = array('', $matches[10], $matches[11], $matches[12], $matches[13]);
- $highVersion = $this->manipulateVersionString($highMatch, $empty($matches[11]) ? 1 : 2, 1) . '-dev';
- $upperBound = new Constraint('<', $highVersion);
- }
-
- return array(
- $lowerBound,
- $upperBound,
- );
- }
-
- // Basic Comparators
- if (preg_match('{^(<>|!=|>=?|<=?|==?)?\s*(.*)}', $constraint, $matches)) {
- try {
- $version = $this->normalize($matches[2]);
-
- if (!empty($stabilityModifier) && $this->parseStability($version) === 'stable') {
- $version .= '-' . $stabilityModifier;
- } elseif ('<' === $matches[1] || '>=' === $matches[1]) {
- if (!preg_match('/-' . self::$modifierRegex . '$/', strtolower($matches[2]))) {
- if (substr($matches[2], 0, 4) !== 'dev-') {
- $version .= '-dev';
- }
- }
- }
-
- return array(new Constraint($matches[1] ?: '=', $version));
- } catch (\Exception $e) {
- }
- }
-
- $message = 'Could not parse version constraint ' . $constraint;
- if (isset($e)) {
- $message .= ': ' . $e->getMessage();
- }
-
- throw new \UnexpectedValueException($message);
- }
-
- /**
- * Increment, decrement, or simply pad a version number.
- *
- * Support function for {@link parseConstraint()}
- *
- * @param array $matches Array with version parts in array indexes 1,2,3,4
- * @param int $position 1,2,3,4 - which segment of the version to increment/decrement
- * @param int $increment
- * @param string $pad The string to pad version parts after $position
- *
- * @return string The new version
- */
- private function manipulateVersionString($matches, $position, $increment = 0, $pad = '0')
- {
- for ($i = 4; $i > 0; --$i) {
- if ($i > $position) {
- $matches[$i] = $pad;
- } elseif ($i === $position && $increment) {
- $matches[$i] += $increment;
- // If $matches[$i] was 0, carry the decrement
- if ($matches[$i] < 0) {
- $matches[$i] = $pad;
- --$position;
-
- // Return null on a carry overflow
- if ($i === 1) {
- return;
- }
- }
- }
- }
-
- return $matches[1] . '.' . $matches[2] . '.' . $matches[3] . '.' . $matches[4];
- }
-
- /**
- * Expand shorthand stability string to long version.
- *
- * @param string $stability
- *
- * @return string
- */
- private function expandStability($stability)
- {
- $stability = strtolower($stability);
-
- switch ($stability) {
- case 'a':
- return 'alpha';
- case 'b':
- return 'beta';
- case 'p':
- case 'pl':
- return 'patch';
- case 'rc':
- return 'RC';
- default:
- return $stability;
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/.editorconfig b/vendor/consolidation/annotated-command/.editorconfig
deleted file mode 100644
index 095771e67..000000000
--- a/vendor/consolidation/annotated-command/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[**.php]
-indent_style = space
-indent_size = 4
-
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/install b/vendor/consolidation/annotated-command/.scenarios.lock/install
deleted file mode 100755
index 16c69e107..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/install
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-SCENARIO=$1
-DEPENDENCIES=${2-install}
-
-# Convert the aliases 'highest', 'lowest' and 'lock' to
-# the corresponding composer command to run.
-case $DEPENDENCIES in
- highest)
- DEPENDENCIES=update
- ;;
- lowest)
- DEPENDENCIES='update --prefer-lowest'
- ;;
- lock|default|"")
- DEPENDENCIES=install
- ;;
-esac
-
-original_name=scenarios
-recommended_name=".scenarios.lock"
-
-base="$original_name"
-if [ -d "$recommended_name" ] ; then
- base="$recommended_name"
-fi
-
-# If scenario is not specified, install the lockfile at
-# the root of the project.
-dir="$base/${SCENARIO}"
-if [ -z "$SCENARIO" ] || [ "$SCENARIO" == "default" ] ; then
- SCENARIO=default
- dir=.
-fi
-
-# Test to make sure that the selected scenario exists.
-if [ ! -d "$dir" ] ; then
- echo "Requested scenario '${SCENARIO}' does not exist."
- exit 1
-fi
-
-echo
-echo "::"
-echo ":: Switch to ${SCENARIO} scenario"
-echo "::"
-echo
-
-set -ex
-
-composer -n validate --working-dir=$dir --no-check-all --ansi
-composer -n --working-dir=$dir ${DEPENDENCIES} --prefer-dist --no-scripts
-
-# If called from a CI context, print out some extra information about
-# what we just installed.
-if [[ -n "$CI" ]] ; then
- composer -n --working-dir=$dir info
-fi
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/.gitignore b/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/.gitignore
deleted file mode 100644
index 5657f6ea7..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
\ No newline at end of file
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/composer.json b/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/composer.json
deleted file mode 100644
index 38e81b70e..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/composer.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "name": "consolidation/annotated-command",
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "../../tests/src"
- }
- },
- "require": {
- "php": ">=5.4.0",
- "consolidation/output-formatters": "^3.4",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36",
- "g1a/composer-test-scenarios": "^3",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "config": {
- "platform": {
- "php": "5.4.8"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "SHELL_INTERACTIVE=true phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/composer.lock b/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/composer.lock
deleted file mode 100644
index 77446fb75..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/phpunit4/composer.lock
+++ /dev/null
@@ -1,1624 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "723b5d626d913974b37f32f832bc72d9",
- "packages": [
- {
- "name": "consolidation/output-formatters",
- "version": "3.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/a942680232094c4a5b21c0b7e54c20cce623ae19",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-10-19T22:35:38+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v2.8.47",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "48ed63767c4add573fb3e9e127d3426db27f78e8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/48ed63767c4add573fb3e9e127d3426db27f78e8",
- "reference": "48ed63767c4add573fb3e9e127d3426db27f78e8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/debug": "^2.7.2|~3.0.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.1|~3.0.0",
- "symfony/process": "~2.1|~3.0.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-30T14:26:34+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v2.8.47",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "6a198c52b662fa825382f5e65c0c4a56bdaca98e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/6a198c52b662fa825382f5e65c0c4a56bdaca98e",
- "reference": "6a198c52b662fa825382f5e65c0c4a56bdaca98e",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/class-loader": "~2.2|~3.0.0",
- "symfony/http-kernel": "~2.3.24|~2.5.9|^2.6.2|~3.0.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-30T16:24:01+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v2.8.47",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "76494bc38ff38d90d01913d23b5271acd4d78dd3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/76494bc38ff38d90d01913d23b5271acd4d78dd3",
- "reference": "76494bc38ff38d90d01913d23b5271acd4d78dd3",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "^2.0.5|~3.0.0",
- "symfony/dependency-injection": "~2.6|~3.0.0",
- "symfony/expression-language": "~2.6|~3.0.0",
- "symfony/stopwatch": "~2.3|~3.0.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-20T23:16:31+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v2.8.47",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "5ebb438d1aabe9dba93099dd06e0500f97817a6e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/5ebb438d1aabe9dba93099dd06e0500f97817a6e",
- "reference": "5ebb438d1aabe9dba93099dd06e0500f97817a6e",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-09-21T12:46:38+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "2a7156f1572898888ea50ad1d48a6b4d3f9fbf78"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/2a7156f1572898888ea50ad1d48a6b4d3f9fbf78",
- "reference": "2a7156f1572898888ea50ad1d48a6b4d3f9fbf78",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-22T05:10:20+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b",
- "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "dflydev/markdown": "~1.0",
- "erusev/parsedown": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2016-01-25T08:17:30+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2015-10-06T15:47:00+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.8.36",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.2.2",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.1|~3.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2017-06-21T08:07:12+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2015-10-02T06:51:40+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-08-18T05:49:44+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-06-17T09:04:28+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-10-03T07:41:43+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-06-21T13:59:46+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v2.8.47",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "0e16589861f192dbffb19b06683ce3ef58f7f99d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/0e16589861f192dbffb19b06683ce3ef58f7f99d",
- "reference": "0e16589861f192dbffb19b06683ce3ef58f7f99d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T16:27:16+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.4.8"
- }
-}
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/symfony2/.gitignore b/vendor/consolidation/annotated-command/.scenarios.lock/symfony2/.gitignore
deleted file mode 100644
index 88e99d50d..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/symfony2/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-vendor
-composer.lock
\ No newline at end of file
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/symfony2/composer.json b/vendor/consolidation/annotated-command/.scenarios.lock/symfony2/composer.json
deleted file mode 100644
index c72199a79..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/symfony2/composer.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "name": "consolidation/annotated-command",
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "../../tests/src"
- }
- },
- "require": {
- "symfony/console": "^2.8",
- "php": ">=5.4.0",
- "consolidation/output-formatters": "^3.4",
- "psr/log": "^1",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36",
- "g1a/composer-test-scenarios": "^3",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "config": {
- "platform": {
- "php": "5.4.8"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "SHELL_INTERACTIVE=true phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/.gitignore b/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/.gitignore
deleted file mode 100644
index 5657f6ea7..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
\ No newline at end of file
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/composer.json b/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/composer.json
deleted file mode 100644
index 781c918af..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/composer.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": "consolidation/annotated-command",
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "../../tests/src"
- }
- },
- "require": {
- "symfony/console": "^4.0",
- "php": ">=5.4.0",
- "consolidation/output-formatters": "^3.4",
- "psr/log": "^1",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "phpunit/phpunit": "^6",
- "php-coveralls/php-coveralls": "^1",
- "g1a/composer-test-scenarios": "^3",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "SHELL_INTERACTIVE=true phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/composer.lock b/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/composer.lock
deleted file mode 100644
index 6d4e53a6a..000000000
--- a/vendor/consolidation/annotated-command/.scenarios.lock/symfony4/composer.lock
+++ /dev/null
@@ -1,2448 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "a8431cdfea28a47d1862fb421ae77412",
- "packages": [
- {
- "name": "consolidation/output-formatters",
- "version": "3.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/a942680232094c4a5b21c0b7e54c20cce623ae19",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-10-19T22:35:38+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "432122af37d8cd52fba1b294b11976e0d20df595"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/432122af37d8cd52fba1b294b11976e0d20df595",
- "reference": "432122af37d8cd52fba1b294b11976e0d20df595",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.4|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.4|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-31T09:30:44+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "552541dad078c85d9414b09c041ede488b456cd5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/552541dad078c85d9414b09c041ede488b456cd5",
- "reference": "552541dad078c85d9414b09c041ede488b456cd5",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.4|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/expression-language": "~3.4|~4.0",
- "symfony/stopwatch": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-10T13:52:42+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "1f17195b44543017a9c9b2d437c670627e96ad06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/1f17195b44543017a9c9b2d437c670627e96ad06",
- "reference": "1f17195b44543017a9c9b2d437c670627e96ad06",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-03T08:47:56+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "^6.2.3",
- "squizlabs/php_codesniffer": "^3.0.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2017-07-22T11:58:36+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "2a7156f1572898888ea50ad1d48a6b4d3f9fbf78"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/2a7156f1572898888ea50ad1d48a6b4d3f9fbf78",
- "reference": "2a7156f1572898888ea50ad1d48a6b4d3f9fbf78",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-22T05:10:20+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": ">=2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "*",
- "monolog/monolog": "1.*",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "1.0.*",
- "symfony/class-loader": "*",
- "zendframework/zend-cache": "<2.3",
- "zendframework/zend-log": "<2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.8-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2014-01-28T22:29:15+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "replace": {
- "myclabs/deep-copy": "self.version"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^7.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2018-06-11T23:09:50+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "phar-io/version": "^1.0.1",
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2017-03-05T18:14:27+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "time": "2017-03-05T17:38:23+00:00"
- },
- {
- "name": "php-coveralls/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "5.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0",
- "phpunit/php-file-iterator": "^1.4.2",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^2.0.1",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-xdebug": "^2.5.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2018-04-06T15:36:58+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "6.5.13",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0973426fb012359b2f18d3bd1e90ef1172839693",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "^1.6.1",
- "phar-io/manifest": "^1.0.1",
- "phar-io/version": "^1.0",
- "php": "^7.0",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^5.3",
- "phpunit/php-file-iterator": "^1.4.3",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^1.0.9",
- "phpunit/phpunit-mock-objects": "^5.0.9",
- "sebastian/comparator": "^2.1",
- "sebastian/diff": "^2.0",
- "sebastian/environment": "^3.1",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^1.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2",
- "phpunit/dbunit": "<3.0"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-09-08T15:10:43+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "5.0.10",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.5",
- "php": "^7.0",
- "phpunit/php-text-template": "^1.2.1",
- "sebastian/exporter": "^3.1"
- },
- "conflict": {
- "phpunit/phpunit": "<6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.5.11"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2018-08-09T05:50:03+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "2.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/diff": "^2.0 || ^3.0",
- "sebastian/exporter": "^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2018-02-01T13:46:46+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-08-03T08:09:46+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2017-07-01T08:51:00+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2017-04-03T13:19:02+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2017-04-27T15:39:26+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "991fec8bbe77367fc8b48ecbaa8a4bd6e905a238"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/991fec8bbe77367fc8b48ecbaa8a4bd6e905a238",
- "reference": "991fec8bbe77367fc8b48ecbaa8a4bd6e905a238",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/filesystem": "~3.4|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/finder": "<3.4"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/finder": "~3.4|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-31T09:09:42+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "fd7bd6535beb1f0a0a9e3ee960666d0598546981"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/fd7bd6535beb1f0a0a9e3ee960666d0598546981",
- "reference": "fd7bd6535beb1f0a0a9e3ee960666d0598546981",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-30T13:18:25+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "5bfc064125b73ff81229e19381ce1c34d3416f4b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5bfc064125b73ff81229e19381ce1c34d3416f4b",
- "reference": "5bfc064125b73ff81229e19381ce1c34d3416f4b",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T12:40:59+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v4.1.7",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "367e689b2fdc19965be435337b50bc8adf2746c9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/367e689b2fdc19965be435337b50bc8adf2746c9",
- "reference": "367e689b2fdc19965be435337b50bc8adf2746c9",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T16:36:10+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.1.3"
- }
-}
diff --git a/vendor/consolidation/annotated-command/CHANGELOG.md b/vendor/consolidation/annotated-command/CHANGELOG.md
deleted file mode 100644
index ae4ca9efe..000000000
--- a/vendor/consolidation/annotated-command/CHANGELOG.md
+++ /dev/null
@@ -1,184 +0,0 @@
-# Change Log
-
-### 2.11.0
-
-- Make injection of InputInterface / OutputInterface general-purpose (#179)
-
-### 2.10.2 - 20 Dec 2018
-
-- Fix commands that have a @param annotation for their InputInterface/OutputInterface params (#176)
-
-### 2.10.1 - 13 Dec 2018
-
-- Add stdin handler convenience class
-- Add setter to AnnotationData to suppliment existing array acces
-- Update to Composer Test Scenarios 3
-
-### 2.10.0 - 14 Nov 2018
-
-- Add a new data type, CommandResult (#167)
-
-### 2.9.0 & 2.9.1 - 19 Sept 2018
-
-- Improve commandfile discovery for extensions installed via Composer. (#156)
-
-### 2.8.5 - 18 Aug 2018
-
-- Add dependencies.yml for dependencies.io
-- Fix warning in AnnotatedCommandFactory when getCommandInfoListFromCache called with null.
-
-### 2.8.4 - 25 May 2018
-
-- Use g1a/composer-test-scenarios for better PHP version matrix testing.
-
-### 2.8.3 - 23 Feb 2018
-
-- BUGFIX: Do not shift off the command name unless it is there. (#139)
-- Use test scenarios to test multiple versions of Symfony. (#136, #137)
-
-### 2.8.2 - 29 Nov 2017
-
-- Allow Symfony 4 components.
-
-### 2.8.1 - 16 Oct 2017
-
-- Add hook methods to allow Symfony command events to be added directly to the hook manager, givig better control of hook order. (#131)
-
-### 2.8.0 - 13 Oct 2017
-
-- Remove phpdocumentor/reflection-docblock in favor of using a bespoke parser (#130)
-
-### 2.7.0 - 18 Sept 2017
-
-- Add support for options with a default value of 'true' (#119)
-- BUGFIX: Improve handling of options with optional values, which previously was not working correctly. (#118)
-
-### 2.6.1 - 18 Sep 2017
-
-- Reverts to contents of the 2.4.13 release.
-
-### 2.5.0 & 2.5.1 - 17 Sep 2017
-
-- BACKED OUT. These releases accidentally introduced breaking changes.
-
-### 2.4.13 - 28 Aug 2017
-
-- Add a followLinks() method (#108)
-
-### 2.4.12 - 24 Aug 2017
-
-- BUGFIX: Allow annotated commands to directly use InputInterface and OutputInterface (#106)
-
-### 2.4.11 - 27 July 2017
-
-- Back out #102: do not change behavior of word wrap based on STDOUT redirection.
-
-### 2.4.10 - 21 July 2017
-
-- Add a method CommandProcessor::setPassExceptions() to allow applicationsto prevent the command processor from catching exceptions thrown by command methods and hooks. (#103)
-
-### 2.4.9 - 20 Jul 2017
-
-- Automatically disable wordwrap when the terminal is not connected to STDOUT (#102)
-
-### 2.4.8 - 3 Apr 2017
-
-- Allow multiple annotations with the same key. These are returned as a csv, or, alternately, can be accessed as an array via the new accessor.
-- Unprotect two methods for benefit of Drush help. (#99)
-- BUGFIX: Remove symfony/console pin (#100)
-
-### 2.4.7 & 2.4.6 - 17 Mar 2017
-
-- Avoid wrapping help text (#93)
-- Pin symfony/console to version < 3.2.5 (#94)
-- Add getExampleUsages() to AnnotatedCommand. (#92)
-
-### 2.4.5 - 28 Feb 2017
-
-- Ensure that placeholder entries are written into the commandfile cache. (#86)
-
-### 2.4.4 - 27 Feb 2017
-
-- BUGFIX: Avoid rewriting the command cache unless something has changed.
-- BUGFIX: Ensure that the default value of options are correctly cached.
-
-### 2.4.2 - 24 Feb 2017
-
-- Add SimpleCacheInterface as a documentation interface (not enforced).
-
-### 2.4.1 - 20 Feb 2017
-
-- Support array options: multiple options on the commandline may be passed in to options array as an array of values.
-- Add php 7.1 to the test matrix.
-
-### 2.4.0 - 3 Feb 2017
-
-- Automatically rebuild cached commandfile data when commandfile changes.
-- Provide path to command file in AnnotationData objects.
-- Bugfix: Add dynamic options when user runs '--help my:command' (previously, only 'help my:command' worked).
-- Bugfix: Include description of last parameter in help (was omitted if no options present)
-- Add Windows testing with Appveyor
-
-
-### 2.3.0 - 19 Jan 2017
-
-- Add a command info cache to improve performance of applications with many commands
-- Bugfix: Allow trailing backslashes in namespaces in CommandFileDiscovery
-- Bugfix: Rename @topic to @topics
-
-
-### 2.2.0 - 23 November 2016
-
-- Support custom events
-- Add xml and json output for replacement help command. Text / html format for replacement help command not available yet.
-
-
-### 2.1.0 - 14 November 2016
-
-- Add support for output formatter wordwrapping
-- Fix version requirement for output-formatters in composer.json
-- Use output-formatters ~3
-- Move php_codesniffer back to require-dev (moved to require by mistake)
-
-
-### 2.0.0 - 30 September 2016
-
-- **Breaking** Hooks with no command name now apply to all commands defined in the same class. This is a change of behavior from the 1.x branch, where hooks with no command name applied to a command with the same method name in a *different* class.
-- **Breaking** The interfaces ValidatorInterface, ProcessResultInterface and AlterResultInterface have been updated to be passed a CommandData object, which contains an Input and Output object, plus the AnnotationData.
-- **Breaking** The Symfony Command Event hook has been renamed to COMMAND_EVENT. There is a new COMMAND hook that behaves like the existing Drush command hook (i.e. the post-command event is called after the primary command method runs).
-- Add an accessor function AnnotatedCommandFactory::setIncludeAllPublicMethods() to control whether all public methods of a command class, or only those with a @command annotation will be treated as commands. Default remains to treat all public methods as commands. The parameters to AnnotatedCommandFactory::createCommandsFromClass() and AnnotatedCommandFactory::createCommandsFromClassInfo() still behave the same way, but are deprecated. If omitted, the value set by the accessor will be used.
-- @option and @usage annotations provided with @hook methods will be added to the help text of the command they hook. This should be done if a hook needs to add a new option, e.g. to control the behavior of the hook.
-- @option annotations can now be either `@option type $name description`, or just `@option name description`.
-- `@hook option` can be used to programatically add options to a command.
-- A CommandInfoAltererInterface can be added via AnnotatedCommandFactory::addCommandInfoAlterer(); it will be given the opportunity to adjust every CommandInfo object parsed from a command file prior to the creation of commands.
-- AnnotatedCommandFactory::setIncludeAllPublicMethods(false) may be used to require methods to be annotated with @commnad in order to be considered commands. This is in preference to the existing parameters of various command-creation methods of AnnotatedCommandFactory, which are now all deprecated in favor of this setter function.
-- If a --field option is given, it will also force the output format to 'string'.
-- Setter methods more consistently return $this.
-- Removed PassThroughArgsInput. This class was unnecessary.
-
-
-### 1.4.0 - 13 September 2016
-
-- Add basic annotation hook capability, to allow hook functions to be attached to commands with arbitrary annotations.
-
-
-### 1.3.0 - 8 September 2016
-
-- Add ComandFileDiscovery::setSearchDepth(). The search depth applies to each search location, unless there are no search locations, in which case it applies to the base directory.
-
-
-### 1.2.0 - 2 August 2016
-
-- Support both the 2.x and 3.x versions of phpdocumentor/reflection-docblock.
-- Support php 5.4.
-- **Bug** Do not allow an @param docblock comment for the options to override the meaning of the options.
-
-
-### 1.1.0 - 6 July 2016
-
-- Introduce AnnotatedCommandFactory::createSelectedCommandsFromClassInfo() method.
-
-
-### 1.0.0 - 20 May 2016
-
-- First stable release.
diff --git a/vendor/consolidation/annotated-command/CONTRIBUTING.md b/vendor/consolidation/annotated-command/CONTRIBUTING.md
deleted file mode 100644
index 7a526eb50..000000000
--- a/vendor/consolidation/annotated-command/CONTRIBUTING.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Contributing to Consolidation
-
-Thank you for your interest in contributing to the Consolidation effort! Consolidation aims to provide reusable, loosely-coupled components useful for building command-line tools. Consolidation is built on top of Symfony Console, but aims to separate the tool from the implementation details of Symfony.
-
-Here are some of the guidelines you should follow to make the most of your efforts:
-
-## Code Style Guidelines
-
-Consolidation adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code.
-
-## Pull Request Guidelines
-
-Every pull request is run through:
-
- - phpcs -n --standard=PSR2 src
- - phpunit
- - [Scrutinizer](https://scrutinizer-ci.com/g/consolidation/annotated-command/)
-
-It is easy to run the unit tests and code sniffer locally; just run:
-
- - composer cs
-
-To run the code beautifier, which will fix many of the problems reported by phpcs:
-
- - composer cbf
-
-These two commands (`composer cs` and `composer cbf`) are defined in the `scripts` section of [composer.json](composer.json).
-
-After submitting a pull request, please examine the Scrutinizer report. It is not required to fix all Scrutinizer issues; you may ignore recommendations that you disagree with. The spacing patches produced by Scrutinizer do not conform to PSR2 standards, and therefore should never be applied. DocBlock patches may be applied at your discression. Things that Scrutinizer identifies as a bug nearly always need to be addressed.
-
-Pull requests must pass phpcs and phpunit in order to be merged; ideally, new functionality will also include new unit tests.
diff --git a/vendor/consolidation/annotated-command/LICENSE b/vendor/consolidation/annotated-command/LICENSE
deleted file mode 100644
index 878fb292c..000000000
--- a/vendor/consolidation/annotated-command/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016-2018 Consolidation Org Developers
-
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-DEPENDENCY LICENSES:
-
-Name Version License
-consolidation/output-formatters 3.4.0 MIT
-dflydev/dot-access-data v1.1.0 MIT
-psr/log 1.1.0 MIT
-symfony/console v2.8.47 MIT
-symfony/debug v2.8.47 MIT
-symfony/event-dispatcher v2.8.47 MIT
-symfony/finder v2.8.47 MIT
-symfony/polyfill-mbstring v1.10.0 MIT
\ No newline at end of file
diff --git a/vendor/consolidation/annotated-command/README.md b/vendor/consolidation/annotated-command/README.md
deleted file mode 100644
index efcba14b4..000000000
--- a/vendor/consolidation/annotated-command/README.md
+++ /dev/null
@@ -1,595 +0,0 @@
-# Consolidation\AnnotatedCommand
-
-Initialize Symfony Console commands from annotated command class methods.
-
-[![Travis CI](https://travis-ci.org/consolidation/annotated-command.svg?branch=master)](https://travis-ci.org/consolidation/annotated-command)
-[![Windows CI](https://ci.appveyor.com/api/projects/status/c2c4lcf43ux4c30p?svg=true)](https://ci.appveyor.com/project/greg-1-anderson/annotated-command)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/consolidation/annotated-command/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/consolidation/annotated-command/?branch=master)
-[![Coverage Status](https://coveralls.io/repos/github/consolidation/annotated-command/badge.svg?branch=master)](https://coveralls.io/github/consolidation/annotated-command?branch=master)
-[![License](https://poser.pugx.org/consolidation/annotated-command/license)](https://packagist.org/packages/consolidation/annotated-command)
-
-## Component Status
-
-Currently in use in [Robo](https://github.com/consolidation/Robo) (1.x+), [Drush](https://github.com/drush-ops/drush) (9.x+) and [Terminus](https://github.com/pantheon-systems/terminus) (1.x+).
-
-## Motivation
-
-Symfony Console provides a set of classes that are widely used to implement command line tools. Increasingly, it is becoming popular to use annotations to describe the characteristics of the command (e.g. its arguments, options and so on) implemented by the annotated method.
-
-Extant commandline tools that utilize this technique include:
-
-- [Robo](https://github.com/consolidation/Robo)
-- [wp-cli](https://github.com/wp-cli/wp-cli)
-- [Pantheon Terminus](https://github.com/pantheon-systems/terminus)
-
-This library provides routines to produce the Symfony\Component\Console\Command\Command from all public methods defined in the provided class.
-
-**Note** If you are looking for a very fast way to write a Symfony Console-base command-line tool, you should consider using [Robo](https://github.com/consolidation/Robo), which is built on top of this library, and adds additional conveniences to get you going quickly. Use [g1a/starter](https://github.com/g1a/starter) to quickly scaffold a new commandline tool. See [Using Robo as a Framework](http://robo.li/framework/). It is possible to use this project without Robo if desired, of course.
-
-## Library Usage
-
-This is a library intended to be used in some other project. Require from your composer.json file:
-```
- "require": {
- "consolidation/annotated-command": "^2"
- },
-```
-
-## Example Annotated Command Class
-The public methods of the command class define its commands, and the parameters of each method define its arguments and options. The command options, if any, are declared as the last parameter of the methods. The options will be passed in as an associative array; the default options of the last parameter should list the options recognized by the command.
-
-The rest of the parameters are arguments. Parameters with a default value are optional; those without a default value are required.
-```php
-class MyCommandClass
-{
- /**
- * This is the my:echo command
- *
- * This command will concatenate two parameters. If the --flip flag
- * is provided, then the result is the concatenation of two and one.
- *
- * @command my:echo
- * @param integer $one The first parameter.
- * @param integer $two The other parameter.
- * @option arr An option that takes multiple values.
- * @option flip Whether or not the second parameter should come first in the result.
- * @aliases c
- * @usage bet alpha --flip
- * Concatenate "alpha" and "bet".
- */
- public function myEcho($one, $two, $options = ['flip' => false])
- {
- if ($options['flip']) {
- return "{$two}{$one}";
- }
- return "{$one}{$two}";
- }
-}
-```
-## Option Default Values
-
-The `$options` array must be an associative array whose key is the name of the option, and whose value is one of:
-
-- The boolean value `false`, which indicates that the option takes no value.
-- A **string** containing the default value for options that may be provided a value, but are not required to.
-- The special value InputOption::VALUE_REQUIRED, which indicates that the user must provide a value for the option whenever it is used.
-- The special value InputOption::VALUE_OPTIONAL, which produces the following behavior:
- - If the option is given a value (e.g. `--foo=bar`), then the value will be a string.
- - If the option exists on the commandline, but has no value (e.g. `--foo`), then the value will be `true`.
- - If the option does not exist on the commandline at all, then the value will be `null`.
- - If the user explicitly sets `--foo=0`, then the value will be converted to `false`.
- - LIMITATION: If any Input object other than ArgvInput (or a subclass thereof) is used, then the value will be `null` for both the no-value case (`--foo`) and the no-option case. When using a StringInput, use `--foo=1` instead of `--foo` to avoid this problem.
-- The special value `true` produces the following behavior:
- - If the option is given a value (e.g. `--foo=bar`), then the value will be a string.
- - If the option exists on the commandline, but has no value (e.g. `--foo`), then the value will be `true`.
- - If the option does not exist on the commandline at all, then the value will also be `true`.
- - If the user explicitly sets `--foo=0`, then the value will be converted to `false`.
- - If the user adds `--no-foo` on the commandline, then the value of `foo` will be `false`.
-- An empty array, which indicates that the option may appear multiple times on the command line.
-
-No other values should be used for the default value. For example, `$options = ['a' => 1]` is **incorrect**; instead, use `$options = ['a' => '1']`.
-
-Default values for options may also be provided via the `@default` annotation. See hook alter, below.
-
-## Hooks
-
-Commandfiles may provide hooks in addition to commands. A commandfile method that contains a @hook annotation is registered as a hook instead of a command. The format of the hook annotation is:
-```
-@hook type target
-```
-The hook **type** determines when during the command lifecycle this hook will be called. The available hook types are described in detail below.
-
-The hook **target** specifies which command or commands the hook will be attached to. There are several different ways to specify the hook target.
-
-- The command's primary name (e.g. `my:command`) or the command's method name (e.g. myCommand) will attach the hook to only that command.
-- An annotation (e.g. `@foo`) will attach the hook to any command that is annotated with the given label.
-- If the target is specified as `*`, then the hook will be attached to all commands.
-- If the target is omitted, then the hook will be attached to every command defined in the same class as the hook implementation.
-
-There are ten types of hooks in the command processing request flow:
-
-- [Command Event](#command-event-hook) (Symfony)
- - @pre-command-event
- - @command-event
- - @post-command-event
-- [Option](#option-event-hook)
- - @pre-option
- - @option
- - @post-option
-- [Initialize](#initialize-hook) (Symfony)
- - @pre-init
- - @init
- - @post-init
-- [Interact](#interact-hook) (Symfony)
- - @pre-interact
- - @interact
- - @post-interact
-- [Validate](#validate-hook)
- - @pre-validate
- - @validate
- - @post-validate
-- [Command](#command-hook)
- - @pre-command
- - @command
- - @command-init
-- [Process](#process-hook)
- - @pre-process
- - @process
- - @post-process
-- [Alter](#alter-hook)
- - @pre-alter
- - @alter
- - @post-alter
-- [Status](#status-hook)
- - @status
-- [Extract](#extract-hook)
- - @extract
-
-In addition to these, there are two more hooks available:
-
-- [On-event](#on-event-hook)
- - @on-event
-- [Replace Command](#replace-command-hook)
- - @replace-command
-
-The "pre" and "post" varieties of these hooks, where avalable, give more flexibility vis-a-vis hook ordering (and for consistency). Within one type of hook, the running order is undefined and not guaranteed. Note that many validate, process and alter hooks may run, but the first status or extract hook that successfully returns a result will halt processing of further hooks of the same type.
-
-Each hook has an interface that defines its calling conventions; however, any callable may be used when registering a hook, which is convenient if versions of PHP prior to 7.0 (with no anonymous classes) need to be supported.
-
-### Command Event Hook
-
-The command-event hook is called via the Symfony Console command event notification callback mechanism. This happens prior to event dispatching and command / option validation. Note that Symfony does not allow the $input object to be altered in this hook; any change made here will be reset, as Symfony re-parses the object. Changes to arguments and options should be done in the initialize hook (non-interactive alterations) or the interact hook (which is naturally for interactive alterations).
-
-### Option Event Hook
-
-The option event hook ([OptionHookInterface](src/Hooks/OptionHookInterface.php)) is called for a specific command, whenever it is executed, or its help command is called. Any additional options for the command may be added here by calling the `addOption` method of the provided `$command` object. Note that the option hook is only necessary for calculating dynamic options. Static options may be added via the @option annotation on any hook that uses them. See the [Alter Hook](https://github.com/consolidation/annotated-command#alter-hook) documentation below for an example.
-```
-use Consolidation\AnnotatedCommand\AnnotationData;
-use Symfony\Component\Console\Command\Command;
-
-/**
- * @hook option some:command
- */
-public function additionalOption(Command $command, AnnotationData $annotationData)
-{
- $command->addOption(
- 'dynamic',
- '',
- InputOption::VALUE_NONE,
- 'Option added by @hook option some:command'
- );
-}
-```
-
-### Initialize Hook
-
-The initialize hook ([InitializeHookInterface](src/Hooks/InitializeHookInterface.php)) runs prior to the interact hook. It may supply command arguments and options from a configuration file or other sources. It should never do any user interaction.
-
-The [consolidation/config](https://github.com/consolidation/config) project (which is used in [Robo PHP](https://github.com/consolidation/robo)) uses `@hook init` to automatically inject values from `config.yml` configuration files for options that were not provided on the command line.
-```
-use Consolidation\AnnotatedCommand\AnnotationData;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * @hook init some:command
- */
-public function initSomeCommand(InputInterface $input, AnnotationData $annotationData)
-{
- $value = $input->getOption('some-option');
- if (!$value) {
- $input->setOption('some-option', $this->generateRandomOptionValue());
- }
-}
-```
-
-You may alter the AnnotationData here by using simple array syntax. Below, we
-add an additional display field label for a Property List.
-
-```
-use Consolidation\AnnotatedCommand\AnnotationData;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * @hook init some:command
- */
-public function initSomeCommand(InputInterface $input, AnnotationData $annotationData)
-{
- $annotationData['field-labels'] .= "\n" . "new_field: My new field";
-}
-```
-
-Alternately, you may use the `set()` or `append()` methods on the AnnotationData
-class.
-
-```
-use Consolidation\AnnotatedCommand\AnnotationData;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * @hook init some:command
- */
-public function initSomeCommand(InputInterface $input, AnnotationData $annotationData)
-{
- // Add a line to the field labels.
- $annotationData->append('field-labels', "\n" . "new_field: My new field");
- // Replace all field labels.
- $annotationData->set('field-labels', "one_field: My only field");
-
-}
-```
-
-### Interact Hook
-
-The interact hook ([InteractorInterface](src/Hooks/InteractorInterface.php)) runs prior to argument and option validation. Required arguments and options not supplied on the command line may be provided during this phase by prompting the user. Note that the interact hook is not called if the --no-interaction flag is supplied, whereas the command-event hook and the init hook are.
-```
-use Consolidation\AnnotatedCommand\AnnotationData;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-/**
- * @hook interact some:command
- */
-public function interact(InputInterface $input, OutputInterface $output, AnnotationData $annotationData)
-{
- $io = new SymfonyStyle($input, $output);
-
- // If the user did not specify a password, then prompt for one.
- $password = $input->getOption('password');
- if (empty($password)) {
- $password = $io->askHidden("Enter a password:", function ($value) { return $value; });
- $input->setOption('password', $password);
- }
-}
-```
-
-### Validate Hook
-
-The purpose of the validate hook ([ValidatorInterface](src/Hooks/ValidatorInterface.php)) is to ensure the state of the targets of the current command are usabe in the context required by that command. Symfony has already validated the arguments and options prior to this hook. It is possible to alter the values of the arguments and options if necessary, although this is better done in the configure hook. A validation hook may take one of several actions:
-
-- Do nothing. This indicates that validation succeeded.
-- Return a CommandError. Validation fails, and execution stops. The CommandError contains a status result code and a message, which is printed.
-- Throw an exception. The exception is converted into a CommandError.
-- Return false. Message is empty, and status is 1. Deprecated.
-
-The validate hook may change the arguments and options of the command by modifying the Input object in the provided CommandData parameter. Any number of validation hooks may run, but if any fails, then execution of the command stops.
-```
-use Consolidation\AnnotatedCommand\CommandData;
-
-/**
- * @hook validate some:command
- */
-public function validatePassword(CommandData $commandData)
-{
- $input = $commandData->input();
- $password = $input->getOption('password');
-
- if (strpbrk($password, '!;$`') === false) {
- throw new \Exception("Your password MUST contain at least one of the characters ! ; ` or $, for no rational reason whatsoever.");
- }
-}
-```
-
-### Command Hook
-
-The command hook is provided for semantic purposes. The pre-command and command hooks are equivalent to the post-validate hook, and should confirm to the interface ([ValidatorInterface](src/Hooks/ValidatorInterface.php)). All of the post-validate hooks will be called before the first pre-command hook is called. Similarly, the post-command hook is equivalent to the pre-process hook, and should implement the interface ([ProcessResultInterface](src/Hooks/ProcessResultInterface.php)).
-
-The command callback itself (the method annotated @command) is called after the last command hook, and prior to the first post-command hook.
-```
-use Consolidation\AnnotatedCommand\CommandData;
-
-/**
- * @hook pre-command some:command
- */
-public function preCommand(CommandData $commandData)
-{
- // Do something before some:command
-}
-
-/**
- * @hook post-command some:command
- */
-public function postCommand($result, CommandData $commandData)
-{
- // Do something after some:command
-}
-```
-
-### Process Hook
-
-The process hook ([ProcessResultInterface](src/Hooks/ProcessResultInterface.php)) is specifically designed to convert a series of processing instructions into a final result. An example of this is implemented in Robo in the [CollectionProcessHook](https://github.com/consolidation/Robo/blob/master/src/Collection/CollectionProcessHook.php) class; if a Robo command returns a TaskInterface, then a Robo process hook will execute the task and return the result. This allows a pre-process hook to alter the task, e.g. by adding more operations to a task collection.
-
-The process hook should not be used for other purposes.
-```
-use Consolidation\AnnotatedCommand\CommandData;
-
-/**
- * @hook process some:command
- */
-public function process($result, CommandData $commandData)
-{
- if ($result instanceof MyInterimType) {
- $result = $this->convertInterimResult($result);
- }
-}
-```
-
-### Alter Hook
-
-An alter hook ([AlterResultInterface](src/Hooks/AlterResultInterface.php)) changes the result object. Alter hooks should only operate on result objects of a type they explicitly recognize. They may return an object of the same type, or they may convert the object to some other type.
-
-If something goes wrong, and the alter hooks wishes to force the command to fail, then it may either return a CommandError object, or throw an exception.
-```
-use Consolidation\AnnotatedCommand\CommandData;
-
-/**
- * Demonstrate an alter hook with an option
- *
- * @hook alter some:command
- * @option $alteration Alter the result of the command in some way.
- * @usage some:command --alteration
- */
-public function alterSomeCommand($result, CommandData $commandData)
-{
- if ($commandData->input()->getOption('alteration')) {
- $result[] = $this->getOneMoreRow();
- }
-
- return $result;
-}
-```
-
-If an option needs to be provided with a default value, that may be done via the `@default` annotation.
-
-```
-use Consolidation\AnnotatedCommand\CommandData;
-
-/**
- * Demonstrate an alter hook with an option that has a default value
- *
- * @hook alter some:command
- * @option $name Give the result a name.
- * @default $name George
- * @usage some:command --name=George
- */
-public function nameSomeCommand($result, CommandData $commandData)
-{
- $result['name'] = $commandData->input()->getOption('name')
-
- return $result;
-}
-```
-
-### Status Hook
-
-**DEPRECATED**
-
-Instead of using a Status Determiner hook, commands should simply return their exit code and result data separately using a CommandResult object.
-
-The status hook ([StatusDeterminerInterface](src/Hooks/StatusDeterminerInterface.php)) is responsible for determing whether a command succeeded (status code 0) or failed (status code > 0). The result object returned by a command may be a compound object that contains multiple bits of information about the command result. If the result object implements [ExitCodeInterface](ExitCodeInterface.php), then the `getExitCode()` method of the result object is called to determine what the status result code for the command should be. If ExitCodeInterface is not implemented, then all of the status hooks attached to this command are executed; the first one that successfully returns a result will stop further execution of status hooks, and the result it returned will be used as the status result code for this operation.
-
-If no status hook returns any result, then success is presumed.
-
-### Extract Hook
-
-**DEPRECATED**
-
-See [RowsOfFieldsWithMetadata in output-formatters](https://github.com/consolidation/output-formatters/blob/master/src/StructuredData/RowsOfFieldsWithMetadata.php) for an alternative that is more flexible for most use cases.
-
-The extract hook ([ExtractOutputInterface](src/Hooks/ExtractOutputInterface.php)) is responsible for determining what the actual rendered output for the command should be. The result object returned by a command may be a compound object that contains multiple bits of information about the command result. If the result object implements [OutputDataInterface](OutputDataInterface.php), then the `getOutputData()` method of the result object is called to determine what information should be displayed to the user as a result of the command's execution. If OutputDataInterface is not implemented, then all of the extract hooks attached to this command are executed; the first one that successfully returns output data will stop further execution of extract hooks.
-
-If no extract hook returns any data, then the result object itself is printed if it is a string; otherwise, no output is emitted (other than any produced by the command itself).
-
-### On-Event hook
-
-Commands can define their own custom events; to do so, they need only implement the CustomEventAwareInterface, and use the CustomEventAwareTrait. Event handlers for each custom event can then be defined using the on-event hook.
-
-A handler using an on-event hook looks something like the following:
-```
-/**
- * @hook on-event custom-event
- */
-public function handlerForCustomEvent(/* arbitrary parameters, as defined by custom-event */)
-{
- // do the needful, return what custom-event expects
-}
-```
-Then, to utilize this in a command:
-```
-class MyCommands implements CustomEventAwareInterface
-{
- use CustomEventAwareTrait;
-
- /**
- * @command my-command
- */
- public myCommand($options = [])
- {
- $handlers = $this->getCustomEventHandlers('custom-event');
- // iterate and call $handlers
- }
-}
-```
-It is up to the command that defines the custom event to declare what the expected parameters for the callback function should be, and what the return value is and how it should be used.
-
-### Replace Command Hook
-
-The replace-command ([ReplaceCommandHookInterface](src/Hooks/ReplaceCommandHookInterface.php)) hook permits you to replace a command's method with another method of your own.
-
-For instance, if you'd like to replace the `foo:bar` command, you could utilize the following code:
-
-```php
-input(), $commandData->output());
- }
-}
-```
-Then, an instance of 'MySymfonyStyle' will be provided to any command handler method that takes a SymfonyStyle parameter if the SymfonyStyleInjector is registered in your application's initialization code like so:
-```
-$commandProcessor->parameterInjection()->register('Symfony\Component\Console\Style\SymfonyStyle', new SymfonyStyleInjector);
-```
-
-## Handling Standard Input
-
-Any Symfony command may use the provides StdinHandler to imlement commands that read from standard input.
-
-```php
- /**
- * @command example
- * @option string $file
- * @default $file -
- */
- public function example(InputInterface $input)
- {
- $data = StdinHandler::selectStream($input, 'file')->contents();
- }
-```
-This example will read all of the data available from the stdin stream into $data, or, alternately, will read the entire contents of the file specified via the `--file=/path` option.
-
-For more details, including examples of using the StdinHandle with a DI container, see the comments in [StdinHandler.php](src/Input/StdinHandler.php).
-
-## API Usage
-
-If you would like to use Annotated Commands to build a commandline tool, it is recommended that you use [Robo as a framework](http://robo.li/framework), as it will set up all of the various command classes for you. If you would like to integrate Annotated Commands into some other framework, see the sections below.
-
-### Set up Command Factory and Instantiate Commands
-
-To use annotated commands in an application, pass an instance of your command class in to AnnotatedCommandFactory::createCommandsFromClass(). The result will be a list of Commands that may be added to your application.
-```php
-$myCommandClassInstance = new MyCommandClass();
-$commandFactory = new AnnotatedCommandFactory();
-$commandFactory->setIncludeAllPublicMethods(true);
-$commandFactory->commandProcessor()->setFormatterManager(new FormatterManager());
-$commandList = $commandFactory->createCommandsFromClass($myCommandClassInstance);
-foreach ($commandList as $command) {
- $application->add($command);
-}
-```
-You may have more than one command class, if you wish. If so, simply call AnnotatedCommandFactory::createCommandsFromClass() multiple times.
-
-If you do not wish every public method in your classes to be added as commands, use `AnnotatedCommandFactory::setIncludeAllPublicMethods(false)`, and only methods annotated with @command will become commands.
-
-Note that the `setFormatterManager()` operation is optional; omit this if not using [Consolidation/OutputFormatters](https://github.com/consolidation/output-formatters).
-
-A CommandInfoAltererInterface can be added via AnnotatedCommandFactory::addCommandInfoAlterer(); it will be given the opportunity to adjust every CommandInfo object parsed from a command file prior to the creation of commands.
-
-### Command File Discovery
-
-A discovery class, CommandFileDiscovery, is also provided to help find command files on the filesystem. Usage is as follows:
-```php
-$discovery = new CommandFileDiscovery();
-$myCommandFiles = $discovery->discover($path, '\Drupal');
-foreach ($myCommandFiles as $myCommandClass) {
- $myCommandClassInstance = new $myCommandClass();
- // ... as above
-}
-```
-For a discussion on command file naming conventions and search locations, see https://github.com/consolidation/annotated-command/issues/12.
-
-If different namespaces are used at different command file paths, change the call to discover as follows:
-```php
-$myCommandFiles = $discovery->discover(['\Ns1' => $path1, '\Ns2' => $path2]);
-```
-As a shortcut for the above, the method `discoverNamespaced()` will take the last directory name of each path, and append it to the base namespace provided. This matches the conventions used by Drupal modules, for example.
-
-### Configuring Output Formatts (e.g. to enable wordwrap)
-
-The Output Formatters project supports automatic formatting of tabular output. In order for wordwrapping to work correctly, the terminal width must be passed in to the Output Formatters handlers via `FormatterOptions::setWidth()`.
-
-In the Annotated Commands project, this is done via dependency injection. If a `PrepareFormatter` object is passed to `CommandProcessor::addPrepareFormatter()`, then it will be given an opportunity to set properties on the `FormatterOptions` when it is created.
-
-A `PrepareTerminalWidthOption` class is provided to use the Symfony Application class to fetch the terminal width, and provide it to the FormatterOptions. It is injected as follows:
-```php
-$terminalWidthOption = new PrepareTerminalWidthOption();
-$terminalWidthOption->setApplication($application);
-$commandFactory->commandProcessor()->addPrepareFormatter($terminalWidthOption);
-```
-To provide greater control over the width used, create your own `PrepareTerminalWidthOption` subclass, and adjust the width as needed.
-
-## Other Callbacks
-
-In addition to the hooks provided by the hook manager, there are additional callbacks available to alter the way the annotated command library operates.
-
-### Factory Listeners
-
-Factory listeners are notified every time a command file instance is used to create annotated commands.
-```
-public function AnnotatedCommandFactory::addListener(CommandCreationListenerInterface $listener);
-```
-Listeners can be used to construct command file instances as they are provided to the command factory.
-
-### Option Providers
-
-An option provider is given an opportunity to add options to a command as it is being constructed.
-```
-public function AnnotatedCommandFactory::addAutomaticOptionProvider(AutomaticOptionsProviderInterface $listener);
-```
-The complete CommandInfo record with all of the annotation data is available, so you can, for example, add an option `--foo` to every command whose method is annotated `@fooable`.
-
-### CommandInfo Alterers
-
-CommandInfo alterers can adjust information about a command immediately before it is created. Typically, these will be used to supply default values for annotations custom to the command, or take other actions based on the interfaces implemented by the commandfile instance.
-```
-public function alterCommandInfo(CommandInfo $commandInfo, $commandFileInstance);
-```
diff --git a/vendor/consolidation/annotated-command/composer.json b/vendor/consolidation/annotated-command/composer.json
deleted file mode 100644
index 25baa6fcb..000000000
--- a/vendor/consolidation/annotated-command/composer.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "name": "consolidation/annotated-command",
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload":{
- "psr-4":{
- "Consolidation\\AnnotatedCommand\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "tests/src"
- }
- },
- "require": {
- "php": ">=5.4.0",
- "consolidation/output-formatters": "^3.4",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "phpunit/phpunit": "^6",
- "php-coveralls/php-coveralls": "^1",
- "g1a/composer-test-scenarios": "^3",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "7.0.8"
- }
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "SHELL_INTERACTIVE=true phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- },
- "scenario-options": {
- "create-lockfile": "false"
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/composer.lock b/vendor/consolidation/annotated-command/composer.lock
deleted file mode 100644
index ce2d5ad04..000000000
--- a/vendor/consolidation/annotated-command/composer.lock
+++ /dev/null
@@ -1,2503 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "3c6b3e869447a986290d067cbf905c6f",
- "packages": [
- {
- "name": "consolidation/output-formatters",
- "version": "3.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/a942680232094c4a5b21c0b7e54c20cce623ae19",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-10-19T22:35:38+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "1d228fb4602047d7b26a0554e0d3efd567da5803"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/1d228fb4602047d7b26a0554e0d3efd567da5803",
- "reference": "1d228fb4602047d7b26a0554e0d3efd567da5803",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-30T16:50:50+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "fe9793af008b651c5441bdeab21ede8172dab097"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/fe9793af008b651c5441bdeab21ede8172dab097",
- "reference": "fe9793af008b651c5441bdeab21ede8172dab097",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-31T09:06:03+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "db9e829c8f34c3d35cf37fcd4cdb4293bc4a2f14"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/db9e829c8f34c3d35cf37fcd4cdb4293bc4a2f14",
- "reference": "db9e829c8f34c3d35cf37fcd4cdb4293bc4a2f14",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-30T16:50:50+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "54ba444dddc5bd5708a34bd095ea67c6eb54644d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/54ba444dddc5bd5708a34bd095ea67c6eb54644d",
- "reference": "54ba444dddc5bd5708a34bd095ea67c6eb54644d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-03T08:46:40+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "2a7156f1572898888ea50ad1d48a6b4d3f9fbf78"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/2a7156f1572898888ea50ad1d48a6b4d3f9fbf78",
- "reference": "2a7156f1572898888ea50ad1d48a6b4d3f9fbf78",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-22T05:10:20+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": ">=2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "*",
- "monolog/monolog": "1.*",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "1.0.*",
- "symfony/class-loader": "*",
- "zendframework/zend-cache": "<2.3",
- "zendframework/zend-log": "<2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.8-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2014-01-28T22:29:15+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "phar-io/version": "^1.0.1",
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2017-03-05T18:14:27+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "time": "2017-03-05T17:38:23+00:00"
- },
- {
- "name": "php-coveralls/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "5.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0",
- "phpunit/php-file-iterator": "^1.4.2",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^2.0.1",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-xdebug": "^2.5.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2018-04-06T15:36:58+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "6.5.13",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0973426fb012359b2f18d3bd1e90ef1172839693",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "^1.6.1",
- "phar-io/manifest": "^1.0.1",
- "phar-io/version": "^1.0",
- "php": "^7.0",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^5.3",
- "phpunit/php-file-iterator": "^1.4.3",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^1.0.9",
- "phpunit/phpunit-mock-objects": "^5.0.9",
- "sebastian/comparator": "^2.1",
- "sebastian/diff": "^2.0",
- "sebastian/environment": "^3.1",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^1.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2",
- "phpunit/dbunit": "<3.0"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-09-08T15:10:43+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "5.0.10",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.5",
- "php": "^7.0",
- "phpunit/php-text-template": "^1.2.1",
- "sebastian/exporter": "^3.1"
- },
- "conflict": {
- "phpunit/phpunit": "<6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.5.11"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2018-08-09T05:50:03+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "2.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/diff": "^2.0 || ^3.0",
- "sebastian/exporter": "^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2018-02-01T13:46:46+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-08-03T08:09:46+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2017-07-01T08:51:00+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2017-04-03T13:19:02+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2017-04-27T15:39:26+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "99b2fa8acc244e656cdf324ff419fbe6fd300a4d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/99b2fa8acc244e656cdf324ff419fbe6fd300a4d",
- "reference": "99b2fa8acc244e656cdf324ff419fbe6fd300a4d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-31T09:06:03+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "d69930fc337d767607267d57c20a7403d0a822a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/d69930fc337d767607267d57c20a7403d0a822a4",
- "reference": "d69930fc337d767607267d57c20a7403d0a822a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T12:28:39+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "05e52a39de52ba690aebaed462b2bc8a9649f0a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/05e52a39de52ba690aebaed462b2bc8a9649f0a4",
- "reference": "05e52a39de52ba690aebaed462b2bc8a9649f0a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T12:28:39+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "640b6c27fed4066d64b64d5903a86043f4a4de7f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/640b6c27fed4066d64b64d5903a86043f4a4de7f",
- "reference": "640b6c27fed4066d64b64d5903a86043f4a4de7f",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T16:33:53+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.0.8"
- }
-}
diff --git a/vendor/consolidation/annotated-command/dependencies.yml b/vendor/consolidation/annotated-command/dependencies.yml
deleted file mode 100644
index e6bc6c7ee..000000000
--- a/vendor/consolidation/annotated-command/dependencies.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-version: 2
-dependencies:
-- type: php
- path: /
- settings:
- composer_options: ""
- manifest_updates:
- filters:
- - name: ".*"
- versions: "L.Y.Y"
diff --git a/vendor/consolidation/annotated-command/infection.json.dist b/vendor/consolidation/annotated-command/infection.json.dist
deleted file mode 100644
index b883a216b..000000000
--- a/vendor/consolidation/annotated-command/infection.json.dist
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "timeout": 10,
- "source": {
- "directories": [
- "src"
- ]
- },
- "logs": {
- "text": "infection-log.txt"
- }
-}
\ No newline at end of file
diff --git a/vendor/consolidation/annotated-command/phpunit.xml.dist b/vendor/consolidation/annotated-command/phpunit.xml.dist
deleted file mode 100644
index e680109d1..000000000
--- a/vendor/consolidation/annotated-command/phpunit.xml.dist
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
- tests
-
-
-
-
-
-
-
-
- src
-
-
-
diff --git a/vendor/consolidation/annotated-command/src/AnnotatedCommand.php b/vendor/consolidation/annotated-command/src/AnnotatedCommand.php
deleted file mode 100644
index 40d26af5c..000000000
--- a/vendor/consolidation/annotated-command/src/AnnotatedCommand.php
+++ /dev/null
@@ -1,350 +0,0 @@
-getName();
- }
- }
- parent::__construct($name);
- if ($commandInfo && $commandInfo->hasAnnotation('command')) {
- $this->setCommandInfo($commandInfo);
- $this->setCommandOptions($commandInfo);
- }
- }
-
- public function setCommandCallback($commandCallback)
- {
- $this->commandCallback = $commandCallback;
- return $this;
- }
-
- public function setCommandProcessor($commandProcessor)
- {
- $this->commandProcessor = $commandProcessor;
- return $this;
- }
-
- public function commandProcessor()
- {
- // If someone is using an AnnotatedCommand, and is NOT getting
- // it from an AnnotatedCommandFactory OR not correctly injecting
- // a command processor via setCommandProcessor() (ideally via the
- // DI container), then we'll just give each annotated command its
- // own command processor. This is not ideal; preferably, there would
- // only be one instance of the command processor in the application.
- if (!isset($this->commandProcessor)) {
- $this->commandProcessor = new CommandProcessor(new HookManager());
- }
- return $this->commandProcessor;
- }
-
- public function getReturnType()
- {
- return $this->returnType;
- }
-
- public function setReturnType($returnType)
- {
- $this->returnType = $returnType;
- return $this;
- }
-
- public function getAnnotationData()
- {
- return $this->annotationData;
- }
-
- public function setAnnotationData($annotationData)
- {
- $this->annotationData = $annotationData;
- return $this;
- }
-
- public function getTopics()
- {
- return $this->topics;
- }
-
- public function setTopics($topics)
- {
- $this->topics = $topics;
- return $this;
- }
-
- public function setCommandInfo($commandInfo)
- {
- $this->setDescription($commandInfo->getDescription());
- $this->setHelp($commandInfo->getHelp());
- $this->setAliases($commandInfo->getAliases());
- $this->setAnnotationData($commandInfo->getAnnotations());
- $this->setTopics($commandInfo->getTopics());
- foreach ($commandInfo->getExampleUsages() as $usage => $description) {
- $this->addUsageOrExample($usage, $description);
- }
- $this->setCommandArguments($commandInfo);
- $this->setReturnType($commandInfo->getReturnType());
- // Hidden commands available since Symfony 3.2
- // http://symfony.com/doc/current/console/hide_commands.html
- if (method_exists($this, 'setHidden')) {
- $this->setHidden($commandInfo->getHidden());
- }
- return $this;
- }
-
- public function getExampleUsages()
- {
- return $this->examples;
- }
-
- protected function addUsageOrExample($usage, $description)
- {
- $this->addUsage($usage);
- if (!empty($description)) {
- $this->examples[$usage] = $description;
- }
- }
-
- public function helpAlter(\DomDocument $originalDom)
- {
- return HelpDocumentBuilder::alter($originalDom, $this);
- }
-
- protected function setCommandArguments($commandInfo)
- {
- $this->injectedClasses = $commandInfo->getInjectedClasses();
- $this->setCommandArgumentsFromParameters($commandInfo);
- return $this;
- }
-
- protected function setCommandArgumentsFromParameters($commandInfo)
- {
- $args = $commandInfo->arguments()->getValues();
- foreach ($args as $name => $defaultValue) {
- $description = $commandInfo->arguments()->getDescription($name);
- $hasDefault = $commandInfo->arguments()->hasDefault($name);
- $parameterMode = $this->getCommandArgumentMode($hasDefault, $defaultValue);
- $this->addArgument($name, $parameterMode, $description, $defaultValue);
- }
- return $this;
- }
-
- protected function getCommandArgumentMode($hasDefault, $defaultValue)
- {
- if (!$hasDefault) {
- return InputArgument::REQUIRED;
- }
- if (is_array($defaultValue)) {
- return InputArgument::IS_ARRAY;
- }
- return InputArgument::OPTIONAL;
- }
-
- public function setCommandOptions($commandInfo, $automaticOptions = [])
- {
- $inputOptions = $commandInfo->inputOptions();
-
- $this->addOptions($inputOptions + $automaticOptions, $automaticOptions);
- return $this;
- }
-
- public function addOptions($inputOptions, $automaticOptions = [])
- {
- foreach ($inputOptions as $name => $inputOption) {
- $description = $inputOption->getDescription();
-
- if (empty($description) && isset($automaticOptions[$name])) {
- $description = $automaticOptions[$name]->getDescription();
- $inputOption = static::inputOptionSetDescription($inputOption, $description);
- }
- $this->getDefinition()->addOption($inputOption);
- }
- }
-
- protected static function inputOptionSetDescription($inputOption, $description)
- {
- // Recover the 'mode' value, because Symfony is stubborn
- $mode = 0;
- if ($inputOption->isValueRequired()) {
- $mode |= InputOption::VALUE_REQUIRED;
- }
- if ($inputOption->isValueOptional()) {
- $mode |= InputOption::VALUE_OPTIONAL;
- }
- if ($inputOption->isArray()) {
- $mode |= InputOption::VALUE_IS_ARRAY;
- }
- if (!$mode) {
- $mode = InputOption::VALUE_NONE;
- }
-
- $inputOption = new InputOption(
- $inputOption->getName(),
- $inputOption->getShortcut(),
- $mode,
- $description,
- $inputOption->getDefault()
- );
- return $inputOption;
- }
-
- /**
- * Returns all of the hook names that may be called for this command.
- *
- * @return array
- */
- public function getNames()
- {
- return HookManager::getNames($this, $this->commandCallback);
- }
-
- /**
- * Add any options to this command that are defined by hook implementations
- */
- public function optionsHook()
- {
- $this->commandProcessor()->optionsHook(
- $this,
- $this->getNames(),
- $this->annotationData
- );
- }
-
- public function optionsHookForHookAnnotations($commandInfoList)
- {
- foreach ($commandInfoList as $commandInfo) {
- $inputOptions = $commandInfo->inputOptions();
- $this->addOptions($inputOptions);
- foreach ($commandInfo->getExampleUsages() as $usage => $description) {
- if (!in_array($usage, $this->getUsages())) {
- $this->addUsageOrExample($usage, $description);
- }
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->commandProcessor()->interact(
- $input,
- $output,
- $this->getNames(),
- $this->annotationData
- );
- }
-
- protected function initialize(InputInterface $input, OutputInterface $output)
- {
- // Allow the hook manager a chance to provide configuration values,
- // if there are any registered hooks to do that.
- $this->commandProcessor()->initializeHook($input, $this->getNames(), $this->annotationData);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // Validate, run, process, alter, handle results.
- return $this->commandProcessor()->process(
- $output,
- $this->getNames(),
- $this->commandCallback,
- $this->createCommandData($input, $output)
- );
- }
-
- /**
- * This function is available for use by a class that may
- * wish to extend this class rather than use annotations to
- * define commands. Using this technique does allow for the
- * use of annotations to define hooks.
- */
- public function processResults(InputInterface $input, OutputInterface $output, $results)
- {
- $commandData = $this->createCommandData($input, $output);
- $commandProcessor = $this->commandProcessor();
- $names = $this->getNames();
- $results = $commandProcessor->processResults(
- $names,
- $results,
- $commandData
- );
- return $commandProcessor->handleResults(
- $output,
- $names,
- $results,
- $commandData
- );
- }
-
- protected function createCommandData(InputInterface $input, OutputInterface $output)
- {
- $commandData = new CommandData(
- $this->annotationData,
- $input,
- $output
- );
-
- // Fetch any classes (e.g. InputInterface / OutputInterface) that
- // this command's callback wants passed as a parameter and inject
- // it into the command data.
- $this->commandProcessor()->injectIntoCommandData($commandData, $this->injectedClasses);
-
- // Allow the commandData to cache the list of options with
- // special default values ('null' and 'true'), as these will
- // need special handling. @see CommandData::options().
- $commandData->cacheSpecialDefaults($this->getDefinition());
-
- return $commandData;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php b/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php
deleted file mode 100644
index 9f67ef648..000000000
--- a/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php
+++ /dev/null
@@ -1,461 +0,0 @@
-dataStore = new NullCache();
- $this->commandProcessor = new CommandProcessor(new HookManager());
- $this->addAutomaticOptionProvider($this);
- }
-
- public function setCommandProcessor(CommandProcessor $commandProcessor)
- {
- $this->commandProcessor = $commandProcessor;
- return $this;
- }
-
- /**
- * @return CommandProcessor
- */
- public function commandProcessor()
- {
- return $this->commandProcessor;
- }
-
- /**
- * Set the 'include all public methods flag'. If true (the default), then
- * every public method of each commandFile will be used to create commands.
- * If it is false, then only those public methods annotated with @command
- * or @name (deprecated) will be used to create commands.
- */
- public function setIncludeAllPublicMethods($includeAllPublicMethods)
- {
- $this->includeAllPublicMethods = $includeAllPublicMethods;
- return $this;
- }
-
- public function getIncludeAllPublicMethods()
- {
- return $this->includeAllPublicMethods;
- }
-
- /**
- * @return HookManager
- */
- public function hookManager()
- {
- return $this->commandProcessor()->hookManager();
- }
-
- /**
- * Add a listener that is notified immediately before the command
- * factory creates commands from a commandFile instance. This
- * listener can use this opportunity to do more setup for the commandFile,
- * and so on.
- *
- * @param CommandCreationListenerInterface $listener
- */
- public function addListener(CommandCreationListenerInterface $listener)
- {
- $this->listeners[] = $listener;
- return $this;
- }
-
- /**
- * Add a listener that's just a simple 'callable'.
- * @param callable $listener
- */
- public function addListernerCallback(callable $listener)
- {
- $this->addListener(new CommandCreationListener($listener));
- return $this;
- }
-
- /**
- * Call all command creation listeners
- *
- * @param object $commandFileInstance
- */
- protected function notify($commandFileInstance)
- {
- foreach ($this->listeners as $listener) {
- $listener->notifyCommandFileAdded($commandFileInstance);
- }
- }
-
- public function addAutomaticOptionProvider(AutomaticOptionsProviderInterface $optionsProvider)
- {
- $this->automaticOptionsProviderList[] = $optionsProvider;
- }
-
- public function addCommandInfoAlterer(CommandInfoAltererInterface $alterer)
- {
- $this->commandInfoAlterers[] = $alterer;
- }
-
- /**
- * n.b. This registers all hooks from the commandfile instance as a side-effect.
- */
- public function createCommandsFromClass($commandFileInstance, $includeAllPublicMethods = null)
- {
- // Deprecated: avoid using the $includeAllPublicMethods in favor of the setIncludeAllPublicMethods() accessor.
- if (!isset($includeAllPublicMethods)) {
- $includeAllPublicMethods = $this->getIncludeAllPublicMethods();
- }
- $this->notify($commandFileInstance);
- $commandInfoList = $this->getCommandInfoListFromClass($commandFileInstance);
- $this->registerCommandHooksFromClassInfo($commandInfoList, $commandFileInstance);
- return $this->createCommandsFromClassInfo($commandInfoList, $commandFileInstance, $includeAllPublicMethods);
- }
-
- public function getCommandInfoListFromClass($commandFileInstance)
- {
- $cachedCommandInfoList = $this->getCommandInfoListFromCache($commandFileInstance);
- $commandInfoList = $this->createCommandInfoListFromClass($commandFileInstance, $cachedCommandInfoList);
- if (!empty($commandInfoList)) {
- $cachedCommandInfoList = array_merge($commandInfoList, $cachedCommandInfoList);
- $this->storeCommandInfoListInCache($commandFileInstance, $cachedCommandInfoList);
- }
- return $cachedCommandInfoList;
- }
-
- protected function storeCommandInfoListInCache($commandFileInstance, $commandInfoList)
- {
- if (!$this->hasDataStore()) {
- return;
- }
- $cache_data = [];
- $serializer = new CommandInfoSerializer();
- foreach ($commandInfoList as $i => $commandInfo) {
- $cache_data[$i] = $serializer->serialize($commandInfo);
- }
- $className = get_class($commandFileInstance);
- $this->getDataStore()->set($className, $cache_data);
- }
-
- /**
- * Get the command info list from the cache
- *
- * @param mixed $commandFileInstance
- * @return array
- */
- protected function getCommandInfoListFromCache($commandFileInstance)
- {
- $commandInfoList = [];
- if (!is_object($commandFileInstance)) {
- return [];
- }
- $className = get_class($commandFileInstance);
- if (!$this->getDataStore()->has($className)) {
- return [];
- }
- $deserializer = new CommandInfoDeserializer();
-
- $cache_data = $this->getDataStore()->get($className);
- foreach ($cache_data as $i => $data) {
- if (CommandInfoDeserializer::isValidSerializedData((array)$data)) {
- $commandInfoList[$i] = $deserializer->deserialize((array)$data);
- }
- }
- return $commandInfoList;
- }
-
- /**
- * Check to see if this factory has a cache datastore.
- * @return boolean
- */
- public function hasDataStore()
- {
- return !($this->dataStore instanceof NullCache);
- }
-
- /**
- * Set a cache datastore for this factory. Any object with 'set' and
- * 'get' methods is acceptable. The key is the classname being cached,
- * and the value is a nested associative array of strings.
- *
- * TODO: Typehint this to SimpleCacheInterface
- *
- * This is not done currently to allow clients to use a generic cache
- * store that does not itself depend on the annotated-command library.
- *
- * @param Mixed $dataStore
- * @return type
- */
- public function setDataStore($dataStore)
- {
- if (!($dataStore instanceof SimpleCacheInterface)) {
- $dataStore = new CacheWrapper($dataStore);
- }
- $this->dataStore = $dataStore;
- return $this;
- }
-
- /**
- * Get the data store attached to this factory.
- */
- public function getDataStore()
- {
- return $this->dataStore;
- }
-
- protected function createCommandInfoListFromClass($classNameOrInstance, $cachedCommandInfoList)
- {
- $commandInfoList = [];
-
- // Ignore special functions, such as __construct and __call, which
- // can never be commands.
- $commandMethodNames = array_filter(
- get_class_methods($classNameOrInstance) ?: [],
- function ($m) use ($classNameOrInstance) {
- $reflectionMethod = new \ReflectionMethod($classNameOrInstance, $m);
- return !$reflectionMethod->isStatic() && !preg_match('#^_#', $m);
- }
- );
-
- foreach ($commandMethodNames as $commandMethodName) {
- if (!array_key_exists($commandMethodName, $cachedCommandInfoList)) {
- $commandInfo = CommandInfo::create($classNameOrInstance, $commandMethodName);
- if (!static::isCommandOrHookMethod($commandInfo, $this->getIncludeAllPublicMethods())) {
- $commandInfo->invalidate();
- }
- $commandInfoList[$commandMethodName] = $commandInfo;
- }
- }
-
- return $commandInfoList;
- }
-
- public function createCommandInfo($classNameOrInstance, $commandMethodName)
- {
- return CommandInfo::create($classNameOrInstance, $commandMethodName);
- }
-
- public function createCommandsFromClassInfo($commandInfoList, $commandFileInstance, $includeAllPublicMethods = null)
- {
- // Deprecated: avoid using the $includeAllPublicMethods in favor of the setIncludeAllPublicMethods() accessor.
- if (!isset($includeAllPublicMethods)) {
- $includeAllPublicMethods = $this->getIncludeAllPublicMethods();
- }
- return $this->createSelectedCommandsFromClassInfo(
- $commandInfoList,
- $commandFileInstance,
- function ($commandInfo) use ($includeAllPublicMethods) {
- return static::isCommandMethod($commandInfo, $includeAllPublicMethods);
- }
- );
- }
-
- public function createSelectedCommandsFromClassInfo($commandInfoList, $commandFileInstance, callable $commandSelector)
- {
- $commandInfoList = $this->filterCommandInfoList($commandInfoList, $commandSelector);
- return array_map(
- function ($commandInfo) use ($commandFileInstance) {
- return $this->createCommand($commandInfo, $commandFileInstance);
- },
- $commandInfoList
- );
- }
-
- protected function filterCommandInfoList($commandInfoList, callable $commandSelector)
- {
- return array_filter($commandInfoList, $commandSelector);
- }
-
- public static function isCommandOrHookMethod($commandInfo, $includeAllPublicMethods)
- {
- return static::isHookMethod($commandInfo) || static::isCommandMethod($commandInfo, $includeAllPublicMethods);
- }
-
- public static function isHookMethod($commandInfo)
- {
- return $commandInfo->hasAnnotation('hook');
- }
-
- public static function isCommandMethod($commandInfo, $includeAllPublicMethods)
- {
- // Ignore everything labeled @hook
- if (static::isHookMethod($commandInfo)) {
- return false;
- }
- // Include everything labeled @command
- if ($commandInfo->hasAnnotation('command')) {
- return true;
- }
- // Skip anything that has a missing or invalid name.
- $commandName = $commandInfo->getName();
- if (empty($commandName) || preg_match('#[^a-zA-Z0-9:_-]#', $commandName)) {
- return false;
- }
- // Skip anything named like an accessor ('get' or 'set')
- if (preg_match('#^(get[A-Z]|set[A-Z])#', $commandInfo->getMethodName())) {
- return false;
- }
-
- // Default to the setting of 'include all public methods'.
- return $includeAllPublicMethods;
- }
-
- public function registerCommandHooksFromClassInfo($commandInfoList, $commandFileInstance)
- {
- foreach ($commandInfoList as $commandInfo) {
- if (static::isHookMethod($commandInfo)) {
- $this->registerCommandHook($commandInfo, $commandFileInstance);
- }
- }
- }
-
- /**
- * Register a command hook given the CommandInfo for a method.
- *
- * The hook format is:
- *
- * @hook type name type
- *
- * For example, the pre-validate hook for the core:init command is:
- *
- * @hook pre-validate core:init
- *
- * If no command name is provided, then this hook will affect every
- * command that is defined in the same file.
- *
- * If no hook is provided, then we will presume that ALTER_RESULT
- * is intended.
- *
- * @param CommandInfo $commandInfo Information about the command hook method.
- * @param object $commandFileInstance An instance of the CommandFile class.
- */
- public function registerCommandHook(CommandInfo $commandInfo, $commandFileInstance)
- {
- // Ignore if the command info has no @hook
- if (!static::isHookMethod($commandInfo)) {
- return;
- }
- $hookData = $commandInfo->getAnnotation('hook');
- $hook = $this->getNthWord($hookData, 0, HookManager::ALTER_RESULT);
- $commandName = $this->getNthWord($hookData, 1);
-
- // Register the hook
- $callback = [$commandFileInstance, $commandInfo->getMethodName()];
- $this->commandProcessor()->hookManager()->add($callback, $hook, $commandName);
-
- // If the hook has options, then also register the commandInfo
- // with the hook manager, so that we can add options and such to
- // the commands they hook.
- if (!$commandInfo->options()->isEmpty()) {
- $this->commandProcessor()->hookManager()->recordHookOptions($commandInfo, $commandName);
- }
- }
-
- protected function getNthWord($string, $n, $default = '', $delimiter = ' ')
- {
- $words = explode($delimiter, $string);
- if (!empty($words[$n])) {
- return $words[$n];
- }
- return $default;
- }
-
- public function createCommand(CommandInfo $commandInfo, $commandFileInstance)
- {
- $this->alterCommandInfo($commandInfo, $commandFileInstance);
- $command = new AnnotatedCommand($commandInfo->getName());
- $commandCallback = [$commandFileInstance, $commandInfo->getMethodName()];
- $command->setCommandCallback($commandCallback);
- $command->setCommandProcessor($this->commandProcessor);
- $command->setCommandInfo($commandInfo);
- $automaticOptions = $this->callAutomaticOptionsProviders($commandInfo);
- $command->setCommandOptions($commandInfo, $automaticOptions);
- // Annotation commands are never bootstrap-aware, but for completeness
- // we will notify on every created command, as some clients may wish to
- // use this notification for some other purpose.
- $this->notify($command);
- return $command;
- }
-
- /**
- * Give plugins an opportunity to update the commandInfo
- */
- public function alterCommandInfo(CommandInfo $commandInfo, $commandFileInstance)
- {
- foreach ($this->commandInfoAlterers as $alterer) {
- $alterer->alterCommandInfo($commandInfo, $commandFileInstance);
- }
- }
-
- /**
- * Get the options that are implied by annotations, e.g. @fields implies
- * that there should be a --fields and a --format option.
- *
- * @return InputOption[]
- */
- public function callAutomaticOptionsProviders(CommandInfo $commandInfo)
- {
- $automaticOptions = [];
- foreach ($this->automaticOptionsProviderList as $automaticOptionsProvider) {
- $automaticOptions += $automaticOptionsProvider->automaticOptions($commandInfo);
- }
- return $automaticOptions;
- }
-
- /**
- * Get the options that are implied by annotations, e.g. @fields implies
- * that there should be a --fields and a --format option.
- *
- * @return InputOption[]
- */
- public function automaticOptions(CommandInfo $commandInfo)
- {
- $automaticOptions = [];
- $formatManager = $this->commandProcessor()->formatterManager();
- if ($formatManager) {
- $annotationData = $commandInfo->getAnnotations()->getArrayCopy();
- $formatterOptions = new FormatterOptions($annotationData);
- $dataType = $commandInfo->getReturnType();
- $automaticOptions = $formatManager->automaticOptions($formatterOptions, $dataType);
- }
- return $automaticOptions;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/AnnotationData.php b/vendor/consolidation/annotated-command/src/AnnotationData.php
deleted file mode 100644
index ad7523aac..000000000
--- a/vendor/consolidation/annotated-command/src/AnnotationData.php
+++ /dev/null
@@ -1,44 +0,0 @@
-has($key) ? CsvUtils::toString($this[$key]) : $default;
- }
-
- public function getList($key, $default = [])
- {
- return $this->has($key) ? CsvUtils::toList($this[$key]) : $default;
- }
-
- public function has($key)
- {
- return isset($this[$key]);
- }
-
- public function keys()
- {
- return array_keys($this->getArrayCopy());
- }
-
- public function set($key, $value = '')
- {
- $this->offsetSet($key, $value);
- return $this;
- }
-
- public function append($key, $value = '')
- {
- $data = $this->offsetGet($key);
- if (is_array($data)) {
- $this->offsetSet($key, array_merge($data, $value));
- } elseif (is_scalar($data)) {
- $this->offsetSet($key, $data . $value);
- }
- return $this;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Cache/CacheWrapper.php b/vendor/consolidation/annotated-command/src/Cache/CacheWrapper.php
deleted file mode 100644
index ed5a5eeed..000000000
--- a/vendor/consolidation/annotated-command/src/Cache/CacheWrapper.php
+++ /dev/null
@@ -1,49 +0,0 @@
-dataStore = $dataStore;
- }
-
- /**
- * Test for an entry from the cache
- * @param string $key
- * @return boolean
- */
- public function has($key)
- {
- if (method_exists($this->dataStore, 'has')) {
- return $this->dataStore->has($key);
- }
- $test = $this->dataStore->get($key);
- return !empty($test);
- }
-
- /**
- * Get an entry from the cache
- * @param string $key
- * @return array
- */
- public function get($key)
- {
- return (array) $this->dataStore->get($key);
- }
-
- /**
- * Store an entry in the cache
- * @param string $key
- * @param array $data
- */
- public function set($key, $data)
- {
- $this->dataStore->set($key, $data);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Cache/NullCache.php b/vendor/consolidation/annotated-command/src/Cache/NullCache.php
deleted file mode 100644
index 22906b299..000000000
--- a/vendor/consolidation/annotated-command/src/Cache/NullCache.php
+++ /dev/null
@@ -1,37 +0,0 @@
-listener = $listener;
- }
-
- public function notifyCommandFileAdded($command)
- {
- call_user_func($this->listener, $command);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/CommandCreationListenerInterface.php b/vendor/consolidation/annotated-command/src/CommandCreationListenerInterface.php
deleted file mode 100644
index f3a50eae3..000000000
--- a/vendor/consolidation/annotated-command/src/CommandCreationListenerInterface.php
+++ /dev/null
@@ -1,15 +0,0 @@
-annotationData = $annotationData;
- $this->input = $input;
- $this->output = $output;
- $this->includeOptionsInArgs = true;
- }
-
- /**
- * For internal use only; inject an instance to be passed back
- * to the command callback as a parameter.
- */
- public function injectInstance($injectedInstance)
- {
- array_unshift($this->injectedInstances, $injectedInstance);
- return $this;
- }
-
- /**
- * Provide a reference to the instances that will be added to the
- * beginning of the parameter list when the command callback is invoked.
- */
- public function injectedInstances()
- {
- return $this->injectedInstances;
- }
-
- /**
- * For backwards-compatibility mode only: disable addition of
- * options on the end of the arguments list.
- */
- public function setIncludeOptionsInArgs($includeOptionsInArgs)
- {
- $this->includeOptionsInArgs = $includeOptionsInArgs;
- return $this;
- }
-
- public function annotationData()
- {
- return $this->annotationData;
- }
-
- public function formatterOptions()
- {
- return $this->formatterOptions;
- }
-
- public function setFormatterOptions($formatterOptions)
- {
- $this->formatterOptions = $formatterOptions;
- }
-
- public function input()
- {
- return $this->input;
- }
-
- public function output()
- {
- return $this->output;
- }
-
- public function arguments()
- {
- return $this->input->getArguments();
- }
-
- public function options()
- {
- // We cannot tell the difference between '--foo' (an option without
- // a value) and the absence of '--foo' when the option has an optional
- // value, and the current vallue of the option is 'null' using only
- // the public methods of InputInterface. We'll try to figure out
- // which is which by other means here.
- $options = $this->getAdjustedOptions();
-
- // Make two conversions here:
- // --foo=0 wil convert $value from '0' to 'false' for binary options.
- // --foo with $value of 'true' will be forced to 'false' if --no-foo exists.
- foreach ($options as $option => $value) {
- if ($this->shouldConvertOptionToFalse($options, $option, $value)) {
- $options[$option] = false;
- }
- }
-
- return $options;
- }
-
- /**
- * Use 'hasParameterOption()' to attempt to disambiguate option states.
- */
- protected function getAdjustedOptions()
- {
- $options = $this->input->getOptions();
-
- // If Input isn't an ArgvInput, then return the options as-is.
- if (!$this->input instanceof ArgvInput) {
- return $options;
- }
-
- // If we have an ArgvInput, then we can determine if options
- // are missing from the command line. If the option value is
- // missing from $input, then we will keep the value `null`.
- // If it is present, but has no explicit value, then change it its
- // value to `true`.
- foreach ($options as $option => $value) {
- if (($value === null) && ($this->input->hasParameterOption("--$option"))) {
- $options[$option] = true;
- }
- }
-
- return $options;
- }
-
- protected function shouldConvertOptionToFalse($options, $option, $value)
- {
- // If the value is 'true' (e.g. the option is '--foo'), then convert
- // it to false if there is also an option '--no-foo'. n.b. if the
- // commandline has '--foo=bar' then $value will not be 'true', and
- // --no-foo will be ignored.
- if ($value === true) {
- // Check if the --no-* option exists. Note that none of the other
- // alteration apply in the $value == true case, so we can exit early here.
- $negation_key = 'no-' . $option;
- return array_key_exists($negation_key, $options) && $options[$negation_key];
- }
-
- // If the option is '--foo=0', convert the '0' to 'false' when appropriate.
- if ($value !== '0') {
- return false;
- }
-
- // The '--foo=0' convertion is only applicable when the default value
- // is not in the special defaults list. i.e. you get a literal '0'
- // when your default is a string.
- return in_array($option, $this->specialDefaults);
- }
-
- public function cacheSpecialDefaults($definition)
- {
- foreach ($definition->getOptions() as $option => $inputOption) {
- $defaultValue = $inputOption->getDefault();
- if (($defaultValue === null) || ($defaultValue === true)) {
- $this->specialDefaults[] = $option;
- }
- }
- }
-
- public function getArgsWithoutAppName()
- {
- $args = $this->arguments();
-
- // When called via the Application, the first argument
- // will be the command name. The Application alters the
- // input definition to match, adding a 'command' argument
- // to the beginning.
- if ($this->input->hasArgument('command')) {
- array_shift($args);
- }
-
- return $args;
- }
-
- public function getArgsAndOptions()
- {
- // Get passthrough args, and add the options on the end.
- $args = $this->getArgsWithoutAppName();
- if ($this->includeOptionsInArgs) {
- $args['options'] = $this->options();
- }
- return $args;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/CommandError.php b/vendor/consolidation/annotated-command/src/CommandError.php
deleted file mode 100644
index bfe257bd2..000000000
--- a/vendor/consolidation/annotated-command/src/CommandError.php
+++ /dev/null
@@ -1,32 +0,0 @@
-message = $message;
- // Ensure the exit code is non-zero. The exit code may have
- // come from an exception, and those often default to zero if
- // a specific value is not provided.
- $this->exitCode = $exitCode == 0 ? 1 : $exitCode;
- }
- public function getExitCode()
- {
- return $this->exitCode;
- }
-
- public function getOutputData()
- {
- return $this->message;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/CommandFileDiscovery.php b/vendor/consolidation/annotated-command/src/CommandFileDiscovery.php
deleted file mode 100644
index bdcce7408..000000000
--- a/vendor/consolidation/annotated-command/src/CommandFileDiscovery.php
+++ /dev/null
@@ -1,468 +0,0 @@
-discoverNamespaced($moduleList, '\Drupal');
- *
- * To discover global commands:
- *
- * $commandFiles = $discovery->discover($drupalRoot, '\Drupal');
- *
- * WARNING:
- *
- * This class is deprecated. Commandfile discovery is complicated, and does
- * not work from within phar files. It is recommended to instead use a static
- * list of command classes as shown in https://github.com/g1a/starter/blob/master/example
- *
- * For a better alternative when implementing a plugin mechanism, see
- * https://robo.li/extending/#register-command-files-via-psr-4-autoloading
- */
-class CommandFileDiscovery
-{
- /** @var string[] */
- protected $excludeList;
- /** @var string[] */
- protected $searchLocations;
- /** @var string */
- protected $searchPattern = '*Commands.php';
- /** @var boolean */
- protected $includeFilesAtBase = true;
- /** @var integer */
- protected $searchDepth = 2;
- /** @var bool */
- protected $followLinks = false;
- /** @var string[] */
- protected $strippedNamespaces;
-
- public function __construct()
- {
- $this->excludeList = ['Exclude'];
- $this->searchLocations = [
- 'Command',
- 'CliTools', // TODO: Maybe remove
- ];
- }
-
- /**
- * Specify whether to search for files at the base directory
- * ($directoryList parameter to discover and discoverNamespaced
- * methods), or only in the directories listed in the search paths.
- *
- * @param boolean $includeFilesAtBase
- */
- public function setIncludeFilesAtBase($includeFilesAtBase)
- {
- $this->includeFilesAtBase = $includeFilesAtBase;
- return $this;
- }
-
- /**
- * Set the list of excludes to add to the finder, replacing
- * whatever was there before.
- *
- * @param array $excludeList The list of directory names to skip when
- * searching for command files.
- */
- public function setExcludeList($excludeList)
- {
- $this->excludeList = $excludeList;
- return $this;
- }
-
- /**
- * Add one more location to the exclude list.
- *
- * @param string $exclude One directory name to skip when searching
- * for command files.
- */
- public function addExclude($exclude)
- {
- $this->excludeList[] = $exclude;
- return $this;
- }
-
- /**
- * Set the search depth. By default, fills immediately in the
- * base directory are searched, plus all of the search locations
- * to this specified depth. If the search locations is set to
- * an empty array, then the base directory is searched to this
- * depth.
- */
- public function setSearchDepth($searchDepth)
- {
- $this->searchDepth = $searchDepth;
- return $this;
- }
-
- /**
- * Specify that the discovery object should follow symlinks. By
- * default, symlinks are not followed.
- */
- public function followLinks($followLinks = true)
- {
- $this->followLinks = $followLinks;
- return $this;
- }
-
- /**
- * Set the list of search locations to examine in each directory where
- * command files may be found. This replaces whatever was there before.
- *
- * @param array $searchLocations The list of locations to search for command files.
- */
- public function setSearchLocations($searchLocations)
- {
- $this->searchLocations = $searchLocations;
- return $this;
- }
-
- /**
- * Set a particular namespace part to ignore. This is useful in plugin
- * mechanisms where the plugin is placed by Composer.
- *
- * For example, Drush extensions are placed in `./drush/Commands`.
- * If the Composer installer path is `"drush/Commands/contrib/{$name}": ["type:drupal-drush"]`,
- * then Composer will place the command files in `drush/Commands/contrib`.
- * The namespace should not be any different in this instance than if
- * the extension were placed in `drush/Commands`, though, so Drush therefore
- * calls `ignoreNamespacePart('contrib', 'Commands')`. This causes the
- * `contrib` component to be removed from the namespace if it follows
- * the namespace `Commands`. If the '$base' parameter is not specified, then
- * the ignored portion of the namespace may appear anywhere in the path.
- */
- public function ignoreNamespacePart($ignore, $base = '')
- {
- $replacementPart = '\\';
- if (!empty($base)) {
- $replacementPart .= $base . '\\';
- }
- $ignoredPart = $replacementPart . $ignore . '\\';
- $this->strippedNamespaces[$ignoredPart] = $replacementPart;
-
- return $this;
- }
-
- /**
- * Add one more location to the search location list.
- *
- * @param string $location One more relative path to search
- * for command files.
- */
- public function addSearchLocation($location)
- {
- $this->searchLocations[] = $location;
- return $this;
- }
-
- /**
- * Specify the pattern / regex used by the finder to search for
- * command files.
- */
- public function setSearchPattern($searchPattern)
- {
- $this->searchPattern = $searchPattern;
- return $this;
- }
-
- /**
- * Given a list of directories, e.g. Drupal modules like:
- *
- * core/modules/block
- * core/modules/dblog
- * modules/default_content
- *
- * Discover command files in any of these locations.
- *
- * @param string|string[] $directoryList Places to search for commands.
- *
- * @return array
- */
- public function discoverNamespaced($directoryList, $baseNamespace = '')
- {
- return $this->discover($this->convertToNamespacedList((array)$directoryList), $baseNamespace);
- }
-
- /**
- * Given a simple list containing paths to directories, where
- * the last component of the path should appear in the namespace,
- * after the base namespace, this function will return an
- * associative array mapping the path's basename (e.g. the module
- * name) to the directory path.
- *
- * Module names must be unique.
- *
- * @param string[] $directoryList A list of module locations
- *
- * @return array
- */
- public function convertToNamespacedList($directoryList)
- {
- $namespacedArray = [];
- foreach ((array)$directoryList as $directory) {
- $namespacedArray[basename($directory)] = $directory;
- }
- return $namespacedArray;
- }
-
- /**
- * Search for command files in the specified locations. This is the function that
- * should be used for all locations that are NOT modules of a framework.
- *
- * @param string|string[] $directoryList Places to search for commands.
- * @return array
- */
- public function discover($directoryList, $baseNamespace = '')
- {
- $commandFiles = [];
- foreach ((array)$directoryList as $key => $directory) {
- $itemsNamespace = $this->joinNamespace([$baseNamespace, $key]);
- $commandFiles = array_merge(
- $commandFiles,
- $this->discoverCommandFiles($directory, $itemsNamespace),
- $this->discoverCommandFiles("$directory/src", $itemsNamespace)
- );
- }
- return $this->fixNamespaces($commandFiles);
- }
-
- /**
- * fixNamespaces will alter the namespaces in the commandFiles
- * result to remove the Composer placement directory, if any.
- */
- protected function fixNamespaces($commandFiles)
- {
- // Do nothing unless the client told us to remove some namespace components.
- if (empty($this->strippedNamespaces)) {
- return $commandFiles;
- }
-
- // Strip out any part of the namespace the client did not want.
- // @see CommandFileDiscovery::ignoreNamespacePart
- return array_map(
- function ($fqcn) {
- return str_replace(
- array_keys($this->strippedNamespaces),
- array_values($this->strippedNamespaces),
- $fqcn
- );
- },
- $commandFiles
- );
- }
-
- /**
- * Search for command files in specific locations within a single directory.
- *
- * In each location, we will accept only a few places where command files
- * can be found. This will reduce the need to search through many unrelated
- * files.
- *
- * The default search locations include:
- *
- * .
- * CliTools
- * src/CliTools
- *
- * The pattern we will look for is any file whose name ends in 'Commands.php'.
- * A list of paths to found files will be returned.
- */
- protected function discoverCommandFiles($directory, $baseNamespace)
- {
- $commandFiles = [];
- // In the search location itself, we will search for command files
- // immediately inside the directory only.
- if ($this->includeFilesAtBase) {
- $commandFiles = $this->discoverCommandFilesInLocation(
- $directory,
- $this->getBaseDirectorySearchDepth(),
- $baseNamespace
- );
- }
-
- // In the other search locations,
- foreach ($this->searchLocations as $location) {
- $itemsNamespace = $this->joinNamespace([$baseNamespace, $location]);
- $commandFiles = array_merge(
- $commandFiles,
- $this->discoverCommandFilesInLocation(
- "$directory/$location",
- $this->getSearchDepth(),
- $itemsNamespace
- )
- );
- }
- return $commandFiles;
- }
-
- /**
- * Return a Finder search depth appropriate for our selected search depth.
- *
- * @return string
- */
- protected function getSearchDepth()
- {
- return $this->searchDepth <= 0 ? '== 0' : '<= ' . $this->searchDepth;
- }
-
- /**
- * Return a Finder search depth for the base directory. If the
- * searchLocations array has been populated, then we will only search
- * for files immediately inside the base directory; no traversal into
- * deeper directories will be done, as that would conflict with the
- * specification provided by the search locations. If there is no
- * search location, then we will search to whatever depth was specified
- * by the client.
- *
- * @return string
- */
- protected function getBaseDirectorySearchDepth()
- {
- if (!empty($this->searchLocations)) {
- return '== 0';
- }
- return $this->getSearchDepth();
- }
-
- /**
- * Search for command files in just one particular location. Returns
- * an associative array mapping from the pathname of the file to the
- * classname that it contains. The pathname may be ignored if the search
- * location is included in the autoloader.
- *
- * @param string $directory The location to search
- * @param string $depth How deep to search (e.g. '== 0' or '< 2')
- * @param string $baseNamespace Namespace to prepend to each classname
- *
- * @return array
- */
- protected function discoverCommandFilesInLocation($directory, $depth, $baseNamespace)
- {
- if (!is_dir($directory)) {
- return [];
- }
- $finder = $this->createFinder($directory, $depth);
-
- $commands = [];
- foreach ($finder as $file) {
- $relativePathName = $file->getRelativePathname();
- $relativeNamespaceAndClassname = str_replace(
- ['/', '-', '.php'],
- ['\\', '_', ''],
- $relativePathName
- );
- $classname = $this->joinNamespace([$baseNamespace, $relativeNamespaceAndClassname]);
- $commandFilePath = $this->joinPaths([$directory, $relativePathName]);
- $commands[$commandFilePath] = $classname;
- }
-
- return $commands;
- }
-
- /**
- * Create a Finder object for use in searching a particular directory
- * location.
- *
- * @param string $directory The location to search
- * @param string $depth The depth limitation
- *
- * @return Finder
- */
- protected function createFinder($directory, $depth)
- {
- $finder = new Finder();
- $finder->files()
- ->name($this->searchPattern)
- ->in($directory)
- ->depth($depth);
-
- foreach ($this->excludeList as $item) {
- $finder->exclude($item);
- }
-
- if ($this->followLinks) {
- $finder->followLinks();
- }
-
- return $finder;
- }
-
- /**
- * Combine the items of the provied array into a backslash-separated
- * namespace string. Empty and numeric items are omitted.
- *
- * @param array $namespaceParts List of components of a namespace
- *
- * @return string
- */
- protected function joinNamespace(array $namespaceParts)
- {
- return $this->joinParts(
- '\\',
- $namespaceParts,
- function ($item) {
- return !is_numeric($item) && !empty($item);
- }
- );
- }
-
- /**
- * Combine the items of the provied array into a slash-separated
- * pathname. Empty items are omitted.
- *
- * @param array $pathParts List of components of a path
- *
- * @return string
- */
- protected function joinPaths(array $pathParts)
- {
- $path = $this->joinParts(
- '/',
- $pathParts,
- function ($item) {
- return !empty($item);
- }
- );
- return str_replace(DIRECTORY_SEPARATOR, '/', $path);
- }
-
- /**
- * Simple wrapper around implode and array_filter.
- *
- * @param string $delimiter
- * @param array $parts
- * @param callable $filterFunction
- */
- protected function joinParts($delimiter, $parts, $filterFunction)
- {
- $parts = array_map(
- function ($item) use ($delimiter) {
- return rtrim($item, $delimiter);
- },
- $parts
- );
- return implode(
- $delimiter,
- array_filter($parts, $filterFunction)
- );
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/CommandInfoAltererInterface.php b/vendor/consolidation/annotated-command/src/CommandInfoAltererInterface.php
deleted file mode 100644
index 55376d148..000000000
--- a/vendor/consolidation/annotated-command/src/CommandInfoAltererInterface.php
+++ /dev/null
@@ -1,9 +0,0 @@
-hookManager = $hookManager;
- }
-
- /**
- * Return the hook manager
- * @return HookManager
- */
- public function hookManager()
- {
- return $this->hookManager;
- }
-
- public function resultWriter()
- {
- if (!$this->resultWriter) {
- $this->setResultWriter(new ResultWriter());
- }
- return $this->resultWriter;
- }
-
- public function setResultWriter($resultWriter)
- {
- $this->resultWriter = $resultWriter;
- }
-
- public function parameterInjection()
- {
- if (!$this->parameterInjection) {
- $this->setParameterInjection(new ParameterInjection());
- }
- return $this->parameterInjection;
- }
-
- public function setParameterInjection($parameterInjection)
- {
- $this->parameterInjection = $parameterInjection;
- }
-
- public function addPrepareFormatter(PrepareFormatter $preparer)
- {
- $this->prepareOptionsList[] = $preparer;
- }
-
- public function setFormatterManager(FormatterManager $formatterManager)
- {
- $this->formatterManager = $formatterManager;
- $this->resultWriter()->setFormatterManager($formatterManager);
- return $this;
- }
-
- public function setDisplayErrorFunction(callable $fn)
- {
- $this->resultWriter()->setDisplayErrorFunction($fn);
- }
-
- /**
- * Set a mode to make the annotated command library re-throw
- * any exception that it catches while processing a command.
- *
- * The default behavior in the current (2.x) branch is to catch
- * the exception and replace it with a CommandError object that
- * may be processed by the normal output processing passthrough.
- *
- * In the 3.x branch, exceptions will never be caught; they will
- * be passed through, as if setPassExceptions(true) were called.
- * This is the recommended behavior.
- */
- public function setPassExceptions($passExceptions)
- {
- $this->passExceptions = $passExceptions;
- return $this;
- }
-
- public function commandErrorForException(\Exception $e)
- {
- if ($this->passExceptions) {
- throw $e;
- }
- return new CommandError($e->getMessage(), $e->getCode());
- }
-
- /**
- * Return the formatter manager
- * @return FormatterManager
- */
- public function formatterManager()
- {
- return $this->formatterManager;
- }
-
- public function initializeHook(
- InputInterface $input,
- $names,
- AnnotationData $annotationData
- ) {
- $initializeDispatcher = new InitializeHookDispatcher($this->hookManager(), $names);
- return $initializeDispatcher->initialize($input, $annotationData);
- }
-
- public function optionsHook(
- AnnotatedCommand $command,
- $names,
- AnnotationData $annotationData
- ) {
- $optionsDispatcher = new OptionsHookDispatcher($this->hookManager(), $names);
- $optionsDispatcher->getOptions($command, $annotationData);
- }
-
- public function interact(
- InputInterface $input,
- OutputInterface $output,
- $names,
- AnnotationData $annotationData
- ) {
- $interactDispatcher = new InteractHookDispatcher($this->hookManager(), $names);
- return $interactDispatcher->interact($input, $output, $annotationData);
- }
-
- public function process(
- OutputInterface $output,
- $names,
- $commandCallback,
- CommandData $commandData
- ) {
- $result = [];
- try {
- $result = $this->validateRunAndAlter(
- $names,
- $commandCallback,
- $commandData
- );
- return $this->handleResults($output, $names, $result, $commandData);
- } catch (\Exception $e) {
- $result = $this->commandErrorForException($e);
- return $this->handleResults($output, $names, $result, $commandData);
- }
- }
-
- public function validateRunAndAlter(
- $names,
- $commandCallback,
- CommandData $commandData
- ) {
- // Validators return any object to signal a validation error;
- // if the return an array, it replaces the arguments.
- $validateDispatcher = new ValidateHookDispatcher($this->hookManager(), $names);
- $validated = $validateDispatcher->validate($commandData);
- if (is_object($validated)) {
- return $validated;
- }
-
- // Once we have validated the optins, create the formatter options.
- $this->createFormatterOptions($commandData);
-
- $replaceDispatcher = new ReplaceCommandHookDispatcher($this->hookManager(), $names);
- if ($this->logger) {
- $replaceDispatcher->setLogger($this->logger);
- }
- if ($replaceDispatcher->hasReplaceCommandHook()) {
- $commandCallback = $replaceDispatcher->getReplacementCommand($commandData);
- }
-
- // Run the command, alter the results, and then handle output and status
- $result = $this->runCommandCallback($commandCallback, $commandData);
- return $this->processResults($names, $result, $commandData);
- }
-
- public function processResults($names, $result, CommandData $commandData)
- {
- $processDispatcher = new ProcessResultHookDispatcher($this->hookManager(), $names);
- return $processDispatcher->process($result, $commandData);
- }
-
- /**
- * Create a FormatterOptions object for use in writing the formatted output.
- * @param CommandData $commandData
- * @return FormatterOptions
- */
- protected function createFormatterOptions($commandData)
- {
- $options = $commandData->input()->getOptions();
- $formatterOptions = new FormatterOptions($commandData->annotationData()->getArrayCopy(), $options);
- foreach ($this->prepareOptionsList as $preparer) {
- $preparer->prepare($commandData, $formatterOptions);
- }
- $commandData->setFormatterOptions($formatterOptions);
- return $formatterOptions;
- }
-
- /**
- * Handle the result output and status code calculation.
- */
- public function handleResults(OutputInterface $output, $names, $result, CommandData $commandData)
- {
- $statusCodeDispatcher = new StatusDeterminerHookDispatcher($this->hookManager(), $names);
- $extractDispatcher = new ExtracterHookDispatcher($this->hookManager(), $names);
-
- return $this->resultWriter()->handle($output, $result, $commandData, $statusCodeDispatcher, $extractDispatcher);
- }
-
- /**
- * Run the main command callback
- */
- protected function runCommandCallback($commandCallback, CommandData $commandData)
- {
- $result = false;
- try {
- $args = $this->parameterInjection()->args($commandData);
- $result = call_user_func_array($commandCallback, $args);
- } catch (\Exception $e) {
- $result = $this->commandErrorForException($e);
- }
- return $result;
- }
-
- public function injectIntoCommandData($commandData, $injectedClasses)
- {
- $this->parameterInjection()->injectIntoCommandData($commandData, $injectedClasses);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/CommandResult.php b/vendor/consolidation/annotated-command/src/CommandResult.php
deleted file mode 100644
index 6b1a3f80b..000000000
--- a/vendor/consolidation/annotated-command/src/CommandResult.php
+++ /dev/null
@@ -1,71 +0,0 @@
-data = $data;
- $this->exitCode = $exitCode;
- }
-
- public static function exitCode($exitCode)
- {
- return new self(null, $exitCode);
- }
-
- public static function data($data)
- {
- return new self($data);
- }
-
- public static function dataWithExitCode($data, $exitCode)
- {
- return new self($data, $exitCode);
- }
-
- public function getExitCode()
- {
- return $this->exitCode;
- }
-
- public function getOutputData()
- {
- return $this->data;
- }
-
- public function setOutputData($data)
- {
- $this->data = $data;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Events/CustomEventAwareInterface.php b/vendor/consolidation/annotated-command/src/Events/CustomEventAwareInterface.php
deleted file mode 100644
index 806b55dfc..000000000
--- a/vendor/consolidation/annotated-command/src/Events/CustomEventAwareInterface.php
+++ /dev/null
@@ -1,20 +0,0 @@
-hookManager = $hookManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCustomEventHandlers($eventName)
- {
- if (!$this->hookManager) {
- return [];
- }
- return $this->hookManager->getHook($eventName, HookManager::ON_EVENT);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/ExitCodeInterface.php b/vendor/consolidation/annotated-command/src/ExitCodeInterface.php
deleted file mode 100644
index bec902bb6..000000000
--- a/vendor/consolidation/annotated-command/src/ExitCodeInterface.php
+++ /dev/null
@@ -1,12 +0,0 @@
-application = $application;
- }
-
- public function getApplication()
- {
- return $this->application;
- }
-
- /**
- * Run the help command
- *
- * @command my-help
- * @return \Consolidation\AnnotatedCommand\Help\HelpDocument
- */
- public function help($commandName = 'help')
- {
- $command = $this->getApplication()->find($commandName);
-
- $helpDocument = $this->getHelpDocument($command);
- return $helpDocument;
- }
-
- /**
- * Create a help document.
- */
- protected function getHelpDocument($command)
- {
- return new HelpDocument($command);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Help/HelpDocument.php b/vendor/consolidation/annotated-command/src/Help/HelpDocument.php
deleted file mode 100644
index 67609d65e..000000000
--- a/vendor/consolidation/annotated-command/src/Help/HelpDocument.php
+++ /dev/null
@@ -1,65 +0,0 @@
-generateBaseHelpDom($command);
- $dom = $this->alterHelpDocument($command, $dom);
-
- $this->command = $command;
- $this->dom = $dom;
- }
-
- /**
- * Convert data into a \DomDocument.
- *
- * @return \DomDocument
- */
- public function getDomData()
- {
- return $this->dom;
- }
-
- /**
- * Create the base help DOM prior to alteration by the Command object.
- * @param Command $command
- * @return \DomDocument
- */
- protected function generateBaseHelpDom(Command $command)
- {
- // Use Symfony to generate xml text. If other formats are
- // requested, convert from xml to the desired form.
- $descriptor = new XmlDescriptor();
- return $descriptor->getCommandDocument($command);
- }
-
- /**
- * Alter the DOM document per the command object
- * @param Command $command
- * @param \DomDocument $dom
- * @return \DomDocument
- */
- protected function alterHelpDocument(Command $command, \DomDocument $dom)
- {
- if ($command instanceof HelpDocumentAlter) {
- $dom = $command->helpAlter($dom);
- }
- return $dom;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Help/HelpDocumentAlter.php b/vendor/consolidation/annotated-command/src/Help/HelpDocumentAlter.php
deleted file mode 100644
index 0d7f49c72..000000000
--- a/vendor/consolidation/annotated-command/src/Help/HelpDocumentAlter.php
+++ /dev/null
@@ -1,7 +0,0 @@
-appendChild($commandXML = $dom->createElement('command'));
- $commandXML->setAttribute('id', $command->getName());
- $commandXML->setAttribute('name', $command->getName());
-
- // Get the original element and its top-level elements.
- $originalCommandXML = static::getSingleElementByTagName($dom, $originalDom, 'command');
- $originalUsagesXML = static::getSingleElementByTagName($dom, $originalCommandXML, 'usages');
- $originalDescriptionXML = static::getSingleElementByTagName($dom, $originalCommandXML, 'description');
- $originalHelpXML = static::getSingleElementByTagName($dom, $originalCommandXML, 'help');
- $originalArgumentsXML = static::getSingleElementByTagName($dom, $originalCommandXML, 'arguments');
- $originalOptionsXML = static::getSingleElementByTagName($dom, $originalCommandXML, 'options');
-
- // Keep only the first of the elements
- $newUsagesXML = $dom->createElement('usages');
- $firstUsageXML = static::getSingleElementByTagName($dom, $originalUsagesXML, 'usage');
- $newUsagesXML->appendChild($firstUsageXML);
-
- // Create our own elements
- $newExamplesXML = $dom->createElement('examples');
- foreach ($command->getExampleUsages() as $usage => $description) {
- $newExamplesXML->appendChild($exampleXML = $dom->createElement('example'));
- $exampleXML->appendChild($usageXML = $dom->createElement('usage', $usage));
- $exampleXML->appendChild($descriptionXML = $dom->createElement('description', $description));
- }
-
- // Create our own elements
- $newAliasesXML = $dom->createElement('aliases');
- foreach ($command->getAliases() as $alias) {
- $newAliasesXML->appendChild($dom->createElement('alias', $alias));
- }
-
- // Create our own elements
- $newTopicsXML = $dom->createElement('topics');
- foreach ($command->getTopics() as $topic) {
- $newTopicsXML->appendChild($topicXML = $dom->createElement('topic', $topic));
- }
-
- // Place the different elements into the element in the desired order
- $commandXML->appendChild($newUsagesXML);
- $commandXML->appendChild($newExamplesXML);
- $commandXML->appendChild($originalDescriptionXML);
- $commandXML->appendChild($originalArgumentsXML);
- $commandXML->appendChild($originalOptionsXML);
- $commandXML->appendChild($originalHelpXML);
- $commandXML->appendChild($newAliasesXML);
- $commandXML->appendChild($newTopicsXML);
-
- return $dom;
- }
-
-
- protected static function getSingleElementByTagName($dom, $parent, $tagName)
- {
- // There should always be exactly one '' element.
- $elements = $parent->getElementsByTagName($tagName);
- $result = $elements->item(0);
-
- $result = $dom->importNode($result, true);
-
- return $result;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/AlterResultInterface.php b/vendor/consolidation/annotated-command/src/Hooks/AlterResultInterface.php
deleted file mode 100644
index a94f4723f..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/AlterResultInterface.php
+++ /dev/null
@@ -1,12 +0,0 @@
-getHooks($hooks);
- foreach ($commandEventHooks as $commandEvent) {
- if ($commandEvent instanceof EventDispatcherInterface) {
- $commandEvent->dispatch(ConsoleEvents::COMMAND, $event);
- }
- if (is_callable($commandEvent)) {
- $commandEvent($event);
- }
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ExtracterHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ExtracterHookDispatcher.php
deleted file mode 100644
index 26bb1d2ed..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ExtracterHookDispatcher.php
+++ /dev/null
@@ -1,47 +0,0 @@
-getOutputData();
- }
-
- $hooks = [
- HookManager::EXTRACT_OUTPUT,
- ];
- $extractors = $this->getHooks($hooks);
- foreach ($extractors as $extractor) {
- $structuredOutput = $this->callExtractor($extractor, $result);
- if (isset($structuredOutput)) {
- return $structuredOutput;
- }
- }
-
- return $result;
- }
-
- protected function callExtractor($extractor, $result)
- {
- if ($extractor instanceof ExtractOutputInterface) {
- return $extractor->extractOutput($result);
- }
- if (is_callable($extractor)) {
- return $extractor($result);
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/HookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/HookDispatcher.php
deleted file mode 100644
index aa850eabe..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/HookDispatcher.php
+++ /dev/null
@@ -1,27 +0,0 @@
-hookManager = $hookManager;
- $this->names = $names;
- }
-
- public function getHooks($hooks, $annotationData = null)
- {
- return $this->hookManager->getHooks($this->names, $hooks, $annotationData);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php
deleted file mode 100644
index dd12d500d..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InitializeHookDispatcher.php
+++ /dev/null
@@ -1,40 +0,0 @@
-getHooks($hooks, $annotationData);
- foreach ($providers as $provider) {
- $this->callInitializeHook($provider, $input, $annotationData);
- }
- }
-
- protected function callInitializeHook($provider, $input, AnnotationData $annotationData)
- {
- if ($provider instanceof InitializeHookInterface) {
- return $provider->initialize($input, $annotationData);
- }
- if (is_callable($provider)) {
- return $provider($input, $annotationData);
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InteractHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InteractHookDispatcher.php
deleted file mode 100644
index 6de718dde..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/InteractHookDispatcher.php
+++ /dev/null
@@ -1,41 +0,0 @@
-getHooks($hooks, $annotationData);
- foreach ($interactors as $interactor) {
- $this->callInteractor($interactor, $input, $output, $annotationData);
- }
- }
-
- protected function callInteractor($interactor, $input, $output, AnnotationData $annotationData)
- {
- if ($interactor instanceof InteractorInterface) {
- return $interactor->interact($input, $output, $annotationData);
- }
- if (is_callable($interactor)) {
- return $interactor($input, $output, $annotationData);
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/OptionsHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/OptionsHookDispatcher.php
deleted file mode 100644
index 59752266a..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/OptionsHookDispatcher.php
+++ /dev/null
@@ -1,44 +0,0 @@
-getHooks($hooks, $annotationData);
- foreach ($optionHooks as $optionHook) {
- $this->callOptionHook($optionHook, $command, $annotationData);
- }
- $commandInfoList = $this->hookManager->getHookOptionsForCommand($command);
- if ($command instanceof AnnotatedCommand) {
- $command->optionsHookForHookAnnotations($commandInfoList);
- }
- }
-
- protected function callOptionHook($optionHook, $command, AnnotationData $annotationData)
- {
- if ($optionHook instanceof OptionHookInterface) {
- return $optionHook->getOptions($command, $annotationData);
- }
- if (is_callable($optionHook)) {
- return $optionHook($command, $annotationData);
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ProcessResultHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ProcessResultHookDispatcher.php
deleted file mode 100644
index dca2b2301..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ProcessResultHookDispatcher.php
+++ /dev/null
@@ -1,53 +0,0 @@
-getHooks($hooks, $commandData->annotationData());
- foreach ($processors as $processor) {
- $result = $this->callProcessor($processor, $result, $commandData);
- }
-
- return $result;
- }
-
- protected function callProcessor($processor, $result, CommandData $commandData)
- {
- $processed = null;
- if ($processor instanceof ProcessResultInterface) {
- $processed = $processor->process($result, $commandData);
- }
- if (is_callable($processor)) {
- $processed = $processor($result, $commandData);
- }
- if (isset($processed)) {
- return $processed;
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ReplaceCommandHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ReplaceCommandHookDispatcher.php
deleted file mode 100644
index 1687a96a0..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ReplaceCommandHookDispatcher.php
+++ /dev/null
@@ -1,66 +0,0 @@
-getReplaceCommandHooks());
- }
-
- /**
- * @return \callable[]
- */
- public function getReplaceCommandHooks()
- {
- $hooks = [
- HookManager::REPLACE_COMMAND_HOOK,
- ];
- $replaceCommandHooks = $this->getHooks($hooks);
-
- return $replaceCommandHooks;
- }
-
- /**
- * @param \Consolidation\AnnotatedCommand\CommandData $commandData
- *
- * @return callable
- */
- public function getReplacementCommand(CommandData $commandData)
- {
- $replaceCommandHooks = $this->getReplaceCommandHooks();
-
- // We only take the first hook implementation of "replace-command" as the replacement. Commands shouldn't have
- // more than one replacement.
- $replacementCommand = reset($replaceCommandHooks);
-
- if ($this->logger && count($replaceCommandHooks) > 1) {
- $command_name = $commandData->annotationData()->get('command', 'unknown');
- $message = "Multiple implementations of the \"replace - command\" hook exist for the \"$command_name\" command.\n";
- foreach ($replaceCommandHooks as $replaceCommandHook) {
- $class = get_class($replaceCommandHook[0]);
- $method = $replaceCommandHook[1];
- $hook_name = "$class->$method";
- $message .= " - $hook_name\n";
- }
- $this->logger->warning($message);
- }
-
- return $replacementCommand;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/StatusDeterminerHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/StatusDeterminerHookDispatcher.php
deleted file mode 100644
index 911dcb1de..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/StatusDeterminerHookDispatcher.php
+++ /dev/null
@@ -1,51 +0,0 @@
-getExitCode();
- }
-
- $hooks = [
- HookManager::STATUS_DETERMINER,
- ];
- // If the result does not implement ExitCodeInterface,
- // then we'll see if there is a determiner that can
- // extract a status code from the result.
- $determiners = $this->getHooks($hooks);
- foreach ($determiners as $determiner) {
- $status = $this->callDeterminer($determiner, $result);
- if (isset($status)) {
- return $status;
- }
- }
- }
-
- protected function callDeterminer($determiner, $result)
- {
- if ($determiner instanceof StatusDeterminerInterface) {
- return $determiner->determineStatusCode($result);
- }
- if (is_callable($determiner)) {
- return $determiner($result);
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ValidateHookDispatcher.php b/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ValidateHookDispatcher.php
deleted file mode 100644
index fb4f489f2..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/ValidateHookDispatcher.php
+++ /dev/null
@@ -1,46 +0,0 @@
-getHooks($hooks, $commandData->annotationData());
- foreach ($validators as $validator) {
- $validated = $this->callValidator($validator, $commandData);
- if ($validated === false) {
- return new CommandError();
- }
- if (is_object($validated)) {
- return $validated;
- }
- }
- }
-
- protected function callValidator($validator, CommandData $commandData)
- {
- if ($validator instanceof ValidatorInterface) {
- return $validator->validate($commandData);
- }
- if (is_callable($validator)) {
- return $validator($commandData);
- }
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/ExtractOutputInterface.php b/vendor/consolidation/annotated-command/src/Hooks/ExtractOutputInterface.php
deleted file mode 100644
index ad0cdb696..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/ExtractOutputInterface.php
+++ /dev/null
@@ -1,14 +0,0 @@
-hooks;
- }
-
- /**
- * Add a hook
- *
- * @param mixed $callback The callback function to call
- * @param string $hook The name of the hook to add
- * @param string $name The name of the command to hook
- * ('*' for all)
- */
- public function add(callable $callback, $hook, $name = '*')
- {
- if (empty($name)) {
- $name = static::getClassNameFromCallback($callback);
- }
- $this->hooks[$name][$hook][] = $callback;
- return $this;
- }
-
- public function recordHookOptions($commandInfo, $name)
- {
- $this->hookOptions[$name][] = $commandInfo;
- return $this;
- }
-
- public static function getNames($command, $callback)
- {
- return array_filter(
- array_merge(
- static::getNamesUsingCommands($command),
- [static::getClassNameFromCallback($callback)]
- )
- );
- }
-
- protected static function getNamesUsingCommands($command)
- {
- return array_merge(
- [$command->getName()],
- $command->getAliases()
- );
- }
-
- /**
- * If a command hook does not specify any particular command
- * name that it should be attached to, then it will be applied
- * to every command that is defined in the same class as the hook.
- * This is controlled by using the namespace + class name of
- * the implementing class of the callback hook.
- */
- protected static function getClassNameFromCallback($callback)
- {
- if (!is_array($callback)) {
- return '';
- }
- $reflectionClass = new \ReflectionClass($callback[0]);
- return $reflectionClass->getName();
- }
-
- /**
- * Add a replace command hook
- *
- * @param type ReplaceCommandHookInterface $provider
- * @param type string $command_name The name of the command to replace
- */
- public function addReplaceCommandHook(ReplaceCommandHookInterface $replaceCommandHook, $name)
- {
- $this->hooks[$name][self::REPLACE_COMMAND_HOOK][] = $replaceCommandHook;
- return $this;
- }
-
- public function addPreCommandEventDispatcher(EventDispatcherInterface $eventDispatcher, $name = '*')
- {
- $this->hooks[$name][self::PRE_COMMAND_EVENT][] = $eventDispatcher;
- return $this;
- }
-
- public function addCommandEventDispatcher(EventDispatcherInterface $eventDispatcher, $name = '*')
- {
- $this->hooks[$name][self::COMMAND_EVENT][] = $eventDispatcher;
- return $this;
- }
-
- public function addPostCommandEventDispatcher(EventDispatcherInterface $eventDispatcher, $name = '*')
- {
- $this->hooks[$name][self::POST_COMMAND_EVENT][] = $eventDispatcher;
- return $this;
- }
-
- public function addCommandEvent(EventSubscriberInterface $eventSubscriber)
- {
- // Wrap the event subscriber in a dispatcher and add it
- $dispatcher = new EventDispatcher();
- $dispatcher->addSubscriber($eventSubscriber);
- return $this->addCommandEventDispatcher($dispatcher);
- }
-
- /**
- * Add an configuration provider hook
- *
- * @param type InitializeHookInterface $provider
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addInitializeHook(InitializeHookInterface $initializeHook, $name = '*')
- {
- $this->hooks[$name][self::INITIALIZE][] = $initializeHook;
- return $this;
- }
-
- /**
- * Add an option hook
- *
- * @param type ValidatorInterface $validator
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addOptionHook(OptionHookInterface $interactor, $name = '*')
- {
- $this->hooks[$name][self::INTERACT][] = $interactor;
- return $this;
- }
-
- /**
- * Add an interact hook
- *
- * @param type ValidatorInterface $validator
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addInteractor(InteractorInterface $interactor, $name = '*')
- {
- $this->hooks[$name][self::INTERACT][] = $interactor;
- return $this;
- }
-
- /**
- * Add a pre-validator hook
- *
- * @param type ValidatorInterface $validator
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addPreValidator(ValidatorInterface $validator, $name = '*')
- {
- $this->hooks[$name][self::PRE_ARGUMENT_VALIDATOR][] = $validator;
- return $this;
- }
-
- /**
- * Add a validator hook
- *
- * @param type ValidatorInterface $validator
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addValidator(ValidatorInterface $validator, $name = '*')
- {
- $this->hooks[$name][self::ARGUMENT_VALIDATOR][] = $validator;
- return $this;
- }
-
- /**
- * Add a pre-command hook. This is the same as a validator hook, except
- * that it will run after all of the post-validator hooks.
- *
- * @param type ValidatorInterface $preCommand
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addPreCommandHook(ValidatorInterface $preCommand, $name = '*')
- {
- $this->hooks[$name][self::PRE_COMMAND_HOOK][] = $preCommand;
- return $this;
- }
-
- /**
- * Add a post-command hook. This is the same as a pre-process hook,
- * except that it will run before the first pre-process hook.
- *
- * @param type ProcessResultInterface $postCommand
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addPostCommandHook(ProcessResultInterface $postCommand, $name = '*')
- {
- $this->hooks[$name][self::POST_COMMAND_HOOK][] = $postCommand;
- return $this;
- }
-
- /**
- * Add a result processor.
- *
- * @param type ProcessResultInterface $resultProcessor
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addResultProcessor(ProcessResultInterface $resultProcessor, $name = '*')
- {
- $this->hooks[$name][self::PROCESS_RESULT][] = $resultProcessor;
- return $this;
- }
-
- /**
- * Add a result alterer. After a result is processed
- * by a result processor, an alter hook may be used
- * to convert the result from one form to another.
- *
- * @param type AlterResultInterface $resultAlterer
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addAlterResult(AlterResultInterface $resultAlterer, $name = '*')
- {
- $this->hooks[$name][self::ALTER_RESULT][] = $resultAlterer;
- return $this;
- }
-
- /**
- * Add a status determiner. Usually, a command should return
- * an integer on error, or a result object on success (which
- * implies a status code of zero). If a result contains the
- * status code in some other field, then a status determiner
- * can be used to call the appropriate accessor method to
- * determine the status code. This is usually not necessary,
- * though; a command that fails may return a CommandError
- * object, which contains a status code and a result message
- * to display.
- * @see CommandError::getExitCode()
- *
- * @param type StatusDeterminerInterface $statusDeterminer
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addStatusDeterminer(StatusDeterminerInterface $statusDeterminer, $name = '*')
- {
- $this->hooks[$name][self::STATUS_DETERMINER][] = $statusDeterminer;
- return $this;
- }
-
- /**
- * Add an output extractor. If a command returns an object
- * object, by default it is passed directly to the output
- * formatter (if in use) for rendering. If the result object
- * contains more information than just the data to render, though,
- * then an output extractor can be used to call the appopriate
- * accessor method of the result object to get the data to
- * rendered. This is usually not necessary, though; it is preferable
- * to have complex result objects implement the OutputDataInterface.
- * @see OutputDataInterface::getOutputData()
- *
- * @param type ExtractOutputInterface $outputExtractor
- * @param type $name The name of the command to hook
- * ('*' for all)
- */
- public function addOutputExtractor(ExtractOutputInterface $outputExtractor, $name = '*')
- {
- $this->hooks[$name][self::EXTRACT_OUTPUT][] = $outputExtractor;
- return $this;
- }
-
- public function getHookOptionsForCommand($command)
- {
- $names = $this->addWildcardHooksToNames($command->getNames(), $command->getAnnotationData());
- return $this->getHookOptions($names);
- }
-
- /**
- * @return CommandInfo[]
- */
- public function getHookOptions($names)
- {
- $result = [];
- foreach ($names as $name) {
- if (isset($this->hookOptions[$name])) {
- $result = array_merge($result, $this->hookOptions[$name]);
- }
- }
- return $result;
- }
-
- /**
- * Get a set of hooks with the provided name(s). Include the
- * pre- and post- hooks, and also include the global hooks ('*')
- * in addition to the named hooks provided.
- *
- * @param string|array $names The name of the function being hooked.
- * @param string[] $hooks A list of hooks (e.g. [HookManager::ALTER_RESULT])
- *
- * @return callable[]
- */
- public function getHooks($names, $hooks, $annotationData = null)
- {
- return $this->get($this->addWildcardHooksToNames($names, $annotationData), $hooks);
- }
-
- protected function addWildcardHooksToNames($names, $annotationData = null)
- {
- $names = array_merge(
- (array)$names,
- ($annotationData == null) ? [] : array_map(function ($item) {
- return "@$item";
- }, $annotationData->keys())
- );
- $names[] = '*';
- return array_unique($names);
- }
-
- /**
- * Get a set of hooks with the provided name(s).
- *
- * @param string|array $names The name of the function being hooked.
- * @param string[] $hooks The list of hook names (e.g. [HookManager::ALTER_RESULT])
- *
- * @return callable[]
- */
- public function get($names, $hooks)
- {
- $result = [];
- foreach ((array)$hooks as $hook) {
- foreach ((array)$names as $name) {
- $result = array_merge($result, $this->getHook($name, $hook));
- }
- }
- return $result;
- }
-
- /**
- * Get a single named hook.
- *
- * @param string $name The name of the hooked method
- * @param string $hook The specific hook name (e.g. alter)
- *
- * @return callable[]
- */
- public function getHook($name, $hook)
- {
- if (isset($this->hooks[$name][$hook])) {
- return $this->hooks[$name][$hook];
- }
- return [];
- }
-
- /**
- * Call the command event hooks.
- *
- * TODO: This should be moved to CommandEventHookDispatcher, which
- * should become the class that implements EventSubscriberInterface.
- * This change would break all clients, though, so postpone until next
- * major release.
- *
- * @param ConsoleCommandEvent $event
- */
- public function callCommandEventHooks(ConsoleCommandEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
- $dispatcher = new CommandEventHookDispatcher($this, [$command->getName()]);
- $dispatcher->callCommandEventHooks($event);
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'callCommandEventHooks'];
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Hooks/InitializeHookInterface.php b/vendor/consolidation/annotated-command/src/Hooks/InitializeHookInterface.php
deleted file mode 100644
index 5d261478d..000000000
--- a/vendor/consolidation/annotated-command/src/Hooks/InitializeHookInterface.php
+++ /dev/null
@@ -1,15 +0,0 @@
-stdinHandler = $stdin;
- }
-
- /**
- * @inheritdoc
- */
- public function stdin()
- {
- if (!$this->stdinHandler) {
- $this->stdinHandler = new StdinHandler();
- }
- return $this->stdinHandler;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Input/StdinHandler.php b/vendor/consolidation/annotated-command/src/Input/StdinHandler.php
deleted file mode 100644
index 473458109..000000000
--- a/vendor/consolidation/annotated-command/src/Input/StdinHandler.php
+++ /dev/null
@@ -1,247 +0,0 @@
-stdin()->contents());
- * }
- * }
- *
- * Command that reads from stdin or file via an option:
- *
- * /**
- * * @command cat
- * * @param string $file
- * * @default $file -
- * * /
- * public function cat(InputInterface $input)
- * {
- * $data = $this->stdin()->select($input, 'file')->contents();
- * }
- *
- * Command that reads from stdin or file via an option:
- *
- * /**
- * * @command cat
- * * @option string $file
- * * @default $file -
- * * /
- * public function cat(InputInterface $input)
- * {
- * $data = $this->stdin()->select($input, 'file')->contents();
- * }
- *
- * It is also possible to inject the selected stream into the input object,
- * e.g. if you want the contents of the source file to be fed to any Question
- * helper et. al. that the $input object is used with.
- *
- * /**
- * * @command example
- * * @option string $file
- * * @default $file -
- * * /
- * public function example(InputInterface $input)
- * {
- * $this->stdin()->setStream($input, 'file');
- * }
- *
- *
- * Inject an alternate source for standard input in tests. Presumes that
- * the object under test gets a reference to the StdinHandler via dependency
- * injection from the container.
- *
- * $container->get('stdinHandler')->redirect($pathToTestStdinFileFixture);
- *
- * You may also inject your stdin file fixture stream into the $input object
- * as usual, and then use it with 'select()' or 'setStream()' as shown above.
- *
- * Finally, this class may also be used in absence of a dependency injection
- * container by using the static 'selectStream()' method:
- *
- * /**
- * * @command example
- * * @option string $file
- * * @default $file -
- * * /
- * public function example(InputInterface $input)
- * {
- * $data = StdinHandler::selectStream($input, 'file')->contents();
- * }
- *
- * To test a method that uses this technique, simply inject your stdin
- * fixture into the $input object in your test:
- *
- * $input->setStream(fopen($pathToFixture, 'r'));
- */
-class StdinHandler
-{
- protected $path;
- protected $stream;
-
- public static function selectStream(InputInterface $input, $optionOrArg)
- {
- $handler = new Self();
-
- return $handler->setStream($input, $optionOrArg);
- }
-
- /**
- * hasPath returns 'true' if the stdin handler has a path to a file.
- *
- * @return bool
- */
- public function hasPath()
- {
- // Once the stream has been opened, we mask the existence of the path.
- return !$this->hasStream() && !empty($this->path);
- }
-
- /**
- * hasStream returns 'true' if the stdin handler has opened a stream.
- *
- * @return bool
- */
- public function hasStream()
- {
- return !empty($this->stream);
- }
-
- /**
- * path returns the path to any file that was set as a redirection
- * source, or `php://stdin` if none have been.
- *
- * @return string
- */
- public function path()
- {
- return $this->path ?: 'php://stdin';
- }
-
- /**
- * close closes the input stream if it was opened.
- */
- public function close()
- {
- if ($this->hasStream()) {
- fclose($this->stream);
- $this->stream = null;
- }
- return $this;
- }
-
- /**
- * redirect specifies a path to a file that should serve as the
- * source to read from. If the input path is '-' or empty,
- * then output will be taken from php://stdin (or whichever source
- * was provided via the 'redirect' method).
- *
- * @return $this
- */
- public function redirect($path)
- {
- if ($this->pathProvided($path)) {
- $this->path = $path;
- }
-
- return $this;
- }
-
- /**
- * select chooses the source of the input stream based on whether or
- * not the user provided the specified option or argument on the commandline.
- * Stdin is selected if there is no user selection.
- *
- * @param InputInterface $input
- * @param string $optionOrArg
- * @return $this
- */
- public function select(InputInterface $input, $optionOrArg)
- {
- $this->redirect($this->getOptionOrArg($input, $optionOrArg));
- if (!$this->hasPath() && ($input instanceof StreamableInputInterface)) {
- $this->stream = $input->getStream();
- }
-
- return $this;
- }
-
- /**
- * getStream opens and returns the stdin stream (or redirect file).
- */
- public function getStream()
- {
- if (!$this->hasStream()) {
- $this->stream = fopen($this->path(), 'r');
- }
- return $this->stream;
- }
-
- /**
- * setStream functions like 'select', and also sets up the $input
- * object to read from the selected input stream e.g. when used
- * with a question helper.
- */
- public function setStream(InputInterface $input, $optionOrArg)
- {
- $this->select($input, $optionOrArg);
- if ($input instanceof StreamableInputInterface) {
- $stream = $this->getStream();
- $input->setStream($stream);
- }
- return $this;
- }
-
- /**
- * contents reads the entire contents of the standard input stream.
- *
- * @return string
- */
- public function contents()
- {
- // Optimization: use file_get_contents if we have a path to a file
- // and the stream has not been opened yet.
- if (!$this->hasStream()) {
- return file_get_contents($this->path());
- }
- $stream = $this->getStream();
- stream_set_blocking($stream, false); // TODO: We did this in backend invoke. Necessary here?
- $contents = stream_get_contents($stream);
- $this->close();
-
- return $contents;
- }
-
- /**
- * Returns 'true' if a path was specfied, and that path was not '-'.
- */
- protected function pathProvided($path)
- {
- return !empty($path) && ($path != '-');
- }
-
- protected function getOptionOrArg(InputInterface $input, $optionOrArg)
- {
- if ($input->hasOption($optionOrArg)) {
- return $input->getOption($optionOrArg);
- }
- return $input->getArgument($optionOrArg);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Options/AlterOptionsCommandEvent.php b/vendor/consolidation/annotated-command/src/Options/AlterOptionsCommandEvent.php
deleted file mode 100644
index b16a8eda3..000000000
--- a/vendor/consolidation/annotated-command/src/Options/AlterOptionsCommandEvent.php
+++ /dev/null
@@ -1,92 +0,0 @@
-application = $application;
- }
-
- /**
- * @param ConsoleCommandEvent $event
- */
- public function alterCommandOptions(ConsoleCommandEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
- $input = $event->getInput();
- if ($command->getName() == 'help') {
- // Symfony 3.x prepares $input for us; Symfony 2.x, on the other
- // hand, passes it in prior to binding with the command definition,
- // so we have to go to a little extra work. It may be inadvisable
- // to do these steps for commands other than 'help'.
- if (!$input->hasArgument('command_name')) {
- $command->ignoreValidationErrors();
- $command->mergeApplicationDefinition();
- $input->bind($command->getDefinition());
- }
-
- // Symfony Console helpfully swaps 'command_name' and 'command'
- // depending on whether the user entered `help foo` or `--help foo`.
- // One of these is always `help`, and the other is the command we
- // are actually interested in.
- $nameOfCommandToDescribe = $event->getInput()->getArgument('command_name');
- if ($nameOfCommandToDescribe == 'help') {
- $nameOfCommandToDescribe = $event->getInput()->getArgument('command');
- }
- $commandToDescribe = $this->application->find($nameOfCommandToDescribe);
- $this->findAndAddHookOptions($commandToDescribe);
- } else {
- $this->findAndAddHookOptions($command);
- }
- }
-
- public function findAndAddHookOptions($command)
- {
- if (!$command instanceof AnnotatedCommand) {
- return;
- }
- $command->optionsHook();
- }
-
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'alterCommandOptions'];
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php b/vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php
deleted file mode 100644
index 1349fe795..000000000
--- a/vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php
+++ /dev/null
@@ -1,21 +0,0 @@
-defaultWidth = $defaultWidth;
- }
-
- public function setApplication(Application $application)
- {
- $this->application = $application;
- }
-
- public function setTerminal($terminal)
- {
- $this->terminal = $terminal;
- }
-
- public function getTerminal()
- {
- if (!$this->terminal && class_exists('\Symfony\Component\Console\Terminal')) {
- $this->terminal = new \Symfony\Component\Console\Terminal();
- }
- return $this->terminal;
- }
-
- public function enableWrap($shouldWrap)
- {
- $this->shouldWrap = $shouldWrap;
- }
-
- public function prepare(CommandData $commandData, FormatterOptions $options)
- {
- $width = $this->getTerminalWidth();
- if (!$width) {
- $width = $this->defaultWidth;
- }
-
- // Enforce minimum and maximum widths
- $width = min($width, $this->getMaxWidth($commandData));
- $width = max($width, $this->getMinWidth($commandData));
-
- $options->setWidth($width);
- }
-
- protected function getTerminalWidth()
- {
- // Don't wrap if wrapping has been disabled.
- if (!$this->shouldWrap) {
- return 0;
- }
-
- $terminal = $this->getTerminal();
- if ($terminal) {
- return $terminal->getWidth();
- }
-
- return $this->getTerminalWidthViaApplication();
- }
-
- protected function getTerminalWidthViaApplication()
- {
- if (!$this->application) {
- return 0;
- }
- $dimensions = $this->application->getTerminalDimensions();
- if ($dimensions[0] == null) {
- return 0;
- }
-
- return $dimensions[0];
- }
-
- protected function getMaxWidth(CommandData $commandData)
- {
- return $this->maxWidth;
- }
-
- protected function getMinWidth(CommandData $commandData)
- {
- return $this->minWidth;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/OutputDataInterface.php b/vendor/consolidation/annotated-command/src/OutputDataInterface.php
deleted file mode 100644
index 9102764db..000000000
--- a/vendor/consolidation/annotated-command/src/OutputDataInterface.php
+++ /dev/null
@@ -1,13 +0,0 @@
-register('Symfony\Component\Console\Input\InputInterface', $this);
- $this->register('Symfony\Component\Console\Output\OutputInterface', $this);
- }
-
- public function register($interfaceName, ParameterInjector $injector)
- {
- $this->injectors[$interfaceName] = $injector;
- }
-
- public function args($commandData)
- {
- return array_merge(
- $commandData->injectedInstances(),
- $commandData->getArgsAndOptions()
- );
- }
-
- public function injectIntoCommandData($commandData, $injectedClasses)
- {
- foreach ($injectedClasses as $injectedClass) {
- $injectedInstance = $this->getInstanceToInject($commandData, $injectedClass);
- $commandData->injectInstance($injectedInstance);
- }
- }
-
- protected function getInstanceToInject(CommandData $commandData, $interfaceName)
- {
- if (!isset($this->injectors[$interfaceName])) {
- return null;
- }
-
- return $this->injectors[$interfaceName]->get($commandData, $interfaceName);
- }
-
- public function get(CommandData $commandData, $interfaceName)
- {
- switch ($interfaceName) {
- case 'Symfony\Component\Console\Input\InputInterface':
- return $commandData->input();
- case 'Symfony\Component\Console\Output\OutputInterface':
- return $commandData->output();
- }
-
- return null;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/ParameterInjector.php b/vendor/consolidation/annotated-command/src/ParameterInjector.php
deleted file mode 100644
index 2f2346f62..000000000
--- a/vendor/consolidation/annotated-command/src/ParameterInjector.php
+++ /dev/null
@@ -1,10 +0,0 @@
-reflection = new \ReflectionMethod($classNameOrInstance, $methodName);
- $this->methodName = $methodName;
- $this->arguments = new DefaultsWithDescriptions();
- $this->options = new DefaultsWithDescriptions();
-
- // If the cache came from a newer version, ignore it and
- // regenerate the cached information.
- if (!empty($cache) && CommandInfoDeserializer::isValidSerializedData($cache) && !$this->cachedFileIsModified($cache)) {
- $deserializer = new CommandInfoDeserializer();
- $deserializer->constructFromCache($this, $cache);
- $this->docBlockIsParsed = true;
- } else {
- $this->constructFromClassAndMethod($classNameOrInstance, $methodName);
- }
- }
-
- public static function create($classNameOrInstance, $methodName)
- {
- return new self($classNameOrInstance, $methodName);
- }
-
- public static function deserialize($cache)
- {
- $cache = (array)$cache;
- return new self($cache['class'], $cache['method_name'], $cache);
- }
-
- public function cachedFileIsModified($cache)
- {
- $path = $this->reflection->getFileName();
- return filemtime($path) != $cache['mtime'];
- }
-
- protected function constructFromClassAndMethod($classNameOrInstance, $methodName)
- {
- $this->otherAnnotations = new AnnotationData();
- // Set up a default name for the command from the method name.
- // This can be overridden via @command or @name annotations.
- $this->name = $this->convertName($methodName);
- $this->options = new DefaultsWithDescriptions($this->determineOptionsFromParameters(), false);
- $this->arguments = $this->determineAgumentClassifications();
- }
-
- /**
- * Recover the method name provided to the constructor.
- *
- * @return string
- */
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- /**
- * Return the primary name for this command.
- *
- * @return string
- */
- public function getName()
- {
- $this->parseDocBlock();
- return $this->name;
- }
-
- /**
- * Set the primary name for this command.
- *
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
-
- /**
- * Return whether or not this method represents a valid command
- * or hook.
- */
- public function valid()
- {
- return !empty($this->name);
- }
-
- /**
- * If higher-level code decides that this CommandInfo is not interesting
- * or useful (if it is not a command method or a hook method), then
- * we will mark it as invalid to prevent it from being created as a command.
- * We still cache a placeholder record for invalid methods, so that we
- * do not need to re-parse the method again later simply to determine that
- * it is invalid.
- */
- public function invalidate()
- {
- $this->name = '';
- }
-
- public function getReturnType()
- {
- $this->parseDocBlock();
- return $this->returnType;
- }
-
- public function getInjectedClasses()
- {
- $this->parseDocBlock();
- return $this->injectedClasses;
- }
-
- public function setReturnType($returnType)
- {
- $this->returnType = $returnType;
- return $this;
- }
-
- /**
- * Get any annotations included in the docblock comment for the
- * implementation method of this command that are not already
- * handled by the primary methods of this class.
- *
- * @return AnnotationData
- */
- public function getRawAnnotations()
- {
- $this->parseDocBlock();
- return $this->otherAnnotations;
- }
-
- /**
- * Replace the annotation data.
- */
- public function replaceRawAnnotations($annotationData)
- {
- $this->otherAnnotations = new AnnotationData((array) $annotationData);
- return $this;
- }
-
- /**
- * Get any annotations included in the docblock comment,
- * also including default values such as @command. We add
- * in the default @command annotation late, and only in a
- * copy of the annotation data because we use the existance
- * of a @command to indicate that this CommandInfo is
- * a command, and not a hook or anything else.
- *
- * @return AnnotationData
- */
- public function getAnnotations()
- {
- // Also provide the path to the commandfile that these annotations
- // were pulled from and the classname of that file.
- $path = $this->reflection->getFileName();
- $className = $this->reflection->getDeclaringClass()->getName();
- return new AnnotationData(
- $this->getRawAnnotations()->getArrayCopy() +
- [
- 'command' => $this->getName(),
- '_path' => $path,
- '_classname' => $className,
- ]
- );
- }
-
- /**
- * Return a specific named annotation for this command as a list.
- *
- * @param string $name The name of the annotation.
- * @return array|null
- */
- public function getAnnotationList($name)
- {
- // hasAnnotation parses the docblock
- if (!$this->hasAnnotation($name)) {
- return null;
- }
- return $this->otherAnnotations->getList($name);
- ;
- }
-
- /**
- * Return a specific named annotation for this command as a string.
- *
- * @param string $name The name of the annotation.
- * @return string|null
- */
- public function getAnnotation($name)
- {
- // hasAnnotation parses the docblock
- if (!$this->hasAnnotation($name)) {
- return null;
- }
- return $this->otherAnnotations->get($name);
- }
-
- /**
- * Check to see if the specified annotation exists for this command.
- *
- * @param string $annotation The name of the annotation.
- * @return boolean
- */
- public function hasAnnotation($annotation)
- {
- $this->parseDocBlock();
- return isset($this->otherAnnotations[$annotation]);
- }
-
- /**
- * Save any tag that we do not explicitly recognize in the
- * 'otherAnnotations' map.
- */
- public function addAnnotation($name, $content)
- {
- // Convert to an array and merge if there are multiple
- // instances of the same annotation defined.
- if (isset($this->otherAnnotations[$name])) {
- $content = array_merge((array) $this->otherAnnotations[$name], (array)$content);
- }
- $this->otherAnnotations[$name] = $content;
- }
-
- /**
- * Remove an annotation that was previoudly set.
- */
- public function removeAnnotation($name)
- {
- unset($this->otherAnnotations[$name]);
- }
-
- /**
- * Get the synopsis of the command (~first line).
- *
- * @return string
- */
- public function getDescription()
- {
- $this->parseDocBlock();
- return $this->description;
- }
-
- /**
- * Set the command description.
- *
- * @param string $description The description to set.
- */
- public function setDescription($description)
- {
- $this->description = str_replace("\n", ' ', $description);
- return $this;
- }
-
- /**
- * Get the help text of the command (the description)
- */
- public function getHelp()
- {
- $this->parseDocBlock();
- return $this->help;
- }
- /**
- * Set the help text for this command.
- *
- * @param string $help The help text.
- */
- public function setHelp($help)
- {
- $this->help = $help;
- return $this;
- }
-
- /**
- * Return the list of aliases for this command.
- * @return string[]
- */
- public function getAliases()
- {
- $this->parseDocBlock();
- return $this->aliases;
- }
-
- /**
- * Set aliases that can be used in place of the command's primary name.
- *
- * @param string|string[] $aliases
- */
- public function setAliases($aliases)
- {
- if (is_string($aliases)) {
- $aliases = explode(',', static::convertListToCommaSeparated($aliases));
- }
- $this->aliases = array_filter($aliases);
- return $this;
- }
-
- /**
- * Get hidden status for the command.
- * @return bool
- */
- public function getHidden()
- {
- $this->parseDocBlock();
- return $this->hasAnnotation('hidden');
- }
-
- /**
- * Set hidden status. List command omits hidden commands.
- *
- * @param bool $hidden
- */
- public function setHidden($hidden)
- {
- $this->hidden = $hidden;
- return $this;
- }
-
- /**
- * Return the examples for this command. This is @usage instead of
- * @example because the later is defined by the phpdoc standard to
- * be example method calls.
- *
- * @return string[]
- */
- public function getExampleUsages()
- {
- $this->parseDocBlock();
- return $this->exampleUsage;
- }
-
- /**
- * Add an example usage for this command.
- *
- * @param string $usage An example of the command, including the command
- * name and all of its example arguments and options.
- * @param string $description An explanation of what the example does.
- */
- public function setExampleUsage($usage, $description)
- {
- $this->exampleUsage[$usage] = $description;
- return $this;
- }
-
- /**
- * Overwrite all example usages
- */
- public function replaceExampleUsages($usages)
- {
- $this->exampleUsage = $usages;
- return $this;
- }
-
- /**
- * Return the topics for this command.
- *
- * @return string[]
- */
- public function getTopics()
- {
- if (!$this->hasAnnotation('topics')) {
- return [];
- }
- $topics = $this->getAnnotation('topics');
- return explode(',', trim($topics));
- }
-
- /**
- * Return the list of refleaction parameters.
- *
- * @return ReflectionParameter[]
- */
- public function getParameters()
- {
- return $this->reflection->getParameters();
- }
-
- /**
- * Descriptions of commandline arguements for this command.
- *
- * @return DefaultsWithDescriptions
- */
- public function arguments()
- {
- return $this->arguments;
- }
-
- /**
- * Descriptions of commandline options for this command.
- *
- * @return DefaultsWithDescriptions
- */
- public function options()
- {
- return $this->options;
- }
-
- /**
- * Get the inputOptions for the options associated with this CommandInfo
- * object, e.g. via @option annotations, or from
- * $options = ['someoption' => 'defaultvalue'] in the command method
- * parameter list.
- *
- * @return InputOption[]
- */
- public function inputOptions()
- {
- if (!isset($this->inputOptions)) {
- $this->inputOptions = $this->createInputOptions();
- }
- return $this->inputOptions;
- }
-
- protected function addImplicitNoOptions()
- {
- $opts = $this->options()->getValues();
- foreach ($opts as $name => $defaultValue) {
- if ($defaultValue === true) {
- $key = 'no-' . $name;
- if (!array_key_exists($key, $opts)) {
- $description = "Negate --$name option.";
- $this->options()->add($key, $description, false);
- }
- }
- }
- }
-
- protected function createInputOptions()
- {
- $explicitOptions = [];
- $this->addImplicitNoOptions();
-
- $opts = $this->options()->getValues();
- foreach ($opts as $name => $defaultValue) {
- $description = $this->options()->getDescription($name);
-
- $fullName = $name;
- $shortcut = '';
- if (strpos($name, '|')) {
- list($fullName, $shortcut) = explode('|', $name, 2);
- }
-
- // Treat the following two cases identically:
- // - 'foo' => InputOption::VALUE_OPTIONAL
- // - 'foo' => null
- // The first form is preferred, but we will convert the value
- // to 'null' for storage as the option default value.
- if ($defaultValue === InputOption::VALUE_OPTIONAL) {
- $defaultValue = null;
- }
-
- if ($defaultValue === false) {
- $explicitOptions[$fullName] = new InputOption($fullName, $shortcut, InputOption::VALUE_NONE, $description);
- } elseif ($defaultValue === InputOption::VALUE_REQUIRED) {
- $explicitOptions[$fullName] = new InputOption($fullName, $shortcut, InputOption::VALUE_REQUIRED, $description);
- } elseif (is_array($defaultValue)) {
- $optionality = count($defaultValue) ? InputOption::VALUE_OPTIONAL : InputOption::VALUE_REQUIRED;
- $explicitOptions[$fullName] = new InputOption(
- $fullName,
- $shortcut,
- InputOption::VALUE_IS_ARRAY | $optionality,
- $description,
- count($defaultValue) ? $defaultValue : null
- );
- } else {
- $explicitOptions[$fullName] = new InputOption($fullName, $shortcut, InputOption::VALUE_OPTIONAL, $description, $defaultValue);
- }
- }
-
- return $explicitOptions;
- }
-
- /**
- * An option might have a name such as 'silent|s'. In this
- * instance, we will allow the @option or @default tag to
- * reference the option only by name (e.g. 'silent' or 's'
- * instead of 'silent|s').
- *
- * @param string $optionName
- * @return string
- */
- public function findMatchingOption($optionName)
- {
- // Exit fast if there's an exact match
- if ($this->options->exists($optionName)) {
- return $optionName;
- }
- $existingOptionName = $this->findExistingOption($optionName);
- if (isset($existingOptionName)) {
- return $existingOptionName;
- }
- return $this->findOptionAmongAlternatives($optionName);
- }
-
- /**
- * @param string $optionName
- * @return string
- */
- protected function findOptionAmongAlternatives($optionName)
- {
- // Check the other direction: if the annotation contains @silent|s
- // and the options array has 'silent|s'.
- $checkMatching = explode('|', $optionName);
- if (count($checkMatching) > 1) {
- foreach ($checkMatching as $checkName) {
- if ($this->options->exists($checkName)) {
- $this->options->rename($checkName, $optionName);
- return $optionName;
- }
- }
- }
- return $optionName;
- }
-
- /**
- * @param string $optionName
- * @return string|null
- */
- protected function findExistingOption($optionName)
- {
- // Check to see if we can find the option name in an existing option,
- // e.g. if the options array has 'silent|s' => false, and the annotation
- // is @silent.
- foreach ($this->options()->getValues() as $name => $default) {
- if (in_array($optionName, explode('|', $name))) {
- return $name;
- }
- }
- }
-
- /**
- * Examine the parameters of the method for this command, and
- * build a list of commandline arguements for them.
- *
- * @return array
- */
- protected function determineAgumentClassifications()
- {
- $result = new DefaultsWithDescriptions();
- $params = $this->reflection->getParameters();
- $optionsFromParameters = $this->determineOptionsFromParameters();
- if ($this->lastParameterIsOptionsArray()) {
- array_pop($params);
- }
- while (!empty($params) && ($params[0]->getClass() != null)) {
- $param = array_shift($params);
- $injectedClass = $param->getClass()->getName();
- array_unshift($this->injectedClasses, $injectedClass);
- }
- foreach ($params as $param) {
- $this->addParameterToResult($result, $param);
- }
- return $result;
- }
-
- /**
- * Examine the provided parameter, and determine whether it
- * is a parameter that will be filled in with a positional
- * commandline argument.
- */
- protected function addParameterToResult($result, $param)
- {
- // Commandline arguments must be strings, so ignore any
- // parameter that is typehinted to any non-primative class.
- if ($param->getClass() != null) {
- return;
- }
- $result->add($param->name);
- if ($param->isDefaultValueAvailable()) {
- $defaultValue = $param->getDefaultValue();
- if (!$this->isAssoc($defaultValue)) {
- $result->setDefaultValue($param->name, $defaultValue);
- }
- } elseif ($param->isArray()) {
- $result->setDefaultValue($param->name, []);
- }
- }
-
- /**
- * Examine the parameters of the method for this command, and determine
- * the disposition of the options from them.
- *
- * @return array
- */
- protected function determineOptionsFromParameters()
- {
- $params = $this->reflection->getParameters();
- if (empty($params)) {
- return [];
- }
- $param = end($params);
- if (!$param->isDefaultValueAvailable()) {
- return [];
- }
- if (!$this->isAssoc($param->getDefaultValue())) {
- return [];
- }
- return $param->getDefaultValue();
- }
-
- /**
- * Determine if the last argument contains $options.
- *
- * Two forms indicate options:
- * - $options = []
- * - $options = ['flag' => 'default-value']
- *
- * Any other form, including `array $foo`, is not options.
- */
- protected function lastParameterIsOptionsArray()
- {
- $params = $this->reflection->getParameters();
- if (empty($params)) {
- return [];
- }
- $param = end($params);
- if (!$param->isDefaultValueAvailable()) {
- return [];
- }
- return is_array($param->getDefaultValue());
- }
-
- /**
- * Helper; determine if an array is associative or not. An array
- * is not associative if its keys are numeric, and numbered sequentially
- * from zero. All other arrays are considered to be associative.
- *
- * @param array $arr The array
- * @return boolean
- */
- protected function isAssoc($arr)
- {
- if (!is_array($arr)) {
- return false;
- }
- return array_keys($arr) !== range(0, count($arr) - 1);
- }
-
- /**
- * Convert from a method name to the corresponding command name. A
- * method 'fooBar' will become 'foo:bar', and 'fooBarBazBoz' will
- * become 'foo:bar-baz-boz'.
- *
- * @param string $camel method name.
- * @return string
- */
- protected function convertName($camel)
- {
- $splitter="-";
- $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));
- $camel = preg_replace("/$splitter/", ':', $camel, 1);
- return strtolower($camel);
- }
-
- /**
- * Parse the docBlock comment for this command, and set the
- * fields of this class with the data thereby obtained.
- */
- protected function parseDocBlock()
- {
- if (!$this->docBlockIsParsed) {
- // The parse function will insert data from the provided method
- // into this object, using our accessors.
- CommandDocBlockParserFactory::parse($this, $this->reflection);
- $this->docBlockIsParsed = true;
- }
- }
-
- /**
- * Given a list that might be 'a b c' or 'a, b, c' or 'a,b,c',
- * convert the data into the last of these forms.
- */
- protected static function convertListToCommaSeparated($text)
- {
- return preg_replace('#[ \t\n\r,]+#', ',', $text);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/CommandInfoDeserializer.php b/vendor/consolidation/annotated-command/src/Parser/CommandInfoDeserializer.php
deleted file mode 100644
index ed193cb54..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/CommandInfoDeserializer.php
+++ /dev/null
@@ -1,87 +0,0 @@
- 0) &&
- ($cache['schema'] <= CommandInfo::SERIALIZATION_SCHEMA_VERSION) &&
- self::cachedMethodExists($cache);
- }
-
- public function constructFromCache(CommandInfo $commandInfo, $info_array)
- {
- $info_array += $this->defaultSerializationData();
-
- $commandInfo
- ->setName($info_array['name'])
- ->replaceRawAnnotations($info_array['annotations'])
- ->setAliases($info_array['aliases'])
- ->setHelp($info_array['help'])
- ->setDescription($info_array['description'])
- ->replaceExampleUsages($info_array['example_usages'])
- ->setReturnType($info_array['return_type'])
- ;
-
- $this->constructDefaultsWithDescriptions($commandInfo->arguments(), (array)$info_array['arguments']);
- $this->constructDefaultsWithDescriptions($commandInfo->options(), (array)$info_array['options']);
- }
-
- protected function constructDefaultsWithDescriptions(DefaultsWithDescriptions $defaults, $data)
- {
- foreach ($data as $key => $info) {
- $info = (array)$info;
- $defaults->add($key, $info['description']);
- if (array_key_exists('default', $info)) {
- $defaults->setDefaultValue($key, $info['default']);
- }
- }
- }
-
-
- /**
- * Default data. Everything should be provided during serialization;
- * this is just as a fallback for unusual circumstances.
- * @return array
- */
- protected function defaultSerializationData()
- {
- return [
- 'name' => '',
- 'description' => '',
- 'help' => '',
- 'aliases' => [],
- 'annotations' => [],
- 'example_usages' => [],
- 'return_type' => [],
- 'parameters' => [],
- 'arguments' => [],
- 'options' => [],
- 'mtime' => 0,
- ];
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/CommandInfoSerializer.php b/vendor/consolidation/annotated-command/src/Parser/CommandInfoSerializer.php
deleted file mode 100644
index cab6993d3..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/CommandInfoSerializer.php
+++ /dev/null
@@ -1,59 +0,0 @@
-getAnnotations();
- $path = $allAnnotations['_path'];
- $className = $allAnnotations['_classname'];
-
- // Include the minimum information for command info (including placeholder records)
- $info = [
- 'schema' => CommandInfo::SERIALIZATION_SCHEMA_VERSION,
- 'class' => $className,
- 'method_name' => $commandInfo->getMethodName(),
- 'mtime' => filemtime($path),
- ];
-
- // If this is a valid method / hook, then add more information.
- if ($commandInfo->valid()) {
- $info += [
- 'name' => $commandInfo->getName(),
- 'description' => $commandInfo->getDescription(),
- 'help' => $commandInfo->getHelp(),
- 'aliases' => $commandInfo->getAliases(),
- 'annotations' => $commandInfo->getRawAnnotations()->getArrayCopy(),
- 'example_usages' => $commandInfo->getExampleUsages(),
- 'return_type' => $commandInfo->getReturnType(),
- ];
- $info['arguments'] = $this->serializeDefaultsWithDescriptions($commandInfo->arguments());
- $info['options'] = $this->serializeDefaultsWithDescriptions($commandInfo->options());
- }
-
- return $info;
- }
-
- protected function serializeDefaultsWithDescriptions(DefaultsWithDescriptions $defaults)
- {
- $result = [];
- foreach ($defaults->getValues() as $key => $val) {
- $result[$key] = [
- 'description' => $defaults->getDescription($key),
- ];
- if ($defaults->hasDefault($key)) {
- $result[$key]['default'] = $val;
- }
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/DefaultsWithDescriptions.php b/vendor/consolidation/annotated-command/src/Parser/DefaultsWithDescriptions.php
deleted file mode 100644
index d37fc51b1..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/DefaultsWithDescriptions.php
+++ /dev/null
@@ -1,162 +0,0 @@
-values = $values;
- $this->hasDefault = array_filter($this->values, function ($value) {
- return isset($value);
- });
- $this->descriptions = [];
- $this->defaultDefault = $defaultDefault;
- }
-
- /**
- * Return just the key : default values mapping
- *
- * @return array
- */
- public function getValues()
- {
- return $this->values;
- }
-
- /**
- * Return true if this set of options is empty
- *
- * @return
- */
- public function isEmpty()
- {
- return empty($this->values);
- }
-
- /**
- * Check to see whether the speicifed key exists in the collection.
- *
- * @param string $key
- * @return boolean
- */
- public function exists($key)
- {
- return array_key_exists($key, $this->values);
- }
-
- /**
- * Get the value of one entry.
- *
- * @param string $key The key of the item.
- * @return string
- */
- public function get($key)
- {
- if (array_key_exists($key, $this->values)) {
- return $this->values[$key];
- }
- return $this->defaultDefault;
- }
-
- /**
- * Get the description of one entry.
- *
- * @param string $key The key of the item.
- * @return string
- */
- public function getDescription($key)
- {
- if (array_key_exists($key, $this->descriptions)) {
- return $this->descriptions[$key];
- }
- return '';
- }
-
- /**
- * Add another argument to this command.
- *
- * @param string $key Name of the argument.
- * @param string $description Help text for the argument.
- * @param mixed $defaultValue The default value for the argument.
- */
- public function add($key, $description = '', $defaultValue = null)
- {
- if (!$this->exists($key) || isset($defaultValue)) {
- $this->values[$key] = isset($defaultValue) ? $defaultValue : $this->defaultDefault;
- }
- unset($this->descriptions[$key]);
- if (!empty($description)) {
- $this->descriptions[$key] = $description;
- }
- }
-
- /**
- * Change the default value of an entry.
- *
- * @param string $key
- * @param mixed $defaultValue
- */
- public function setDefaultValue($key, $defaultValue)
- {
- $this->values[$key] = $defaultValue;
- $this->hasDefault[$key] = true;
- return $this;
- }
-
- /**
- * Check to see if the named argument definitively has a default value.
- *
- * @param string $key
- * @return bool
- */
- public function hasDefault($key)
- {
- return array_key_exists($key, $this->hasDefault);
- }
-
- /**
- * Remove an entry
- *
- * @param string $key The entry to remove
- */
- public function clear($key)
- {
- unset($this->values[$key]);
- unset($this->descriptions[$key]);
- }
-
- /**
- * Rename an existing option to something else.
- */
- public function rename($oldName, $newName)
- {
- $this->add($newName, $this->getDescription($oldName), $this->get($oldName));
- $this->clear($oldName);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/Internal/BespokeDocBlockParser.php b/vendor/consolidation/annotated-command/src/Parser/Internal/BespokeDocBlockParser.php
deleted file mode 100644
index 964d411a8..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/Internal/BespokeDocBlockParser.php
+++ /dev/null
@@ -1,347 +0,0 @@
- 'processCommandTag',
- 'name' => 'processCommandTag',
- 'arg' => 'processArgumentTag',
- 'param' => 'processParamTag',
- 'return' => 'processReturnTag',
- 'option' => 'processOptionTag',
- 'default' => 'processDefaultTag',
- 'aliases' => 'processAliases',
- 'usage' => 'processUsageTag',
- 'description' => 'processAlternateDescriptionTag',
- 'desc' => 'processAlternateDescriptionTag',
- ];
-
- public function __construct(CommandInfo $commandInfo, \ReflectionMethod $reflection, $fqcnCache = null)
- {
- $this->commandInfo = $commandInfo;
- $this->reflection = $reflection;
- $this->fqcnCache = $fqcnCache ?: new FullyQualifiedClassCache();
- }
-
- /**
- * Parse the docBlock comment for this command, and set the
- * fields of this class with the data thereby obtained.
- */
- public function parse()
- {
- $doc = $this->reflection->getDocComment();
- $this->parseDocBlock($doc);
- }
-
- /**
- * Save any tag that we do not explicitly recognize in the
- * 'otherAnnotations' map.
- */
- protected function processGenericTag($tag)
- {
- $this->commandInfo->addAnnotation($tag->getTag(), $tag->getContent());
- }
-
- /**
- * Set the name of the command from a @command or @name annotation.
- */
- protected function processCommandTag($tag)
- {
- if (!$tag->hasWordAndDescription($matches)) {
- throw new \Exception('Could not determine command name from tag ' . (string)$tag);
- }
- $commandName = $matches['word'];
- $this->commandInfo->setName($commandName);
- // We also store the name in the 'other annotations' so that is is
- // possible to determine if the method had a @command annotation.
- $this->commandInfo->addAnnotation($tag->getTag(), $commandName);
- }
-
- /**
- * The @description and @desc annotations may be used in
- * place of the synopsis (which we call 'description').
- * This is discouraged.
- *
- * @deprecated
- */
- protected function processAlternateDescriptionTag($tag)
- {
- $this->commandInfo->setDescription($tag->getContent());
- }
-
- /**
- * Store the data from a @param annotation in our argument descriptions.
- */
- protected function processParamTag($tag)
- {
- if ($tag->hasTypeVariableAndDescription($matches)) {
- if ($this->ignoredParamType($matches['type'])) {
- return;
- }
- }
- return $this->processArgumentTag($tag);
- }
-
- protected function ignoredParamType($paramType)
- {
- // TODO: We should really only allow a couple of types here,
- // e.g. 'string', 'array', 'bool'. Blacklist things we do not
- // want for now to avoid breaking commands with weird types.
- // Fix in the next major version.
- //
- // This works:
- // return !in_array($paramType, ['string', 'array', 'integer', 'bool']);
- return preg_match('#(InputInterface|OutputInterface)$#', $paramType);
- }
-
- /**
- * Store the data from a @arg annotation in our argument descriptions.
- */
- protected function processArgumentTag($tag)
- {
- if (!$tag->hasVariable($matches)) {
- throw new \Exception('Could not determine argument name from tag ' . (string)$tag);
- }
- if ($matches['variable'] == $this->optionParamName()) {
- return;
- }
- $this->addOptionOrArgumentTag($tag, $this->commandInfo->arguments(), $matches['variable'], $matches['description']);
- }
-
- /**
- * Store the data from an @option annotation in our option descriptions.
- */
- protected function processOptionTag($tag)
- {
- if (!$tag->hasVariable($matches)) {
- throw new \Exception('Could not determine option name from tag ' . (string)$tag);
- }
- $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $matches['variable'], $matches['description']);
- }
-
- protected function addOptionOrArgumentTag($tag, DefaultsWithDescriptions $set, $name, $description)
- {
- $variableName = $this->commandInfo->findMatchingOption($name);
- $description = static::removeLineBreaks($description);
- $set->add($variableName, $description);
- }
-
- /**
- * Store the data from a @default annotation in our argument or option store,
- * as appropriate.
- */
- protected function processDefaultTag($tag)
- {
- if (!$tag->hasVariable($matches)) {
- throw new \Exception('Could not determine parameter name for default value from tag ' . (string)$tag);
- }
- $variableName = $matches['variable'];
- $defaultValue = $this->interpretDefaultValue($matches['description']);
- if ($this->commandInfo->arguments()->exists($variableName)) {
- $this->commandInfo->arguments()->setDefaultValue($variableName, $defaultValue);
- return;
- }
- $variableName = $this->commandInfo->findMatchingOption($variableName);
- if ($this->commandInfo->options()->exists($variableName)) {
- $this->commandInfo->options()->setDefaultValue($variableName, $defaultValue);
- }
- }
-
- /**
- * Store the data from a @usage annotation in our example usage list.
- */
- protected function processUsageTag($tag)
- {
- $lines = explode("\n", $tag->getContent());
- $usage = trim(array_shift($lines));
- $description = static::removeLineBreaks(implode("\n", array_map(function ($line) {
- return trim($line);
- }, $lines)));
-
- $this->commandInfo->setExampleUsage($usage, $description);
- }
-
- /**
- * Process the comma-separated list of aliases
- */
- protected function processAliases($tag)
- {
- $this->commandInfo->setAliases((string)$tag->getContent());
- }
-
- /**
- * Store the data from a @return annotation in our argument descriptions.
- */
- protected function processReturnTag($tag)
- {
- // The return type might be a variable -- '$this'. It will
- // usually be a type, like RowsOfFields, or \Namespace\RowsOfFields.
- if (!$tag->hasVariableAndDescription($matches)) {
- throw new \Exception('Could not determine return type from tag ' . (string)$tag);
- }
- // Look at namespace and `use` statments to make returnType a fqdn
- $returnType = $matches['variable'];
- $returnType = $this->findFullyQualifiedClass($returnType);
- $this->commandInfo->setReturnType($returnType);
- }
-
- protected function findFullyQualifiedClass($className)
- {
- if (strpos($className, '\\') !== false) {
- return $className;
- }
-
- return $this->fqcnCache->qualify($this->reflection->getFileName(), $className);
- }
-
- private function parseDocBlock($doc)
- {
- // Remove the leading /** and the trailing */
- $doc = preg_replace('#^\s*/\*+\s*#', '', $doc);
- $doc = preg_replace('#\s*\*+/\s*#', '', $doc);
-
- // Nothing left? Exit.
- if (empty($doc)) {
- return;
- }
-
- $tagFactory = new TagFactory();
- $lines = [];
-
- foreach (explode("\n", $doc) as $row) {
- // Remove trailing whitespace and leading space + '*'s
- $row = rtrim($row);
- $row = preg_replace('#^[ \t]*\**#', '', $row);
-
- if (!$tagFactory->parseLine($row)) {
- $lines[] = $row;
- }
- }
-
- $this->processDescriptionAndHelp($lines);
- $this->processAllTags($tagFactory->getTags());
- }
-
- protected function processDescriptionAndHelp($lines)
- {
- // Trim all of the lines individually.
- $lines =
- array_map(
- function ($line) {
- return trim($line);
- },
- $lines
- );
-
- // Everything up to the first blank line goes in the description.
- $description = array_shift($lines);
- while ($this->nextLineIsNotEmpty($lines)) {
- $description .= ' ' . array_shift($lines);
- }
-
- // Everything else goes in the help.
- $help = trim(implode("\n", $lines));
-
- $this->commandInfo->setDescription($description);
- $this->commandInfo->setHelp($help);
- }
-
- protected function nextLineIsNotEmpty($lines)
- {
- if (empty($lines)) {
- return false;
- }
-
- $nextLine = trim($lines[0]);
- return !empty($nextLine);
- }
-
- protected function processAllTags($tags)
- {
- // Iterate over all of the tags, and process them as necessary.
- foreach ($tags as $tag) {
- $processFn = [$this, 'processGenericTag'];
- if (array_key_exists($tag->getTag(), $this->tagProcessors)) {
- $processFn = [$this, $this->tagProcessors[$tag->getTag()]];
- }
- $processFn($tag);
- }
- }
-
- protected function lastParameterName()
- {
- $params = $this->commandInfo->getParameters();
- $param = end($params);
- if (!$param) {
- return '';
- }
- return $param->name;
- }
-
- /**
- * Return the name of the last parameter if it holds the options.
- */
- public function optionParamName()
- {
- // Remember the name of the last parameter, if it holds the options.
- // We will use this information to ignore @param annotations for the options.
- if (!isset($this->optionParamName)) {
- $this->optionParamName = '';
- $options = $this->commandInfo->options();
- if (!$options->isEmpty()) {
- $this->optionParamName = $this->lastParameterName();
- }
- }
-
- return $this->optionParamName;
- }
-
- protected function interpretDefaultValue($defaultValue)
- {
- $defaults = [
- 'null' => null,
- 'true' => true,
- 'false' => false,
- "''" => '',
- '[]' => [],
- ];
- foreach ($defaults as $defaultName => $defaultTypedValue) {
- if ($defaultValue == $defaultName) {
- return $defaultTypedValue;
- }
- }
- return $defaultValue;
- }
-
- /**
- * Given a list that might be 'a b c' or 'a, b, c' or 'a,b,c',
- * convert the data into the last of these forms.
- */
- protected static function convertListToCommaSeparated($text)
- {
- return preg_replace('#[ \t\n\r,]+#', ',', $text);
- }
-
- /**
- * Take a multiline description and convert it into a single
- * long unbroken line.
- */
- protected static function removeLineBreaks($text)
- {
- return trim(preg_replace('#[ \t\n\r]+#', ' ', $text));
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParserFactory.php b/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParserFactory.php
deleted file mode 100644
index 3421b7493..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParserFactory.php
+++ /dev/null
@@ -1,20 +0,0 @@
-parse();
- }
-
- private static function create(CommandInfo $commandInfo, \ReflectionMethod $reflection)
- {
- return new BespokeDocBlockParser($commandInfo, $reflection);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/Internal/CsvUtils.php b/vendor/consolidation/annotated-command/src/Parser/Internal/CsvUtils.php
deleted file mode 100644
index 88ed3891f..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/Internal/CsvUtils.php
+++ /dev/null
@@ -1,49 +0,0 @@
-[^\s$]+)[\s]*';
- const VARIABLE_REGEX = '\\$(?P[^\s$]+)[\s]*';
- const VARIABLE_OR_WORD_REGEX = '\\$?(?P[^\s$]+)[\s]*';
- const TYPE_REGEX = '(?P[^\s$]+)[\s]*';
- const WORD_REGEX = '(?P[^\s$]+)[\s]*';
- const DESCRIPTION_REGEX = '(?P.*)';
- const IS_TAG_REGEX = '/^[*\s]*@/';
-
- /**
- * Check if the provided string begins with a tag
- * @param string $subject
- * @return bool
- */
- public static function isTag($subject)
- {
- return preg_match(self::IS_TAG_REGEX, $subject);
- }
-
- /**
- * Use a regular expression to separate the tag from the content.
- *
- * @param string $subject
- * @param string[] &$matches Sets $matches['tag'] and $matches['description']
- * @return bool
- */
- public static function splitTagAndContent($subject, &$matches)
- {
- $regex = '/' . self::TAG_REGEX . self::DESCRIPTION_REGEX . '/s';
- return preg_match($regex, $subject, $matches);
- }
-
- /**
- * DockblockTag constructor
- */
- public function __construct($tag, $content = null)
- {
- $this->tag = $tag;
- $this->content = $content;
- }
-
- /**
- * Add more content onto a tag during parsing.
- */
- public function appendContent($line)
- {
- $this->content .= "\n$line";
- }
-
- /**
- * Return the tag - e.g. "@foo description" returns 'foo'
- *
- * @return string
- */
- public function getTag()
- {
- return $this->tag;
- }
-
- /**
- * Return the content portion of the tag - e.g. "@foo bar baz boz" returns
- * "bar baz boz"
- *
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
-
- /**
- * Convert tag back into a string.
- */
- public function __toString()
- {
- return '@' . $this->getTag() . ' ' . $this->getContent();
- }
-
- /**
- * Determine if tag is one of:
- * - "@tag variable description"
- * - "@tag $variable description"
- * - "@tag type $variable description"
- *
- * @param string $subject
- * @param string[] &$matches Sets $matches['variable'] and
- * $matches['description']; might set $matches['type'].
- * @return bool
- */
- public function hasVariable(&$matches)
- {
- return
- $this->hasTypeVariableAndDescription($matches) ||
- $this->hasVariableAndDescription($matches);
- }
-
- /**
- * Determine if tag is "@tag $variable description"
- * @param string $subject
- * @param string[] &$matches Sets $matches['variable'] and
- * $matches['description']
- * @return bool
- */
- public function hasVariableAndDescription(&$matches)
- {
- $regex = '/^\s*' . self::VARIABLE_OR_WORD_REGEX . self::DESCRIPTION_REGEX . '/s';
- return preg_match($regex, $this->getContent(), $matches);
- }
-
- /**
- * Determine if tag is "@tag type $variable description"
- *
- * @param string $subject
- * @param string[] &$matches Sets $matches['variable'],
- * $matches['description'] and $matches['type'].
- * @return bool
- */
- public function hasTypeVariableAndDescription(&$matches)
- {
- $regex = '/^\s*' . self::TYPE_REGEX . self::VARIABLE_REGEX . self::DESCRIPTION_REGEX . '/s';
- return preg_match($regex, $this->getContent(), $matches);
- }
-
- /**
- * Determine if tag is "@tag word description"
- * @param string $subject
- * @param string[] &$matches Sets $matches['word'] and
- * $matches['description']
- * @return bool
- */
- public function hasWordAndDescription(&$matches)
- {
- $regex = '/^\s*' . self::WORD_REGEX . self::DESCRIPTION_REGEX . '/s';
- return preg_match($regex, $this->getContent(), $matches);
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/Internal/FullyQualifiedClassCache.php b/vendor/consolidation/annotated-command/src/Parser/Internal/FullyQualifiedClassCache.php
deleted file mode 100644
index b247e9da0..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/Internal/FullyQualifiedClassCache.php
+++ /dev/null
@@ -1,106 +0,0 @@
-primeCache($filename, $className);
- return $this->cached($filename, $className);
- }
-
- protected function cached($filename, $className)
- {
- return isset($this->classCache[$filename][$className]) ? $this->classCache[$filename][$className] : $className;
- }
-
- protected function primeCache($filename, $className)
- {
- // If the cache has already been primed, do no further work
- if (isset($this->namespaceCache[$filename])) {
- return false;
- }
-
- $handle = fopen($filename, "r");
- if (!$handle) {
- return false;
- }
-
- $namespaceName = $this->primeNamespaceCache($filename, $handle);
- $this->primeUseCache($filename, $handle);
-
- // If there is no 'use' statement for the className, then
- // generate an effective classname from the namespace
- if (!isset($this->classCache[$filename][$className])) {
- $this->classCache[$filename][$className] = $namespaceName . '\\' . $className;
- }
-
- fclose($handle);
- }
-
- protected function primeNamespaceCache($filename, $handle)
- {
- $namespaceName = $this->readNamespace($handle);
- if (!$namespaceName) {
- return false;
- }
- $this->namespaceCache[$filename] = $namespaceName;
- return $namespaceName;
- }
-
- protected function primeUseCache($filename, $handle)
- {
- $usedClasses = $this->readUseStatements($handle);
- if (empty($usedClasses)) {
- return false;
- }
- $this->classCache[$filename] = $usedClasses;
- }
-
- protected function readNamespace($handle)
- {
- $namespaceRegex = '#^\s*namespace\s+#';
- $line = $this->readNextRelevantLine($handle);
- if (!$line || !preg_match($namespaceRegex, $line)) {
- return false;
- }
-
- $namespaceName = preg_replace($namespaceRegex, '', $line);
- $namespaceName = rtrim($namespaceName, ';');
- return $namespaceName;
- }
-
- protected function readUseStatements($handle)
- {
- $useRegex = '#^\s*use\s+#';
- $result = [];
- while (true) {
- $line = $this->readNextRelevantLine($handle);
- if (!$line || !preg_match($useRegex, $line)) {
- return $result;
- }
- $usedClass = preg_replace($useRegex, '', $line);
- $usedClass = rtrim($usedClass, ';');
- $unqualifiedClass = preg_replace('#.*\\\\#', '', $usedClass);
- // If this is an aliased class, 'use \Foo\Bar as Baz', then adjust
- if (strpos($usedClass, ' as ')) {
- $unqualifiedClass = preg_replace('#.*\sas\s+#', '', $usedClass);
- $usedClass = preg_replace('#[a-zA-Z0-9]+\s+as\s+#', '', $usedClass);
- }
- $result[$unqualifiedClass] = $usedClass;
- }
- }
-
- protected function readNextRelevantLine($handle)
- {
- while (($line = fgets($handle)) !== false) {
- if (preg_match('#^\s*\w#', $line)) {
- return trim($line);
- }
- }
- return false;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/Parser/Internal/TagFactory.php b/vendor/consolidation/annotated-command/src/Parser/Internal/TagFactory.php
deleted file mode 100644
index 4c48679d5..000000000
--- a/vendor/consolidation/annotated-command/src/Parser/Internal/TagFactory.php
+++ /dev/null
@@ -1,67 +0,0 @@
-current = null;
- $this->tags = [];
- }
-
- public function parseLine($line)
- {
- if (DocblockTag::isTag($line)) {
- return $this->createTag($line);
- }
- if (empty($line)) {
- return $this->storeCurrentTag();
- }
- return $this->accumulateContent($line);
- }
-
- public function getTags()
- {
- $this->storeCurrentTag();
- return $this->tags;
- }
-
- protected function createTag($line)
- {
- DocblockTag::splitTagAndContent($line, $matches);
- $this->storeCurrentTag();
- $this->current = new DocblockTag($matches['tag'], $matches['description']);
- return true;
- }
-
- protected function storeCurrentTag()
- {
- if (!$this->current) {
- return false;
- }
- $this->tags[] = $this->current;
- $this->current = false;
- return true;
- }
-
- protected function accumulateContent($line)
- {
- if (!$this->current) {
- return false;
- }
- $this->current->appendContent($line);
- return true;
- }
-}
diff --git a/vendor/consolidation/annotated-command/src/ResultWriter.php b/vendor/consolidation/annotated-command/src/ResultWriter.php
deleted file mode 100644
index a256384e8..000000000
--- a/vendor/consolidation/annotated-command/src/ResultWriter.php
+++ /dev/null
@@ -1,210 +0,0 @@
-formatterManager = $formatterManager;
- return $this;
- }
-
- /**
- * Return the formatter manager
- * @return FormatterManager
- */
- public function formatterManager()
- {
- return $this->formatterManager;
- }
-
- public function setDisplayErrorFunction(callable $fn)
- {
- $this->displayErrorFunction = $fn;
- return $this;
- }
-
- /**
- * Handle the result output and status code calculation.
- */
- public function handle(OutputInterface $output, $result, CommandData $commandData, $statusCodeDispatcher = null, $extractDispatcher = null)
- {
- // A little messy, for backwards compatibility: if the result implements
- // ExitCodeInterface, then use that as the exit code. If a status code
- // dispatcher returns a non-zero result, then we will never print a
- // result.
- $status = null;
- if ($result instanceof ExitCodeInterface) {
- $status = $result->getExitCode();
- } elseif (isset($statusCodeDispatcher)) {
- $status = $statusCodeDispatcher->determineStatusCode($result);
- if (isset($status) && ($status != 0)) {
- return $status;
- }
- }
- // If the result is an integer and no separate status code was provided, then use the result as the status and do no output.
- if (is_integer($result) && !isset($status)) {
- return $result;
- }
- $status = $this->interpretStatusCode($status);
-
- // Get the structured output, the output stream and the formatter
- $structuredOutput = $result;
- if (isset($extractDispatcher)) {
- $structuredOutput = $extractDispatcher->extractOutput($result);
- }
- if (($status != 0) && is_string($structuredOutput)) {
- $output = $this->chooseOutputStream($output, $status);
- return $this->writeErrorMessage($output, $status, $structuredOutput, $result);
- }
- if ($this->dataCanBeFormatted($structuredOutput) && isset($this->formatterManager)) {
- return $this->writeUsingFormatter($output, $structuredOutput, $commandData, $status);
- }
- return $this->writeCommandOutput($output, $structuredOutput, $status);
- }
-
- protected function dataCanBeFormatted($structuredOutput)
- {
- if (!isset($this->formatterManager)) {
- return false;
- }
- return
- is_object($structuredOutput) ||
- is_array($structuredOutput);
- }
-
- /**
- * Determine the formatter that should be used to render
- * output.
- *
- * If the user specified a format via the --format option,
- * then always return that. Otherwise, return the default
- * format, unless --pipe was specified, in which case
- * return the default pipe format, format-pipe.
- *
- * n.b. --pipe is a handy option introduced in Drush 2
- * (or perhaps even Drush 1) that indicates that the command
- * should select the output format that is most appropriate
- * for use in scripts (e.g. to pipe to another command).
- *
- * @return string
- */
- protected function getFormat(FormatterOptions $options)
- {
- // In Symfony Console, there is no way for us to differentiate
- // between the user specifying '--format=table', and the user
- // not specifying --format when the default value is 'table'.
- // Therefore, we must make --field always override --format; it
- // cannot become the default value for --format.
- if ($options->get('field')) {
- return 'string';
- }
- $defaults = [];
- if ($options->get('pipe')) {
- return $options->get('pipe-format', [], 'tsv');
- }
- return $options->getFormat($defaults);
- }
-
- /**
- * Determine whether we should use stdout or stderr.
- */
- protected function chooseOutputStream(OutputInterface $output, $status)
- {
- // If the status code indicates an error, then print the
- // result to stderr rather than stdout
- if ($status && ($output instanceof ConsoleOutputInterface)) {
- return $output->getErrorOutput();
- }
- return $output;
- }
-
- /**
- * Call the formatter to output the provided data.
- */
- protected function writeUsingFormatter(OutputInterface $output, $structuredOutput, CommandData $commandData, $status = 0)
- {
- $formatterOptions = $commandData->formatterOptions();
- $format = $this->getFormat($formatterOptions);
- $this->formatterManager->write(
- $output,
- $format,
- $structuredOutput,
- $formatterOptions
- );
- return $status;
- }
-
- /**
- * Description
- * @param OutputInterface $output
- * @param int $status
- * @param string $structuredOutput
- * @param mixed $originalResult
- * @return type
- */
- protected function writeErrorMessage($output, $status, $structuredOutput, $originalResult)
- {
- if (isset($this->displayErrorFunction)) {
- call_user_func($this->displayErrorFunction, $output, $structuredOutput, $status, $originalResult);
- } else {
- $this->writeCommandOutput($output, $structuredOutput);
- }
- return $status;
- }
-
- /**
- * If the result object is a string, then print it.
- */
- protected function writeCommandOutput(
- OutputInterface $output,
- $structuredOutput,
- $status = 0
- ) {
- // If there is no formatter, we will print strings,
- // but can do no more than that.
- if (is_string($structuredOutput)) {
- $output->writeln($structuredOutput);
- }
- return $status;
- }
-
- /**
- * If a status code was set, then return it; otherwise,
- * presume success.
- */
- protected function interpretStatusCode($status)
- {
- if (isset($status)) {
- return $status;
- }
- return 0;
- }
-}
diff --git a/vendor/consolidation/config/.editorconfig b/vendor/consolidation/config/.editorconfig
deleted file mode 100644
index 095771e67..000000000
--- a/vendor/consolidation/config/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[**.php]
-indent_style = space
-indent_size = 4
-
diff --git a/vendor/consolidation/config/CHANGELOG.md b/vendor/consolidation/config/CHANGELOG.md
deleted file mode 100644
index 1fd965e2c..000000000
--- a/vendor/consolidation/config/CHANGELOG.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# Changelog
-
-### 1.0.11 2018-05-26
-
-* BUGFIX: Ensure that duplicate keys added to different contexts in a config overlay only appear once in the final export. (#21)
-
-### 1.0.10 2018-05-25
-
-* Rename g-1-a/composer-test-scenarios to g1a/composer-test-scenarios (#20)
-
-### 1.0.9 2017-12-22
-
-* Make yaml component optional. (#17)
-
-### 1.0.8 2017-12-16
-
-* Use test scenarios to test multiple versions of Symfony. (#14) & (#15)
-* Fix defaults to work with DotAccessData by thomscode (#13)
-
-### 1.0.7 2017-10-24
-
-* Deprecate Config::import(); recommand Config::replace() instead.
-
-### 1.0.6 10/17/2017
-
-* Add a 'Config::combine()' method for importing without overwriting.
-* Factor out ArrayUtil as a reusable utility class.
-
-### 1.0.4 10/16/2017
-
-* BUGFIX: Go back to injecting boolean options only if their value is 'true'.
-
-### 1.0.3 10/04/2017
-
-* Add an EnvConfig utility class.
-* BUGFIX: Fix bug in envKey calculation: it was missing its prefix.
-* BUGFIX: Export must always return something.
-* BUGFIX: Pass reference array through to Expander class.
-
-### 1.0.2 09/16/2017
-
-* BUGFIX: Allow global boolean options to have either `true` or `false` initial values.
-
-### 1.0.1 07/28/2017
-
-* Inject default values into InputOption objects when 'help' command executed.
-
-### 1.0.0 06/28/2017
-
-* Initial release
-
diff --git a/vendor/consolidation/config/CONTRIBUTING.md b/vendor/consolidation/config/CONTRIBUTING.md
deleted file mode 100644
index 006062d50..000000000
--- a/vendor/consolidation/config/CONTRIBUTING.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Contributing to Consolidation
-
-Thank you for your interest in contributing to the Consolidation effort! Consolidation aims to provide reusable, loosely-coupled components useful for building command-line tools. Consolidation is built on top of Symfony Console, but aims to separate the tool from the implementation details of Symfony.
-
-Here are some of the guidelines you should follow to make the most of your efforts:
-
-## Code Style Guidelines
-
-Consolidation adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code.
-
-## Pull Request Guidelines
-
-Every pull request is run through:
-
- - phpcs -n --standard=PSR2 src
- - phpunit
- - [Scrutinizer](https://scrutinizer-ci.com/g/consolidation/config/)
-
-It is easy to run the unit tests and code sniffer locally; just run:
-
- - composer cs
-
-To run the code beautifier, which will fix many of the problems reported by phpcs:
-
- - composer cbf
-
-These two commands (`composer cs` and `composer cbf`) are defined in the `scripts` section of [composer.json](composer.json).
-
-After submitting a pull request, please examine the Scrutinizer report. It is not required to fix all Scrutinizer issues; you may ignore recommendations that you disagree with. The spacing patches produced by Scrutinizer do not conform to PSR2 standards, and therefore should never be applied. DocBlock patches may be applied at your discression. Things that Scrutinizer identifies as a bug nearly always need to be addressed.
-
-Pull requests must pass phpcs and phpunit in order to be merged; ideally, new functionality will also include new unit tests.
diff --git a/vendor/consolidation/config/LICENSE b/vendor/consolidation/config/LICENSE
deleted file mode 100644
index cecf81d77..000000000
--- a/vendor/consolidation/config/LICENSE
+++ /dev/null
@@ -1,8 +0,0 @@
-Copyright (c) 2017 Consolidation Developers
-
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/consolidation/config/README.md b/vendor/consolidation/config/README.md
deleted file mode 100644
index 7108cd6ec..000000000
--- a/vendor/consolidation/config/README.md
+++ /dev/null
@@ -1,224 +0,0 @@
-# Consolidation\Config
-
-Manage configuration for a commandline tool.
-
-[![Travis CI](https://travis-ci.org/consolidation/config.svg?branch=master)](https://travis-ci.org/consolidation/config)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/consolidation/config/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/consolidation/config/?branch=master)
-[![Coverage Status](https://coveralls.io/repos/github/consolidation/config/badge.svg?branch=master)](https://coveralls.io/github/consolidation/config?branch=master)
-[![License](https://poser.pugx.org/consolidation/config/license)](https://packagist.org/packages/consolidation/config)
-
-This component is designed to provide the components needed to manage configuration options from different sources, including:
-
-- Commandline options
-- Configuration files
-- Alias files (special configuration files that identify a specific target site)
-- Default values (provided by command)
-
-Symfony Console is used to provide the framework for the commandline tool, and the Symfony Configuration component is used to load and merge configuration files. This project provides the glue that binds the components together in an easy-to-use package.
-
-If your goal is to be able to quickly write configurable commandline tools, you might want to consider using [Robo as a Framework](https://robo.li/framework), as the work for setting up this component is already done in that project. Consolidation/Config may be used with any Symfony Console application, though.
-
-## Component Status
-
-In use in Robo (1.x), Terminus (1.x) and Drush (9.x).
-
-## Motivation
-
-Provide a simple Config class that can be injected where needed to provide configuration values in non-command classes, and make configuration settings a no-op for command classes by automatically initializing the Input object from configuration as needed.
-
-## Configuration File Usage
-
-Configuration files are simple hierarchical yaml files.
-
-### Providing Command Options
-
-Command options are defined by creating an entry for each command name under the `command:` section of the configuration file. The options for the command should be defined within an `options:` section. For example, to set a configuration value `red` for the option `--color` in the `example` command:
-```
-command:
- example:
- options:
- color: red
-```
-If a command name contains a `:`, then each section of the command name defines another level of heirarchy in the command option configuration. For example, to set a configuration value `George` for the option `--name` of the command `my:foo`:
-```
-command:
- my:
- foo:
- options:
- name: George
-```
-Furthermore, every level of the command name heirarchy may contain options. For example, to define a configuration value for the option `--dir` for any command that begins with `my:`:
-```
-command:
- my:
- options:
- dir: '/base/path'
- foo:
- options:
- name: George
- bar:
- options:
- priority: high
-```
-
-### Providing Global Options
-
-If your Symfony Console application defines global options, like so (from a method in an extension of the Application class):
-```
-$this->getDefinition()
- ->addOption(
- new InputOption('--simulate', null, InputOption::VALUE_NONE, 'Run in simulated mode (show what would have happened).')
- );
-```
-Default values for global options can then be declared in the global options section:
-```
-options:
- simulate: false
-```
-If this is done, then global option values set on the command line will be used to alter the value of the configuration item at runtime. For example, `$config->get('options.simulate')` will return `false` when the `--simulate` global option is not used, and will return `true` when it is.
-
-See the section "Set Up Command Option Configuration Injection", below, for instructions on how to enable this setup.
-
-### Configuration Value Substitution
-
-It is possible to define values in a configuration file that will be substituted in wherever used. For example:
-```
-common:
- path: '/shared/path'
-command:
- my:
- options:
- dir: '${common.path}'
- foo:
- options:
- name: George
-```
-
-[grasmash/yaml-expander](https://github.com/grasmash/expander) is used to provide this capability.
-
-## API Usage
-
-The easiest way to utilize the capabilities of this project is to use [Robo as a framework](https://robo.li/framework) to create your commandline tools. Using Robo is optional, though, as this project will work with any Symfony Console application.
-
-### Load Configuration Files with Provided Loader
-
-Consolidation/config includes a built-in yaml loader / processor. To use it directly, use a YamlConfigLoader to load each of your configuration files, and a ConfigProcessor to merge them together. Then, export the result from the configuration processor, and import it into a Config object.
-```
-use Consolidation\Config\Config;
-use Consolidation\Config\YamlConfigLoader;
-use Consolidation\Config\ConfigProcessor;
-
-$config = new Config();
-$loader = new YamlConfigLoader();
-$processor = new ConfigProcessor();
-$processor->extend($loader->load('defaults.yml'));
-$processor->extend($loader->load('myconf.yml'));
-$config->import($processor->export());
-```
-
-### Set Up Command Option Configuration Injection
-
-The command option configuration feature described above in the section `Providing Command Options` is provided via a configuration injection class. All that you need to do to use this feature as attach this object to your Symfony Console application's event dispatcher:
-```
-$application = new Symfony\Component\Console\Application($name, $version);
-$configInjector = new \Consolidation\Config\Inject\ConfigForCommand($config);
-$configInjector->setApplication($application);
-
-$eventDispatcher = new \Symfony\Component\EventDispatcher\EventDispatcher();
-$eventDispatcher->addSubscriber($configInjector);
-$application->setDispatcher($eventDispatcher);
-```
-
-
-### Get Configuration Values
-
-If you have a configuration file that looks like this:
-```
-a:
- b:
- c: foo
-```
-Then you can fetch the value of the configuration option `c` via:
-```
-$value = $config->get('a.b.c');
-```
-[dflydev/dot-access-data](https://github.com/dflydev/dot-access-data) is leveraged to provide this capability.
-
-### Interpolation
-
-Interpolation allows configuration values to be injected into a string with tokens. The tokens are used as keys that are looked up in the config object; the resulting configuration values will be used to replace the tokens in the provided string.
-
-For example, using the same configuration file shown above:
-```
-$result = $config->interpolate('The value is: {{a.b.c}}')
-```
-In this example, the `$result` string would be:
-```
-The value is: foo
-```
-
-### Configuration Overlays
-
-Optionally, you may use the ConfigOverlay class to combine multiple configuration objects implamenting ConfigInterface into a single, prioritized configuration object. It is not necessary to use a configuration overlay; if your only goal is to merge configuration from multiple files, you may follow the example above to extend a processor with multiple configuration files, and then import the result into a single configuration object. This will cause newer configuration items to overwrite any existing values stored under the same key.
-
-A configuration overlay can achieve the same end result without overwriting any config values. The advantage of doing this is that different configuration overlays could be used to create separate "views" on different collections of configuration. A configuration overlay is also useful if you wish to temporarily override some configuration values, and then put things back the way they were by removing the overlay.
-```
-use Consolidation\Config\Config;
-use Consolidation\Config\YamlConfigLoader;
-use Consolidation\Config\ConfigProcessor;
-use Consolidation\Config\Util\ConfigOverlay;
-
-$config1 = new Config();
-$config2 = new Config();
-$loader = new YamlConfigLoader();
-$processor = new ConfigProcessor();
-$processor->extend($loader->load('c1.yml'));
-$config1->import($processor->export());
-$processor = new ConfigProcessor();
-$processor->extend($loader->load('c2.yml'));
-$config2->import($processor->export());
-
-$configOverlay = (new ConfigOverlay())
- ->addContext('one', $config1)
- ->addContext('two', $config2);
-
-$value = $configOverlay->get('key');
-
-$configOverlay->removeContext('two');
-
-$value = $configOverlay->get('key');
-```
-The first call to `$configOverlay->get('key')`, above, will return the value from `key` in `$config2`, if it exists, or from `$config1` otherwise. The second call to the same function, after `$config2` is removed, will only consider configuration values stored in `$config1`.
-
-## External Examples
-
-### Load Configuration Files with Symfony/Config
-
-The [Symfony Config](http://symfony.com/doc/current/components/config.html) component provides the capability to locate configuration file, load them from either YAML or XML sources, and validate that they match a certain defined schema. Classes to find configuration files are also available.
-
-If these features are needed, the results from `Symfony\Component\Config\Definition\Processor::processConfiguration()` may be provided directly to the `Consolidation\Config\Config::import()` method.
-
-### Use Configuration to Call Setter Methods
-
-[Robo](https://robo.li) provides a facility for configuration files to [define default values for task setter methods](http://robo.li/getting-started/#configuration-for-task-settings). This is done via the `ConfigForSetters::apply()` method.
-```
-$taskClass = static::configClassIdentifier($taskClass);
-$configurationApplier = new \Consolidation\Config\Inject\ConfigForSetters($this->getConfig(), $taskClass, 'task.');
-$configurationApplier->apply($task, 'settings');
-```
-The `configClassIdentifier` method converts `\`-separated class and namespace names into `.`-separated identifiers; it is provided by ConfigAwareTrait:
-```
-protected static function configClassIdentifier($classname)
-{
- $configIdentifier = strtr($classname, '\\', '.');
- $configIdentifier = preg_replace('#^(.*\.Task\.|\.)#', '', $configIdentifier);
-
- return $configIdentifier;
-}
-```
-A similar pattern may be used in other applications that may wish to inject values into objects using their setter methods.
-
-## Comparison to Existing Solutions
-
-Drush has an existing procedural mechanism for loading configuration values from multiple files, and overlaying the results in priority order. Command-specific options from configuration files and site aliases may also be applied.
-
diff --git a/vendor/consolidation/config/composer.json b/vendor/consolidation/config/composer.json
deleted file mode 100644
index d2587a8cb..000000000
--- a/vendor/consolidation/config/composer.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "name": "consolidation/config",
- "description": "Provide configuration services for a commandline tool.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload":{
- "psr-4":{
- "Consolidation\\Config\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "tests/src"
- }
- },
- "require": {
- "php": ">=5.4.0",
- "dflydev/dot-access-data": "^1.1.0",
- "grasmash/expander": "^1"
- },
- "require-dev": {
- "phpunit/phpunit": "^5",
- "g1a/composer-test-scenarios": "^1",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4",
- "satooshi/php-coveralls": "^1.0",
- "squizlabs/php_codesniffer": "2.*"
- },
- "suggest": {
- "symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "5.6"
- }
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "SHELL_INTERACTIVE=true phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "scenario": "scenarios/install",
- "post-update-cmd": [
- "create-scenario symfony4 'symfony/console:^4.0'",
- "create-scenario symfony2 'symfony/console:^2.8' 'phpunit/phpunit:^4' --platform-php '5.4' --no-lockfile"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/config/composer.lock b/vendor/consolidation/config/composer.lock
deleted file mode 100644
index 2693898f2..000000000
--- a/vendor/consolidation/config/composer.lock
+++ /dev/null
@@ -1,2231 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "dcc7263b0eaf52329ae98d72955e992e",
- "packages": [
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "grasmash/expander",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/expander.git",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\Expander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in PHP arrays file.",
- "time": "2017-12-21T22:14:55+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "1.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "240841a15f332750d5f0499371f880e9ea5b18cc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/240841a15f332750d5f0499371f880e9ea5b18cc",
- "reference": "240841a15f332750d5f0499371f880e9ea5b18cc",
- "shasum": ""
- },
- "bin": [
- "scripts/create-scenario",
- "scripts/dependency-licenses",
- "scripts/install-scenario"
- ],
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-03-07T21:36:05+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.9.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle3.git",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": "~2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "~1.3",
- "monolog/monolog": "~1.0",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "~1.0",
- "symfony/class-loader": "~2.1",
- "zendframework/zend-cache": "2.*,<2.3",
- "zendframework/zend-log": "2.*,<2.3"
- },
- "suggest": {
- "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.9-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2015-03-18T18:23:50+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "3.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-10T14:09:06+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
- },
- "require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
- },
- "suggest": {
- "ext-xdebug": "^2.5.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2017-04-02T07:44:40+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "5.7.27",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-02-01T05:50:59+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2017-06-30T09:13:00+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "satooshi/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "abandoned": "php-coveralls/php-coveralls",
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-11-26T07:53:53+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-11-19T08:54:04+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-02-18T15:18:39+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-11-19T07:33:16+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2017-05-22T02:43:20+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "7b08223b7f6abd859651c56bcabf900d1627d085"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/7b08223b7f6abd859651c56bcabf900d1627d085",
- "reference": "7b08223b7f6abd859651c56bcabf900d1627d085",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "d5a058ff6ecad26b30c1ba452241306ea34c65cc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/d5a058ff6ecad26b30c1ba452241306ea34c65cc",
- "reference": "d5a058ff6ecad26b30c1ba452241306ea34c65cc",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v2.8.44",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "84ae343f39947aa084426ed1138bb96bf94d1f12"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/84ae343f39947aa084426ed1138bb96bf94d1f12",
- "reference": "84ae343f39947aa084426ed1138bb96bf94d1f12",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "^2.0.5|~3.0.0",
- "symfony/dependency-injection": "~2.6|~3.0.0",
- "symfony/expression-language": "~2.6|~3.0.0",
- "symfony/stopwatch": "~2.3|~3.0.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T09:03:18+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "a59f917e3c5d82332514cb4538387638f5bde2d6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/a59f917e3c5d82332514cb4538387638f5bde2d6",
- "reference": "a59f917e3c5d82332514cb4538387638f5bde2d6",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "deda2765e8dab2fc38492e926ea690f2a681f59d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/deda2765e8dab2fc38492e926ea690f2a681f59d",
- "reference": "deda2765e8dab2fc38492e926ea690f2a681f59d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T10:03:52+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "810af2d35fc72b6cf5c01116806d2b65ccaaf2e2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/810af2d35fc72b6cf5c01116806d2b65ccaaf2e2",
- "reference": "810af2d35fc72b6cf5c01116806d2b65ccaaf2e2",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.6"
- }
-}
diff --git a/vendor/consolidation/config/phpunit.xml.dist b/vendor/consolidation/config/phpunit.xml.dist
deleted file mode 100644
index 90be6e2e6..000000000
--- a/vendor/consolidation/config/phpunit.xml.dist
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
- tests
-
-
-
-
-
-
-
-
- src
-
-
-
diff --git a/vendor/consolidation/config/src/Config.php b/vendor/consolidation/config/src/Config.php
deleted file mode 100644
index 3b9827f57..000000000
--- a/vendor/consolidation/config/src/Config.php
+++ /dev/null
@@ -1,160 +0,0 @@
-config = new Data($data);
- $this->setDefaults(new Data());
- }
-
- /**
- * {@inheritdoc}
- */
- public function has($key)
- {
- return ($this->config->has($key));
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($key, $defaultFallback = null)
- {
- if ($this->has($key)) {
- return $this->config->get($key);
- }
- return $this->getDefault($key, $defaultFallback);
- }
-
- /**
- * {@inheritdoc}
- */
- public function set($key, $value)
- {
- $this->config->set($key, $value);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function import($data)
- {
- return $this->replace($data);
- }
-
- /**
- * {@inheritdoc}
- */
- public function replace($data)
- {
- $this->config = new Data($data);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function combine($data)
- {
- if (!empty($data)) {
- $this->config->import($data, true);
- }
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function export()
- {
- return $this->config->export();
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasDefault($key)
- {
- return $this->getDefaults()->has($key);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getDefault($key, $defaultFallback = null)
- {
- return $this->hasDefault($key) ? $this->getDefaults()->get($key) : $defaultFallback;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDefault($key, $value)
- {
- $this->getDefaults()->set($key, $value);
- return $this;
- }
-
- /**
- * Return the class $defaults property and ensure it's a Data object
- * TODO: remove Data object validation in 2.0
- *
- * @return Data
- */
- protected function getDefaults()
- {
- // Ensure $this->defaults is a Data object (not an array)
- if (!$this->defaults instanceof Data) {
- $this->setDefaults($this->defaults);
- }
- return $this->defaults;
- }
-
- /**
- * Sets the $defaults class parameter
- * TODO: remove support for array in 2.0 as this would currently break backward compatibility
- *
- * @param Data|array $defaults
- *
- * @throws \Exception
- */
- protected function setDefaults($defaults)
- {
- if (is_array($defaults)) {
- $this->defaults = new Data($defaults);
- } elseif ($defaults instanceof Data) {
- $this->defaults = $defaults;
- } else {
- throw new \Exception("Unknown type provided for \$defaults");
- }
- }
-}
diff --git a/vendor/consolidation/config/src/ConfigInterface.php b/vendor/consolidation/config/src/ConfigInterface.php
deleted file mode 100644
index 5124ea1fc..000000000
--- a/vendor/consolidation/config/src/ConfigInterface.php
+++ /dev/null
@@ -1,105 +0,0 @@
- default-value
- */
- public function getGlobalOptionDefaultValues();
-}
diff --git a/vendor/consolidation/config/src/Inject/ConfigForCommand.php b/vendor/consolidation/config/src/Inject/ConfigForCommand.php
deleted file mode 100644
index ce2646e1b..000000000
--- a/vendor/consolidation/config/src/Inject/ConfigForCommand.php
+++ /dev/null
@@ -1,127 +0,0 @@
-config = $config;
- }
-
- public function setApplication(Application $application)
- {
- $this->application = $application;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'injectConfiguration'];
- }
-
- /**
- * Before a Console command runs, inject configuration settings
- * for this command into the default value of the options of
- * this command.
- *
- * @param \Symfony\Component\Console\Event\ConsoleCommandEvent $event
- */
- public function injectConfiguration(ConsoleCommandEvent $event)
- {
- $command = $event->getCommand();
- $this->injectConfigurationForGlobalOptions($event->getInput());
- $this->injectConfigurationForCommand($command, $event->getInput());
-
- $targetOfHelpCommand = $this->getHelpCommandTarget($command, $event->getInput());
- if ($targetOfHelpCommand) {
- $this->injectConfigurationForCommand($targetOfHelpCommand, $event->getInput());
- }
- }
-
- protected function injectConfigurationForGlobalOptions($input)
- {
- if (!$this->application) {
- return;
- }
-
- $configGroup = new ConfigFallback($this->config, 'options');
-
- $definition = $this->application->getDefinition();
- $options = $definition->getOptions();
-
- return $this->injectConfigGroupIntoOptions($configGroup, $options, $input);
- }
-
- protected function injectConfigurationForCommand($command, $input)
- {
- $commandName = $command->getName();
- $commandName = str_replace(':', '.', $commandName);
- $configGroup = new ConfigFallback($this->config, $commandName, 'command.', '.options.');
-
- $definition = $command->getDefinition();
- $options = $definition->getOptions();
-
- return $this->injectConfigGroupIntoOptions($configGroup, $options, $input);
- }
-
- protected function injectConfigGroupIntoOptions($configGroup, $options, $input)
- {
- foreach ($options as $option => $inputOption) {
- $key = str_replace('.', '-', $option);
- $value = $configGroup->get($key);
- if ($value !== null) {
- if (is_bool($value) && ($value == true)) {
- $input->setOption($key, $value);
- } elseif ($inputOption->acceptValue()) {
- $inputOption->setDefault($value);
- }
- }
- }
- }
-
- protected function getHelpCommandTarget($command, $input)
- {
- if (($command->getName() != 'help') || (!isset($this->application))) {
- return false;
- }
-
- $this->fixInputForSymfony2($command, $input);
-
- // Symfony Console helpfully swaps 'command_name' and 'command'
- // depending on whether the user entered `help foo` or `--help foo`.
- // One of these is always `help`, and the other is the command we
- // are actually interested in.
- $nameOfCommandToDescribe = $input->getArgument('command_name');
- if ($nameOfCommandToDescribe == 'help') {
- $nameOfCommandToDescribe = $input->getArgument('command');
- }
- return $this->application->find($nameOfCommandToDescribe);
- }
-
- protected function fixInputForSymfony2($command, $input)
- {
- // Symfony 3.x prepares $input for us; Symfony 2.x, on the other
- // hand, passes it in prior to binding with the command definition,
- // so we have to go to a little extra work. It may be inadvisable
- // to do these steps for commands other than 'help'.
- if (!$input->hasArgument('command_name')) {
- $command->ignoreValidationErrors();
- $command->mergeApplicationDefinition();
- $input->bind($command->getDefinition());
- }
- }
-}
diff --git a/vendor/consolidation/config/src/Inject/ConfigForSetters.php b/vendor/consolidation/config/src/Inject/ConfigForSetters.php
deleted file mode 100644
index 5ec870429..000000000
--- a/vendor/consolidation/config/src/Inject/ConfigForSetters.php
+++ /dev/null
@@ -1,47 +0,0 @@
-config = new ConfigMerge($config, $group, $prefix, $postfix);
- }
-
- public function apply($object, $configurationKey)
- {
- $settings = $this->config->get($configurationKey);
- foreach ($settings as $setterMethod => $args) {
- $fn = [$object, $setterMethod];
- if (is_callable($fn)) {
- $result = call_user_func_array($fn, (array)$args);
-
- // We require that $fn must only be used with setter methods.
- // Setter methods are required to always return $this so that
- // they may be chained. We will therefore throw an exception
- // for any setter that returns something else.
- if ($result != $object) {
- $methodDescription = get_class($object) . "::$setterMethod";
- $propertyDescription = $this->config->describe($configurationKey);
- throw new \Exception("$methodDescription did not return '\$this' when processing $propertyDescription.");
- }
- }
- }
- }
-}
diff --git a/vendor/consolidation/config/src/Loader/ConfigLoader.php b/vendor/consolidation/config/src/Loader/ConfigLoader.php
deleted file mode 100644
index ecc6f64f2..000000000
--- a/vendor/consolidation/config/src/Loader/ConfigLoader.php
+++ /dev/null
@@ -1,35 +0,0 @@
-source;
- }
-
- protected function setSourceName($source)
- {
- $this->source = $source;
- return $this;
- }
-
- public function export()
- {
- return $this->config;
- }
-
- public function keys()
- {
- return array_keys($this->config);
- }
-
- abstract public function load($path);
-}
diff --git a/vendor/consolidation/config/src/Loader/ConfigLoaderInterface.php b/vendor/consolidation/config/src/Loader/ConfigLoaderInterface.php
deleted file mode 100644
index 9b155c1b9..000000000
--- a/vendor/consolidation/config/src/Loader/ConfigLoaderInterface.php
+++ /dev/null
@@ -1,29 +0,0 @@
-expander = $expander ?: new Expander();
- }
-
- /**
- * By default, string config items always REPLACE, not MERGE when added
- * from different sources. This method will allow applications to alter
- * this behavior for specific items so that strings from multiple sources
- * will be merged together into an array instead.
- */
- public function useMergeStrategyForKeys($itemName)
- {
- if (is_array($itemName)) {
- $this->nameOfItemsToMerge = array_merge($this->nameOfItemsToMerge, $itemName);
- return $this;
- }
- $this->nameOfItemsToMerge[] = $itemName;
- return $this;
- }
-
- /**
- * Extend the configuration to be processed with the
- * configuration provided by the specified loader.
- *
- * @param ConfigLoaderInterface $loader
- */
- public function extend(ConfigLoaderInterface $loader)
- {
- return $this->addFromSource($loader->export(), $loader->getSourceName());
- }
-
- /**
- * Extend the configuration to be processed with
- * the provided nested array.
- *
- * @param array $data
- */
- public function add($data)
- {
- $this->unprocessedConfig[] = $data;
- return $this;
- }
-
- /**
- * Extend the configuration to be processed with
- * the provided nested array. Also record the name
- * of the data source, if applicable.
- *
- * @param array $data
- * @param string $source
- */
- protected function addFromSource($data, $source = '')
- {
- if (empty($source)) {
- return $this->add($data);
- }
- $this->unprocessedConfig[$source] = $data;
- return $this;
- }
-
- /**
- * Process all of the configuration that has been collected,
- * and return a nested array.
- *
- * @return array
- */
- public function export($referenceArray = [])
- {
- if (!empty($this->unprocessedConfig)) {
- $this->processedConfig = $this->process(
- $this->processedConfig,
- $this->fetchUnprocessed(),
- $referenceArray
- );
- }
- return $this->processedConfig;
- }
-
- /**
- * To aid in debugging: return the source of each configuration item.
- * n.b. Must call this function *before* export and save the result
- * if persistence is desired.
- */
- public function sources()
- {
- $sources = [];
- foreach ($this->unprocessedConfig as $sourceName => $config) {
- if (!empty($sourceName)) {
- $configSources = ArrayUtil::fillRecursive($config, $sourceName);
- $sources = ArrayUtil::mergeRecursiveDistinct($sources, $configSources);
- }
- }
- return $sources;
- }
-
- /**
- * Get the configuration to be processed, and clear out the
- * 'unprocessed' list.
- *
- * @return array
- */
- protected function fetchUnprocessed()
- {
- $toBeProcessed = $this->unprocessedConfig;
- $this->unprocessedConfig = [];
- return $toBeProcessed;
- }
-
- /**
- * Use a map-reduce to evaluate the items to be processed,
- * and merge them into the processed array.
- *
- * @param array $processed
- * @param array $toBeProcessed
- * @return array
- */
- protected function process(array $processed, array $toBeProcessed, $referenceArray = [])
- {
- $toBeReduced = array_map([$this, 'preprocess'], $toBeProcessed);
- $reduced = array_reduce($toBeReduced, [$this, 'reduceOne'], $processed);
- return $this->evaluate($reduced, $referenceArray);
- }
-
- /**
- * Process a single configuration file from the 'to be processed'
- * list. By default this is a no-op. Override this method to
- * provide any desired configuration preprocessing, e.g. dot-notation
- * expansion of the configuration keys, etc.
- *
- * @param array $config
- * @return array
- */
- protected function preprocess(array $config)
- {
- return $config;
- }
-
- /**
- * Evaluate one item in the 'to be evaluated' list, and then
- * merge it into the processed configuration (the 'carry').
- *
- * @param array $processed
- * @param array $config
- * @return array
- */
- protected function reduceOne(array $processed, array $config)
- {
- return ArrayUtil::mergeRecursiveSelect($processed, $config, $this->nameOfItemsToMerge);
- }
-
- /**
- * Evaluate one configuration item.
- *
- * @param array $processed
- * @param array $config
- * @return array
- */
- protected function evaluate(array $config, $referenceArray = [])
- {
- return $this->expander->expandArrayProperties(
- $config,
- $referenceArray
- );
- }
-}
diff --git a/vendor/consolidation/config/src/Loader/YamlConfigLoader.php b/vendor/consolidation/config/src/Loader/YamlConfigLoader.php
deleted file mode 100644
index 457056627..000000000
--- a/vendor/consolidation/config/src/Loader/YamlConfigLoader.php
+++ /dev/null
@@ -1,26 +0,0 @@
-setSourceName($path);
-
- // We silently skip any nonexistent config files, so that
- // clients may simply `load` all of their candidates.
- if (!file_exists($path)) {
- $this->config = [];
- return $this;
- }
- $this->config = (array) Yaml::parse(file_get_contents($path));
- return $this;
- }
-}
diff --git a/vendor/consolidation/config/src/Util/ArrayUtil.php b/vendor/consolidation/config/src/Util/ArrayUtil.php
deleted file mode 100644
index d5748a7a2..000000000
--- a/vendor/consolidation/config/src/Util/ArrayUtil.php
+++ /dev/null
@@ -1,122 +0,0 @@
- &$value) {
- $merged[$key] = self::mergeRecursiveValue($merged, $key, $value);
- }
- return $merged;
- }
-
- /**
- * Process the value in an mergeRecursiveDistinct - make a recursive
- * call if needed.
- */
- protected static function mergeRecursiveValue(&$merged, $key, $value)
- {
- if (is_array($value) && isset($merged[$key]) && is_array($merged[$key])) {
- return self::mergeRecursiveDistinct($merged[$key], $value);
- }
- return $value;
- }
-
-
- /**
- * Merges arrays recursively while preserving.
- *
- * @param array $array1
- * @param array $array2
- *
- * @return array
- *
- * @see http://php.net/manual/en/function.array-merge-recursive.php#92195
- * @see https://github.com/grasmash/bolt/blob/robo-rebase/src/Robo/Common/ArrayManipulator.php#L22
- */
- public static function mergeRecursiveSelect(
- array &$array1,
- array &$array2,
- array $selectionList,
- $keyPrefix = ''
- ) {
- $merged = $array1;
- foreach ($array2 as $key => &$value) {
- $merged[$key] = self::mergeRecursiveSelectValue($merged, $key, $value, $selectionList, $keyPrefix);
- }
- return $merged;
- }
-
- /**
- * Process the value in an mergeRecursiveDistinct - make a recursive
- * call if needed.
- */
- protected static function mergeRecursiveSelectValue(&$merged, $key, $value, $selectionList, $keyPrefix)
- {
- if (is_array($value) && isset($merged[$key]) && is_array($merged[$key])) {
- if (self::selectMerge($keyPrefix, $key, $selectionList)) {
- return array_merge_recursive($merged[$key], $value);
- } else {
- return self::mergeRecursiveSelect($merged[$key], $value, $selectionList, "${keyPrefix}${key}.");
- }
- }
- return $value;
- }
-
- protected static function selectMerge($keyPrefix, $key, $selectionList)
- {
- return in_array("${keyPrefix}${key}", $selectionList);
- }
-
-
- /**
- * Fills all of the leaf-node values of a nested array with the
- * provided replacement value.
- */
- public static function fillRecursive(array $data, $fill)
- {
- $result = [];
- foreach ($data as $key => $value) {
- $result[$key] = $fill;
- if (self::isAssociative($value)) {
- $result[$key] = self::fillRecursive($value, $fill);
- }
- }
- return $result;
- }
-
- /**
- * Return true if the provided parameter is an array, and at least
- * one key is non-numeric.
- */
- public static function isAssociative($testArray)
- {
- if (!is_array($testArray)) {
- return false;
- }
- foreach (array_keys($testArray) as $key) {
- if (!is_numeric($key)) {
- return true;
- }
- }
- return false;
- }
-}
diff --git a/vendor/consolidation/config/src/Util/ConfigFallback.php b/vendor/consolidation/config/src/Util/ConfigFallback.php
deleted file mode 100644
index 9f9972f60..000000000
--- a/vendor/consolidation/config/src/Util/ConfigFallback.php
+++ /dev/null
@@ -1,51 +0,0 @@
-getWithFallback($key, $this->group, $this->prefix, $this->postfix);
- }
-
- /**
- * Fetch an option value from a given key, or, if that specific key does
- * not contain a value, then consult various fallback options until a
- * value is found.
- *
- */
- protected function getWithFallback($key, $group, $prefix = '', $postfix = '.')
- {
- $configKey = "{$prefix}{$group}${postfix}{$key}";
- if ($this->config->has($configKey)) {
- return $this->config->get($configKey);
- }
- if ($this->config->hasDefault($configKey)) {
- return $this->config->getDefault($configKey);
- }
- $moreGeneralGroupname = $this->moreGeneralGroupName($group);
- if ($moreGeneralGroupname) {
- return $this->getWithFallback($key, $moreGeneralGroupname, $prefix, $postfix);
- }
- return null;
- }
-}
diff --git a/vendor/consolidation/config/src/Util/ConfigGroup.php b/vendor/consolidation/config/src/Util/ConfigGroup.php
deleted file mode 100644
index 24b29dd8e..000000000
--- a/vendor/consolidation/config/src/Util/ConfigGroup.php
+++ /dev/null
@@ -1,61 +0,0 @@
-config = $config;
- $this->group = $group;
- $this->prefix = $prefix;
- $this->postfix = $postfix;
- }
-
- /**
- * Return a description of the configuration group (with prefix and postfix).
- */
- public function describe($property)
- {
- return $this->prefix . $this->group . $this->postfix . $property;
- }
-
- /**
- * Get the requested configuration key from the most specific configuration
- * group that contains it.
- */
- abstract public function get($key);
-
- /**
- * Given a group name, such as "foo.bar.baz", return the next configuration
- * group in the fallback hierarchy, e.g. "foo.bar".
- */
- protected function moreGeneralGroupName($group)
- {
- $result = preg_replace('#\.[^.]*$#', '', $group);
- if ($result != $group) {
- return $result;
- }
- return false;
- }
-}
diff --git a/vendor/consolidation/config/src/Util/ConfigInterpolatorInterface.php b/vendor/consolidation/config/src/Util/ConfigInterpolatorInterface.php
deleted file mode 100644
index dd2f88b52..000000000
--- a/vendor/consolidation/config/src/Util/ConfigInterpolatorInterface.php
+++ /dev/null
@@ -1,37 +0,0 @@
-interpolator)) {
- $this->interpolator = new Interpolator();
- }
- return $this->interpolator;
- }
- /**
- * @inheritdoc
- */
- public function interpolate($message, $default = '')
- {
- return $this->getInterpolator()->interpolate($this, $message, $default);
- }
-
- /**
- * @inheritdoc
- */
- public function mustInterpolate($message)
- {
- return $this->getInterpolator()->mustInterpolate($this, $message);
- }
-}
diff --git a/vendor/consolidation/config/src/Util/ConfigMerge.php b/vendor/consolidation/config/src/Util/ConfigMerge.php
deleted file mode 100644
index 65fccf72a..000000000
--- a/vendor/consolidation/config/src/Util/ConfigMerge.php
+++ /dev/null
@@ -1,34 +0,0 @@
-getWithMerge($key, $this->group, $this->prefix, $this->postfix);
- }
-
- /**
- * Merge available configuration from each configuration group.
- */
- public function getWithMerge($key, $group, $prefix = '', $postfix = '.')
- {
- $configKey = "{$prefix}{$group}${postfix}{$key}";
- $result = $this->config->get($configKey, []);
- if (!is_array($result)) {
- throw new \UnexpectedValueException($configKey . ' must be a list of settings to apply.');
- }
- $moreGeneralGroupname = $this->moreGeneralGroupName($group);
- if ($moreGeneralGroupname) {
- $result += $this->getWithMerge($key, $moreGeneralGroupname, $prefix, $postfix);
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/config/src/Util/ConfigOverlay.php b/vendor/consolidation/config/src/Util/ConfigOverlay.php
deleted file mode 100644
index 2257ef615..000000000
--- a/vendor/consolidation/config/src/Util/ConfigOverlay.php
+++ /dev/null
@@ -1,228 +0,0 @@
-contexts[self::DEFAULT_CONTEXT] = new Config();
- $this->contexts[self::PROCESS_CONTEXT] = new Config();
- }
-
- /**
- * Add a named configuration object to the configuration overlay.
- * Configuration objects added LAST have HIGHEST priority, with the
- * exception of the fact that the process context always has the
- * highest priority.
- *
- * If a context has already been added, its priority will not change.
- */
- public function addContext($name, ConfigInterface $config)
- {
- $process = $this->contexts[self::PROCESS_CONTEXT];
- unset($this->contexts[self::PROCESS_CONTEXT]);
- $this->contexts[$name] = $config;
- $this->contexts[self::PROCESS_CONTEXT] = $process;
-
- return $this;
- }
-
- /**
- * Add a placeholder context that will be prioritized higher than
- * existing contexts. This is done to ensure that contexts added
- * later will maintain a higher priority if the placeholder context
- * is later relaced with a different configuration set via addContext().
- *
- * @param string $name
- * @return $this
- */
- public function addPlaceholder($name)
- {
- return $this->addContext($name, new Config());
- }
-
- /**
- * Increase the priority of the named context such that it is higher
- * in priority than any existing context except for the 'process'
- * context.
- *
- * @param string $name
- * @return $this
- */
- public function increasePriority($name)
- {
- $config = $this->getContext($name);
- unset($this->contexts[$name]);
- return $this->addContext($name, $config);
- }
-
- public function hasContext($name)
- {
- return isset($this->contexts[$name]);
- }
-
- public function getContext($name)
- {
- if ($this->hasContext($name)) {
- return $this->contexts[$name];
- }
- return new Config();
- }
-
- public function removeContext($name)
- {
- unset($this->contexts[$name]);
- }
-
- /**
- * Determine if a non-default config value exists.
- */
- public function findContext($key)
- {
- foreach (array_reverse($this->contexts) as $name => $config) {
- if ($config->has($key)) {
- return $config;
- }
- }
- return false;
- }
-
- /**
- * @inheritdoc
- */
- public function has($key)
- {
- return $this->findContext($key) != false;
- }
-
- /**
- * @inheritdoc
- */
- public function get($key, $default = null)
- {
- if (is_array($default)) {
- return $this->getUnion($key);
- }
- return $this->getSingle($key, $default);
- }
-
- public function getSingle($key, $default = null)
- {
- $context = $this->findContext($key);
- if ($context) {
- return $context->get($key, $default);
- }
- return $default;
- }
-
- public function getUnion($key)
- {
- $result = [];
- foreach (array_reverse($this->contexts) as $name => $config) {
- $item = (array) $config->get($key, []);
- if ($item !== null) {
- $result = array_merge($result, $item);
- }
- }
- return $result;
- }
-
- /**
- * @inheritdoc
- */
- public function set($key, $value)
- {
- $this->contexts[self::PROCESS_CONTEXT]->set($key, $value);
- return $this;
- }
-
- /**
- * @inheritdoc
- */
- public function import($data)
- {
- $this->unsupported(__FUNCTION__);
- }
-
- /**
- * @inheritdoc
- */
- public function replace($data)
- {
- $this->unsupported(__FUNCTION__);
- }
-
- /**
- * @inheritdoc
- */
- public function combine($data)
- {
- $this->unsupported(__FUNCTION__);
- }
-
- /**
- * @inheritdoc
- */
- protected function unsupported($fn)
- {
- throw new \Exception("The method '$fn' is not supported for the ConfigOverlay class.");
- }
-
- /**
- * @inheritdoc
- */
- public function export()
- {
- $export = [];
- foreach ($this->contexts as $name => $config) {
- $exportToMerge = $config->export();
- $export = \array_replace_recursive($export, $exportToMerge);
- }
- return $export;
- }
-
- /**
- * @inheritdoc
- */
- public function hasDefault($key)
- {
- return $this->contexts[self::DEFAULT_CONTEXT]->has($key);
- }
-
- /**
- * @inheritdoc
- */
- public function getDefault($key, $default = null)
- {
- return $this->contexts[self::DEFAULT_CONTEXT]->get($key, $default);
- }
-
- /**
- * @inheritdoc
- */
- public function setDefault($key, $value)
- {
- $this->contexts[self::DEFAULT_CONTEXT]->set($key, $value);
- return $this;
- }
-}
diff --git a/vendor/consolidation/config/src/Util/EnvConfig.php b/vendor/consolidation/config/src/Util/EnvConfig.php
deleted file mode 100644
index 05f8d2a82..000000000
--- a/vendor/consolidation/config/src/Util/EnvConfig.php
+++ /dev/null
@@ -1,96 +0,0 @@
-prefix = strtoupper(rtrim($prefix, '_')) . '_';
- }
-
- /**
- * @inheritdoc
- */
- public function has($key)
- {
- return $this->get($key) !== null;
- }
-
- /**
- * @inheritdoc
- */
- public function get($key, $defaultFallback = null)
- {
- $envKey = $this->prefix . strtoupper(strtr($key, '.-', '__'));
- $envKey = str_replace($this->prefix . $this->prefix, $this->prefix, $envKey);
- return getenv($envKey) ?: $defaultFallback;
- }
-
- /**
- * @inheritdoc
- */
- public function set($key, $value)
- {
- throw new \Exception('Cannot call "set" on environmental configuration.');
- }
-
- /**
- * @inheritdoc
- */
- public function import($data)
- {
- // no-op
- }
-
- /**
- * @inheritdoc
- */
- public function export()
- {
- return [];
- }
-
- /**
- * @inheritdoc
- */
- public function hasDefault($key)
- {
- return false;
- }
-
- /**
- * @inheritdoc
- */
- public function getDefault($key, $defaultFallback = null)
- {
- return $defaultFallback;
- }
-
- /**
- * @inheritdoc
- */
- public function setDefault($key, $value)
- {
- throw new \Exception('Cannot call "setDefault" on environmental configuration.');
- }
-}
diff --git a/vendor/consolidation/config/src/Util/Interpolator.php b/vendor/consolidation/config/src/Util/Interpolator.php
deleted file mode 100644
index 38ce45257..000000000
--- a/vendor/consolidation/config/src/Util/Interpolator.php
+++ /dev/null
@@ -1,97 +0,0 @@
-replacements($data, $message, $default);
- return strtr($message, $replacements);
- }
-
- /**
- * @inheritdoc
- */
- public function mustInterpolate($data, $message)
- {
- $result = $this->interpolate($data, $message, false);
- $tokens = $this->findTokens($result);
- if (!empty($tokens)) {
- throw new \Exception('The following required keys were not found in configuration: ' . implode(',', $tokens));
- }
- return $result;
- }
-
- /**
- * findTokens finds all of the tokens in the provided message
- *
- * @param string $message String with tokens
- * @return string[] map of token to key, e.g. {{key}} => key
- */
- public function findTokens($message)
- {
- if (!preg_match_all('#{{([a-zA-Z0-9._-]+)}}#', $message, $matches, PREG_SET_ORDER)) {
- return [];
- }
- $tokens = [];
- foreach ($matches as $matchSet) {
- list($sourceText, $key) = $matchSet;
- $tokens[$sourceText] = $key;
- }
- return $tokens;
- }
-
- /**
- * Replacements looks up all of the replacements in the configuration
- * object, given the token keys from the provided message. Keys that
- * do not exist in the configuration are replaced with the default value.
- */
- public function replacements($data, $message, $default = '')
- {
- $tokens = $this->findTokens($message);
-
- $replacements = [];
- foreach ($tokens as $sourceText => $key) {
- $replacementText = $this->get($data, $key, $default);
- if ($replacementText !== false) {
- $replacements[$sourceText] = $replacementText;
- }
- }
- return $replacements;
- }
-
- protected function get($data, $key, $default)
- {
- if (is_array($data)) {
- return array_key_exists($key, $data) ? $data[$key] : $default;
- }
- if ($data instanceof ConfigInterface) {
- return $data->get($key, $default);
- }
- throw new \Exception('Bad data type provided to Interpolator');
- }
-}
diff --git a/vendor/consolidation/log/.editorconfig b/vendor/consolidation/log/.editorconfig
deleted file mode 100644
index 095771e67..000000000
--- a/vendor/consolidation/log/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[**.php]
-indent_style = space
-indent_size = 4
-
diff --git a/vendor/consolidation/log/.gitignore b/vendor/consolidation/log/.gitignore
deleted file mode 100644
index 8d609f191..000000000
--- a/vendor/consolidation/log/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-vendor
-build
-dependencies/*/vendor
diff --git a/vendor/consolidation/log/.scenarios.lock/install b/vendor/consolidation/log/.scenarios.lock/install
deleted file mode 100755
index 16c69e107..000000000
--- a/vendor/consolidation/log/.scenarios.lock/install
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-SCENARIO=$1
-DEPENDENCIES=${2-install}
-
-# Convert the aliases 'highest', 'lowest' and 'lock' to
-# the corresponding composer command to run.
-case $DEPENDENCIES in
- highest)
- DEPENDENCIES=update
- ;;
- lowest)
- DEPENDENCIES='update --prefer-lowest'
- ;;
- lock|default|"")
- DEPENDENCIES=install
- ;;
-esac
-
-original_name=scenarios
-recommended_name=".scenarios.lock"
-
-base="$original_name"
-if [ -d "$recommended_name" ] ; then
- base="$recommended_name"
-fi
-
-# If scenario is not specified, install the lockfile at
-# the root of the project.
-dir="$base/${SCENARIO}"
-if [ -z "$SCENARIO" ] || [ "$SCENARIO" == "default" ] ; then
- SCENARIO=default
- dir=.
-fi
-
-# Test to make sure that the selected scenario exists.
-if [ ! -d "$dir" ] ; then
- echo "Requested scenario '${SCENARIO}' does not exist."
- exit 1
-fi
-
-echo
-echo "::"
-echo ":: Switch to ${SCENARIO} scenario"
-echo "::"
-echo
-
-set -ex
-
-composer -n validate --working-dir=$dir --no-check-all --ansi
-composer -n --working-dir=$dir ${DEPENDENCIES} --prefer-dist --no-scripts
-
-# If called from a CI context, print out some extra information about
-# what we just installed.
-if [[ -n "$CI" ]] ; then
- composer -n --working-dir=$dir info
-fi
diff --git a/vendor/consolidation/log/.scenarios.lock/phpunit4/.gitignore b/vendor/consolidation/log/.scenarios.lock/phpunit4/.gitignore
deleted file mode 100644
index 5657f6ea7..000000000
--- a/vendor/consolidation/log/.scenarios.lock/phpunit4/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
\ No newline at end of file
diff --git a/vendor/consolidation/log/.scenarios.lock/phpunit4/composer.json b/vendor/consolidation/log/.scenarios.lock/phpunit4/composer.json
deleted file mode 100644
index 36656fdbe..000000000
--- a/vendor/consolidation/log/.scenarios.lock/phpunit4/composer.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "name": "consolidation/log",
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "../../tests/src"
- }
- },
- "require": {
- "php": ">=5.4.5",
- "psr/log": "^1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36",
- "g1a/composer-test-scenarios": "^3",
- "squizlabs/php_codesniffer": "^2"
- },
- "minimum-stability": "stable",
- "scripts": {
- "cs": "phpcs -n --standard=PSR2 src",
- "cbf": "phpcbf -n --standard=PSR2 src",
- "unit": "phpunit",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "config": {
- "platform": {
- "php": "5.4.8"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- }
-}
diff --git a/vendor/consolidation/log/.scenarios.lock/phpunit4/composer.lock b/vendor/consolidation/log/.scenarios.lock/phpunit4/composer.lock
deleted file mode 100644
index 906c62553..000000000
--- a/vendor/consolidation/log/.scenarios.lock/phpunit4/composer.lock
+++ /dev/null
@@ -1,1400 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "97e24b2269f52d961357d35073057c1d",
- "packages": [
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12",
- "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/debug": "^2.7.2|~3.0.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.1|~3.0.0",
- "symfony/process": "~2.1|~3.0.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-20T15:55:20+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "74251c8d50dd3be7c4ce0c7b862497cdc641a5d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/74251c8d50dd3be7c4ce0c7b862497cdc641a5d0",
- "reference": "74251c8d50dd3be7c4ce0c7b862497cdc641a5d0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/class-loader": "~2.2|~3.0.0",
- "symfony/http-kernel": "~2.3.24|~2.5.9|^2.6.2|~3.0.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T11:18:13+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/224531e20d13a07942a989a70759f726cd2df9a1",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-27T05:58:39+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b",
- "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "dflydev/markdown": "~1.0",
- "erusev/parsedown": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2016-01-25T08:17:30+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2015-10-06T15:47:00+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.8.36",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.2.2",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.1|~3.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2017-06-21T08:07:12+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2015-10-02T06:51:40+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-08-18T05:49:44+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-06-17T09:04:28+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-10-03T07:41:43+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-06-21T13:59:46+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "02c1859112aa779d9ab394ae4f3381911d84052b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b",
- "reference": "02c1859112aa779d9ab394ae4f3381911d84052b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T11:18:13+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.5"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.4.8"
- }
-}
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony2/.gitignore b/vendor/consolidation/log/.scenarios.lock/symfony2/.gitignore
deleted file mode 100644
index 5657f6ea7..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony2/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
\ No newline at end of file
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony2/composer.json b/vendor/consolidation/log/.scenarios.lock/symfony2/composer.json
deleted file mode 100644
index 798de23b6..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony2/composer.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "name": "consolidation/log",
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "../../tests/src"
- }
- },
- "require": {
- "symfony/console": "^2.8",
- "php": ">=5.4.5",
- "psr/log": "^1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36",
- "g1a/composer-test-scenarios": "^3",
- "squizlabs/php_codesniffer": "^2"
- },
- "minimum-stability": "stable",
- "scripts": {
- "cs": "phpcs -n --standard=PSR2 src",
- "cbf": "phpcbf -n --standard=PSR2 src",
- "unit": "phpunit",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "config": {
- "platform": {
- "php": "5.4.8"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- }
-}
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony2/composer.lock b/vendor/consolidation/log/.scenarios.lock/symfony2/composer.lock
deleted file mode 100644
index 2880c8434..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony2/composer.lock
+++ /dev/null
@@ -1,1400 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "37f310dc1c6bdc40e1048349aef71467",
- "packages": [
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12",
- "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/debug": "^2.7.2|~3.0.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.1|~3.0.0",
- "symfony/process": "~2.1|~3.0.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-20T15:55:20+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "74251c8d50dd3be7c4ce0c7b862497cdc641a5d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/74251c8d50dd3be7c4ce0c7b862497cdc641a5d0",
- "reference": "74251c8d50dd3be7c4ce0c7b862497cdc641a5d0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/class-loader": "~2.2|~3.0.0",
- "symfony/http-kernel": "~2.3.24|~2.5.9|^2.6.2|~3.0.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T11:18:13+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/224531e20d13a07942a989a70759f726cd2df9a1",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-27T05:58:39+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b",
- "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "dflydev/markdown": "~1.0",
- "erusev/parsedown": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2016-01-25T08:17:30+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2015-10-06T15:47:00+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.8.36",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.2.2",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.1|~3.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2017-06-21T08:07:12+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2015-10-02T06:51:40+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-08-18T05:49:44+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-06-17T09:04:28+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-10-03T07:41:43+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-06-21T13:59:46+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "02c1859112aa779d9ab394ae4f3381911d84052b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b",
- "reference": "02c1859112aa779d9ab394ae4f3381911d84052b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T11:18:13+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.5"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.4.8"
- }
-}
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony2/src b/vendor/consolidation/log/.scenarios.lock/symfony2/src
deleted file mode 120000
index 929cb3dc9..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony2/src
+++ /dev/null
@@ -1 +0,0 @@
-../../src
\ No newline at end of file
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony2/tests b/vendor/consolidation/log/.scenarios.lock/symfony2/tests
deleted file mode 120000
index c2ebfe530..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony2/tests
+++ /dev/null
@@ -1 +0,0 @@
-../../tests
\ No newline at end of file
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony4/.gitignore b/vendor/consolidation/log/.scenarios.lock/symfony4/.gitignore
deleted file mode 100644
index 5657f6ea7..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony4/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
\ No newline at end of file
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony4/composer.json b/vendor/consolidation/log/.scenarios.lock/symfony4/composer.json
deleted file mode 100644
index aaa666985..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony4/composer.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "name": "consolidation/log",
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "../../tests/src"
- }
- },
- "require": {
- "symfony/console": "^4.0",
- "php": ">=5.4.5",
- "psr/log": "^1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6",
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "squizlabs/php_codesniffer": "^2"
- },
- "minimum-stability": "stable",
- "scripts": {
- "cs": "phpcs -n --standard=PSR2 src",
- "cbf": "phpcbf -n --standard=PSR2 src",
- "unit": "phpunit",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- }
-}
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony4/composer.lock b/vendor/consolidation/log/.scenarios.lock/symfony4/composer.lock
deleted file mode 100644
index 76d663254..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony4/composer.lock
+++ /dev/null
@@ -1,2355 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "5643ded858bacea7c5860071008675f9",
- "packages": [
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/4dff24e5d01e713818805c1862d2e3f901ee7dd0",
- "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/contracts": "^1.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.4|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.4|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-27T07:40:44+00:00"
- },
- {
- "name": "symfony/contracts",
- "version": "v1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/contracts.git",
- "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf",
- "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "require-dev": {
- "psr/cache": "^1.0",
- "psr/container": "^1.0"
- },
- "suggest": {
- "psr/cache": "When using the Cache contracts",
- "psr/container": "When using the Service contracts",
- "symfony/cache-contracts-implementation": "",
- "symfony/service-contracts-implementation": "",
- "symfony/translation-contracts-implementation": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Contracts\\": ""
- },
- "exclude-from-classmap": [
- "**/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "A set of abstractions extracted out of the Symfony components",
- "homepage": "https://symfony.com",
- "keywords": [
- "abstractions",
- "contracts",
- "decoupling",
- "interfaces",
- "interoperability",
- "standards"
- ],
- "time": "2018-12-05T08:06:11+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "^6.2.3",
- "squizlabs/php_codesniffer": "^3.0.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2017-07-22T11:58:36+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/224531e20d13a07942a989a70759f726cd2df9a1",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-27T05:58:39+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.9.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle3.git",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": "~2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "~1.3",
- "monolog/monolog": "~1.0",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "~1.0",
- "symfony/class-loader": "~2.1",
- "zendframework/zend-cache": "2.*,<2.3",
- "zendframework/zend-log": "2.*,<2.3"
- },
- "suggest": {
- "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.9-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2015-03-18T18:23:50+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "replace": {
- "myclabs/deep-copy": "self.version"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^7.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2018-06-11T23:09:50+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "phar-io/version": "^1.0.1",
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2017-03-05T18:14:27+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "time": "2017-03-05T17:38:23+00:00"
- },
- {
- "name": "php-coveralls/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "5.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0",
- "phpunit/php-file-iterator": "^1.4.2",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^2.0.1",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-xdebug": "^2.5.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2018-04-06T15:36:58+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "6.5.13",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0973426fb012359b2f18d3bd1e90ef1172839693",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "^1.6.1",
- "phar-io/manifest": "^1.0.1",
- "phar-io/version": "^1.0",
- "php": "^7.0",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^5.3",
- "phpunit/php-file-iterator": "^1.4.3",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^1.0.9",
- "phpunit/phpunit-mock-objects": "^5.0.9",
- "sebastian/comparator": "^2.1",
- "sebastian/diff": "^2.0",
- "sebastian/environment": "^3.1",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^1.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2",
- "phpunit/dbunit": "<3.0"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-09-08T15:10:43+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "5.0.10",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.5",
- "php": "^7.0",
- "phpunit/php-text-template": "^1.2.1",
- "sebastian/exporter": "^3.1"
- },
- "conflict": {
- "phpunit/phpunit": "<6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.5.11"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2018-08-09T05:50:03+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "2.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/diff": "^2.0 || ^3.0",
- "sebastian/exporter": "^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2018-02-01T13:46:46+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-08-03T08:09:46+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2017-07-01T08:51:00+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2017-04-03T13:19:02+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2017-04-27T15:39:26+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "005d9a083d03f588677d15391a716b1ac9b887c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/005d9a083d03f588677d15391a716b1ac9b887c0",
- "reference": "005d9a083d03f588677d15391a716b1ac9b887c0",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/filesystem": "~3.4|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/finder": "<3.4"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/finder": "~3.4|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-30T22:21:14+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a77e974a5fecb4398833b0709210e3d5e334ffb0",
- "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "^2.0.5|~3.0.0",
- "symfony/dependency-injection": "~2.6|~3.0.0",
- "symfony/expression-language": "~2.6|~3.0.0",
- "symfony/stopwatch": "~2.3|~3.0.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-21T14:20:20+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "2f4c8b999b3b7cadb2a69390b01af70886753710"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/2f4c8b999b3b7cadb2a69390b01af70886753710",
- "reference": "2f4c8b999b3b7cadb2a69390b01af70886753710",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "ec076716412274e51f8a7ea675d9515e5c311123"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/ec076716412274e51f8a7ea675d9515e5c311123",
- "reference": "ec076716412274e51f8a7ea675d9515e5c311123",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/contracts": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c41175c801e3edfda90f32e292619d10c27103d7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c41175c801e3edfda90f32e292619d10c27103d7",
- "reference": "c41175c801e3edfda90f32e292619d10c27103d7",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-12-25T11:19:39+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.5"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.1.3"
- }
-}
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony4/src b/vendor/consolidation/log/.scenarios.lock/symfony4/src
deleted file mode 120000
index 929cb3dc9..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony4/src
+++ /dev/null
@@ -1 +0,0 @@
-../../src
\ No newline at end of file
diff --git a/vendor/consolidation/log/.scenarios.lock/symfony4/tests b/vendor/consolidation/log/.scenarios.lock/symfony4/tests
deleted file mode 120000
index c2ebfe530..000000000
--- a/vendor/consolidation/log/.scenarios.lock/symfony4/tests
+++ /dev/null
@@ -1 +0,0 @@
-../../tests
\ No newline at end of file
diff --git a/vendor/consolidation/log/.travis.yml b/vendor/consolidation/log/.travis.yml
deleted file mode 100644
index 1459fa5dc..000000000
--- a/vendor/consolidation/log/.travis.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-language: php
-
-branches:
- # Only test the master branch and SemVer tags.
- only:
- - master
- - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
-
-matrix:
- include:
- - php: 7.2
- env: 'SCENARIO=symfony4 DEPENDENCIES=highest'
- - php: 7.1
- env: 'SCENARIO=symfony4'
- - php: 7.0
- env: 'DEPENDENCIES=highest'
- - php: 7.0
- - php: 5.6
- env: 'SCENARIO=phpunit4'
- - php: 5.5
- env: 'SCENARIO=phpunit4'
- - php: 5.4
- env: 'SCENARIO=symfony2 DEPENDENCIES=lowest'
-
-sudo: false
-
-cache:
- directories:
- - vendor
- - $HOME/.composer/cache
-
-install:
- - '.scenarios.lock/install "${SCENARIO}" "${DEPENDENCIES}"'
-
-script:
- - composer test
-
-after_success:
- - 'travis_retry php vendor/bin/php-coveralls -v'
diff --git a/vendor/consolidation/log/CHANGELOG.md b/vendor/consolidation/log/CHANGELOG.md
deleted file mode 100644
index f247ace87..000000000
--- a/vendor/consolidation/log/CHANGELOG.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Change Log
-
-### 1.1.1: 2019-1-1
-
-- Allow logger manager to manage a global style for loggers (#12)
-
-### 1.1.0: 2018-12-29
-
-- Add a logger manager (#11)
-- Update to Composer Test Scenarios 3 (#10)
-
-### 1.0.6: 2018-05-25
-
-- Use g1a/composer-test-scenarios (#9)
-
-### 1.0.5: 2017-11-28
-
-- Test Symfony version 2, 3 and 4 with different versions of php. (#5)
-
-### 1.0.4: 2017-11-18
-
-- Support for Symfony 4 by Tobias Nyholm (#4)
-
-### 1.0.3: 2016-03-23
-
-- Split up the log() method a bit.
-- Run code sniffer prior to running tests to ensure PSR-2 compliance.
-
-### 1.0.2: 2016-03-22
-
-- Remove unused components accidentally left in composer.json.
-
-### 1.0.1: 2016-03-19
-
-- Add a license file.
diff --git a/vendor/consolidation/log/CONTRIBUTING.md b/vendor/consolidation/log/CONTRIBUTING.md
deleted file mode 100644
index 1bbf57361..000000000
--- a/vendor/consolidation/log/CONTRIBUTING.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Contributing to Consolidation
-
-Thank you for your interest in contributing to the Consolidation effort! Consolidation aims to provide reusable, loosely-coupled components useful for building command-line tools. Consolidation is built on top of Symfony Console, but aims to separate the tool from the implementation details of Symfony.
-
-Here are some of the guidelines you should follow to make the most of your efforts:
-
-## Code Style Guidelines
-
-Consolidation adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code.
-
-## Pull Request Guidelines
-
-Every pull request is run through:
-
- - phpcs -n --standard=PSR2 src
- - phpunit
- - [Scrutinizer](https://scrutinizer-ci.com/g/consolidation-org/log/)
-
-It is easy to run the unit tests and code sniffer locally; simply ensure that `./vendor/bin` is in your `$PATH`, cd to the root of the project directory, and run `phpcs` and `phpunit` as shown above. To automatically fix coding standard errors, run:
-
- - phpcbf --standard=PSR2 src
-
-After submitting a pull request, please examine the Scrutinizer report. It is not required to fix all Scrutinizer issues; you may ignore recommendations that you disagree with. The spacing patches produced by Scrutinizer do not conform to PSR2 standards, and therefore should never be applied. DocBlock patches may be applied at your discression. Things that Scrutinizer identifies as a bug nearly always needs to be addressed.
-
-Pull requests must pass phpcs and phpunit in order to be merged; ideally, new functionality will also include new unit tests.
diff --git a/vendor/consolidation/log/LICENSE b/vendor/consolidation/log/LICENSE
deleted file mode 100644
index dfcef0282..000000000
--- a/vendor/consolidation/log/LICENSE
+++ /dev/null
@@ -1,16 +0,0 @@
-Copyright (c) 2016-2018 Consolidation Org Developers
-
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-DEPENDENCY LICENSES:
-
-Name Version License
-psr/log 1.1.0 MIT
-symfony/console v2.8.49 MIT
-symfony/debug v2.8.49 MIT
-symfony/polyfill-mbstring v1.10.0 MIT
\ No newline at end of file
diff --git a/vendor/consolidation/log/README.md b/vendor/consolidation/log/README.md
deleted file mode 100644
index ecc8cf349..000000000
--- a/vendor/consolidation/log/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# Consolidation\Log
-
-Improved [PSR-3](http://www.php-fig.org/psr/psr-3/) [Psr\Log](https://github.com/php-fig/log) logger based on Symfony Console components.
-
-[![Travis CI](https://travis-ci.org/consolidation/log.svg?branch=master)](https://travis-ci.org/consolidation/log) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/consolidation/log/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/consolidation/log/?branch=master) [![Coverage Status](https://coveralls.io/repos/github/consolidation/log/badge.svg?branch=master)](https://coveralls.io/github/consolidation/log?branch=master) [![License](https://poser.pugx.org/consolidation/log/license)](https://packagist.org/packages/consolidation/log)
-
-## Component Status
-
-In use in [Robo](https://github.com/Codegyre/Robo).
-
-## Motivation
-
-Consolidation\Log provides a PSR-3 compatible logger that provides styled log output to the standard error (stderr) stream. By default, styling is provided by the SymfonyStyle class from the Symfony Console component; however, alternative stylers may be provided if desired.
-
-## Usage
-```
-$logger = new \Consolidation\Log\Logger($output);
-$logger->setLogOutputStyler(new LogOutputStyler()); // optional
-$logger->warning('The file {name} does not exist.', ['name' => $filename]);
-```
-String interpolation -- that is, the substitution of replacements, such as `{name}` in the example above, is not required by PSR-3, and is not implemented by default in the Psr\Log project. However, it is recommended by PRS-3, and is often done, e.g. in the Symfony Console logger.
-
-Consolidation\Log supports string interpolation.
-
-A logger manager can be used to delegate all log messages to one or more loggers.
-```
-$logger = new \Consolidation\Log\LoggerManager();
-$logger->add('default', new \Consolidation\Log\Logger($output));
-```
-This is useful if, for example, you need to inject a logger into application objects early (e.g. into a dependency injection container), but the output object to log to will not be available until later.
-
-## Comparison to Existing Solutions
-
-Many Symfony Console compoenents use SymfonyStyle to format their output messages. This helper class has methods named things like `success` and `warning`, making it seem like a natural choice for reporting status.
-
-However, in practice it is much more convenient to use an actual Psr-3 logger for logging. Doing this allows a Symfony Console component to call an external library that may not need to depend on Symfony Style. Having the Psr\Log\LoggerInterface serve as the only shared IO-related interface in common between the console tool and the libraries it depends on promots loose coupling, allowing said libraries to be re-used in other contexts which may wish to log in different ways.
-
-Symfony Console provides the ConsoleLogger to fill this need; however, ConsoleLogger does not provide any facility for styling output, leaving SymfonyStyle as the preferred logging mechanism for style-conscienscious console coders.
-
-Consolidation\Log provides the benefits of both classes, allowing for code that both behaved technically correctly (redirecting to stderr) without sacrificing on style.
-
-Monlog also provides a full-featured Console logger that might be applicable for some use cases.
diff --git a/vendor/consolidation/log/composer.json b/vendor/consolidation/log/composer.json
deleted file mode 100644
index 708e6d97b..000000000
--- a/vendor/consolidation/log/composer.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "name": "consolidation/log",
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload":{
- "psr-4":{
- "Consolidation\\Log\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "tests/src"
- }
- },
- "require": {
- "php": ">=5.4.5",
- "psr/log": "^1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "phpunit/phpunit": "^6",
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "squizlabs/php_codesniffer": "^2"
- },
- "minimum-stability": "stable",
- "scripts": {
- "cs": "phpcs -n --standard=PSR2 src",
- "cbf": "phpcbf -n --standard=PSR2 src",
- "unit": "phpunit",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ]
- },
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "7.0.8"
- }
- }
-}
diff --git a/vendor/consolidation/log/composer.lock b/vendor/consolidation/log/composer.lock
deleted file mode 100644
index 45b0a32d9..000000000
--- a/vendor/consolidation/log/composer.lock
+++ /dev/null
@@ -1,2340 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "c49e4b63e4960c38c6bf13a0929eff93",
- "packages": [
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "8f80fc39bbc3b7c47ee54ba7aa2653521ace94bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/8f80fc39bbc3b7c47ee54ba7aa2653521ace94bb",
- "reference": "8f80fc39bbc3b7c47ee54ba7aa2653521ace94bb",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T12:48:07+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "a2233f555ddf55e5600f386fba7781cea1cb82d3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/a2233f555ddf55e5600f386fba7781cea1cb82d3",
- "reference": "a2233f555ddf55e5600f386fba7781cea1cb82d3",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-27T12:43:10+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/224531e20d13a07942a989a70759f726cd2df9a1",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-27T05:58:39+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.9.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle3.git",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": "~2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "~1.3",
- "monolog/monolog": "~1.0",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "~1.0",
- "symfony/class-loader": "~2.1",
- "zendframework/zend-cache": "2.*,<2.3",
- "zendframework/zend-log": "2.*,<2.3"
- },
- "suggest": {
- "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.9-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2015-03-18T18:23:50+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "phar-io/version": "^1.0.1",
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2017-03-05T18:14:27+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "time": "2017-03-05T17:38:23+00:00"
- },
- {
- "name": "php-coveralls/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "5.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0",
- "phpunit/php-file-iterator": "^1.4.2",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^2.0.1",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-xdebug": "^2.5.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2018-04-06T15:36:58+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "6.5.13",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0973426fb012359b2f18d3bd1e90ef1172839693",
- "reference": "0973426fb012359b2f18d3bd1e90ef1172839693",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "^1.6.1",
- "phar-io/manifest": "^1.0.1",
- "phar-io/version": "^1.0",
- "php": "^7.0",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^5.3",
- "phpunit/php-file-iterator": "^1.4.3",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^1.0.9",
- "phpunit/phpunit-mock-objects": "^5.0.9",
- "sebastian/comparator": "^2.1",
- "sebastian/diff": "^2.0",
- "sebastian/environment": "^3.1",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^1.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2",
- "phpunit/dbunit": "<3.0"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-09-08T15:10:43+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "5.0.10",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.5",
- "php": "^7.0",
- "phpunit/php-text-template": "^1.2.1",
- "sebastian/exporter": "^3.1"
- },
- "conflict": {
- "phpunit/phpunit": "<6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.5.11"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2018-08-09T05:50:03+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "2.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/diff": "^2.0 || ^3.0",
- "sebastian/exporter": "^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2018-02-01T13:46:46+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-08-03T08:09:46+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2017-07-01T08:51:00+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2017-04-03T13:19:02+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2017-04-27T15:39:26+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "8a660daeb65dedbe0b099529f65e61866c055081"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/8a660daeb65dedbe0b099529f65e61866c055081",
- "reference": "8a660daeb65dedbe0b099529f65e61866c055081",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T10:17:44+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v2.8.49",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a77e974a5fecb4398833b0709210e3d5e334ffb0",
- "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "^2.0.5|~3.0.0",
- "symfony/dependency-injection": "~2.6|~3.0.0",
- "symfony/expression-language": "~2.6|~3.0.0",
- "symfony/stopwatch": "~2.3|~3.0.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-21T14:20:20+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "b49b1ca166bd109900e6a1683d9bb1115727ef2d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/b49b1ca166bd109900e6a1683d9bb1115727ef2d",
- "reference": "b49b1ca166bd109900e6a1683d9bb1115727ef2d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "0f43969ab2718de55c1c1158dce046668079788d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/0f43969ab2718de55c1c1158dce046668079788d",
- "reference": "0f43969ab2718de55c1c1158dce046668079788d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "291e13d808bec481eab83f301f7bff3e699ef603"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/291e13d808bec481eab83f301f7bff3e699ef603",
- "reference": "291e13d808bec481eab83f301f7bff3e699ef603",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-12-25T11:19:39+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.5"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.0.8"
- }
-}
diff --git a/vendor/consolidation/log/phpunit.xml.dist b/vendor/consolidation/log/phpunit.xml.dist
deleted file mode 100644
index 2820535a6..000000000
--- a/vendor/consolidation/log/phpunit.xml.dist
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
- tests
-
-
-
-
-
-
-
- src
-
-
-
diff --git a/vendor/consolidation/log/src/ConsoleLogLevel.php b/vendor/consolidation/log/src/ConsoleLogLevel.php
deleted file mode 100644
index 013e9737b..000000000
--- a/vendor/consolidation/log/src/ConsoleLogLevel.php
+++ /dev/null
@@ -1,25 +0,0 @@
-
- */
-class ConsoleLogLevel extends \Psr\Log\LogLevel
-{
- /**
- * Command successfully completed some operation.
- * Displayed at VERBOSITY_NORMAL.
- */
- const SUCCESS = 'success';
-}
diff --git a/vendor/consolidation/log/src/LogOutputStyler.php b/vendor/consolidation/log/src/LogOutputStyler.php
deleted file mode 100644
index 5788215b5..000000000
--- a/vendor/consolidation/log/src/LogOutputStyler.php
+++ /dev/null
@@ -1,115 +0,0 @@
- LogLevel::INFO,
- ];
- protected $labelStyles = [
- LogLevel::EMERGENCY => self::TASK_STYLE_ERROR,
- LogLevel::ALERT => self::TASK_STYLE_ERROR,
- LogLevel::CRITICAL => self::TASK_STYLE_ERROR,
- LogLevel::ERROR => self::TASK_STYLE_ERROR,
- LogLevel::WARNING => self::TASK_STYLE_WARNING,
- LogLevel::NOTICE => self::TASK_STYLE_INFO,
- LogLevel::INFO => self::TASK_STYLE_INFO,
- LogLevel::DEBUG => self::TASK_STYLE_INFO,
- ConsoleLogLevel::SUCCESS => self::TASK_STYLE_SUCCESS,
- ];
- protected $messageStyles = [
- LogLevel::EMERGENCY => self::TASK_STYLE_ERROR,
- LogLevel::ALERT => self::TASK_STYLE_ERROR,
- LogLevel::CRITICAL => self::TASK_STYLE_ERROR,
- LogLevel::ERROR => self::TASK_STYLE_ERROR,
- LogLevel::WARNING => '',
- LogLevel::NOTICE => '',
- LogLevel::INFO => '',
- LogLevel::DEBUG => '',
- ConsoleLogLevel::SUCCESS => '',
- ];
-
- public function __construct($labelStyles = [], $messageStyles = [])
- {
- $this->labelStyles = $labelStyles + $this->labelStyles;
- $this->messageStyles = $messageStyles + $this->messageStyles;
- }
-
- /**
- * {@inheritdoc}
- */
- public function defaultStyles()
- {
- return $this->defaultStyles;
- }
-
- /**
- * {@inheritdoc}
- */
- public function style($context)
- {
- $context += ['_style' => []];
- $context['_style'] += $this->defaultStyles();
- foreach ($context as $key => $value) {
- $styleKey = $key;
- if (!isset($context['_style'][$styleKey])) {
- $styleKey = '*';
- }
- if (is_string($value) && isset($context['_style'][$styleKey])) {
- $style = $context['_style'][$styleKey];
- $context[$key] = $this->wrapFormatString($context[$key], $style);
- }
- }
- return $context;
- }
-
- /**
- * Wrap a string in a format element.
- */
- protected function wrapFormatString($string, $style)
- {
- if ($style) {
- return "<{$style}>$string>";
- }
- return $string;
- }
-
- /**
- * Look up the label and message styles for the specified log level,
- * and use the log level as the label for the log message.
- */
- protected function formatMessageByLevel($level, $message, $context)
- {
- $label = $level;
- return $this->formatMessage($label, $message, $context, $this->labelStyles[$level], $this->messageStyles[$level]);
- }
-
- /**
- * Apply styling with the provided label and message styles.
- */
- protected function formatMessage($label, $message, $context, $labelStyle, $messageStyle = '')
- {
- if (!empty($messageStyle)) {
- $message = $this->wrapFormatString(" $message ", $messageStyle);
- }
- if (!empty($label)) {
- $message = ' ' . $this->wrapFormatString("[$label]", $labelStyle) . ' ' . $message;
- }
-
- return $message;
- }
-}
diff --git a/vendor/consolidation/log/src/LogOutputStylerInterface.php b/vendor/consolidation/log/src/LogOutputStylerInterface.php
deleted file mode 100644
index ff2e420f0..000000000
--- a/vendor/consolidation/log/src/LogOutputStylerInterface.php
+++ /dev/null
@@ -1,105 +0,0 @@
- 'pwd']
- * default styles: ['*' => 'info']
- * result: 'Running pwd>'
- */
- public function defaultStyles();
-
- /**
- * Apply styles specified in the STYLE_CONTEXT_KEY context variable to
- * the other named variables stored in the context. The styles from
- * the context are unioned with the default styles.
- */
- public function style($context);
-
- /**
- * Create a wrapper object for the output stream. If this styler
- * does not require an output wrapper, it should just return
- * its $output parameter.
- */
- public function createOutputWrapper(OutputInterface $output);
-
- /**
- * Print an ordinary log message, usually unstyled.
- */
- public function log($output, $level, $message, $context);
-
- /**
- * Print a success message.
- */
- public function success($output, $level, $message, $context);
-
- /**
- * Print an error message. Used when log level is:
- * - LogLevel::EMERGENCY
- * - LogLevel::ALERT
- * - LogLevel::CRITICAL
- * - LogLevel::ERROR
- */
- public function error($output, $level, $message, $context);
-
- /**
- * Print a warning message. Used when log level is:
- * - LogLevel::WARNING
- */
- public function warning($output, $level, $message, $context);
-
- /**
- * Print a note. Similar to 'text', but may contain additional
- * styling (e.g. the task name). Used when log level is:
- * - LogLevel::NOTICE
- * - LogLevel::INFO
- * - LogLevel::DEBUG
- *
- * IMPORTANT: Symfony loggers only display LogLevel::NOTICE when the
- * the verbosity level is VERBOSITY_VERBOSE, unless overridden in the
- * constructor. Robo\Common\Logger emits LogLevel::NOTICE at
- * VERBOSITY_NORMAL so that these messages will always be displayed.
- */
- public function note($output, $level, $message, $context);
-
- /**
- * Print an error message. Not used by default by StyledConsoleLogger.
- */
- public function caution($output, $level, $message, $context);
-}
diff --git a/vendor/consolidation/log/src/Logger.php b/vendor/consolidation/log/src/Logger.php
deleted file mode 100644
index 9d3cf5aff..000000000
--- a/vendor/consolidation/log/src/Logger.php
+++ /dev/null
@@ -1,268 +0,0 @@
-
- */
-class Logger extends AbstractLogger implements StylableLoggerInterface // extends ConsoleLogger
-{
- /**
- * @var OutputInterface
- */
- protected $output;
- /**
- * @var OutputInterface
- */
- protected $error;
- /**
- * @var LogOutputStylerInterface
- */
- protected $outputStyler;
- /**
- * @var OutputInterface|SymfonyStyle|other
- */
- protected $outputStreamWrapper;
- protected $errorStreamWrapper;
-
- protected $formatFunctionMap = [
- LogLevel::EMERGENCY => 'error',
- LogLevel::ALERT => 'error',
- LogLevel::CRITICAL => 'error',
- LogLevel::ERROR => 'error',
- LogLevel::WARNING => 'warning',
- LogLevel::NOTICE => 'note',
- LogLevel::INFO => 'note',
- LogLevel::DEBUG => 'note',
- ConsoleLogLevel::SUCCESS => 'success',
- ];
-
- /**
- * @param OutputInterface $output
- * @param array $verbosityLevelMap
- * @param array $formatLevelMap
- * @param array $formatFunctionMap
- */
- public function __construct(OutputInterface $output, array $verbosityLevelMap = array(), array $formatLevelMap = array(), array $formatFunctionMap = array())
- {
- $this->output = $output;
-
- $this->verbosityLevelMap = $verbosityLevelMap + $this->verbosityLevelMap;
- $this->formatLevelMap = $formatLevelMap + $this->formatLevelMap;
- $this->formatFunctionMap = $formatFunctionMap + $this->formatFunctionMap;
- }
-
- public function setLogOutputStyler(LogOutputStylerInterface $outputStyler, array $formatFunctionMap = array())
- {
- $this->outputStyler = $outputStyler;
- $this->formatFunctionMap = $formatFunctionMap + $this->formatFunctionMap;
- $this->outputStreamWrapper = null;
- $this->errorStreamWrapper = null;
- }
-
- public function getLogOutputStyler()
- {
- if (!isset($this->outputStyler)) {
- $this->outputStyler = new SymfonyLogOutputStyler();
- }
- return $this->outputStyler;
- }
-
- protected function getOutputStream()
- {
- return $this->output;
- }
-
- protected function getErrorStream()
- {
- if (!isset($this->error)) {
- $output = $this->getOutputStream();
- if ($output instanceof ConsoleOutputInterface) {
- $output = $output->getErrorOutput();
- }
- $this->error = $output;
- }
- return $this->error;
- }
-
- public function setOutputStream($output)
- {
- $this->output = $output;
- $this->outputStreamWrapper = null;
- }
-
- public function setErrorStream($error)
- {
- $this->error = $error;
- $this->errorStreamWrapper = null;
- }
-
- protected function getOutputStreamWrapper()
- {
- if (!isset($this->outputStreamWrapper)) {
- $this->outputStreamWrapper = $this->getLogOutputStyler()->createOutputWrapper($this->getOutputStream());
- }
- return $this->outputStreamWrapper;
- }
-
- protected function getErrorStreamWrapper()
- {
- if (!isset($this->errorStreamWrapper)) {
- $this->errorStreamWrapper = $this->getLogOutputStyler()->createOutputWrapper($this->getErrorStream());
- }
- return $this->errorStreamWrapper;
- }
-
- protected function getOutputStreamForLogLevel($level)
- {
- // Write to the error output if necessary and available.
- // Usually, loggers that log to a terminal should send
- // all log messages to stderr.
- if (array_key_exists($level, $this->formatLevelMap) && ($this->formatLevelMap[$level] !== self::ERROR)) {
- return $this->getOutputStreamWrapper();
- }
- return $this->getErrorStreamWrapper();
- }
-
- /**
- * {@inheritdoc}
- */
- public function log($level, $message, array $context = array())
- {
- // We use the '_level' context variable to allow log messages
- // to be logged at one level (e.g. NOTICE) and formatted at another
- // level (e.g. SUCCESS). This helps in instances where we want
- // to style log messages at a custom log level that might not
- // be available in all loggers. If the logger does not recognize
- // the log level, then it is treated like the original log level.
- if (array_key_exists('_level', $context) && array_key_exists($context['_level'], $this->verbosityLevelMap)) {
- $level = $context['_level'];
- }
- // It is a runtime error if someone logs at a log level that
- // we do not recognize.
- if (!isset($this->verbosityLevelMap[$level])) {
- throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level));
- }
-
- // Write to the error output if necessary and available.
- // Usually, loggers that log to a terminal should send
- // all log messages to stderr.
- $outputStreamWrapper = $this->getOutputStreamForLogLevel($level);
-
- // Ignore messages that are not at the right verbosity level
- if ($this->getOutputStream()->getVerbosity() >= $this->verbosityLevelMap[$level]) {
- $this->doLog($outputStreamWrapper, $level, $message, $context);
- }
- }
-
- /**
- * Interpolate and style the message, and then send it to the log.
- */
- protected function doLog($outputStreamWrapper, $level, $message, $context)
- {
- $formatFunction = 'log';
- if (array_key_exists($level, $this->formatFunctionMap)) {
- $formatFunction = $this->formatFunctionMap[$level];
- }
- $interpolated = $this->interpolate(
- $message,
- $this->getLogOutputStyler()->style($context)
- );
- $this->getLogOutputStyler()->$formatFunction(
- $outputStreamWrapper,
- $level,
- $interpolated,
- $context
- );
- }
-
- public function success($message, array $context = array())
- {
- $this->log(ConsoleLogLevel::SUCCESS, $message, $context);
- }
-
- // The functions below could be eliminated if made `protected` intead
- // of `private` in ConsoleLogger
-
- const INFO = 'info';
- const ERROR = 'error';
-
- /**
- * @var OutputInterface
- */
- //private $output;
- /**
- * @var array
- */
- private $verbosityLevelMap = [
- LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::NOTICE => OutputInterface::VERBOSITY_VERBOSE,
- LogLevel::INFO => OutputInterface::VERBOSITY_VERY_VERBOSE,
- LogLevel::DEBUG => OutputInterface::VERBOSITY_DEBUG,
- ConsoleLogLevel::SUCCESS => OutputInterface::VERBOSITY_NORMAL,
- ];
-
- /**
- * @var array
- *
- * Send all log messages to stderr. Symfony should have the same default.
- * See: https://en.wikipedia.org/wiki/Standard_streams
- * "Standard error was added to Unix after several wasted phototypesetting runs ended with error messages being typeset instead of displayed on the user's terminal."
- */
- private $formatLevelMap = [
- LogLevel::EMERGENCY => self::ERROR,
- LogLevel::ALERT => self::ERROR,
- LogLevel::CRITICAL => self::ERROR,
- LogLevel::ERROR => self::ERROR,
- LogLevel::WARNING => self::ERROR,
- LogLevel::NOTICE => self::ERROR,
- LogLevel::INFO => self::ERROR,
- LogLevel::DEBUG => self::ERROR,
- ConsoleLogLevel::SUCCESS => self::ERROR,
- ];
-
- /**
- * Interpolates context values into the message placeholders.
- *
- * @author PHP Framework Interoperability Group
- *
- * @param string $message
- * @param array $context
- *
- * @return string
- */
- private function interpolate($message, array $context)
- {
- // build a replacement array with braces around the context keys
- $replace = array();
- foreach ($context as $key => $val) {
- if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) {
- $replace[sprintf('{%s}', $key)] = $val;
- }
- }
-
- // interpolate replacement values into the message and return
- return strtr($message, $replace);
- }
-}
diff --git a/vendor/consolidation/log/src/LoggerManager.php b/vendor/consolidation/log/src/LoggerManager.php
deleted file mode 100644
index 920206430..000000000
--- a/vendor/consolidation/log/src/LoggerManager.php
+++ /dev/null
@@ -1,121 +0,0 @@
-
- */
-class LoggerManager extends AbstractLogger implements StylableLoggerInterface
-{
- /** @var LoggerInterface[] */
- protected $loggers = [];
- /** @var LoggerInterface */
- protected $fallbackLogger = null;
- /** @var LogOutputStylerInterface */
- protected $outputStyler;
- /** @var array */
- protected $formatFunctionMap = [];
-
- /**
- * reset removes all loggers from the manager.
- */
- public function reset()
- {
- $this->loggers = [];
- return $this;
- }
-
- /**
- * setLogOutputStyler will remember a style that
- * should be applied to every stylable logger
- * added to this manager.
- */
- public function setLogOutputStyler(LogOutputStylerInterface $outputStyler, array $formatFunctionMap = array())
- {
- $this->outputStyler = $outputStyler;
- $this->formatFunctionMap = $this->formatFunctionMap;
- }
-
- /**
- * add adds a named logger to the manager,
- * replacing any logger of the same name.
- *
- * @param string $name Name of logger to add
- * @param LoggerInterface $logger Logger to send messages to
- */
- public function add($name, LoggerInterface $logger)
- {
- // If this manager has been given a log style,
- // and the logger being added accepts a log
- // style, then copy our style to the logger
- // being added.
- if ($this->outputStyler && $logger instanceof StylableLoggerInterface) {
- $logger->setLogOutputStyler($this->outputStyler, $this->formatFunctionMap);
- }
- $this->loggers[$name] = $logger;
- return $this;
- }
-
- /**
- * remove a named logger from the manager.
- *
- * @param string $name Name of the logger to remove.
- */
- public function remove($name)
- {
- unset($this->loggers[$name]);
- return $this;
- }
-
- /**
- * fallbackLogger provides a logger that will
- * be used only in instances where someone logs
- * to the logger manager at a time when there
- * are no other loggers registered. If there is
- * no fallback logger, then the log messages
- * are simply dropped.
- *
- * @param LoggerInterface $logger Logger to use as the fallback logger
- */
- public function fallbackLogger(LoggerInterface $logger)
- {
- $this->fallbackLogger = $logger;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function log($level, $message, array $context = array())
- {
- foreach ($this->getLoggers() as $logger) {
- $logger->log($level, $message, $context);
- }
- }
-
- /**
- * Return either the list of registered loggers,
- * or a single-element list containing only the
- * fallback logger.
- */
- protected function getLoggers()
- {
- if (!empty($this->loggers)) {
- return $this->loggers;
- }
- if (isset($this->fallbackLogger)) {
- return [ $this->fallbackLogger ];
- }
- return [];
- }
-}
diff --git a/vendor/consolidation/log/src/StylableLoggerInterface.php b/vendor/consolidation/log/src/StylableLoggerInterface.php
deleted file mode 100644
index 9b872846d..000000000
--- a/vendor/consolidation/log/src/StylableLoggerInterface.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
- */
-interface StylableLoggerInterface
-{
- public function setLogOutputStyler(LogOutputStylerInterface $outputStyler, array $formatFunctionMap = array());
-}
diff --git a/vendor/consolidation/log/src/SymfonyLogOutputStyler.php b/vendor/consolidation/log/src/SymfonyLogOutputStyler.php
deleted file mode 100644
index 12ce49f3f..000000000
--- a/vendor/consolidation/log/src/SymfonyLogOutputStyler.php
+++ /dev/null
@@ -1,65 +0,0 @@
-text($message);
- }
-
- public function success($symfonyStyle, $level, $message, $context)
- {
- $symfonyStyle->success($message);
- }
-
- public function error($symfonyStyle, $level, $message, $context)
- {
- $symfonyStyle->error($message);
- }
-
- public function warning($symfonyStyle, $level, $message, $context)
- {
- $symfonyStyle->warning($message);
- }
-
- public function note($symfonyStyle, $level, $message, $context)
- {
- $symfonyStyle->note($message);
- }
-
- public function caution($symfonyStyle, $level, $message, $context)
- {
- $symfonyStyle->caution($message);
- }
-}
diff --git a/vendor/consolidation/log/src/UnstyledLogOutputStyler.php b/vendor/consolidation/log/src/UnstyledLogOutputStyler.php
deleted file mode 100644
index 6513ce340..000000000
--- a/vendor/consolidation/log/src/UnstyledLogOutputStyler.php
+++ /dev/null
@@ -1,97 +0,0 @@
-writeln($message);
- }
-
- /**
- * {@inheritdoc}
- */
- public function log($output, $level, $message, $context)
- {
- return $this->write($output, $this->formatMessageByLevel($level, $message, $context), $context);
- }
-
- /**
- * {@inheritdoc}
- */
- public function success($output, $level, $message, $context)
- {
- return $this->write($output, $this->formatMessageByLevel($level, $message, $context), $context);
- }
-
- /**
- * {@inheritdoc}
- */
- public function error($output, $level, $message, $context)
- {
- return $this->write($output, $this->formatMessageByLevel($level, $message, $context), $context);
- }
-
- /**
- * {@inheritdoc}
- */
- public function warning($output, $level, $message, $context)
- {
- return $this->write($output, $this->formatMessageByLevel($level, $message, $context), $context);
- }
-
- /**
- * {@inheritdoc}
- */
- public function note($output, $level, $message, $context)
- {
- return $this->write($output, $this->formatMessageByLevel($level, $message, $context), $context);
- }
-
- /**
- * {@inheritdoc}
- */
- public function caution($output, $level, $message, $context)
- {
- return $this->write($output, $this->formatMessageByLevel($level, $message, $context), $context);
- }
-
- /**
- * Look up the label and message styles for the specified log level,
- * and use the log level as the label for the log message.
- */
- protected function formatMessageByLevel($level, $message, $context)
- {
- return " [$level] $message";
- }
-}
diff --git a/vendor/consolidation/log/tests/LogMethodTests.php b/vendor/consolidation/log/tests/LogMethodTests.php
deleted file mode 100644
index 40df315b9..000000000
--- a/vendor/consolidation/log/tests/LogMethodTests.php
+++ /dev/null
@@ -1,55 +0,0 @@
-output = new BufferedOutput();
- $this->output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
- $this->logger = new Logger($this->output);
- $this->logger->setLogOutputStyler(new UnstyledLogOutputStyler());
- }
-
- function testError() {
- $this->logger->error('Do not enter - wrong way.');
- $outputText = rtrim($this->output->fetch());
- $this->assertEquals(' [error] Do not enter - wrong way.', $outputText);
- }
-
- function testWarning() {
- $this->logger->warning('Steep grade.');
- $outputText = rtrim($this->output->fetch());
- $this->assertEquals(' [warning] Steep grade.', $outputText);
- }
-
- function testNotice() {
- $this->logger->notice('No loitering.');
- $outputText = rtrim($this->output->fetch());
- $this->assertEquals(' [notice] No loitering.', $outputText);
- }
-
- function testInfo() {
- $this->logger->info('Scenic route.');
- $outputText = rtrim($this->output->fetch());
- $this->assertEquals(' [info] Scenic route.', $outputText);
- }
-
- function testDebug() {
- $this->logger->debug('Counter incremented.');
- $outputText = rtrim($this->output->fetch());
- $this->assertEquals(' [debug] Counter incremented.', $outputText);
- }
-
- function testSuccess() {
- $this->logger->success('It worked!');
- $outputText = rtrim($this->output->fetch());
- $this->assertEquals(' [success] It worked!', $outputText);
- }
-}
diff --git a/vendor/consolidation/log/tests/LoggerManagerTests.php b/vendor/consolidation/log/tests/LoggerManagerTests.php
deleted file mode 100644
index fa2efabfe..000000000
--- a/vendor/consolidation/log/tests/LoggerManagerTests.php
+++ /dev/null
@@ -1,69 +0,0 @@
-setVerbosity(OutputInterface::VERBOSITY_DEBUG);
- $fallbackLogger = new Logger($fallbackOutput);
- $fallbackLogger->notice('This is the fallback logger');
-
- $primaryOutput = new BufferedOutput();
- $primaryOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
- $primaryLogger = new Logger($primaryOutput);
- $primaryLogger->notice('This is the primary logger');
-
- $replacementOutput = new BufferedOutput();
- $replacementOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
- $replacementLogger = new Logger($replacementOutput);
- $replacementLogger->notice('This is the replacement logger');
-
- $logger = new LoggerManager();
-
- $logger->notice('Uninitialized logger.');
- $logger->fallbackLogger($fallbackLogger);
- $logger->notice('Logger with fallback.');
- $logger->add('default', $primaryLogger);
- $logger->notice('Primary logger');
- $logger->add('default', $replacementLogger);
- $logger->notice('Replaced logger');
- $logger->reset();
- $logger->notice('Reset loggers');
-
- $fallbackActual = rtrim($fallbackOutput->fetch());
- $primaryActual = rtrim($primaryOutput->fetch());
- $replacementActual = rtrim($replacementOutput->fetch());
-
- $actual = "Fallback:\n====\n$fallbackActual\nPrimary:\n====\n$primaryActual\nReplacement:\n====\n$replacementActual";
-
- $actual = preg_replace('# *$#ms', '', $actual);
- $actual = preg_replace('#^ *$\n#ms', '', $actual);
-
- $expected = <<< __EOT__
-Fallback:
-====
- ! [NOTE] This is the fallback logger
- ! [NOTE] Logger with fallback.
- ! [NOTE] Reset loggers
-Primary:
-====
- ! [NOTE] This is the primary logger
- ! [NOTE] Primary logger
-Replacement:
-====
- ! [NOTE] This is the replacement logger
- ! [NOTE] Replaced logger
-__EOT__;
-
- $this->assertEquals($expected, $actual);
- }
-}
diff --git a/vendor/consolidation/log/tests/LoggerVerbosityAndStyleTests.php b/vendor/consolidation/log/tests/LoggerVerbosityAndStyleTests.php
deleted file mode 100644
index 1a96c2a89..000000000
--- a/vendor/consolidation/log/tests/LoggerVerbosityAndStyleTests.php
+++ /dev/null
@@ -1,165 +0,0 @@
-output = new BufferedOutput();
- //$this->output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
- $this->logger = new Logger($this->output);
- }
-
- public static function logTestValues()
- {
- /**
- * Use TEST_ALL_LOG_LEVELS to ensure that output is the same
- * in instances where the output does not vary by log level.
- */
- $TEST_ALL_LOG_LEVELS = [
- OutputInterface::VERBOSITY_DEBUG,
- OutputInterface::VERBOSITY_VERY_VERBOSE,
- OutputInterface::VERBOSITY_VERBOSE,
- OutputInterface::VERBOSITY_NORMAL
- ];
-
- // Tests that return the same value for multiple inputs
- // may use the expandProviderDataArrays method, and list
- // repeated scalars as array values. All permutations of
- // all array items will be calculated, and one test will
- // be generated for each one.
- return TestDataPermuter::expandProviderDataArrays([
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- $TEST_ALL_LOG_LEVELS,
- LogLevel::ERROR,
- 'Do not enter - wrong way.',
- ' [error] Do not enter - wrong way.',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- $TEST_ALL_LOG_LEVELS,
- LogLevel::WARNING,
- 'Steep grade.',
- ' [warning] Steep grade.',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- [
- OutputInterface::VERBOSITY_DEBUG,
- OutputInterface::VERBOSITY_VERY_VERBOSE,
- OutputInterface::VERBOSITY_VERBOSE,
- ],
- LogLevel::NOTICE,
- 'No loitering.',
- ' [notice] No loitering.',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- OutputInterface::VERBOSITY_NORMAL,
- LogLevel::NOTICE,
- 'No loitering.',
- '',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- OutputInterface::VERBOSITY_DEBUG,
- LogLevel::INFO,
- 'Scenic route.',
- ' [info] Scenic route.',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- OutputInterface::VERBOSITY_DEBUG,
- LogLevel::DEBUG,
- 'Counter incremented.',
- ' [debug] Counter incremented.',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- [
- OutputInterface::VERBOSITY_VERY_VERBOSE,
- OutputInterface::VERBOSITY_VERBOSE,
- OutputInterface::VERBOSITY_NORMAL
- ],
- LogLevel::DEBUG,
- 'Counter incremented.',
- '',
- ],
- [
- '\Consolidation\Log\UnstyledLogOutputStyler',
- $TEST_ALL_LOG_LEVELS,
- ConsoleLogLevel::SUCCESS,
- 'It worked!',
- ' [success] It worked!',
- ],
- [
- '\Consolidation\Log\LogOutputStyler',
- OutputInterface::VERBOSITY_NORMAL,
- ConsoleLogLevel::SUCCESS,
- 'It worked!',
- ' [success] It worked!',
- ],
- [
- '\Consolidation\Log\SymfonyLogOutputStyler',
- OutputInterface::VERBOSITY_DEBUG,
- LogLevel::WARNING,
- 'Steep grade.',
- "\n [WARNING] Steep grade.",
- ],
- [
- '\Consolidation\Log\SymfonyLogOutputStyler',
- OutputInterface::VERBOSITY_DEBUG,
- LogLevel::NOTICE,
- 'No loitering.',
- "\n ! [NOTE] No loitering.",
- ],
- [
- '\Consolidation\Log\SymfonyLogOutputStyler',
- OutputInterface::VERBOSITY_DEBUG,
- LogLevel::INFO,
- 'Scenic route.',
- "\n ! [NOTE] Scenic route.",
- ],
- [
- '\Consolidation\Log\SymfonyLogOutputStyler',
- OutputInterface::VERBOSITY_DEBUG,
- LogLevel::DEBUG,
- 'Counter incremented.',
- "\n ! [NOTE] Counter incremented.",
- ],
- [
- '\Consolidation\Log\SymfonyLogOutputStyler',
- OutputInterface::VERBOSITY_NORMAL,
- ConsoleLogLevel::SUCCESS,
- 'It worked!',
- "\n [OK] It worked!",
- ],
- ]);
- }
-
- /**
- * This is our only test method. It accepts all of the
- * permuted data from the data provider, and runs one
- * test on each one.
- *
- * @dataProvider logTestValues
- */
- function testLogging($styleClass, $verbocity, $level, $message, $expected) {
- $logStyler = new $styleClass;
- $this->logger->setLogOutputStyler($logStyler);
- $this->output->setVerbosity($verbocity);
- $this->logger->log($level, $message);
- $outputText = rtrim($this->output->fetch(), "\n\r\t ");
- $this->assertEquals($expected, $outputText);
- }
-}
diff --git a/vendor/consolidation/log/tests/src/TestDataPermuter.php b/vendor/consolidation/log/tests/src/TestDataPermuter.php
deleted file mode 100644
index c44ef53ab..000000000
--- a/vendor/consolidation/log/tests/src/TestDataPermuter.php
+++ /dev/null
@@ -1,81 +0,0 @@
- $values) {
- $tests = static::expandOneValue($tests, $substitute, $values);
- }
- return $tests;
- }
-
- /**
- * Given an array of test data, where each element is
- * data to pass to a unit test, find any element in any
- * one test item whose value is exactly $substitute.
- * Make a new test item for every item in $values, using
- * each as the substitution for $substitute.
- */
- public static function expandOneValue($tests, $substitute, $values)
- {
- $result = [];
-
- foreach($tests as $test) {
- $position = array_search($substitute, $test);
- if ($position === FALSE) {
- $result[] = $test;
- }
- else {
- foreach($values as $replacement) {
- $test[$position] = $replacement;
- $result[] = $test;
- }
- }
- }
-
- return $result;
- }
-}
diff --git a/vendor/consolidation/output-formatters/.editorconfig b/vendor/consolidation/output-formatters/.editorconfig
deleted file mode 100644
index 095771e67..000000000
--- a/vendor/consolidation/output-formatters/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[**.php]
-indent_style = space
-indent_size = 4
-
diff --git a/vendor/consolidation/output-formatters/CHANGELOG.md b/vendor/consolidation/output-formatters/CHANGELOG.md
deleted file mode 100644
index a85f0c9f2..000000000
--- a/vendor/consolidation/output-formatters/CHANGELOG.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# Change Log
-
-### 3.4.0 - 19 October 2018
-
-- Add an UnstucturedInterface marker interface, and update the 'string' format to not accept data types that implement this interface unless they also implement StringTransformationInterface.
-
-### 3.3.2 - 18 October 2018
-
-- Add a 'null' output formatter that accepts all data types and never produces output
-
-### 3.3.0 & 3.3.1 - 15 October 2018
-
-- Add UnstructuredListData and UnstructuredData to replace deprecated ListDataFromKeys
-- Support --field and --fields in commands that return UnstructuredData / UnstructuredListData
-- Support field remapping, e.g. `--fields=original as remapped`
-- Support field addressing, e.g. `--fields=a.b.c`
-- Automatically convert from RowsOfFields to UnstruturedListData and from PropertyList to UnstructuredData when user utilizes field remapping or field addressing features.
-
-### 3.2.1 - 25 May 2018
-
-- Rename g1a/composer-test-scenarios
-
-### 3.2.0 - 20 March 2018
-
-- Add RowsOfFieldsWithMetadata: allows commands to return an object with metadata that shows up in yaml/json (& etc.) formats, but is not shown in table/csv (& etc.).
-- Add NumericCellRenderer: allows commands to attach a renderer that will right-justify and add commas to numbers in a column.
-- Add optional var_dump output format.
-
-### 3.1.13 - 29 November 2017
-
-- Allow XML output for RowsOfFields (#60).
-- Allow Symfony 4 components and add make tests run on three versions of Symfony.
-
-### 3.1.12 - 12 October 2017
-
-- Bugfix: Use InputOption::VALUE_REQUIRED instead of InputOption::VALUE_OPTIONAL
- for injected options such as --format and --fields.
-- Bugfix: Ignore empty properties in the property parser.
-
-### 3.1.11 - 17 August 2017
-
-- Add ListDataFromKeys marker data type.
-
-### 3.1.10 - 6 June 2017
-
-- Typo in CalculateWidths::distributeLongColumns causes failure for some column width distributions
-
-### 3.1.9 - 8 May 2017
-
-- Improve wrapping algorithm
-
-### 3.1.7 - 20 Jan 2017
-
-- Add Windows testing
-
-### 3.1.6 - 8 Jan 2017
-
-- Move victorjonsson/markdowndocs to require-dev
-
-### 3.1.5 - 23 November 2016
-
-- When converting from XML to an array, use the 'id' or 'name' element as the array key value.
-
-### 3.1.4 - 20 November 2016
-
-- Add a 'list delimiter' formatter option, so that we can create a Drush-style table for property lists.
-
-### 3.1.1 ~ 3.1.3 - 18 November 2016
-
-- Fine-tune wordwrapping.
-
-### 3.1.0 - 17 November 2016
-
-- Add wordwrapping to table formatter.
-
-### 3.0.0 - 14 November 2016
-
-- **Breaking** The RenderCellInterface is now provided a reference to the entire row data. Existing clients need only add the new parameter to their method defnition to update.
-- Rename AssociativeList to PropertyList, as many people seemed to find the former name confusing. AssociativeList is still available for use to preserve backwards compatibility, but it is deprecated.
-
-
-### 2.1.0 - 7 November 2016
-
-- Add RenderCellCollections to structured lists, so that commands may add renderers to structured data without defining a new structured data subclass.
-- Throw an exception if the client requests a field that does not exist.
-- Remove unwanted extra layer of nesting when formatting an PropertyList with an array formatter (json, yaml, etc.).
-
-
-### 2.0.0 - 30 September 2016
-
-- **Breaking** The default `string` format now converts non-string results into a tab-separated-value table if possible. Commands may select a single field to emit in this instance with an annotation: `@default-string-field email`. By this means, a given command may by default emit a single value, but also provide more rich output that may be shown by selecting --format=table, --format=yaml or the like. This change might cause some commands to produce output in situations that previously were not documented as producing output.
-- **Breaking** FormatterManager::addFormatter() now takes the format identifier and a FormatterInterface, rather than an identifier and a Formatter classname (string).
-- --field is a synonym for --fields with a single field.
-- Wildcards and regular expressions can now be used in --fields expressions.
-
-
-### 1.1.0 - 14 September 2016
-
-Add tab-separated-value (tsv) formatter.
-
-
-### 1.0.0 - 19 May 2016
-
-First stable release.
diff --git a/vendor/consolidation/output-formatters/CONTRIBUTING.md b/vendor/consolidation/output-formatters/CONTRIBUTING.md
deleted file mode 100644
index 4d843cf74..000000000
--- a/vendor/consolidation/output-formatters/CONTRIBUTING.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Contributing to Consolidation
-
-Thank you for your interest in contributing to the Consolidation effort! Consolidation aims to provide reusable, loosely-coupled components useful for building command-line tools. Consolidation is built on top of Symfony Console, but aims to separate the tool from the implementation details of Symfony.
-
-Here are some of the guidelines you should follow to make the most of your efforts:
-
-## Code Style Guidelines
-
-Consolidation adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code.
-
-## Pull Request Guidelines
-
-Every pull request is run through:
-
- - phpcs -n --standard=PSR2 src
- - phpunit
- - [Scrutinizer](https://scrutinizer-ci.com/g/consolidation/output-formatters/)
-
-It is easy to run the unit tests and code sniffer locally; just run:
-
- - composer cs
-
-To run the code beautifier, which will fix many of the problems reported by phpcs:
-
- - composer cbf
-
-These two commands (`composer cs` and `composer cbf`) are defined in the `scripts` section of [composer.json](composer.json).
-
-After submitting a pull request, please examine the Scrutinizer report. It is not required to fix all Scrutinizer issues; you may ignore recommendations that you disagree with. The spacing patches produced by Scrutinizer do not conform to PSR2 standards, and therefore should never be applied. DocBlock patches may be applied at your discression. Things that Scrutinizer identifies as a bug nearly always need to be addressed.
-
-Pull requests must pass phpcs and phpunit in order to be merged; ideally, new functionality will also include new unit tests.
diff --git a/vendor/consolidation/output-formatters/LICENSE b/vendor/consolidation/output-formatters/LICENSE
deleted file mode 100644
index d2a8e001d..000000000
--- a/vendor/consolidation/output-formatters/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-Copyright (c) 2016-2018 Consolidation Org Developers
-
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-DEPENDENCY LICENSES:
-
-Name Version License
-dflydev/dot-access-data v1.1.0 MIT
-psr/log 1.0.2 MIT
-symfony/console v3.2.3 MIT
-symfony/debug v3.4.17 MIT
-symfony/finder v3.4.17 MIT
-symfony/polyfill-mbstring v1.9.0 MIT
diff --git a/vendor/consolidation/output-formatters/README.md b/vendor/consolidation/output-formatters/README.md
deleted file mode 100644
index a48bafb53..000000000
--- a/vendor/consolidation/output-formatters/README.md
+++ /dev/null
@@ -1,330 +0,0 @@
-# Consolidation\OutputFormatters
-
-Apply transformations to structured data to write output in different formats.
-
-[![Travis CI](https://travis-ci.org/consolidation/output-formatters.svg?branch=master)](https://travis-ci.org/consolidation/output-formatters)
-[![Windows CI](https://ci.appveyor.com/api/projects/status/umyfuujca6d2g2k6?svg=true)](https://ci.appveyor.com/project/greg-1-anderson/output-formatters)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/consolidation/output-formatters/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/consolidation/output-formatters/?branch=master)
-[![Coverage Status](https://coveralls.io/repos/github/consolidation/output-formatters/badge.svg?branch=master)](https://coveralls.io/github/consolidation/output-formatters?branch=master)
-[![License](https://poser.pugx.org/consolidation/output-formatters/license)](https://packagist.org/packages/consolidation/output-formatters)
-
-## Component Status
-
-Currently in use in [Robo](https://github.com/consolidation/Robo) (1.x+), [Drush](https://github.com/drush-ops/drush) (9.x+) and [Terminus](https://github.com/pantheon-systems/terminus) (1.x+).
-
-## Motivation
-
-Formatters are used to allow simple commandline tool commands to be implemented in a manner that is completely independent from the Symfony Console output interfaces. A command receives its input via its method parameters, and returns its result as structured data (e.g. a php standard object or array). The structured data is then formatted by a formatter, and the result is printed.
-
-This process is managed by the [Consolidation/AnnotationCommand](https://github.com/consolidation/annotation-command) project.
-
-## Library Usage
-
-This is a library intended to be used in some other project. Require from your composer.json file:
-```
- "require": {
- "consolidation/output-formatters": "~3"
- },
-```
-If you require the feature that allows a data table to be automatically reduced to a single element when the `string` format is selected, then you should require version ^2 instead. In most other respects, the 1.x and 2.x versions are compatible. See the [CHANGELOG](CHANGELOG.md) for details.
-
-## Example Formatter
-
-Simple formatters are very easy to write.
-```php
-class YamlFormatter implements FormatterInterface
-{
- public function write(OutputInterface $output, $data, FormatterOptions $options)
- {
- $dumper = new Dumper();
- $output->writeln($dumper->dump($data));
- }
-}
-```
-The formatter is passed the set of `$options` that the user provided on the command line. These may optionally be examined to alter the behavior of the formatter, if needed.
-
-Formatters may also implement different interfaces to alter the behavior of the rendering engine.
-
-- `ValidationInterface`: A formatter should implement this interface to test to see if the provided data type can be processed. Any formatter that does **not** implement this interface is presumed to operate exclusively on php arrays. The formatter manager will always convert any provided data into an array before passing it to a formatter that does not implement ValidationInterface. These formatters will not be made available when the returned data type cannot be converted into an array.
-- `OverrideRestructureInterface`: A formatter that implements this interface will be given the option to act on the provided structured data object before it restructures itself. See the section below on structured data for details on data restructuring.
-- `UnstructuredInterface`: A formatter that implements this interface will not be able to be formatted by the `string` formatter by default. Data structures that do not implement this interface will be automatically converted to a string when applicable; if this conversion fails, then no output is produced.
-- `StringTransformationInterface`: Implementing this interface allows a data type to provide a specific implementation for the conversion of the data to a string. Data types that implement both `UnstructuredInterface` and `StringTransformationInterface` may be used with the `string` format.
-
-## Configuring Formats for a Command
-
-Commands declare what type of data they return using a `@return` annotation, as usual:
-```php
- /**
- * Demonstrate formatters. Default format is 'table'.
- *
- * @field-labels
- * first: I
- * second: II
- * third: III
- * @default-string-field second
- * @usage try:formatters --format=yaml
- * @usage try:formatters --format=csv
- * @usage try:formatters --fields=first,third
- * @usage try:formatters --fields=III,II
- *
- * @return \Consolidation\OutputFormatters\StructuredData\RowsOfFields
- */
- public function tryFormatters($somthing = 'default', $options = ['format' => 'table', 'fields' => ''])
- {
- $outputData = [
- 'en' => [ 'first' => 'One', 'second' => 'Two', 'third' => 'Three' ],
- 'de' => [ 'first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei' ],
- 'jp' => [ 'first' => 'Ichi', 'second' => 'Ni', 'third' => 'San' ],
- 'es' => [ 'first' => 'Uno', 'second' => 'Dos', 'third' => 'Tres' ],
- ];
- return new RowsOfFields($outputData);
- }
-```
-The output-formatters library determines which output formats are applicable to the command by querying all available formats, and selecting any that are able to process the data type that is returned. Thus, if a new format is added to a program, it will automatically be available via any command that it works with. It is not necessary to hand-select the available formats on every command individually.
-
-### Structured Data
-
-Most formatters will operate on any array or ArrayObject data. Some formatters require that specific data types be used. The following data types, all of which are subclasses of ArrayObject, are available for use:
-
-- `RowsOfFields`: Each row contains an associative array of field:value pairs. It is also assumed that the fields of each row are the same for every row. This format is ideal for displaying in a table, with labels in the top row.
-- `RowsOfFieldsWithMetadata`: Equivalent to `RowsOfFields`, but allows for metadata to be attached to the result. The metadata is not displayed in table format, but is evident if the data is converted to another format (e.g. `yaml` or `json`). The table data may either be nested inside of a specially-designated element, with other elements being used as metadata, or, alternately, the metadata may be nested inside of an element, with all other elements being used as data.
-- `PropertyList`: Each row contains a field:value pair. Each field is unique. This format is ideal for displaying in a table, with labels in the first column and values in the second common.
-- `UnstructuredListData`: The result is assumed to be a list of items, with the key of each row being used as the row id. The data elements may contain any sort of array data. The elements on each row do not need to be uniform, and the data may be nested to arbitrary depths.
-- `UnstruturedData`: The result is an unstructured array nested to arbitrary levels.
-- `DOMDocument`: The standard PHP DOM document class may be used by functions that need to be able to presicely specify the exact attributes and children when the XML output format is used.
-- `ListDataFromKeys`: This data structure is deprecated. Use `UnstructuredListData` instead.
-
-Commands that need to produce XML output should return a DOMDocument as its return type. The formatter manager will do its best to convert from an array to a DOMDocument, or from a DOMDocument to an array, as needed. It is important to note that a DOMDocument does not have a 1-to-1 mapping with a PHP array. DOM elements contain both attributes and elements; a simple string property 'foo' may be represented either as or value . Also, there may be multiple XML elements with the same name, whereas php associative arrays must always have unique keys. When converting from an array to a DOM document, the XML formatter will default to representing the string properties of an array as attributes of the element. Sets of elements with the same name may be used only if they are wrapped in a containing parent element--e.g. one two . The XMLSchema class may be used to provide control over whether a property is rendered as an attribute or an element; however, in instances where the schema of the XML output is important, it is best for a function to return its result as a DOMDocument rather than an array.
-
-A function may also define its own structured data type to return, usually by extending one of the types mentioned above. If a custom structured data class implements an appropriate interface, then it can provide its own conversion function to one of the other data types:
-
-- `DomDataInterface`: The data object may produce a DOMDocument via its `getDomData()` method, which will be called in any instance where a DOM document is needed--typically with the xml formatter.
-- `ListDataInterface`: Any structured data object that implements this interface may use the `getListData()` method to produce the data set that will be used with the list formatter.
-- `TableDataInterface`: Any structured data object that implements this interface may use the `getTableData()` method to produce the data set that will be used with the table formatter.
-- `RenderCellInterface`: Structured data can also provide fine-grain control over how each cell in a table is rendered by implementing the RenderCellInterface. See the section below for information on how this is done.
-- `RestructureInterface`: The restructure interface can be implemented by a structured data object to restructure the data in response to options provided by the user. For example, the RowsOfFields and PropertyList data types use this interface to select and reorder the fields that were selected to appear in the output. Custom data types usually will not need to implement this interface, as they can inherit this behavior by extending RowsOfFields or PropertyList.
-
-Additionally, structured data may be simplified to arrays via an array simplification object. To provide an array simplifier, implement `SimplifyToArrayInterface`, and register the simplifier via `FormatterManager::addSimplifier()`.
-
-### Fields
-
-Some commands produce output that contain *fields*. A field may be either the key in a key/value pair, or it may be the label used in tabular output and so on.
-
-#### Declaring Default Fields
-
-If a command declares a very large number of fields, it is possible to display only a subset of the available options by way of the `@default-fields` annotation. The following example comes from Drush:
-```php
- /**
- * @command cache:get
- * @field-labels
- * cid: Cache ID
- * data: Data
- * created: Created
- * expire: Expire
- * tags: Tags
- * checksum: Checksum
- * valid: Valid
- * @default-fields cid,data,created,expire,tags
- * @return \Consolidation\OutputFormatters\StructuredData\PropertyList
- */
- public function get($cid, $bin = 'default', $options = ['format' => 'json'])
- {
- $result = ...
- return new PropertyList($result);
- }
-```
-All of the available fields will be listed in the `help` output for the command, and may be selected by listing the desired fields explicitly via the `--fields` option.
-
-To include all avalable fields, use `--fields=*`.
-
-#### Reordering Fields
-
-Commands that return table structured data with fields can be filtered and/or re-ordered by using the `--fields` option. These structured data types can also be formatted into a more generic type such as yaml or json, even after being filtered. This capabilities are not available if the data is returned in a bare php array. One of `RowsOfFields`, `PropertyList` or `UnstructuredListData` (or similar) must be used.
-
-When the `--fields` option is provided, the user may stipulate the exact fields to list on each row, and what order they should appear in. For example, if a command usually produces output using the `RowsOfFields` data type, as shown below:
-```
-$ ./app try:formatters
- ------ ------ -------
- I II III
- ------ ------ -------
- One Two Three
- Eins Zwei Drei
- Ichi Ni San
- Uno Dos Tres
- ------ ------ -------
-```
-Then the third and first fields may be selected as follows:
-```
- $ ./app try:formatters --fields=III,I
- ------- ------
- III I
- ------- ------
- Three One
- Drei Eins
- San Ichi
- Tres Uno
- ------- ------
-```
-To select a single column and strip away all formatting, use the `--field` option:
-```
-$ ./app try:formatters --field=II
-Two
-Zwei
-Ni
-Dos
-```
-Commands that produce deeply-nested data structures using the `UnstructuredData` and `UnstructuredListData` data type may also be manipulated using the `--fields` and `--field` options. It is possible to address items deep in the heirarchy using dot notation.
-
-The `UnstructuredData` type represents a single nested array with no requirements for uniform structure. The `UnstructuredListData` type is similar; it represents a list of `UnstructuredData` types. It is not required for the different elements in the list to have all of the same fields or structure, although it is expected that there will be a certain degree of similarity.
-
-In the example below, a command returns a list of stores of different kinds. Each store has common top-level elements such as `name`, `products` and `sale-items`. Each store might have different sorts of products with different attributes:
-```
-$ ./app try:nested
-bills-hardware:
- name: 'Bill''s Hardware'
- products:
- tools:
- electric-drill:
- price: '79.98'
- screwdriver:
- price: '8.99'
- sale-items:
- screwdriver: '4.99'
-alberts-supermarket:
- name: 'Albert''s Supermarket'
- products:
- fruits:
- strawberries:
- price: '2'
- units: lbs
- watermellons:
- price: '5'
- units: each
- sale-items:
- watermellons: '4.50'
-```
-Just as is the case with tabular output, it is possible to select only a certain set of fields to display with each output item:
-```
-$ ./app try:nested --fields=sale-items
-bills-hardware:
- sale-items:
- screwdriver: '4.99'
-alberts-supermarket:
- sale-items:
- watermellons: '4.50'
-```
-With unstructured data, it is also possible to remap the name of the field to something else:
-```
-$ ./robo try:nested --fields='sale-items as items'
-bills-hardware:
- items:
- screwdriver: '4.99'
-alberts-supermarket:
- items:
- watermellons: '4.50'
-```
-The field name `.` is special, though: it indicates that the named element should be omitted, and its value or children should be applied directly to the result row:
-```
-$ ./app try:nested --fields='sale-items as .'
-bills-hardware:
- screwdriver: '4.99'
-alberts-supermarket:
- watermellons: '4.50'
-```
-Finally, it is also possible to reach down into nested data structures and pull out information about an element or elements identified using "dot" notation:
-```
-$ ./app try:nested --fields=products.fruits.strawberries
-bills-hardware: { }
-alberts-supermarket:
- strawberries:
- price: '2'
- units: lbs
-```
-Commands that use `RowsOfFields` or `PropertyList` return type will be automatically converted to `UnstructuredListData` or `UnstructuredData`, respectively, whenever any field remapping is done. This will only work for data types such as `yaml` or `json` that can render unstructured data types. It is not possible to render unstructured data in a table, even if the resulting data happens to be uniform.
-
-### Filtering Specific Rows
-
-A command may allow the user to filter specific rows of data using simple boolean logic and/or regular expressions. For details, see the external library [consolidation/filter-via-dot-access-data](https://github.com/consolidation/filter-via-dot-access-data) that provides this capability.
-
-## Rendering Table Cells
-
-By default, both the RowsOfFields and PropertyList data types presume that the contents of each cell is a simple string. To render more complicated cell contents, create a custom structured data class by extending either RowsOfFields or PropertyList, as desired, and implement RenderCellInterface. The `renderCell()` method of your class will then be called for each cell, and you may act on it as appropriate.
-```php
-public function renderCell($key, $cellData, FormatterOptions $options, $rowData)
-{
- // 'my-field' is always an array; convert it to a comma-separated list.
- if ($key == 'my-field') {
- return implode(',', $cellData);
- }
- // MyStructuredCellType has its own render function
- if ($cellData instanceof MyStructuredCellType) {
- return $cellData->myRenderfunction();
- }
- // If we do not recognize the cell data, return it unchnaged.
- return $cellData;
-}
-```
-Note that if your data structure is printed with a formatter other than one such as the table formatter, it will still be reordered per the selected fields, but cell rendering will **not** be done.
-
-The RowsOfFields and PropertyList data types also allow objects that implement RenderCellInterface, as well as anonymous functions to be added directly to the data structure object itself. If this is done, then the renderer will be called for each cell in the table. An example of an attached renderer implemented as an anonymous function is shown below.
-```php
- return (new RowsOfFields($data))->addRendererFunction(
- function ($key, $cellData, FormatterOptions $options, $rowData) {
- if ($key == 'my-field') {
- return implode(',', $cellData);
- }
- return $cellData;
- }
- );
-```
-This project also provides a built-in cell renderer, NumericCellRenderer, that adds commas at the thousands place and right-justifies columns identified as numeric. An example of a numeric renderer attached to two columns of a data set is shown below.
-```php
-use Consolidation\OutputFormatters\StructuredData\NumericCellRenderer;
-...
- return (new RowsOfFields($data))->addRenderer(
- new NumericCellRenderer($data, ['population','cats-per-capita'])
- );
-```
-
-## API Usage
-
-It is recommended to use [Consolidation/AnnotationCommand](https://github.com/consolidation/annotation-command) to manage commands and formatters. See the [AnnotationCommand API Usage](https://github.com/consolidation/annotation-command#api-usage) for details.
-
-The FormatterManager may also be used directly, if desired:
-```php
-/**
- * @param OutputInterface $output Output stream to write to
- * @param string $format Data format to output in
- * @param mixed $structuredOutput Data to output
- * @param FormatterOptions $options Configuration informatin and User options
- */
-function doFormat(
- OutputInterface $output,
- string $format,
- array $data,
- FormatterOptions $options)
-{
- $formatterManager = new FormatterManager();
- $formatterManager->write(output, $format, $data, $options);
-}
-```
-The FormatterOptions class is used to hold the configuration for the command output--things such as the default field list for tabular output, and so on--and also the current user-selected options to use during rendering, which may be provided using a Symfony InputInterface object:
-```
-public function execute(InputInterface $input, OutputInterface $output)
-{
- $options = new FormatterOptions();
- $options
- ->setInput($input)
- ->setFieldLabels(['id' => 'ID', 'one' => 'First', 'two' => 'Second'])
- ->setDefaultStringField('id');
-
- $data = new RowsOfFields($this->getSomeData($input));
- return $this->doFormat($output, $options->getFormat(), $data, $options);
-}
-```
-## Comparison to Existing Solutions
-
-Formatters have been in use in Drush since version 5. Drush allows formatters to be defined using simple classes, some of which may be configured using metadata. Furthermore, nested formatters are also allowed; for example, a list formatter may be given another formatter to use to format each of its rows. Nested formatters also require nested metadata, causing the code that constructed formatters to become very complicated and unweildy.
-
-Consolidation/OutputFormatters maintains the simplicity of use provided by Drush formatters, but abandons nested metadata configuration in favor of using code in the formatter to configure itself, in order to keep the code simpler.
-
diff --git a/vendor/consolidation/output-formatters/composer.json b/vendor/consolidation/output-formatters/composer.json
deleted file mode 100644
index 773df59c6..000000000
--- a/vendor/consolidation/output-formatters/composer.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "name": "consolidation/output-formatters",
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload":{
- "psr-4":{
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\TestUtils\\": "tests/src"
- }
- },
- "require": {
- "php": ">=5.4.0",
- "dflydev/dot-access-data": "^1.1.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "satooshi/php-coveralls": "^2",
- "phpunit/phpunit": "^5.7.27",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "5.6.32"
- }
- },
- "scripts": {
- "api": "phpdoc-md generate src > docs/api.md",
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "scenario": "scenarios/install",
- "post-update-cmd": [
- "create-scenario symfony4 'symfony/console:^4.0' 'phpunit/phpunit:^6' --platform-php '7.1.3'",
- "create-scenario symfony3 'symfony/console:^3.4' 'symfony/finder:^3.4' 'symfony/var-dumper:^3.4' --platform-php '5.6.32'",
- "create-scenario symfony2 'symfony/console:^2.8' 'phpunit/phpunit:^4.8.36' --remove 'satooshi/php-coveralls' --platform-php '5.4' --no-lockfile",
- "dependency-licenses"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/output-formatters/composer.lock b/vendor/consolidation/output-formatters/composer.lock
deleted file mode 100644
index d07734208..000000000
--- a/vendor/consolidation/output-formatters/composer.lock
+++ /dev/null
@@ -1,2433 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "5232f66b194c337084b00c3d828a8e62",
- "packages": [
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.2.3",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "7a8405a9fc175f87fed8a3c40856b0d866d61936"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/7a8405a9fc175f87fed8a3c40856b0d866d61936",
- "reference": "7a8405a9fc175f87fed8a3c40856b0d866d61936",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.9",
- "symfony/debug": "~2.8|~3.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.8|~3.0",
- "symfony/filesystem": "~2.8|~3.0",
- "symfony/process": "~2.8|~3.0"
- },
- "suggest": {
- "psr/log": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/filesystem": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2017-02-06T12:04:21+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "0a612e9dfbd2ccce03eb174365f31ecdca930ff6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/0a612e9dfbd2ccce03eb174365f31ecdca930ff6",
- "reference": "0a612e9dfbd2ccce03eb174365f31ecdca930ff6",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T16:33:53+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "54ba444dddc5bd5708a34bd095ea67c6eb54644d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/54ba444dddc5bd5708a34bd095ea67c6eb54644d",
- "reference": "54ba444dddc5bd5708a34bd095ea67c6eb54644d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-03T08:46:40+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "2.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "a166fd15191aceab89f30c097e694b7cf3db4880"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/a166fd15191aceab89f30c097e694b7cf3db4880",
- "reference": "a166fd15191aceab89f30c097e694b7cf3db4880",
- "shasum": ""
- },
- "bin": [
- "scripts/create-scenario",
- "scripts/dependency-licenses",
- "scripts/install-scenario"
- ],
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-08-08T23:37:23+00:00"
- },
- {
- "name": "guzzlehttp/guzzle",
- "version": "6.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "shasum": ""
- },
- "require": {
- "guzzlehttp/promises": "^1.0",
- "guzzlehttp/psr7": "^1.4",
- "php": ">=5.5"
- },
- "require-dev": {
- "ext-curl": "*",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
- "psr/log": "^1.0"
- },
- "suggest": {
- "psr/log": "Required for using the Log middleware"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.3-dev"
- }
- },
- "autoload": {
- "files": [
- "src/functions_include.php"
- ],
- "psr-4": {
- "GuzzleHttp\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "time": "2018-04-22T15:46:56+00:00"
- },
- {
- "name": "guzzlehttp/promises",
- "version": "v1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/promises.git",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Promise\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle promises library",
- "keywords": [
- "promise"
- ],
- "time": "2016-12-20T10:07:11+00:00"
- },
- {
- "name": "guzzlehttp/psr7",
- "version": "1.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/psr7.git",
- "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
- "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Tobias Schultze",
- "homepage": "https://github.com/Tobion"
- }
- ],
- "description": "PSR-7 message implementation that also provides common utility methods",
- "keywords": [
- "http",
- "message",
- "request",
- "response",
- "stream",
- "uri",
- "url"
- ],
- "time": "2017-03-20T17:10:46+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "3.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-10T14:09:06+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
- },
- "require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
- },
- "suggest": {
- "ext-xdebug": "^2.5.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2017-04-02T07:44:40+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "5.7.27",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-02-01T05:50:59+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2017-06-30T09:13:00+00:00"
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "satooshi/php-coveralls",
- "version": "v2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "3eaf7eb689cdf6b86801a3843940d974dc657068"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/3eaf7eb689cdf6b86801a3843940d974dc657068",
- "reference": "3eaf7eb689cdf6b86801a3843940d974dc657068",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzlehttp/guzzle": "^6.0",
- "php": "^5.5 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/php-coveralls"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpCoveralls\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp",
- "role": "Original creator"
- },
- {
- "name": "Takashi Matsuo",
- "email": "tmatsuo@google.com"
- },
- {
- "name": "Google Inc"
- },
- {
- "name": "Dariusz Ruminski",
- "email": "dariusz.ruminski@gmail.com",
- "homepage": "https://github.com/keradus"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/php-coveralls/php-coveralls/graphs/contributors"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "abandoned": "php-coveralls/php-coveralls",
- "time": "2017-12-08T14:28:16+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-11-26T07:53:53+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-11-19T08:54:04+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-02-18T15:18:39+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-11-19T07:33:16+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2017-05-22T02:43:20+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "e5389132dc6320682de3643091121c048ff796b3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/e5389132dc6320682de3643091121c048ff796b3",
- "reference": "e5389132dc6320682de3643091121c048ff796b3",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-09-08T13:15:14+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "d69930fc337d767607267d57c20a7403d0a822a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/d69930fc337d767607267d57c20a7403d0a822a4",
- "reference": "d69930fc337d767607267d57c20a7403d0a822a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T12:28:39+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "05e52a39de52ba690aebaed462b2bc8a9649f0a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/05e52a39de52ba690aebaed462b2bc8a9649f0a4",
- "reference": "05e52a39de52ba690aebaed462b2bc8a9649f0a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-10-02T12:28:39+00:00"
- },
- {
- "name": "symfony/var-dumper",
- "version": "v3.4.17",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/var-dumper.git",
- "reference": "ff8ac19e97e5c7c3979236b584719a1190f84181"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/ff8ac19e97e5c7c3979236b584719a1190f84181",
- "reference": "ff8ac19e97e5c7c3979236b584719a1190f84181",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
- },
- "require-dev": {
- "ext-iconv": "*",
- "twig/twig": "~1.34|~2.4"
- },
- "suggest": {
- "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
- "ext-intl": "To show region name in time zone dump",
- "ext-symfony_debug": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "files": [
- "Resources/functions/dump.php"
- ],
- "psr-4": {
- "Symfony\\Component\\VarDumper\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony mechanism for exploring and dumping PHP variables",
- "homepage": "https://symfony.com",
- "keywords": [
- "debug",
- "dump"
- ],
- "time": "2018-10-02T16:33:53+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.3.18",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "af615970e265543a26ee712c958404eb9b7ac93d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/af615970e265543a26ee712c958404eb9b7ac93d",
- "reference": "af615970e265543a26ee712c958404eb9b7ac93d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "require-dev": {
- "symfony/console": "~2.8|~3.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-01-20T15:04:53+00:00"
- },
- {
- "name": "victorjonsson/markdowndocs",
- "version": "1.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/victorjonsson/PHP-Markdown-Documentation-Generator.git",
- "reference": "c5eb16ff5bd15ee60223883ddacba0ab8797268d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/victorjonsson/PHP-Markdown-Documentation-Generator/zipball/c5eb16ff5bd15ee60223883ddacba0ab8797268d",
- "reference": "c5eb16ff5bd15ee60223883ddacba0ab8797268d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": ">=2.6"
- },
- "require-dev": {
- "phpunit/phpunit": "3.7.23"
- },
- "bin": [
- "bin/phpdoc-md"
- ],
- "type": "library",
- "autoload": {
- "psr-0": {
- "PHPDocsMD": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Victor Jonsson",
- "email": "kontakt@victorjonsson.se"
- }
- ],
- "description": "Command line tool for generating markdown-formatted class documentation",
- "homepage": "https://github.com/victorjonsson/PHP-Markdown-Documentation-Generator",
- "time": "2017-04-20T09:52:47+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.6.32"
- }
-}
diff --git a/vendor/consolidation/output-formatters/mkdocs.yml b/vendor/consolidation/output-formatters/mkdocs.yml
deleted file mode 100644
index 4f36f2fa9..000000000
--- a/vendor/consolidation/output-formatters/mkdocs.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-site_name: Consolidation Output Formatters docs
-theme: readthedocs
-repo_url: https://github.com/consolidation/output-formatters
-include_search: true
-pages:
-- Home: index.md
-- API: api.md
diff --git a/vendor/consolidation/output-formatters/phpunit.xml.dist b/vendor/consolidation/output-formatters/phpunit.xml.dist
deleted file mode 100644
index 9a90fcecc..000000000
--- a/vendor/consolidation/output-formatters/phpunit.xml.dist
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- tests
-
-
-
-
-
-
-
-
- src
-
- FormatterInterface.php.php
- OverrideRestructureInterface.php.php
- RestructureInterface.php.php
- ValidationInterface.php
- Formatters/RenderDataInterface.php
- StructuredData/ListDataInterface.php.php
- StructuredData/RenderCellInterface.php.php
- StructuredData/TableDataInterface.php.php
-
-
-
-
diff --git a/vendor/consolidation/output-formatters/src/Exception/AbstractDataFormatException.php b/vendor/consolidation/output-formatters/src/Exception/AbstractDataFormatException.php
deleted file mode 100644
index fa29b1ddd..000000000
--- a/vendor/consolidation/output-formatters/src/Exception/AbstractDataFormatException.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getName() == 'ArrayObject')) {
- return 'an array';
- }
- return 'an instance of ' . $data->getName();
- }
- if (is_string($data)) {
- return 'a string';
- }
- if (is_object($data)) {
- return 'an instance of ' . get_class($data);
- }
- throw new \Exception("Undescribable data error: " . var_export($data, true));
- }
-
- protected static function describeAllowedTypes($allowedTypes)
- {
- if (is_array($allowedTypes) && !empty($allowedTypes)) {
- if (count($allowedTypes) > 1) {
- return static::describeListOfAllowedTypes($allowedTypes);
- }
- $allowedTypes = $allowedTypes[0];
- }
- return static::describeDataType($allowedTypes);
- }
-
- protected static function describeListOfAllowedTypes($allowedTypes)
- {
- $descriptions = [];
- foreach ($allowedTypes as $oneAllowedType) {
- $descriptions[] = static::describeDataType($oneAllowedType);
- }
- if (count($descriptions) == 2) {
- return "either {$descriptions[0]} or {$descriptions[1]}";
- }
- $lastDescription = array_pop($descriptions);
- $otherDescriptions = implode(', ', $descriptions);
- return "one of $otherDescriptions or $lastDescription";
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Exception/IncompatibleDataException.php b/vendor/consolidation/output-formatters/src/Exception/IncompatibleDataException.php
deleted file mode 100644
index ca13a65f4..000000000
--- a/vendor/consolidation/output-formatters/src/Exception/IncompatibleDataException.php
+++ /dev/null
@@ -1,19 +0,0 @@
- '\Consolidation\OutputFormatters\Formatters\NoOutputFormatter',
- 'string' => '\Consolidation\OutputFormatters\Formatters\StringFormatter',
- 'yaml' => '\Consolidation\OutputFormatters\Formatters\YamlFormatter',
- 'xml' => '\Consolidation\OutputFormatters\Formatters\XmlFormatter',
- 'json' => '\Consolidation\OutputFormatters\Formatters\JsonFormatter',
- 'print-r' => '\Consolidation\OutputFormatters\Formatters\PrintRFormatter',
- 'php' => '\Consolidation\OutputFormatters\Formatters\SerializeFormatter',
- 'var_export' => '\Consolidation\OutputFormatters\Formatters\VarExportFormatter',
- 'list' => '\Consolidation\OutputFormatters\Formatters\ListFormatter',
- 'csv' => '\Consolidation\OutputFormatters\Formatters\CsvFormatter',
- 'tsv' => '\Consolidation\OutputFormatters\Formatters\TsvFormatter',
- 'table' => '\Consolidation\OutputFormatters\Formatters\TableFormatter',
- 'sections' => '\Consolidation\OutputFormatters\Formatters\SectionsFormatter',
- ];
- if (class_exists('Symfony\Component\VarDumper\Dumper\CliDumper')) {
- $defaultFormatters['var_dump'] = '\Consolidation\OutputFormatters\Formatters\VarDumpFormatter';
- }
- foreach ($defaultFormatters as $id => $formatterClassname) {
- $formatter = new $formatterClassname;
- $this->addFormatter($id, $formatter);
- }
- $this->addFormatter('', $this->formatters['string']);
- }
-
- public function addDefaultSimplifiers()
- {
- // Add our default array simplifier (DOMDocument to array)
- $this->addSimplifier(new DomToArraySimplifier());
- }
-
- /**
- * Add a formatter
- *
- * @param string $key the identifier of the formatter to add
- * @param string $formatter the class name of the formatter to add
- * @return FormatterManager
- */
- public function addFormatter($key, FormatterInterface $formatter)
- {
- $this->formatters[$key] = $formatter;
- return $this;
- }
-
- /**
- * Add a simplifier
- *
- * @param SimplifyToArrayInterface $simplifier the array simplifier to add
- * @return FormatterManager
- */
- public function addSimplifier(SimplifyToArrayInterface $simplifier)
- {
- $this->arraySimplifiers[] = $simplifier;
- return $this;
- }
-
- /**
- * Return a set of InputOption based on the annotations of a command.
- * @param FormatterOptions $options
- * @return InputOption[]
- */
- public function automaticOptions(FormatterOptions $options, $dataType)
- {
- $automaticOptions = [];
-
- // At the moment, we only support automatic options for --format
- // and --fields, so exit if the command returns no data.
- if (!isset($dataType)) {
- return [];
- }
-
- $validFormats = $this->validFormats($dataType);
- if (empty($validFormats)) {
- return [];
- }
-
- $availableFields = $options->get(FormatterOptions::FIELD_LABELS);
- $hasDefaultStringField = $options->get(FormatterOptions::DEFAULT_STRING_FIELD);
- $defaultFormat = $hasDefaultStringField ? 'string' : ($availableFields ? 'table' : 'yaml');
-
- if (count($validFormats) > 1) {
- // Make an input option for --format
- $description = 'Format the result data. Available formats: ' . implode(',', $validFormats);
- $automaticOptions[FormatterOptions::FORMAT] = new InputOption(FormatterOptions::FORMAT, '', InputOption::VALUE_REQUIRED, $description, $defaultFormat);
- }
-
- $dataTypeClass = ($dataType instanceof \ReflectionClass) ? $dataType : new \ReflectionClass($dataType);
-
- if ($availableFields) {
- $defaultFields = $options->get(FormatterOptions::DEFAULT_FIELDS, [], '');
- $description = 'Available fields: ' . implode(', ', $this->availableFieldsList($availableFields));
- $automaticOptions[FormatterOptions::FIELDS] = new InputOption(FormatterOptions::FIELDS, '', InputOption::VALUE_REQUIRED, $description, $defaultFields);
- } elseif ($dataTypeClass->implementsInterface('Consolidation\OutputFormatters\StructuredData\RestructureInterface')) {
- $automaticOptions[FormatterOptions::FIELDS] = new InputOption(FormatterOptions::FIELDS, '', InputOption::VALUE_REQUIRED, 'Limit output to only the listed elements. Name top-level elements by key, e.g. "--fields=name,date", or use dot notation to select a nested element, e.g. "--fields=a.b.c as example".', []);
- }
-
- if (isset($automaticOptions[FormatterOptions::FIELDS])) {
- $automaticOptions[FormatterOptions::FIELD] = new InputOption(FormatterOptions::FIELD, '', InputOption::VALUE_REQUIRED, "Select just one field, and force format to 'string'.", '');
- }
-
- return $automaticOptions;
- }
-
- /**
- * Given a list of available fields, return a list of field descriptions.
- * @return string[]
- */
- protected function availableFieldsList($availableFields)
- {
- return array_map(
- function ($key) use ($availableFields) {
- return $availableFields[$key] . " ($key)";
- },
- array_keys($availableFields)
- );
- }
-
- /**
- * Return the identifiers for all valid data types that have been registered.
- *
- * @param mixed $dataType \ReflectionObject or other description of the produced data type
- * @return array
- */
- public function validFormats($dataType)
- {
- $validFormats = [];
- foreach ($this->formatters as $formatId => $formatterName) {
- $formatter = $this->getFormatter($formatId);
- if (!empty($formatId) && $this->isValidFormat($formatter, $dataType)) {
- $validFormats[] = $formatId;
- }
- }
- sort($validFormats);
- return $validFormats;
- }
-
- public function isValidFormat(FormatterInterface $formatter, $dataType)
- {
- if (is_array($dataType)) {
- $dataType = new \ReflectionClass('\ArrayObject');
- }
- if (!is_object($dataType) && !class_exists($dataType)) {
- return false;
- }
- if (!$dataType instanceof \ReflectionClass) {
- $dataType = new \ReflectionClass($dataType);
- }
- return $this->isValidDataType($formatter, $dataType);
- }
-
- public function isValidDataType(FormatterInterface $formatter, \ReflectionClass $dataType)
- {
- if ($this->canSimplifyToArray($dataType)) {
- if ($this->isValidFormat($formatter, [])) {
- return true;
- }
- }
- // If the formatter does not implement ValidationInterface, then
- // it is presumed that the formatter only accepts arrays.
- if (!$formatter instanceof ValidationInterface) {
- return $dataType->isSubclassOf('ArrayObject') || ($dataType->getName() == 'ArrayObject');
- }
- return $formatter->isValidDataType($dataType);
- }
-
- /**
- * Format and write output
- *
- * @param OutputInterface $output Output stream to write to
- * @param string $format Data format to output in
- * @param mixed $structuredOutput Data to output
- * @param FormatterOptions $options Formatting options
- */
- public function write(OutputInterface $output, $format, $structuredOutput, FormatterOptions $options)
- {
- // Convert the data to another format (e.g. converting from RowsOfFields to
- // UnstructuredListData when the fields indicate an unstructured transformation
- // is requested).
- $structuredOutput = $this->convertData($structuredOutput, $options);
-
- // TODO: If the $format is the default format (not selected by the user), and
- // if `convertData` switched us to unstructured data, then select a new default
- // format (e.g. yaml) if the selected format cannot render the converted data.
- $formatter = $this->getFormatter((string)$format);
-
- // If the data format is not applicable for the selected formatter, throw an error.
- if (!is_string($structuredOutput) && !$this->isValidFormat($formatter, $structuredOutput)) {
- $validFormats = $this->validFormats($structuredOutput);
- throw new InvalidFormatException((string)$format, $structuredOutput, $validFormats);
- }
- if ($structuredOutput instanceof FormatterAwareInterface) {
- $structuredOutput->setFormatter($formatter);
- }
- // Give the formatter a chance to override the options
- $options = $this->overrideOptions($formatter, $structuredOutput, $options);
- $restructuredOutput = $this->validateAndRestructure($formatter, $structuredOutput, $options);
- if ($formatter instanceof MetadataFormatterInterface) {
- $formatter->writeMetadata($output, $structuredOutput, $options);
- }
- $formatter->write($output, $restructuredOutput, $options);
- }
-
- protected function validateAndRestructure(FormatterInterface $formatter, $structuredOutput, FormatterOptions $options)
- {
- // Give the formatter a chance to do something with the
- // raw data before it is restructured.
- $overrideRestructure = $this->overrideRestructure($formatter, $structuredOutput, $options);
- if ($overrideRestructure) {
- return $overrideRestructure;
- }
-
- // Restructure the output data (e.g. select fields to display, etc.).
- $restructuredOutput = $this->restructureData($structuredOutput, $options);
-
- // Make sure that the provided data is in the correct format for the selected formatter.
- $restructuredOutput = $this->validateData($formatter, $restructuredOutput, $options);
-
- // Give the original data a chance to re-render the structured
- // output after it has been restructured and validated.
- $restructuredOutput = $this->renderData($formatter, $structuredOutput, $restructuredOutput, $options);
-
- return $restructuredOutput;
- }
-
- /**
- * Fetch the requested formatter.
- *
- * @param string $format Identifier for requested formatter
- * @return FormatterInterface
- */
- public function getFormatter($format)
- {
- // The client must inject at least one formatter before asking for
- // any formatters; if not, we will provide all of the usual defaults
- // as a convenience.
- if (empty($this->formatters)) {
- $this->addDefaultFormatters();
- $this->addDefaultSimplifiers();
- }
- if (!$this->hasFormatter($format)) {
- throw new UnknownFormatException($format);
- }
- $formatter = $this->formatters[$format];
- return $formatter;
- }
-
- /**
- * Test to see if the stipulated format exists
- */
- public function hasFormatter($format)
- {
- return array_key_exists($format, $this->formatters);
- }
-
- /**
- * Render the data as necessary (e.g. to select or reorder fields).
- *
- * @param FormatterInterface $formatter
- * @param mixed $originalData
- * @param mixed $restructuredData
- * @param FormatterOptions $options Formatting options
- * @return mixed
- */
- public function renderData(FormatterInterface $formatter, $originalData, $restructuredData, FormatterOptions $options)
- {
- if ($formatter instanceof RenderDataInterface) {
- return $formatter->renderData($originalData, $restructuredData, $options);
- }
- return $restructuredData;
- }
-
- /**
- * Determine if the provided data is compatible with the formatter being used.
- *
- * @param FormatterInterface $formatter Formatter being used
- * @param mixed $structuredOutput Data to validate
- * @return mixed
- */
- public function validateData(FormatterInterface $formatter, $structuredOutput, FormatterOptions $options)
- {
- // If the formatter implements ValidationInterface, then let it
- // test the data and throw or return an error
- if ($formatter instanceof ValidationInterface) {
- return $formatter->validate($structuredOutput);
- }
- // If the formatter does not implement ValidationInterface, then
- // it will never be passed an ArrayObject; we will always give
- // it a simple array.
- $structuredOutput = $this->simplifyToArray($structuredOutput, $options);
- // If we could not simplify to an array, then throw an exception.
- // We will never give a formatter anything other than an array
- // unless it validates that it can accept the data type.
- if (!is_array($structuredOutput)) {
- throw new IncompatibleDataException(
- $formatter,
- $structuredOutput,
- []
- );
- }
- return $structuredOutput;
- }
-
- protected function simplifyToArray($structuredOutput, FormatterOptions $options)
- {
- // We can do nothing unless the provided data is an object.
- if (!is_object($structuredOutput)) {
- return $structuredOutput;
- }
- // Check to see if any of the simplifiers can convert the given data
- // set to an array.
- $outputDataType = new \ReflectionClass($structuredOutput);
- foreach ($this->arraySimplifiers as $simplifier) {
- if ($simplifier->canSimplify($outputDataType)) {
- $structuredOutput = $simplifier->simplifyToArray($structuredOutput, $options);
- }
- }
- // Convert data structure back into its original form, if necessary.
- if ($structuredOutput instanceof OriginalDataInterface) {
- return $structuredOutput->getOriginalData();
- }
- // Convert \ArrayObjects to a simple array.
- if ($structuredOutput instanceof \ArrayObject) {
- return $structuredOutput->getArrayCopy();
- }
- return $structuredOutput;
- }
-
- protected function canSimplifyToArray(\ReflectionClass $structuredOutput)
- {
- foreach ($this->arraySimplifiers as $simplifier) {
- if ($simplifier->canSimplify($structuredOutput)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Convert from one format to another if necessary prior to restructuring.
- */
- public function convertData($structuredOutput, FormatterOptions $options)
- {
- if ($structuredOutput instanceof ConversionInterface) {
- return $structuredOutput->convert($options);
- }
- return $structuredOutput;
- }
-
- /**
- * Restructure the data as necessary (e.g. to select or reorder fields).
- *
- * @param mixed $structuredOutput
- * @param FormatterOptions $options
- * @return mixed
- */
- public function restructureData($structuredOutput, FormatterOptions $options)
- {
- if ($structuredOutput instanceof RestructureInterface) {
- return $structuredOutput->restructure($options);
- }
- return $structuredOutput;
- }
-
- /**
- * Allow the formatter access to the raw structured data prior
- * to restructuring. For example, the 'list' formatter may wish
- * to display the row keys when provided table output. If this
- * function returns a result that does not evaluate to 'false',
- * then that result will be used as-is, and restructuring and
- * validation will not occur.
- *
- * @param mixed $structuredOutput
- * @param FormatterOptions $options
- * @return mixed
- */
- public function overrideRestructure(FormatterInterface $formatter, $structuredOutput, FormatterOptions $options)
- {
- if ($formatter instanceof OverrideRestructureInterface) {
- return $formatter->overrideRestructure($structuredOutput, $options);
- }
- }
-
- /**
- * Allow the formatter to mess with the configuration options before any
- * transformations et. al. get underway.
- * @param FormatterInterface $formatter
- * @param mixed $structuredOutput
- * @param FormatterOptions $options
- * @return FormatterOptions
- */
- public function overrideOptions(FormatterInterface $formatter, $structuredOutput, FormatterOptions $options)
- {
- if ($formatter instanceof OverrideOptionsInterface) {
- return $formatter->overrideOptions($structuredOutput, $options);
- }
- return $options;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/CsvFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/CsvFormatter.php
deleted file mode 100644
index d39c27b48..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/CsvFormatter.php
+++ /dev/null
@@ -1,107 +0,0 @@
-validDataTypes()
- );
- }
- // If the data was provided to us as a single array, then
- // convert it to a single row.
- if (is_array($structuredData) && !empty($structuredData)) {
- $firstRow = reset($structuredData);
- if (!is_array($firstRow)) {
- return [$structuredData];
- }
- }
- return $structuredData;
- }
-
- /**
- * Return default values for formatter options
- * @return array
- */
- protected function getDefaultFormatterOptions()
- {
- return [
- FormatterOptions::INCLUDE_FIELD_LABELS => true,
- FormatterOptions::DELIMITER => ',',
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function write(OutputInterface $output, $data, FormatterOptions $options)
- {
- $defaults = $this->getDefaultFormatterOptions();
-
- $includeFieldLabels = $options->get(FormatterOptions::INCLUDE_FIELD_LABELS, $defaults);
- if ($includeFieldLabels && ($data instanceof TableTransformation)) {
- $headers = $data->getHeaders();
- $this->writeOneLine($output, $headers, $options);
- }
-
- foreach ($data as $line) {
- $this->writeOneLine($output, $line, $options);
- }
- }
-
- protected function writeOneLine(OutputInterface $output, $data, $options)
- {
- $defaults = $this->getDefaultFormatterOptions();
- $delimiter = $options->get(FormatterOptions::DELIMITER, $defaults);
-
- $output->write($this->csvEscape($data, $delimiter));
- }
-
- protected function csvEscape($data, $delimiter = ',')
- {
- $buffer = fopen('php://temp', 'r+');
- fputcsv($buffer, $data, $delimiter);
- rewind($buffer);
- $csv = fgets($buffer);
- fclose($buffer);
- return $csv;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/FormatterAwareInterface.php b/vendor/consolidation/output-formatters/src/Formatters/FormatterAwareInterface.php
deleted file mode 100644
index 788a4d083..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/FormatterAwareInterface.php
+++ /dev/null
@@ -1,9 +0,0 @@
-formatter = $formatter;
- }
-
- public function getFormatter()
- {
- return $this->formatter;
- }
-
- public function isHumanReadable()
- {
- return $this->formatter && $this->formatter instanceof \Consolidation\OutputFormatters\Formatters\HumanReadableFormat;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/FormatterInterface.php b/vendor/consolidation/output-formatters/src/Formatters/FormatterInterface.php
deleted file mode 100644
index 224e3dca3..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/FormatterInterface.php
+++ /dev/null
@@ -1,18 +0,0 @@
-writeln(json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/ListFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/ListFormatter.php
deleted file mode 100644
index 01fce5248..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/ListFormatter.php
+++ /dev/null
@@ -1,59 +0,0 @@
-writeln(implode("\n", $data));
- }
-
- /**
- * @inheritdoc
- */
- public function overrideRestructure($structuredOutput, FormatterOptions $options)
- {
- // If the structured data implements ListDataInterface,
- // then we will render whatever data its 'getListData'
- // method provides.
- if ($structuredOutput instanceof ListDataInterface) {
- return $this->renderData($structuredOutput, $structuredOutput->getListData($options), $options);
- }
- }
-
- /**
- * @inheritdoc
- */
- public function renderData($originalData, $restructuredData, FormatterOptions $options)
- {
- if ($originalData instanceof RenderCellInterface) {
- return $this->renderEachCell($originalData, $restructuredData, $options);
- }
- return $restructuredData;
- }
-
- protected function renderEachCell($originalData, $restructuredData, FormatterOptions $options)
- {
- foreach ($restructuredData as $key => $cellData) {
- $restructuredData[$key] = $originalData->renderCell($key, $cellData, $options, $restructuredData);
- }
- return $restructuredData;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/MetadataFormatterInterface.php b/vendor/consolidation/output-formatters/src/Formatters/MetadataFormatterInterface.php
deleted file mode 100644
index 4147e274c..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/MetadataFormatterInterface.php
+++ /dev/null
@@ -1,17 +0,0 @@
-get(FormatterOptions::METADATA_TEMPLATE);
- if (!$template) {
- return;
- }
- if (!$structuredOutput instanceof MetadataInterface) {
- return;
- }
- $metadata = $structuredOutput->getMetadata();
- if (empty($metadata)) {
- return;
- }
- $message = $this->interpolate($template, $metadata);
- return $output->writeln($message);
- }
-
- /**
- * Interpolates context values into the message placeholders.
- *
- * @author PHP Framework Interoperability Group
- *
- * @param string $message
- * @param array $context
- *
- * @return string
- */
- private function interpolate($message, array $context)
- {
- // build a replacement array with braces around the context keys
- $replace = array();
- foreach ($context as $key => $val) {
- if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) {
- $replace[sprintf('{%s}', $key)] = $val;
- }
- }
-
- // interpolate replacement values into the message and return
- return strtr($message, $replace);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/NoOutputFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/NoOutputFormatter.php
deleted file mode 100644
index 143947555..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/NoOutputFormatter.php
+++ /dev/null
@@ -1,40 +0,0 @@
-writeln(print_r($data, true));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/RenderDataInterface.php b/vendor/consolidation/output-formatters/src/Formatters/RenderDataInterface.php
deleted file mode 100644
index a4da8e0ed..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/RenderDataInterface.php
+++ /dev/null
@@ -1,19 +0,0 @@
-renderEachCell($originalData, $restructuredData, $options);
- }
- return $restructuredData;
- }
-
- protected function renderEachCell($originalData, $restructuredData, FormatterOptions $options)
- {
- foreach ($restructuredData as $id => $row) {
- foreach ($row as $key => $cellData) {
- $restructuredData[$id][$key] = $originalData->renderCell($key, $cellData, $options, $row);
- }
- }
- return $restructuredData;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/SectionsFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/SectionsFormatter.php
deleted file mode 100644
index 89ed27077..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/SectionsFormatter.php
+++ /dev/null
@@ -1,72 +0,0 @@
-validDataTypes()
- );
- }
- return $structuredData;
- }
-
- /**
- * @inheritdoc
- */
- public function write(OutputInterface $output, $tableTransformer, FormatterOptions $options)
- {
- $table = new Table($output);
- $table->setStyle('compact');
- foreach ($tableTransformer as $rowid => $row) {
- $rowLabel = $tableTransformer->getRowLabel($rowid);
- $output->writeln('');
- $output->writeln($rowLabel);
- $sectionData = new PropertyList($row);
- $sectionOptions = new FormatterOptions([], $options->getOptions());
- $sectionTableTransformer = $sectionData->restructure($sectionOptions);
- $table->setRows($sectionTableTransformer->getTableData(true));
- $table->render();
- }
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/SerializeFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/SerializeFormatter.php
deleted file mode 100644
index f81513735..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/SerializeFormatter.php
+++ /dev/null
@@ -1,21 +0,0 @@
-writeln(serialize($data));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/StringFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/StringFormatter.php
deleted file mode 100644
index 1a008d985..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/StringFormatter.php
+++ /dev/null
@@ -1,95 +0,0 @@
-implementsInterface('\Consolidation\OutputFormatters\StructuredData\UnstructuredInterface') && !$dataType->implementsInterface('\Consolidation\OutputFormatters\Transformations\StringTransformationInterface')) {
- return false;
- }
- return true;
- }
-
- /**
- * @inheritdoc
- */
- public function write(OutputInterface $output, $data, FormatterOptions $options)
- {
- if (is_string($data)) {
- return $output->writeln($data);
- }
- return $this->reduceToSigleFieldAndWrite($output, $data, $options);
- }
-
- /**
- * @inheritdoc
- */
- public function overrideOptions($structuredOutput, FormatterOptions $options)
- {
- $defaultField = $options->get(FormatterOptions::DEFAULT_STRING_FIELD, [], '');
- $userFields = $options->get(FormatterOptions::FIELDS, [FormatterOptions::FIELDS => $options->get(FormatterOptions::FIELD)]);
- $optionsOverride = $options->override([]);
- if (empty($userFields) && !empty($defaultField)) {
- $optionsOverride->setOption(FormatterOptions::FIELDS, $defaultField);
- }
- return $optionsOverride;
- }
-
- /**
- * If the data provided to a 'string' formatter is a table, then try
- * to emit it in a simplified form (by default, TSV).
- *
- * @param OutputInterface $output
- * @param mixed $data
- * @param FormatterOptions $options
- */
- protected function reduceToSigleFieldAndWrite(OutputInterface $output, $data, FormatterOptions $options)
- {
- if ($data instanceof StringTransformationInterface) {
- $simplified = $data->simplifyToString($options);
- return $output->write($simplified);
- }
-
- $alternateFormatter = new TsvFormatter();
- try {
- $data = $alternateFormatter->validate($data);
- $alternateFormatter->write($output, $data, $options);
- } catch (\Exception $e) {
- }
- }
-
- /**
- * Always validate any data, though. This format will never
- * cause an error if it is selected for an incompatible data type; at
- * worse, it simply does not print any data.
- */
- public function validate($structuredData)
- {
- return $structuredData;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/TableFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/TableFormatter.php
deleted file mode 100644
index 6d6cfd82b..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/TableFormatter.php
+++ /dev/null
@@ -1,145 +0,0 @@
-validDataTypes()
- );
- }
- return $structuredData;
- }
-
- /**
- * @inheritdoc
- */
- public function write(OutputInterface $output, $tableTransformer, FormatterOptions $options)
- {
- $headers = [];
- $defaults = [
- FormatterOptions::TABLE_STYLE => 'consolidation',
- FormatterOptions::INCLUDE_FIELD_LABELS => true,
- ];
-
- $table = new Table($output);
-
- static::addCustomTableStyles($table);
-
- $table->setStyle($options->get(FormatterOptions::TABLE_STYLE, $defaults));
- $isList = $tableTransformer->isList();
- $includeHeaders = $options->get(FormatterOptions::INCLUDE_FIELD_LABELS, $defaults);
- $listDelimiter = $options->get(FormatterOptions::LIST_DELIMITER, $defaults);
-
- $headers = $tableTransformer->getHeaders();
- $data = $tableTransformer->getTableData($includeHeaders && $isList);
-
- if ($listDelimiter) {
- if (!empty($headers)) {
- array_splice($headers, 1, 0, ':');
- }
- $data = array_map(function ($item) {
- array_splice($item, 1, 0, ':');
- return $item;
- }, $data);
- }
-
- if ($includeHeaders && !$isList) {
- $table->setHeaders($headers);
- }
-
- // todo: $output->getFormatter();
- $data = $this->wrap($headers, $data, $table->getStyle(), $options);
- $table->setRows($data);
- $table->render();
- }
-
- /**
- * Wrap the table data
- * @param array $data
- * @param TableStyle $tableStyle
- * @param FormatterOptions $options
- * @return array
- */
- protected function wrap($headers, $data, TableStyle $tableStyle, FormatterOptions $options)
- {
- $wrapper = new WordWrapper($options->get(FormatterOptions::TERMINAL_WIDTH));
- $wrapper->setPaddingFromStyle($tableStyle);
- if (!empty($headers)) {
- $headerLengths = array_map(function ($item) {
- return strlen($item);
- }, $headers);
- $wrapper->setMinimumWidths($headerLengths);
- }
- return $wrapper->wrap($data);
- }
-
- /**
- * Add our custom table style(s) to the table.
- */
- protected static function addCustomTableStyles($table)
- {
- // The 'consolidation' style is the same as the 'symfony-style-guide'
- // style, except it maintains the colored headers used in 'default'.
- $consolidationStyle = new TableStyle();
- $consolidationStyle
- ->setHorizontalBorderChar('-')
- ->setVerticalBorderChar(' ')
- ->setCrossingChar(' ')
- ;
- $table->setStyleDefinition('consolidation', $consolidationStyle);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/TsvFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/TsvFormatter.php
deleted file mode 100644
index 8a827424e..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/TsvFormatter.php
+++ /dev/null
@@ -1,40 +0,0 @@
- false,
- ];
- }
-
- protected function writeOneLine(OutputInterface $output, $data, $options)
- {
- $output->writeln($this->tsvEscape($data));
- }
-
- protected function tsvEscape($data)
- {
- return implode("\t", array_map(
- function ($item) {
- return str_replace(["\t", "\n"], ['\t', '\n'], $item);
- },
- $data
- ));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/VarDumpFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/VarDumpFormatter.php
deleted file mode 100644
index 99d713cca..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/VarDumpFormatter.php
+++ /dev/null
@@ -1,40 +0,0 @@
-cloneVar($data);
-
- if ($output instanceof StreamOutput) {
- // When stream output is used the dumper is smart enough to
- // determine whether or not to apply colors to the dump.
- // @see Symfony\Component\VarDumper\Dumper\CliDumper::supportsColors
- $dumper->dump($cloned_data, $output->getStream());
- } else {
- // @todo Use dumper return value to get output once we stop support
- // VarDumper v2.
- $stream = fopen('php://memory', 'r+b');
- $dumper->dump($cloned_data, $stream);
- $output->writeln(stream_get_contents($stream, -1, 0));
- fclose($stream);
- }
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/VarExportFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/VarExportFormatter.php
deleted file mode 100644
index 0303ba48c..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/VarExportFormatter.php
+++ /dev/null
@@ -1,21 +0,0 @@
-writeln(var_export($data, true));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/XmlFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/XmlFormatter.php
deleted file mode 100644
index 85b4e37e9..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/XmlFormatter.php
+++ /dev/null
@@ -1,79 +0,0 @@
-getDomData();
- }
- if ($structuredData instanceof \ArrayObject) {
- return $structuredData->getArrayCopy();
- }
- if (!is_array($structuredData)) {
- throw new IncompatibleDataException(
- $this,
- $structuredData,
- $this->validDataTypes()
- );
- }
- return $structuredData;
- }
-
- /**
- * @inheritdoc
- */
- public function write(OutputInterface $output, $dom, FormatterOptions $options)
- {
- if (is_array($dom)) {
- $schema = $options->getXmlSchema();
- $dom = $schema->arrayToXML($dom);
- }
- $dom->formatOutput = true;
- $output->writeln($dom->saveXML());
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Formatters/YamlFormatter.php b/vendor/consolidation/output-formatters/src/Formatters/YamlFormatter.php
deleted file mode 100644
index 07a8f21d0..000000000
--- a/vendor/consolidation/output-formatters/src/Formatters/YamlFormatter.php
+++ /dev/null
@@ -1,27 +0,0 @@
-writeln(Yaml::dump($data, PHP_INT_MAX, $indent, false, true));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Options/FormatterOptions.php b/vendor/consolidation/output-formatters/src/Options/FormatterOptions.php
deleted file mode 100644
index 68dd13094..000000000
--- a/vendor/consolidation/output-formatters/src/Options/FormatterOptions.php
+++ /dev/null
@@ -1,386 +0,0 @@
-configurationData = $configurationData;
- $this->options = $options;
- }
-
- /**
- * Create a new FormatterOptions object with new configuration data (provided),
- * and the same options data as this instance.
- *
- * @param array $configurationData
- * @return FormatterOptions
- */
- public function override($configurationData)
- {
- $override = new self();
- $override
- ->setConfigurationData($configurationData + $this->getConfigurationData())
- ->setOptions($this->getOptions());
- return $override;
- }
-
- public function setTableStyle($style)
- {
- return $this->setConfigurationValue(self::TABLE_STYLE, $style);
- }
-
- public function setDelimiter($delimiter)
- {
- return $this->setConfigurationValue(self::DELIMITER, $delimiter);
- }
-
- public function setListDelimiter($listDelimiter)
- {
- return $this->setConfigurationValue(self::LIST_DELIMITER, $listDelimiter);
- }
-
-
-
- public function setIncludeFieldLables($includFieldLables)
- {
- return $this->setConfigurationValue(self::INCLUDE_FIELD_LABELS, $includFieldLables);
- }
-
- public function setListOrientation($listOrientation)
- {
- return $this->setConfigurationValue(self::LIST_ORIENTATION, $listOrientation);
- }
-
- public function setRowLabels($rowLabels)
- {
- return $this->setConfigurationValue(self::ROW_LABELS, $rowLabels);
- }
-
- public function setDefaultFields($fields)
- {
- return $this->setConfigurationValue(self::DEFAULT_FIELDS, $fields);
- }
-
- public function setFieldLabels($fieldLabels)
- {
- return $this->setConfigurationValue(self::FIELD_LABELS, $fieldLabels);
- }
-
- public function setDefaultStringField($defaultStringField)
- {
- return $this->setConfigurationValue(self::DEFAULT_STRING_FIELD, $defaultStringField);
- }
-
- public function setWidth($width)
- {
- return $this->setConfigurationValue(self::TERMINAL_WIDTH, $width);
- }
-
- /**
- * Get a formatter option
- *
- * @param string $key
- * @param array $defaults
- * @param mixed $default
- * @return mixed
- */
- public function get($key, $defaults = [], $default = false)
- {
- $value = $this->fetch($key, $defaults, $default);
- return $this->parse($key, $value);
- }
-
- /**
- * Return the XmlSchema to use with --format=xml for data types that support
- * that. This is used when an array needs to be converted into xml.
- *
- * @return XmlSchema
- */
- public function getXmlSchema()
- {
- return new XmlSchema();
- }
-
- /**
- * Determine the format that was requested by the caller.
- *
- * @param array $defaults
- * @return string
- */
- public function getFormat($defaults = [])
- {
- return $this->get(self::FORMAT, [], $this->get(self::DEFAULT_FORMAT, $defaults, ''));
- }
-
- /**
- * Look up a key, and return its raw value.
- *
- * @param string $key
- * @param array $defaults
- * @param mixed $default
- * @return mixed
- */
- protected function fetch($key, $defaults = [], $default = false)
- {
- $defaults = $this->defaultsForKey($key, $defaults, $default);
- $values = $this->fetchRawValues($defaults);
- return $values[$key];
- }
-
- /**
- * Reduce provided defaults to the single item identified by '$key',
- * if it exists, or an empty array otherwise.
- *
- * @param string $key
- * @param array $defaults
- * @return array
- */
- protected function defaultsForKey($key, $defaults, $default = false)
- {
- if (array_key_exists($key, $defaults)) {
- return [$key => $defaults[$key]];
- }
- return [$key => $default];
- }
-
- /**
- * Look up all of the items associated with the provided defaults.
- *
- * @param array $defaults
- * @return array
- */
- protected function fetchRawValues($defaults = [])
- {
- return array_merge(
- $defaults,
- $this->getConfigurationData(),
- $this->getOptions(),
- $this->getInputOptions($defaults)
- );
- }
-
- /**
- * Given the raw value for a specific key, do any type conversion
- * (e.g. from a textual list to an array) needed for the data.
- *
- * @param string $key
- * @param mixed $value
- * @return mixed
- */
- protected function parse($key, $value)
- {
- $optionFormat = $this->getOptionFormat($key);
- if (!empty($optionFormat) && is_string($value)) {
- return $this->$optionFormat($value);
- }
- return $value;
- }
-
- /**
- * Convert from a textual list to an array
- *
- * @param string $value
- * @return array
- */
- public function parsePropertyList($value)
- {
- return PropertyParser::parse($value);
- }
-
- /**
- * Given a specific key, return the class method name of the
- * parsing method for data stored under this key.
- *
- * @param string $key
- * @return string
- */
- protected function getOptionFormat($key)
- {
- $propertyFormats = [
- self::ROW_LABELS => 'PropertyList',
- self::FIELD_LABELS => 'PropertyList',
- ];
- if (array_key_exists($key, $propertyFormats)) {
- return "parse{$propertyFormats[$key]}";
- }
- return '';
- }
-
- /**
- * Change the configuration data for this formatter options object.
- *
- * @param array $configurationData
- * @return FormatterOptions
- */
- public function setConfigurationData($configurationData)
- {
- $this->configurationData = $configurationData;
- return $this;
- }
-
- /**
- * Change one configuration value for this formatter option.
- *
- * @param string $key
- * @param mixed $value
- * @return FormetterOptions
- */
- protected function setConfigurationValue($key, $value)
- {
- $this->configurationData[$key] = $value;
- return $this;
- }
-
- /**
- * Change one configuration value for this formatter option, but only
- * if it does not already have a value set.
- *
- * @param string $key
- * @param mixed $value
- * @return FormetterOptions
- */
- public function setConfigurationDefault($key, $value)
- {
- if (!array_key_exists($key, $this->configurationData)) {
- return $this->setConfigurationValue($key, $value);
- }
- return $this;
- }
-
- /**
- * Return a reference to the configuration data for this object.
- *
- * @return array
- */
- public function getConfigurationData()
- {
- return $this->configurationData;
- }
-
- /**
- * Set all of the options that were specified by the user for this request.
- *
- * @param array $options
- * @return FormatterOptions
- */
- public function setOptions($options)
- {
- $this->options = $options;
- return $this;
- }
-
- /**
- * Change one option value specified by the user for this request.
- *
- * @param string $key
- * @param mixed $value
- * @return FormatterOptions
- */
- public function setOption($key, $value)
- {
- $this->options[$key] = $value;
- return $this;
- }
-
- /**
- * Return a reference to the user-specified options for this request.
- *
- * @return array
- */
- public function getOptions()
- {
- return $this->options;
- }
-
- /**
- * Provide a Symfony Console InputInterface containing the user-specified
- * options for this request.
- *
- * @param InputInterface $input
- * @return type
- */
- public function setInput(InputInterface $input)
- {
- $this->input = $input;
- }
-
- /**
- * Return all of the options from the provided $defaults array that
- * exist in our InputInterface object.
- *
- * @param array $defaults
- * @return array
- */
- public function getInputOptions($defaults)
- {
- if (!isset($this->input)) {
- return [];
- }
- $options = [];
- foreach ($defaults as $key => $value) {
- if ($this->input->hasOption($key)) {
- $result = $this->input->getOption($key);
- if (isset($result)) {
- $options[$key] = $this->input->getOption($key);
- }
- }
- }
- return $options;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Options/OverrideOptionsInterface.php b/vendor/consolidation/output-formatters/src/Options/OverrideOptionsInterface.php
deleted file mode 100644
index 04a09e967..000000000
--- a/vendor/consolidation/output-formatters/src/Options/OverrideOptionsInterface.php
+++ /dev/null
@@ -1,17 +0,0 @@
-getArrayCopy());
- }
-
- protected function getReorderedFieldLabels($data, $options, $defaults)
- {
- $reorderer = new ReorderFields();
- $fieldLabels = $reorderer->reorder(
- $this->getFields($options, $defaults),
- $options->get(FormatterOptions::FIELD_LABELS, $defaults),
- $data
- );
- return $fieldLabels;
- }
-
- protected function getFields($options, $defaults)
- {
- $fieldShortcut = $options->get(FormatterOptions::FIELD);
- if (!empty($fieldShortcut)) {
- return [$fieldShortcut];
- }
- $result = $options->get(FormatterOptions::FIELDS, $defaults);
- if (!empty($result)) {
- return $result;
- }
- return $options->get(FormatterOptions::DEFAULT_FIELDS, $defaults);
- }
-
- /**
- * A structured list may provide its own set of default options. These
- * will be used in place of the command's default options (from the
- * annotations) in instances where the user does not provide the options
- * explicitly (on the commandline) or implicitly (via a configuration file).
- *
- * @return array
- */
- protected function defaultOptions()
- {
- return [
- FormatterOptions::FIELDS => [],
- FormatterOptions::FIELD_LABELS => [],
- ];
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/AbstractStructuredList.php b/vendor/consolidation/output-formatters/src/StructuredData/AbstractStructuredList.php
deleted file mode 100644
index ee25af686..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/AbstractStructuredList.php
+++ /dev/null
@@ -1,52 +0,0 @@
-defaultOptions();
- $fieldLabels = $this->getReorderedFieldLabels($data, $options, $defaults);
-
- $tableTransformer = $this->instantiateTableTransformation($data, $fieldLabels, $options->get(FormatterOptions::ROW_LABELS, $defaults));
- if ($options->get(FormatterOptions::LIST_ORIENTATION, $defaults)) {
- $tableTransformer->setLayout(TableTransformation::LIST_LAYOUT);
- }
-
- return $tableTransformer;
- }
-
- protected function instantiateTableTransformation($data, $fieldLabels, $rowLabels)
- {
- return new TableTransformation($data, $fieldLabels, $rowLabels);
- }
-
- protected function defaultOptions()
- {
- return [
- FormatterOptions::ROW_LABELS => [],
- FormatterOptions::DEFAULT_FIELDS => [],
- ] + parent::defaultOptions();
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/AssociativeList.php b/vendor/consolidation/output-formatters/src/StructuredData/AssociativeList.php
deleted file mode 100644
index 2a8b327bf..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/AssociativeList.php
+++ /dev/null
@@ -1,12 +0,0 @@
-renderFunction = $renderFunction;
- }
-
- /**
- * {@inheritdoc}
- */
- public function renderCell($key, $cellData, FormatterOptions $options, $rowData)
- {
- return call_user_func($this->renderFunction, $key, $cellData, $options, $rowData);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/ConversionInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/ConversionInterface.php
deleted file mode 100644
index 6f6447b33..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/ConversionInterface.php
+++ /dev/null
@@ -1,15 +0,0 @@
- [ ... rows of field data ... ],
- * 'metadata1' => '...',
- * 'metadata2' => '...',
- * ]
- *
- * Example 2: nested metadata
- *
- * [
- * 'metadata' => [ ... metadata items ... ],
- * 'rowid1' => [ ... ],
- * 'rowid2' => [ ... ],
- * ]
- *
- * It is, of course, also possible that both the data and
- * the metadata may be nested inside subelements.
- */
-trait MetadataHolderTrait
-{
- protected $dataKey = false;
- protected $metadataKey = false;
-
- public function getDataKey()
- {
- return $this->dataKey;
- }
-
- public function setDataKey($key)
- {
- $this->dataKey = $key;
- return $this;
- }
-
- public function getMetadataKey()
- {
- return $this->metadataKey;
- }
-
- public function setMetadataKey($key)
- {
- $this->metadataKey = $key;
- return $this;
- }
-
- public function extractData($data)
- {
- if ($this->metadataKey) {
- unset($data[$this->metadataKey]);
- }
- if ($this->dataKey) {
- if (!isset($data[$this->dataKey])) {
- return [];
- }
- return $data[$this->dataKey];
- }
- return $data;
- }
-
- public function extractMetadata($data)
- {
- if (!$this->dataKey && !$this->metadataKey) {
- return [];
- }
- if ($this->dataKey) {
- unset($data[$this->dataKey]);
- }
- if ($this->metadataKey) {
- if (!isset($data[$this->metadataKey])) {
- return [];
- }
- return $data[$this->metadataKey];
- }
- return $data;
- }
-
- public function reconstruct($data, $metadata)
- {
- $reconstructedData = ($this->dataKey) ? [$this->dataKey => $data] : $data;
- $reconstructedMetadata = ($this->metadataKey) ? [$this->metadataKey => $metadata] : $metadata;
-
- return $reconstructedData + $reconstructedMetadata;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/MetadataInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/MetadataInterface.php
deleted file mode 100644
index 965082085..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/MetadataInterface.php
+++ /dev/null
@@ -1,12 +0,0 @@
-addRenderer(
- * new NumericCellRenderer($data, ['value'])
- * );
- *
- */
-class NumericCellRenderer implements RenderCellInterface, FormatterAwareInterface
-{
- use FormatterAwareTrait;
-
- protected $data;
- protected $renderedColumns;
- protected $widths = [];
-
- /**
- * NumericCellRenderer constructor
- */
- public function __construct($data, $renderedColumns)
- {
- $this->data = $data;
- $this->renderedColumns = $renderedColumns;
- }
-
- /**
- * @inheritdoc
- */
- public function renderCell($key, $cellData, FormatterOptions $options, $rowData)
- {
- if (!$this->isRenderedFormat($options) || !$this->isRenderedColumn($key)) {
- return $cellData;
- }
- if ($this->isRenderedData($cellData)) {
- $cellData = $this->formatCellData($cellData);
- }
- return $this->justifyCellData($key, $cellData);
- }
-
- /**
- * Right-justify the cell data.
- */
- protected function justifyCellData($key, $cellData)
- {
- return str_pad($cellData, $this->columnWidth($key), " ", STR_PAD_LEFT);
- }
-
- /**
- * Determine if this format is to be formatted.
- */
- protected function isRenderedFormat(FormatterOptions $options)
- {
- return $this->isHumanReadable();
- }
-
- /**
- * Determine if this is a column that should be formatted.
- */
- protected function isRenderedColumn($key)
- {
- return array_key_exists($key, $this->renderedColumns);
- }
-
- /**
- * Ignore cell data that should not be formatted.
- */
- protected function isRenderedData($cellData)
- {
- return is_numeric($cellData);
- }
-
- /**
- * Format the cell data.
- */
- protected function formatCellData($cellData)
- {
- return number_format($this->convertCellDataToString($cellData));
- }
-
- /**
- * This formatter only works with columns whose columns are strings.
- * To use this formatter for another purpose, override this method
- * to ensure that the cell data is a string before it is formatted.
- */
- protected function convertCellDataToString($cellData)
- {
- return $cellData;
- }
-
- /**
- * Get the cached column width for the provided key.
- */
- protected function columnWidth($key)
- {
- if (!isset($this->widths[$key])) {
- $this->widths[$key] = $this->calculateColumnWidth($key);
- }
- return $this->widths[$key];
- }
-
- /**
- * Using the cached table data, calculate the largest width
- * for the data in the table for use when right-justifying.
- */
- protected function calculateColumnWidth($key)
- {
- $width = isset($this->renderedColumns[$key]) ? $this->renderedColumns[$key] : 0;
- foreach ($this->data as $row) {
- $data = $this->formatCellData($row[$key]);
- $width = max(strlen($data), $width);
- }
- return $width;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/OriginalDataInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/OriginalDataInterface.php
deleted file mode 100644
index f73856a95..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/OriginalDataInterface.php
+++ /dev/null
@@ -1,11 +0,0 @@
-defaultOptions();
- $fields = $this->getFields($options, $defaults);
- if (FieldProcessor::hasUnstructuredFieldAccess($fields)) {
- return new UnstructuredData($this->getArrayCopy());
- }
- return $this;
- }
-
- /**
- * Restructure this data for output by converting it into a table
- * transformation object.
- *
- * @param FormatterOptions $options Options that affect output formatting.
- * @return Consolidation\OutputFormatters\Transformations\TableTransformation
- */
- public function restructure(FormatterOptions $options)
- {
- $data = [$this->getArrayCopy()];
- $options->setConfigurationDefault('list-orientation', true);
- $tableTransformer = $this->createTableTransformation($data, $options);
- return $tableTransformer;
- }
-
- public function getListData(FormatterOptions $options)
- {
- $data = $this->getArrayCopy();
-
- $defaults = $this->defaultOptions();
- $fieldLabels = $this->getReorderedFieldLabels([$data], $options, $defaults);
-
- $result = [];
- foreach ($fieldLabels as $id => $label) {
- $result[$id] = $data[$id];
- }
- return $result;
- }
-
- protected function defaultOptions()
- {
- return [
- FormatterOptions::LIST_ORIENTATION => true,
- ] + parent::defaultOptions();
- }
-
- protected function instantiateTableTransformation($data, $fieldLabels, $rowLabels)
- {
- return new PropertyListTableTransformation($data, $fieldLabels, $rowLabels);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/RenderCellCollectionInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/RenderCellCollectionInterface.php
deleted file mode 100644
index f88573d8b..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/RenderCellCollectionInterface.php
+++ /dev/null
@@ -1,18 +0,0 @@
- [],
- RenderCellCollectionInterface::PRIORITY_NORMAL => [],
- RenderCellCollectionInterface::PRIORITY_FALLBACK => [],
- ];
-
- /**
- * Add a renderer
- *
- * @return $this
- */
- public function addRenderer(RenderCellInterface $renderer, $priority = RenderCellCollectionInterface::PRIORITY_NORMAL)
- {
- $this->rendererList[$priority][] = $renderer;
- return $this;
- }
-
- /**
- * Add a callable as a renderer
- *
- * @return $this
- */
- public function addRendererFunction(callable $rendererFn, $priority = RenderCellCollectionInterface::PRIORITY_NORMAL)
- {
- $renderer = new CallableRenderer($rendererFn);
- return $this->addRenderer($renderer, $priority);
- }
-
- /**
- * {@inheritdoc}
- */
- public function renderCell($key, $cellData, FormatterOptions $options, $rowData)
- {
- $flattenedRendererList = array_reduce(
- $this->rendererList,
- function ($carry, $item) {
- return array_merge($carry, $item);
- },
- []
- );
-
- foreach ($flattenedRendererList as $renderer) {
- if ($renderer instanceof FormatterAwareInterface) {
- $renderer->setFormatter($this->getFormatter());
- }
- $cellData = $renderer->renderCell($key, $cellData, $options, $rowData);
- }
- return $cellData;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/RenderCellInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/RenderCellInterface.php
deleted file mode 100644
index ff200846c..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/RenderCellInterface.php
+++ /dev/null
@@ -1,22 +0,0 @@
-defaultOptions();
- $fields = $this->getFields($options, $defaults);
- if (FieldProcessor::hasUnstructuredFieldAccess($fields)) {
- return new UnstructuredListData($this->getArrayCopy());
- }
- return $this;
- }
-
- /**
- * Restructure this data for output by converting it into a table
- * transformation object.
- *
- * @param FormatterOptions $options Options that affect output formatting.
- * @return Consolidation\OutputFormatters\Transformations\TableTransformation
- */
- public function restructure(FormatterOptions $options)
- {
- $data = $this->getArrayCopy();
- return $this->createTableTransformation($data, $options);
- }
-
- public function getListData(FormatterOptions $options)
- {
- return array_keys($this->getArrayCopy());
- }
-
- protected function defaultOptions()
- {
- return [
- FormatterOptions::LIST_ORIENTATION => false,
- ] + parent::defaultOptions();
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/RowsOfFieldsWithMetadata.php b/vendor/consolidation/output-formatters/src/StructuredData/RowsOfFieldsWithMetadata.php
deleted file mode 100644
index 98aedbde5..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/RowsOfFieldsWithMetadata.php
+++ /dev/null
@@ -1,39 +0,0 @@
-getArrayCopy();
- $data = $this->extractData($originalData);
- $tableTranformer = $this->createTableTransformation($data, $options);
- $tableTranformer->setOriginalData($this);
- return $tableTranformer;
- }
-
- public function getMetadata()
- {
- return $this->extractMetadata($this->getArrayCopy());
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/TableDataInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/TableDataInterface.php
deleted file mode 100644
index 98daa09c7..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/TableDataInterface.php
+++ /dev/null
@@ -1,16 +0,0 @@
-defaultOptions();
- $fields = $this->getFields($options, $defaults);
-
- return new UnstructuredDataTransformation($this->getArrayCopy(), FieldProcessor::processFieldAliases($fields));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/UnstructuredInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/UnstructuredInterface.php
deleted file mode 100644
index e064a66fc..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/UnstructuredInterface.php
+++ /dev/null
@@ -1,14 +0,0 @@
-defaultOptions();
- $fields = $this->getFields($options, $defaults);
-
- return new UnstructuredDataListTransformation($this->getArrayCopy(), FieldProcessor::processFieldAliases($fields));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/Xml/DomDataInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/Xml/DomDataInterface.php
deleted file mode 100644
index 239ea7b6b..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/Xml/DomDataInterface.php
+++ /dev/null
@@ -1,12 +0,0 @@
- ['description'],
- ];
- $this->elementList = array_merge_recursive($elementList, $defaultElementList);
- }
-
- public function arrayToXML($structuredData)
- {
- $dom = new \DOMDocument('1.0', 'UTF-8');
- $topLevelElement = $this->getTopLevelElementName($structuredData);
- $this->addXmlData($dom, $dom, $topLevelElement, $structuredData);
- return $dom;
- }
-
- protected function addXmlData(\DOMDocument $dom, $xmlParent, $elementName, $structuredData)
- {
- $element = $dom->createElement($elementName);
- $xmlParent->appendChild($element);
- if (is_string($structuredData)) {
- $element->appendChild($dom->createTextNode($structuredData));
- return;
- }
- $this->addXmlChildren($dom, $element, $elementName, $structuredData);
- }
-
- protected function addXmlChildren(\DOMDocument $dom, $xmlParent, $elementName, $structuredData)
- {
- foreach ($structuredData as $key => $value) {
- $this->addXmlDataOrAttribute($dom, $xmlParent, $elementName, $key, $value);
- }
- }
-
- protected function addXmlDataOrAttribute(\DOMDocument $dom, $xmlParent, $elementName, $key, $value)
- {
- $childElementName = $this->getDefaultElementName($elementName);
- $elementName = $this->determineElementName($key, $childElementName, $value);
- if (($elementName != $childElementName) && $this->isAttribute($elementName, $key, $value)) {
- $xmlParent->setAttribute($key, $value);
- return;
- }
- $this->addXmlData($dom, $xmlParent, $elementName, $value);
- }
-
- protected function determineElementName($key, $childElementName, $value)
- {
- if (is_numeric($key)) {
- return $childElementName;
- }
- if (is_object($value)) {
- $value = (array)$value;
- }
- if (!is_array($value)) {
- return $key;
- }
- if (array_key_exists('id', $value) && ($value['id'] == $key)) {
- return $childElementName;
- }
- if (array_key_exists('name', $value) && ($value['name'] == $key)) {
- return $childElementName;
- }
- return $key;
- }
-
- protected function getTopLevelElementName($structuredData)
- {
- return 'document';
- }
-
- protected function getDefaultElementName($parentElementName)
- {
- $singularName = $this->singularForm($parentElementName);
- if (isset($singularName)) {
- return $singularName;
- }
- return 'item';
- }
-
- protected function isAttribute($parentElementName, $elementName, $value)
- {
- if (!is_string($value)) {
- return false;
- }
- return !$this->inElementList($parentElementName, $elementName) && !$this->inElementList('*', $elementName);
- }
-
- protected function inElementList($parentElementName, $elementName)
- {
- if (!array_key_exists($parentElementName, $this->elementList)) {
- return false;
- }
- return in_array($elementName, $this->elementList[$parentElementName]);
- }
-
- protected function singularForm($name)
- {
- if (substr($name, strlen($name) - 1) == "s") {
- return substr($name, 0, strlen($name) - 1);
- }
- }
-
- protected function isAssoc($data)
- {
- return array_keys($data) == range(0, count($data));
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/StructuredData/Xml/XmlSchemaInterface.php b/vendor/consolidation/output-formatters/src/StructuredData/Xml/XmlSchemaInterface.php
deleted file mode 100644
index a1fad6629..000000000
--- a/vendor/consolidation/output-formatters/src/StructuredData/Xml/XmlSchemaInterface.php
+++ /dev/null
@@ -1,73 +0,0 @@
-
- *
- *
- * blah
- *
- *
- * a
- * b
- * c
- *
- *
- *
- *
- *
- *
- * This could be:
- *
- * [
- * 'id' => 1,
- * 'name' => 'doc',
- * 'foobars' =>
- * [
- * [
- * 'id' => '123',
- * 'name' => 'blah',
- * 'widgets' =>
- * [
- * [
- * 'foo' => 'a',
- * 'bar' => 'b',
- * 'baz' => 'c',
- * ]
- * ],
- * ],
- * ]
- * ]
- *
- * The challenge is more in going from an array back to the more
- * structured xml format. Note that any given key => string mapping
- * could represent either an attribute, or a simple XML element
- * containing only a string value. In general, we do *not* want to add
- * extra layers of nesting in the data structure to disambiguate between
- * these kinds of data, as we want the source data to render cleanly
- * into other formats, e.g. yaml, json, et. al., and we do not want to
- * force every data provider to have to consider the optimal xml schema
- * for their data.
- *
- * Our strategy, therefore, is to expect clients that wish to provide
- * a very specific xml representation to return a DOMDocument, and,
- * for other data structures where xml is a secondary concern, then we
- * will use some default heuristics to convert from arrays to xml.
- */
-interface XmlSchemaInterface
-{
- /**
- * Convert data to a format suitable for use in a list.
- * By default, the array values will be used. Implement
- * ListDataInterface to use some other criteria (e.g. array keys).
- *
- * @return \DOMDocument
- */
- public function arrayToXml($structuredData);
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/DomToArraySimplifier.php b/vendor/consolidation/output-formatters/src/Transformations/DomToArraySimplifier.php
deleted file mode 100644
index e7a6c8794..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/DomToArraySimplifier.php
+++ /dev/null
@@ -1,237 +0,0 @@
-isSubclassOf('\Consolidation\OutputFormatters\StructuredData\Xml\DomDataInterface') ||
- $dataType->isSubclassOf('DOMDocument') ||
- ($dataType->getName() == 'DOMDocument');
- }
-
- public function simplifyToArray($structuredData, FormatterOptions $options)
- {
- if ($structuredData instanceof DomDataInterface) {
- $structuredData = $structuredData->getDomData();
- }
- if ($structuredData instanceof \DOMDocument) {
- // $schema = $options->getXmlSchema();
- $simplified = $this->elementToArray($structuredData);
- $structuredData = array_shift($simplified);
- }
- return $structuredData;
- }
-
- /**
- * Recursively convert the provided DOM element into a php array.
- *
- * @param \DOMNode $element
- * @return array
- */
- protected function elementToArray(\DOMNode $element)
- {
- if ($element->nodeType == XML_TEXT_NODE) {
- return $element->nodeValue;
- }
- $attributes = $this->getNodeAttributes($element);
- $children = $this->getNodeChildren($element);
-
- return array_merge($attributes, $children);
- }
-
- /**
- * Get all of the attributes of the provided element.
- *
- * @param \DOMNode $element
- * @return array
- */
- protected function getNodeAttributes($element)
- {
- if (empty($element->attributes)) {
- return [];
- }
- $attributes = [];
- foreach ($element->attributes as $key => $attribute) {
- $attributes[$key] = $attribute->nodeValue;
- }
- return $attributes;
- }
-
- /**
- * Get all of the children of the provided element, with simplification.
- *
- * @param \DOMNode $element
- * @return array
- */
- protected function getNodeChildren($element)
- {
- if (empty($element->childNodes)) {
- return [];
- }
- $uniformChildrenName = $this->hasUniformChildren($element);
- // Check for plurals.
- if (in_array($element->nodeName, ["{$uniformChildrenName}s", "{$uniformChildrenName}es"])) {
- $result = $this->getUniformChildren($element->nodeName, $element);
- } else {
- $result = $this->getUniqueChildren($element->nodeName, $element);
- }
- return array_filter($result);
- }
-
- /**
- * Get the data from the children of the provided node in preliminary
- * form.
- *
- * @param \DOMNode $element
- * @return array
- */
- protected function getNodeChildrenData($element)
- {
- $children = [];
- foreach ($element->childNodes as $key => $value) {
- $children[$key] = $this->elementToArray($value);
- }
- return $children;
- }
-
- /**
- * Determine whether the children of the provided element are uniform.
- * @see getUniformChildren(), below.
- *
- * @param \DOMNode $element
- * @return boolean
- */
- protected function hasUniformChildren($element)
- {
- $last = false;
- foreach ($element->childNodes as $key => $value) {
- $name = $value->nodeName;
- if (!$name) {
- return false;
- }
- if ($last && ($name != $last)) {
- return false;
- }
- $last = $name;
- }
- return $last;
- }
-
- /**
- * Convert the children of the provided DOM element into an array.
- * Here, 'uniform' means that all of the element names of the children
- * are identical, and further, the element name of the parent is the
- * plural form of the child names. When the children are uniform in
- * this way, then the parent element name will be used as the key to
- * store the children in, and the child list will be returned as a
- * simple list with their (duplicate) element names omitted.
- *
- * @param string $parentKey
- * @param \DOMNode $element
- * @return array
- */
- protected function getUniformChildren($parentKey, $element)
- {
- $children = $this->getNodeChildrenData($element);
- $simplifiedChildren = [];
- foreach ($children as $key => $value) {
- if ($this->valueCanBeSimplified($value)) {
- $value = array_shift($value);
- }
- $id = $this->getIdOfValue($value);
- if ($id) {
- $simplifiedChildren[$parentKey][$id] = $value;
- } else {
- $simplifiedChildren[$parentKey][] = $value;
- }
- }
- return $simplifiedChildren;
- }
-
- /**
- * Determine whether the provided value has additional unnecessary
- * nesting. {"color": "red"} is converted to "red". No other
- * simplification is done.
- *
- * @param \DOMNode $value
- * @return boolean
- */
- protected function valueCanBeSimplified($value)
- {
- if (!is_array($value)) {
- return false;
- }
- if (count($value) != 1) {
- return false;
- }
- $data = array_shift($value);
- return is_string($data);
- }
-
- /**
- * If the object has an 'id' or 'name' element, then use that
- * as the array key when storing this value in its parent.
- * @param mixed $value
- * @return string
- */
- protected function getIdOfValue($value)
- {
- if (!is_array($value)) {
- return false;
- }
- if (array_key_exists('id', $value)) {
- return trim($value['id'], '-');
- }
- if (array_key_exists('name', $value)) {
- return trim($value['name'], '-');
- }
- }
-
- /**
- * Convert the children of the provided DOM element into an array.
- * Here, 'unique' means that all of the element names of the children are
- * different. Since the element names will become the key of the
- * associative array that is returned, so duplicates are not supported.
- * If there are any duplicates, then an exception will be thrown.
- *
- * @param string $parentKey
- * @param \DOMNode $element
- * @return array
- */
- protected function getUniqueChildren($parentKey, $element)
- {
- $children = $this->getNodeChildrenData($element);
- if ((count($children) == 1) && (is_string($children[0]))) {
- return [$element->nodeName => $children[0]];
- }
- $simplifiedChildren = [];
- foreach ($children as $key => $value) {
- if (is_numeric($key) && is_array($value) && (count($value) == 1)) {
- $valueKeys = array_keys($value);
- $key = $valueKeys[0];
- $value = array_shift($value);
- }
- if (array_key_exists($key, $simplifiedChildren)) {
- throw new \Exception("Cannot convert data from a DOM document to an array, because <$key> appears more than once, and is not wrapped in a <{$key}s> element.");
- }
- $simplifiedChildren[$key] = $value;
- }
- return $simplifiedChildren;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/OverrideRestructureInterface.php b/vendor/consolidation/output-formatters/src/Transformations/OverrideRestructureInterface.php
deleted file mode 100644
index 51a6ea872..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/OverrideRestructureInterface.php
+++ /dev/null
@@ -1,17 +0,0 @@
-getArrayCopy();
- return $data[0];
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/PropertyParser.php b/vendor/consolidation/output-formatters/src/Transformations/PropertyParser.php
deleted file mode 100644
index ec1616afb..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/PropertyParser.php
+++ /dev/null
@@ -1,38 +0,0 @@
- 'red',
- * 'two' => 'white',
- * 'three' => 'blue',
- * ]
- */
-class PropertyParser
-{
- public static function parse($data)
- {
- if (!is_string($data)) {
- return $data;
- }
- $result = [];
- $lines = explode("\n", $data);
- foreach ($lines as $line) {
- list($key, $value) = explode(':', trim($line), 2) + ['', ''];
- if (!empty($key) && !empty($value)) {
- $result[$key] = trim($value);
- }
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/ReorderFields.php b/vendor/consolidation/output-formatters/src/Transformations/ReorderFields.php
deleted file mode 100644
index 40d111d58..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/ReorderFields.php
+++ /dev/null
@@ -1,129 +0,0 @@
-getSelectedFieldKeys($fields, $fieldLabels);
- if (empty($fields)) {
- return array_intersect_key($fieldLabels, $firstRow);
- }
- return $this->reorderFieldLabels($fields, $fieldLabels, $data);
- }
-
- protected function reorderFieldLabels($fields, $fieldLabels, $data)
- {
- $result = [];
- $firstRow = reset($data);
- if (!$firstRow) {
- $firstRow = $fieldLabels;
- }
- foreach ($fields as $field) {
- if (array_key_exists($field, $firstRow)) {
- if (array_key_exists($field, $fieldLabels)) {
- $result[$field] = $fieldLabels[$field];
- }
- }
- }
- return $result;
- }
-
- protected function getSelectedFieldKeys($fields, $fieldLabels)
- {
- if (empty($fieldLabels)) {
- return [];
- }
- if (is_string($fields)) {
- $fields = explode(',', $fields);
- }
- $selectedFields = [];
- foreach ($fields as $field) {
- $matchedFields = $this->matchFieldInLabelMap($field, $fieldLabels);
- if (empty($matchedFields)) {
- throw new UnknownFieldException($field);
- }
- $selectedFields = array_merge($selectedFields, $matchedFields);
- }
- return $selectedFields;
- }
-
- protected function matchFieldInLabelMap($field, $fieldLabels)
- {
- $fieldRegex = $this->convertToRegex($field);
- return
- array_filter(
- array_keys($fieldLabels),
- function ($key) use ($fieldRegex, $fieldLabels) {
- $value = $fieldLabels[$key];
- return preg_match($fieldRegex, $value) || preg_match($fieldRegex, $key);
- }
- );
- }
-
- /**
- * Convert the provided string into a regex suitable for use in
- * preg_match.
- *
- * Matching occurs in the same way as the Symfony Finder component:
- * http://symfony.com/doc/current/components/finder.html#file-name
- */
- protected function convertToRegex($str)
- {
- return $this->isRegex($str) ? $str : Glob::toRegex($str);
- }
-
- /**
- * Checks whether the string is a regex. This function is copied from
- * MultiplePcreFilterIterator in the Symfony Finder component.
- *
- * @param string $str
- *
- * @return bool Whether the given string is a regex
- */
- protected function isRegex($str)
- {
- if (preg_match('/^(.{3,}?)[imsxuADU]*$/', $str, $m)) {
- $start = substr($m[1], 0, 1);
- $end = substr($m[1], -1);
-
- if ($start === $end) {
- return !preg_match('/[*?[:alnum:] \\\\]/', $start);
- }
-
- foreach (array(array('{', '}'), array('(', ')'), array('[', ']'), array('<', '>')) as $delimiters) {
- if ($start === $delimiters[0] && $end === $delimiters[1]) {
- return true;
- }
- }
- }
-
- return false;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/SimplifyToArrayInterface.php b/vendor/consolidation/output-formatters/src/Transformations/SimplifyToArrayInterface.php
deleted file mode 100644
index 7b088ae85..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/SimplifyToArrayInterface.php
+++ /dev/null
@@ -1,26 +0,0 @@
-headers = $fieldLabels;
- $this->rowLabels = $rowLabels;
- $rows = static::transformRows($data, $fieldLabels);
- $this->layout = self::TABLE_LAYOUT;
- parent::__construct($rows);
- }
-
- public function setLayout($layout)
- {
- $this->layout = $layout;
- }
-
- public function getLayout()
- {
- return $this->layout;
- }
-
- public function isList()
- {
- return $this->layout == self::LIST_LAYOUT;
- }
-
- /**
- * @inheritdoc
- */
- public function simplifyToString(FormatterOptions $options)
- {
- $alternateFormatter = new TsvFormatter();
- $output = new BufferedOutput();
-
- try {
- $data = $alternateFormatter->validate($this->getArrayCopy());
- $alternateFormatter->write($output, $this->getArrayCopy(), $options);
- } catch (\Exception $e) {
- }
- return $output->fetch();
- }
-
- protected static function transformRows($data, $fieldLabels)
- {
- $rows = [];
- foreach ($data as $rowid => $row) {
- $rows[$rowid] = static::transformRow($row, $fieldLabels);
- }
- return $rows;
- }
-
- protected static function transformRow($row, $fieldLabels)
- {
- $result = [];
- foreach ($fieldLabels as $key => $label) {
- $result[$key] = array_key_exists($key, $row) ? $row[$key] : '';
- }
- return $result;
- }
-
- public function getHeaders()
- {
- return $this->headers;
- }
-
- public function getHeader($key)
- {
- if (array_key_exists($key, $this->headers)) {
- return $this->headers[$key];
- }
- return $key;
- }
-
- public function getRowLabels()
- {
- return $this->rowLabels;
- }
-
- public function getRowLabel($rowid)
- {
- if (array_key_exists($rowid, $this->rowLabels)) {
- return $this->rowLabels[$rowid];
- }
- return $rowid;
- }
-
- public function getOriginalData()
- {
- if (isset($this->originalData)) {
- return $this->originalData->reconstruct($this->getArrayCopy(), $this->originalData->getMetadata());
- }
- return $this->getArrayCopy();
- }
-
- public function setOriginalData(MetadataHolderInterface $data)
- {
- $this->originalData = $data;
- }
-
- public function getTableData($includeRowKey = false)
- {
- $data = $this->getArrayCopy();
- if ($this->isList()) {
- $data = $this->convertTableToList();
- }
- if ($includeRowKey) {
- $data = $this->getRowDataWithKey($data);
- }
- return $data;
- }
-
- protected function convertTableToList()
- {
- $result = [];
- foreach ($this as $row) {
- foreach ($row as $key => $value) {
- $result[$key][] = $value;
- }
- }
- return $result;
- }
-
- protected function getRowDataWithKey($data)
- {
- $result = [];
- $i = 0;
- foreach ($data as $key => $row) {
- array_unshift($row, $this->getHeader($key));
- $i++;
- $result[$key] = $row;
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataFieldAccessor.php b/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataFieldAccessor.php
deleted file mode 100644
index 8ef7f12b5..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataFieldAccessor.php
+++ /dev/null
@@ -1,36 +0,0 @@
-data = $data;
- }
-
- public function get($fields)
- {
- $data = new Data($this->data);
- $result = new Data();
- foreach ($fields as $key => $label) {
- $item = $data->get($key);
- if (isset($item)) {
- if ($label == '.') {
- if (!is_array($item)) {
- return $item;
- }
- foreach ($item as $key => $value) {
- $result->set($key, $value);
- }
- } else {
- $result->set($label, $data->get($key));
- }
- }
- }
- return $result->export();
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataListTransformation.php b/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataListTransformation.php
deleted file mode 100644
index b84a0ebf5..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataListTransformation.php
+++ /dev/null
@@ -1,38 +0,0 @@
-originalData = $data;
- $rows = static::transformRows($data, $fields);
- parent::__construct($rows);
- }
-
- protected static function transformRows($data, $fields)
- {
- $rows = [];
- foreach ($data as $rowid => $row) {
- $rows[$rowid] = UnstructuredDataTransformation::transformRow($row, $fields);
- }
- return $rows;
- }
-
- public function simplifyToString(FormatterOptions $options)
- {
- $result = '';
- $iterator = $this->getIterator();
- while ($iterator->valid()) {
- $simplifiedRow = UnstructuredDataTransformation::simplifyRow($iterator->current());
- if (isset($simplifiedRow)) {
- $result .= "$simplifiedRow\n";
- }
-
- $iterator->next();
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataTransformation.php b/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataTransformation.php
deleted file mode 100644
index c1bfd508e..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/UnstructuredDataTransformation.php
+++ /dev/null
@@ -1,52 +0,0 @@
-originalData = $data;
- $rows = static::transformRow($data, $fields);
- parent::__construct($rows);
- }
-
- public function simplifyToString(FormatterOptions $options)
- {
- return static::simplifyRow($this->getArrayCopy());
- }
-
- public static function transformRow($row, $fields)
- {
- if (empty($fields)) {
- return $row;
- }
- $fieldAccessor = new UnstructuredDataFieldAccessor($row);
- return $fieldAccessor->get($fields);
- }
-
- public static function simplifyRow($row)
- {
- if (is_string($row)) {
- return $row;
- }
- if (static::isSimpleArray($row)) {
- return implode("\n", $row);
- }
- // No good way to simplify - just dump a json fragment
- return json_encode($row);
- }
-
- protected static function isSimpleArray($row)
- {
- foreach ($row as $item) {
- if (!is_string($item)) {
- return false;
- }
- }
- return true;
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/WordWrapper.php b/vendor/consolidation/output-formatters/src/Transformations/WordWrapper.php
deleted file mode 100644
index 36f9b88d0..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/WordWrapper.php
+++ /dev/null
@@ -1,122 +0,0 @@
-width = $width;
- $this->minimumWidths = new ColumnWidths();
- }
-
- /**
- * Calculate our padding widths from the specified table style.
- * @param TableStyle $style
- */
- public function setPaddingFromStyle(TableStyle $style)
- {
- $verticalBorderLen = strlen(sprintf($style->getBorderFormat(), $style->getVerticalBorderChar()));
- $paddingLen = strlen($style->getPaddingChar());
-
- $this->extraPaddingAtBeginningOfLine = 0;
- $this->extraPaddingAtEndOfLine = $verticalBorderLen;
- $this->paddingInEachCell = $verticalBorderLen + $paddingLen + 1;
- }
-
- /**
- * If columns have minimum widths, then set them here.
- * @param array $minimumWidths
- */
- public function setMinimumWidths($minimumWidths)
- {
- $this->minimumWidths = new ColumnWidths($minimumWidths);
- }
-
- /**
- * Set the minimum width of just one column
- */
- public function minimumWidth($colkey, $width)
- {
- $this->minimumWidths->setWidth($colkey, $width);
- }
-
- /**
- * Wrap the cells in each part of the provided data table
- * @param array $rows
- * @return array
- */
- public function wrap($rows, $widths = [])
- {
- $auto_widths = $this->calculateWidths($rows, $widths);
-
- // If no widths were provided, then disable wrapping
- if ($auto_widths->isEmpty()) {
- return $rows;
- }
-
- // Do wordwrap on all cells.
- $newrows = array();
- foreach ($rows as $rowkey => $row) {
- foreach ($row as $colkey => $cell) {
- $newrows[$rowkey][$colkey] = $this->wrapCell($cell, $auto_widths->width($colkey));
- }
- }
-
- return $newrows;
- }
-
- /**
- * Determine what widths we'll use for wrapping.
- */
- protected function calculateWidths($rows, $widths = [])
- {
- // Widths must be provided in some form or another, or we won't wrap.
- if (empty($widths) && !$this->width) {
- return new ColumnWidths();
- }
-
- // Technically, `$widths`, if provided here, should be used
- // as the exact widths to wrap to. For now we'll just treat
- // these as minimum widths
- $minimumWidths = $this->minimumWidths->combine(new ColumnWidths($widths));
-
- $calculator = new CalculateWidths();
- $dataCellWidths = $calculator->calculateLongestCell($rows);
-
- $availableWidth = $this->width - $dataCellWidths->paddingSpace($this->paddingInEachCell, $this->extraPaddingAtEndOfLine, $this->extraPaddingAtBeginningOfLine);
-
- $this->minimumWidths->adjustMinimumWidths($availableWidth, $dataCellWidths);
-
- return $calculator->calculate($availableWidth, $dataCellWidths, $minimumWidths);
- }
-
- /**
- * Wrap one cell. Guard against modifying non-strings and
- * then call through to wordwrap().
- *
- * @param mixed $cell
- * @param string $cellWidth
- * @return mixed
- */
- protected function wrapCell($cell, $cellWidth)
- {
- if (!is_string($cell)) {
- return $cell;
- }
- return wordwrap($cell, $cellWidth, "\n", true);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php b/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php
deleted file mode 100644
index 04af09208..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php
+++ /dev/null
@@ -1,141 +0,0 @@
-totalWidth() <= $availableWidth) {
- return $dataWidths->enforceMinimums($minimumWidths);
- }
-
- // Get the short columns first. If there are none, then distribute all
- // of the available width among the remaining columns.
- $shortColWidths = $this->getShortColumns($availableWidth, $dataWidths, $minimumWidths);
- if ($shortColWidths->isEmpty()) {
- return $this->distributeLongColumns($availableWidth, $dataWidths, $minimumWidths);
- }
-
- // If some short columns were removed, then account for the length
- // of the removed columns and make a recursive call (since the average
- // width may be higher now, if the removed columns were shorter in
- // length than the previous average).
- $availableWidth -= $shortColWidths->totalWidth();
- $remainingWidths = $dataWidths->removeColumns($shortColWidths->keys());
- $remainingColWidths = $this->calculate($availableWidth, $remainingWidths, $minimumWidths);
-
- return $shortColWidths->combine($remainingColWidths);
- }
-
- /**
- * Calculate the longest cell data from any row of each of the cells.
- */
- public function calculateLongestCell($rows)
- {
- return $this->calculateColumnWidths(
- $rows,
- function ($cell) {
- return strlen($cell);
- }
- );
- }
-
- /**
- * Calculate the longest word and longest line in the provided data.
- */
- public function calculateLongestWord($rows)
- {
- return $this->calculateColumnWidths(
- $rows,
- function ($cell) {
- return static::longestWordLength($cell);
- }
- );
- }
-
- protected function calculateColumnWidths($rows, callable $fn)
- {
- $widths = [];
-
- // Examine each row and find the longest line length and longest
- // word in each column.
- foreach ($rows as $rowkey => $row) {
- foreach ($row as $colkey => $cell) {
- $value = $fn($cell);
- if ((!isset($widths[$colkey]) || ($widths[$colkey] < $value))) {
- $widths[$colkey] = $value;
- }
- }
- }
-
- return new ColumnWidths($widths);
- }
-
- /**
- * Return all of the columns whose longest line length is less than or
- * equal to the average width.
- */
- public function getShortColumns($availableWidth, ColumnWidths $dataWidths, ColumnWidths $minimumWidths)
- {
- $averageWidth = $dataWidths->averageWidth($availableWidth);
- $shortColWidths = $dataWidths->findShortColumns($averageWidth);
- return $shortColWidths->enforceMinimums($minimumWidths);
- }
-
- /**
- * Distribute the remainig space among the columns that were not
- * included in the list of "short" columns.
- */
- public function distributeLongColumns($availableWidth, ColumnWidths $dataWidths, ColumnWidths $minimumWidths)
- {
- // First distribute the remainder without regard to the minimum widths.
- $result = $dataWidths->distribute($availableWidth);
-
- // Find columns that are shorter than their minimum width.
- $undersized = $result->findUndersizedColumns($minimumWidths);
-
- // Nothing too small? Great, we're done!
- if ($undersized->isEmpty()) {
- return $result;
- }
-
- // Take out the columns that are too small and redistribute the rest.
- $availableWidth -= $undersized->totalWidth();
- $remaining = $dataWidths->removeColumns($undersized->keys());
- $distributeRemaining = $this->distributeLongColumns($availableWidth, $remaining, $minimumWidths);
-
- return $undersized->combine($distributeRemaining);
- }
-
- /**
- * Return the length of the longest word in the string.
- * @param string $str
- * @return int
- */
- protected static function longestWordLength($str)
- {
- $words = preg_split('#[ /-]#', $str);
- $lengths = array_map(function ($s) {
- return strlen($s);
- }, $words);
- return max($lengths);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Transformations/Wrap/ColumnWidths.php b/vendor/consolidation/output-formatters/src/Transformations/Wrap/ColumnWidths.php
deleted file mode 100644
index 6995b6afb..000000000
--- a/vendor/consolidation/output-formatters/src/Transformations/Wrap/ColumnWidths.php
+++ /dev/null
@@ -1,264 +0,0 @@
-widths = $widths;
- }
-
- public function paddingSpace(
- $paddingInEachCell,
- $extraPaddingAtEndOfLine = 0,
- $extraPaddingAtBeginningOfLine = 0
- ) {
- return ($extraPaddingAtBeginningOfLine + $extraPaddingAtEndOfLine + (count($this->widths) * $paddingInEachCell));
- }
-
- /**
- * Find all of the columns that are shorter than the specified threshold.
- */
- public function findShortColumns($thresholdWidth)
- {
- $thresholdWidths = array_fill_keys(array_keys($this->widths), $thresholdWidth);
-
- return $this->findColumnsUnderThreshold($thresholdWidths);
- }
-
- /**
- * Find all of the columns that are shorter than the corresponding minimum widths.
- */
- public function findUndersizedColumns($minimumWidths)
- {
- return $this->findColumnsUnderThreshold($minimumWidths->widths());
- }
-
- protected function findColumnsUnderThreshold(array $thresholdWidths)
- {
- $shortColWidths = [];
- foreach ($this->widths as $key => $maxLength) {
- if (isset($thresholdWidths[$key]) && ($maxLength <= $thresholdWidths[$key])) {
- $shortColWidths[$key] = $maxLength;
- }
- }
-
- return new ColumnWidths($shortColWidths);
- }
-
- /**
- * If the widths specified by this object do not fit within the
- * provided avaiable width, then reduce them all proportionally.
- */
- public function adjustMinimumWidths($availableWidth, $dataCellWidths)
- {
- $result = $this->selectColumns($dataCellWidths->keys());
- if ($result->isEmpty()) {
- return $result;
- }
- $numberOfColumns = $dataCellWidths->count();
-
- // How many unspecified columns are there?
- $unspecifiedColumns = $numberOfColumns - $result->count();
- $averageWidth = $this->averageWidth($availableWidth);
-
- // Reserve some space for the columns that have no minimum.
- // Make sure they collectively get at least half of the average
- // width for each column. Or should it be a quarter?
- $reservedSpacePerColumn = ($averageWidth / 2);
- $reservedSpace = $reservedSpacePerColumn * $unspecifiedColumns;
-
- // Calculate how much of the available space is remaining for use by
- // the minimum column widths after the reserved space is accounted for.
- $remainingAvailable = $availableWidth - $reservedSpace;
-
- // Don't do anything if our widths fit inside the available widths.
- if ($result->totalWidth() <= $remainingAvailable) {
- return $result;
- }
-
- // Shrink the minimum widths if the table is too compressed.
- return $result->distribute($remainingAvailable);
- }
-
- /**
- * Return proportional weights
- */
- public function distribute($availableWidth)
- {
- $result = [];
- $totalWidth = $this->totalWidth();
- $lastColumn = $this->lastColumn();
- $widths = $this->widths();
-
- // Take off the last column, and calculate proportional weights
- // for the first N-1 columns.
- array_pop($widths);
- foreach ($widths as $key => $width) {
- $result[$key] = round(($width / $totalWidth) * $availableWidth);
- }
-
- // Give the last column the rest of the available width
- $usedWidth = $this->sumWidth($result);
- $result[$lastColumn] = $availableWidth - $usedWidth;
-
- return new ColumnWidths($result);
- }
-
- public function lastColumn()
- {
- $keys = $this->keys();
- return array_pop($keys);
- }
-
- /**
- * Return the number of columns.
- */
- public function count()
- {
- return count($this->widths);
- }
-
- /**
- * Calculate how much space is available on average for all columns.
- */
- public function averageWidth($availableWidth)
- {
- if ($this->isEmpty()) {
- debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
- }
- return $availableWidth / $this->count();
- }
-
- /**
- * Return the available keys (column identifiers) from the calculated
- * data set.
- */
- public function keys()
- {
- return array_keys($this->widths);
- }
-
- /**
- * Set the length of the specified column.
- */
- public function setWidth($key, $width)
- {
- $this->widths[$key] = $width;
- }
-
- /**
- * Return the length of the specified column.
- */
- public function width($key)
- {
- return isset($this->widths[$key]) ? $this->widths[$key] : 0;
- }
-
- /**
- * Return all of the lengths
- */
- public function widths()
- {
- return $this->widths;
- }
-
- /**
- * Return true if there is no data in this object
- */
- public function isEmpty()
- {
- return empty($this->widths);
- }
-
- /**
- * Return the sum of the lengths of the provided widths.
- */
- public function totalWidth()
- {
- return static::sumWidth($this->widths());
- }
-
- /**
- * Return the sum of the lengths of the provided widths.
- */
- public static function sumWidth($widths)
- {
- return array_reduce(
- $widths,
- function ($carry, $item) {
- return $carry + $item;
- }
- );
- }
-
- /**
- * Ensure that every item in $widths that has a corresponding entry
- * in $minimumWidths is as least as large as the minimum value held there.
- */
- public function enforceMinimums($minimumWidths)
- {
- $result = [];
- if ($minimumWidths instanceof ColumnWidths) {
- $minimumWidths = $minimumWidths->widths();
- }
- $minimumWidths += $this->widths;
-
- foreach ($this->widths as $key => $value) {
- $result[$key] = max($value, $minimumWidths[$key]);
- }
-
- return new ColumnWidths($result);
- }
-
- /**
- * Remove all of the specified columns from this data structure.
- */
- public function removeColumns($columnKeys)
- {
- $widths = $this->widths();
-
- foreach ($columnKeys as $key) {
- unset($widths[$key]);
- }
-
- return new ColumnWidths($widths);
- }
-
- /**
- * Select all columns that exist in the provided list of keys.
- */
- public function selectColumns($columnKeys)
- {
- $widths = [];
-
- foreach ($columnKeys as $key) {
- if (isset($this->widths[$key])) {
- $widths[$key] = $this->width($key);
- }
- }
-
- return new ColumnWidths($widths);
- }
-
- /**
- * Combine this set of widths with another set, and return
- * a new set that contains the entries from both.
- */
- public function combine(ColumnWidths $combineWith)
- {
- // Danger: array_merge renumbers numeric keys; that must not happen here.
- $combined = $combineWith->widths();
- foreach ($this->widths() as $key => $value) {
- $combined[$key] = $value;
- }
- return new ColumnWidths($combined);
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Validate/ValidDataTypesInterface.php b/vendor/consolidation/output-formatters/src/Validate/ValidDataTypesInterface.php
deleted file mode 100644
index 88cce5314..000000000
--- a/vendor/consolidation/output-formatters/src/Validate/ValidDataTypesInterface.php
+++ /dev/null
@@ -1,28 +0,0 @@
-validDataTypes(),
- function ($carry, $supportedType) use ($dataType) {
- return
- $carry ||
- ($dataType->getName() == $supportedType->getName()) ||
- ($dataType->isSubclassOf($supportedType->getName()));
- },
- false
- );
- }
-}
diff --git a/vendor/consolidation/output-formatters/src/Validate/ValidationInterface.php b/vendor/consolidation/output-formatters/src/Validate/ValidationInterface.php
deleted file mode 100644
index ad43626c0..000000000
--- a/vendor/consolidation/output-formatters/src/Validate/ValidationInterface.php
+++ /dev/null
@@ -1,28 +0,0 @@
- ['Name', ':', 'Rex', ],
- 'species' => ['Species', ':', 'dog', ],
- 'food' => ['Food', ':', 'kibble', ],
- 'legs' => ['Legs', ':', '4', ],
- 'description' => ['Description', ':', 'Rex is a very good dog, Brett. He likes kibble, and has four legs.', ],
-];
-
-$result = $wrapper->wrap($data);
-
-var_export($result);
-
diff --git a/vendor/consolidation/robo/.editorconfig b/vendor/consolidation/robo/.editorconfig
deleted file mode 100644
index 095771e67..000000000
--- a/vendor/consolidation/robo/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[**.php]
-indent_style = space
-indent_size = 4
-
diff --git a/vendor/consolidation/robo/.scenarios.lock/install b/vendor/consolidation/robo/.scenarios.lock/install
deleted file mode 100755
index 16c69e107..000000000
--- a/vendor/consolidation/robo/.scenarios.lock/install
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-SCENARIO=$1
-DEPENDENCIES=${2-install}
-
-# Convert the aliases 'highest', 'lowest' and 'lock' to
-# the corresponding composer command to run.
-case $DEPENDENCIES in
- highest)
- DEPENDENCIES=update
- ;;
- lowest)
- DEPENDENCIES='update --prefer-lowest'
- ;;
- lock|default|"")
- DEPENDENCIES=install
- ;;
-esac
-
-original_name=scenarios
-recommended_name=".scenarios.lock"
-
-base="$original_name"
-if [ -d "$recommended_name" ] ; then
- base="$recommended_name"
-fi
-
-# If scenario is not specified, install the lockfile at
-# the root of the project.
-dir="$base/${SCENARIO}"
-if [ -z "$SCENARIO" ] || [ "$SCENARIO" == "default" ] ; then
- SCENARIO=default
- dir=.
-fi
-
-# Test to make sure that the selected scenario exists.
-if [ ! -d "$dir" ] ; then
- echo "Requested scenario '${SCENARIO}' does not exist."
- exit 1
-fi
-
-echo
-echo "::"
-echo ":: Switch to ${SCENARIO} scenario"
-echo "::"
-echo
-
-set -ex
-
-composer -n validate --working-dir=$dir --no-check-all --ansi
-composer -n --working-dir=$dir ${DEPENDENCIES} --prefer-dist --no-scripts
-
-# If called from a CI context, print out some extra information about
-# what we just installed.
-if [[ -n "$CI" ]] ; then
- composer -n --working-dir=$dir info
-fi
diff --git a/vendor/consolidation/robo/.scenarios.lock/symfony2/.gitignore b/vendor/consolidation/robo/.scenarios.lock/symfony2/.gitignore
deleted file mode 100644
index 88e99d50d..000000000
--- a/vendor/consolidation/robo/.scenarios.lock/symfony2/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-vendor
-composer.lock
\ No newline at end of file
diff --git a/vendor/consolidation/robo/.scenarios.lock/symfony2/composer.json b/vendor/consolidation/robo/.scenarios.lock/symfony2/composer.json
deleted file mode 100644
index 98c5121a0..000000000
--- a/vendor/consolidation/robo/.scenarios.lock/symfony2/composer.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "name": "consolidation/robo",
- "description": "Modern task runner",
- "license": "MIT",
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "autoload": {
- "psr-4": {
- "Robo\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Robo\\": "../../tests/src",
- "RoboExample\\": "../../examples/src"
- }
- },
- "bin": [
- "robo"
- ],
- "require": {
- "symfony/console": "^2.8",
- "php": ">=5.5.0",
- "league/container": "^2.2",
- "consolidation/log": "~1",
- "consolidation/config": "^1.0.10",
- "consolidation/annotated-command": "^2.10.2",
- "consolidation/output-formatters": "^3.1.13",
- "consolidation/self-update": "^1",
- "grasmash/yaml-expander": "^1.3",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/process": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "patchwork/jsqueeze": "~2",
- "natxet/CssMin": "3.0.4",
- "pear/archive_tar": "^1.4.2",
- "codeception/base": "^2.3.7",
- "codeception/verify": "^0.3.2",
- "codeception/aspect-mock": "^1|^2.1.1",
- "goaop/parser-reflection": "^1.1.0",
- "nikic/php-parser": "^3.1.5",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/php-code-coverage": "~2|~4",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "scripts": {
- "cs": "./robo sniff",
- "unit": "./robo test --coverage",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "pre-install-cmd": [
- "Robo\\composer\\ScriptHandler::checkDependencies"
- ]
- },
- "config": {
- "platform": {
- "php": "5.5.9"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "suggest": {
- "pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.",
- "henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "patchwork/jsqueeze": "For minifying JS files in taskMinify",
- "natxet/CssMin": "For minifying CSS files in taskMinify"
- },
- "replace": {
- "codegyre/robo": "< 1.0"
- }
-}
diff --git a/vendor/consolidation/robo/.scenarios.lock/symfony4/.gitignore b/vendor/consolidation/robo/.scenarios.lock/symfony4/.gitignore
deleted file mode 100644
index 5657f6ea7..000000000
--- a/vendor/consolidation/robo/.scenarios.lock/symfony4/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
\ No newline at end of file
diff --git a/vendor/consolidation/robo/.scenarios.lock/symfony4/composer.json b/vendor/consolidation/robo/.scenarios.lock/symfony4/composer.json
deleted file mode 100644
index f8cd08bbb..000000000
--- a/vendor/consolidation/robo/.scenarios.lock/symfony4/composer.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "name": "consolidation/robo",
- "description": "Modern task runner",
- "license": "MIT",
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "autoload": {
- "psr-4": {
- "Robo\\": "../../src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Robo\\": "../../tests/src",
- "RoboExample\\": "../../examples/src"
- }
- },
- "bin": [
- "robo"
- ],
- "require": {
- "symfony/console": "^4",
- "php": ">=5.5.0",
- "league/container": "^2.2",
- "consolidation/log": "~1",
- "consolidation/config": "^1.0.10",
- "consolidation/annotated-command": "^2.10.2",
- "consolidation/output-formatters": "^3.1.13",
- "consolidation/self-update": "^1",
- "grasmash/yaml-expander": "^1.3",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/process": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "patchwork/jsqueeze": "~2",
- "natxet/CssMin": "3.0.4",
- "pear/archive_tar": "^1.4.2",
- "codeception/base": "^2.3.7",
- "goaop/framework": "~2.1.2",
- "codeception/verify": "^0.3.2",
- "codeception/aspect-mock": "^1|^2.1.1",
- "goaop/parser-reflection": "^1.1.0",
- "nikic/php-parser": "^3.1.5",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/php-code-coverage": "~2|~4",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "scripts": {
- "cs": "./robo sniff",
- "unit": "./robo test --coverage",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "pre-install-cmd": [
- "Robo\\composer\\ScriptHandler::checkDependencies"
- ]
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- },
- "optimize-autoloader": true,
- "sort-packages": true,
- "vendor-dir": "../../vendor"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "suggest": {
- "pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.",
- "henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "patchwork/jsqueeze": "For minifying JS files in taskMinify",
- "natxet/CssMin": "For minifying CSS files in taskMinify"
- },
- "replace": {
- "codegyre/robo": "< 1.0"
- }
-}
diff --git a/vendor/consolidation/robo/.scenarios.lock/symfony4/composer.lock b/vendor/consolidation/robo/.scenarios.lock/symfony4/composer.lock
deleted file mode 100644
index 91ed61949..000000000
--- a/vendor/consolidation/robo/.scenarios.lock/symfony4/composer.lock
+++ /dev/null
@@ -1,4185 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "1a9adc60403e6c6b6117a465e9afca9f",
- "packages": [
- {
- "name": "consolidation/annotated-command",
- "version": "2.11.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/annotated-command.git",
- "reference": "edea407f57104ed518cc3c3b47d5b84403ee267a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/edea407f57104ed518cc3c3b47d5b84403ee267a",
- "reference": "edea407f57104ed518cc3c3b47d5b84403ee267a",
- "shasum": ""
- },
- "require": {
- "consolidation/output-formatters": "^3.4",
- "php": ">=5.4.0",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- },
- "scenario-options": {
- "create-lockfile": "false"
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "time": "2018-12-29T04:43:17+00:00"
- },
- {
- "name": "consolidation/config",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/config.git",
- "reference": "925231dfff32f05b787e1fddb265e789b939cf4c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/config/zipball/925231dfff32f05b787e1fddb265e789b939cf4c",
- "reference": "925231dfff32f05b787e1fddb265e789b939cf4c",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "grasmash/expander": "^1",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^5",
- "satooshi/php-coveralls": "^1.0",
- "squizlabs/php_codesniffer": "2.*",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "suggest": {
- "symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Config\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Provide configuration services for a commandline tool.",
- "time": "2018-10-24T17:55:35+00:00"
- },
- {
- "name": "consolidation/log",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/log.git",
- "reference": "b2e887325ee90abc96b0a8b7b474cd9e7c896e3a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/log/zipball/b2e887325ee90abc96b0a8b7b474cd9e7c896e3a",
- "reference": "b2e887325ee90abc96b0a8b7b474cd9e7c896e3a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.5",
- "psr/log": "^1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2"
- },
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "time": "2019-01-01T17:30:51+00:00"
- },
- {
- "name": "consolidation/output-formatters",
- "version": "3.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/a942680232094c4a5b21c0b7e54c20cce623ae19",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-10-19T22:35:38+00:00"
- },
- {
- "name": "consolidation/self-update",
- "version": "1.1.5",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/self-update.git",
- "reference": "a1c273b14ce334789825a09d06d4c87c0a02ad54"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/self-update/zipball/a1c273b14ce334789825a09d06d4c87c0a02ad54",
- "reference": "a1c273b14ce334789825a09d06d4c87c0a02ad54",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4"
- },
- "bin": [
- "scripts/release"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "SelfUpdate\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Alexander Menk",
- "email": "menk@mestrona.net"
- }
- ],
- "description": "Provides a self:update command for Symfony Console applications.",
- "time": "2018-10-28T01:52:03+00:00"
- },
- {
- "name": "container-interop/container-interop",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/container-interop/container-interop.git",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "shasum": ""
- },
- "require": {
- "psr/container": "^1.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop",
- "time": "2017-02-14T19:40:03+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "grasmash/expander",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/expander.git",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\Expander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in PHP arrays file.",
- "time": "2017-12-21T22:14:55+00:00"
- },
- {
- "name": "grasmash/yaml-expander",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/yaml-expander.git",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/yaml-expander/zipball/3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\YamlExpander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in a yaml file.",
- "time": "2017-12-16T16:06:03+00:00"
- },
- {
- "name": "league/container",
- "version": "2.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/thephpleague/container.git",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/thephpleague/container/zipball/43f35abd03a12977a60ffd7095efd6a7808488c0",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0",
- "shasum": ""
- },
- "require": {
- "container-interop/container-interop": "^1.2",
- "php": "^5.4.0 || ^7.0"
- },
- "provide": {
- "container-interop/container-interop-implementation": "^1.2",
- "psr/container-implementation": "^1.0"
- },
- "replace": {
- "orno/di": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-2.x": "2.x-dev",
- "dev-1.x": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "League\\Container\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Phil Bennett",
- "email": "philipobenito@gmail.com",
- "homepage": "http://www.philipobenito.com",
- "role": "Developer"
- }
- ],
- "description": "A fast and intuitive dependency injection container.",
- "homepage": "https://github.com/thephpleague/container",
- "keywords": [
- "container",
- "dependency",
- "di",
- "injection",
- "league",
- "provider",
- "service"
- ],
- "time": "2017-05-10T09:20:27+00:00"
- },
- {
- "name": "psr/container",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/container.git",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common Container Interface (PHP FIG PSR-11)",
- "homepage": "https://github.com/php-fig/container",
- "keywords": [
- "PSR-11",
- "container",
- "container-interface",
- "container-interop",
- "psr"
- ],
- "time": "2017-02-14T16:28:37+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/4dff24e5d01e713818805c1862d2e3f901ee7dd0",
- "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/contracts": "^1.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.4|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.4|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-27T07:40:44+00:00"
- },
- {
- "name": "symfony/contracts",
- "version": "v1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/contracts.git",
- "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf",
- "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "require-dev": {
- "psr/cache": "^1.0",
- "psr/container": "^1.0"
- },
- "suggest": {
- "psr/cache": "When using the Cache contracts",
- "psr/container": "When using the Service contracts",
- "symfony/cache-contracts-implementation": "",
- "symfony/service-contracts-implementation": "",
- "symfony/translation-contracts-implementation": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Contracts\\": ""
- },
- "exclude-from-classmap": [
- "**/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "A set of abstractions extracted out of the Symfony components",
- "homepage": "https://symfony.com",
- "keywords": [
- "abstractions",
- "contracts",
- "decoupling",
- "interfaces",
- "interoperability",
- "standards"
- ],
- "time": "2018-12-05T08:06:11+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "921f49c3158a276d27c0d770a5a347a3b718b328"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/921f49c3158a276d27c0d770a5a347a3b718b328",
- "reference": "921f49c3158a276d27c0d770a5a347a3b718b328",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/contracts": "^1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.4|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/expression-language": "~3.4|~4.0",
- "symfony/stopwatch": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-12-01T08:52:38+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "2f4c8b999b3b7cadb2a69390b01af70886753710"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/2f4c8b999b3b7cadb2a69390b01af70886753710",
- "reference": "2f4c8b999b3b7cadb2a69390b01af70886753710",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "6cf2be5cbd0e87aa35c01f80ae0bf40b6798e442"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/6cf2be5cbd0e87aa35c01f80ae0bf40b6798e442",
- "reference": "6cf2be5cbd0e87aa35c01f80ae0bf40b6798e442",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "2b341009ccec76837a7f46f59641b431e4d4c2b0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/2b341009ccec76837a7f46f59641b431e4d4c2b0",
- "reference": "2b341009ccec76837a7f46f59641b431e4d4c2b0",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-20T16:22:05+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c41175c801e3edfda90f32e292619d10c27103d7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c41175c801e3edfda90f32e292619d10c27103d7",
- "reference": "c41175c801e3edfda90f32e292619d10c27103d7",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "behat/gherkin",
- "version": "v4.5.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Behat/Gherkin.git",
- "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Behat/Gherkin/zipball/74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a",
- "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5|~5",
- "symfony/phpunit-bridge": "~2.7|~3",
- "symfony/yaml": "~2.3|~3"
- },
- "suggest": {
- "symfony/yaml": "If you want to parse features, represented in YAML files"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Behat\\Gherkin": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- }
- ],
- "description": "Gherkin DSL parser for PHP 5.3",
- "homepage": "http://behat.org/",
- "keywords": [
- "BDD",
- "Behat",
- "Cucumber",
- "DSL",
- "gherkin",
- "parser"
- ],
- "time": "2017-08-30T11:04:43+00:00"
- },
- {
- "name": "codeception/aspect-mock",
- "version": "2.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/AspectMock.git",
- "reference": "bf3c000599c0dc75ecb52e19dee2b8ed294cf7ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/AspectMock/zipball/bf3c000599c0dc75ecb52e19dee2b8ed294cf7ba",
- "reference": "bf3c000599c0dc75ecb52e19dee2b8ed294cf7ba",
- "shasum": ""
- },
- "require": {
- "goaop/framework": "^2.0.0",
- "php": ">=5.6.0",
- "symfony/finder": "~2.4|~3.0"
- },
- "require-dev": {
- "codeception/base": "~2.1",
- "codeception/specify": "~0.3",
- "codeception/verify": "~0.2"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "AspectMock": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Bodnarchuk",
- "email": "davert@codeception.com"
- }
- ],
- "description": "Experimental Mocking Framework powered by Aspects",
- "time": "2017-10-24T10:20:17+00:00"
- },
- {
- "name": "codeception/base",
- "version": "2.5.2",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/base.git",
- "reference": "50aaf8bc032823018aed8d14114843b4a2c52a48"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/base/zipball/50aaf8bc032823018aed8d14114843b4a2c52a48",
- "reference": "50aaf8bc032823018aed8d14114843b4a2c52a48",
- "shasum": ""
- },
- "require": {
- "behat/gherkin": "^4.4.0",
- "codeception/phpunit-wrapper": "^6.0.9|^7.0.6",
- "codeception/stub": "^2.0",
- "ext-curl": "*",
- "ext-json": "*",
- "ext-mbstring": "*",
- "guzzlehttp/psr7": "~1.0",
- "php": ">=5.6.0 <8.0",
- "symfony/browser-kit": ">=2.7 <5.0",
- "symfony/console": ">=2.7 <5.0",
- "symfony/css-selector": ">=2.7 <5.0",
- "symfony/dom-crawler": ">=2.7 <5.0",
- "symfony/event-dispatcher": ">=2.7 <5.0",
- "symfony/finder": ">=2.7 <5.0",
- "symfony/yaml": ">=2.7 <5.0"
- },
- "require-dev": {
- "codeception/specify": "~0.3",
- "facebook/graph-sdk": "~5.3",
- "flow/jsonpath": "~0.2",
- "monolog/monolog": "~1.8",
- "pda/pheanstalk": "~3.0",
- "php-amqplib/php-amqplib": "~2.4",
- "predis/predis": "^1.0",
- "squizlabs/php_codesniffer": "~2.0",
- "symfony/process": ">=2.7 <5.0",
- "vlucas/phpdotenv": "^2.4.0"
- },
- "suggest": {
- "aws/aws-sdk-php": "For using AWS Auth in REST module and Queue module",
- "codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests",
- "codeception/specify": "BDD-style code blocks",
- "codeception/verify": "BDD-style assertions",
- "flow/jsonpath": "For using JSONPath in REST module",
- "league/factory-muffin": "For DataFactory module",
- "league/factory-muffin-faker": "For Faker support in DataFactory module",
- "phpseclib/phpseclib": "for SFTP option in FTP Module",
- "stecman/symfony-console-completion": "For BASH autocompletion",
- "symfony/phpunit-bridge": "For phpunit-bridge support"
- },
- "bin": [
- "codecept"
- ],
- "type": "library",
- "extra": {
- "branch-alias": []
- },
- "autoload": {
- "psr-4": {
- "Codeception\\": "src/Codeception",
- "Codeception\\Extension\\": "ext"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Bodnarchuk",
- "email": "davert@mail.ua",
- "homepage": "http://codegyre.com"
- }
- ],
- "description": "BDD-style testing framework",
- "homepage": "http://codeception.com/",
- "keywords": [
- "BDD",
- "TDD",
- "acceptance testing",
- "functional testing",
- "unit testing"
- ],
- "time": "2019-01-01T21:20:37+00:00"
- },
- {
- "name": "codeception/phpunit-wrapper",
- "version": "6.0.13",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/phpunit-wrapper.git",
- "reference": "d25db254173582bc27aa8c37cb04ce2481675bcd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/d25db254173582bc27aa8c37cb04ce2481675bcd",
- "reference": "d25db254173582bc27aa8c37cb04ce2481675bcd",
- "shasum": ""
- },
- "require": {
- "phpunit/php-code-coverage": ">=4.0.4 <6.0",
- "phpunit/phpunit": ">=5.7.27 <6.5.13",
- "sebastian/comparator": ">=1.2.4 <3.0",
- "sebastian/diff": ">=1.4 <4.0"
- },
- "replace": {
- "codeception/phpunit-wrapper": "*"
- },
- "require-dev": {
- "codeception/specify": "*",
- "vlucas/phpdotenv": "^2.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Codeception\\PHPUnit\\": "src\\"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "description": "PHPUnit classes used by Codeception",
- "time": "2019-01-01T15:39:52+00:00"
- },
- {
- "name": "codeception/stub",
- "version": "2.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/Stub.git",
- "reference": "f50bc271f392a2836ff80690ce0c058efe1ae03e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/Stub/zipball/f50bc271f392a2836ff80690ce0c058efe1ae03e",
- "reference": "f50bc271f392a2836ff80690ce0c058efe1ae03e",
- "shasum": ""
- },
- "require": {
- "phpunit/phpunit": ">=4.8 <8.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Codeception\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Flexible Stub wrapper for PHPUnit's Mock Builder",
- "time": "2018-07-26T11:55:37+00:00"
- },
- {
- "name": "codeception/verify",
- "version": "0.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/Verify.git",
- "reference": "5d649dda453cd814dadc4bb053060cd2c6bb4b4c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/Verify/zipball/5d649dda453cd814dadc4bb053060cd2c6bb4b4c",
- "reference": "5d649dda453cd814dadc4bb053060cd2c6bb4b4c",
- "shasum": ""
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "autoload": {
- "files": [
- "src/Codeception/function.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Bodnarchuk",
- "email": "davert.php@mailican.com"
- }
- ],
- "description": "BDD assertion library for PHPUnit",
- "time": "2017-01-09T10:58:51+00:00"
- },
- {
- "name": "doctrine/annotations",
- "version": "v1.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/annotations.git",
- "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5",
- "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5",
- "shasum": ""
- },
- "require": {
- "doctrine/lexer": "1.*",
- "php": "^7.1"
- },
- "require-dev": {
- "doctrine/cache": "1.*",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Docblock Annotations Parser",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "annotations",
- "docblock",
- "parser"
- ],
- "time": "2017-12-06T07:11:42+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "^6.2.3",
- "squizlabs/php_codesniffer": "^3.0.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2017-07-22T11:58:36+00:00"
- },
- {
- "name": "doctrine/lexer",
- "version": "v1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/lexer.git",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Lexer\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "lexer",
- "parser"
- ],
- "time": "2014-09-09T13:34:57+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/224531e20d13a07942a989a70759f726cd2df9a1",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-27T05:58:39+00:00"
- },
- {
- "name": "goaop/framework",
- "version": "2.1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/goaop/framework.git",
- "reference": "6e2a0fe13c1943db02a67588cfd27692bddaffa5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/goaop/framework/zipball/6e2a0fe13c1943db02a67588cfd27692bddaffa5",
- "reference": "6e2a0fe13c1943db02a67588cfd27692bddaffa5",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "~1.0",
- "goaop/parser-reflection": "~1.2",
- "jakubledl/dissect": "~1.0",
- "php": ">=5.6.0"
- },
- "require-dev": {
- "adlawson/vfs": "^0.12",
- "doctrine/orm": "^2.5",
- "phpunit/phpunit": "^4.8",
- "symfony/console": "^2.7|^3.0"
- },
- "suggest": {
- "symfony/console": "Enables the usage of the command-line tool."
- },
- "bin": [
- "bin/aspect"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Go\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Lisachenko Alexander",
- "homepage": "https://github.com/lisachenko"
- }
- ],
- "description": "Framework for aspect-oriented programming in PHP.",
- "homepage": "http://go.aopphp.com/",
- "keywords": [
- "aop",
- "aspect",
- "library",
- "php"
- ],
- "time": "2017-07-12T11:46:25+00:00"
- },
- {
- "name": "goaop/parser-reflection",
- "version": "1.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/goaop/parser-reflection.git",
- "reference": "d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/goaop/parser-reflection/zipball/d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166",
- "reference": "d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "^1.2|^2.0|^3.0",
- "php": ">=5.6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Go\\ParserReflection\\": "src"
- },
- "files": [
- "src/bootstrap.php"
- ],
- "exclude-from-classmap": [
- "/tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Alexander Lisachenko",
- "email": "lisachenko.it@gmail.com"
- }
- ],
- "description": "Provides reflection information, based on raw source",
- "time": "2018-03-19T15:57:41+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": ">=2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "*",
- "monolog/monolog": "1.*",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "1.0.*",
- "symfony/class-loader": "*",
- "zendframework/zend-cache": "<2.3",
- "zendframework/zend-log": "<2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.8-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2014-01-28T22:29:15+00:00"
- },
- {
- "name": "guzzlehttp/psr7",
- "version": "1.5.2",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/psr7.git",
- "reference": "9f83dded91781a01c63574e387eaa769be769115"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
- "reference": "9f83dded91781a01c63574e387eaa769be769115",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0",
- "ralouphie/getallheaders": "^2.0.5"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Tobias Schultze",
- "homepage": "https://github.com/Tobion"
- }
- ],
- "description": "PSR-7 message implementation that also provides common utility methods",
- "keywords": [
- "http",
- "message",
- "psr-7",
- "request",
- "response",
- "stream",
- "uri",
- "url"
- ],
- "time": "2018-12-04T20:46:45+00:00"
- },
- {
- "name": "jakubledl/dissect",
- "version": "v1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/jakubledl/dissect.git",
- "reference": "d3a391de31e45a247e95cef6cf58a91c05af67c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/jakubledl/dissect/zipball/d3a391de31e45a247e95cef6cf58a91c05af67c4",
- "reference": "d3a391de31e45a247e95cef6cf58a91c05af67c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/console": "~2.1"
- },
- "suggest": {
- "symfony/console": "for the command-line tool"
- },
- "bin": [
- "bin/dissect.php",
- "bin/dissect"
- ],
- "type": "library",
- "autoload": {
- "psr-0": {
- "Dissect": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "unlicense"
- ],
- "authors": [
- {
- "name": "Jakub Lédl",
- "email": "jakubledl@gmail.com"
- }
- ],
- "description": "Lexing and parsing in pure PHP",
- "homepage": "https://github.com/jakubledl/dissect",
- "keywords": [
- "ast",
- "lexing",
- "parser",
- "parsing"
- ],
- "time": "2013-01-29T21:29:14+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8",
- "shasum": ""
- },
- "require": {
- "php": "^7.1"
- },
- "replace": {
- "myclabs/deep-copy": "self.version"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^7.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2018-06-11T23:09:50+00:00"
- },
- {
- "name": "natxet/CssMin",
- "version": "v3.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/natxet/CssMin.git",
- "reference": "92de3fe3ccb4f8298d31952490ef7d5395855c39"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/natxet/CssMin/zipball/92de3fe3ccb4f8298d31952490ef7d5395855c39",
- "reference": "92de3fe3ccb4f8298d31952490ef7d5395855c39",
- "shasum": ""
- },
- "require": {
- "php": ">=5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Joe Scylla",
- "email": "joe.scylla@gmail.com",
- "homepage": "https://profiles.google.com/joe.scylla"
- }
- ],
- "description": "Minifying CSS",
- "homepage": "http://code.google.com/p/cssmin/",
- "keywords": [
- "css",
- "minify"
- ],
- "time": "2015-09-25T11:13:11+00:00"
- },
- {
- "name": "nikic/php-parser",
- "version": "v3.1.5",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/bb87e28e7d7b8d9a7fda231d37457c9210faf6ce",
- "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0|~5.0"
- },
- "bin": [
- "bin/php-parse"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ],
- "time": "2018-02-28T20:30:58+00:00"
- },
- {
- "name": "patchwork/jsqueeze",
- "version": "v2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/tchwork/jsqueeze.git",
- "reference": "693d64850eab2ce6a7c8f7cf547e1ab46e69d542"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/tchwork/jsqueeze/zipball/693d64850eab2ce6a7c8f7cf547e1ab46e69d542",
- "reference": "693d64850eab2ce6a7c8f7cf547e1ab46e69d542",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Patchwork\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "(Apache-2.0 or GPL-2.0)"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- }
- ],
- "description": "Efficient JavaScript minification in PHP",
- "homepage": "https://github.com/tchwork/jsqueeze",
- "keywords": [
- "compression",
- "javascript",
- "minification"
- ],
- "time": "2016-04-19T09:28:22+00:00"
- },
- {
- "name": "pear/archive_tar",
- "version": "1.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/Archive_Tar.git",
- "reference": "b005152d4ed8f23bcc93637611fa94f39ef5b904"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/Archive_Tar/zipball/b005152d4ed8f23bcc93637611fa94f39ef5b904",
- "reference": "b005152d4ed8f23bcc93637611fa94f39ef5b904",
- "shasum": ""
- },
- "require": {
- "pear/pear-core-minimal": "^1.10.0alpha2",
- "php": ">=5.2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "*"
- },
- "suggest": {
- "ext-bz2": "Bz2 compression support.",
- "ext-xz": "Lzma2 compression support.",
- "ext-zlib": "Gzip compression support."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Archive_Tar": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "./"
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Vincent Blavet",
- "email": "vincent@phpconcept.net"
- },
- {
- "name": "Greg Beaver",
- "email": "greg@chiaraquartet.net"
- },
- {
- "name": "Michiel Rook",
- "email": "mrook@php.net"
- }
- ],
- "description": "Tar file management class with compression support (gzip, bzip2, lzma2)",
- "homepage": "https://github.com/pear/Archive_Tar",
- "keywords": [
- "archive",
- "tar"
- ],
- "time": "2018-12-20T20:47:24+00:00"
- },
- {
- "name": "pear/console_getopt",
- "version": "v1.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/Console_Getopt.git",
- "reference": "82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/Console_Getopt/zipball/82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f",
- "reference": "82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Console": "./"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "./"
- ],
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Greg Beaver",
- "email": "cellog@php.net",
- "role": "Helper"
- },
- {
- "name": "Andrei Zmievski",
- "email": "andrei@php.net",
- "role": "Lead"
- },
- {
- "name": "Stig Bakken",
- "email": "stig@php.net",
- "role": "Developer"
- }
- ],
- "description": "More info available on: http://pear.php.net/package/Console_Getopt",
- "time": "2015-07-20T20:28:12+00:00"
- },
- {
- "name": "pear/pear-core-minimal",
- "version": "v1.10.7",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/pear-core-minimal.git",
- "reference": "19a3e0fcd50492c4357372f623f55f1b144346da"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/19a3e0fcd50492c4357372f623f55f1b144346da",
- "reference": "19a3e0fcd50492c4357372f623f55f1b144346da",
- "shasum": ""
- },
- "require": {
- "pear/console_getopt": "~1.4",
- "pear/pear_exception": "~1.0"
- },
- "replace": {
- "rsky/pear-core-min": "self.version"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "src/"
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Christian Weiske",
- "email": "cweiske@php.net",
- "role": "Lead"
- }
- ],
- "description": "Minimal set of PEAR core files to be used as composer dependency",
- "time": "2018-12-05T20:03:52+00:00"
- },
- {
- "name": "pear/pear_exception",
- "version": "v1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/PEAR_Exception.git",
- "reference": "8c18719fdae000b690e3912be401c76e406dd13b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/PEAR_Exception/zipball/8c18719fdae000b690e3912be401c76e406dd13b",
- "reference": "8c18719fdae000b690e3912be401c76e406dd13b",
- "shasum": ""
- },
- "require": {
- "php": ">=4.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "*"
- },
- "type": "class",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "PEAR": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "."
- ],
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Helgi Thormar",
- "email": "dufuz@php.net"
- },
- {
- "name": "Greg Beaver",
- "email": "cellog@php.net"
- }
- ],
- "description": "The PEAR Exception base class.",
- "homepage": "https://github.com/pear/PEAR_Exception",
- "keywords": [
- "exception"
- ],
- "time": "2015-02-10T20:07:52+00:00"
- },
- {
- "name": "php-coveralls/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
- },
- "require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
- },
- "suggest": {
- "ext-xdebug": "^2.5.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2017-04-02T07:44:40+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "5.7.27",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-02-01T05:50:59+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2017-06-30T09:13:00+00:00"
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "ralouphie/getallheaders",
- "version": "2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/ralouphie/getallheaders.git",
- "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
- "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.7.0",
- "satooshi/php-coveralls": ">=1.0"
- },
- "type": "library",
- "autoload": {
- "files": [
- "src/getallheaders.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Ralph Khattar",
- "email": "ralph.khattar@gmail.com"
- }
- ],
- "description": "A polyfill for getallheaders.",
- "time": "2016-02-11T07:05:27+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-11-26T07:53:53+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-11-19T08:54:04+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-02-18T15:18:39+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-11-19T07:33:16+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/browser-kit",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/browser-kit.git",
- "reference": "db7e59fec9c82d45e745eb500e6ede2d96f4a6e9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/browser-kit/zipball/db7e59fec9c82d45e745eb500e6ede2d96f4a6e9",
- "reference": "db7e59fec9c82d45e745eb500e6ede2d96f4a6e9",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/dom-crawler": "~3.4|~4.0"
- },
- "require-dev": {
- "symfony/css-selector": "~3.4|~4.0",
- "symfony/process": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\BrowserKit\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony BrowserKit Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T11:49:31+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "005d9a083d03f588677d15391a716b1ac9b887c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/005d9a083d03f588677d15391a716b1ac9b887c0",
- "reference": "005d9a083d03f588677d15391a716b1ac9b887c0",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/filesystem": "~3.4|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/finder": "<3.4"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~3.4|~4.0",
- "symfony/finder": "~3.4|~4.0",
- "symfony/yaml": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-30T22:21:14+00:00"
- },
- {
- "name": "symfony/css-selector",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/css-selector.git",
- "reference": "aa9fa526ba1b2ec087ffdfb32753803d999fcfcd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/css-selector/zipball/aa9fa526ba1b2ec087ffdfb32753803d999fcfcd",
- "reference": "aa9fa526ba1b2ec087ffdfb32753803d999fcfcd",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\CssSelector\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jean-François Simon",
- "email": "jeanfrancois.simon@sensiolabs.com"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony CssSelector Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- },
- {
- "name": "symfony/dom-crawler",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/dom-crawler.git",
- "reference": "7438a32108fdd555295f443605d6de2cce473159"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/7438a32108fdd555295f443605d6de2cce473159",
- "reference": "7438a32108fdd555295f443605d6de2cce473159",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/polyfill-ctype": "~1.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "symfony/css-selector": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/css-selector": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\DomCrawler\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony DomCrawler Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T10:55:26+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v4.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "ec076716412274e51f8a7ea675d9515e5c311123"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/ec076716412274e51f8a7ea675d9515e5c311123",
- "reference": "ec076716412274e51f8a7ea675d9515e5c311123",
- "shasum": ""
- },
- "require": {
- "php": "^7.1.3",
- "symfony/contracts": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:52:12+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-12-25T11:19:39+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.5.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.1.3"
- }
-}
diff --git a/vendor/consolidation/robo/CHANGELOG.md b/vendor/consolidation/robo/CHANGELOG.md
deleted file mode 100644
index 3f0693647..000000000
--- a/vendor/consolidation/robo/CHANGELOG.md
+++ /dev/null
@@ -1,367 +0,0 @@
-# Changelog
-
-### 1.4.0 - 1.4.3 1/2/2019
-
-* BUGFIX: Back out 1.3.5, which contained breaking changes. Create a 1.x branch for continuation of compatible versions, and move breaking code to 2.x development (on master branch).
-
-### 1.3.4 12/20/2018
-
-* Allow for aborting completions or rollbacks by James Sansbury (#815)
-* BUGFIX: Allow commands to declare '@param InputInterface' to satisfy code style checks
-
-### 1.3.3 12/13/2018
-
-* Add StdinHandler to the standard Robo DI container (#814)
-* BUGFIX: Add test to ensure rollback order is in reverse by James Sansbury (#812)
-* BUGFIX: Fix the main Robo script entrypoint to work as a phar. (#811)
-
-### 1.3.2 11/21/2018
-
-* Update to Composer Test Scenarios 3 (#803)
-* Support Windows line endings in ".semver" file by Cédric Belin (#788)
-* Ensure that environment variables are preserved in Exec by James Sansbury (#769)
-* Correct Doxygen in \Robo\Task\Composer\loadTasks. (#772)
-
-### 1.3.1 8/17/2018
-
-* Move self:update command to consolidation/self-update project.
-* Fix overzealous shebang function (#759)
-* Actualize RoboFile of Codeception project link url in RADME.php by Valerij Ivashchenko (#756)
-* Workaround - Move g1a/composer-test-scenarios from require-dev to require.
-* Add --no-progress --no-suggest back in.
-* Tell dependencies.io to use --no-dev when determining if a PR should be made.
-* Omit --no-dev when the PR is actually being composed.
-* Add `Events` as third parameter in watch function (#751)
-
-### 1.3.0 5/26/2018
-
-* Add EnvConfig to Robo: set configuration values via environment variables (#737)
-
-### 1.2.4 5/25/2018
-
-* Update 'Robo as a Framework' documentation to recommend https://github.com/g1a/starter
-* Allow CommandStack to exec other tasks by Scott Falkingham (#726)
-* Fix double escape when specifying a remoteShell with rsync by Rob Peck (#715)
-
-### 1.2.3 4/5/2018
-
-* Hide progress indicator prior to 'exec'. (#707)
-* Dependencies.io config for version 2 preview by Dave Gaeddert (#699)
-* Fix path to test script in try:para
-* Correctly parameterize the app name in the self:update command help text.
-* Refuse to start 'release' script if phar.readonly is set.
-
-### 1.2.2 2/27/2018
-
-* Experimental robo plugin mechanism (backwards compatibility not yet guarenteed)
-* Allow traits to be documented
-* Do not export scenarios directory
-* *Breaking* Typo in `\Robo\Runner:errorCondtion()` fixed as `\Robo\Runner:errorCondition()`.
-
-### 1.2.1 12/28/2017
-
-* Fixes to tests / build only.
-
-### 1.2.0 12/12/2017
-
-* Support Symfony 4 Components (#651)
-* Test multiple composer dependency permutations with https://github.com/greg-1-anderson/composer-test-scenarios
-
-### 1.1.5 10/25/2017
-
-* Load option default values from $input for all options defined in the Application's input definition (#642)
-* BUGFIX: Store global options in 'options' namespace rather than at the top level of config.
-
-### 1.1.4 10/16/2017
-
-* Update order of command event hooks so that the option settings are injected prior to configuration being injected, so that dynamic options are available for config injection. (#636)
-* Add shallow clone method to GithubStack task. by Stefan Lange (#633)
-* Make Changelog task more flexible. by Matthew Grasmick(#631)
-* Adding accessToken() to GitHub task. by Matthew Grasmick (#630)
-
-### 1.1.3 09/23/2017
-
-* Add self:update command to update Robo phar distributions to the latest available version on GitHub. by Alexander Menk
-* Fix Robo\Task\Docker\Base to implement CommandInterface. by Alexei Gorobet (#625)
-* Add overwrite argument to Robo\Task\Filesystem\loadShortcuts.php::_rename by Alexei Gorobets (#624)
-* Add failGroup() method for Codeception run command. by Max Gorovenko (#622)
-* Set up composer-lock-updater on cron. (#618)
-* Fix robo.yml loader by exporting processor instead of loader. By thomscode (#612)
-
-### 1.1.2 07/28/2017
-
-* Inject option default values in help (#607)
-* Add noRebuild() method for Codeception run command. By Max Gorovenko (#603)
-
-### 1.1.1 07/07/2017
-
-* Add an option to wait an interval of time between parallel processes. By Gemma Pou #601
-* Do not print dire messages about Robo bootstrap problems when a valid command (e.g. help, list, init, --version) runs. #502
-
-### 1.1.0 06/29/2017
-
-* Configuration for multiple commands or multiple tasks may now be shared by attaching the configuration values to the task namespace or the command group. #597
-* *Breaking* Task configuration taken from property `task.PARTIAL_NAMESPACE.CLASSNAME.settings` instead of `task.CLASSNAME.settings`. Breaks backwards compatibility only with experimental configuration features introduced in version 1.0.6. Config is now stable, as of this release; there will be no more breaking config changes until Robo 2.0. #596
-
-### 1.0.8 06/02/2017
-
-* Fix regression in 1.0.7: Allow tasks to return results of types other than \Robo\Result. #585
-* Allow Copydir exclude method to specify subfolders by Alex Skrypnyk #590
-* Add composer init task, and general rounding out of composer tasks. #586
-* Enhance SemVer task so that it can be used with files or strings. #589
-
-#### 1.0.7 05/30/2017
-
-* Add a state system for collections to allow tasks to pass state to later tasks.
-* Ensure that task results are returned when in stopOnFail() mode.
-* Make rawArg() and detectInteractive chainable. By Matthew Grasmick #553 #558
-* [CopyDir] Use Symfony Filesystem. By malikkotob #555
-* [Composer] Implement CommandInterface. By Ivan Borzenkov #561
-
-#### 1.0.6 03/31/2017
-
-* Add configuration features to inject values into commandline option and task setter methods. Experimental; incompatible changes may be introduced prior to the stable release of configuration in version 1.1.0.
-
-#### 1.0.5 11/23/2016
-
-* Incorporate word-wrapping from output-formatters 3.1.5
-* Incorporate custom event handlers from annotated-command 2.2.0
-
-#### 1.0.4 11/15/2016
-
-* Updated to latest changes in `master` branch. Phar and tag issues.
-
-#### 1.0.0 10/10/2016
-
-* [Collection] Add tasks to a collection, and implement them as a group with rollback
- * Tasks may be added to a collection via `$collection->add($task);`
- * `$collection->run();` runs all tasks in the collection
- * `$collection->addCode(function () { ... } );` to add arbitrary code to a collection
- * `$collection->progressMessage(...);` will log a message
- * `$collection->rollback($task);` and `$collection->rollbackCode($callable);` add a rollback function to clean up after a failed task
- * `$collection->completion($task);` and `$collection->completionCode($callable);` add a function that is called once the collection completes or rolls back.
- * `$collection->before();` and `$collection->after();` can be used to add a task or function that runs before or after (respectively) the specified named task. To use this feature, tasks must be given names via an optional `$taskName` parameter when they are added.
- * Collections may be added to collections, if desired.
-* [CollectionBuilder] Create tasks and add them to a collection in a single operation.
- * `$this->collectionBuilder()->taskExec('pwd')->taskExec('ls')->run()`
-* Add output formatters
- * If a Robo command returns a string, or a `Result` object with a `$message`, then it will be printed
- * Commands may be annotated to describe output formats that may be used
- * Structured arrays returned from function results may be converted into different formats, such as a table, yml, json, etc.
- * Tasks must `use TaskIO` for output methods. It is no longer possible to `use IO` from a task. For direct access use `Robo::output()` (not recommended).
-* Use league/container to do Dependency Injection
- * *Breaking* Tasks' loadTasks traits must use `$this->task(TaskClass::class);` instead of `new TaskClass();`
- * *Breaking* Tasks that use other tasks must use `$this->collectionBuilder()->taskName();` instead of `new TaskClass();` when creating task objects to call. Implement `Robo\Contract\BuilderAwareInterface` and use `Robo\Contract\BuilderAwareTrait` to add the `collectionBuilder()` method to your task class.
-* *Breaking* The `arg()`, `args()` and `option()` methods in CommandArguments now escape the values passed in to them. There is now a `rawArg()` method if you need to add just one argument that has already been escaped.
-* *Breaking* taskWrite is now called taskWriteToFile
-* [Extract] task added
-* [Pack] task added
-* [TmpDir], [WorkDir] and [TmpFile] tasks added
-* Support Robo scripts that allows scripts starting with `#!/usr/bin/env robo` to define multiple robo commands. Use `#!/usr/bin/env robo run` to define a single robo command implemented by the `run()` method.
-* Provide ProgresIndicatorAwareInterface and ProgressIndicatorAwareTrait that make it easy to add progress indicators to tasks
-* Add --simulate mode that causes tasks to print what they would have done, but make no changes
-* Add `robo generate:task` code-generator to make new stack-based task wrappers around existing classes
-* Add `robo sniff` by @dustinleblanc. Runs the PHP code sniffer followed by the code beautifier, if needed.
-* Implement ArrayInterface for Result class, so result data may be accessed like an array
-* Defer execution of operations in taskWriteToFile until the run() method
-* Add Write::textIfMatch() for taskWriteToFile
-* ResourceExistenceChecker used for error checking in DeleteDir, CopyDir, CleanDir and Concat tasks by @burzum
-* Provide ResultData base class for Result; ResultData may be used in instances where a specific `$task` instance is not available (e.g. in a Robo command)
-* ArgvInput now available via $this->getInput() in RoboFile by Thomas Spigel
-* Add optional message to git tag task by Tim Tegeler
-* Rename 'FileSystem' to 'Filesystem' wherever it occurs.
-* Current directory is changed with `chdir` only if specified via the `--load-from` option (RC2)
-
-#### 0.6.0 10/30/2015
-
-* Added `--load-from` option to make Robo start RoboFiles from other directories. Use it like `robo --load-from /path/to/where/RobFile/located`.
-* Robo will not ask to create RoboFile if it does not exist, `init` command should be used.
-* [ImageMinify] task added by @gabor-udvari
-* [OpenBrowser] task added by @oscarotero
-* [FlattenDir] task added by @gabor-udvari
-* Robo Runner can easily extended for custom runner by passing RoboClass and RoboFile parameters to constructor. By @rdeutz See #232
-
-#### 0.5.4 08/31/2015
-
-* [WriteToFile] Fixed by @gabor-udvari: always writing to file regardless whether any changes were made or not. This can bring the taskrunner into an inifinite loop if a replaced file is being watched.
-* [Scss] task added, requires `leafo/scssphp` library to compile by @gabor-udvari
-* [PhpSpec] TAP formatter added by @orls
-* [Less] Added ability to set import dir for less compilers by @MAXakaWIZARD
-* [Less] fixed passing closure as compiler by @pr0nbaer
-* [Sass] task added by *2015-08-31*
-
-#### 0.5.3 07/15/2015
-
- * [Rsync] Ability to use remote shell with identity file by @Mihailoff
- * [Less] Task added by @burzum
- * [PHPUnit] allow to test specific files with `files` parameter by @burzum.
- * [GitStack] `tag` added by @SebSept
- * [Concat] Fixing concat, it breaks some files if there is no new line. @burzum *2015-03-03-13*
- * [Minify] BC fix to support Jsqueeze 1.x and 2.x @burzum *2015-03-12*
- * [PHPUnit] Replace log-xml with log-junit @vkunz *2015-03-06*
- * [Minify] Making it possible to pass options to the JS minification @burzum *2015-03-05*
- * [CopyDir] Create destination recursively @boedah *2015-02-28*
-
-#### 0.5.2 02/24/2015
-
-* [Phar] do not compress phar if more than 1000 files included (causes internal PHP error) *2015-02-24*
-* _copyDir and _mirrorDir shortcuts fixed by @boedah *2015-02-24*
-* [File\Write] methods replace() and regexReplace() added by @asterixcapri *2015-02-24*
-* [Codecept] Allow to set custom name of coverage file raw name by @raistlin *2015-02-24*
-* [Ssh] Added property `remoteDir` by @boedah *2015-02-24*
-* [PhpServer] fixed passing arguments to server *2015-02-24*
-
-
-#### 0.5.1 01/27/2015
-
-* [Exec] fixed execution of background jobs, processes persist till the end of PHP script *2015-01-27*
-* [Ssh] Fixed SSH task by @Butochnikov *2015-01-27*
-* [CopyDir] fixed shortcut usage by @boedah *2015-01-27*
-* Added default value options for Configuration trait by @TamasBarta *2015-01-27*
-
-#### 0.5.0 01/22/2015
-
-Refactored core
-
-* All traits moved to `Robo\Common` namespace
-* Interfaces moved to `Robo\Contract` namespace
-* All task extend `Robo\Task\BaseTask` to use common IO.
-* All classes follow PSR-4 standard
-* Tasks are loaded into RoboFile with `loadTasks` trait
-* One-line tasks are available as shortcuts loaded by `loadShortucts` and used like `$this->_exec('ls')`
-* Robo runner is less coupled. Output can be set by `\Robo\Config::setOutput`, `RoboFile` can be changed to any provided class.
-* Tasks can be used outside of Robo runner (inside a project)
-* Timer for long-running tasks added
-* Tasks can be globally configured (WIP) via `Robo\Config` class.
-* Updated to Symfony >= 2.5
-* IO methods added `askHidden`, `askDefault`, `confirm`
-* TaskIO methods added `printTaskError`, `printTaskSuccess` with different formatting.
-* [Docker] Tasks added
-* [Gulp] Task added by @schorsch3000
-
-#### 0.4.7 12/26/2014
-
-* [Minify] Task added by @Rarst. Requires additional dependencies installed *2014-12-26*
-* [Help command is populated from annotation](https://github.com/consolidation-org/Robo/pull/71) by @jonsa *2014-12-26*
-* Allow empty values as defaults to optional options by @jonsa *2014-12-26*
-* `PHP_WINDOWS_VERSION_BUILD` constant is used to check for Windows in tasks by @boedah *2014-12-26*
-* [Copy][EmptyDir] Fixed infinite loop by @boedah *2014-12-26*
-* [ApiGen] Task added by @drobert *2014-12-26*
-* [FileSystem] Equalized `copy` and `chmod` argument to defaults by @Rarst (BC break) *2014-12-26*
-* [FileSystem] Added missing umask argument to chmod() method of FileSystemStack by @Rarst
-* [SemVer] Fixed file read and exit code
-* [Codeception] fixed codeception coverageHtml option by @gunfrank *2014-12-26*
-* [phpspec] Task added by @SebSept *2014-12-26*
-* Shortcut options: if option name is like foo|f, assign f as shortcut by @jschnare *2014-12-26*
-* [Rsync] Shell escape rsync exclude pattern by @boedah. Fixes #77 (BC break) *2014-12-26*
-* [Npm] Task added by @AAlakkad *2014-12-26*
-
-#### 0.4.6 10/17/2014
-
-* [Exec] Output from buffer is not spoiled by special chars *2014-10-17*
-* [PHPUnit] detect PHPUnit on Windows or when is globally installed with Composer *2014-10-17*
-* Output: added methods askDefault and confirm by @bkawakami *2014-10-17*
-* [Svn] Task added by @anvi *2014-08-13*
-* [Stack] added dir and printed options *2014-08-12*
-* [ExecTask] now uses Executable trait with printed, dir, arg, option methods added *2014-08-12*
-
-
-#### 0.4.5 08/05/2014
-
-* [Watch] bugfix: Watch only tracks last file if given array of files #46 *2014-08-05*
-* All executable tasks can configure working directory with `dir` option
-* If no value for an option is provided, assume it's a VALUE_NONE option. #47 by @pfaocle
-* [Changelog] changed style *2014-06-27*
-* [GenMarkDown] fixed formatting annotations *2014-06-27*
-
-#### 0.4.4 06/05/2014
-
-* Output can be disabled in all executable tasks by ->printed(false)
-* disabled timeouts by default in ParallelExec
-* better descriptions for Result output
-* changed ParallelTask to display failed process in list
-* Changed Output to be stored globally in Robo\Runner class
-* Added **SshTask** by @boedah
-* Added **RsyncTask** by @boedah
-* false option added to proceess* callbacks in GenMarkDownTask to skip processing
-
-
-#### 0.4.3 05/21/2014
-
-* added `SemVer` task by **@jadb**
-* `yell` output method added
-* task `FileSystemStack` added
-* `MirrorDirTask` added by **@devster**
-* switched to Symfony Filesystem component
-* options can be used to commands
-* array arguments can be used in commands
-
-#### 0.4.2 05/09/2014
-
-* ask can now hide answers
-* Trait Executable added to provide standard way for passing arguments and options
-* added ComposerDumpAutoload task by **@pmcjury**
-* added FileSystem task by **@jadb**
-* added CommonStack metatsk to have similar interface for all stacked tasks by **@jadb**
-* arguments and options can be passed into variable and used in exec task
-* passing options into commands
-
-
-#### 0.4.1 05/05/2014
-
-* [BC] `taskGit` task renamed to `taskGitStack` for compatibility
-* unit and functional tests added
-* all command tasks now use Symfony\Process to execute them
-* enabled Bower and Concat tasks
-* added `printed` param to Exec task
-* codeception `suite` method now returns `$this`
-* timeout options added to Exec task
-
-
-#### 0.4.0 04/27/2014
-
-* Codeception task added
-* PHPUnit task improved
-* Bower task added by @jadb
-* ParallelExec task added
-* Symfony Process component used for execution
-* Task descriptions taken from first line of annotations
-* `CommandInterface` added to use tasks as parameters
-
-#### 0.3.3 02/25/2014
-
-* PHPUnit basic task
-* fixed doc generation
-
-#### 0.3.5 02/21/2014
-
-* changed generated init template
-
-
-#### 0.3.4 02/21/2014
-
-* [PackPhar] ->executable command will remove hashbang when generated stub file
-* [Git][Exec] stopOnFail option for Git and Exec stack
-* [ExecStack] shortcut for executing bash commands in stack
-
-#### 0.3.2 02/20/2014
-
-* release process now includes phar
-* phar executable method added
-* git checkout added
-* phar pack created
-
-
-#### 0.3.0 02/11/2014
-
-* Dynamic configuration via magic methods
-* added WriteToFile task
-* Result class for managing exit codes and error messages
-
-#### 0.2.0 01/29/2014
-
-* Merged Tasks and Traits to same file
-* Added Watcher task
-* Added GitHubRelease task
-* Added Changelog task
-* Added ReplaceInFile task
diff --git a/vendor/consolidation/robo/CONTRIBUTING.md b/vendor/consolidation/robo/CONTRIBUTING.md
deleted file mode 100644
index 438681469..000000000
--- a/vendor/consolidation/robo/CONTRIBUTING.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Contributing to Robo
-
-Thank you for your interest in contributing to Robo! Here are some of the guidelines you should follow to make the most of your efforts:
-
-## Code Style Guidelines
-
-Robo adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code. An `.editorconfig` file is included with the repository to help you get up and running quickly. Most modern editors support this standard, but if yours does not or you would like to configure your editor manually, follow the guidelines in the document linked above.
-
-You can run the PHP Codesniffer on your work using a convenient command built into this project's own `RoboFile.php`:
-```
-robo sniff src/Foo.php --autofix
-```
-The above will run the PHP Codesniffer on the `src/Foo.php` file and automatically correct variances from the PSR-2 standard. Please ensure all contributions are compliant _before_ submitting a pull request.
-
-
diff --git a/vendor/consolidation/robo/LICENSE b/vendor/consolidation/robo/LICENSE
deleted file mode 100644
index 0938cc28e..000000000
--- a/vendor/consolidation/robo/LICENSE
+++ /dev/null
@@ -1,44 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2019 Codegyre Developers Team, Consolidation Team
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-DEPENDENCY LICENSES:
-
-Name Version License
-consolidation/annotated-command 2.11.0 MIT
-consolidation/config 1.1.1 MIT
-consolidation/log 1.1.1 MIT
-consolidation/output-formatters 3.4.0 MIT
-consolidation/self-update 1.1.5 MIT
-container-interop/container-interop 1.2.0 MIT
-dflydev/dot-access-data v1.1.0 MIT
-grasmash/expander 1.0.0 MIT
-grasmash/yaml-expander 1.4.0 MIT
-league/container 2.4.1 MIT
-psr/container 1.0.0 MIT
-psr/log 1.1.0 MIT
-symfony/console v4.2.1 MIT
-symfony/event-dispatcher v4.2.1 MIT
-symfony/filesystem v4.2.1 MIT
-symfony/finder v3.4.20 MIT
-symfony/polyfill-ctype v1.10.0 MIT
-symfony/polyfill-mbstring v1.10.0 MIT
-symfony/process v4.2.1 MIT
-symfony/yaml v4.2.1 MIT
\ No newline at end of file
diff --git a/vendor/consolidation/robo/README.md b/vendor/consolidation/robo/README.md
deleted file mode 100644
index 73a8feb22..000000000
--- a/vendor/consolidation/robo/README.md
+++ /dev/null
@@ -1,182 +0,0 @@
-# RoboTask
-
-_This is the 1.x (stable) branch of the Robo task runner. Development for Robo 2.x (future) is happening on the [master](https://github.com/consolidation/Robo/tree/master) branch._
-
-**Modern and simple PHP task runner** inspired by Gulp and Rake aimed to automate common tasks:
-
-[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/consolidation/Robo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-[![Latest Stable Version](https://poser.pugx.org/consolidation/robo/v/stable.png)](https://packagist.org/packages/consolidation/robo)
-[![Latest Unstable Version](https://poser.pugx.org/consolidation/robo/v/unstable.png)](https://packagist.org/packages/consolidation/robo)
-[![Total Downloads](https://poser.pugx.org/consolidation/robo/downloads.png)](https://packagist.org/packages/consolidation/robo)
-[![PHP 7 ready](http://php7ready.timesplinter.ch/consolidation/Robo/badge.svg)](https://travis-ci.org/consolidation/Robo)
-[![License](https://poser.pugx.org/consolidation/robo/license.png)](https://www.versioneye.com/user/projects/57c4a6fe968d64004d97620a?child=57c4a6fe968d64004d97620a#tab-licenses)
-
-[![Build Status](https://travis-ci.org/consolidation/Robo.svg?branch=master)](https://travis-ci.org/consolidation/Robo)
-[![Windows CI](https://ci.appveyor.com/api/projects/status/0823hnh06pw8ir4d?svg=true)](https://ci.appveyor.com/project/greg-1-anderson/robo)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/consolidation/Robo/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/consolidation/Robo/?branch=master)
-[![Dependency Status](https://www.versioneye.com/user/projects/57c4a6fe968d64004d97620a/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/57c4a6fe968d64004d97620a)
-
-* writing cross-platform scripts
-* processing assets (less, sass, minification)
-* running tests
-* executing daemons (and workers)
-* watching filesystem changes
-* deployment with sftp/ssh/docker
-
-## Installing
-
-### Phar
-
-[Download robo.phar >](http://robo.li/robo.phar)
-
-```
-wget http://robo.li/robo.phar
-```
-
-To install globally put `robo.phar` in `/usr/bin`. (`/usr/local/bin/` in OSX 10.11+)
-
-```
-chmod +x robo.phar && sudo mv robo.phar /usr/bin/robo
-```
-
-OSX 10.11+
-```
-chmod +x robo.phar && sudo mv robo.phar /usr/local/bin/robo
-```
-
-Now you can use it just like `robo`.
-
-### Composer
-
-* Run `composer require consolidation/robo:~1`
-* Use `vendor/bin/robo` to execute Robo tasks.
-
-## Usage
-
-All tasks are defined as **public methods** in `RoboFile.php`. It can be created by running `robo`.
-All protected methods in traits that start with `task` prefix are tasks and can be configured and executed in your tasks.
-
-## Examples
-
-The best way to learn Robo by example is to take a look into [its own RoboFile](https://github.com/consolidation/Robo/blob/master/RoboFile.php)
- or [RoboFile of Codeception project](https://github.com/Codeception/Codeception/blob/2.4/RoboFile.php). There are also some basic example commands in examples/RoboFile.php.
-
-Here are some snippets from them:
-
----
-
-Run acceptance test with local server and selenium server started.
-
-
-``` php
-taskServer(8000)
- ->background()
- ->dir('web')
- ->run();
-
- // running Selenium server in background
- $this->taskExec('java -jar ' . $seleniumPath)
- ->background()
- ->run();
-
- // loading Symfony Command and running with passed argument
- $this->taskSymfonyCommand(new \Codeception\Command\Run('run'))
- ->arg('suite','acceptance')
- ->run();
- }
-}
-```
-
-If you execute `robo` you will see this task added to list of available task with name: `test:acceptance`.
-To execute it you should run `robo test:acceptance`. You may change path to selenium server by passing new path as a argument:
-
-```
-robo test:acceptance "C:\Downloads\selenium.jar"
-```
-
-Using `watch` task so you can use it for running tests or building assets.
-
-``` php
-taskWatch()->monitor('composer.json', function() {
- $this->taskComposerUpdate()->run();
- })->run();
- }
-}
-```
-
----
-
-Cleaning logs and cache
-
-``` php
-taskCleanDir([
- 'app/cache',
- 'app/logs'
- ])->run();
-
- $this->taskDeleteDir([
- 'web/assets/tmp_uploads',
- ])->run();
- }
-}
-```
-
-This task cleans `app/cache` and `app/logs` dirs (ignoring .gitignore and .gitkeep files)
-Can be executed by running:
-
-```
-robo clean
-```
-
-----
-
-Creating Phar archive
-
-``` php
-function buildPhar()
-{
- $files = Finder::create()->ignoreVCS(true)->files()->name('*.php')->in(__DIR__);
- $packer = $this->taskPackPhar('robo.phar');
- foreach ($files as $file) {
- $packer->addFile($file->getRelativePathname(), $file->getRealPath());
- }
- $packer->addFile('robo','robo')
- ->executable('robo')
- ->run();
-}
-```
-
----
-
-## We need more tasks!
-
-Create your own tasks and send them as Pull Requests or create packages [with `"type": "robo-tasks"` in `composer.json` on Packagist](https://packagist.org/?type=robo-tasks).
-
-## Credits
-
-Follow [@robo_php](http://twitter.com/robo_php) for updates.
-
-Brought to you by [Consolidation Team](https://github.com/orgs/consolidation/people) and our [awesome contributors](https://github.com/consolidation/Robo/graphs/contributors).
-
-## License
-
-[MIT](https://github.com/consolidation/Robo/blob/master/LICENSE)
diff --git a/vendor/consolidation/robo/RoboFile.php b/vendor/consolidation/robo/RoboFile.php
deleted file mode 100644
index 4536f5159..000000000
--- a/vendor/consolidation/robo/RoboFile.php
+++ /dev/null
@@ -1,473 +0,0 @@
- false,
- 'coverage' => false
- ])
- {
- $taskCodecept = $this->taskCodecept()
- ->args($args);
-
- if ($options['coverage']) {
- $taskCodecept->coverageXml('../../build/logs/clover.xml');
- }
- if ($options['coverage-html']) {
- $taskCodecept->coverageHtml('../../build/logs/coverage');
- }
-
- return $taskCodecept->run();
- }
-
- /**
- * Code sniffer.
- *
- * Run the PHP Codesniffer on a file or directory.
- *
- * @param string $file
- * A file or directory to analyze.
- * @option $autofix Whether to run the automatic fixer or not.
- * @option $strict Show warnings as well as errors.
- * Default is to show only errors.
- */
- public function sniff(
- $file = 'src/',
- $options = [
- 'autofix' => false,
- 'strict' => false,
- ]
- ) {
- $strict = $options['strict'] ? '' : '-n';
- $result = $this->taskExec("./vendor/bin/phpcs --standard=PSR2 --exclude=Squiz.Classes.ValidClassName {$strict} {$file}")->run();
- if (!$result->wasSuccessful()) {
- if (!$options['autofix']) {
- $options['autofix'] = $this->confirm('Would you like to run phpcbf to fix the reported errors?');
- }
- if ($options['autofix']) {
- $result = $this->taskExec("./vendor/bin/phpcbf --standard=PSR2 --exclude=Squiz.Classes.ValidClassName {$file}")->run();
- }
- }
- return $result;
- }
-
- /**
- * Generate a new Robo task that wraps an existing utility class.
- *
- * @param $className The name of the existing utility class to wrap.
- * @param $wrapperClassName The name of the wrapper class to create. Optional.
- * @usage generate:task 'Symfony\Component\Filesystem\Filesystem' FilesystemStack
- */
- public function generateTask($className, $wrapperClassName = "")
- {
- return $this->taskGenTask($className, $wrapperClassName)->run();
- }
-
- /**
- * Release Robo.
- */
- public function release($opts = ['beta' => false])
- {
- $this->checkPharReadonly();
-
- $version = \Robo\Robo::VERSION;
- $stable = !$opts['beta'];
- if ($stable) {
- $version = preg_replace('/-.*/', '', $version);
- }
- else {
- $version = $this->incrementVersion($version, 'beta');
- }
- $this->writeVersion($version);
- $this->yell("Releasing Robo $version");
-
- $this->docs();
- $this->taskGitStack()
- ->add('-A')
- ->commit("Robo release $version")
- ->pull()
- ->push()
- ->run();
-
- if ($stable) {
- $this->pharPublish();
- }
- $this->publish();
-
- $this->taskGitStack()
- ->tag($version)
- ->push('origin 1.x --tags')
- ->run();
-
- if ($stable) {
- $version = $this->incrementVersion($version) . '-dev';
- $this->writeVersion($version);
-
- $this->taskGitStack()
- ->add('-A')
- ->commit("Prepare for $version")
- ->push()
- ->run();
- }
- }
-
- /**
- * Update changelog.
- *
- * Add an entry to the Robo CHANGELOG.md file.
- *
- * @param string $addition The text to add to the change log.
- */
- public function changed($addition)
- {
- $version = preg_replace('/-.*/', '', \Robo\Robo::VERSION);
- return $this->taskChangelog()
- ->version($version)
- ->change($addition)
- ->run();
- }
-
- /**
- * Update the version of Robo.
- *
- * @param string $version The new verison for Robo.
- * Defaults to the next minor (bugfix) version after the current relelase.
- * @option stage The version stage: dev, alpha, beta or rc. Use empty for stable.
- */
- public function versionBump($version = '', $options = ['stage' => ''])
- {
- // If the user did not specify a version, then update the current version.
- if (empty($version)) {
- $version = $this->incrementVersion(\Robo\Robo::VERSION, $options['stage']);
- }
- return $this->writeVersion($version);
- }
-
- /**
- * Write the specified version string back into the Robo.php file.
- * @param string $version
- */
- protected function writeVersion($version)
- {
- // Write the result to a file.
- return $this->taskReplaceInFile(__DIR__.'/src/Robo.php')
- ->regex("#VERSION = '[^']*'#")
- ->to("VERSION = '".$version."'")
- ->run();
- }
-
- /**
- * Advance to the next SemVer version.
- *
- * The behavior depends on the parameter $stage.
- * - If $stage is empty, then the patch or minor version of $version is incremented
- * - If $stage matches the current stage in the current version, then add one
- * to the stage (e.g. alpha3 -> alpha4)
- * - If $stage does not match the current stage in the current version, then
- * reset to '1' (e.g. alpha4 -> beta1)
- *
- * @param string $version A SemVer version
- * @param string $stage dev, alpha, beta, rc or an empty string for stable.
- * @return string
- */
- protected function incrementVersion($version, $stage = '')
- {
- $stable = empty($stage);
- $versionStageNumber = '0';
- preg_match('/-([a-zA-Z]*)([0-9]*)/', $version, $match);
- $match += ['', '', ''];
- $versionStage = $match[1];
- $versionStageNumber = $match[2];
- if ($versionStage != $stage) {
- $versionStageNumber = 0;
- }
- $version = preg_replace('/-.*/', '', $version);
- $versionParts = explode('.', $version);
- if ($stable) {
- $versionParts[count($versionParts)-1]++;
- }
- $version = implode('.', $versionParts);
- if (!$stable) {
- $version .= '-' . $stage;
- if ($stage != 'dev') {
- $versionStageNumber++;
- $version .= $versionStageNumber;
- }
- }
- return $version;
- }
-
- /**
- * Generate the Robo documentation files.
- */
- public function docs()
- {
- $collection = $this->collectionBuilder();
- $collection->progressMessage('Generate documentation from source code.');
- $files = Finder::create()->files()->name('*.php')->in('src/Task');
- $docs = [];
- foreach ($files as $file) {
- if ($file->getFileName() == 'loadTasks.php') {
- continue;
- }
- if ($file->getFileName() == 'loadShortcuts.php') {
- continue;
- }
- $ns = $file->getRelativePath();
- if (!$ns) {
- continue;
- }
- $class = basename(substr($file, 0, -4));
- class_exists($class = "Robo\\Task\\$ns\\$class");
- $docs[$ns][] = $class;
- }
- ksort($docs);
-
- foreach ($docs as $ns => $tasks) {
- $taskGenerator = $collection->taskGenDoc("docs/tasks/$ns.md");
- $taskGenerator->filterClasses(function (\ReflectionClass $r) {
- return !($r->isAbstract() || $r->isTrait()) && $r->implementsInterface('Robo\Contract\TaskInterface');
- })->prepend("# $ns Tasks");
- sort($tasks);
- foreach ($tasks as $class) {
- $taskGenerator->docClass($class);
- }
-
- $taskGenerator->filterMethods(
- function (\ReflectionMethod $m) {
- if ($m->isConstructor() || $m->isDestructor() || $m->isStatic()) {
- return false;
- }
- $undocumentedMethods =
- [
- '',
- 'run',
- '__call',
- 'inflect',
- 'injectDependencies',
- 'getCommand',
- 'getPrinted',
- 'getConfig',
- 'setConfig',
- 'logger',
- 'setLogger',
- 'setProgressIndicator',
- 'progressIndicatorSteps',
- 'setBuilder',
- 'getBuilder',
- 'collectionBuilder',
- 'setVerbosityThreshold',
- 'verbosityThreshold',
- 'setOutputAdapter',
- 'outputAdapter',
- 'hasOutputAdapter',
- 'verbosityMeetsThreshold',
- 'writeMessage',
- 'detectInteractive',
- 'background',
- 'timeout',
- 'idleTimeout',
- 'env',
- 'envVars',
- 'setInput',
- 'interactive',
- 'silent',
- 'printed',
- 'printOutput',
- 'printMetadata',
- ];
- return !in_array($m->name, $undocumentedMethods) && $m->isPublic(); // methods are not documented
- }
- )->processClassSignature(
- function ($c) {
- return "## " . preg_replace('~Task$~', '', $c->getShortName()) . "\n";
- }
- )->processClassDocBlock(
- function (\ReflectionClass $c, $doc) {
- $doc = preg_replace('~@method .*?(.*?)\)~', '* `$1)` ', $doc);
- $doc = str_replace('\\'.$c->name, '', $doc);
- return $doc;
- }
- )->processMethodSignature(
- function (\ReflectionMethod $m, $text) {
- return str_replace('#### *public* ', '* `', $text) . '`';
- }
- )->processMethodDocBlock(
- function (\ReflectionMethod $m, $text) {
-
- return $text ? ' ' . trim(strtok($text, "\n"), "\n") : '';
- }
- );
- }
- $collection->progressMessage('Documentation generation complete.');
- return $collection->run();
- }
-
- /**
- * Publish Robo.
- *
- * Builds a site in gh-pages branch. Uses mkdocs
- */
- public function publish()
- {
- $current_branch = exec('git rev-parse --abbrev-ref HEAD');
-
- return $this->collectionBuilder()
- ->taskGitStack()
- ->checkout('site')
- ->merge('1.x')
- ->completion($this->taskGitStack()->checkout($current_branch))
- ->taskFilesystemStack()
- ->copy('CHANGELOG.md', 'docs/changelog.md')
- ->completion($this->taskFilesystemStack()->remove('docs/changelog.md'))
- ->taskExec('mkdocs gh-deploy')
- ->run();
- }
-
- /**
- * Build the Robo phar executable.
- */
- public function pharBuild()
- {
- $this->checkPharReadonly();
-
- // Create a collection builder to hold the temporary
- // directory until the pack phar task runs.
- $collection = $this->collectionBuilder();
-
- $workDir = $collection->tmpDir();
- $roboBuildDir = "$workDir/robo";
-
- // Before we run `composer install`, we will remove the dev
- // dependencies that we only use in the unit tests. Any dev dependency
- // that is in the 'suggested' section is used by a core task;
- // we will include all of those in the phar.
- $devProjectsToRemove = $this->devDependenciesToRemoveFromPhar();
-
- // We need to create our work dir and run `composer install`
- // before we prepare the pack phar task, so create a separate
- // collection builder to do this step in.
- $prepTasks = $this->collectionBuilder();
-
- $preparationResult = $prepTasks
- ->taskFilesystemStack()
- ->mkdir($workDir)
- ->taskRsync()
- ->fromPath(
- [
- __DIR__ . '/composer.json',
- __DIR__ . '/scripts',
- __DIR__ . '/src',
- __DIR__ . '/data'
- ]
- )
- ->toPath($roboBuildDir)
- ->recursive()
- ->progress()
- ->stats()
- ->taskComposerRemove()
- ->dir($roboBuildDir)
- ->dev()
- ->noUpdate()
- ->args($devProjectsToRemove)
- ->taskComposerInstall()
- ->dir($roboBuildDir)
- ->noScripts()
- ->printed(true)
- ->run();
-
- // Exit if the preparation step failed
- if (!$preparationResult->wasSuccessful()) {
- return $preparationResult;
- }
-
- // Decide which files we're going to pack
- $files = Finder::create()->ignoreVCS(true)
- ->files()
- ->name('*.php')
- ->name('*.exe') // for 1symfony/console/Resources/bin/hiddeninput.exe
- ->name('GeneratedWrapper.tmpl')
- ->path('src')
- ->path('vendor')
- ->notPath('docs')
- ->notPath('/vendor\/.*\/[Tt]est/')
- ->in(is_dir($roboBuildDir) ? $roboBuildDir : __DIR__);
-
- // Build the phar
- return $collection
- ->taskPackPhar('robo.phar')
- ->addFiles($files)
- ->addFile('robo', 'robo')
- ->executable('robo')
- ->taskFilesystemStack()
- ->chmod('robo.phar', 0777)
- ->run();
- }
-
- protected function checkPharReadonly()
- {
- if (ini_get('phar.readonly')) {
- throw new \Exception('Must set "phar.readonly = Off" in php.ini to build phars.');
- }
- }
-
- /**
- * The phar:build command removes the project requirements from the
- * 'require-dev' section that are not in the 'suggest' section.
- *
- * @return array
- */
- protected function devDependenciesToRemoveFromPhar()
- {
- $composerInfo = (array) json_decode(file_get_contents(__DIR__ . '/composer.json'));
-
- $devDependencies = array_keys((array)$composerInfo['require-dev']);
- $suggestedProjects = array_keys((array)$composerInfo['suggest']);
-
- return array_diff($devDependencies, $suggestedProjects);
- }
-
- /**
- * Install Robo phar.
- *
- * Installs the Robo phar executable in /usr/bin. Uses 'sudo'.
- */
- public function pharInstall()
- {
- return $this->taskExec('sudo cp')
- ->arg('robo.phar')
- ->arg('/usr/bin/robo')
- ->run();
- }
-
- /**
- * Publish Robo phar.
- *
- * Commits the phar executable to Robo's GitHub pages site.
- */
- public function pharPublish()
- {
- $this->pharBuild();
-
- $this->collectionBuilder()
- ->taskFilesystemStack()
- ->rename('robo.phar', 'robo-release.phar')
- ->taskGitStack()
- ->checkout('site')
- ->pull('origin site')
- ->taskFilesystemStack()
- ->remove('robotheme/robo.phar')
- ->rename('robo-release.phar', 'robotheme/robo.phar')
- ->taskGitStack()
- ->add('robotheme/robo.phar')
- ->commit('Update robo.phar to ' . \Robo\Robo::VERSION)
- ->push('origin site')
- ->checkout('1.x')
- ->run();
- }
-}
diff --git a/vendor/consolidation/robo/codeception.yml b/vendor/consolidation/robo/codeception.yml
deleted file mode 100644
index 09763ea71..000000000
--- a/vendor/consolidation/robo/codeception.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-actor: Guy
-paths:
- tests: tests
- log: tests/_log
- data: tests/_data
- helpers: tests/_helpers
-settings:
- bootstrap: _bootstrap.php
- colors: true
- memory_limit: 1024M
-modules:
- config:
- Db:
- dsn: ''
- user: ''
- password: ''
- dump: tests/_data/dump.sql
-coverage:
- enabled: true
- include:
- - src/*
diff --git a/vendor/consolidation/robo/composer.json b/vendor/consolidation/robo/composer.json
deleted file mode 100644
index 08bfe7765..000000000
--- a/vendor/consolidation/robo/composer.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "name": "consolidation/robo",
- "description": "Modern task runner",
- "license": "MIT",
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "autoload":{
- "psr-4":{
- "Robo\\":"src"
- }
- },
- "autoload-dev":{
- "psr-4":{
- "Robo\\":"tests/src",
- "RoboExample\\":"examples/src"
- }
- },
- "bin":["robo"],
- "require": {
- "php": ">=5.5.0",
- "league/container": "^2.2",
- "consolidation/log": "~1",
- "consolidation/config": "^1.0.10",
- "consolidation/annotated-command": "^2.10.2",
- "consolidation/output-formatters": "^3.1.13",
- "consolidation/self-update": "^1",
- "grasmash/yaml-expander": "^1.3",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/console": "^2.8|^3|^4",
- "symfony/process": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "patchwork/jsqueeze": "~2",
- "natxet/CssMin": "3.0.4",
- "pear/archive_tar": "^1.4.2",
- "codeception/base": "^2.3.7",
- "goaop/framework": "~2.1.2",
- "codeception/verify": "^0.3.2",
- "codeception/aspect-mock": "^1|^2.1.1",
- "goaop/parser-reflection": "^1.1.0",
- "nikic/php-parser": "^3.1.5",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/php-code-coverage": "~2|~4",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "scripts": {
- "cs": "./robo sniff",
- "unit": "./robo test --coverage",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "pre-install-cmd": [
- "Robo\\composer\\ScriptHandler::checkDependencies"
- ]
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "5.6.3"
- }
- },
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "remove": [
- "goaop/framework"
- ],
- "config": {
- "platform": {
- "php": "5.5.9"
- }
- },
- "scenario-options": {
- "create-lockfile": "false"
- }
- }
- },
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "suggest": {
- "pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.",
- "henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "patchwork/jsqueeze": "For minifying JS files in taskMinify",
- "natxet/CssMin": "For minifying CSS files in taskMinify"
- },
- "replace": {
- "codegyre/robo": "< 1.0"
- }
-}
diff --git a/vendor/consolidation/robo/composer.lock b/vendor/consolidation/robo/composer.lock
deleted file mode 100644
index b871490bd..000000000
--- a/vendor/consolidation/robo/composer.lock
+++ /dev/null
@@ -1,4163 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "9c5c482a5c2448a1c439a441f3da2529",
- "packages": [
- {
- "name": "consolidation/annotated-command",
- "version": "2.11.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/annotated-command.git",
- "reference": "edea407f57104ed518cc3c3b47d5b84403ee267a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/edea407f57104ed518cc3c3b47d5b84403ee267a",
- "reference": "edea407f57104ed518cc3c3b47d5b84403ee267a",
- "shasum": ""
- },
- "require": {
- "consolidation/output-formatters": "^3.4",
- "php": ">=5.4.0",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- },
- "scenario-options": {
- "create-lockfile": "false"
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "time": "2018-12-29T04:43:17+00:00"
- },
- {
- "name": "consolidation/config",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/config.git",
- "reference": "925231dfff32f05b787e1fddb265e789b939cf4c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/config/zipball/925231dfff32f05b787e1fddb265e789b939cf4c",
- "reference": "925231dfff32f05b787e1fddb265e789b939cf4c",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "grasmash/expander": "^1",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^5",
- "satooshi/php-coveralls": "^1.0",
- "squizlabs/php_codesniffer": "2.*",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "suggest": {
- "symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Config\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Provide configuration services for a commandline tool.",
- "time": "2018-10-24T17:55:35+00:00"
- },
- {
- "name": "consolidation/log",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/log.git",
- "reference": "b2e887325ee90abc96b0a8b7b474cd9e7c896e3a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/log/zipball/b2e887325ee90abc96b0a8b7b474cd9e7c896e3a",
- "reference": "b2e887325ee90abc96b0a8b7b474cd9e7c896e3a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.5",
- "psr/log": "^1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2"
- },
- "type": "library",
- "extra": {
- "scenarios": {
- "symfony4": {
- "require": {
- "symfony/console": "^4.0"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- },
- "phpunit4": {
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
- }
- },
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "time": "2019-01-01T17:30:51+00:00"
- },
- {
- "name": "consolidation/output-formatters",
- "version": "3.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/a942680232094c4a5b21c0b7e54c20cce623ae19",
- "reference": "a942680232094c4a5b21c0b7e54c20cce623ae19",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-10-19T22:35:38+00:00"
- },
- {
- "name": "consolidation/self-update",
- "version": "1.1.5",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/self-update.git",
- "reference": "a1c273b14ce334789825a09d06d4c87c0a02ad54"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/self-update/zipball/a1c273b14ce334789825a09d06d4c87c0a02ad54",
- "reference": "a1c273b14ce334789825a09d06d4c87c0a02ad54",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4"
- },
- "bin": [
- "scripts/release"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "SelfUpdate\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Alexander Menk",
- "email": "menk@mestrona.net"
- }
- ],
- "description": "Provides a self:update command for Symfony Console applications.",
- "time": "2018-10-28T01:52:03+00:00"
- },
- {
- "name": "container-interop/container-interop",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/container-interop/container-interop.git",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "shasum": ""
- },
- "require": {
- "psr/container": "^1.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop",
- "time": "2017-02-14T19:40:03+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "grasmash/expander",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/expander.git",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\Expander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in PHP arrays file.",
- "time": "2017-12-21T22:14:55+00:00"
- },
- {
- "name": "grasmash/yaml-expander",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/yaml-expander.git",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/yaml-expander/zipball/3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\YamlExpander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in a yaml file.",
- "time": "2017-12-16T16:06:03+00:00"
- },
- {
- "name": "league/container",
- "version": "2.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/thephpleague/container.git",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/thephpleague/container/zipball/43f35abd03a12977a60ffd7095efd6a7808488c0",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0",
- "shasum": ""
- },
- "require": {
- "container-interop/container-interop": "^1.2",
- "php": "^5.4.0 || ^7.0"
- },
- "provide": {
- "container-interop/container-interop-implementation": "^1.2",
- "psr/container-implementation": "^1.0"
- },
- "replace": {
- "orno/di": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-2.x": "2.x-dev",
- "dev-1.x": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "League\\Container\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Phil Bennett",
- "email": "philipobenito@gmail.com",
- "homepage": "http://www.philipobenito.com",
- "role": "Developer"
- }
- ],
- "description": "A fast and intuitive dependency injection container.",
- "homepage": "https://github.com/thephpleague/container",
- "keywords": [
- "container",
- "dependency",
- "di",
- "injection",
- "league",
- "provider",
- "service"
- ],
- "time": "2017-05-10T09:20:27+00:00"
- },
- {
- "name": "psr/container",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/container.git",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common Container Interface (PHP FIG PSR-11)",
- "homepage": "https://github.com/php-fig/container",
- "keywords": [
- "PSR-11",
- "container",
- "container-interface",
- "container-interop",
- "psr"
- ],
- "time": "2017-02-14T16:28:37+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2018-11-20T15:27:04+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "8f80fc39bbc3b7c47ee54ba7aa2653521ace94bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/8f80fc39bbc3b7c47ee54ba7aa2653521ace94bb",
- "reference": "8f80fc39bbc3b7c47ee54ba7aa2653521ace94bb",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T12:48:07+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "a2233f555ddf55e5600f386fba7781cea1cb82d3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/a2233f555ddf55e5600f386fba7781cea1cb82d3",
- "reference": "a2233f555ddf55e5600f386fba7781cea1cb82d3",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-27T12:43:10+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "cc35e84adbb15c26ae6868e1efbf705a917be6b5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/cc35e84adbb15c26ae6868e1efbf705a917be6b5",
- "reference": "cc35e84adbb15c26ae6868e1efbf705a917be6b5",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-30T18:07:24+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "b49b1ca166bd109900e6a1683d9bb1115727ef2d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/b49b1ca166bd109900e6a1683d9bb1115727ef2d",
- "reference": "b49b1ca166bd109900e6a1683d9bb1115727ef2d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "6cf2be5cbd0e87aa35c01f80ae0bf40b6798e442"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/6cf2be5cbd0e87aa35c01f80ae0bf40b6798e442",
- "reference": "6cf2be5cbd0e87aa35c01f80ae0bf40b6798e442",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-09-21T13:07:52+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "abb46b909dd6ba0b50e10d4c10ffe6ee96dd70f2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/abb46b909dd6ba0b50e10d4c10ffe6ee96dd70f2",
- "reference": "abb46b909dd6ba0b50e10d4c10ffe6ee96dd70f2",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-20T16:10:26+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "291e13d808bec481eab83f301f7bff3e699ef603"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/291e13d808bec481eab83f301f7bff3e699ef603",
- "reference": "291e13d808bec481eab83f301f7bff3e699ef603",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "behat/gherkin",
- "version": "v4.5.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Behat/Gherkin.git",
- "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Behat/Gherkin/zipball/74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a",
- "reference": "74ac03d52c5e23ad8abd5c5cce4ab0e8dc1b530a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5|~5",
- "symfony/phpunit-bridge": "~2.7|~3",
- "symfony/yaml": "~2.3|~3"
- },
- "suggest": {
- "symfony/yaml": "If you want to parse features, represented in YAML files"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.4-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Behat\\Gherkin": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- }
- ],
- "description": "Gherkin DSL parser for PHP 5.3",
- "homepage": "http://behat.org/",
- "keywords": [
- "BDD",
- "Behat",
- "Cucumber",
- "DSL",
- "gherkin",
- "parser"
- ],
- "time": "2017-08-30T11:04:43+00:00"
- },
- {
- "name": "codeception/aspect-mock",
- "version": "2.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/AspectMock.git",
- "reference": "bf3c000599c0dc75ecb52e19dee2b8ed294cf7ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/AspectMock/zipball/bf3c000599c0dc75ecb52e19dee2b8ed294cf7ba",
- "reference": "bf3c000599c0dc75ecb52e19dee2b8ed294cf7ba",
- "shasum": ""
- },
- "require": {
- "goaop/framework": "^2.0.0",
- "php": ">=5.6.0",
- "symfony/finder": "~2.4|~3.0"
- },
- "require-dev": {
- "codeception/base": "~2.1",
- "codeception/specify": "~0.3",
- "codeception/verify": "~0.2"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "AspectMock": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Bodnarchuk",
- "email": "davert@codeception.com"
- }
- ],
- "description": "Experimental Mocking Framework powered by Aspects",
- "time": "2017-10-24T10:20:17+00:00"
- },
- {
- "name": "codeception/base",
- "version": "2.5.2",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/base.git",
- "reference": "50aaf8bc032823018aed8d14114843b4a2c52a48"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/base/zipball/50aaf8bc032823018aed8d14114843b4a2c52a48",
- "reference": "50aaf8bc032823018aed8d14114843b4a2c52a48",
- "shasum": ""
- },
- "require": {
- "behat/gherkin": "^4.4.0",
- "codeception/phpunit-wrapper": "^6.0.9|^7.0.6",
- "codeception/stub": "^2.0",
- "ext-curl": "*",
- "ext-json": "*",
- "ext-mbstring": "*",
- "guzzlehttp/psr7": "~1.0",
- "php": ">=5.6.0 <8.0",
- "symfony/browser-kit": ">=2.7 <5.0",
- "symfony/console": ">=2.7 <5.0",
- "symfony/css-selector": ">=2.7 <5.0",
- "symfony/dom-crawler": ">=2.7 <5.0",
- "symfony/event-dispatcher": ">=2.7 <5.0",
- "symfony/finder": ">=2.7 <5.0",
- "symfony/yaml": ">=2.7 <5.0"
- },
- "require-dev": {
- "codeception/specify": "~0.3",
- "facebook/graph-sdk": "~5.3",
- "flow/jsonpath": "~0.2",
- "monolog/monolog": "~1.8",
- "pda/pheanstalk": "~3.0",
- "php-amqplib/php-amqplib": "~2.4",
- "predis/predis": "^1.0",
- "squizlabs/php_codesniffer": "~2.0",
- "symfony/process": ">=2.7 <5.0",
- "vlucas/phpdotenv": "^2.4.0"
- },
- "suggest": {
- "aws/aws-sdk-php": "For using AWS Auth in REST module and Queue module",
- "codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests",
- "codeception/specify": "BDD-style code blocks",
- "codeception/verify": "BDD-style assertions",
- "flow/jsonpath": "For using JSONPath in REST module",
- "league/factory-muffin": "For DataFactory module",
- "league/factory-muffin-faker": "For Faker support in DataFactory module",
- "phpseclib/phpseclib": "for SFTP option in FTP Module",
- "stecman/symfony-console-completion": "For BASH autocompletion",
- "symfony/phpunit-bridge": "For phpunit-bridge support"
- },
- "bin": [
- "codecept"
- ],
- "type": "library",
- "extra": {
- "branch-alias": []
- },
- "autoload": {
- "psr-4": {
- "Codeception\\": "src/Codeception",
- "Codeception\\Extension\\": "ext"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Bodnarchuk",
- "email": "davert@mail.ua",
- "homepage": "http://codegyre.com"
- }
- ],
- "description": "BDD-style testing framework",
- "homepage": "http://codeception.com/",
- "keywords": [
- "BDD",
- "TDD",
- "acceptance testing",
- "functional testing",
- "unit testing"
- ],
- "time": "2019-01-01T21:20:37+00:00"
- },
- {
- "name": "codeception/phpunit-wrapper",
- "version": "6.0.13",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/phpunit-wrapper.git",
- "reference": "d25db254173582bc27aa8c37cb04ce2481675bcd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/d25db254173582bc27aa8c37cb04ce2481675bcd",
- "reference": "d25db254173582bc27aa8c37cb04ce2481675bcd",
- "shasum": ""
- },
- "require": {
- "phpunit/php-code-coverage": ">=4.0.4 <6.0",
- "phpunit/phpunit": ">=5.7.27 <6.5.13",
- "sebastian/comparator": ">=1.2.4 <3.0",
- "sebastian/diff": ">=1.4 <4.0"
- },
- "replace": {
- "codeception/phpunit-wrapper": "*"
- },
- "require-dev": {
- "codeception/specify": "*",
- "vlucas/phpdotenv": "^2.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Codeception\\PHPUnit\\": "src\\"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "description": "PHPUnit classes used by Codeception",
- "time": "2019-01-01T15:39:52+00:00"
- },
- {
- "name": "codeception/stub",
- "version": "2.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/Stub.git",
- "reference": "f50bc271f392a2836ff80690ce0c058efe1ae03e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/Stub/zipball/f50bc271f392a2836ff80690ce0c058efe1ae03e",
- "reference": "f50bc271f392a2836ff80690ce0c058efe1ae03e",
- "shasum": ""
- },
- "require": {
- "phpunit/phpunit": ">=4.8 <8.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Codeception\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Flexible Stub wrapper for PHPUnit's Mock Builder",
- "time": "2018-07-26T11:55:37+00:00"
- },
- {
- "name": "codeception/verify",
- "version": "0.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/Codeception/Verify.git",
- "reference": "5d649dda453cd814dadc4bb053060cd2c6bb4b4c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Codeception/Verify/zipball/5d649dda453cd814dadc4bb053060cd2c6bb4b4c",
- "reference": "5d649dda453cd814dadc4bb053060cd2c6bb4b4c",
- "shasum": ""
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "autoload": {
- "files": [
- "src/Codeception/function.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Bodnarchuk",
- "email": "davert.php@mailican.com"
- }
- ],
- "description": "BDD assertion library for PHPUnit",
- "time": "2017-01-09T10:58:51+00:00"
- },
- {
- "name": "doctrine/annotations",
- "version": "v1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/annotations.git",
- "reference": "54cacc9b81758b14e3ce750f205a393d52339e97"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97",
- "reference": "54cacc9b81758b14e3ce750f205a393d52339e97",
- "shasum": ""
- },
- "require": {
- "doctrine/lexer": "1.*",
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/cache": "1.*",
- "phpunit/phpunit": "^5.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Docblock Annotations Parser",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "annotations",
- "docblock",
- "parser"
- ],
- "time": "2017-02-24T16:22:25+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "doctrine/lexer",
- "version": "v1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/lexer.git",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Lexer\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "lexer",
- "parser"
- ],
- "time": "2014-09-09T13:34:57+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/224531e20d13a07942a989a70759f726cd2df9a1",
- "reference": "224531e20d13a07942a989a70759f726cd2df9a1",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "composer/composer": "^1.7",
- "php-coveralls/php-coveralls": "^1.0",
- "phpunit/phpunit": "^4.8.36|^6",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "bin": [
- "scripts/dependency-licenses"
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "ComposerTestScenarios\\Plugin",
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "ComposerTestScenarios\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-11-27T05:58:39+00:00"
- },
- {
- "name": "goaop/framework",
- "version": "2.1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/goaop/framework.git",
- "reference": "6e2a0fe13c1943db02a67588cfd27692bddaffa5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/goaop/framework/zipball/6e2a0fe13c1943db02a67588cfd27692bddaffa5",
- "reference": "6e2a0fe13c1943db02a67588cfd27692bddaffa5",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "~1.0",
- "goaop/parser-reflection": "~1.2",
- "jakubledl/dissect": "~1.0",
- "php": ">=5.6.0"
- },
- "require-dev": {
- "adlawson/vfs": "^0.12",
- "doctrine/orm": "^2.5",
- "phpunit/phpunit": "^4.8",
- "symfony/console": "^2.7|^3.0"
- },
- "suggest": {
- "symfony/console": "Enables the usage of the command-line tool."
- },
- "bin": [
- "bin/aspect"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Go\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Lisachenko Alexander",
- "homepage": "https://github.com/lisachenko"
- }
- ],
- "description": "Framework for aspect-oriented programming in PHP.",
- "homepage": "http://go.aopphp.com/",
- "keywords": [
- "aop",
- "aspect",
- "library",
- "php"
- ],
- "time": "2017-07-12T11:46:25+00:00"
- },
- {
- "name": "goaop/parser-reflection",
- "version": "1.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/goaop/parser-reflection.git",
- "reference": "d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/goaop/parser-reflection/zipball/d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166",
- "reference": "d9c1dcc7ce4a5284fe3530e011faf9c9c10e1166",
- "shasum": ""
- },
- "require": {
- "nikic/php-parser": "^1.2|^2.0|^3.0",
- "php": ">=5.6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Go\\ParserReflection\\": "src"
- },
- "files": [
- "src/bootstrap.php"
- ],
- "exclude-from-classmap": [
- "/tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Alexander Lisachenko",
- "email": "lisachenko.it@gmail.com"
- }
- ],
- "description": "Provides reflection information, based on raw source",
- "time": "2018-03-19T15:57:41+00:00"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "reference": "4de0618a01b34aa1c8c33a3f13f396dcd3882eba",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": ">=2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "*",
- "monolog/monolog": "1.*",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "1.0.*",
- "symfony/class-loader": "*",
- "zendframework/zend-cache": "<2.3",
- "zendframework/zend-log": "<2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.8-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "abandoned": "guzzlehttp/guzzle",
- "time": "2014-01-28T22:29:15+00:00"
- },
- {
- "name": "guzzlehttp/psr7",
- "version": "1.5.2",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/psr7.git",
- "reference": "9f83dded91781a01c63574e387eaa769be769115"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
- "reference": "9f83dded91781a01c63574e387eaa769be769115",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0",
- "ralouphie/getallheaders": "^2.0.5"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Tobias Schultze",
- "homepage": "https://github.com/Tobion"
- }
- ],
- "description": "PSR-7 message implementation that also provides common utility methods",
- "keywords": [
- "http",
- "message",
- "psr-7",
- "request",
- "response",
- "stream",
- "uri",
- "url"
- ],
- "time": "2018-12-04T20:46:45+00:00"
- },
- {
- "name": "jakubledl/dissect",
- "version": "v1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/jakubledl/dissect.git",
- "reference": "d3a391de31e45a247e95cef6cf58a91c05af67c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/jakubledl/dissect/zipball/d3a391de31e45a247e95cef6cf58a91c05af67c4",
- "reference": "d3a391de31e45a247e95cef6cf58a91c05af67c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/console": "~2.1"
- },
- "suggest": {
- "symfony/console": "for the command-line tool"
- },
- "bin": [
- "bin/dissect.php",
- "bin/dissect"
- ],
- "type": "library",
- "autoload": {
- "psr-0": {
- "Dissect": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "unlicense"
- ],
- "authors": [
- {
- "name": "Jakub Lédl",
- "email": "jakubledl@gmail.com"
- }
- ],
- "description": "Lexing and parsing in pure PHP",
- "homepage": "https://github.com/jakubledl/dissect",
- "keywords": [
- "ast",
- "lexing",
- "parser",
- "parsing"
- ],
- "time": "2013-01-29T21:29:14+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "natxet/CssMin",
- "version": "v3.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/natxet/CssMin.git",
- "reference": "92de3fe3ccb4f8298d31952490ef7d5395855c39"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/natxet/CssMin/zipball/92de3fe3ccb4f8298d31952490ef7d5395855c39",
- "reference": "92de3fe3ccb4f8298d31952490ef7d5395855c39",
- "shasum": ""
- },
- "require": {
- "php": ">=5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Joe Scylla",
- "email": "joe.scylla@gmail.com",
- "homepage": "https://profiles.google.com/joe.scylla"
- }
- ],
- "description": "Minifying CSS",
- "homepage": "http://code.google.com/p/cssmin/",
- "keywords": [
- "css",
- "minify"
- ],
- "time": "2015-09-25T11:13:11+00:00"
- },
- {
- "name": "nikic/php-parser",
- "version": "v3.1.5",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/bb87e28e7d7b8d9a7fda231d37457c9210faf6ce",
- "reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0|~5.0"
- },
- "bin": [
- "bin/php-parse"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ],
- "time": "2018-02-28T20:30:58+00:00"
- },
- {
- "name": "patchwork/jsqueeze",
- "version": "v2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/tchwork/jsqueeze.git",
- "reference": "693d64850eab2ce6a7c8f7cf547e1ab46e69d542"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/tchwork/jsqueeze/zipball/693d64850eab2ce6a7c8f7cf547e1ab46e69d542",
- "reference": "693d64850eab2ce6a7c8f7cf547e1ab46e69d542",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Patchwork\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "(Apache-2.0 or GPL-2.0)"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- }
- ],
- "description": "Efficient JavaScript minification in PHP",
- "homepage": "https://github.com/tchwork/jsqueeze",
- "keywords": [
- "compression",
- "javascript",
- "minification"
- ],
- "time": "2016-04-19T09:28:22+00:00"
- },
- {
- "name": "pear/archive_tar",
- "version": "1.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/Archive_Tar.git",
- "reference": "b005152d4ed8f23bcc93637611fa94f39ef5b904"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/Archive_Tar/zipball/b005152d4ed8f23bcc93637611fa94f39ef5b904",
- "reference": "b005152d4ed8f23bcc93637611fa94f39ef5b904",
- "shasum": ""
- },
- "require": {
- "pear/pear-core-minimal": "^1.10.0alpha2",
- "php": ">=5.2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "*"
- },
- "suggest": {
- "ext-bz2": "Bz2 compression support.",
- "ext-xz": "Lzma2 compression support.",
- "ext-zlib": "Gzip compression support."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Archive_Tar": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "./"
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Vincent Blavet",
- "email": "vincent@phpconcept.net"
- },
- {
- "name": "Greg Beaver",
- "email": "greg@chiaraquartet.net"
- },
- {
- "name": "Michiel Rook",
- "email": "mrook@php.net"
- }
- ],
- "description": "Tar file management class with compression support (gzip, bzip2, lzma2)",
- "homepage": "https://github.com/pear/Archive_Tar",
- "keywords": [
- "archive",
- "tar"
- ],
- "time": "2018-12-20T20:47:24+00:00"
- },
- {
- "name": "pear/console_getopt",
- "version": "v1.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/Console_Getopt.git",
- "reference": "82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/Console_Getopt/zipball/82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f",
- "reference": "82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Console": "./"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "./"
- ],
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Greg Beaver",
- "email": "cellog@php.net",
- "role": "Helper"
- },
- {
- "name": "Andrei Zmievski",
- "email": "andrei@php.net",
- "role": "Lead"
- },
- {
- "name": "Stig Bakken",
- "email": "stig@php.net",
- "role": "Developer"
- }
- ],
- "description": "More info available on: http://pear.php.net/package/Console_Getopt",
- "time": "2015-07-20T20:28:12+00:00"
- },
- {
- "name": "pear/pear-core-minimal",
- "version": "v1.10.7",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/pear-core-minimal.git",
- "reference": "19a3e0fcd50492c4357372f623f55f1b144346da"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/19a3e0fcd50492c4357372f623f55f1b144346da",
- "reference": "19a3e0fcd50492c4357372f623f55f1b144346da",
- "shasum": ""
- },
- "require": {
- "pear/console_getopt": "~1.4",
- "pear/pear_exception": "~1.0"
- },
- "replace": {
- "rsky/pear-core-min": "self.version"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "src/"
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Christian Weiske",
- "email": "cweiske@php.net",
- "role": "Lead"
- }
- ],
- "description": "Minimal set of PEAR core files to be used as composer dependency",
- "time": "2018-12-05T20:03:52+00:00"
- },
- {
- "name": "pear/pear_exception",
- "version": "v1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/pear/PEAR_Exception.git",
- "reference": "8c18719fdae000b690e3912be401c76e406dd13b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/pear/PEAR_Exception/zipball/8c18719fdae000b690e3912be401c76e406dd13b",
- "reference": "8c18719fdae000b690e3912be401c76e406dd13b",
- "shasum": ""
- },
- "require": {
- "php": ">=4.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "*"
- },
- "type": "class",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "PEAR": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- "."
- ],
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Helgi Thormar",
- "email": "dufuz@php.net"
- },
- {
- "name": "Greg Beaver",
- "email": "cellog@php.net"
- }
- ],
- "description": "The PEAR Exception base class.",
- "homepage": "https://github.com/pear/PEAR_Exception",
- "keywords": [
- "exception"
- ],
- "time": "2015-02-10T20:07:52+00:00"
- },
- {
- "name": "php-coveralls/php-coveralls",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "reference": "37f8f83fe22224eb9d9c6d593cdeb33eedd2a9ad",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8 || ^3.0",
- "php": "^5.3.3 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2017-12-06T23:17:56+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "3.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-10T14:09:06+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
- },
- "require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
- },
- "suggest": {
- "ext-xdebug": "^2.5.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2017-04-02T07:44:40+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "5.7.27",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-02-01T05:50:59+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2017-06-30T09:13:00+00:00"
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "ralouphie/getallheaders",
- "version": "2.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/ralouphie/getallheaders.git",
- "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
- "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.7.0",
- "satooshi/php-coveralls": ">=1.0"
- },
- "type": "library",
- "autoload": {
- "files": [
- "src/getallheaders.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Ralph Khattar",
- "email": "ralph.khattar@gmail.com"
- }
- ],
- "description": "A polyfill for getallheaders.",
- "time": "2016-02-11T07:05:27+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-11-26T07:53:53+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-11-19T08:54:04+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-02-18T15:18:39+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-11-19T07:33:16+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2018-11-07T22:31:41+00:00"
- },
- {
- "name": "symfony/browser-kit",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/browser-kit.git",
- "reference": "49465af22d94c8d427c51facbf8137eb285b9726"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/browser-kit/zipball/49465af22d94c8d427c51facbf8137eb285b9726",
- "reference": "49465af22d94c8d427c51facbf8137eb285b9726",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/dom-crawler": "~2.8|~3.0|~4.0"
- },
- "require-dev": {
- "symfony/css-selector": "~2.8|~3.0|~4.0",
- "symfony/process": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\BrowserKit\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony BrowserKit Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T10:17:44+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "8a660daeb65dedbe0b099529f65e61866c055081"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/8a660daeb65dedbe0b099529f65e61866c055081",
- "reference": "8a660daeb65dedbe0b099529f65e61866c055081",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T10:17:44+00:00"
- },
- {
- "name": "symfony/css-selector",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/css-selector.git",
- "reference": "345b9a48595d1ab9630db791dbc3e721bf0233e8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/css-selector/zipball/345b9a48595d1ab9630db791dbc3e721bf0233e8",
- "reference": "345b9a48595d1ab9630db791dbc3e721bf0233e8",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\CssSelector\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jean-François Simon",
- "email": "jeanfrancois.simon@sensiolabs.com"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony CssSelector Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "symfony/dom-crawler",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/dom-crawler.git",
- "reference": "b6e94248eb4f8602a5825301b0bea1eb8cc82cfa"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/b6e94248eb4f8602a5825301b0bea1eb8cc82cfa",
- "reference": "b6e94248eb4f8602a5825301b0bea1eb8cc82cfa",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "symfony/css-selector": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/css-selector": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\DomCrawler\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony DomCrawler Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-26T10:17:44+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.20",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "0f43969ab2718de55c1c1158dce046668079788d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/0f43969ab2718de55c1c1158dce046668079788d",
- "reference": "0f43969ab2718de55c1c1158dce046668079788d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-11-11T19:48:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-12-25T11:19:39+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.5.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.6.3"
- }
-}
diff --git a/vendor/consolidation/robo/data/Task/Development/GeneratedWrapper.tmpl b/vendor/consolidation/robo/data/Task/Development/GeneratedWrapper.tmpl
deleted file mode 100644
index 6682748f0..000000000
--- a/vendor/consolidation/robo/data/Task/Development/GeneratedWrapper.tmpl
+++ /dev/null
@@ -1,39 +0,0 @@
-task{wrapperClassName}()
- * ...
- * ->run();
- *
- * // one line
- * ...
- *
- * ?>
- * ```
- *
-{methodList}
- */
-class {wrapperClassName} extends StackBasedTask
-{
- protected $delegate;
-
- public function __construct()
- {
- $this->delegate = new {delegate}();
- }
-
- protected function getDelegate()
- {
- return $this->delegate;
- }{immediateMethods}{methodImplementations}
-}
diff --git a/vendor/consolidation/robo/dependencies.yml b/vendor/consolidation/robo/dependencies.yml
deleted file mode 100644
index f70d8c36e..000000000
--- a/vendor/consolidation/robo/dependencies.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-version: 2
-dependencies:
-- type: php
- settings:
- composer_options: "--no-dev" # used in "collection", overriden when actually making updates
- lockfile_updates:
- settings:
- composer_options: ""
- manifest_updates:
- settings:
- composer_options: ""
- filters:
- - name: ".*"
- versions: "L.Y.Y"
diff --git a/vendor/consolidation/robo/phpunit.xml b/vendor/consolidation/robo/phpunit.xml
deleted file mode 100644
index b2d8394aa..000000000
--- a/vendor/consolidation/robo/phpunit.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
- ./src
-
-
-
-
-
-
-
diff --git a/vendor/consolidation/robo/robo b/vendor/consolidation/robo/robo
deleted file mode 100755
index b6707d27f..000000000
--- a/vendor/consolidation/robo/robo
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env php
- 500000);
-
-// Non-phar autoloader paths
-$candidates = [
- __DIR__.'/vendor/autoload.php',
- __DIR__.'/../../autoload.php',
-];
-
-// Use our phar alias path
-if ($isPhar) {
- array_unshift($candidates, 'phar://robo.phar/vendor/autoload.php');
-}
-
-$autoloaderPath = false;
-foreach ($candidates as $candidate) {
- if (file_exists($candidate)) {
- $autoloaderPath = $candidate;
- break;
- }
-}
-if (!$autoloaderPath) {
- die("Could not find autoloader. Run 'composer install'.");
-}
-$classLoader = require $autoloaderPath;
-$configFilePath = getenv('ROBO_CONFIG') ?: getenv('HOME') . '/.robo/robo.yml';
-$runner = new \Robo\Runner();
-$runner
- ->setRelativePluginNamespace('Robo\Plugin')
- ->setSelfUpdateRepository('consolidation/robo')
- ->setConfigurationFilename($configFilePath)
- ->setEnvConfigPrefix('ROBO')
- ->setClassLoader($classLoader);
-$statusCode = $runner->execute($_SERVER['argv']);
-exit($statusCode);
diff --git a/vendor/consolidation/robo/robo.yml b/vendor/consolidation/robo/robo.yml
deleted file mode 100644
index a0675093d..000000000
--- a/vendor/consolidation/robo/robo.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-options:
- progress-delay: 2
- simulate: null
-command:
- try:
- config:
- options:
- opt: wow
diff --git a/vendor/consolidation/robo/scripts/composer/ScriptHandler.php b/vendor/consolidation/robo/scripts/composer/ScriptHandler.php
deleted file mode 100644
index ddf1111f2..000000000
--- a/vendor/consolidation/robo/scripts/composer/ScriptHandler.php
+++ /dev/null
@@ -1,58 +0,0 @@
-exists('composer.lock')) {
- return;
- }
-
- $composerLockContents = file_get_contents('composer.lock');
- if (preg_match('#"php":.*(5\.6)#', $composerLockContents)) {
- static::fixDependenciesFor55();
- }
- }
-
- protected static function fixDependenciesFor55()
- {
- $fs = new Filesystem();
- $status = 0;
-
- $fs->remove('composer.lock');
-
- // Composer has already read our composer.json file, so we will
- // need to run in a new process to fix things up.
- passthru('composer install --ansi', $status);
-
- // Don't continue with the initial 'composer install' command
- exit($status);
- }
-}
diff --git a/vendor/consolidation/robo/src/Application.php b/vendor/consolidation/robo/src/Application.php
deleted file mode 100644
index 6e9bc0dcd..000000000
--- a/vendor/consolidation/robo/src/Application.php
+++ /dev/null
@@ -1,74 +0,0 @@
-getDefinition()
- ->addOption(
- new InputOption('--simulate', null, InputOption::VALUE_NONE, 'Run in simulated mode (show what would have happened).')
- );
- $this->getDefinition()
- ->addOption(
- new InputOption('--progress-delay', null, InputOption::VALUE_REQUIRED, 'Number of seconds before progress bar is displayed in long-running task collections. Default: 2s.', Config::DEFAULT_PROGRESS_DELAY)
- );
-
- $this->getDefinition()
- ->addOption(
- new InputOption('--define', '-D', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Define a configuration item value.', [])
- );
- }
-
- /**
- * @param string $roboFile
- * @param string $roboClass
- */
- public function addInitRoboFileCommand($roboFile, $roboClass)
- {
- $createRoboFile = new Command('init');
- $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir");
- $createRoboFile->setCode(function () use ($roboClass, $roboFile) {
- $output = Robo::output();
- $output->writeln(" ~~~ Welcome to Robo! ~~~~ ");
- $output->writeln(" ". basename($roboFile) ." will be created in the current directory ");
- file_put_contents(
- $roboFile,
- 'writeln(" Edit this file to add your commands! ");
- });
- $this->add($createRoboFile);
- }
-
- /**
- * Add self update command, do nothing if null is provided
- *
- * @param string $repository GitHub Repository for self update
- */
- public function addSelfUpdateCommand($repository = null)
- {
- if (!$repository || empty(\Phar::running())) {
- return;
- }
- $selfUpdateCommand = new SelfUpdateCommand($this->getName(), $this->getVersion(), $repository);
- $this->add($selfUpdateCommand);
- }
-}
diff --git a/vendor/consolidation/robo/src/ClassDiscovery/AbstractClassDiscovery.php b/vendor/consolidation/robo/src/ClassDiscovery/AbstractClassDiscovery.php
deleted file mode 100644
index 319543a54..000000000
--- a/vendor/consolidation/robo/src/ClassDiscovery/AbstractClassDiscovery.php
+++ /dev/null
@@ -1,26 +0,0 @@
-searchPattern = $searchPattern;
-
- return $this;
- }
-}
diff --git a/vendor/consolidation/robo/src/ClassDiscovery/ClassDiscoveryInterface.php b/vendor/consolidation/robo/src/ClassDiscovery/ClassDiscoveryInterface.php
deleted file mode 100644
index ebbb67272..000000000
--- a/vendor/consolidation/robo/src/ClassDiscovery/ClassDiscoveryInterface.php
+++ /dev/null
@@ -1,30 +0,0 @@
-classLoader = $classLoader;
- }
-
- /**
- * @param string $relativeNamespace
- *
- * @return RelativeNamespaceDiscovery
- */
- public function setRelativeNamespace($relativeNamespace)
- {
- $this->relativeNamespace = $relativeNamespace;
-
- return $this;
- }
-
- /**
- * @inheritDoc
- */
- public function getClasses()
- {
- $classes = [];
- $relativePath = $this->convertNamespaceToPath($this->relativeNamespace);
-
- foreach ($this->classLoader->getPrefixesPsr4() as $baseNamespace => $directories) {
- $directories = array_filter(array_map(function ($directory) use ($relativePath) {
- return $directory.$relativePath;
- }, $directories), 'is_dir');
-
- if ($directories) {
- foreach ($this->search($directories, $this->searchPattern) as $file) {
- $relativePathName = $file->getRelativePathname();
- $classes[] = $baseNamespace.$this->convertPathToNamespace($relativePath.'/'.$relativePathName);
- }
- }
- }
-
- return $classes;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFile($class)
- {
- return $this->classLoader->findFile($class);
- }
-
- /**
- * @param $directories
- * @param $pattern
- *
- * @return \Symfony\Component\Finder\Finder
- */
- protected function search($directories, $pattern)
- {
- $finder = new Finder();
- $finder->files()
- ->name($pattern)
- ->in($directories);
-
- return $finder;
- }
-
- /**
- * @param $path
- *
- * @return mixed
- */
- protected function convertPathToNamespace($path)
- {
- return str_replace(['/', '.php'], ['\\', ''], trim($path, '/'));
- }
-
- /**
- * @return string
- */
- public function convertNamespaceToPath($namespace)
- {
- return '/'.str_replace("\\", '/', trim($namespace, '\\'));
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/CallableTask.php b/vendor/consolidation/robo/src/Collection/CallableTask.php
deleted file mode 100644
index ae9c54fc5..000000000
--- a/vendor/consolidation/robo/src/Collection/CallableTask.php
+++ /dev/null
@@ -1,62 +0,0 @@
-fn = $fn;
- $this->reference = $reference;
- }
-
- /**
- * @return \Robo\Result
- */
- public function run()
- {
- $result = call_user_func($this->fn, $this->getState());
- // If the function returns no result, then count it
- // as a success.
- if (!isset($result)) {
- $result = Result::success($this->reference);
- }
- // If the function returns a result, it must either return
- // a \Robo\Result or an exit code. In the later case, we
- // convert it to a \Robo\Result.
- if (!$result instanceof Result) {
- $result = new Result($this->reference, $result);
- }
-
- return $result;
- }
-
- public function getState()
- {
- if ($this->reference instanceof StateAwareInterface) {
- return $this->reference->getState();
- }
- return new Data();
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/Collection.php b/vendor/consolidation/robo/src/Collection/Collection.php
deleted file mode 100644
index e3e34796b..000000000
--- a/vendor/consolidation/robo/src/Collection/Collection.php
+++ /dev/null
@@ -1,782 +0,0 @@
-resetState();
- }
-
- public function setProgressBarAutoDisplayInterval($interval)
- {
- if (!$this->progressIndicator) {
- return;
- }
- return $this->progressIndicator->setProgressBarAutoDisplayInterval($interval);
- }
-
- /**
- * {@inheritdoc}
- */
- public function add(TaskInterface $task, $name = self::UNNAMEDTASK)
- {
- $task = new CompletionWrapper($this, $task);
- $this->addToTaskList($name, $task);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function addCode(callable $code, $name = self::UNNAMEDTASK)
- {
- return $this->add(new CallableTask($code, $this), $name);
- }
-
- /**
- * {@inheritdoc}
- */
- public function addIterable($iterable, callable $code)
- {
- $callbackTask = (new IterationTask($iterable, $code, $this))->inflect($this);
- return $this->add($callbackTask);
- }
-
- /**
- * {@inheritdoc}
- */
- public function rollback(TaskInterface $rollbackTask)
- {
- // Rollback tasks always try as hard as they can, and never report failures.
- $rollbackTask = $this->ignoreErrorsTaskWrapper($rollbackTask);
- return $this->wrapAndRegisterRollback($rollbackTask);
- }
-
- /**
- * {@inheritdoc}
- */
- public function rollbackCode(callable $rollbackCode)
- {
- // Rollback tasks always try as hard as they can, and never report failures.
- $rollbackTask = $this->ignoreErrorsCodeWrapper($rollbackCode);
- return $this->wrapAndRegisterRollback($rollbackTask);
- }
-
- /**
- * {@inheritdoc}
- */
- public function completion(TaskInterface $completionTask)
- {
- $collection = $this;
- $completionRegistrationTask = new CallableTask(
- function () use ($collection, $completionTask) {
-
- $collection->registerCompletion($completionTask);
- },
- $this
- );
- $this->addToTaskList(self::UNNAMEDTASK, $completionRegistrationTask);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function completionCode(callable $completionTask)
- {
- $completionTask = new CallableTask($completionTask, $this);
- return $this->completion($completionTask);
- }
-
- /**
- * {@inheritdoc}
- */
- public function before($name, $task, $nameOfTaskToAdd = self::UNNAMEDTASK)
- {
- return $this->addBeforeOrAfter(__FUNCTION__, $name, $task, $nameOfTaskToAdd);
- }
-
- /**
- * {@inheritdoc}
- */
- public function after($name, $task, $nameOfTaskToAdd = self::UNNAMEDTASK)
- {
- return $this->addBeforeOrAfter(__FUNCTION__, $name, $task, $nameOfTaskToAdd);
- }
-
- /**
- * {@inheritdoc}
- */
- public function progressMessage($text, $context = [], $level = LogLevel::NOTICE)
- {
- $context += ['name' => 'Progress'];
- $context += TaskInfo::getTaskContext($this);
- return $this->addCode(
- function () use ($level, $text, $context) {
- $context += $this->getState()->getData();
- $this->printTaskOutput($level, $text, $context);
- }
- );
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $rollbackTask
- *
- * @return $this
- */
- protected function wrapAndRegisterRollback(TaskInterface $rollbackTask)
- {
- $collection = $this;
- $rollbackRegistrationTask = new CallableTask(
- function () use ($collection, $rollbackTask) {
- $collection->registerRollback($rollbackTask);
- },
- $this
- );
- $this->addToTaskList(self::UNNAMEDTASK, $rollbackRegistrationTask);
- return $this;
- }
-
- /**
- * Add either a 'before' or 'after' function or task.
- *
- * @param string $method
- * @param string $name
- * @param callable|TaskInterface $task
- * @param string $nameOfTaskToAdd
- *
- * @return $this
- */
- protected function addBeforeOrAfter($method, $name, $task, $nameOfTaskToAdd)
- {
- if (is_callable($task)) {
- $task = new CallableTask($task, $this);
- }
- $existingTask = $this->namedTask($name);
- $fn = [$existingTask, $method];
- call_user_func($fn, $task, $nameOfTaskToAdd);
- return $this;
- }
-
- /**
- * Wrap the provided task in a wrapper that will ignore
- * any errors or exceptions that may be produced. This
- * is useful, for example, in adding optional cleanup tasks
- * at the beginning of a task collection, to remove previous
- * results which may or may not exist.
- *
- * TODO: Provide some way to specify which sort of errors
- * are ignored, so that 'file not found' may be ignored,
- * but 'permission denied' reported?
- *
- * @param \Robo\Contract\TaskInterface $task
- *
- * @return \Robo\Collection\CallableTask
- */
- public function ignoreErrorsTaskWrapper(TaskInterface $task)
- {
- // If the task is a stack-based task, then tell it
- // to try to run all of its operations, even if some
- // of them fail.
- if ($task instanceof StackBasedTask) {
- $task->stopOnFail(false);
- }
- $ignoreErrorsInTask = function () use ($task) {
- $data = [];
- try {
- $result = $this->runSubtask($task);
- $message = $result->getMessage();
- $data = $result->getData();
- $data['exitcode'] = $result->getExitCode();
- } catch (AbortTasksException $abortTasksException) {
- throw $abortTasksException;
- } catch (\Exception $e) {
- $message = $e->getMessage();
- }
-
- return Result::success($task, $message, $data);
- };
- // Wrap our ignore errors callable in a task.
- return new CallableTask($ignoreErrorsInTask, $this);
- }
-
- /**
- * @param callable $task
- *
- * @return \Robo\Collection\CallableTask
- */
- public function ignoreErrorsCodeWrapper(callable $task)
- {
- return $this->ignoreErrorsTaskWrapper(new CallableTask($task, $this));
- }
-
- /**
- * Return the list of task names added to this collection.
- *
- * @return array
- */
- public function taskNames()
- {
- return array_keys($this->taskList);
- }
-
- /**
- * Test to see if a specified task name exists.
- * n.b. before() and after() require that the named
- * task exist; use this function to test first, if
- * unsure.
- *
- * @param string $name
- *
- * @return bool
- */
- public function hasTask($name)
- {
- return array_key_exists($name, $this->taskList);
- }
-
- /**
- * Find an existing named task.
- *
- * @param string $name
- * The name of the task to insert before. The named task MUST exist.
- *
- * @return Element
- * The task group for the named task. Generally this is only
- * used to call 'before()' and 'after()'.
- */
- protected function namedTask($name)
- {
- if (!$this->hasTask($name)) {
- throw new \RuntimeException("Could not find task named $name");
- }
- return $this->taskList[$name];
- }
-
- /**
- * Add a list of tasks to our task collection.
- *
- * @param TaskInterface[] $tasks
- * An array of tasks to run with rollback protection
- *
- * @return $this
- */
- public function addTaskList(array $tasks)
- {
- foreach ($tasks as $name => $task) {
- $this->add($task, $name);
- }
- return $this;
- }
-
- /**
- * Add the provided task to our task list.
- *
- * @param string $name
- * @param \Robo\Contract\TaskInterface $task
- *
- * @return \Robo\Collection\Collection
- */
- protected function addToTaskList($name, TaskInterface $task)
- {
- // All tasks are stored in a task group so that we have a place
- // to hang 'before' and 'after' tasks.
- $taskGroup = new Element($task);
- return $this->addCollectionElementToTaskList($name, $taskGroup);
- }
-
- /**
- * @param int|string $name
- * @param \Robo\Collection\Element $taskGroup
- *
- * @return $this
- */
- protected function addCollectionElementToTaskList($name, Element $taskGroup)
- {
- // If a task name is not provided, then we'll let php pick
- // the array index.
- if (Result::isUnnamed($name)) {
- $this->taskList[] = $taskGroup;
- return $this;
- }
- // If we are replacing an existing task with the
- // same name, ensure that our new task is added to
- // the end.
- $this->taskList[$name] = $taskGroup;
- return $this;
- }
-
- /**
- * Set the parent collection. This is necessary so that nested
- * collections' rollback and completion tasks can be added to the
- * top-level collection, ensuring that the rollbacks for a collection
- * will run if any later task fails.
- *
- * @param \Robo\Collection\NestedCollectionInterface $parentCollection
- *
- * @return $this
- */
- public function setParentCollection(NestedCollectionInterface $parentCollection)
- {
- $this->parentCollection = $parentCollection;
- return $this;
- }
-
- /**
- * Get the appropriate parent collection to use
- *
- * @return CollectionInterface
- */
- public function getParentCollection()
- {
- return $this->parentCollection ? $this->parentCollection : $this;
- }
-
- /**
- * Register a rollback task to run if there is any failure.
- *
- * Clients are free to add tasks to the rollback stack as
- * desired; however, usually it is preferable to call
- * Collection::rollback() instead. With that function,
- * the rollback function will only be called if all of the
- * tasks added before it complete successfully, AND some later
- * task fails.
- *
- * One example of a good use-case for registering a callback
- * function directly is to add a task that sends notification
- * when a task fails.
- *
- * @param TaskInterface $rollbackTask
- * The rollback task to run on failure.
- */
- public function registerRollback(TaskInterface $rollbackTask)
- {
- if ($this->parentCollection) {
- return $this->parentCollection->registerRollback($rollbackTask);
- }
- if ($rollbackTask) {
- array_unshift($this->rollbackStack, $rollbackTask);
- }
- }
-
- /**
- * Register a completion task to run once all other tasks finish.
- * Completion tasks run whether or not a rollback operation was
- * triggered. They do not trigger rollbacks if they fail.
- *
- * The typical use-case for a completion function is to clean up
- * temporary objects (e.g. temporary folders). The preferred
- * way to do that, though, is to use Temporary::wrap().
- *
- * On failures, completion tasks will run after all rollback tasks.
- * If one task collection is nested inside another task collection,
- * then the nested collection's completion tasks will run as soon as
- * the nested task completes; they are not deferred to the end of
- * the containing collection's execution.
- *
- * @param TaskInterface $completionTask
- * The completion task to run at the end of all other operations.
- */
- public function registerCompletion(TaskInterface $completionTask)
- {
- if ($this->parentCollection) {
- return $this->parentCollection->registerCompletion($completionTask);
- }
- if ($completionTask) {
- // Completion tasks always try as hard as they can, and never report failures.
- $completionTask = $this->ignoreErrorsTaskWrapper($completionTask);
- $this->completionStack[] = $completionTask;
- }
- }
-
- /**
- * Return the count of steps in this collection
- *
- * @return int
- */
- public function progressIndicatorSteps()
- {
- $steps = 0;
- foreach ($this->taskList as $name => $taskGroup) {
- $steps += $taskGroup->progressIndicatorSteps();
- }
- return $steps;
- }
-
- /**
- * A Collection of tasks can provide a command via `getCommand()`
- * if it contains a single task, and that task implements CommandInterface.
- *
- * @return string
- *
- * @throws \Robo\Exception\TaskException
- */
- public function getCommand()
- {
- if (empty($this->taskList)) {
- return '';
- }
-
- if (count($this->taskList) > 1) {
- // TODO: We could potentially iterate over the items in the collection
- // and concatenate the result of getCommand() from each one, and fail
- // only if we encounter a command that is not a CommandInterface.
- throw new TaskException($this, "getCommand() does not work on arbitrary collections of tasks.");
- }
-
- $taskElement = reset($this->taskList);
- $task = $taskElement->getTask();
- $task = ($task instanceof WrappedTaskInterface) ? $task->original() : $task;
- if ($task instanceof CommandInterface) {
- return $task->getCommand();
- }
-
- throw new TaskException($task, get_class($task) . " does not implement CommandInterface, so can't be used to provide a command");
- }
-
- /**
- * Run our tasks, and roll back if necessary.
- *
- * @return \Robo\Result
- */
- public function run()
- {
- $result = $this->runWithoutCompletion();
- $this->complete();
- return $result;
- }
-
- /**
- * @return \Robo\Result
- */
- private function runWithoutCompletion()
- {
- $result = Result::success($this);
-
- if (empty($this->taskList)) {
- return $result;
- }
-
- $this->startProgressIndicator();
- if ($result->wasSuccessful()) {
- foreach ($this->taskList as $name => $taskGroup) {
- $taskList = $taskGroup->getTaskList();
- $result = $this->runTaskList($name, $taskList, $result);
- if (!$result->wasSuccessful()) {
- $this->fail();
- return $result;
- }
- }
- $this->taskList = [];
- }
- $this->stopProgressIndicator();
- $result['time'] = $this->getExecutionTime();
-
- return $result;
- }
-
- /**
- * Run every task in a list, but only up to the first failure.
- * Return the failing result, or success if all tasks run.
- *
- * @param string $name
- * @param TaskInterface[] $taskList
- * @param \Robo\Result $result
- *
- * @return \Robo\Result
- *
- * @throws \Robo\Exception\TaskExitException
- */
- private function runTaskList($name, array $taskList, Result $result)
- {
- try {
- foreach ($taskList as $taskName => $task) {
- $taskResult = $this->runSubtask($task);
- $this->advanceProgressIndicator();
- // If the current task returns an error code, then stop
- // execution and signal a rollback.
- if (!$taskResult->wasSuccessful()) {
- return $taskResult;
- }
- // We accumulate our results into a field so that tasks that
- // have a reference to the collection may examine and modify
- // the incremental results, if they wish.
- $key = Result::isUnnamed($taskName) ? $name : $taskName;
- $result->accumulate($key, $taskResult);
- // The result message will be the message of the last task executed.
- $result->setMessage($taskResult->getMessage());
- }
- } catch (TaskExitException $exitException) {
- $this->fail();
- throw $exitException;
- } catch (\Exception $e) {
- // Tasks typically should not throw, but if one does, we will
- // convert it into an error and roll back.
- return Result::fromException($task, $e, $result->getData());
- }
- return $result;
- }
-
- /**
- * Force the rollback functions to run
- *
- * @return $this
- */
- public function fail()
- {
- $this->disableProgressIndicator();
- $this->runRollbackTasks();
- $this->complete();
- return $this;
- }
-
- /**
- * Force the completion functions to run
- *
- * @return $this
- */
- public function complete()
- {
- $this->detatchProgressIndicator();
- $this->runTaskListIgnoringFailures($this->completionStack);
- $this->reset();
- return $this;
- }
-
- /**
- * Reset this collection, removing all tasks.
- *
- * @return $this
- */
- public function reset()
- {
- $this->taskList = [];
- $this->completionStack = [];
- $this->rollbackStack = [];
- return $this;
- }
-
- /**
- * Run all of our rollback tasks.
- *
- * Note that Collection does not implement RollbackInterface, but
- * it may still be used as a task inside another task collection
- * (i.e. you can nest task collections, if desired).
- */
- protected function runRollbackTasks()
- {
- $this->runTaskListIgnoringFailures($this->rollbackStack);
- // Erase our rollback stack once we have finished rolling
- // everything back. This will allow us to potentially use
- // a command collection more than once (e.g. to retry a
- // failed operation after doing some error recovery).
- $this->rollbackStack = [];
- }
-
- /**
- * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task
- *
- * @return \Robo\Result
- */
- protected function runSubtask($task)
- {
- $original = ($task instanceof WrappedTaskInterface) ? $task->original() : $task;
- $this->setParentCollectionForTask($original, $this->getParentCollection());
- if ($original instanceof InflectionInterface) {
- $original->inflect($this);
- }
- if ($original instanceof StateAwareInterface) {
- $original->setState($this->getState());
- }
- $this->doDeferredInitialization($original);
- $taskResult = $task->run();
- $taskResult = Result::ensureResult($task, $taskResult);
- $this->doStateUpdates($original, $taskResult);
- return $taskResult;
- }
-
- protected function doStateUpdates($task, Data $taskResult)
- {
- $this->updateState($taskResult);
- $key = spl_object_hash($task);
- if (array_key_exists($key, $this->messageStoreKeys)) {
- $state = $this->getState();
- list($stateKey, $sourceKey) = $this->messageStoreKeys[$key];
- $value = empty($sourceKey) ? $taskResult->getMessage() : $taskResult[$sourceKey];
- $state[$stateKey] = $value;
- }
- }
-
- public function storeState($task, $key, $source = '')
- {
- $this->messageStoreKeys[spl_object_hash($task)] = [$key, $source];
-
- return $this;
- }
-
- public function deferTaskConfiguration($task, $functionName, $stateKey)
- {
- return $this->defer(
- $task,
- function ($task, $state) use ($functionName, $stateKey) {
- $fn = [$task, $functionName];
- $value = $state[$stateKey];
- $fn($value);
- }
- );
- }
-
- /**
- * Defer execution of a callback function until just before a task
- * runs. Use this time to provide more settings for the task, e.g. from
- * the collection's shared state, which is populated with the results
- * of previous test runs.
- */
- public function defer($task, $callback)
- {
- $this->deferredCallbacks[spl_object_hash($task)][] = $callback;
-
- return $this;
- }
-
- protected function doDeferredInitialization($task)
- {
- // If the task is a state consumer, then call its receiveState method
- if ($task instanceof \Robo\State\Consumer) {
- $task->receiveState($this->getState());
- }
-
- // Check and see if there are any deferred callbacks for this task.
- $key = spl_object_hash($task);
- if (!array_key_exists($key, $this->deferredCallbacks)) {
- return;
- }
-
- // Call all of the deferred callbacks
- foreach ($this->deferredCallbacks[$key] as $fn) {
- $fn($task, $this->getState());
- }
- }
-
- /**
- * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task
- * @param $parentCollection
- */
- protected function setParentCollectionForTask($task, $parentCollection)
- {
- if ($task instanceof NestedCollectionInterface) {
- $task->setParentCollection($parentCollection);
- }
- }
-
- /**
- * Run all of the tasks in a provided list, ignoring failures.
- *
- * You may force a failure by throwing a ForcedException in your rollback or
- * completion task or callback.
- *
- * This is used to roll back or complete.
- *
- * @param TaskInterface[] $taskList
- */
- protected function runTaskListIgnoringFailures(array $taskList)
- {
- foreach ($taskList as $task) {
- try {
- $this->runSubtask($task);
- } catch (AbortTasksException $abortTasksException) {
- // If there's a forced exception, end the loop of tasks.
- if ($message = $abortTasksException->getMessage()) {
- $this->logger()->notice($message);
- }
- break;
- } catch (\Exception $e) {
- // Ignore rollback failures.
- }
- }
- }
-
- /**
- * Give all of our tasks to the provided collection builder.
- *
- * @param CollectionBuilder $builder
- */
- public function transferTasks($builder)
- {
- foreach ($this->taskList as $name => $taskGroup) {
- // TODO: We are abandoning all of our before and after tasks here.
- // At the moment, transferTasks is only called under conditions where
- // there will be none of these, but care should be taken if that changes.
- $task = $taskGroup->getTask();
- $builder->addTaskToCollection($task);
- }
- $this->reset();
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/CollectionBuilder.php b/vendor/consolidation/robo/src/Collection/CollectionBuilder.php
deleted file mode 100644
index 3e037b01e..000000000
--- a/vendor/consolidation/robo/src/Collection/CollectionBuilder.php
+++ /dev/null
@@ -1,571 +0,0 @@
-collectionBuilder()
- * ->taskFilesystemStack()
- * ->mkdir('g')
- * ->touch('g/g.txt')
- * ->rollback(
- * $this->taskDeleteDir('g')
- * )
- * ->taskFilesystemStack()
- * ->mkdir('g/h')
- * ->touch('g/h/h.txt')
- * ->taskFilesystemStack()
- * ->mkdir('g/h/i/c')
- * ->touch('g/h/i/i.txt')
- * ->run()
- * ?>
- *
- * In the example above, the `taskDeleteDir` will be called if
- * ```
- */
-class CollectionBuilder extends BaseTask implements NestedCollectionInterface, WrappedTaskInterface, CommandInterface, StateAwareInterface
-{
- use StateAwareTrait;
-
- /**
- * @var \Robo\Tasks
- */
- protected $commandFile;
-
- /**
- * @var CollectionInterface
- */
- protected $collection;
-
- /**
- * @var TaskInterface
- */
- protected $currentTask;
-
- /**
- * @var bool
- */
- protected $simulated;
-
- /**
- * @param \Robo\Tasks $commandFile
- */
- public function __construct($commandFile)
- {
- $this->commandFile = $commandFile;
- $this->resetState();
- }
-
- public static function create($container, $commandFile)
- {
- $builder = new self($commandFile);
-
- $builder->setLogger($container->get('logger'));
- $builder->setProgressIndicator($container->get('progressIndicator'));
- $builder->setConfig($container->get('config'));
- $builder->setOutputAdapter($container->get('outputAdapter'));
-
- return $builder;
- }
-
- /**
- * @param bool $simulated
- *
- * @return $this
- */
- public function simulated($simulated = true)
- {
- $this->simulated = $simulated;
- return $this;
- }
-
- /**
- * @return bool
- */
- public function isSimulated()
- {
- if (!isset($this->simulated)) {
- $this->simulated = $this->getConfig()->get(Config::SIMULATE);
- }
- return $this->simulated;
- }
-
- /**
- * Create a temporary directory to work in. When the collection
- * completes or rolls back, the temporary directory will be deleted.
- * Returns the path to the location where the directory will be
- * created.
- *
- * @param string $prefix
- * @param string $base
- * @param bool $includeRandomPart
- *
- * @return string
- */
- public function tmpDir($prefix = 'tmp', $base = '', $includeRandomPart = true)
- {
- // n.b. Any task that the builder is asked to create is
- // automatically added to the builder's collection, and
- // wrapped in the builder object. Therefore, the result
- // of any call to `taskFoo()` from within the builder will
- // always be `$this`.
- return $this->taskTmpDir($prefix, $base, $includeRandomPart)->getPath();
- }
-
- /**
- * Create a working directory to hold results. A temporary directory
- * is first created to hold the intermediate results. After the
- * builder finishes, the work directory is moved into its final location;
- * any results already in place will be moved out of the way and
- * then deleted.
- *
- * @param string $finalDestination The path where the working directory
- * will be moved once the task collection completes.
- *
- * @return string
- */
- public function workDir($finalDestination)
- {
- // Creating the work dir task in this context adds it to our task collection.
- return $this->taskWorkDir($finalDestination)->getPath();
- }
-
- public function addTask(TaskInterface $task)
- {
- $this->getCollection()->add($task);
- return $this;
- }
-
- /**
- * Add arbitrary code to execute as a task.
- *
- * @see \Robo\Collection\CollectionInterface::addCode
- *
- * @param callable $code
- * @param int|string $name
- * @return $this
- */
- public function addCode(callable $code, $name = \Robo\Collection\CollectionInterface::UNNAMEDTASK)
- {
- $this->getCollection()->addCode($code, $name);
- return $this;
- }
-
- /**
- * Add a list of tasks to our task collection.
- *
- * @param TaskInterface[] $tasks
- * An array of tasks to run with rollback protection
- *
- * @return $this
- */
- public function addTaskList(array $tasks)
- {
- $this->getCollection()->addTaskList($tasks);
- return $this;
- }
-
- public function rollback(TaskInterface $task)
- {
- // Ensure that we have a collection if we are going to add
- // a rollback function.
- $this->getCollection()->rollback($task);
- return $this;
- }
-
- public function rollbackCode(callable $rollbackCode)
- {
- $this->getCollection()->rollbackCode($rollbackCode);
- return $this;
- }
-
- public function completion(TaskInterface $task)
- {
- $this->getCollection()->completion($task);
- return $this;
- }
-
- public function completionCode(callable $completionCode)
- {
- $this->getCollection()->completionCode($completionCode);
- return $this;
- }
-
- /**
- * @param string $text
- * @param array $context
- * @param string $level
- *
- * @return $this
- */
- public function progressMessage($text, $context = [], $level = LogLevel::NOTICE)
- {
- $this->getCollection()->progressMessage($text, $context, $level);
- return $this;
- }
-
- /**
- * @param \Robo\Collection\NestedCollectionInterface $parentCollection
- *
- * @return $this
- */
- public function setParentCollection(NestedCollectionInterface $parentCollection)
- {
- $this->getCollection()->setParentCollection($parentCollection);
- return $this;
- }
-
- /**
- * Called by the factory method of each task; adds the current
- * task to the task builder.
- *
- * TODO: protected
- *
- * @param TaskInterface $task
- *
- * @return $this
- */
- public function addTaskToCollection($task)
- {
- // Postpone creation of the collection until the second time
- // we are called. At that time, $this->currentTask will already
- // be populated. We call 'getCollection()' so that it will
- // create the collection and add the current task to it.
- // Note, however, that if our only tasks implements NestedCollectionInterface,
- // then we should force this builder to use a collection.
- if (!$this->collection && (isset($this->currentTask) || ($task instanceof NestedCollectionInterface))) {
- $this->getCollection();
- }
- $this->currentTask = $task;
- if ($this->collection) {
- $this->collection->add($task);
- }
- return $this;
- }
-
- public function getState()
- {
- $collection = $this->getCollection();
- return $collection->getState();
- }
-
- public function storeState($key, $source = '')
- {
- return $this->callCollectionStateFuntion(__FUNCTION__, func_get_args());
- }
-
- public function deferTaskConfiguration($functionName, $stateKey)
- {
- return $this->callCollectionStateFuntion(__FUNCTION__, func_get_args());
- }
-
- public function defer($callback)
- {
- return $this->callCollectionStateFuntion(__FUNCTION__, func_get_args());
- }
-
- protected function callCollectionStateFuntion($functionName, $args)
- {
- $currentTask = ($this->currentTask instanceof WrappedTaskInterface) ? $this->currentTask->original() : $this->currentTask;
-
- array_unshift($args, $currentTask);
- $collection = $this->getCollection();
- $fn = [$collection, $functionName];
-
- call_user_func_array($fn, $args);
- return $this;
- }
-
- public function setVerbosityThreshold($verbosityThreshold)
- {
- $currentTask = ($this->currentTask instanceof WrappedTaskInterface) ? $this->currentTask->original() : $this->currentTask;
- if ($currentTask) {
- $currentTask->setVerbosityThreshold($verbosityThreshold);
- return $this;
- }
- parent::setVerbosityThreshold($verbosityThreshold);
- return $this;
- }
-
-
- /**
- * Return the current task for this collection builder.
- * TODO: Not needed?
- *
- * @return \Robo\Contract\TaskInterface
- */
- public function getCollectionBuilderCurrentTask()
- {
- return $this->currentTask;
- }
-
- /**
- * Create a new builder with its own task collection
- *
- * @return CollectionBuilder
- */
- public function newBuilder()
- {
- $collectionBuilder = new self($this->commandFile);
- $collectionBuilder->inflect($this);
- $collectionBuilder->simulated($this->isSimulated());
- $collectionBuilder->setVerbosityThreshold($this->verbosityThreshold());
- $collectionBuilder->setState($this->getState());
-
- return $collectionBuilder;
- }
-
- /**
- * Calling the task builder with methods of the current
- * task calls through to that method of the task.
- *
- * There is extra complexity in this function that could be
- * simplified if we attached the 'LoadAllTasks' and custom tasks
- * to the collection builder instead of the RoboFile. While that
- * change would be a better design overall, it would require that
- * the user do a lot more work to set up and use custom tasks.
- * We therefore take on some additional complexity here in order
- * to allow users to maintain their tasks in their RoboFile, which
- * is much more convenient.
- *
- * Calls to $this->collectionBuilder()->taskFoo() cannot be made
- * directly because all of the task methods are protected. These
- * calls will therefore end up here. If the method name begins
- * with 'task', then it is eligible to be used with the builder.
- *
- * When we call getBuiltTask, below, it will use the builder attached
- * to the commandfile to build the task. However, this is not what we
- * want: the task needs to be built from THIS collection builder, so that
- * it will be affected by whatever state is active in this builder.
- * To do this, we have two choices: 1) save and restore the builder
- * in the commandfile, or 2) clone the commandfile and set this builder
- * on the copy. 1) is vulnerable to failure in multithreaded environments
- * (currently not supported), while 2) might cause confusion if there
- * is shared state maintained in the commandfile, which is in the
- * domain of the user.
- *
- * Note that even though we are setting up the commandFile to
- * use this builder, getBuiltTask always creates a new builder
- * (which is constructed using all of the settings from the
- * commandFile's builder), and the new task is added to that.
- * We therefore need to transfer the newly built task into this
- * builder. The temporary builder is discarded.
- *
- * @param string $fn
- * @param array $args
- *
- * @return $this|mixed
- */
- public function __call($fn, $args)
- {
- if (preg_match('#^task[A-Z]#', $fn) && (method_exists($this->commandFile, 'getBuiltTask'))) {
- $saveBuilder = $this->commandFile->getBuilder();
- $this->commandFile->setBuilder($this);
- $temporaryBuilder = $this->commandFile->getBuiltTask($fn, $args);
- $this->commandFile->setBuilder($saveBuilder);
- if (!$temporaryBuilder) {
- throw new \BadMethodCallException("No such method $fn: task does not exist in " . get_class($this->commandFile));
- }
- $temporaryBuilder->getCollection()->transferTasks($this);
- return $this;
- }
- if (!isset($this->currentTask)) {
- throw new \BadMethodCallException("No such method $fn: current task undefined in collection builder.");
- }
- // If the method called is a method of the current task,
- // then call through to the current task's setter method.
- $result = call_user_func_array([$this->currentTask, $fn], $args);
-
- // If something other than a setter method is called, then return its result.
- $currentTask = ($this->currentTask instanceof WrappedTaskInterface) ? $this->currentTask->original() : $this->currentTask;
- if (isset($result) && ($result !== $currentTask)) {
- return $result;
- }
-
- return $this;
- }
-
- /**
- * Construct the desired task and add it to this builder.
- *
- * @param string|object $name
- * @param array $args
- *
- * @return \Robo\Collection\CollectionBuilder
- */
- public function build($name, $args)
- {
- $reflection = new ReflectionClass($name);
- $task = $reflection->newInstanceArgs($args);
- if (!$task) {
- throw new RuntimeException("Can not construct task $name");
- }
- $task = $this->fixTask($task, $args);
- $this->configureTask($name, $task);
- return $this->addTaskToCollection($task);
- }
-
- /**
- * @param InflectionInterface $task
- * @param array $args
- *
- * @return \Robo\Collection\CompletionWrapper|\Robo\Task\Simulator
- */
- protected function fixTask($task, $args)
- {
- if ($task instanceof InflectionInterface) {
- $task->inflect($this);
- }
- if ($task instanceof BuilderAwareInterface) {
- $task->setBuilder($this);
- }
- if ($task instanceof VerbosityThresholdInterface) {
- $task->setVerbosityThreshold($this->verbosityThreshold());
- }
-
- // Do not wrap our wrappers.
- if ($task instanceof CompletionWrapper || $task instanceof Simulator) {
- return $task;
- }
-
- // Remember whether or not this is a task before
- // it gets wrapped in any decorator.
- $isTask = $task instanceof TaskInterface;
- $isCollection = $task instanceof NestedCollectionInterface;
-
- // If the task implements CompletionInterface, ensure
- // that its 'complete' method is called when the application
- // terminates -- but only if its 'run' method is called
- // first. If the task is added to a collection, then the
- // task will be unwrapped via its `original` method, and
- // it will be re-wrapped with a new completion wrapper for
- // its new collection.
- if ($task instanceof CompletionInterface) {
- $task = new CompletionWrapper(Temporary::getCollection(), $task);
- }
-
- // If we are in simulated mode, then wrap any task in
- // a TaskSimulator.
- if ($isTask && !$isCollection && ($this->isSimulated())) {
- $task = new \Robo\Task\Simulator($task, $args);
- $task->inflect($this);
- }
-
- return $task;
- }
-
- /**
- * Check to see if there are any setter methods defined in configuration
- * for this task.
- */
- protected function configureTask($taskClass, $task)
- {
- $taskClass = static::configClassIdentifier($taskClass);
- $configurationApplier = new ConfigForSetters($this->getConfig(), $taskClass, 'task.');
- $configurationApplier->apply($task, 'settings');
-
- // TODO: If we counted each instance of $taskClass that was called from
- // this builder, then we could also apply configuration from
- // "task.{$taskClass}[$N].settings"
-
- // TODO: If the builder knew what the current command name was,
- // then we could also search for task configuration under
- // command-specific keys such as "command.{$commandname}.task.{$taskClass}.settings".
- }
-
- /**
- * When we run the collection builder, run everything in the collection.
- *
- * @return \Robo\Result
- */
- public function run()
- {
- $this->startTimer();
- $result = $this->runTasks();
- $this->stopTimer();
- $result['time'] = $this->getExecutionTime();
- $result->mergeData($this->getState()->getData());
- return $result;
- }
-
- /**
- * If there is a single task, run it; if there is a collection, run
- * all of its tasks.
- *
- * @return \Robo\Result
- */
- protected function runTasks()
- {
- if (!$this->collection && $this->currentTask) {
- $result = $this->currentTask->run();
- return Result::ensureResult($this->currentTask, $result);
- }
- return $this->getCollection()->run();
- }
-
- /**
- * @return string
- */
- public function getCommand()
- {
- if (!$this->collection && $this->currentTask) {
- $task = $this->currentTask;
- $task = ($task instanceof WrappedTaskInterface) ? $task->original() : $task;
- if ($task instanceof CommandInterface) {
- return $task->getCommand();
- }
- }
-
- return $this->getCollection()->getCommand();
- }
-
- /**
- * @return \Robo\Collection\Collection
- */
- public function original()
- {
- return $this->getCollection();
- }
-
- /**
- * Return the collection of tasks associated with this builder.
- *
- * @return CollectionInterface
- */
- public function getCollection()
- {
- if (!isset($this->collection)) {
- $this->collection = new Collection();
- $this->collection->inflect($this);
- $this->collection->setState($this->getState());
- $this->collection->setProgressBarAutoDisplayInterval($this->getConfig()->get(Config::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL));
-
- if (isset($this->currentTask)) {
- $this->collection->add($this->currentTask);
- }
- }
- return $this->collection;
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/CollectionInterface.php b/vendor/consolidation/robo/src/Collection/CollectionInterface.php
deleted file mode 100644
index 173ca169c..000000000
--- a/vendor/consolidation/robo/src/Collection/CollectionInterface.php
+++ /dev/null
@@ -1,151 +0,0 @@
-run();
- } catch (\Exception $e) {
- return Result::fromException($result, $e);
- }
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/CompletionWrapper.php b/vendor/consolidation/robo/src/Collection/CompletionWrapper.php
deleted file mode 100644
index 3e81bd91c..000000000
--- a/vendor/consolidation/robo/src/Collection/CompletionWrapper.php
+++ /dev/null
@@ -1,106 +0,0 @@
-collection = $collection;
- $this->task = ($task instanceof WrappedTaskInterface) ? $task->original() : $task;
- $this->rollbackTask = $rollbackTask;
- }
-
- /**
- * {@inheritdoc}
- */
- public function original()
- {
- return $this->task;
- }
-
- /**
- * Before running this task, register its rollback and completion
- * handlers on its collection. The reason this class exists is to
- * defer registration of rollback and completion tasks until 'run()' time.
- *
- * @return \Robo\Result
- */
- public function run()
- {
- if ($this->rollbackTask) {
- $this->collection->registerRollback($this->rollbackTask);
- }
- if ($this->task instanceof RollbackInterface) {
- $this->collection->registerRollback(new CallableTask([$this->task, 'rollback'], $this->task));
- }
- if ($this->task instanceof CompletionInterface) {
- $this->collection->registerCompletion(new CallableTask([$this->task, 'complete'], $this->task));
- }
-
- return $this->task->run();
- }
-
- /**
- * Make this wrapper object act like the class it wraps.
- *
- * @param string $function
- * @param array $args
- *
- * @return mixed
- */
- public function __call($function, $args)
- {
- return call_user_func_array(array($this->task, $function), $args);
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/Element.php b/vendor/consolidation/robo/src/Collection/Element.php
deleted file mode 100644
index b67b56bbd..000000000
--- a/vendor/consolidation/robo/src/Collection/Element.php
+++ /dev/null
@@ -1,116 +0,0 @@
-task = $task;
- }
-
- /**
- * @param mixed $before
- * @param string $name
- */
- public function before($before, $name)
- {
- if ($name) {
- $this->before[$name] = $before;
- } else {
- $this->before[] = $before;
- }
- }
-
- /**
- * @param mixed $after
- * @param string $name
- */
- public function after($after, $name)
- {
- if ($name) {
- $this->after[$name] = $after;
- } else {
- $this->after[] = $after;
- }
- }
-
- /**
- * @return array
- */
- public function getBefore()
- {
- return $this->before;
- }
-
- /**
- * @return array
- */
- public function getAfter()
- {
- return $this->after;
- }
-
- /**
- * @return \Robo\Contract\TaskInterface
- */
- public function getTask()
- {
- return $this->task;
- }
-
- /**
- * @return array
- */
- public function getTaskList()
- {
- return array_merge($this->getBefore(), [$this->getTask()], $this->getAfter());
- }
-
- /**
- * @return int
- */
- public function progressIndicatorSteps()
- {
- $steps = 0;
- foreach ($this->getTaskList() as $task) {
- if ($task instanceof WrappedTaskInterface) {
- $task = $task->original();
- }
- // If the task is a ProgressIndicatorAwareInterface, then it
- // will advance the progress indicator a number of times.
- if ($task instanceof ProgressIndicatorAwareInterface) {
- $steps += $task->progressIndicatorSteps();
- }
- // We also advance the progress indicator once regardless
- // of whether it is progress-indicator aware or not.
- $steps++;
- }
- return $steps;
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/NestedCollectionInterface.php b/vendor/consolidation/robo/src/Collection/NestedCollectionInterface.php
deleted file mode 100644
index 5e32cf37a..000000000
--- a/vendor/consolidation/robo/src/Collection/NestedCollectionInterface.php
+++ /dev/null
@@ -1,12 +0,0 @@
-setIterable($iterable);
- }
-
- /**
- * @param array $iterable
- *
- * @return $this
- */
- public function setIterable($iterable)
- {
- $this->iterable = $iterable;
-
- return $this;
- }
-
- /**
- * @param string $message
- * @param array $context
- *
- * @return $this
- */
- public function iterationMessage($message, $context = [])
- {
- $this->message = $message;
- $this->context = $context + ['name' => 'Progress'];
- return $this;
- }
-
- /**
- * @param int|string $key
- * @param mixed $value
- */
- protected function showIterationMessage($key, $value)
- {
- if ($this->message) {
- $context = ['key' => $key, 'value' => $value];
- $context += $this->context;
- $context += TaskInfo::getTaskContext($this);
- $this->printTaskInfo($this->message, $context);
- }
- }
-
- /**
- * @param callable $fn
- *
- * @return $this
- */
- public function withEachKeyValueCall(callable $fn)
- {
- $this->functionStack[] = $fn;
- return $this;
- }
-
- /**
- * @param callable $fn
- *
- * @return \Robo\Collection\TaskForEach
- */
- public function call(callable $fn)
- {
- return $this->withEachKeyValueCall(
- function ($key, $value) use ($fn) {
- return call_user_func($fn, $value);
- }
- );
- }
-
- /**
- * @param callable $fn
- *
- * @return \Robo\Collection\TaskForEach
- */
- public function withBuilder(callable $fn)
- {
- $this->countingStack[] =
- function ($key, $value) use ($fn) {
- // Create a new builder for every iteration
- $builder = $this->collectionBuilder();
- // The user function should build task operations using
- // the $key / $value parameters; we will call run() on
- // the builder thus constructed.
- call_user_func($fn, $builder, $key, $value);
- return $builder->getCollection()->progressIndicatorSteps();
- };
- return $this->withEachKeyValueCall(
- function ($key, $value) use ($fn) {
- // Create a new builder for every iteration
- $builder = $this->collectionBuilder()
- ->setParentCollection($this->parentCollection);
- // The user function should build task operations using
- // the $key / $value parameters; we will call run() on
- // the builder thus constructed.
- call_user_func($fn, $builder, $key, $value);
- return $builder->run();
- }
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function setParentCollection(NestedCollectionInterface $parentCollection)
- {
- $this->parentCollection = $parentCollection;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function progressIndicatorSteps()
- {
- $multiplier = count($this->functionStack);
- if (!empty($this->countingStack) && count($this->iterable)) {
- $value = reset($this->iterable);
- $key = key($this->iterable);
- foreach ($this->countingStack as $fn) {
- $multiplier += call_user_func($fn, $key, $value);
- }
- }
- return count($this->iterable) * $multiplier;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $finalResult = Result::success($this);
- $this->startProgressIndicator();
- foreach ($this->iterable as $key => $value) {
- $this->showIterationMessage($key, $value);
- try {
- foreach ($this->functionStack as $fn) {
- $result = call_user_func($fn, $key, $value);
- $this->advanceProgressIndicator();
- if (!isset($result)) {
- $result = Result::success($this);
- }
- // If the function returns a result, it must either return
- // a \Robo\Result or an exit code. In the later case, we
- // convert it to a \Robo\Result.
- if (!$result instanceof Result) {
- $result = new Result($this, $result);
- }
- if (!$result->wasSuccessful()) {
- return $result;
- }
- $finalResult = $result->merge($finalResult);
- }
- } catch (\Exception $e) {
- return Result::fromException($result, $e);
- }
- }
- $this->stopProgressIndicator();
- return $finalResult;
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/Temporary.php b/vendor/consolidation/robo/src/Collection/Temporary.php
deleted file mode 100644
index dad25e34c..000000000
--- a/vendor/consolidation/robo/src/Collection/Temporary.php
+++ /dev/null
@@ -1,57 +0,0 @@
-get('collection');
- register_shutdown_function(function () {
- static::complete();
- });
- }
-
- return static::$collection;
- }
-
- /**
- * Call the complete method of all of the registered objects.
- */
- public static function complete()
- {
- // Run the collection of tasks. This will also run the
- // completion tasks.
- $collection = static::getCollection();
- $collection->run();
- // Make sure that our completion functions do not run twice.
- $collection->reset();
- }
-}
diff --git a/vendor/consolidation/robo/src/Collection/loadTasks.php b/vendor/consolidation/robo/src/Collection/loadTasks.php
deleted file mode 100644
index 63a872990..000000000
--- a/vendor/consolidation/robo/src/Collection/loadTasks.php
+++ /dev/null
@@ -1,17 +0,0 @@
-task(TaskForEach::class, $collection);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/BuilderAwareTrait.php b/vendor/consolidation/robo/src/Common/BuilderAwareTrait.php
deleted file mode 100644
index 915ff008d..000000000
--- a/vendor/consolidation/robo/src/Common/BuilderAwareTrait.php
+++ /dev/null
@@ -1,45 +0,0 @@
-builder = $builder;
-
- return $this;
- }
-
- /**
- * @see \Robo\Contract\BuilderAwareInterface::getBuilder()
- *
- * @return \Robo\Collection\CollectionBuilder
- */
- public function getBuilder()
- {
- return $this->builder;
- }
-
- /**
- * @return \Robo\Collection\CollectionBuilder
- */
- protected function collectionBuilder()
- {
- return $this->getBuilder()->newBuilder();
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/CommandArguments.php b/vendor/consolidation/robo/src/Common/CommandArguments.php
deleted file mode 100644
index 12c2e89fd..000000000
--- a/vendor/consolidation/robo/src/Common/CommandArguments.php
+++ /dev/null
@@ -1,130 +0,0 @@
-args($arg);
- }
-
- /**
- * Pass methods parameters as arguments to executable. Argument values
- * are automatically escaped.
- *
- * @param string|string[] $args
- *
- * @return $this
- */
- public function args($args)
- {
- if (!is_array($args)) {
- $args = func_get_args();
- }
- $this->arguments .= ' ' . implode(' ', array_map('static::escape', $args));
- return $this;
- }
-
- /**
- * Pass the provided string in its raw (as provided) form as an argument to executable.
- *
- * @param string $arg
- *
- * @return $this
- */
- public function rawArg($arg)
- {
- $this->arguments .= " $arg";
-
- return $this;
- }
-
- /**
- * Escape the provided value, unless it contains only alphanumeric
- * plus a few other basic characters.
- *
- * @param string $value
- *
- * @return string
- */
- public static function escape($value)
- {
- if (preg_match('/^[a-zA-Z0-9\/\.@~_-]+$/', $value)) {
- return $value;
- }
- return ProcessUtils::escapeArgument($value);
- }
-
- /**
- * Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter.
- * Option values are automatically escaped.
- *
- * @param string $option
- * @param string $value
- * @param string $separator
- *
- * @return $this
- */
- public function option($option, $value = null, $separator = ' ')
- {
- if ($option !== null and strpos($option, '-') !== 0) {
- $option = "--$option";
- }
- $this->arguments .= null == $option ? '' : " " . $option;
- $this->arguments .= null == $value ? '' : $separator . static::escape($value);
- return $this;
- }
-
- /**
- * Pass multiple options to executable. The associative array contains
- * the key:value pairs that become `--key value`, for each item in the array.
- * Values are automatically escaped.
- */
- public function options(array $options, $separator = ' ')
- {
- foreach ($options as $option => $value) {
- $this->option($option, $value, $separator);
- }
- return $this;
- }
-
- /**
- * Pass an option with multiple values to executable. Value can be a string or array.
- * Option values are automatically escaped.
- *
- * @param string $option
- * @param string|array $value
- * @param string $separator
- *
- * @return $this
- */
- public function optionList($option, $value = array(), $separator = ' ')
- {
- if (is_array($value)) {
- foreach ($value as $item) {
- $this->optionList($option, $item, $separator);
- }
- } else {
- $this->option($option, $value, $separator);
- }
-
- return $this;
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/CommandReceiver.php b/vendor/consolidation/robo/src/Common/CommandReceiver.php
deleted file mode 100644
index 03b20fced..000000000
--- a/vendor/consolidation/robo/src/Common/CommandReceiver.php
+++ /dev/null
@@ -1,30 +0,0 @@
-getCommand();
- } else {
- throw new TaskException($this, get_class($command) . " does not implement CommandInterface, so can't be passed into this task");
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ConfigAwareTrait.php b/vendor/consolidation/robo/src/Common/ConfigAwareTrait.php
deleted file mode 100644
index d6d45788d..000000000
--- a/vendor/consolidation/robo/src/Common/ConfigAwareTrait.php
+++ /dev/null
@@ -1,109 +0,0 @@
-config = $config;
-
- return $this;
- }
-
- /**
- * Get the config management object.
- *
- * @return ConfigInterface
- *
- * @see \Robo\Contract\ConfigAwareInterface::getConfig()
- */
- public function getConfig()
- {
- return $this->config;
- }
-
- /**
- * Any class that uses ConfigAwareTrait SHOULD override this method
- * , and define a prefix for its configuration items. This is usually
- * done in a base class. When used, this method should return a string
- * that ends with a "."; see BaseTask::configPrefix().
- *
- * @return string
- */
- protected static function configPrefix()
- {
- return '';
- }
-
- protected static function configClassIdentifier($classname)
- {
- $configIdentifier = strtr($classname, '\\', '.');
- $configIdentifier = preg_replace('#^(.*\.Task\.|\.)#', '', $configIdentifier);
-
- return $configIdentifier;
- }
-
- protected static function configPostfix()
- {
- return '';
- }
-
- /**
- * @param string $key
- *
- * @return string
- */
- private static function getClassKey($key)
- {
- $configPrefix = static::configPrefix(); // task.
- $configClass = static::configClassIdentifier(get_called_class()); // PARTIAL_NAMESPACE.CLASSNAME
- $configPostFix = static::configPostfix(); // .settings
-
- return sprintf('%s%s%s.%s', $configPrefix, $configClass, $configPostFix, $key);
- }
-
- /**
- * @param string $key
- * @param mixed $value
- * @param Config|null $config
- */
- public static function configure($key, $value, $config = null)
- {
- if (!$config) {
- $config = Robo::config();
- }
- $config->setDefault(static::getClassKey($key), $value);
- }
-
- /**
- * @param string $key
- * @param mixed|null $default
- *
- * @return mixed|null
- */
- protected function getConfigValue($key, $default = null)
- {
- if (!$this->getConfig()) {
- return $default;
- }
- return $this->getConfig()->get(static::getClassKey($key), $default);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/DynamicParams.php b/vendor/consolidation/robo/src/Common/DynamicParams.php
deleted file mode 100644
index 28a1d150f..000000000
--- a/vendor/consolidation/robo/src/Common/DynamicParams.php
+++ /dev/null
@@ -1,45 +0,0 @@
-$property))) {
- $this->$property = !$this->$property;
- return $this;
- }
-
- // append item to array
- if (is_array($this->$property)) {
- if (is_array($args[0])) {
- $this->$property = $args[0];
- } else {
- array_push($this->$property, $args[0]);
- }
- return $this;
- }
-
- $this->$property = $args[0];
- return $this;
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ExecCommand.php b/vendor/consolidation/robo/src/Common/ExecCommand.php
deleted file mode 100644
index c3e6c3af6..000000000
--- a/vendor/consolidation/robo/src/Common/ExecCommand.php
+++ /dev/null
@@ -1,148 +0,0 @@
-execTimer)) {
- $this->execTimer = new TimeKeeper();
- }
- return $this->execTimer;
- }
-
- /**
- * Look for a "{$cmd}.phar" in the current working
- * directory; return a string to exec it if it is
- * found. Otherwise, look for an executable command
- * of the same name via findExecutable.
- *
- * @param string $cmd
- *
- * @return bool|string
- */
- protected function findExecutablePhar($cmd)
- {
- if (file_exists("{$cmd}.phar")) {
- return "php {$cmd}.phar";
- }
- return $this->findExecutable($cmd);
- }
-
- /**
- * Return the best path to the executable program
- * with the provided name. Favor vendor/bin in the
- * current project. If not found there, use
- * whatever is on the $PATH.
- *
- * @param string $cmd
- *
- * @return bool|string
- */
- protected function findExecutable($cmd)
- {
- $pathToCmd = $this->searchForExecutable($cmd);
- if ($pathToCmd) {
- return $this->useCallOnWindows($pathToCmd);
- }
- return false;
- }
-
- /**
- * @param string $cmd
- *
- * @return string
- */
- private function searchForExecutable($cmd)
- {
- $projectBin = $this->findProjectBin();
-
- $localComposerInstallation = $projectBin . DIRECTORY_SEPARATOR . $cmd;
- if (file_exists($localComposerInstallation)) {
- return $localComposerInstallation;
- }
- $finder = new ExecutableFinder();
- return $finder->find($cmd, null, []);
- }
-
- /**
- * @return bool|string
- */
- protected function findProjectBin()
- {
- $cwd = getcwd();
- $candidates = [ __DIR__ . '/../../vendor/bin', __DIR__ . '/../../bin', $cwd . '/vendor/bin' ];
-
- // If this project is inside a vendor directory, give highest priority
- // to that directory.
- $vendorDirContainingUs = realpath(__DIR__ . '/../../../..');
- if (is_dir($vendorDirContainingUs) && (basename($vendorDirContainingUs) == 'vendor')) {
- array_unshift($candidates, $vendorDirContainingUs . '/bin');
- }
-
- foreach ($candidates as $dir) {
- if (is_dir("$dir")) {
- return realpath($dir);
- }
- }
- return false;
- }
-
- /**
- * Wrap Windows executables in 'call' per 7a88757d
- *
- * @param string $cmd
- *
- * @return string
- */
- protected function useCallOnWindows($cmd)
- {
- if (defined('PHP_WINDOWS_VERSION_BUILD')) {
- if (file_exists("{$cmd}.bat")) {
- $cmd = "{$cmd}.bat";
- }
- return "call $cmd";
- }
- return $cmd;
- }
-
- protected function getCommandDescription()
- {
- return $this->process->getCommandLine();
- }
-
- /**
- * @param string $command
- *
- * @return \Robo\Result
- */
- protected function executeCommand($command)
- {
- // TODO: Symfony 4 requires that we supply the working directory.
- $result_data = $this->execute(new Process($command, getcwd()));
- return new Result(
- $this,
- $result_data->getExitCode(),
- $result_data->getMessage(),
- $result_data->getData()
- );
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ExecOneCommand.php b/vendor/consolidation/robo/src/Common/ExecOneCommand.php
deleted file mode 100644
index 601375149..000000000
--- a/vendor/consolidation/robo/src/Common/ExecOneCommand.php
+++ /dev/null
@@ -1,12 +0,0 @@
-interactive() based on posix_isatty().
- *
- * @return $this
- */
- public function detectInteractive()
- {
- // If the caller did not explicity set the 'interactive' mode,
- // and output should be produced by this task (verbosityMeetsThreshold),
- // then we will automatically set interactive mode based on whether
- // or not output was redirected when robo was executed.
- if (!isset($this->interactive) && function_exists('posix_isatty') && $this->verbosityMeetsThreshold()) {
- $this->interactive = posix_isatty(STDOUT);
- }
-
- return $this;
- }
-
- /**
- * Executes command in background mode (asynchronously)
- *
- * @return $this
- */
- public function background($arg = true)
- {
- $this->background = $arg;
- return $this;
- }
-
- /**
- * Stop command if it runs longer then $timeout in seconds
- *
- * @param int $timeout
- *
- * @return $this
- */
- public function timeout($timeout)
- {
- $this->timeout = $timeout;
- return $this;
- }
-
- /**
- * Stops command if it does not output something for a while
- *
- * @param int $timeout
- *
- * @return $this
- */
- public function idleTimeout($timeout)
- {
- $this->idleTimeout = $timeout;
- return $this;
- }
-
- /**
- * Set a single environment variable, or multiple.
- */
- public function env($env, $value = null)
- {
- if (!is_array($env)) {
- $env = [$env => ($value ? $value : true)];
- }
- return $this->envVars($env);
- }
-
- /**
- * Sets the environment variables for the command
- *
- * @param array $env
- *
- * @return $this
- */
- public function envVars(array $env)
- {
- $this->env = $this->env ? $env + $this->env : $env;
- return $this;
- }
-
- /**
- * Pass an input to the process. Can be resource created with fopen() or string
- *
- * @param resource|string $input
- *
- * @return $this
- */
- public function setInput($input)
- {
- $this->input = $input;
- return $this;
- }
-
- /**
- * Attach tty to process for interactive input
- *
- * @param $interactive bool
- *
- * @return $this
- */
- public function interactive($interactive = true)
- {
- $this->interactive = $interactive;
- return $this;
- }
-
-
- /**
- * Is command printing its output to screen
- *
- * @return bool
- */
- public function getPrinted()
- {
- return $this->isPrinted;
- }
-
- /**
- * Changes working directory of command
- *
- * @param string $dir
- *
- * @return $this
- */
- public function dir($dir)
- {
- $this->workingDirectory = $dir;
- return $this;
- }
-
- /**
- * Shortcut for setting isPrinted() and isMetadataPrinted() to false.
- *
- * @param bool $arg
- *
- * @return $this
- */
- public function silent($arg)
- {
- if (is_bool($arg)) {
- $this->isPrinted = !$arg;
- $this->isMetadataPrinted = !$arg;
- }
- return $this;
- }
-
- /**
- * Should command output be printed
- *
- * @param bool $arg
- *
- * @return $this
- *
- * @deprecated
- */
- public function printed($arg)
- {
- $this->logger->warning("printed() is deprecated. Please use printOutput().");
- return $this->printOutput($arg);
- }
-
- /**
- * Should command output be printed
- *
- * @param bool $arg
- *
- * @return $this
- */
- public function printOutput($arg)
- {
- if (is_bool($arg)) {
- $this->isPrinted = $arg;
- }
- return $this;
- }
-
- /**
- * Should command metadata be printed. I,e., command and timer.
- *
- * @param bool $arg
- *
- * @return $this
- */
- public function printMetadata($arg)
- {
- if (is_bool($arg)) {
- $this->isMetadataPrinted = $arg;
- }
- return $this;
- }
-
- /**
- * @param Process $process
- * @param callable $output_callback
- *
- * @return \Robo\ResultData
- */
- protected function execute($process, $output_callback = null)
- {
- $this->process = $process;
-
- if (!$output_callback) {
- $output_callback = function ($type, $buffer) {
- $progressWasVisible = $this->hideTaskProgress();
- $this->writeMessage($buffer);
- $this->showTaskProgress($progressWasVisible);
- };
- }
-
- $this->detectInteractive();
-
- if ($this->isMetadataPrinted) {
- $this->printAction();
- }
- $this->process->setTimeout($this->timeout);
- $this->process->setIdleTimeout($this->idleTimeout);
- if ($this->workingDirectory) {
- $this->process->setWorkingDirectory($this->workingDirectory);
- }
- if ($this->input) {
- $this->process->setInput($this->input);
- }
-
- if ($this->interactive && $this->isPrinted) {
- $this->process->setTty(true);
- }
-
- if (isset($this->env)) {
- // Symfony 4 will inherit environment variables by default, but until
- // then, manually ensure they are inherited.
- if (method_exists($this->process, 'inheritEnvironmentVariables')) {
- $this->process->inheritEnvironmentVariables();
- }
- $this->process->setEnv($this->env);
- }
-
- if (!$this->background && !$this->isPrinted) {
- $this->startTimer();
- $this->process->run();
- $this->stopTimer();
- $output = rtrim($this->process->getOutput());
- return new ResultData(
- $this->process->getExitCode(),
- $output,
- $this->getResultData()
- );
- }
-
- if (!$this->background && $this->isPrinted) {
- $this->startTimer();
- $this->process->run($output_callback);
- $this->stopTimer();
- return new ResultData(
- $this->process->getExitCode(),
- $this->process->getOutput(),
- $this->getResultData()
- );
- }
-
- try {
- $this->process->start();
- } catch (\Exception $e) {
- return new ResultData(
- $this->process->getExitCode(),
- $e->getMessage(),
- $this->getResultData()
- );
- }
- return new ResultData($this->process->getExitCode());
- }
-
- /**
- *
- */
- protected function stop()
- {
- if ($this->background && isset($this->process) && $this->process->isRunning()) {
- $this->process->stop();
- $this->printTaskInfo(
- "Stopped {command}",
- ['command' => $this->getCommandDescription()]
- );
- }
- }
-
- /**
- * @param array $context
- */
- protected function printAction($context = [])
- {
- $command = $this->getCommandDescription();
- $formatted_command = $this->formatCommandDisplay($command);
-
- $dir = $this->workingDirectory ? " in {dir}" : "";
- $this->printTaskInfo("Running {command}$dir", [
- 'command' => $formatted_command,
- 'dir' => $this->workingDirectory
- ] + $context);
- }
-
- /**
- * @param $command
- *
- * @return mixed
- */
- protected function formatCommandDisplay($command)
- {
- $formatted_command = str_replace("&&", "&&\n", $command);
- $formatted_command = str_replace("||", "||\n", $formatted_command);
-
- return $formatted_command;
- }
-
- /**
- * Gets the data array to be passed to Result().
- *
- * @return array
- * The data array passed to Result().
- */
- protected function getResultData()
- {
- if ($this->isMetadataPrinted) {
- return ['time' => $this->getExecutionTime()];
- }
-
- return [];
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/IO.php b/vendor/consolidation/robo/src/Common/IO.php
deleted file mode 100644
index d6c77bff8..000000000
--- a/vendor/consolidation/robo/src/Common/IO.php
+++ /dev/null
@@ -1,171 +0,0 @@
-io) {
- $this->io = new SymfonyStyle($this->input(), $this->output());
- }
- return $this->io;
- }
-
- /**
- * @param string $nonDecorated
- * @param string $decorated
- *
- * @return string
- */
- protected function decorationCharacter($nonDecorated, $decorated)
- {
- if (!$this->output()->isDecorated() || (strncasecmp(PHP_OS, 'WIN', 3) == 0)) {
- return $nonDecorated;
- }
- return $decorated;
- }
-
- /**
- * @param string $text
- */
- protected function say($text)
- {
- $char = $this->decorationCharacter('>', '➜');
- $this->writeln("$char $text");
- }
-
- /**
- * @param string $text
- * @param int $length
- * @param string $color
- */
- protected function yell($text, $length = 40, $color = 'green')
- {
- $char = $this->decorationCharacter(' ', '➜');
- $format = "$char %s ";
- $this->formattedOutput($text, $length, $format);
- }
-
- /**
- * @param string $text
- * @param int $length
- * @param string $format
- */
- protected function formattedOutput($text, $length, $format)
- {
- $lines = explode("\n", trim($text, "\n"));
- $maxLineLength = array_reduce(array_map('strlen', $lines), 'max');
- $length = max($length, $maxLineLength);
- $len = $length + 2;
- $space = str_repeat(' ', $len);
- $this->writeln(sprintf($format, $space));
- foreach ($lines as $line) {
- $line = str_pad($line, $length, ' ', STR_PAD_BOTH);
- $this->writeln(sprintf($format, " $line "));
- }
- $this->writeln(sprintf($format, $space));
- }
-
- /**
- * @param string $question
- * @param bool $hideAnswer
- *
- * @return string
- */
- protected function ask($question, $hideAnswer = false)
- {
- if ($hideAnswer) {
- return $this->askHidden($question);
- }
- return $this->doAsk(new Question($this->formatQuestion($question)));
- }
-
- /**
- * @param string $question
- *
- * @return string
- */
- protected function askHidden($question)
- {
- $question = new Question($this->formatQuestion($question));
- $question->setHidden(true);
- return $this->doAsk($question);
- }
-
- /**
- * @param string $question
- * @param string $default
- *
- * @return string
- */
- protected function askDefault($question, $default)
- {
- return $this->doAsk(new Question($this->formatQuestion("$question [$default]"), $default));
- }
-
- /**
- * @param string $question
- *
- * @return string
- */
- protected function confirm($question)
- {
- return $this->doAsk(new ConfirmationQuestion($this->formatQuestion($question . ' (y/n)'), false));
- }
-
- /**
- * @param \Symfony\Component\Console\Question\Question $question
- *
- * @return string
- */
- protected function doAsk(Question $question)
- {
- return $this->getDialog()->ask($this->input(), $this->output(), $question);
- }
-
- /**
- * @param string $message
- *
- * @return string
- */
- protected function formatQuestion($message)
- {
- return "? $message ";
- }
-
- /**
- * @return \Symfony\Component\Console\Helper\QuestionHelper
- */
- protected function getDialog()
- {
- return new QuestionHelper();
- }
-
- /**
- * @param $text
- */
- protected function writeln($text)
- {
- $this->output()->writeln($text);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/InflectionTrait.php b/vendor/consolidation/robo/src/Common/InflectionTrait.php
deleted file mode 100644
index 8bc4e831c..000000000
--- a/vendor/consolidation/robo/src/Common/InflectionTrait.php
+++ /dev/null
@@ -1,21 +0,0 @@
-injectDependencies($this);
- return $this;
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/InputAwareTrait.php b/vendor/consolidation/robo/src/Common/InputAwareTrait.php
deleted file mode 100644
index bae58c171..000000000
--- a/vendor/consolidation/robo/src/Common/InputAwareTrait.php
+++ /dev/null
@@ -1,51 +0,0 @@
-input = $input;
-
- return $this;
- }
-
- /**
- * @return \Symfony\Component\Console\Input\InputInterface
- */
- protected function input()
- {
- if (!isset($this->input)) {
- $this->setInput(new ArgvInput());
- }
- return $this->input;
- }
-
- /**
- * Backwards compatibility.
- *
- * @return \Symfony\Component\Console\Input\InputInterface
- *
- * @deprecated
- */
- protected function getInput()
- {
- return $this->input();
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/OutputAdapter.php b/vendor/consolidation/robo/src/Common/OutputAdapter.php
deleted file mode 100644
index b8e795f23..000000000
--- a/vendor/consolidation/robo/src/Common/OutputAdapter.php
+++ /dev/null
@@ -1,38 +0,0 @@
- OutputInterface::VERBOSITY_NORMAL,
- VerbosityThresholdInterface::VERBOSITY_VERBOSE => OutputInterface::VERBOSITY_VERBOSE,
- VerbosityThresholdInterface::VERBOSITY_VERY_VERBOSE => OutputInterface::VERBOSITY_VERY_VERBOSE,
- VerbosityThresholdInterface::VERBOSITY_DEBUG => OutputInterface::VERBOSITY_DEBUG,
- ];
-
- public function verbosityMeetsThreshold($verbosityThreshold)
- {
- if (!isset($this->verbosityMap[$verbosityThreshold])) {
- return true;
- }
- $verbosityThreshold = $this->verbosityMap[$verbosityThreshold];
- $verbosity = $this->output()->getVerbosity();
-
- return $verbosity >= $verbosityThreshold;
- }
-
- public function writeMessage($message)
- {
- $this->output()->write($message);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/OutputAwareTrait.php b/vendor/consolidation/robo/src/Common/OutputAwareTrait.php
deleted file mode 100644
index 48082cb39..000000000
--- a/vendor/consolidation/robo/src/Common/OutputAwareTrait.php
+++ /dev/null
@@ -1,51 +0,0 @@
-output = $output;
-
- return $this;
- }
-
- /**
- * @return \Symfony\Component\Console\Output\OutputInterface
- */
- protected function output()
- {
- if (!isset($this->output)) {
- $this->setOutput(new NullOutput());
- }
- return $this->output;
- }
-
- /**
- * Backwards compatibility
- *
- * @return \Symfony\Component\Console\Output\OutputInterface
- *
- * @deprecated
- */
- protected function getOutput()
- {
- return $this->output();
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ProcessExecutor.php b/vendor/consolidation/robo/src/Common/ProcessExecutor.php
deleted file mode 100644
index f78a47752..000000000
--- a/vendor/consolidation/robo/src/Common/ProcessExecutor.php
+++ /dev/null
@@ -1,51 +0,0 @@
-process = $process;
- }
-
- public static function create($container, $process)
- {
- $processExecutor = new self($process);
-
- $processExecutor->setLogger($container->get('logger'));
- $processExecutor->setProgressIndicator($container->get('progressIndicator'));
- $processExecutor->setConfig($container->get('config'));
- $processExecutor->setOutputAdapter($container->get('outputAdapter'));
-
- return $processExecutor;
- }
-
- /**
- * @return string
- */
- protected function getCommandDescription()
- {
- return $this->process->getCommandLine();
- }
-
- public function run()
- {
- return $this->execute($this->process);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ProcessUtils.php b/vendor/consolidation/robo/src/Common/ProcessUtils.php
deleted file mode 100644
index 7dc4e5531..000000000
--- a/vendor/consolidation/robo/src/Common/ProcessUtils.php
+++ /dev/null
@@ -1,79 +0,0 @@
-
- */
-
-namespace Robo\Common;
-
-use Symfony\Component\Process\Exception\InvalidArgumentException;
-
-/**
- * ProcessUtils is a bunch of utility methods. We want to allow Robo 1.x
- * to work with Symfony 4.x while remaining backwards compatibility. This
- * requires us to replace some deprecated functionality removed in Symfony.
- */
-class ProcessUtils
-{
- /**
- * This class should not be instantiated.
- */
- private function __construct()
- {
- }
-
- /**
- * Escapes a string to be used as a shell argument.
- *
- * @param string $argument The argument that will be escaped
- *
- * @return string The escaped argument
- *
- * @deprecated since version 3.3, to be removed in 4.0. Use a command line array or give env vars to the `Process::start/run()` method instead.
- */
- public static function escapeArgument($argument)
- {
- @trigger_error('The '.__METHOD__.'() method is a copy of a method that was deprecated by Symfony 3.3 and removed in Symfony 4; it will be removed in Robo 2.0.', E_USER_DEPRECATED);
-
- //Fix for PHP bug #43784 escapeshellarg removes % from given string
- //Fix for PHP bug #49446 escapeshellarg doesn't work on Windows
- //@see https://bugs.php.net/bug.php?id=43784
- //@see https://bugs.php.net/bug.php?id=49446
- if ('\\' === DIRECTORY_SEPARATOR) {
- if ('' === $argument) {
- return escapeshellarg($argument);
- }
-
- $escapedArgument = '';
- $quote = false;
- foreach (preg_split('/(")/', $argument, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE) as $part) {
- if ('"' === $part) {
- $escapedArgument .= '\\"';
- } elseif (self::isSurroundedBy($part, '%')) {
- // Avoid environment variable expansion
- $escapedArgument .= '^%"'.substr($part, 1, -1).'"^%';
- } else {
- // escape trailing backslash
- if ('\\' === substr($part, -1)) {
- $part .= '\\';
- }
- $quote = true;
- $escapedArgument .= $part;
- }
- }
- if ($quote) {
- $escapedArgument = '"'.$escapedArgument.'"';
- }
-
- return $escapedArgument;
- }
-
- return "'".str_replace("'", "'\\''", $argument)."'";
- }
-
- private static function isSurroundedBy($arg, $char)
- {
- return 2 < strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1];
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ProgressIndicator.php b/vendor/consolidation/robo/src/Common/ProgressIndicator.php
deleted file mode 100644
index fe6c9298e..000000000
--- a/vendor/consolidation/robo/src/Common/ProgressIndicator.php
+++ /dev/null
@@ -1,201 +0,0 @@
-progressBar = $progressBar;
- $this->output = $output;
- }
-
- /**
- * @param int $interval
- */
- public function setProgressBarAutoDisplayInterval($interval)
- {
- if ($this->progressIndicatorRunning) {
- return;
- }
- $this->autoDisplayInterval = $interval;
- }
-
- /**
- * @return bool
- */
- public function hideProgressIndicator()
- {
- $result = $this->progressBarDisplayed;
- if ($this->progressIndicatorRunning && $this->progressBarDisplayed) {
- $this->progressBar->clear();
- // Hack: progress indicator does not reset cursor to beginning of line on 'clear'
- $this->output->write("\x0D");
- $this->progressBarDisplayed = false;
- }
- return $result;
- }
-
- public function showProgressIndicator()
- {
- if ($this->progressIndicatorRunning && !$this->progressBarDisplayed && isset($this->progressBar)) {
- $this->progressBar->display();
- $this->progressBarDisplayed = true;
- $this->advanceProgressIndicatorCachedSteps();
- }
- }
-
- /**
- * @param bool $visible
- */
- public function restoreProgressIndicator($visible)
- {
- if ($visible) {
- $this->showProgressIndicator();
- }
- }
-
- /**
- * @param int $totalSteps
- * @param \Robo\Contract\TaskInterface $owner
- */
- public function startProgressIndicator($totalSteps, $owner)
- {
- if (!isset($this->progressBar)) {
- return;
- }
-
- $this->progressIndicatorRunning = true;
- if (!isset($this->owner)) {
- $this->owner = $owner;
- $this->startTimer();
- $this->totalSteps = $totalSteps;
- $this->autoShowProgressIndicator();
- }
- }
-
- public function autoShowProgressIndicator()
- {
- if (($this->autoDisplayInterval < 0) || !isset($this->progressBar) || !$this->output->isDecorated()) {
- return;
- }
- if ($this->autoDisplayInterval <= $this->getExecutionTime()) {
- $this->autoDisplayInterval = -1;
- $this->progressBar->start($this->totalSteps);
- $this->showProgressIndicator();
- }
- }
-
- /**
- * @return bool
- */
- public function inProgress()
- {
- return $this->progressIndicatorRunning;
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $owner
- */
- public function stopProgressIndicator($owner)
- {
- if ($this->progressIndicatorRunning && ($this->owner === $owner)) {
- $this->cleanup();
- }
- }
-
- protected function cleanup()
- {
- $this->progressIndicatorRunning = false;
- $this->owner = null;
- if ($this->progressBarDisplayed) {
- $this->progressBar->finish();
- // Hack: progress indicator does not always finish cleanly
- $this->output->writeln('');
- $this->progressBarDisplayed = false;
- }
- $this->stopTimer();
- }
-
- /**
- * Erase progress indicator and ensure it never returns. Used
- * only during error handlers or to permanently remove the progress bar.
- */
- public function disableProgressIndicator()
- {
- $this->cleanup();
- // ProgressIndicator is shared, so this permanently removes
- // the program's ability to display progress bars.
- $this->progressBar = null;
- }
-
- /**
- * @param int $steps
- */
- public function advanceProgressIndicator($steps = 1)
- {
- $this->cachedSteps += $steps;
- if ($this->progressIndicatorRunning) {
- $this->autoShowProgressIndicator();
- // We only want to call `advance` if the progress bar is visible,
- // because it always displays itself when it is advanced.
- if ($this->progressBarDisplayed) {
- return $this->advanceProgressIndicatorCachedSteps();
- }
- }
- }
-
- protected function advanceProgressIndicatorCachedSteps()
- {
- $this->progressBar->advance($this->cachedSteps);
- $this->cachedSteps = 0;
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ProgressIndicatorAwareTrait.php b/vendor/consolidation/robo/src/Common/ProgressIndicatorAwareTrait.php
deleted file mode 100644
index 060e039a1..000000000
--- a/vendor/consolidation/robo/src/Common/ProgressIndicatorAwareTrait.php
+++ /dev/null
@@ -1,135 +0,0 @@
-progressIndicator = $progressIndicator;
-
- return $this;
- }
-
- /**
- * @return null|bool
- */
- protected function hideProgressIndicator()
- {
- if (!$this->progressIndicator) {
- return;
- }
- return $this->progressIndicator->hideProgressIndicator();
- }
-
- protected function showProgressIndicator()
- {
- if (!$this->progressIndicator) {
- return;
- }
- $this->progressIndicator->showProgressIndicator();
- }
-
- /**
- * @param bool $visible
- */
- protected function restoreProgressIndicator($visible)
- {
- if (!$this->progressIndicator) {
- return;
- }
- $this->progressIndicator->restoreProgressIndicator($visible);
- }
-
- /**
- * @return int
- */
- protected function getTotalExecutionTime()
- {
- if (!$this->progressIndicator) {
- return 0;
- }
- return $this->progressIndicator->getExecutionTime();
- }
-
- protected function startProgressIndicator()
- {
- $this->startTimer();
- if ($this instanceof VerbosityThresholdInterface
- && !$this->verbosityMeetsThreshold()) {
- return;
- }
- if (!$this->progressIndicator) {
- return;
- }
- $totalSteps = $this->progressIndicatorSteps();
- $this->progressIndicator->startProgressIndicator($totalSteps, $this);
- }
-
- /**
- * @return bool
- */
- protected function inProgress()
- {
- if (!$this->progressIndicator) {
- return false;
- }
- return $this->progressIndicator->inProgress();
- }
-
- protected function stopProgressIndicator()
- {
- $this->stopTimer();
- if (!$this->progressIndicator) {
- return;
- }
- $this->progressIndicator->stopProgressIndicator($this);
- }
-
- protected function disableProgressIndicator()
- {
- $this->stopTimer();
- if (!$this->progressIndicator) {
- return;
- }
- $this->progressIndicator->disableProgressIndicator();
- }
-
- protected function detatchProgressIndicator()
- {
- $this->setProgressIndicator(null);
- }
-
- /**
- * @param int $steps
- */
- protected function advanceProgressIndicator($steps = 1)
- {
- if (!$this->progressIndicator) {
- return;
- }
- $this->progressIndicator->advanceProgressIndicator($steps);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/ResourceExistenceChecker.php b/vendor/consolidation/robo/src/Common/ResourceExistenceChecker.php
deleted file mode 100644
index 233f90a9b..000000000
--- a/vendor/consolidation/robo/src/Common/ResourceExistenceChecker.php
+++ /dev/null
@@ -1,116 +0,0 @@
-printTaskError(sprintf('Invalid glob "%s"!', $resource), $this);
- $success = false;
- continue;
- }
- foreach ($glob as $resource) {
- if (!$this->checkResource($resource, $type)) {
- $success = false;
- }
- }
- }
- return $success;
- }
-
- /**
- * Checks a single resource, file or directory.
- *
- * It will print an error as well on the console.
- *
- * @param string $resource File or folder.
- * @param string $type "file", "dir", "fileAndDir"
- *
- * @return bool
- */
- protected function checkResource($resource, $type)
- {
- switch ($type) {
- case 'file':
- if (!$this->isFile($resource)) {
- $this->printTaskError(sprintf('File "%s" does not exist!', $resource), $this);
- return false;
- }
- return true;
- case 'dir':
- if (!$this->isDir($resource)) {
- $this->printTaskError(sprintf('Directory "%s" does not exist!', $resource), $this);
- return false;
- }
- return true;
- case 'fileAndDir':
- if (!$this->isDir($resource) && !$this->isFile($resource)) {
- $this->printTaskError(sprintf('File or directory "%s" does not exist!', $resource), $this);
- return false;
- }
- return true;
- }
- }
-
- /**
- * Convenience method to check the often uses "source => target" file / folder arrays.
- *
- * @param string|array $resources
- */
- protected function checkSourceAndTargetResource($resources)
- {
- if (is_string($resources)) {
- $resources = [$resources];
- }
- $sources = [];
- $targets = [];
- foreach ($resources as $source => $target) {
- $sources[] = $source;
- $target[] = $target;
- }
- $this->checkResources($sources);
- $this->checkResources($targets);
- }
-
- /**
- * Wrapper method around phps is_dir()
- *
- * @param string $directory
- *
- * @return bool
- */
- protected function isDir($directory)
- {
- return is_dir($directory);
- }
-
- /**
- * Wrapper method around phps file_exists()
- *
- * @param string $file
- *
- * @return bool
- */
- protected function isFile($file)
- {
- return file_exists($file);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/TaskIO.php b/vendor/consolidation/robo/src/Common/TaskIO.php
deleted file mode 100644
index 49b5ccd86..000000000
--- a/vendor/consolidation/robo/src/Common/TaskIO.php
+++ /dev/null
@@ -1,237 +0,0 @@
-logger should always be set in Robo core tasks.
- if ($this->logger) {
- return $this->logger;
- }
-
- // TODO: Remove call to Robo::logger() once maintaining backwards
- // compatibility with legacy external Robo tasks is no longer desired.
- if (!Robo::logger()) {
- return null;
- }
-
- static $gaveDeprecationWarning = false;
- if (!$gaveDeprecationWarning) {
- trigger_error('No logger set for ' . get_class($this) . '. Use $this->task(Foo::class) rather than new Foo() in loadTasks to ensure the builder can initialize task the task, or use $this->collectionBuilder()->taskFoo() if creating one task from within another.', E_USER_DEPRECATED);
- $gaveDeprecationWarning = true;
- }
- return Robo::logger();
- }
-
- /**
- * Print information about a task in progress.
- *
- * With the Symfony Console logger, NOTICE is displayed at VERBOSITY_VERBOSE
- * and INFO is displayed at VERBOSITY_VERY_VERBOSE.
- *
- * Robo overrides the default such that NOTICE is displayed at
- * VERBOSITY_NORMAL and INFO is displayed at VERBOSITY_VERBOSE.
- *
- * n.b. We should probably have printTaskNotice for our ordinary
- * output, and use printTaskInfo for less interesting messages.
- *
- * @param string $text
- * @param null|array $context
- */
- protected function printTaskInfo($text, $context = null)
- {
- // The 'note' style is used for both 'notice' and 'info' log levels;
- // However, 'notice' is printed at VERBOSITY_NORMAL, whereas 'info'
- // is only printed at VERBOSITY_VERBOSE.
- $this->printTaskOutput(LogLevel::NOTICE, $text, $this->getTaskContext($context));
- }
-
- /**
- * Provide notification that some part of the task succeeded.
- *
- * With the Symfony Console logger, success messages are remapped to NOTICE,
- * and displayed in VERBOSITY_VERBOSE. When used with the Robo logger,
- * success messages are displayed at VERBOSITY_NORMAL.
- *
- * @param string $text
- * @param null|array $context
- */
- protected function printTaskSuccess($text, $context = null)
- {
- // Not all loggers will recognize ConsoleLogLevel::SUCCESS.
- // We therefore log as LogLevel::NOTICE, and apply a '_level'
- // override in the context so that this message will be
- // logged as SUCCESS if that log level is recognized.
- $context['_level'] = ConsoleLogLevel::SUCCESS;
- $this->printTaskOutput(LogLevel::NOTICE, $text, $this->getTaskContext($context));
- }
-
- /**
- * Provide notification that there is something wrong, but
- * execution can continue.
- *
- * Warning messages are displayed at VERBOSITY_NORMAL.
- *
- * @param string $text
- * @param null|array $context
- */
- protected function printTaskWarning($text, $context = null)
- {
- $this->printTaskOutput(LogLevel::WARNING, $text, $this->getTaskContext($context));
- }
-
- /**
- * Provide notification that some operation in the task failed,
- * and the task cannot continue.
- *
- * Error messages are displayed at VERBOSITY_NORMAL.
- *
- * @param string $text
- * @param null|array $context
- */
- protected function printTaskError($text, $context = null)
- {
- $this->printTaskOutput(LogLevel::ERROR, $text, $this->getTaskContext($context));
- }
-
- /**
- * Provide debugging notification. These messages are only
- * displayed if the log level is VERBOSITY_DEBUG.
- *
- * @param string$text
- * @param null|array $context
- */
- protected function printTaskDebug($text, $context = null)
- {
- $this->printTaskOutput(LogLevel::DEBUG, $text, $this->getTaskContext($context));
- }
-
- /**
- * @param string $level
- * One of the \Psr\Log\LogLevel constant
- * @param string $text
- * @param null|array $context
- */
- protected function printTaskOutput($level, $text, $context)
- {
- if (!$this->verbosityMeetsThreshold()) {
- return;
- }
- $logger = $this->logger();
- if (!$logger) {
- return;
- }
- // Hide the progress indicator, if it is visible.
- $inProgress = $this->hideTaskProgress();
- $logger->log($level, $text, $this->getTaskContext($context));
- // After we have printed our log message, redraw the progress indicator.
- $this->showTaskProgress($inProgress);
- }
-
- /**
- * @return bool
- */
- protected function hideTaskProgress()
- {
- $inProgress = false;
- if ($this instanceof ProgressIndicatorAwareInterface) {
- $inProgress = $this->inProgress();
- }
-
- // If a progress indicator is running on this task, then we mush
- // hide it before we print anything, or its display will be overwritten.
- if ($inProgress) {
- $inProgress = $this->hideProgressIndicator();
- }
- return $inProgress;
- }
-
- /**
- * @param $inProgress
- */
- protected function showTaskProgress($inProgress)
- {
- if ($inProgress) {
- $this->restoreProgressIndicator($inProgress);
- }
- }
-
- /**
- * Format a quantity of bytes.
- *
- * @param int $size
- * @param int $precision
- *
- * @return string
- */
- protected function formatBytes($size, $precision = 2)
- {
- if ($size === 0) {
- return 0;
- }
- $base = log($size, 1024);
- $suffixes = array('', 'k', 'M', 'G', 'T');
- return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)];
- }
-
- /**
- * Get the formatted task name for use in task output.
- * This is placed in the task context under 'name', and
- * used as the log label by Robo\Common\RoboLogStyle,
- * which is inserted at the head of log messages by
- * Robo\Common\CustomLogStyle::formatMessage().
- *
- * @param null|object $task
- *
- * @return string
- */
- protected function getPrintedTaskName($task = null)
- {
- if (!$task) {
- $task = $this;
- }
- return TaskInfo::formatTaskName($task);
- }
-
- /**
- * @param null|array $context
- *
- * @return array with context information
- */
- protected function getTaskContext($context = null)
- {
- if (!$context) {
- $context = [];
- }
- if (!is_array($context)) {
- $context = ['task' => $context];
- }
- if (!array_key_exists('task', $context)) {
- $context['task'] = $this;
- }
-
- return $context + TaskInfo::getTaskContext($context['task']);
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/TimeKeeper.php b/vendor/consolidation/robo/src/Common/TimeKeeper.php
deleted file mode 100644
index 1cd3e3344..000000000
--- a/vendor/consolidation/robo/src/Common/TimeKeeper.php
+++ /dev/null
@@ -1,69 +0,0 @@
-startedAt) {
- return;
- }
- // Get time in seconds as a float, accurate to the microsecond.
- $this->startedAt = microtime(true);
- }
-
- public function stop()
- {
- $this->finishedAt = microtime(true);
- }
-
- /**
- * @return float|null
- */
- public function elapsed()
- {
- $finished = $this->finishedAt ? $this->finishedAt : microtime(true);
- if ($finished - $this->startedAt <= 0) {
- return null;
- }
- return $finished - $this->startedAt;
- }
-
- /**
- * Format a duration into a human-readable time
- *
- * @param float $duration Duration in seconds, with fractional component
- *
- * @return string
- */
- public static function formatDuration($duration)
- {
- if ($duration >= self::DAY * 2) {
- return gmdate('z \d\a\y\s H:i:s', $duration);
- }
- if ($duration > self::DAY) {
- return gmdate('\1 \d\a\y H:i:s', $duration);
- }
- if ($duration > self::HOUR) {
- return gmdate("H:i:s", $duration);
- }
- if ($duration > self::MINUTE) {
- return gmdate("i:s", $duration);
- }
- return round($duration, 3).'s';
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/Timer.php b/vendor/consolidation/robo/src/Common/Timer.php
deleted file mode 100644
index 955eb5bb3..000000000
--- a/vendor/consolidation/robo/src/Common/Timer.php
+++ /dev/null
@@ -1,37 +0,0 @@
-timer)) {
- $this->timer = new TimeKeeper();
- }
- $this->timer->start();
- }
-
- protected function stopTimer()
- {
- if (!isset($this->timer)) {
- return;
- }
- $this->timer->stop();
- }
-
- /**
- * @return float|null
- */
- protected function getExecutionTime()
- {
- if (!isset($this->timer)) {
- return null;
- }
- return $this->timer->elapsed();
- }
-}
diff --git a/vendor/consolidation/robo/src/Common/VerbosityThresholdTrait.php b/vendor/consolidation/robo/src/Common/VerbosityThresholdTrait.php
deleted file mode 100644
index 2fc51c22b..000000000
--- a/vendor/consolidation/robo/src/Common/VerbosityThresholdTrait.php
+++ /dev/null
@@ -1,79 +0,0 @@
-verbosityThreshold = $verbosityThreshold;
- return $this;
- }
-
- public function verbosityThreshold()
- {
- return $this->verbosityThreshold;
- }
-
- public function setOutputAdapter(OutputAdapterInterface $outputAdapter)
- {
- $this->outputAdapter = $outputAdapter;
- }
-
- /**
- * @return OutputAdapterInterface
- */
- public function outputAdapter()
- {
- return $this->outputAdapter;
- }
-
- public function hasOutputAdapter()
- {
- return isset($this->outputAdapter);
- }
-
- public function verbosityMeetsThreshold()
- {
- if ($this->hasOutputAdapter()) {
- return $this->outputAdapter()->verbosityMeetsThreshold($this->verbosityThreshold());
- }
- return true;
- }
-
- /**
- * Print a message if the selected verbosity level is over this task's
- * verbosity threshhold.
- */
- public function writeMessage($message)
- {
- if (!$this->verbosityMeetsThreshold()) {
- return;
- }
- $this->outputAdapter()->writeMessage($message);
- }
-}
diff --git a/vendor/consolidation/robo/src/Config.php b/vendor/consolidation/robo/src/Config.php
deleted file mode 100644
index 9e9370d81..000000000
--- a/vendor/consolidation/robo/src/Config.php
+++ /dev/null
@@ -1,9 +0,0 @@
-import($data);
- $this->defaults = $this->getGlobalOptionDefaultValues();
- }
-
- /**
- * {@inheritdoc}
- */
- public function import($data)
- {
- return $this->replace($data);
- }
-
- /**
- * {@inheritdoc}
- */
- public function replace($data)
- {
- $this->getContext(ConfigOverlay::DEFAULT_CONTEXT)->replace($data);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function combine($data)
- {
- $this->getContext(ConfigOverlay::DEFAULT_CONTEXT)->combine($data);
- return $this;
- }
-
- /**
- * Return an associative array containing all of the global configuration
- * options and their default values.
- *
- * @return array
- */
- public function getGlobalOptionDefaultValues()
- {
- $globalOptions =
- [
- self::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL => self::DEFAULT_PROGRESS_DELAY,
- self::SIMULATE => false,
- ];
- return $this->trimPrefixFromGlobalOptions($globalOptions);
- }
-
- /**
- * Remove the 'options.' prefix from the global options list.
- */
- protected function trimPrefixFromGlobalOptions($globalOptions)
- {
- $result = [];
- foreach ($globalOptions as $option => $value) {
- $option = str_replace('options.', '', $option);
- $result[$option] = $value;
- }
- return $result;
- }
-
- /**
- * @deprecated Use $config->get(Config::SIMULATE)
- *
- * @return bool
- */
- public function isSimulated()
- {
- return $this->get(self::SIMULATE);
- }
-
- /**
- * @deprecated Use $config->set(Config::SIMULATE, true)
- *
- * @param bool $simulated
- *
- * @return $this
- */
- public function setSimulated($simulated = true)
- {
- return $this->set(self::SIMULATE, $simulated);
- }
-
- /**
- * @deprecated Use $config->get(Config::INTERACTIVE)
- *
- * @return bool
- */
- public function isInteractive()
- {
- return $this->get(self::INTERACTIVE);
- }
-
- /**
- * @deprecated Use $config->set(Config::INTERACTIVE, true)
- *
- * @param bool $interactive
- *
- * @return $this
- */
- public function setInteractive($interactive = true)
- {
- return $this->set(self::INTERACTIVE, $interactive);
- }
-
- /**
- * @deprecated Use $config->get(Config::DECORATED)
- *
- * @return bool
- */
- public function isDecorated()
- {
- return $this->get(self::DECORATED);
- }
-
- /**
- * @deprecated Use $config->set(Config::DECORATED, true)
- *
- * @param bool $decorated
- *
- * @return $this
- */
- public function setDecorated($decorated = true)
- {
- return $this->set(self::DECORATED, $decorated);
- }
-
- /**
- * @deprecated Use $config->set(Config::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL, $interval)
- *
- * @param int $interval
- *
- * @return $this
- */
- public function setProgressBarAutoDisplayInterval($interval)
- {
- return $this->set(self::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL, $interval);
- }
-}
diff --git a/vendor/consolidation/robo/src/Config/GlobalOptionDefaultValuesInterface.php b/vendor/consolidation/robo/src/Config/GlobalOptionDefaultValuesInterface.php
deleted file mode 100644
index f76394554..000000000
--- a/vendor/consolidation/robo/src/Config/GlobalOptionDefaultValuesInterface.php
+++ /dev/null
@@ -1,17 +0,0 @@
-inflect($this)
- * ->initializer()
- * ->...
- *
- * Instead of:
- *
- * (new SomeTask($args))
- * ->setLogger($this->logger)
- * ->initializer()
- * ->...
- *
- * The reason `inflect` is better than the more explicit alternative is
- * that subclasses of BaseTask that implement a new FooAwareInterface
- * can override injectDependencies() as explained below, and add more
- * dependencies that can be injected as needed.
- *
- * @param \Robo\Contract\InflectionInterface $parent
- */
- public function inflect(InflectionInterface $parent);
-
- /**
- * Take all dependencies availble to this task and inject any that are
- * needed into the provided task. The general pattern is that, for every
- * FooAwareInterface that this class implements, it should test to see
- * if the child also implements the same interface, and if so, should call
- * $child->setFoo($this->foo).
- *
- * The benefits of this are pretty large. Any time an object that implements
- * InflectionInterface is created, just call `$child->inflect($this)`, and
- * any available optional dependencies will be hooked up via setter injection.
- *
- * The required dependencies of an object should be provided via constructor
- * injection, not inflection.
- *
- * @param InflectionInterface $child An object created by this class that
- * should have its dependencies injected.
- *
- * @see https://mwop.net/blog/2016-04-26-on-locators.html
- */
- public function injectDependencies(InflectionInterface $child);
-}
diff --git a/vendor/consolidation/robo/src/Contract/OutputAdapterInterface.php b/vendor/consolidation/robo/src/Contract/OutputAdapterInterface.php
deleted file mode 100644
index 948d384cb..000000000
--- a/vendor/consolidation/robo/src/Contract/OutputAdapterInterface.php
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix = 'options';
- }
-
- /**
- * Add a reference to the Symfony Console application object.
- */
- public function setApplication($application)
- {
- $this->application = $application;
- return $this;
- }
-
- /**
- * Stipulate the prefix to use for option injection.
- * @param string $prefix
- */
- public function setGlobalOptionsPrefix($prefix)
- {
- $this->prefix = $prefix;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'handleCommandEvent'];
- }
-
- /**
- * Run all of our individual operations when a command event is received.
- */
- public function handleCommandEvent(ConsoleCommandEvent $event)
- {
- $this->setGlobalOptions($event);
- $this->setConfigurationValues($event);
- }
-
- /**
- * Before a Console command runs, examine the global
- * commandline options from the event Input, and set
- * configuration values as appropriate.
- *
- * @param \Symfony\Component\Console\Event\ConsoleCommandEvent $event
- */
- public function setGlobalOptions(ConsoleCommandEvent $event)
- {
- $config = $this->getConfig();
- $input = $event->getInput();
-
- $globalOptions = $config->get($this->prefix, []);
- if ($config instanceof \Consolidation\Config\GlobalOptionDefaultValuesInterface) {
- $globalOptions += $config->getGlobalOptionDefaultValues();
- }
-
- $globalOptions += $this->applicationOptionDefaultValues();
-
- // Set any config value that has a defined global option (e.g. --simulate)
- foreach ($globalOptions as $option => $default) {
- $value = $input->hasOption($option) ? $input->getOption($option) : null;
- // Unfortunately, the `?:` operator does not differentate between `0` and `null`
- if (!isset($value)) {
- $value = $default;
- }
- $config->set($this->prefix . '.' . $option, $value);
- }
- }
-
- /**
- * Examine the commandline --define / -D options, and apply the provided
- * values to the active configuration.
- *
- * @param \Symfony\Component\Console\Event\ConsoleCommandEvent $event
- */
- public function setConfigurationValues(ConsoleCommandEvent $event)
- {
- $config = $this->getConfig();
- $input = $event->getInput();
-
- // Also set any `-D config.key=value` options from the commandline.
- if ($input->hasOption('define')) {
- $configDefinitions = $input->getOption('define');
- foreach ($configDefinitions as $value) {
- list($key, $value) = $this->splitConfigKeyValue($value);
- $config->set($key, $value);
- }
- }
- }
-
- /**
- * Split up the key=value config setting into its component parts. If
- * the input string contains no '=' character, then the value will be 'true'.
- *
- * @param string $value
- * @return array
- */
- protected function splitConfigKeyValue($value)
- {
- $parts = explode('=', $value, 2);
- $parts[] = true;
- return $parts;
- }
-
- /**
- * Get default option values from the Symfony Console application, if
- * it is available.
- */
- protected function applicationOptionDefaultValues()
- {
- if (!$this->application) {
- return [];
- }
-
- $result = [];
- foreach ($this->application->getDefinition()->getOptions() as $key => $option) {
- $result[$key] = $option->acceptValue() ? $option->getDefault() : null;
- }
- return $result;
- }
-}
diff --git a/vendor/consolidation/robo/src/LoadAllTasks.php b/vendor/consolidation/robo/src/LoadAllTasks.php
deleted file mode 100644
index 3183d5b6a..000000000
--- a/vendor/consolidation/robo/src/LoadAllTasks.php
+++ /dev/null
@@ -1,39 +0,0 @@
-getTask();
- if ($task instanceof VerbosityThresholdInterface && !$task->verbosityMeetsThreshold()) {
- return;
- }
- if (!$result->wasSuccessful()) {
- return $this->printError($result);
- } else {
- return $this->printSuccess($result);
- }
- }
-
- /**
- * Log that we are about to abort due to an error being encountered
- * in 'stop on fail' mode.
- *
- * @param \Robo\Result $result
- */
- public function printStopOnFail($result)
- {
- $this->printMessage(LogLevel::NOTICE, 'Stopping on fail. Exiting....');
- $this->printMessage(LogLevel::ERROR, 'Exit Code: {code}', ['code' => $result->getExitCode()]);
- }
-
- /**
- * Log the result of a Robo task that returned an error.
- *
- * @param \Robo\Result $result
- *
- * @return bool
- */
- protected function printError(Result $result)
- {
- $task = $result->getTask();
- $context = $result->getContext() + ['timer-label' => 'Time', '_style' => []];
- $context['_style']['message'] = '';
-
- $printOutput = true;
- if ($task instanceof PrintedInterface) {
- $printOutput = !$task->getPrinted();
- }
- if ($printOutput) {
- $this->printMessage(LogLevel::ERROR, "{message}", $context);
- }
- $this->printMessage(LogLevel::ERROR, 'Exit code {code}', $context);
- return true;
- }
-
- /**
- * Log the result of a Robo task that was successful.
- *
- * @param \Robo\Result $result
- *
- * @return bool
- */
- protected function printSuccess(Result $result)
- {
- $task = $result->getTask();
- $context = $result->getContext() + ['timer-label' => 'in'];
- $time = $result->getExecutionTime();
- if ($time) {
- $this->printMessage(ConsoleLogLevel::SUCCESS, 'Done', $context);
- }
- return false;
- }
-
- /**
- * @param string $level
- * @param string $message
- * @param array $context
- */
- protected function printMessage($level, $message, $context = [])
- {
- $inProgress = $this->hideProgressIndicator();
- $this->logger->log($level, $message, $context);
- if ($inProgress) {
- $this->restoreProgressIndicator($inProgress);
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Log/RoboLogLevel.php b/vendor/consolidation/robo/src/Log/RoboLogLevel.php
deleted file mode 100644
index d7d5eb0a6..000000000
--- a/vendor/consolidation/robo/src/Log/RoboLogLevel.php
+++ /dev/null
@@ -1,11 +0,0 @@
-labelStyles += [
- RoboLogLevel::SIMULATED_ACTION => self::TASK_STYLE_SIMULATED,
- ];
- $this->messageStyles += [
- RoboLogLevel::SIMULATED_ACTION => '',
- ];
- }
-
- /**
- * Log style customization for Robo: replace the log level with
- * the task name.
- *
- * @param string $level
- * @param string $message
- * @param array $context
- *
- * @return string
- */
- protected function formatMessageByLevel($level, $message, $context)
- {
- $label = $level;
- if (array_key_exists('name', $context)) {
- $label = $context['name'];
- }
- return $this->formatMessage($label, $message, $context, $this->labelStyles[$level], $this->messageStyles[$level]);
- }
-
- /**
- * Log style customization for Robo: add the time indicator to the
- * end of the log message if it exists in the context.
- *
- * @param string $label
- * @param string $message
- * @param array $context
- * @param string $taskNameStyle
- * @param string $messageStyle
- *
- * @return string
- */
- protected function formatMessage($label, $message, $context, $taskNameStyle, $messageStyle = '')
- {
- $message = parent::formatMessage($label, $message, $context, $taskNameStyle, $messageStyle);
-
- if (array_key_exists('time', $context) && !empty($context['time']) && array_key_exists('timer-label', $context)) {
- $duration = TimeKeeper::formatDuration($context['time']);
- $message .= ' ' . $context['timer-label'] . ' ' . $this->wrapFormatString($duration, 'fg=yellow');
- }
-
- return $message;
- }
-}
diff --git a/vendor/consolidation/robo/src/Log/RoboLogger.php b/vendor/consolidation/robo/src/Log/RoboLogger.php
deleted file mode 100644
index 75cf23f7c..000000000
--- a/vendor/consolidation/robo/src/Log/RoboLogger.php
+++ /dev/null
@@ -1,29 +0,0 @@
- OutputInterface::VERBOSITY_NORMAL, // Default is "verbose"
- LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL, // Default is "verbose"
- LogLevel::INFO => OutputInterface::VERBOSITY_VERBOSE, // Default is "very verbose"
- ];
- parent::__construct($output, $roboVerbosityOverrides);
- }
-}
diff --git a/vendor/consolidation/robo/src/Result.php b/vendor/consolidation/robo/src/Result.php
deleted file mode 100644
index 7d7793520..000000000
--- a/vendor/consolidation/robo/src/Result.php
+++ /dev/null
@@ -1,258 +0,0 @@
-task = $task;
- $this->printResult();
-
- if (self::$stopOnFail) {
- $this->stopOnFail();
- }
- }
-
- /**
- * Tasks should always return a Result. However, they are also
- * allowed to return NULL or an array to indicate success.
- */
- public static function ensureResult($task, $result)
- {
- if ($result instanceof Result) {
- return $result;
- }
- if (!isset($result)) {
- return static::success($task);
- }
- if ($result instanceof Data) {
- return static::success($task, $result->getMessage(), $result->getData());
- }
- if ($result instanceof ResultData) {
- return new Result($task, $result->getExitCode(), $result->getMessage(), $result->getData());
- }
- if (is_array($result)) {
- return static::success($task, '', $result);
- }
- throw new \Exception(sprintf('Task %s returned a %s instead of a \Robo\Result.', get_class($task), get_class($result)));
- }
-
- protected function printResult()
- {
- // For historic reasons, the Result constructor is responsible
- // for printing task results.
- // TODO: Make IO the responsibility of some other class. Maintaining
- // existing behavior for backwards compatibility. This is undesirable
- // in the long run, though, as it can result in unwanted repeated input
- // in task collections et. al.
- $resultPrinter = Robo::resultPrinter();
- if ($resultPrinter) {
- if ($resultPrinter->printResult($this)) {
- $this->alreadyPrinted();
- }
- }
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $task
- * @param string $extension
- * @param string $service
- *
- * @return \Robo\Result
- */
- public static function errorMissingExtension(TaskInterface $task, $extension, $service)
- {
- $messageTpl = 'PHP extension required for %s. Please enable %s';
- $message = sprintf($messageTpl, $service, $extension);
-
- return self::error($task, $message);
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $task
- * @param string $class
- * @param string $package
- *
- * @return \Robo\Result
- */
- public static function errorMissingPackage(TaskInterface $task, $class, $package)
- {
- $messageTpl = 'Class %s not found. Please install %s Composer package';
- $message = sprintf($messageTpl, $class, $package);
-
- return self::error($task, $message);
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $task
- * @param string $message
- * @param array $data
- *
- * @return \Robo\Result
- */
- public static function error(TaskInterface $task, $message, $data = [])
- {
- return new self($task, self::EXITCODE_ERROR, $message, $data);
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $task
- * @param \Exception $e
- * @param array $data
- *
- * @return \Robo\Result
- */
- public static function fromException(TaskInterface $task, \Exception $e, $data = [])
- {
- $exitCode = $e->getCode();
- if (!$exitCode) {
- $exitCode = self::EXITCODE_ERROR;
- }
- return new self($task, $exitCode, $e->getMessage(), $data);
- }
-
- /**
- * @param \Robo\Contract\TaskInterface $task
- * @param string $message
- * @param array $data
- *
- * @return \Robo\Result
- */
- public static function success(TaskInterface $task, $message = '', $data = [])
- {
- return new self($task, self::EXITCODE_OK, $message, $data);
- }
-
- /**
- * Return a context useful for logging messages.
- *
- * @return array
- */
- public function getContext()
- {
- $task = $this->getTask();
-
- return TaskInfo::getTaskContext($task) + [
- 'code' => $this->getExitCode(),
- 'data' => $this->getArrayCopy(),
- 'time' => $this->getExecutionTime(),
- 'message' => $this->getMessage(),
- ];
- }
-
- /**
- * Add the results from the most recent task to the accumulated
- * results from all tasks that have run so far, merging data
- * as necessary.
- *
- * @param int|string $key
- * @param \Robo\Result $taskResult
- */
- public function accumulate($key, Result $taskResult)
- {
- // If the task is unnamed, then all of its data elements
- // just get merged in at the top-level of the final Result object.
- if (static::isUnnamed($key)) {
- $this->merge($taskResult);
- } elseif (isset($this[$key])) {
- // There can only be one task with a given name; however, if
- // there are tasks added 'before' or 'after' the named task,
- // then the results from these will be stored under the same
- // name unless they are given a name of their own when added.
- $current = $this[$key];
- $this[$key] = $taskResult->merge($current);
- } else {
- $this[$key] = $taskResult;
- }
- }
-
- /**
- * We assume that named values (e.g. for associative array keys)
- * are non-numeric; numeric keys are presumed to simply be the
- * index of an array, and therefore insignificant.
- *
- * @param int|string $key
- *
- * @return bool
- */
- public static function isUnnamed($key)
- {
- return is_numeric($key);
- }
-
- /**
- * @return \Robo\Contract\TaskInterface
- */
- public function getTask()
- {
- return $this->task;
- }
-
- /**
- * @return \Robo\Contract\TaskInterface
- */
- public function cloneTask()
- {
- $reflect = new \ReflectionClass(get_class($this->task));
- return $reflect->newInstanceArgs(func_get_args());
- }
-
- /**
- * @return bool
- *
- * @deprecated since 1.0.
- *
- * @see wasSuccessful()
- */
- public function __invoke()
- {
- trigger_error(__METHOD__ . ' is deprecated: use wasSuccessful() instead.', E_USER_DEPRECATED);
- return $this->wasSuccessful();
- }
-
- /**
- * @return $this
- */
- public function stopOnFail()
- {
- if (!$this->wasSuccessful()) {
- $resultPrinter = Robo::resultPrinter();
- if ($resultPrinter) {
- $resultPrinter->printStopOnFail($this);
- }
- $this->exitEarly($this->getExitCode());
- }
- return $this;
- }
-
- /**
- * @param int $status
- *
- * @throws \Robo\Exception\TaskExitException
- */
- private function exitEarly($status)
- {
- throw new TaskExitException($this->getTask(), $this->getMessage(), $status);
- }
-}
diff --git a/vendor/consolidation/robo/src/ResultData.php b/vendor/consolidation/robo/src/ResultData.php
deleted file mode 100644
index 90baf6e92..000000000
--- a/vendor/consolidation/robo/src/ResultData.php
+++ /dev/null
@@ -1,110 +0,0 @@
-exitCode = $exitCode;
- parent::__construct($message, $data);
- }
-
- /**
- * @param string $message
- * @param array $data
- *
- * @return \Robo\ResultData
- */
- public static function message($message, $data = [])
- {
- return new self(self::EXITCODE_OK, $message, $data);
- }
-
- /**
- * @param string $message
- * @param array $data
- *
- * @return \Robo\ResultData
- */
- public static function cancelled($message = '', $data = [])
- {
- return new ResultData(self::EXITCODE_USER_CANCEL, $message, $data);
- }
-
- /**
- * @return int
- */
- public function getExitCode()
- {
- return $this->exitCode;
- }
-
- /**
- * @return null|string
- */
- public function getOutputData()
- {
- if (!empty($this->message) && !isset($this['already-printed']) && isset($this['provide-outputdata'])) {
- return $this->message;
- }
- }
-
- /**
- * Indicate that the message in this data has already been displayed.
- */
- public function alreadyPrinted()
- {
- $this['already-printed'] = true;
- }
-
- /**
- * Opt-in to providing the result message as the output data
- */
- public function provideOutputdata()
- {
- $this['provide-outputdata'] = true;
- }
-
- /**
- * @return bool
- */
- public function wasSuccessful()
- {
- return $this->exitCode === self::EXITCODE_OK;
- }
-
- /**
- * @return bool
- */
- public function wasCancelled()
- {
- return $this->exitCode == self::EXITCODE_USER_CANCEL;
- }
-}
diff --git a/vendor/consolidation/robo/src/Robo.php b/vendor/consolidation/robo/src/Robo.php
deleted file mode 100644
index fcb4f16dc..000000000
--- a/vendor/consolidation/robo/src/Robo.php
+++ /dev/null
@@ -1,406 +0,0 @@
-setSelfUpdateRepository($repository);
- $statusCode = $runner->execute($argv, $appName, $appVersion, $output);
- return $statusCode;
- }
-
- /**
- * Sets a new global container.
- *
- * @param ContainerInterface $container
- * A new container instance to replace the current.
- */
- public static function setContainer(ContainerInterface $container)
- {
- static::$container = $container;
- }
-
- /**
- * Unsets the global container.
- */
- public static function unsetContainer()
- {
- static::$container = null;
- }
-
- /**
- * Returns the currently active global container.
- *
- * @return \League\Container\ContainerInterface
- *
- * @throws \RuntimeException
- */
- public static function getContainer()
- {
- if (static::$container === null) {
- throw new \RuntimeException('container is not initialized yet. \Robo\Robo::setContainer() must be called with a real container.');
- }
- return static::$container;
- }
-
- /**
- * Returns TRUE if the container has been initialized, FALSE otherwise.
- *
- * @return bool
- */
- public static function hasContainer()
- {
- return static::$container !== null;
- }
-
- /**
- * Create a config object and load it from the provided paths.
- */
- public static function createConfiguration($paths)
- {
- $config = new \Robo\Config\Config();
- static::loadConfiguration($paths, $config);
- return $config;
- }
-
- /**
- * Use a simple config loader to load configuration values from specified paths
- */
- public static function loadConfiguration($paths, $config = null)
- {
- if ($config == null) {
- $config = static::config();
- }
- $loader = new YamlConfigLoader();
- $processor = new ConfigProcessor();
- $processor->add($config->export());
- foreach ($paths as $path) {
- $processor->extend($loader->load($path));
- }
- $config->import($processor->export());
- }
-
- /**
- * Create a container and initiailze it. If you wish to *change*
- * anything defined in the container, then you should call
- * \Robo::configureContainer() instead of this function.
- *
- * @param null|\Symfony\Component\Console\Input\InputInterface $input
- * @param null|\Symfony\Component\Console\Output\OutputInterface $output
- * @param null|\Robo\Application $app
- * @param null|ConfigInterface $config
- * @param null|\Composer\Autoload\ClassLoader $classLoader
- *
- * @return \League\Container\Container|\League\Container\ContainerInterface
- */
- public static function createDefaultContainer($input = null, $output = null, $app = null, $config = null, $classLoader = null)
- {
- // Do not allow this function to be called more than once.
- if (static::hasContainer()) {
- return static::getContainer();
- }
-
- if (!$app) {
- $app = static::createDefaultApplication();
- }
-
- if (!$config) {
- $config = new \Robo\Config\Config();
- }
-
- // Set up our dependency injection container.
- $container = new Container();
- static::configureContainer($container, $app, $config, $input, $output, $classLoader);
-
- // Set the application dispatcher
- $app->setDispatcher($container->get('eventDispatcher'));
-
- return $container;
- }
-
- /**
- * Initialize a container with all of the default Robo services.
- * IMPORTANT: after calling this method, clients MUST call:
- *
- * $dispatcher = $container->get('eventDispatcher');
- * $app->setDispatcher($dispatcher);
- *
- * Any modification to the container should be done prior to fetching
- * objects from it.
- *
- * It is recommended to use \Robo::createDefaultContainer()
- * instead, which does all required setup for the caller, but has
- * the limitation that the container it creates can only be
- * extended, not modified.
- *
- * @param \League\Container\ContainerInterface $container
- * @param \Symfony\Component\Console\Application $app
- * @param ConfigInterface $config
- * @param null|\Symfony\Component\Console\Input\InputInterface $input
- * @param null|\Symfony\Component\Console\Output\OutputInterface $output
- * @param null|\Composer\Autoload\ClassLoader $classLoader
- */
- public static function configureContainer(ContainerInterface $container, SymfonyApplication $app, ConfigInterface $config, $input = null, $output = null, $classLoader = null)
- {
- // Self-referential container refernce for the inflector
- $container->add('container', $container);
- static::setContainer($container);
-
- // Create default input and output objects if they were not provided
- if (!$input) {
- $input = new StringInput('');
- }
- if (!$output) {
- $output = new \Symfony\Component\Console\Output\ConsoleOutput();
- }
- if (!$classLoader) {
- $classLoader = new ClassLoader();
- }
- $config->set(Config::DECORATED, $output->isDecorated());
- $config->set(Config::INTERACTIVE, $input->isInteractive());
-
- $container->share('application', $app);
- $container->share('config', $config);
- $container->share('input', $input);
- $container->share('output', $output);
- $container->share('outputAdapter', \Robo\Common\OutputAdapter::class);
- $container->share('classLoader', $classLoader);
-
- // Register logging and related services.
- $container->share('logStyler', \Robo\Log\RoboLogStyle::class);
- $container->share('logger', \Robo\Log\RoboLogger::class)
- ->withArgument('output')
- ->withMethodCall('setLogOutputStyler', ['logStyler']);
- $container->add('progressBar', \Symfony\Component\Console\Helper\ProgressBar::class)
- ->withArgument('output');
- $container->share('progressIndicator', \Robo\Common\ProgressIndicator::class)
- ->withArgument('progressBar')
- ->withArgument('output');
- $container->share('resultPrinter', \Robo\Log\ResultPrinter::class);
- $container->add('simulator', \Robo\Task\Simulator::class);
- $container->share('globalOptionsEventListener', \Robo\GlobalOptionsEventListener::class)
- ->withMethodCall('setApplication', ['application']);
- $container->share('injectConfigEventListener', \Consolidation\Config\Inject\ConfigForCommand::class)
- ->withArgument('config')
- ->withMethodCall('setApplication', ['application']);
- $container->share('collectionProcessHook', \Robo\Collection\CollectionProcessHook::class);
- $container->share('alterOptionsCommandEvent', \Consolidation\AnnotatedCommand\Options\AlterOptionsCommandEvent::class)
- ->withArgument('application');
- $container->share('hookManager', \Consolidation\AnnotatedCommand\Hooks\HookManager::class)
- ->withMethodCall('addCommandEvent', ['alterOptionsCommandEvent'])
- ->withMethodCall('addCommandEvent', ['injectConfigEventListener'])
- ->withMethodCall('addCommandEvent', ['globalOptionsEventListener'])
- ->withMethodCall('addResultProcessor', ['collectionProcessHook', '*']);
- $container->share('eventDispatcher', \Symfony\Component\EventDispatcher\EventDispatcher::class)
- ->withMethodCall('addSubscriber', ['hookManager']);
- $container->share('formatterManager', \Consolidation\OutputFormatters\FormatterManager::class)
- ->withMethodCall('addDefaultFormatters', [])
- ->withMethodCall('addDefaultSimplifiers', []);
- $container->share('prepareTerminalWidthOption', \Consolidation\AnnotatedCommand\Options\PrepareTerminalWidthOption::class)
- ->withMethodCall('setApplication', ['application']);
- $container->share('commandProcessor', \Consolidation\AnnotatedCommand\CommandProcessor::class)
- ->withArgument('hookManager')
- ->withMethodCall('setFormatterManager', ['formatterManager'])
- ->withMethodCall('addPrepareFormatter', ['prepareTerminalWidthOption'])
- ->withMethodCall(
- 'setDisplayErrorFunction',
- [
- function ($output, $message) use ($container) {
- $logger = $container->get('logger');
- $logger->error($message);
- }
- ]
- );
- $container->share('stdinHandler', \Consolidation\AnnotatedCommand\Input\StdinHandler::class);
- $container->share('commandFactory', \Consolidation\AnnotatedCommand\AnnotatedCommandFactory::class)
- ->withMethodCall('setCommandProcessor', ['commandProcessor']);
- $container->share('relativeNamespaceDiscovery', \Robo\ClassDiscovery\RelativeNamespaceDiscovery::class)
- ->withArgument('classLoader');
-
- // Deprecated: favor using collection builders to direct use of collections.
- $container->add('collection', \Robo\Collection\Collection::class);
- // Deprecated: use CollectionBuilder::create() instead -- or, better
- // yet, BuilderAwareInterface::collectionBuilder() if available.
- $container->add('collectionBuilder', \Robo\Collection\CollectionBuilder::class);
-
- static::addInflectors($container);
-
- // Make sure the application is appropriately initialized.
- $app->setAutoExit(false);
- }
-
- /**
- * @param null|string $appName
- * @param null|string $appVersion
- *
- * @return \Robo\Application
- */
- public static function createDefaultApplication($appName = null, $appVersion = null)
- {
- $appName = $appName ?: self::APPLICATION_NAME;
- $appVersion = $appVersion ?: self::VERSION;
-
- $app = new \Robo\Application($appName, $appVersion);
- $app->setAutoExit(false);
- return $app;
- }
-
- /**
- * Add the Robo League\Container inflectors to the container
- *
- * @param \League\Container\ContainerInterface $container
- */
- public static function addInflectors($container)
- {
- // Register our various inflectors.
- $container->inflector(\Robo\Contract\ConfigAwareInterface::class)
- ->invokeMethod('setConfig', ['config']);
- $container->inflector(\Psr\Log\LoggerAwareInterface::class)
- ->invokeMethod('setLogger', ['logger']);
- $container->inflector(\League\Container\ContainerAwareInterface::class)
- ->invokeMethod('setContainer', ['container']);
- $container->inflector(\Symfony\Component\Console\Input\InputAwareInterface::class)
- ->invokeMethod('setInput', ['input']);
- $container->inflector(\Robo\Contract\OutputAwareInterface::class)
- ->invokeMethod('setOutput', ['output']);
- $container->inflector(\Robo\Contract\ProgressIndicatorAwareInterface::class)
- ->invokeMethod('setProgressIndicator', ['progressIndicator']);
- $container->inflector(\Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface::class)
- ->invokeMethod('setHookManager', ['hookManager']);
- $container->inflector(\Robo\Contract\VerbosityThresholdInterface::class)
- ->invokeMethod('setOutputAdapter', ['outputAdapter']);
- $container->inflector(\Consolidation\AnnotatedCommand\Input\StdinAwareInterface::class)
- ->invokeMethod('setStdinHandler', ['stdinHandler']);
- }
-
- /**
- * Retrieves a service from the container.
- *
- * Use this method if the desired service is not one of those with a dedicated
- * accessor method below. If it is listed below, those methods are preferred
- * as they can return useful type hints.
- *
- * @param string $id
- * The ID of the service to retrieve.
- *
- * @return mixed
- * The specified service.
- */
- public static function service($id)
- {
- return static::getContainer()->get($id);
- }
-
- /**
- * Indicates if a service is defined in the container.
- *
- * @param string $id
- * The ID of the service to check.
- *
- * @return bool
- * TRUE if the specified service exists, FALSE otherwise.
- */
- public static function hasService($id)
- {
- // Check hasContainer() first in order to always return a Boolean.
- return static::hasContainer() && static::getContainer()->has($id);
- }
-
- /**
- * Return the result printer object.
- *
- * @return \Robo\Log\ResultPrinter
- */
- public static function resultPrinter()
- {
- return static::service('resultPrinter');
- }
-
- /**
- * @return ConfigInterface
- */
- public static function config()
- {
- return static::service('config');
- }
-
- /**
- * @return \Consolidation\Log\Logger
- */
- public static function logger()
- {
- return static::service('logger');
- }
-
- /**
- * @return \Robo\Application
- */
- public static function application()
- {
- return static::service('application');
- }
-
- /**
- * Return the output object.
- *
- * @return \Symfony\Component\Console\Output\OutputInterface
- */
- public static function output()
- {
- return static::service('output');
- }
-
- /**
- * Return the input object.
- *
- * @return \Symfony\Component\Console\Input\InputInterface
- */
- public static function input()
- {
- return static::service('input');
- }
-
- public static function process(Process $process)
- {
- return ProcessExecutor::create(static::getContainer(), $process);
- }
-}
diff --git a/vendor/consolidation/robo/src/Runner.php b/vendor/consolidation/robo/src/Runner.php
deleted file mode 100644
index 026ac871b..000000000
--- a/vendor/consolidation/robo/src/Runner.php
+++ /dev/null
@@ -1,575 +0,0 @@
-roboClass = $roboClass ? $roboClass : self::ROBOCLASS ;
- $this->roboFile = $roboFile ? $roboFile : self::ROBOFILE;
- $this->dir = getcwd();
- }
-
- protected function errorCondition($msg, $errorType)
- {
- $this->errorConditions[$msg] = $errorType;
- }
-
- /**
- * @param \Symfony\Component\Console\Output\OutputInterface $output
- *
- * @return bool
- */
- protected function loadRoboFile($output)
- {
- // If we have not been provided an output object, make a temporary one.
- if (!$output) {
- $output = new \Symfony\Component\Console\Output\ConsoleOutput();
- }
-
- // If $this->roboClass is a single class that has not already
- // been loaded, then we will try to obtain it from $this->roboFile.
- // If $this->roboClass is an array, we presume all classes requested
- // are available via the autoloader.
- if (is_array($this->roboClass) || class_exists($this->roboClass)) {
- return true;
- }
- if (!file_exists($this->dir)) {
- $this->errorCondition("Path `{$this->dir}` is invalid; please provide a valid absolute path to the Robofile to load.", 'red');
- return false;
- }
-
- $realDir = realpath($this->dir);
-
- $roboFilePath = $realDir . DIRECTORY_SEPARATOR . $this->roboFile;
- if (!file_exists($roboFilePath)) {
- $requestedRoboFilePath = $this->dir . DIRECTORY_SEPARATOR . $this->roboFile;
- $this->errorCondition("Requested RoboFile `$requestedRoboFilePath` is invalid, please provide valid absolute path to load Robofile.", 'red');
- return false;
- }
- require_once $roboFilePath;
-
- if (!class_exists($this->roboClass)) {
- $this->errorCondition("Class {$this->roboClass} was not loaded.", 'red');
- return false;
- }
- return true;
- }
-
- /**
- * @param array $argv
- * @param null|string $appName
- * @param null|string $appVersion
- * @param null|\Symfony\Component\Console\Output\OutputInterface $output
- *
- * @return int
- */
- public function execute($argv, $appName = null, $appVersion = null, $output = null)
- {
- $argv = $this->shebang($argv);
- $argv = $this->processRoboOptions($argv);
- $app = null;
- if ($appName && $appVersion) {
- $app = Robo::createDefaultApplication($appName, $appVersion);
- }
- $commandFiles = $this->getRoboFileCommands($output);
- return $this->run($argv, $output, $app, $commandFiles, $this->classLoader);
- }
-
- /**
- * Get a list of locations where config files may be loaded
- * @return string[]
- */
- protected function getConfigFilePaths($userConfig)
- {
- $roboAppConfig = dirname(__DIR__) . '/' . basename($userConfig);
- $configFiles = [$userConfig, $roboAppConfig];
- if (dirname($userConfig) != '.') {
- array_unshift($configFiles, basename($userConfig));
- }
- return $configFiles;
- }
- /**
- * @param null|\Symfony\Component\Console\Input\InputInterface $input
- * @param null|\Symfony\Component\Console\Output\OutputInterface $output
- * @param null|\Robo\Application $app
- * @param array[] $commandFiles
- * @param null|ClassLoader $classLoader
- *
- * @return int
- */
- public function run($input = null, $output = null, $app = null, $commandFiles = [], $classLoader = null)
- {
- // Create default input and output objects if they were not provided
- if (!$input) {
- $input = new StringInput('');
- }
- if (is_array($input)) {
- $input = new ArgvInput($input);
- }
- if (!$output) {
- $output = new \Symfony\Component\Console\Output\ConsoleOutput();
- }
- $this->setInput($input);
- $this->setOutput($output);
-
- // If we were not provided a container, then create one
- if (!$this->getContainer()) {
- $configFiles = $this->getConfigFilePaths($this->configFilename);
- $config = Robo::createConfiguration($configFiles);
- if ($this->envConfigPrefix) {
- $envConfig = new EnvConfig($this->envConfigPrefix);
- $config->addContext('env', $envConfig);
- }
- $container = Robo::createDefaultContainer($input, $output, $app, $config, $classLoader);
- $this->setContainer($container);
- // Automatically register a shutdown function and
- // an error handler when we provide the container.
- $this->installRoboHandlers();
- }
-
- if (!$app) {
- $app = Robo::application();
- }
- if ($app instanceof \Robo\Application) {
- $app->addSelfUpdateCommand($this->getSelfUpdateRepository());
- if (!isset($commandFiles)) {
- $this->errorCondition("Robo is not initialized here. Please run `robo init` to create a new RoboFile.", 'yellow');
- $app->addInitRoboFileCommand($this->roboFile, $this->roboClass);
- $commandFiles = [];
- }
- }
-
- if (!empty($this->relativePluginNamespace)) {
- $commandClasses = $this->discoverCommandClasses($this->relativePluginNamespace);
- $commandFiles = array_merge((array)$commandFiles, $commandClasses);
- }
-
- $this->registerCommandClasses($app, $commandFiles);
-
- try {
- $statusCode = $app->run($input, $output);
- } catch (TaskExitException $e) {
- $statusCode = $e->getCode() ?: 1;
- }
-
- // If there were any error conditions in bootstrapping Robo,
- // print them only if the requested command did not complete
- // successfully.
- if ($statusCode) {
- foreach ($this->errorConditions as $msg => $color) {
- $this->yell($msg, 40, $color);
- }
- }
- return $statusCode;
- }
-
- /**
- * @param \Symfony\Component\Console\Output\OutputInterface $output
- *
- * @return null|string
- */
- protected function getRoboFileCommands($output)
- {
- if (!$this->loadRoboFile($output)) {
- return;
- }
- return $this->roboClass;
- }
-
- /**
- * @param \Robo\Application $app
- * @param array $commandClasses
- */
- public function registerCommandClasses($app, $commandClasses)
- {
- foreach ((array)$commandClasses as $commandClass) {
- $this->registerCommandClass($app, $commandClass);
- }
- }
-
- /**
- * @param $relativeNamespace
- *
- * @return array|string[]
- */
- protected function discoverCommandClasses($relativeNamespace)
- {
- /** @var \Robo\ClassDiscovery\RelativeNamespaceDiscovery $discovery */
- $discovery = Robo::service('relativeNamespaceDiscovery');
- $discovery->setRelativeNamespace($relativeNamespace.'\Commands')
- ->setSearchPattern('*Commands.php');
- return $discovery->getClasses();
- }
-
- /**
- * @param \Robo\Application $app
- * @param string|BuilderAwareInterface|ContainerAwareInterface $commandClass
- *
- * @return mixed|void
- */
- public function registerCommandClass($app, $commandClass)
- {
- $container = Robo::getContainer();
- $roboCommandFileInstance = $this->instantiateCommandClass($commandClass);
- if (!$roboCommandFileInstance) {
- return;
- }
-
- // Register commands for all of the public methods in the RoboFile.
- $commandFactory = $container->get('commandFactory');
- $commandList = $commandFactory->createCommandsFromClass($roboCommandFileInstance);
- foreach ($commandList as $command) {
- $app->add($command);
- }
- return $roboCommandFileInstance;
- }
-
- /**
- * @param string|BuilderAwareInterface|ContainerAwareInterface $commandClass
- *
- * @return null|object
- */
- protected function instantiateCommandClass($commandClass)
- {
- $container = Robo::getContainer();
-
- // Register the RoboFile with the container and then immediately
- // fetch it; this ensures that all of the inflectors will run.
- // If the command class is already an instantiated object, then
- // just use it exactly as it was provided to us.
- if (is_string($commandClass)) {
- if (!class_exists($commandClass)) {
- return;
- }
- $reflectionClass = new \ReflectionClass($commandClass);
- if ($reflectionClass->isAbstract()) {
- return;
- }
-
- $commandFileName = "{$commandClass}Commands";
- $container->share($commandFileName, $commandClass);
- $commandClass = $container->get($commandFileName);
- }
- // If the command class is a Builder Aware Interface, then
- // ensure that it has a builder. Every command class needs
- // its own collection builder, as they have references to each other.
- if ($commandClass instanceof BuilderAwareInterface) {
- $builder = CollectionBuilder::create($container, $commandClass);
- $commandClass->setBuilder($builder);
- }
- if ($commandClass instanceof ContainerAwareInterface) {
- $commandClass->setContainer($container);
- }
- return $commandClass;
- }
-
- public function installRoboHandlers()
- {
- register_shutdown_function(array($this, 'shutdown'));
- set_error_handler(array($this, 'handleError'));
- }
-
- /**
- * Process a shebang script, if one was used to launch this Runner.
- *
- * @param array $args
- *
- * @return array $args with shebang script removed
- */
- protected function shebang($args)
- {
- // Option 1: Shebang line names Robo, but includes no parameters.
- // #!/bin/env robo
- // The robo class may contain multiple commands; the user may
- // select which one to run, or even get a list of commands or
- // run 'help' on any of the available commands as usual.
- if ((count($args) > 1) && $this->isShebangFile($args[1])) {
- return array_merge([$args[0]], array_slice($args, 2));
- }
- // Option 2: Shebang line stipulates which command to run.
- // #!/bin/env robo mycommand
- // The robo class must contain a public method named 'mycommand'.
- // This command will be executed every time. Arguments and options
- // may be provided on the commandline as usual.
- if ((count($args) > 2) && $this->isShebangFile($args[2])) {
- return array_merge([$args[0]], explode(' ', $args[1]), array_slice($args, 3));
- }
- return $args;
- }
-
- /**
- * Determine if the specified argument is a path to a shebang script.
- * If so, load it.
- *
- * @param string $filepath file to check
- *
- * @return bool Returns TRUE if shebang script was processed
- */
- protected function isShebangFile($filepath)
- {
- // Avoid trying to call $filepath on remote URLs
- if ((strpos($filepath, '://') !== false) && (substr($filepath, 0, 7) != 'file://')) {
- return false;
- }
- if (!is_file($filepath)) {
- return false;
- }
- $fp = fopen($filepath, "r");
- if ($fp === false) {
- return false;
- }
- $line = fgets($fp);
- $result = $this->isShebangLine($line);
- if ($result) {
- while ($line = fgets($fp)) {
- $line = trim($line);
- if ($line == 'roboClass = $matches[1];
- eval($script);
- $result = true;
- }
- }
- }
- }
- fclose($fp);
-
- return $result;
- }
-
- /**
- * Test to see if the provided line is a robo 'shebang' line.
- *
- * @param string $line
- *
- * @return bool
- */
- protected function isShebangLine($line)
- {
- return ((substr($line, 0, 2) == '#!') && (strstr($line, 'robo') !== false));
- }
-
- /**
- * Check for Robo-specific arguments such as --load-from, process them,
- * and remove them from the array. We have to process --load-from before
- * we set up Symfony Console.
- *
- * @param array $argv
- *
- * @return array
- */
- protected function processRoboOptions($argv)
- {
- // loading from other directory
- $pos = $this->arraySearchBeginsWith('--load-from', $argv) ?: array_search('-f', $argv);
- if ($pos === false) {
- return $argv;
- }
-
- $passThru = array_search('--', $argv);
- if (($passThru !== false) && ($passThru < $pos)) {
- return $argv;
- }
-
- if (substr($argv[$pos], 0, 12) == '--load-from=') {
- $this->dir = substr($argv[$pos], 12);
- } elseif (isset($argv[$pos +1])) {
- $this->dir = $argv[$pos +1];
- unset($argv[$pos +1]);
- }
- unset($argv[$pos]);
- // Make adjustments if '--load-from' points at a file.
- if (is_file($this->dir) || (substr($this->dir, -4) == '.php')) {
- $this->roboFile = basename($this->dir);
- $this->dir = dirname($this->dir);
- $className = basename($this->roboFile, '.php');
- if ($className != $this->roboFile) {
- $this->roboClass = $className;
- }
- }
- // Convert directory to a real path, but only if the
- // path exists. We do not want to lose the original
- // directory if the user supplied a bad value.
- $realDir = realpath($this->dir);
- if ($realDir) {
- chdir($realDir);
- $this->dir = $realDir;
- }
-
- return $argv;
- }
-
- /**
- * @param string $needle
- * @param string[] $haystack
- *
- * @return bool|int
- */
- protected function arraySearchBeginsWith($needle, $haystack)
- {
- for ($i = 0; $i < count($haystack); ++$i) {
- if (substr($haystack[$i], 0, strlen($needle)) == $needle) {
- return $i;
- }
- }
- return false;
- }
-
- public function shutdown()
- {
- $error = error_get_last();
- if (!is_array($error)) {
- return;
- }
- $this->writeln(sprintf("ERROR: %s \nin %s:%d\n ", $error['message'], $error['file'], $error['line']));
- }
-
- /**
- * This is just a proxy error handler that checks the current error_reporting level.
- * In case error_reporting is disabled the error is marked as handled, otherwise
- * the normal internal error handling resumes.
- *
- * @return bool
- */
- public function handleError()
- {
- if (error_reporting() === 0) {
- return true;
- }
- return false;
- }
-
- /**
- * @return string
- */
- public function getSelfUpdateRepository()
- {
- return $this->selfUpdateRepository;
- }
-
- /**
- * @param $selfUpdateRepository
- *
- * @return $this
- */
- public function setSelfUpdateRepository($selfUpdateRepository)
- {
- $this->selfUpdateRepository = $selfUpdateRepository;
- return $this;
- }
-
- /**
- * @param string $configFilename
- *
- * @return $this
- */
- public function setConfigurationFilename($configFilename)
- {
- $this->configFilename = $configFilename;
- return $this;
- }
-
- /**
- * @param string $envConfigPrefix
- *
- * @return $this
- */
- public function setEnvConfigPrefix($envConfigPrefix)
- {
- $this->envConfigPrefix = $envConfigPrefix;
- return $this;
- }
-
- /**
- * @param \Composer\Autoload\ClassLoader $classLoader
- *
- * @return $this
- */
- public function setClassLoader(ClassLoader $classLoader)
- {
- $this->classLoader = $classLoader;
- return $this;
- }
-
- /**
- * @param string $relativeNamespace
- *
- * @return $this
- */
- public function setRelativePluginNamespace($relativeNamespace)
- {
- $this->relativePluginNamespace = $relativeNamespace;
- return $this;
- }
-}
diff --git a/vendor/consolidation/robo/src/State/Consumer.php b/vendor/consolidation/robo/src/State/Consumer.php
deleted file mode 100644
index ab9c0e277..000000000
--- a/vendor/consolidation/robo/src/State/Consumer.php
+++ /dev/null
@@ -1,12 +0,0 @@
-message = $message;
- parent::__construct($data);
- }
-
- /**
- * @return array
- */
- public function getData()
- {
- return $this->getArrayCopy();
- }
-
- /**
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * @param string message
- */
- public function setMessage($message)
- {
- $this->message = $message;
- }
-
- /**
- * Merge another result into this result. Data already
- * existing in this result takes precedence over the
- * data in the Result being merged.
- *
- * @param \Robo\ResultData $result
- *
- * @return $this
- */
- public function merge(Data $result)
- {
- $mergedData = $this->getArrayCopy() + $result->getArrayCopy();
- $this->exchangeArray($mergedData);
- return $this;
- }
-
- /**
- * Update the current data with the data provided in the parameter.
- * Provided data takes precedence.
- *
- * @param \ArrayObject $update
- *
- * @return $this
- */
- public function update(\ArrayObject $update)
- {
- $iterator = $update->getIterator();
-
- while ($iterator->valid()) {
- $this[$iterator->key()] = $iterator->current();
- $iterator->next();
- }
-
- return $this;
- }
-
- /**
- * Merge another result into this result. Data already
- * existing in this result takes precedence over the
- * data in the Result being merged.
- *
- * $data['message'] is handled specially, and is appended
- * to $this->message if set.
- *
- * @param array $data
- *
- * @return array
- */
- public function mergeData(array $data)
- {
- $mergedData = $this->getArrayCopy() + $data;
- $this->exchangeArray($mergedData);
- return $mergedData;
- }
-
- /**
- * @return bool
- */
- public function hasExecutionTime()
- {
- return isset($this['time']);
- }
-
- /**
- * @return null|float
- */
- public function getExecutionTime()
- {
- if (!$this->hasExecutionTime()) {
- return null;
- }
- return $this['time'];
- }
-
- /**
- * Accumulate execution time
- */
- public function accumulateExecutionTime($duration)
- {
- // Convert data arrays to scalar
- if (is_array($duration)) {
- $duration = isset($duration['time']) ? $duration['time'] : 0;
- }
- $this['time'] = $this->getExecutionTime() + $duration;
- return $this->getExecutionTime();
- }
-
- /**
- * Accumulate the message.
- */
- public function accumulateMessage($message)
- {
- if (!empty($this->message)) {
- $this->message .= "\n";
- }
- $this->message .= $message;
- return $this->getMessage();
- }
-}
diff --git a/vendor/consolidation/robo/src/State/StateAwareInterface.php b/vendor/consolidation/robo/src/State/StateAwareInterface.php
deleted file mode 100644
index f86bccb87..000000000
--- a/vendor/consolidation/robo/src/State/StateAwareInterface.php
+++ /dev/null
@@ -1,30 +0,0 @@
-state;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setState(Data $state)
- {
- $this->state = $state;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setStateValue($key, $value)
- {
- $this->state[$key] = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function updateState(Data $update)
- {
- $this->state->update($update);
- }
-
- /**
- * {@inheritdoc}
- */
- public function resetState()
- {
- $this->state = new Data();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/ApiGen/ApiGen.php b/vendor/consolidation/robo/src/Task/ApiGen/ApiGen.php
deleted file mode 100644
index 11ff764c2..000000000
--- a/vendor/consolidation/robo/src/Task/ApiGen/ApiGen.php
+++ /dev/null
@@ -1,518 +0,0 @@
-taskApiGen('./vendor/apigen/apigen.phar')
- * ->config('./apigen.neon')
- * ->templateConfig('vendor/apigen/apigen/templates/bootstrap/config.neon')
- * ->wipeout(true)
- * ->run();
- * ?>
- * ```
- */
-class ApiGen extends BaseTask implements CommandInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- const BOOL_NO = 'no';
- const BOOL_YES = 'yes';
-
- /**
- * @var string
- */
- protected $command;
- protected $operation = 'generate';
-
- /**
- * @param null|string $pathToApiGen
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($pathToApiGen = null)
- {
- $this->command = $pathToApiGen;
- $command_parts = [];
- preg_match('/((?:.+)?apigen(?:\.phar)?) ?( \w+)? ?(.+)?/', $this->command, $command_parts);
- if (count($command_parts) === 3) {
- list(, $this->command, $this->operation) = $command_parts;
- }
- if (count($command_parts) === 4) {
- list(, $this->command, $this->operation, $arg) = $command_parts;
- $this->arg($arg);
- }
- if (!$this->command) {
- $this->command = $this->findExecutablePhar('apigen');
- }
- if (!$this->command) {
- throw new TaskException(__CLASS__, "No apigen installation found");
- }
- }
-
- /**
- * Pass methods parameters as arguments to executable. Argument values
- * are automatically escaped.
- *
- * @param string|string[] $args
- *
- * @return $this
- */
- public function args($args)
- {
- if (!is_array($args)) {
- $args = func_get_args();
- }
- $args = array_map(function ($arg) {
- if (preg_match('/^\w+$/', trim($arg)) === 1) {
- $this->operation = $arg;
- return null;
- }
- return $arg;
- }, $args);
- $args = array_filter($args);
- $this->arguments .= ' ' . implode(' ', array_map('static::escape', $args));
- return $this;
- }
-
- /**
- * @param array|Traversable|string $arg a single object or something traversable
- *
- * @return array|Traversable the provided argument if it was already traversable, or the given
- * argument returned as a one-element array
- */
- protected static function forceTraversable($arg)
- {
- $traversable = $arg;
- if (!is_array($traversable) && !($traversable instanceof \Traversable)) {
- $traversable = array($traversable);
- }
- return $traversable;
- }
-
- /**
- * @param array|string $arg a single argument or an array of multiple string values
- *
- * @return string a comma-separated string of all of the provided arguments, suitable
- * as a command-line "list" type argument for ApiGen
- */
- protected static function asList($arg)
- {
- $normalized = is_array($arg) ? $arg : array($arg);
- return implode(',', $normalized);
- }
-
- /**
- * @param bool|string $val an argument to be normalized
- * @param string $default one of self::BOOL_YES or self::BOOK_NO if the provided
- * value could not deterministically be converted to a
- * yes or no value
- *
- * @return string the given value as a command-line "yes|no" type of argument for ApiGen,
- * or the default value if none could be determined
- */
- protected static function asTextBool($val, $default)
- {
- if ($val === self::BOOL_YES || $val === self::BOOL_NO) {
- return $val;
- }
- if (!$val) {
- return self::BOOL_NO;
- }
- if ($val === true) {
- return self::BOOL_YES;
- }
- if (is_numeric($val) && $val != 0) {
- return self::BOOL_YES;
- }
- if (strcasecmp($val[0], 'y') === 0) {
- return self::BOOL_YES;
- }
- if (strcasecmp($val[0], 'n') === 0) {
- return self::BOOL_NO;
- }
- // meh, good enough, let apigen sort it out
- return $default;
- }
-
- /**
- * @param string $config
- *
- * @return $this
- */
- public function config($config)
- {
- $this->option('config', $config);
- return $this;
- }
-
- /**
- * @param array|string|Traversable $src one or more source values
- *
- * @return $this
- */
- public function source($src)
- {
- foreach (self::forceTraversable($src) as $source) {
- $this->option('source', $source);
- }
- return $this;
- }
-
- /**
- * @param string $dest
- *
- * @return $this
- */
- public function destination($dest)
- {
- $this->option('destination', $dest);
- return $this;
- }
-
- /**
- * @param array|string $exts one or more extensions
- *
- * @return $this
- */
- public function extensions($exts)
- {
- $this->option('extensions', self::asList($exts));
- return $this;
- }
-
- /**
- * @param array|string $exclude one or more exclusions
- *
- * @return $this
- */
- public function exclude($exclude)
- {
- foreach (self::forceTraversable($exclude) as $excl) {
- $this->option('exclude', $excl);
- }
- return $this;
- }
-
- /**
- * @param array|string|Traversable $path one or more skip-doc-path values
- *
- * @return $this
- */
- public function skipDocPath($path)
- {
- foreach (self::forceTraversable($path) as $skip) {
- $this->option('skip-doc-path', $skip);
- }
- return $this;
- }
-
- /**
- * @param array|string|Traversable $prefix one or more skip-doc-prefix values
- *
- * @return $this
- */
- public function skipDocPrefix($prefix)
- {
- foreach (self::forceTraversable($prefix) as $skip) {
- $this->option('skip-doc-prefix', $skip);
- }
- return $this;
- }
-
- /**
- * @param array|string $charset one or more charsets
- *
- * @return $this
- */
- public function charset($charset)
- {
- $this->option('charset', self::asList($charset));
- return $this;
- }
-
- /**
- * @param string $name
- *
- * @return $this
- */
- public function mainProjectNamePrefix($name)
- {
- $this->option('main', $name);
- return $this;
- }
-
- /**
- * @param string $title
- *
- * @return $this
- */
- public function title($title)
- {
- $this->option('title', $title);
- return $this;
- }
-
- /**
- * @param string $baseUrl
- *
- * @return $this
- */
- public function baseUrl($baseUrl)
- {
- $this->option('base-url', $baseUrl);
- return $this;
- }
-
- /**
- * @param string $id
- *
- * @return $this
- */
- public function googleCseId($id)
- {
- $this->option('google-cse-id', $id);
- return $this;
- }
-
- /**
- * @param string $trackingCode
- *
- * @return $this
- */
- public function googleAnalytics($trackingCode)
- {
- $this->option('google-analytics', $trackingCode);
- return $this;
- }
-
- /**
- * @param mixed $templateConfig
- *
- * @return $this
- */
- public function templateConfig($templateConfig)
- {
- $this->option('template-config', $templateConfig);
- return $this;
- }
-
- /**
- * @param array|string $tags one or more supported html tags
- *
- * @return $this
- */
- public function allowedHtml($tags)
- {
- $this->option('allowed-html', self::asList($tags));
- return $this;
- }
-
- /**
- * @param string $groups
- *
- * @return $this
- */
- public function groups($groups)
- {
- $this->option('groups', $groups);
- return $this;
- }
-
- /**
- * @param array|string $types or more supported autocomplete types
- *
- * @return $this
- */
- public function autocomplete($types)
- {
- $this->option('autocomplete', self::asList($types));
- return $this;
- }
-
- /**
- * @param array|string $levels one or more access levels
- *
- * @return $this
- */
- public function accessLevels($levels)
- {
- $this->option('access-levels', self::asList($levels));
- return $this;
- }
-
- /**
- * @param boolean|string $internal 'yes' or true if internal, 'no' or false if not
- *
- * @return $this
- */
- public function internal($internal)
- {
- $this->option('internal', self::asTextBool($internal, self::BOOL_NO));
- return $this;
- }
-
- /**
- * @param boolean|string $php 'yes' or true to generate documentation for internal php classes,
- * 'no' or false otherwise
- *
- * @return $this
- */
- public function php($php)
- {
- $this->option('php', self::asTextBool($php, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $tree 'yes' or true to generate a tree view of classes, 'no' or false otherwise
- *
- * @return $this
- */
- public function tree($tree)
- {
- $this->option('tree', self::asTextBool($tree, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $dep 'yes' or true to generate documentation for deprecated classes, 'no' or false otherwise
- *
- * @return $this
- */
- public function deprecated($dep)
- {
- $this->option('deprecated', self::asTextBool($dep, self::BOOL_NO));
- return $this;
- }
-
- /**
- * @param bool|string $todo 'yes' or true to document tasks, 'no' or false otherwise
- *
- * @return $this
- */
- public function todo($todo)
- {
- $this->option('todo', self::asTextBool($todo, self::BOOL_NO));
- return $this;
- }
-
- /**
- * @param bool|string $src 'yes' or true to generate highlighted source code, 'no' or false otherwise
- *
- * @return $this
- */
- public function sourceCode($src)
- {
- $this->option('source-code', self::asTextBool($src, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $zipped 'yes' or true to generate downloadable documentation, 'no' or false otherwise
- *
- * @return $this
- */
- public function download($zipped)
- {
- $this->option('download', self::asTextBool($zipped, self::BOOL_NO));
- return $this;
- }
-
- public function report($path)
- {
- $this->option('report', $path);
- return $this;
- }
-
- /**
- * @param bool|string $wipeout 'yes' or true to clear out the destination directory, 'no' or false otherwise
- *
- * @return $this
- */
- public function wipeout($wipeout)
- {
- $this->option('wipeout', self::asTextBool($wipeout, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $quiet 'yes' or true for quiet, 'no' or false otherwise
- *
- * @return $this
- */
- public function quiet($quiet)
- {
- $this->option('quiet', self::asTextBool($quiet, self::BOOL_NO));
- return $this;
- }
-
- /**
- * @param bool|string $bar 'yes' or true to display a progress bar, 'no' or false otherwise
- *
- * @return $this
- */
- public function progressbar($bar)
- {
- $this->option('progressbar', self::asTextBool($bar, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $colors 'yes' or true colorize the output, 'no' or false otherwise
- *
- * @return $this
- */
- public function colors($colors)
- {
- $this->option('colors', self::asTextBool($colors, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $check 'yes' or true to check for updates, 'no' or false otherwise
- *
- * @return $this
- */
- public function updateCheck($check)
- {
- $this->option('update-check', self::asTextBool($check, self::BOOL_YES));
- return $this;
- }
-
- /**
- * @param bool|string $debug 'yes' or true to enable debug mode, 'no' or false otherwise
- *
- * @return $this
- */
- public function debug($debug)
- {
- $this->option('debug', self::asTextBool($debug, self::BOOL_NO));
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return "$this->command $this->operation$this->arguments";
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Running ApiGen {args}', ['args' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/ApiGen/loadTasks.php b/vendor/consolidation/robo/src/Task/ApiGen/loadTasks.php
deleted file mode 100644
index e8cd372af..000000000
--- a/vendor/consolidation/robo/src/Task/ApiGen/loadTasks.php
+++ /dev/null
@@ -1,15 +0,0 @@
-task(ApiGen::class, $pathToApiGen);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Archive/Extract.php b/vendor/consolidation/robo/src/Task/Archive/Extract.php
deleted file mode 100644
index a00a0baf8..000000000
--- a/vendor/consolidation/robo/src/Task/Archive/Extract.php
+++ /dev/null
@@ -1,279 +0,0 @@
-taskExtract($archivePath)
- * ->to($destination)
- * ->preserveTopDirectory(false) // the default
- * ->run();
- * ?>
- * ```
- */
-class Extract extends BaseTask implements BuilderAwareInterface
-{
- use BuilderAwareTrait;
-
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var string
- */
- protected $to;
-
- /**
- * @var bool
- */
- private $preserveTopDirectory = false;
-
- /**
- * @param string $filename
- */
- public function __construct($filename)
- {
- $this->filename = $filename;
- }
-
- /**
- * Location to store extracted files.
- *
- * @param string $to
- *
- * @return $this
- */
- public function to($to)
- {
- $this->to = $to;
- return $this;
- }
-
- /**
- * @param bool $preserve
- *
- * @return $this
- */
- public function preserveTopDirectory($preserve = true)
- {
- $this->preserveTopDirectory = $preserve;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!file_exists($this->filename)) {
- $this->printTaskError("File {filename} does not exist", ['filename' => $this->filename]);
-
- return false;
- }
- if (!($mimetype = static::archiveType($this->filename))) {
- $this->printTaskError("Could not determine type of archive for {filename}", ['filename' => $this->filename]);
-
- return false;
- }
-
- // We will first extract to $extractLocation and then move to $this->to
- $extractLocation = static::getTmpDir();
- @mkdir($extractLocation);
- @mkdir(dirname($this->to));
-
- $this->startTimer();
-
- $this->printTaskInfo("Extracting {filename}", ['filename' => $this->filename]);
-
- $result = $this->extractAppropriateType($mimetype, $extractLocation);
- if ($result->wasSuccessful()) {
- $this->printTaskInfo("{filename} extracted", ['filename' => $this->filename]);
- // Now, we want to move the extracted files to $this->to. There
- // are two possibilities that we must consider:
- //
- // (1) Archived files were encapsulated in a folder with an arbitrary name
- // (2) There was no encapsulating folder, and all the files in the archive
- // were extracted into $extractLocation
- //
- // In the case of (1), we want to move and rename the encapsulating folder
- // to $this->to.
- //
- // In the case of (2), we will just move and rename $extractLocation.
- $filesInExtractLocation = glob("$extractLocation/*");
- $hasEncapsulatingFolder = ((count($filesInExtractLocation) == 1) && is_dir($filesInExtractLocation[0]));
- if ($hasEncapsulatingFolder && !$this->preserveTopDirectory) {
- $result = (new FilesystemStack())
- ->inflect($this)
- ->rename($filesInExtractLocation[0], $this->to)
- ->run();
- (new DeleteDir($extractLocation))
- ->inflect($this)
- ->run();
- } else {
- $result = (new FilesystemStack())
- ->inflect($this)
- ->rename($extractLocation, $this->to)
- ->run();
- }
- }
- $this->stopTimer();
- $result['time'] = $this->getExecutionTime();
-
- return $result;
- }
-
- /**
- * @param string $mimetype
- * @param string $extractLocation
- *
- * @return \Robo\Result
- */
- protected function extractAppropriateType($mimetype, $extractLocation)
- {
- // Perform the extraction of a zip file.
- if (($mimetype == 'application/zip') || ($mimetype == 'application/x-zip')) {
- return $this->extractZip($extractLocation);
- }
- return $this->extractTar($extractLocation);
- }
-
- /**
- * @param string $extractLocation
- *
- * @return \Robo\Result
- */
- protected function extractZip($extractLocation)
- {
- if (!extension_loaded('zlib')) {
- return Result::errorMissingExtension($this, 'zlib', 'zip extracting');
- }
-
- $zip = new \ZipArchive();
- if (($status = $zip->open($this->filename)) !== true) {
- return Result::error($this, "Could not open zip archive {$this->filename}");
- }
- if (!$zip->extractTo($extractLocation)) {
- return Result::error($this, "Could not extract zip archive {$this->filename}");
- }
- $zip->close();
-
- return Result::success($this);
- }
-
- /**
- * @param string $extractLocation
- *
- * @return \Robo\Result
- */
- protected function extractTar($extractLocation)
- {
- if (!class_exists('Archive_Tar')) {
- return Result::errorMissingPackage($this, 'Archive_Tar', 'pear/archive_tar');
- }
- $tar_object = new \Archive_Tar($this->filename);
- if (!$tar_object->extract($extractLocation)) {
- return Result::error($this, "Could not extract tar archive {$this->filename}");
- }
-
- return Result::success($this);
- }
-
- /**
- * @param string $filename
- *
- * @return bool|string
- */
- protected static function archiveType($filename)
- {
- $content_type = false;
- if (class_exists('finfo')) {
- $finfo = new \finfo(FILEINFO_MIME_TYPE);
- $content_type = $finfo->file($filename);
- // If finfo cannot determine the content type, then we will try other methods
- if ($content_type == 'application/octet-stream') {
- $content_type = false;
- }
- }
- // Examing the file's magic header bytes.
- if (!$content_type) {
- if ($file = fopen($filename, 'rb')) {
- $first = fread($file, 2);
- fclose($file);
- if ($first !== false) {
- // Interpret the two bytes as a little endian 16-bit unsigned int.
- $data = unpack('v', $first);
- switch ($data[1]) {
- case 0x8b1f:
- // First two bytes of gzip files are 0x1f, 0x8b (little-endian).
- // See http://www.gzip.org/zlib/rfc-gzip.html#header-trailer
- $content_type = 'application/x-gzip';
- break;
-
- case 0x4b50:
- // First two bytes of zip files are 0x50, 0x4b ('PK') (little-endian).
- // See http://en.wikipedia.org/wiki/Zip_(file_format)#File_headers
- $content_type = 'application/zip';
- break;
-
- case 0x5a42:
- // First two bytes of bzip2 files are 0x5a, 0x42 ('BZ') (big-endian).
- // See http://en.wikipedia.org/wiki/Bzip2#File_format
- $content_type = 'application/x-bzip2';
- break;
- }
- }
- }
- }
- // 3. Lastly if above methods didn't work, try to guess the mime type from
- // the file extension. This is useful if the file has no identificable magic
- // header bytes (for example tarballs).
- if (!$content_type) {
- // Remove querystring from the filename, if present.
- $filename = basename(current(explode('?', $filename, 2)));
- $extension_mimetype = array(
- '.tar.gz' => 'application/x-gzip',
- '.tgz' => 'application/x-gzip',
- '.tar' => 'application/x-tar',
- );
- foreach ($extension_mimetype as $extension => $ct) {
- if (substr($filename, -strlen($extension)) === $extension) {
- $content_type = $ct;
- break;
- }
- }
- }
-
- return $content_type;
- }
-
- /**
- * @return string
- */
- protected static function getTmpDir()
- {
- return getcwd().'/tmp'.rand().time();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Archive/Pack.php b/vendor/consolidation/robo/src/Task/Archive/Pack.php
deleted file mode 100644
index 0970f8e88..000000000
--- a/vendor/consolidation/robo/src/Task/Archive/Pack.php
+++ /dev/null
@@ -1,257 +0,0 @@
-taskPack(
- * )
- * ->add('README') // Puts file 'README' in archive at the root
- * ->add('project') // Puts entire contents of directory 'project' in archinve inside 'project'
- * ->addFile('dir/file.txt', 'file.txt') // Takes 'file.txt' from cwd and puts it in archive inside 'dir'.
- * ->run();
- * ?>
- * ```
- */
-class Pack extends BaseTask implements PrintedInterface
-{
- /**
- * The list of items to be packed into the archive.
- *
- * @var array
- */
- private $items = [];
-
- /**
- * The full path to the archive to be created.
- *
- * @var string
- */
- private $archiveFile;
-
- /**
- * Construct the class.
- *
- * @param string $archiveFile The full path and name of the archive file to create.
- *
- * @since 1.0
- */
- public function __construct($archiveFile)
- {
- $this->archiveFile = $archiveFile;
- }
-
- /**
- * Satisfy the parent requirement.
- *
- * @return bool Always returns true.
- *
- * @since 1.0
- */
- public function getPrinted()
- {
- return true;
- }
-
- /**
- * @param string $archiveFile
- *
- * @return $this
- */
- public function archiveFile($archiveFile)
- {
- $this->archiveFile = $archiveFile;
- return $this;
- }
-
- /**
- * Add an item to the archive. Like file_exists(), the parameter
- * may be a file or a directory.
- *
- * @var string
- * Relative path and name of item to store in archive
- * @var string
- * Absolute or relative path to file or directory's location in filesystem
- *
- * @return $this
- */
- public function addFile($placementLocation, $filesystemLocation)
- {
- $this->items[$placementLocation] = $filesystemLocation;
-
- return $this;
- }
-
- /**
- * Alias for addFile, in case anyone has angst about using
- * addFile with a directory.
- *
- * @var string
- * Relative path and name of directory to store in archive
- * @var string
- * Absolute or relative path to directory or directory's location in filesystem
- *
- * @return $this
- */
- public function addDir($placementLocation, $filesystemLocation)
- {
- $this->addFile($placementLocation, $filesystemLocation);
-
- return $this;
- }
-
- /**
- * Add a file or directory, or list of same to the archive.
- *
- * @var string|array
- * If given a string, should contain the relative filesystem path to the
- * the item to store in archive; this will also be used as the item's
- * path in the archive, so absolute paths should not be used here.
- * If given an array, the key of each item should be the path to store
- * in the archive, and the value should be the filesystem path to the
- * item to store.
- * @return $this
- */
- public function add($item)
- {
- if (is_array($item)) {
- $this->items = array_merge($this->items, $item);
- } else {
- $this->addFile($item, $item);
- }
-
- return $this;
- }
-
- /**
- * Create a zip archive for distribution.
- *
- * @return \Robo\Result
- *
- * @since 1.0
- */
- public function run()
- {
- $this->startTimer();
-
- // Use the file extension to determine what kind of archive to create.
- $fileInfo = new \SplFileInfo($this->archiveFile);
- $extension = strtolower($fileInfo->getExtension());
- if (empty($extension)) {
- return Result::error($this, "Archive filename must use an extension (e.g. '.zip') to specify the kind of archive to create.");
- }
-
- try {
- // Inform the user which archive we are creating
- $this->printTaskInfo("Creating archive {filename}", ['filename' => $this->archiveFile]);
- if ($extension == 'zip') {
- $result = $this->archiveZip($this->archiveFile, $this->items);
- } else {
- $result = $this->archiveTar($this->archiveFile, $this->items);
- }
- $this->printTaskSuccess("{filename} created.", ['filename' => $this->archiveFile]);
- } catch (\Exception $e) {
- $this->printTaskError("Could not create {filename}. {exception}", ['filename' => $this->archiveFile, 'exception' => $e->getMessage(), '_style' => ['exception' => '']]);
- $result = Result::error($this, sprintf('Could not create %s. %s', $this->archiveFile, $e->getMessage()));
- }
- $this->stopTimer();
- $result['time'] = $this->getExecutionTime();
-
- return $result;
- }
-
- /**
- * @param string $archiveFile
- * @param array $items
- *
- * @return \Robo\Result
- */
- protected function archiveTar($archiveFile, $items)
- {
- if (!class_exists('Archive_Tar')) {
- return Result::errorMissingPackage($this, 'Archive_Tar', 'pear/archive_tar');
- }
-
- $tar_object = new \Archive_Tar($archiveFile);
- foreach ($items as $placementLocation => $filesystemLocation) {
- $p_remove_dir = $filesystemLocation;
- $p_add_dir = $placementLocation;
- if (is_file($filesystemLocation)) {
- $p_remove_dir = dirname($filesystemLocation);
- $p_add_dir = dirname($placementLocation);
- if (basename($filesystemLocation) != basename($placementLocation)) {
- return Result::error($this, "Tar archiver does not support renaming files during extraction; could not add $filesystemLocation as $placementLocation.");
- }
- }
-
- if (!$tar_object->addModify([$filesystemLocation], $p_add_dir, $p_remove_dir)) {
- return Result::error($this, "Could not add $filesystemLocation to the archive.");
- }
- }
-
- return Result::success($this);
- }
-
- /**
- * @param string $archiveFile
- * @param array $items
- *
- * @return \Robo\Result
- */
- protected function archiveZip($archiveFile, $items)
- {
- if (!extension_loaded('zlib')) {
- return Result::errorMissingExtension($this, 'zlib', 'zip packing');
- }
-
- $zip = new \ZipArchive($archiveFile, \ZipArchive::CREATE);
- if (!$zip->open($archiveFile, \ZipArchive::CREATE)) {
- return Result::error($this, "Could not create zip archive {$archiveFile}");
- }
- $result = $this->addItemsToZip($zip, $items);
- $zip->close();
-
- return $result;
- }
-
- /**
- * @param \ZipArchive $zip
- * @param array $items
- *
- * @return \Robo\Result
- */
- protected function addItemsToZip($zip, $items)
- {
- foreach ($items as $placementLocation => $filesystemLocation) {
- if (is_dir($filesystemLocation)) {
- $finder = new Finder();
- $finder->files()->in($filesystemLocation)->ignoreDotFiles(false);
-
- foreach ($finder as $file) {
- // Replace Windows slashes or resulting zip will have issues on *nixes.
- $relativePathname = str_replace('\\', '/', $file->getRelativePathname());
-
- if (!$zip->addFile($file->getRealpath(), "{$placementLocation}/{$relativePathname}")) {
- return Result::error($this, "Could not add directory $filesystemLocation to the archive; error adding {$file->getRealpath()}.");
- }
- }
- } elseif (is_file($filesystemLocation)) {
- if (!$zip->addFile($filesystemLocation, $placementLocation)) {
- return Result::error($this, "Could not add file $filesystemLocation to the archive.");
- }
- } else {
- return Result::error($this, "Could not find $filesystemLocation for the archive.");
- }
- }
-
- return Result::success($this);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Archive/loadTasks.php b/vendor/consolidation/robo/src/Task/Archive/loadTasks.php
deleted file mode 100644
index cf846fdf8..000000000
--- a/vendor/consolidation/robo/src/Task/Archive/loadTasks.php
+++ /dev/null
@@ -1,25 +0,0 @@
-task(Pack::class, $filename);
- }
-
- /**
- * @param $filename
- *
- * @return Extract
- */
- protected function taskExtract($filename)
- {
- return $this->task(Extract::class, $filename);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Assets/CssPreprocessor.php b/vendor/consolidation/robo/src/Task/Assets/CssPreprocessor.php
deleted file mode 100644
index a15d20784..000000000
--- a/vendor/consolidation/robo/src/Task/Assets/CssPreprocessor.php
+++ /dev/null
@@ -1,214 +0,0 @@
-files = $input;
-
- $this->setDefaultCompiler();
- }
-
- protected function setDefaultCompiler()
- {
- if (isset($this->compilers[0])) {
- //set first compiler as default
- $this->compiler = $this->compilers[0];
- }
- }
-
- /**
- * Sets import directories
- * Alias for setImportPaths
- * @see CssPreprocessor::setImportPaths
- *
- * @param array|string $dirs
- *
- * @return $this
- */
- public function importDir($dirs)
- {
- return $this->setImportPaths($dirs);
- }
-
- /**
- * Adds import directory
- *
- * @param string $dir
- *
- * @return $this
- */
- public function addImportPath($dir)
- {
- if (!isset($this->compilerOptions['importDirs'])) {
- $this->compilerOptions['importDirs'] = [];
- }
-
- if (!in_array($dir, $this->compilerOptions['importDirs'], true)) {
- $this->compilerOptions['importDirs'][] = $dir;
- }
-
- return $this;
- }
-
- /**
- * Sets import directories
- *
- * @param array|string $dirs
- *
- * @return $this
- */
- public function setImportPaths($dirs)
- {
- if (!is_array($dirs)) {
- $dirs = [$dirs];
- }
-
- $this->compilerOptions['importDirs'] = $dirs;
-
- return $this;
- }
-
- /**
- * @param string $formatterName
- *
- * @return $this
- */
- public function setFormatter($formatterName)
- {
- $this->compilerOptions['formatter'] = $formatterName;
-
- return $this;
- }
-
- /**
- * Sets the compiler.
- *
- * @param string $compiler
- * @param array $options
- *
- * @return $this
- */
- public function compiler($compiler, array $options = [])
- {
- $this->compiler = $compiler;
- $this->compilerOptions = array_merge($this->compilerOptions, $options);
-
- return $this;
- }
-
- /**
- * Compiles file
- *
- * @param $file
- *
- * @return bool|mixed
- */
- protected function compile($file)
- {
- if (is_callable($this->compiler)) {
- return call_user_func($this->compiler, $file, $this->compilerOptions);
- }
-
- if (method_exists($this, $this->compiler)) {
- return $this->{$this->compiler}($file);
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!in_array($this->compiler, $this->compilers, true)
- && !is_callable($this->compiler)
- ) {
- $message = sprintf('Invalid ' . static::FORMAT_NAME . ' compiler %s!', $this->compiler);
-
- return Result::error($this, $message);
- }
-
- foreach ($this->files as $in => $out) {
- if (!file_exists($in)) {
- $message = sprintf('File %s not found.', $in);
-
- return Result::error($this, $message);
- }
- if (file_exists($out) && !is_writable($out)) {
- return Result::error($this, 'Destination already exists and cannot be overwritten.');
- }
- }
-
- foreach ($this->files as $in => $out) {
- $css = $this->compile($in);
-
- if ($css instanceof Result) {
- return $css;
- } elseif (false === $css) {
- $message = sprintf(
- ucfirst(static::FORMAT_NAME) . ' compilation failed for %s.',
- $in
- );
-
- return Result::error($this, $message);
- }
-
- $dst = $out . '.part';
- $write_result = file_put_contents($dst, $css);
-
- if (false === $write_result) {
- $message = sprintf('File write failed: %s', $out);
-
- @unlink($dst);
- return Result::error($this, $message);
- }
-
- // Cannot be cross-volume: should always succeed
- @rename($dst, $out);
-
- $this->printTaskSuccess('Wrote CSS to {filename}', ['filename' => $out]);
- }
-
- return Result::success($this, 'All ' . static::FORMAT_NAME . ' files compiled.');
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Assets/ImageMinify.php b/vendor/consolidation/robo/src/Task/Assets/ImageMinify.php
deleted file mode 100644
index 1aa625932..000000000
--- a/vendor/consolidation/robo/src/Task/Assets/ImageMinify.php
+++ /dev/null
@@ -1,716 +0,0 @@
-taskImageMinify('assets/images/*')
- * ->to('dist/images/')
- * ->run();
- * ```
- *
- * This will use the following minifiers:
- *
- * - PNG: optipng
- * - GIF: gifsicle
- * - JPG, JPEG: jpegtran
- * - SVG: svgo
- *
- * When the minifier is specified the task will use that for all the input files. In that case
- * it is useful to filter the files with the extension:
- *
- * ```php
- * $this->taskImageMinify('assets/images/*.png')
- * ->to('dist/images/')
- * ->minifier('pngcrush');
- * ->run();
- * ```
- *
- * The task supports the following minifiers:
- *
- * - optipng
- * - pngquant
- * - advpng
- * - pngout
- * - zopflipng
- * - pngcrush
- * - gifsicle
- * - jpegoptim
- * - jpeg-recompress
- * - jpegtran
- * - svgo (only minification, no downloading)
- *
- * You can also specifiy extra options for the minifiers:
- *
- * ```php
- * $this->taskImageMinify('assets/images/*.jpg')
- * ->to('dist/images/')
- * ->minifier('jpegtran', ['-progressive' => null, '-copy' => 'none'])
- * ->run();
- * ```
- *
- * This will execute as:
- * `jpegtran -copy none -progressive -optimize -outfile "dist/images/test.jpg" "/var/www/test/assets/images/test.jpg"`
- */
-class ImageMinify extends BaseTask
-{
- /**
- * Destination directory for the minified images.
- *
- * @var string
- */
- protected $to;
-
- /**
- * Array of the source files.
- *
- * @var array
- */
- protected $dirs = [];
-
- /**
- * Symfony 2 filesystem.
- *
- * @var sfFilesystem
- */
- protected $fs;
-
- /**
- * Target directory for the downloaded binary executables.
- *
- * @var string
- */
- protected $executableTargetDir;
-
- /**
- * Array for the downloaded binary executables.
- *
- * @var array
- */
- protected $executablePaths = [];
-
- /**
- * Array for the individual results of all the files.
- *
- * @var array
- */
- protected $results = [];
-
- /**
- * Default minifier to use.
- *
- * @var string
- */
- protected $minifier;
-
- /**
- * Array for minifier options.
- *
- * @var array
- */
- protected $minifierOptions = [];
-
- /**
- * Supported minifiers.
- *
- * @var array
- */
- protected $minifiers = [
- // Default 4
- 'optipng',
- 'gifsicle',
- 'jpegtran',
- 'svgo',
- // PNG
- 'pngquant',
- 'advpng',
- 'pngout',
- 'zopflipng',
- 'pngcrush',
- // JPG
- 'jpegoptim',
- 'jpeg-recompress',
- ];
-
- /**
- * Binary repositories of Imagemin.
- *
- * @link https://github.com/imagemin
- *
- * @var array
- */
- protected $imageminRepos = [
- // PNG
- 'optipng' => 'https://github.com/imagemin/optipng-bin',
- 'pngquant' => 'https://github.com/imagemin/pngquant-bin',
- 'advpng' => 'https://github.com/imagemin/advpng-bin',
- 'pngout' => 'https://github.com/imagemin/pngout-bin',
- 'zopflipng' => 'https://github.com/imagemin/zopflipng-bin',
- 'pngcrush' => 'https://github.com/imagemin/pngcrush-bin',
- // Gif
- 'gifsicle' => 'https://github.com/imagemin/gifsicle-bin',
- // JPG
- 'jpegtran' => 'https://github.com/imagemin/jpegtran-bin',
- 'jpegoptim' => 'https://github.com/imagemin/jpegoptim-bin',
- 'cjpeg' => 'https://github.com/imagemin/mozjpeg-bin', // note: we do not support this minifier because it creates JPG from non-JPG files
- 'jpeg-recompress' => 'https://github.com/imagemin/jpeg-recompress-bin',
- // WebP
- 'cwebp' => 'https://github.com/imagemin/cwebp-bin', // note: we do not support this minifier because it creates WebP from non-WebP files
- ];
-
- public function __construct($dirs)
- {
- is_array($dirs)
- ? $this->dirs = $dirs
- : $this->dirs[] = $dirs;
-
- $this->fs = new sfFilesystem();
-
- // guess the best path for the executables based on __DIR__
- if (($pos = strpos(__DIR__, 'consolidation/robo')) !== false) {
- // the executables should be stored in vendor/bin
- $this->executableTargetDir = substr(__DIR__, 0, $pos).'bin';
- }
-
- // check if the executables are already available
- foreach ($this->imageminRepos as $exec => $url) {
- $path = $this->executableTargetDir.'/'.$exec;
- // if this is Windows add a .exe extension
- if (substr($this->getOS(), 0, 3) == 'win') {
- $path .= '.exe';
- }
- if (is_file($path)) {
- $this->executablePaths[$exec] = $path;
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- // find the files
- $files = $this->findFiles($this->dirs);
-
- // minify the files
- $result = $this->minify($files);
- // check if there was an error
- if ($result instanceof Result) {
- return $result;
- }
-
- $amount = (count($files) == 1 ? 'image' : 'images');
- $message = "Minified {filecount} out of {filetotal} $amount into {destination}";
- $context = ['filecount' => count($this->results['success']), 'filetotal' => count($files), 'destination' => $this->to];
-
- if (count($this->results['success']) == count($files)) {
- $this->printTaskSuccess($message, $context);
-
- return Result::success($this, $message, $context);
- } else {
- return Result::error($this, $message, $context);
- }
- }
-
- /**
- * Sets the target directory where the files will be copied to.
- *
- * @param string $target
- *
- * @return $this
- */
- public function to($target)
- {
- $this->to = rtrim($target, '/');
-
- return $this;
- }
-
- /**
- * Sets the minifier.
- *
- * @param string $minifier
- * @param array $options
- *
- * @return $this
- */
- public function minifier($minifier, array $options = [])
- {
- $this->minifier = $minifier;
- $this->minifierOptions = array_merge($this->minifierOptions, $options);
-
- return $this;
- }
-
- /**
- * @param array $dirs
- *
- * @return array|\Robo\Result
- *
- * @throws \Robo\Exception\TaskException
- */
- protected function findFiles($dirs)
- {
- $files = array();
-
- // find the files
- foreach ($dirs as $k => $v) {
- // reset finder
- $finder = new Finder();
-
- $dir = $k;
- $to = $v;
- // check if target was given with the to() method instead of key/value pairs
- if (is_int($k)) {
- $dir = $v;
- if (isset($this->to)) {
- $to = $this->to;
- } else {
- throw new TaskException($this, 'target directory is not defined');
- }
- }
-
- try {
- $finder->files()->in($dir);
- } catch (\InvalidArgumentException $e) {
- // if finder cannot handle it, try with in()->name()
- if (strpos($dir, '/') === false) {
- $dir = './'.$dir;
- }
- $parts = explode('/', $dir);
- $new_dir = implode('/', array_slice($parts, 0, -1));
- try {
- $finder->files()->in($new_dir)->name(array_pop($parts));
- } catch (\InvalidArgumentException $e) {
- return Result::fromException($this, $e);
- }
- }
-
- foreach ($finder as $file) {
- // store the absolute path as key and target as value in the files array
- $files[$file->getRealpath()] = $this->getTarget($file->getRealPath(), $to);
- }
- $fileNoun = count($finder) == 1 ? ' file' : ' files';
- $this->printTaskInfo("Found {filecount} $fileNoun in {dir}", ['filecount' => count($finder), 'dir' => $dir]);
- }
-
- return $files;
- }
-
- /**
- * @param string $file
- * @param string $to
- *
- * @return string
- */
- protected function getTarget($file, $to)
- {
- $target = $to.'/'.basename($file);
-
- return $target;
- }
-
- /**
- * @param array $files
- *
- * @return \Robo\Result
- */
- protected function minify($files)
- {
- // store the individual results into the results array
- $this->results = [
- 'success' => [],
- 'error' => [],
- ];
-
- // loop through the files
- foreach ($files as $from => $to) {
- if (!isset($this->minifier)) {
- // check filetype based on the extension
- $extension = strtolower(pathinfo($from, PATHINFO_EXTENSION));
-
- // set the default minifiers based on the extension
- switch ($extension) {
- case 'png':
- $minifier = 'optipng';
- break;
- case 'jpg':
- case 'jpeg':
- $minifier = 'jpegtran';
- break;
- case 'gif':
- $minifier = 'gifsicle';
- break;
- case 'svg':
- $minifier = 'svgo';
- break;
- }
- } else {
- if (!in_array($this->minifier, $this->minifiers, true)
- && !is_callable(strtr($this->minifier, '-', '_'))
- ) {
- $message = sprintf('Invalid minifier %s!', $this->minifier);
-
- return Result::error($this, $message);
- }
- $minifier = $this->minifier;
- }
-
- // Convert minifier name to camelCase (e.g. jpeg-recompress)
- $funcMinifier = $this->camelCase($minifier);
-
- // call the minifier method which prepares the command
- if (is_callable($funcMinifier)) {
- $command = call_user_func($funcMinifier, $from, $to, $this->minifierOptions);
- } elseif (method_exists($this, $funcMinifier)) {
- $command = $this->{$funcMinifier}($from, $to);
- } else {
- $message = sprintf('Minifier method %s cannot be found!', $funcMinifier);
-
- return Result::error($this, $message);
- }
-
- // launch the command
- $this->printTaskInfo('Minifying {filepath} with {minifier}', ['filepath' => $from, 'minifier' => $minifier]);
- $result = $this->executeCommand($command);
-
- // check the return code
- if ($result->getExitCode() == 127) {
- $this->printTaskError('The {minifier} executable cannot be found', ['minifier' => $minifier]);
- // try to install from imagemin repository
- if (array_key_exists($minifier, $this->imageminRepos)) {
- $result = $this->installFromImagemin($minifier);
- if ($result instanceof Result) {
- if ($result->wasSuccessful()) {
- $this->printTaskSuccess($result->getMessage());
- // retry the conversion with the downloaded executable
- if (is_callable($minifier)) {
- $command = call_user_func($minifier, $from, $to, $minifierOptions);
- } elseif (method_exists($this, $minifier)) {
- $command = $this->{$minifier}($from, $to);
- }
- // launch the command
- $this->printTaskInfo('Minifying {filepath} with {minifier}', ['filepath' => $from, 'minifier' => $minifier]);
- $result = $this->executeCommand($command);
- } else {
- $this->printTaskError($result->getMessage());
- // the download was not successful
- return $result;
- }
- }
- } else {
- return $result;
- }
- }
-
- // check the success of the conversion
- if ($result->getExitCode() !== 0) {
- $this->results['error'][] = $from;
- } else {
- $this->results['success'][] = $from;
- }
- }
- }
-
- /**
- * @return string
- */
- protected function getOS()
- {
- $os = php_uname('s');
- $os .= '/'.php_uname('m');
- // replace x86_64 to x64, because the imagemin repo uses that
- $os = str_replace('x86_64', 'x64', $os);
- // replace i386, i686, etc to x86, because of imagemin
- $os = preg_replace('/i[0-9]86/', 'x86', $os);
- // turn info to lowercase, because of imagemin
- $os = strtolower($os);
-
- return $os;
- }
-
- /**
- * @param string $command
- *
- * @return \Robo\Result
- */
- protected function executeCommand($command)
- {
- // insert the options into the command
- $a = explode(' ', $command);
- $executable = array_shift($a);
- foreach ($this->minifierOptions as $key => $value) {
- // first prepend the value
- if (!empty($value)) {
- array_unshift($a, $value);
- }
- // then add the key
- if (!is_numeric($key)) {
- array_unshift($a, $key);
- }
- }
- // check if the executable can be replaced with the downloaded one
- if (array_key_exists($executable, $this->executablePaths)) {
- $executable = $this->executablePaths[$executable];
- }
- array_unshift($a, $executable);
- $command = implode(' ', $a);
-
- // execute the command
- $exec = new Exec($command);
-
- return $exec->inflect($this)->printed(false)->run();
- }
-
- /**
- * @param string $executable
- *
- * @return \Robo\Result
- */
- protected function installFromImagemin($executable)
- {
- // check if there is an url defined for the executable
- if (!array_key_exists($executable, $this->imageminRepos)) {
- $message = sprintf('The executable %s cannot be found in the defined imagemin repositories', $executable);
-
- return Result::error($this, $message);
- }
- $this->printTaskInfo('Downloading the {executable} executable from the imagemin repository', ['executable' => $executable]);
-
- $os = $this->getOS();
- $url = $this->imageminRepos[$executable].'/blob/master/vendor/'.$os.'/'.$executable.'?raw=true';
- if (substr($os, 0, 3) == 'win') {
- // if it is win, add a .exe extension
- $url = $this->imageminRepos[$executable].'/blob/master/vendor/'.$os.'/'.$executable.'.exe?raw=true';
- }
- $data = @file_get_contents($url, false, null);
- if ($data === false) {
- // there is something wrong with the url, try it without the version info
- $url = preg_replace('/x[68][64]\//', '', $url);
- $data = @file_get_contents($url, false, null);
- if ($data === false) {
- // there is still something wrong with the url if it is win, try with win32
- if (substr($os, 0, 3) == 'win') {
- $url = preg_replace('win/', 'win32/', $url);
- $data = @file_get_contents($url, false, null);
- if ($data === false) {
- // there is nothing more we can do
- $message = sprintf('Could not download the executable %s ', $executable);
-
- return Result::error($this, $message);
- }
- }
- // if it is not windows there is nothing we can do
- $message = sprintf('Could not download the executable %s ', $executable);
-
- return Result::error($this, $message);
- }
- }
- // check if target directory exists
- if (!is_dir($this->executableTargetDir)) {
- mkdir($this->executableTargetDir);
- }
- // save the executable into the target dir
- $path = $this->executableTargetDir.'/'.$executable;
- if (substr($os, 0, 3) == 'win') {
- // if it is win, add a .exe extension
- $path = $this->executableTargetDir.'/'.$executable.'.exe';
- }
- $result = file_put_contents($path, $data);
- if ($result === false) {
- $message = sprintf('Could not copy the executable %s to %s', $executable, $target_dir);
-
- return Result::error($this, $message);
- }
- // set the binary to executable
- chmod($path, 0755);
-
- // if everything successful, store the executable path
- $this->executablePaths[$executable] = $this->executableTargetDir.'/'.$executable;
- // if it is win, add a .exe extension
- if (substr($os, 0, 3) == 'win') {
- $this->executablePaths[$executable] .= '.exe';
- }
-
- $message = sprintf('Executable %s successfully downloaded', $executable);
-
- return Result::success($this, $message);
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function optipng($from, $to)
- {
- $command = sprintf('optipng -quiet -out "%s" -- "%s"', $to, $from);
- if ($from != $to && is_file($to)) {
- // earlier versions of optipng do not overwrite the target without a backup
- // http://sourceforge.net/p/optipng/bugs/37/
- unlink($to);
- }
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function jpegtran($from, $to)
- {
- $command = sprintf('jpegtran -optimize -outfile "%s" "%s"', $to, $from);
-
- return $command;
- }
-
- protected function gifsicle($from, $to)
- {
- $command = sprintf('gifsicle -o "%s" "%s"', $to, $from);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function svgo($from, $to)
- {
- $command = sprintf('svgo "%s" "%s"', $from, $to);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function pngquant($from, $to)
- {
- $command = sprintf('pngquant --force --output "%s" "%s"', $to, $from);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function advpng($from, $to)
- {
- // advpng does not have any output parameters, copy the file and then compress the copy
- $command = sprintf('advpng --recompress --quiet "%s"', $to);
- $this->fs->copy($from, $to, true);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function pngout($from, $to)
- {
- $command = sprintf('pngout -y -q "%s" "%s"', $from, $to);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function zopflipng($from, $to)
- {
- $command = sprintf('zopflipng -y "%s" "%s"', $from, $to);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function pngcrush($from, $to)
- {
- $command = sprintf('pngcrush -q -ow "%s" "%s"', $from, $to);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function jpegoptim($from, $to)
- {
- // jpegoptim only takes the destination directory as an argument
- $command = sprintf('jpegoptim --quiet -o --dest "%s" "%s"', dirname($to), $from);
-
- return $command;
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return string
- */
- protected function jpegRecompress($from, $to)
- {
- $command = sprintf('jpeg-recompress --quiet "%s" "%s"', $from, $to);
-
- return $command;
- }
-
- /**
- * @param string $text
- *
- * @return string
- */
- public static function camelCase($text)
- {
- // non-alpha and non-numeric characters become spaces
- $text = preg_replace('/[^a-z0-9]+/i', ' ', $text);
- $text = trim($text);
- // uppercase the first character of each word
- $text = ucwords($text);
- $text = str_replace(" ", "", $text);
- $text = lcfirst($text);
-
- return $text;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Assets/Less.php b/vendor/consolidation/robo/src/Task/Assets/Less.php
deleted file mode 100644
index 4cfa09780..000000000
--- a/vendor/consolidation/robo/src/Task/Assets/Less.php
+++ /dev/null
@@ -1,108 +0,0 @@
-taskLess([
- * 'less/default.less' => 'css/default.css'
- * ])
- * ->run();
- * ?>
- * ```
- *
- * Use one of both less compilers in your project:
- *
- * ```
- * "leafo/lessphp": "~0.5",
- * "oyejorge/less.php": "~1.5"
- * ```
- *
- * Specify directory (string or array) for less imports lookup:
- *
- * ```php
- * taskLess([
- * 'less/default.less' => 'css/default.css'
- * ])
- * ->importDir('less')
- * ->compiler('lessphp')
- * ->run();
- * ?>
- * ```
- *
- * You can implement additional compilers by extending this task and adding a
- * method named after them and overloading the lessCompilers() method to
- * inject the name there.
- */
-class Less extends CssPreprocessor
-{
- const FORMAT_NAME = 'less';
-
- /**
- * @var string[]
- */
- protected $compilers = [
- 'less', // https://github.com/oyejorge/less.php
- 'lessphp', //https://github.com/leafo/lessphp
- ];
-
- /**
- * lessphp compiler
- * @link https://github.com/leafo/lessphp
- *
- * @param string $file
- *
- * @return string
- */
- protected function lessphp($file)
- {
- if (!class_exists('\lessc')) {
- return Result::errorMissingPackage($this, 'lessc', 'leafo/lessphp');
- }
-
- $lessCode = file_get_contents($file);
-
- $less = new \lessc();
- if (isset($this->compilerOptions['importDirs'])) {
- $less->setImportDir($this->compilerOptions['importDirs']);
- }
-
- return $less->compile($lessCode);
- }
-
- /**
- * less compiler
- * @link https://github.com/oyejorge/less.php
- *
- * @param string $file
- *
- * @return string
- */
- protected function less($file)
- {
- if (!class_exists('\Less_Parser')) {
- return Result::errorMissingPackage($this, 'Less_Parser', 'oyejorge/less.php');
- }
-
- $lessCode = file_get_contents($file);
-
- $parser = new \Less_Parser();
- $parser->SetOptions($this->compilerOptions);
- if (isset($this->compilerOptions['importDirs'])) {
- $importDirs = [];
- foreach ($this->compilerOptions['importDirs'] as $dir) {
- $importDirs[$dir] = $dir;
- }
- $parser->SetImportDirs($importDirs);
- }
-
- $parser->parse($lessCode);
-
- return $parser->getCss();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Assets/Minify.php b/vendor/consolidation/robo/src/Task/Assets/Minify.php
deleted file mode 100644
index 3187714ec..000000000
--- a/vendor/consolidation/robo/src/Task/Assets/Minify.php
+++ /dev/null
@@ -1,297 +0,0 @@
-taskMinify( 'web/assets/theme.css' )
- * ->run()
- * ?>
- * ```
- * Please install additional dependencies to use:
- *
- * ```
- * "patchwork/jsqueeze": "~1.0",
- * "natxet/CssMin": "~3.0"
- * ```
- */
-class Minify extends BaseTask
-{
- /**
- * @var array
- */
- protected $types = ['css', 'js'];
-
- /**
- * @var string
- */
- protected $text;
-
- /**
- * @var string
- */
- protected $dst;
-
- /**
- * @var string
- */
- protected $type;
-
- /**
- * @var array
- */
- protected $squeezeOptions = [
- 'singleLine' => true,
- 'keepImportantComments' => true,
- 'specialVarRx' => false,
- ];
-
- /**
- * Constructor. Accepts asset file path or string source.
- *
- * @param string $input
- */
- public function __construct($input)
- {
- if (file_exists($input)) {
- $this->fromFile($input);
- return;
- }
-
- $this->fromText($input);
- }
-
- /**
- * Sets destination. Tries to guess type from it.
- *
- * @param string $dst
- *
- * @return $this
- */
- public function to($dst)
- {
- $this->dst = $dst;
-
- if (!empty($this->dst) && empty($this->type)) {
- $this->type($this->getExtension($this->dst));
- }
-
- return $this;
- }
-
- /**
- * Sets type with validation.
- *
- * @param string $type css|js
- *
- * @return $this
- */
- public function type($type)
- {
- $type = strtolower($type);
-
- if (in_array($type, $this->types)) {
- $this->type = $type;
- }
-
- return $this;
- }
-
- /**
- * Sets text from string source.
- *
- * @param string $text
- *
- * @return $this
- */
- protected function fromText($text)
- {
- $this->text = (string)$text;
- unset($this->type);
-
- return $this;
- }
-
- /**
- * Sets text from asset file path. Tries to guess type and set default destination.
- *
- * @param string $path
- *
- * @return $this
- */
- protected function fromFile($path)
- {
- $this->text = file_get_contents($path);
-
- unset($this->type);
- $this->type($this->getExtension($path));
-
- if (empty($this->dst) && !empty($this->type)) {
- $ext_length = strlen($this->type) + 1;
- $this->dst = substr($path, 0, -$ext_length) . '.min.' . $this->type;
- }
-
- return $this;
- }
-
- /**
- * Gets file extension from path.
- *
- * @param string $path
- *
- * @return string
- */
- protected function getExtension($path)
- {
- return pathinfo($path, PATHINFO_EXTENSION);
- }
-
- /**
- * Minifies and returns text.
- *
- * @return string|bool
- */
- protected function getMinifiedText()
- {
- switch ($this->type) {
- case 'css':
- if (!class_exists('\CssMin')) {
- return Result::errorMissingPackage($this, 'CssMin', 'natxet/CssMin');
- }
-
- return \CssMin::minify($this->text);
- break;
-
- case 'js':
- if (!class_exists('\JSqueeze') && !class_exists('\Patchwork\JSqueeze')) {
- return Result::errorMissingPackage($this, 'Patchwork\JSqueeze', 'patchwork/jsqueeze');
- }
-
- if (class_exists('\JSqueeze')) {
- $jsqueeze = new \JSqueeze();
- } else {
- $jsqueeze = new \Patchwork\JSqueeze();
- }
-
- return $jsqueeze->squeeze(
- $this->text,
- $this->squeezeOptions['singleLine'],
- $this->squeezeOptions['keepImportantComments'],
- $this->squeezeOptions['specialVarRx']
- );
- break;
- }
-
- return false;
- }
-
- /**
- * Single line option for the JS minimisation.
- *
- * @param bool $singleLine
- *
- * @return $this
- */
- public function singleLine($singleLine)
- {
- $this->squeezeOptions['singleLine'] = (bool)$singleLine;
- return $this;
- }
-
- /**
- * keepImportantComments option for the JS minimisation.
- *
- * @param bool $keepImportantComments
- *
- * @return $this
- */
- public function keepImportantComments($keepImportantComments)
- {
- $this->squeezeOptions['keepImportantComments'] = (bool)$keepImportantComments;
- return $this;
- }
-
- /**
- * specialVarRx option for the JS minimisation.
- *
- * @param bool $specialVarRx
- *
- * @return $this ;
- */
- public function specialVarRx($specialVarRx)
- {
- $this->squeezeOptions['specialVarRx'] = (bool)$specialVarRx;
- return $this;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return (string) $this->getMinifiedText();
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (empty($this->type)) {
- return Result::error($this, 'Unknown asset type.');
- }
-
- if (empty($this->dst)) {
- return Result::error($this, 'Unknown file destination.');
- }
-
- if (file_exists($this->dst) && !is_writable($this->dst)) {
- return Result::error($this, 'Destination already exists and cannot be overwritten.');
- }
-
- $size_before = strlen($this->text);
- $minified = $this->getMinifiedText();
-
- if ($minified instanceof Result) {
- return $minified;
- } elseif (false === $minified) {
- return Result::error($this, 'Minification failed.');
- }
-
- $size_after = strlen($minified);
-
- // Minification did not reduce file size, so use original file.
- if ($size_after > $size_before) {
- $minified = $this->text;
- $size_after = $size_before;
- }
-
- $dst = $this->dst . '.part';
- $write_result = file_put_contents($dst, $minified);
-
- if (false === $write_result) {
- @unlink($dst);
- return Result::error($this, 'File write failed.');
- }
- // Cannot be cross-volume; should always succeed.
- @rename($dst, $this->dst);
- if ($size_before === 0) {
- $minified_percent = 0;
- } else {
- $minified_percent = number_format(100 - ($size_after / $size_before * 100), 1);
- }
- $this->printTaskSuccess('Wrote {filepath}', ['filepath' => $this->dst]);
- $context = [
- 'bytes' => $this->formatBytes($size_after),
- 'reduction' => $this->formatBytes(($size_before - $size_after)),
- 'percentage' => $minified_percent,
- ];
- $this->printTaskSuccess('Wrote {bytes} (reduced by {reduction} / {percentage})', $context);
- return Result::success($this, 'Asset minified.');
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Assets/Scss.php b/vendor/consolidation/robo/src/Task/Assets/Scss.php
deleted file mode 100644
index ffd39345a..000000000
--- a/vendor/consolidation/robo/src/Task/Assets/Scss.php
+++ /dev/null
@@ -1,93 +0,0 @@
-taskScss([
- * 'scss/default.scss' => 'css/default.css'
- * ])
- * ->importDir('assets/styles')
- * ->run();
- * ?>
- * ```
- *
- * Use the following scss compiler in your project:
- *
- * ```
- * "leafo/scssphp": "~0.1",
- * ```
- *
- * You can implement additional compilers by extending this task and adding a
- * method named after them and overloading the scssCompilers() method to
- * inject the name there.
- */
-class Scss extends CssPreprocessor
-{
- const FORMAT_NAME = 'scss';
-
- /**
- * @var string[]
- */
- protected $compilers = [
- 'scssphp', // https://github.com/leafo/scssphp
- ];
-
- /**
- * scssphp compiler
- * @link https://github.com/leafo/scssphp
- *
- * @param string $file
- *
- * @return string
- */
- protected function scssphp($file)
- {
- if (!class_exists('\Leafo\ScssPhp\Compiler')) {
- return Result::errorMissingPackage($this, 'scssphp', 'leafo/scssphp');
- }
-
- $scssCode = file_get_contents($file);
- $scss = new \Leafo\ScssPhp\Compiler();
-
- // set options for the scssphp compiler
- if (isset($this->compilerOptions['importDirs'])) {
- $scss->setImportPaths($this->compilerOptions['importDirs']);
- }
-
- if (isset($this->compilerOptions['formatter'])) {
- $scss->setFormatter($this->compilerOptions['formatter']);
- }
-
- return $scss->compile($scssCode);
- }
-
- /**
- * Sets the formatter for scssphp
- *
- * The method setFormatter($formatterName) sets the current formatter to $formatterName,
- * the name of a class as a string that implements the formatting interface. See the source
- * for Leafo\ScssPhp\Formatter\Expanded for an example.
- *
- * Five formatters are included with leafo/scssphp:
- * - Leafo\ScssPhp\Formatter\Expanded
- * - Leafo\ScssPhp\Formatter\Nested (default)
- * - Leafo\ScssPhp\Formatter\Compressed
- * - Leafo\ScssPhp\Formatter\Compact
- * - Leafo\ScssPhp\Formatter\Crunched
- *
- * @link http://leafo.github.io/scssphp/docs/#output-formatting
- *
- * @param string $formatterName
- *
- * @return $this
- */
- public function setFormatter($formatterName)
- {
- return parent::setFormatter($formatterName);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Assets/loadTasks.php b/vendor/consolidation/robo/src/Task/Assets/loadTasks.php
deleted file mode 100644
index 12192dd80..000000000
--- a/vendor/consolidation/robo/src/Task/Assets/loadTasks.php
+++ /dev/null
@@ -1,45 +0,0 @@
-task(Minify::class, $input);
- }
-
- /**
- * @param string|string[] $input
- *
- * @return \Robo\Task\Assets\ImageMinify
- */
- protected function taskImageMinify($input)
- {
- return $this->task(ImageMinify::class, $input);
- }
-
- /**
- * @param array $input
- *
- * @return \Robo\Task\Assets\Less
- */
- protected function taskLess($input)
- {
- return $this->task(Less::class, $input);
- }
-
- /**
- * @param array $input
- *
- * @return \Robo\Task\Assets\Scss
- */
- protected function taskScss($input)
- {
- return $this->task(Scss::class, $input);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Base/Exec.php b/vendor/consolidation/robo/src/Task/Base/Exec.php
deleted file mode 100644
index 057c86a9b..000000000
--- a/vendor/consolidation/robo/src/Task/Base/Exec.php
+++ /dev/null
@@ -1,127 +0,0 @@
-taskExec('compass')->arg('watch')->run();
- * // or use shortcut
- * $this->_exec('compass watch');
- *
- * $this->taskExec('compass watch')->background()->run();
- *
- * if ($this->taskExec('phpunit .')->run()->wasSuccessful()) {
- * $this->say('tests passed');
- * }
- *
- * ?>
- * ```
- */
-class Exec extends BaseTask implements CommandInterface, PrintedInterface, SimulatedInterface
-{
- use \Robo\Common\CommandReceiver;
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var static[]
- */
- protected static $instances = [];
-
- /**
- * @var string|\Robo\Contract\CommandInterface
- */
- protected $command;
-
- /**
- * @param string|\Robo\Contract\CommandInterface $command
- */
- public function __construct($command)
- {
- $this->command = $this->receiveCommand($command);
- }
-
- /**
- *
- */
- public function __destruct()
- {
- $this->stop();
- }
-
- /**
- * Executes command in background mode (asynchronously)
- *
- * @return $this
- */
- public function background($arg = true)
- {
- self::$instances[] = $this;
- $this->background = $arg;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getCommandDescription()
- {
- return $this->getCommand();
- }
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return trim($this->command . $this->arguments);
- }
-
- /**
- * {@inheritdoc}
- */
- public function simulate($context)
- {
- $this->printAction($context);
- }
-
- public static function stopRunningJobs()
- {
- foreach (self::$instances as $instance) {
- if ($instance) {
- unset($instance);
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->hideProgressIndicator();
- // TODO: Symfony 4 requires that we supply the working directory.
- $result_data = $this->execute(new Process($this->getCommand(), getcwd()));
- return new Result(
- $this,
- $result_data->getExitCode(),
- $result_data->getMessage(),
- $result_data->getData()
- );
- $this->showProgressIndicator();
- }
-}
-
-if (function_exists('pcntl_signal')) {
- pcntl_signal(SIGTERM, ['Robo\Task\Base\Exec', 'stopRunningJobs']);
-}
-
-register_shutdown_function(['Robo\Task\Base\Exec', 'stopRunningJobs']);
diff --git a/vendor/consolidation/robo/src/Task/Base/ExecStack.php b/vendor/consolidation/robo/src/Task/Base/ExecStack.php
deleted file mode 100644
index 51b39ef1d..000000000
--- a/vendor/consolidation/robo/src/Task/Base/ExecStack.php
+++ /dev/null
@@ -1,23 +0,0 @@
-taskExecStack()
- * ->stopOnFail()
- * ->exec('mkdir site')
- * ->exec('cd site')
- * ->run();
- *
- * ?>
- * ```
- */
-class ExecStack extends CommandStack
-{
-}
diff --git a/vendor/consolidation/robo/src/Task/Base/ParallelExec.php b/vendor/consolidation/robo/src/Task/Base/ParallelExec.php
deleted file mode 100644
index c98b78419..000000000
--- a/vendor/consolidation/robo/src/Task/Base/ParallelExec.php
+++ /dev/null
@@ -1,199 +0,0 @@
-taskParallelExec()
- * ->process('php ~/demos/script.php hey')
- * ->process('php ~/demos/script.php hoy')
- * ->process('php ~/demos/script.php gou')
- * ->run();
- * ?>
- * ```
- */
-class ParallelExec extends BaseTask implements CommandInterface, PrintedInterface
-{
- use \Robo\Common\CommandReceiver;
-
- /**
- * @var Process[]
- */
- protected $processes = [];
-
- /**
- * @var null|int
- */
- protected $timeout = null;
-
- /**
- * @var null|int
- */
- protected $idleTimeout = null;
-
- /**
- * @var null|int
- */
- protected $waitInterval = 0;
-
- /**
- * @var bool
- */
- protected $isPrinted = false;
-
- /**
- * {@inheritdoc}
- */
- public function getPrinted()
- {
- return $this->isPrinted;
- }
-
- /**
- * @param bool $isPrinted
- *
- * @return $this
- */
- public function printed($isPrinted = true)
- {
- $this->isPrinted = $isPrinted;
- return $this;
- }
-
- /**
- * @param string|\Robo\Contract\CommandInterface $command
- *
- * @return $this
- */
- public function process($command)
- {
- // TODO: Symfony 4 requires that we supply the working directory.
- $this->processes[] = new Process($this->receiveCommand($command), getcwd());
- return $this;
- }
-
- /**
- * Stops process if it runs longer then `$timeout` (seconds).
- *
- * @param int $timeout
- *
- * @return $this
- */
- public function timeout($timeout)
- {
- $this->timeout = $timeout;
- return $this;
- }
-
- /**
- * Stops process if it does not output for time longer then `$timeout` (seconds).
- *
- * @param int $idleTimeout
- *
- * @return $this
- */
- public function idleTimeout($idleTimeout)
- {
- $this->idleTimeout = $idleTimeout;
- return $this;
- }
-
- /**
- * Parallel processing will wait `$waitInterval` seconds after launching each process and before
- * the next one.
- *
- * @param int $waitInterval
- *
- * @return $this
- */
- public function waitInterval($waitInterval)
- {
- $this->waitInterval = $waitInterval;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return implode(' && ', $this->processes);
- }
-
- /**
- * @return int
- */
- public function progressIndicatorSteps()
- {
- return count($this->processes);
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->startProgressIndicator();
- $running = [];
- $queue = $this->processes;
- $nextTime = time();
- while (true) {
- if (($nextTime <= time()) && !empty($queue)) {
- $process = array_shift($queue);
- $process->setIdleTimeout($this->idleTimeout);
- $process->setTimeout($this->timeout);
- $process->start();
- $this->printTaskInfo($process->getCommandLine());
- $running[] = $process;
- $nextTime = time() + $this->waitInterval;
- }
- foreach ($running as $k => $process) {
- try {
- $process->checkTimeout();
- } catch (ProcessTimedOutException $e) {
- $this->printTaskWarning("Process timed out for {command}", ['command' => $process->getCommandLine(), '_style' => ['command' => 'fg=white;bg=magenta']]);
- }
- if (!$process->isRunning()) {
- $this->advanceProgressIndicator();
- if ($this->isPrinted) {
- $this->printTaskInfo("Output for {command}:\n\n{output}", ['command' => $process->getCommandLine(), 'output' => $process->getOutput(), '_style' => ['command' => 'fg=white;bg=magenta']]);
- $errorOutput = $process->getErrorOutput();
- if ($errorOutput) {
- $this->printTaskError(rtrim($errorOutput));
- }
- }
- unset($running[$k]);
- }
- }
- if (empty($running) && empty($queue)) {
- break;
- }
- usleep(1000);
- }
- $this->stopProgressIndicator();
-
- $errorMessage = '';
- $exitCode = 0;
- foreach ($this->processes as $p) {
- if ($p->getExitCode() === 0) {
- continue;
- }
- $errorMessage .= "'" . $p->getCommandLine() . "' exited with code ". $p->getExitCode()." \n";
- $exitCode = max($exitCode, $p->getExitCode());
- }
- if (!$errorMessage) {
- $this->printTaskSuccess('{process-count} processes finished running', ['process-count' => count($this->processes)]);
- }
-
- return new Result($this, $exitCode, $errorMessage, ['time' => $this->getExecutionTime()]);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Base/SymfonyCommand.php b/vendor/consolidation/robo/src/Task/Base/SymfonyCommand.php
deleted file mode 100644
index 708ea8451..000000000
--- a/vendor/consolidation/robo/src/Task/Base/SymfonyCommand.php
+++ /dev/null
@@ -1,75 +0,0 @@
-taskSymfonyCommand(new \Codeception\Command\Run('run'))
- * ->arg('suite','acceptance')
- * ->opt('debug')
- * ->run();
- *
- * // Artisan Command
- * $this->taskSymfonyCommand(new ModelGeneratorCommand())
- * ->arg('name', 'User')
- * ->run();
- * ?>
- * ```
- */
-class SymfonyCommand extends BaseTask
-{
- /**
- * @var \Symfony\Component\Console\Command\Command
- */
- protected $command;
-
- /**
- * @var string[]
- */
- protected $input;
-
- public function __construct(Command $command)
- {
- $this->command = $command;
- $this->input = [];
- }
-
- /**
- * @param string $arg
- * @param string $value
- *
- * @return $this
- */
- public function arg($arg, $value)
- {
- $this->input[$arg] = $value;
- return $this;
- }
-
- public function opt($option, $value = null)
- {
- $this->input["--$option"] = $value;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Running command {command}', ['command' => $this->command->getName()]);
- return new Result(
- $this,
- $this->command->run(new ArrayInput($this->input), Robo::output())
- );
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Base/Watch.php b/vendor/consolidation/robo/src/Task/Base/Watch.php
deleted file mode 100644
index 3b2152d96..000000000
--- a/vendor/consolidation/robo/src/Task/Base/Watch.php
+++ /dev/null
@@ -1,106 +0,0 @@
-taskWatch()
- * ->monitor(
- * 'composer.json',
- * function() {
- * $this->taskComposerUpdate()->run();
- * }
- * )->monitor(
- * 'src',
- * function() {
- * $this->taskExec('phpunit')->run();
- * },
- * \Lurker\Event\FilesystemEvent::ALL
- * )->monitor(
- * 'migrations',
- * function() {
- * //do something
- * },
- * [
- * \Lurker\Event\FilesystemEvent::CREATE,
- * \Lurker\Event\FilesystemEvent::DELETE
- * ]
- * )->run();
- * ?>
- * ```
- */
-class Watch extends BaseTask
-{
- /**
- * @var \Closure
- */
- protected $closure;
-
- /**
- * @var array
- */
- protected $monitor = [];
-
- /**
- * @var object
- */
- protected $bindTo;
-
- /**
- * @param $bindTo
- */
- public function __construct($bindTo)
- {
- $this->bindTo = $bindTo;
- }
-
- /**
- * @param string|string[] $paths
- * @param \Closure $callable
- * @param int|int[] $events
- *
- * @return $this
- */
- public function monitor($paths, \Closure $callable, $events = 2)
- {
- $this->monitor[] = [(array)$paths, $callable, (array)$events];
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!class_exists('Lurker\\ResourceWatcher')) {
- return Result::errorMissingPackage($this, 'ResourceWatcher', 'henrikbjorn/lurker');
- }
-
- $watcher = new ResourceWatcher();
-
- foreach ($this->monitor as $k => $monitor) {
- /** @var \Closure $closure */
- $closure = $monitor[1];
- $closure->bindTo($this->bindTo);
- foreach ($monitor[0] as $i => $dir) {
- foreach ($monitor[2] as $j => $event) {
- $watcher->track("fs.$k.$i.$j", $dir, $event);
- $watcher->addListener("fs.$k.$i.$j", $closure);
- }
- $this->printTaskInfo('Watching {dir} for changes...', ['dir' => $dir]);
- }
- }
-
- $watcher->start();
- return Result::success($this);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Base/loadShortcuts.php b/vendor/consolidation/robo/src/Task/Base/loadShortcuts.php
deleted file mode 100644
index dba0af661..000000000
--- a/vendor/consolidation/robo/src/Task/Base/loadShortcuts.php
+++ /dev/null
@@ -1,17 +0,0 @@
-taskExec($command)->run();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Base/loadTasks.php b/vendor/consolidation/robo/src/Task/Base/loadTasks.php
deleted file mode 100644
index ab5301bbe..000000000
--- a/vendor/consolidation/robo/src/Task/Base/loadTasks.php
+++ /dev/null
@@ -1,48 +0,0 @@
-task(Exec::class, $command);
- }
-
- /**
- * @return ExecStack
- */
- protected function taskExecStack()
- {
- return $this->task(ExecStack::class);
- }
-
- /**
- * @return ParallelExec
- */
- protected function taskParallelExec()
- {
- return $this->task(ParallelExec::class);
- }
-
- /**
- * @param $command
- * @return SymfonyCommand
- */
- protected function taskSymfonyCommand($command)
- {
- return $this->task(SymfonyCommand::class, $command);
- }
-
- /**
- * @return Watch
- */
- protected function taskWatch()
- {
- return $this->task(Watch::class, $this);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/BaseTask.php b/vendor/consolidation/robo/src/Task/BaseTask.php
deleted file mode 100644
index 66155c093..000000000
--- a/vendor/consolidation/robo/src/Task/BaseTask.php
+++ /dev/null
@@ -1,60 +0,0 @@
-logger) {
- $child->setLogger($this->logger);
- }
- if ($child instanceof ProgressIndicatorAwareInterface && $this->progressIndicator) {
- $child->setProgressIndicator($this->progressIndicator);
- }
- if ($child instanceof ConfigAwareInterface && $this->getConfig()) {
- $child->setConfig($this->getConfig());
- }
- if ($child instanceof VerbosityThresholdInterface && $this->outputAdapter()) {
- $child->setOutputAdapter($this->outputAdapter());
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Bower/Base.php b/vendor/consolidation/robo/src/Task/Bower/Base.php
deleted file mode 100644
index 9bc614c63..000000000
--- a/vendor/consolidation/robo/src/Task/Bower/Base.php
+++ /dev/null
@@ -1,88 +0,0 @@
-option('allow-root');
- return $this;
- }
-
- /**
- * adds `force-latest` option to bower
- *
- * @return $this
- */
- public function forceLatest()
- {
- $this->option('force-latest');
- return $this;
- }
-
- /**
- * adds `production` option to bower
- *
- * @return $this
- */
- public function noDev()
- {
- $this->option('production');
- return $this;
- }
-
- /**
- * adds `offline` option to bower
- *
- * @return $this
- */
- public function offline()
- {
- $this->option('offline');
- return $this;
- }
-
- /**
- * Base constructor.
- *
- * @param null|string $pathToBower
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($pathToBower = null)
- {
- $this->command = $pathToBower;
- if (!$this->command) {
- $this->command = $this->findExecutable('bower');
- }
- if (!$this->command) {
- throw new TaskException(__CLASS__, "Bower executable not found.");
- }
- }
-
- /**
- * @return string
- */
- public function getCommand()
- {
- return "{$this->command} {$this->action}{$this->arguments}";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Bower/Install.php b/vendor/consolidation/robo/src/Task/Bower/Install.php
deleted file mode 100644
index c3c0ce755..000000000
--- a/vendor/consolidation/robo/src/Task/Bower/Install.php
+++ /dev/null
@@ -1,36 +0,0 @@
-taskBowerInstall()->run();
- *
- * // prefer dist with custom path
- * $this->taskBowerInstall('path/to/my/bower')
- * ->noDev()
- * ->run();
- * ?>
- * ```
- */
-class Install extends Base implements CommandInterface
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'install';
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Install Bower packages: {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Bower/Update.php b/vendor/consolidation/robo/src/Task/Bower/Update.php
deleted file mode 100644
index f0dfa94e3..000000000
--- a/vendor/consolidation/robo/src/Task/Bower/Update.php
+++ /dev/null
@@ -1,34 +0,0 @@
-taskBowerUpdate->run();
- *
- * // prefer dist with custom path
- * $this->taskBowerUpdate('path/to/my/bower')
- * ->noDev()
- * ->run();
- * ?>
- * ```
- */
-class Update extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'update';
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Update Bower packages: {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Bower/loadTasks.php b/vendor/consolidation/robo/src/Task/Bower/loadTasks.php
deleted file mode 100644
index 6e33f8acf..000000000
--- a/vendor/consolidation/robo/src/Task/Bower/loadTasks.php
+++ /dev/null
@@ -1,25 +0,0 @@
-task(Install::class, $pathToBower);
- }
-
- /**
- * @param null|string $pathToBower
- *
- * @return Update
- */
- protected function taskBowerUpdate($pathToBower = null)
- {
- return $this->task(Update::class, $pathToBower);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/CommandStack.php b/vendor/consolidation/robo/src/Task/CommandStack.php
deleted file mode 100644
index 43fbd7ccf..000000000
--- a/vendor/consolidation/robo/src/Task/CommandStack.php
+++ /dev/null
@@ -1,145 +0,0 @@
-exec as $command) {
- $commands[] = $this->receiveCommand($command);
- }
-
- return implode(' && ', $commands);
- }
-
- /**
- * @param string $executable
- *
- * @return $this
- */
- public function executable($executable)
- {
- $this->executable = $executable;
- return $this;
- }
-
- /**
- * @param string|string[]|CommandInterface $command
- *
- * @return $this
- */
- public function exec($command)
- {
- if (is_array($command)) {
- $command = implode(' ', array_filter($command));
- }
-
- if (is_string($command)) {
- $command = $this->executable . ' ' . $this->stripExecutableFromCommand($command);
- $command = trim($command);
- }
-
- $this->exec[] = $command;
-
- return $this;
- }
-
- /**
- * @param bool $stopOnFail
- *
- * @return $this
- */
- public function stopOnFail($stopOnFail = true)
- {
- $this->stopOnFail = $stopOnFail;
- return $this;
- }
-
- public function result($result)
- {
- $this->result = $result;
- return $this;
- }
-
- /**
- * @param string $command
- *
- * @return string
- */
- protected function stripExecutableFromCommand($command)
- {
- $command = trim($command);
- $executable = $this->executable . ' ';
- if (strpos($command, $executable) === 0) {
- $command = substr($command, strlen($executable));
- }
- return $command;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (empty($this->exec)) {
- throw new TaskException($this, 'You must add at least one command');
- }
- // If 'stopOnFail' is not set, or if there is only one command to run,
- // then execute the single command to run.
- if (!$this->stopOnFail || (count($this->exec) == 1)) {
- $this->printTaskInfo('{command}', ['command' => $this->getCommand()]);
- return $this->executeCommand($this->getCommand());
- }
-
- // When executing multiple commands in 'stopOnFail' mode, run them
- // one at a time so that the result will have the exact command
- // that failed available to the caller. This is at the expense of
- // losing the output from all successful commands.
- $data = [];
- $message = '';
- $result = null;
- foreach ($this->exec as $command) {
- $this->printTaskInfo("Executing {command}", ['command' => $command]);
- $result = $this->executeCommand($command);
- $result->accumulateExecutionTime($data);
- $message = $result->accumulateMessage($message);
- $data = $result->mergeData($data);
- if (!$result->wasSuccessful()) {
- return $result;
- }
- }
-
- return $result;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Base.php b/vendor/consolidation/robo/src/Task/Composer/Base.php
deleted file mode 100644
index de3fe2174..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Base.php
+++ /dev/null
@@ -1,248 +0,0 @@
-command = $pathToComposer;
- if (!$this->command) {
- $this->command = $this->findExecutablePhar('composer');
- }
- if (!$this->command) {
- throw new TaskException(__CLASS__, "Neither local composer.phar nor global composer installation could be found.");
- }
- }
-
- /**
- * adds `prefer-dist` option to composer
- *
- * @return $this
- */
- public function preferDist($preferDist = true)
- {
- if (!$preferDist) {
- return $this->preferSource();
- }
- $this->prefer = '--prefer-dist';
- return $this;
- }
-
- /**
- * adds `prefer-source` option to composer
- *
- * @return $this
- */
- public function preferSource()
- {
- $this->prefer = '--prefer-source';
- return $this;
- }
-
- /**
- * adds `dev` option to composer
- *
- * @return $this
- */
- public function dev($dev = true)
- {
- if (!$dev) {
- return $this->noDev();
- }
- $this->dev = '--dev';
- return $this;
- }
-
- /**
- * adds `no-dev` option to composer
- *
- * @return $this
- */
- public function noDev()
- {
- $this->dev = '--no-dev';
- return $this;
- }
-
- /**
- * adds `ansi` option to composer
- *
- * @return $this
- */
- public function ansi($ansi = true)
- {
- if (!$ansi) {
- return $this->noAnsi();
- }
- $this->ansi = '--ansi';
- return $this;
- }
-
- /**
- * adds `no-ansi` option to composer
- *
- * @return $this
- */
- public function noAnsi()
- {
- $this->ansi = '--no-ansi';
- return $this;
- }
-
- public function interaction($interaction = true)
- {
- if (!$interaction) {
- return $this->noInteraction();
- }
- return $this;
- }
-
- /**
- * adds `no-interaction` option to composer
- *
- * @return $this
- */
- public function noInteraction()
- {
- $this->nointeraction = '--no-interaction';
- return $this;
- }
-
- /**
- * adds `optimize-autoloader` option to composer
- *
- * @return $this
- */
- public function optimizeAutoloader($optimize = true)
- {
- if ($optimize) {
- $this->option('--optimize-autoloader');
- }
- return $this;
- }
-
- /**
- * adds `ignore-platform-reqs` option to composer
- *
- * @return $this
- */
- public function ignorePlatformRequirements($ignore = true)
- {
- $this->option('--ignore-platform-reqs');
- return $this;
- }
-
- /**
- * disable plugins
- *
- * @return $this
- */
- public function disablePlugins($disable = true)
- {
- if ($disable) {
- $this->option('--no-plugins');
- }
- return $this;
- }
-
- /**
- * skip scripts
- *
- * @return $this
- */
- public function noScripts($disable = true)
- {
- if ($disable) {
- $this->option('--no-scripts');
- }
- return $this;
- }
-
- /**
- * adds `--working-dir $dir` option to composer
- *
- * @return $this
- */
- public function workingDir($dir)
- {
- $this->option("--working-dir", $dir);
- return $this;
- }
-
- /**
- * Copy class fields into command options as directed.
- */
- public function buildCommand()
- {
- if (!isset($this->ansi) && $this->getConfig()->get(\Robo\Config\Config::DECORATED)) {
- $this->ansi();
- }
- if (!isset($this->nointeraction) && !$this->getConfig()->get(\Robo\Config\Config::INTERACTIVE)) {
- $this->noInteraction();
- }
- $this->option($this->prefer)
- ->option($this->dev)
- ->option($this->nointeraction)
- ->option($this->ansi);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- if (!$this->built) {
- $this->buildCommand();
- $this->built = true;
- }
- return "{$this->command} {$this->action}{$this->arguments}";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Config.php b/vendor/consolidation/robo/src/Task/Composer/Config.php
deleted file mode 100644
index b5a6bbff9..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Config.php
+++ /dev/null
@@ -1,93 +0,0 @@
-taskComposerConfig()->set('bin-dir', 'bin/')->run();
- * ?>
- * ```
- */
-class Config extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'config';
-
- /**
- * Set a configuration value
- * @return $this
- */
- public function set($key, $value)
- {
- $this->arg($key);
- $this->arg($value);
- return $this;
- }
-
- /**
- * Operate on the global repository
- * @return $this
- */
- public function useGlobal($useGlobal = true)
- {
- if ($useGlobal) {
- $this->option('global');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function repository($id, $uri, $repoType = 'vcs')
- {
- $this->arg("repositories.$id");
- $this->arg($repoType);
- $this->arg($uri);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function removeRepository($id)
- {
- $this->option('unset', "repositories.$id");
- return $this;
- }
-
- /**
- * @return $this
- */
- public function disableRepository($id)
- {
- $this->arg("repositories.$id");
- $this->arg('false');
- return $this;
- }
-
- /**
- * @return $this
- */
- public function enableRepository($id)
- {
- $this->arg("repositories.$id");
- $this->arg('true');
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Configuring composer.json: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/CreateProject.php b/vendor/consolidation/robo/src/Task/Composer/CreateProject.php
deleted file mode 100644
index 5f979a646..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/CreateProject.php
+++ /dev/null
@@ -1,112 +0,0 @@
-taskComposerCreateProject()->source('foo/bar')->target('myBar')->run();
- * ?>
- * ```
- */
-class CreateProject extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'create-project';
-
- protected $source;
- protected $target = '';
- protected $version = '';
-
- /**
- * @return $this
- */
- public function source($source)
- {
- $this->source = $source;
- return $this;
- }
-
- /**
- * @return $this
- */
- public function target($target)
- {
- $this->target = $target;
- return $this;
- }
-
- /**
- * @return $this
- */
- public function version($version)
- {
- $this->version = $version;
- return $this;
- }
-
- public function keepVcs($keep = true)
- {
- if ($keep) {
- $this->option('--keep-vcs');
- }
- return $this;
- }
-
- public function noInstall($noInstall = true)
- {
- if ($noInstall) {
- $this->option('--no-install');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function repository($repository)
- {
- if (!empty($repository)) {
- $this->option('repository', $repository);
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function stability($stability)
- {
- if (!empty($stability)) {
- $this->option('stability', $stability);
- }
- return $this;
- }
-
- public function buildCommand()
- {
- $this->arg($this->source);
- if (!empty($this->target)) {
- $this->arg($this->target);
- }
- if (!empty($this->version)) {
- $this->arg($this->version);
- }
-
- return parent::buildCommand();
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Creating project: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/DumpAutoload.php b/vendor/consolidation/robo/src/Task/Composer/DumpAutoload.php
deleted file mode 100644
index 55b1ea00e..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/DumpAutoload.php
+++ /dev/null
@@ -1,62 +0,0 @@
-taskComposerDumpAutoload()->run();
- *
- * // dump auto loader with custom path
- * $this->taskComposerDumpAutoload('path/to/my/composer.phar')
- * ->preferDist()
- * ->run();
- *
- * // optimize autoloader dump with custom path
- * $this->taskComposerDumpAutoload('path/to/my/composer.phar')
- * ->optimize()
- * ->run();
- *
- * // optimize autoloader dump with custom path and no dev
- * $this->taskComposerDumpAutoload('path/to/my/composer.phar')
- * ->optimize()
- * ->noDev()
- * ->run();
- * ?>
- * ```
- */
-class DumpAutoload extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'dump-autoload';
-
- /**
- * @var string
- */
- protected $optimize;
-
- /**
- * @return $this
- */
- public function optimize($optimize = true)
- {
- if ($optimize) {
- $this->option("--optimize");
- }
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Dumping Autoloader: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Init.php b/vendor/consolidation/robo/src/Task/Composer/Init.php
deleted file mode 100644
index c841299dd..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Init.php
+++ /dev/null
@@ -1,115 +0,0 @@
-taskComposerInit()->run();
- * ?>
- * ```
- */
-class Init extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'init';
-
- /**
- * @return $this
- */
- public function projectName($projectName)
- {
- $this->option('name', $projectName);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function description($description)
- {
- $this->option('description', $description);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function author($author)
- {
- $this->option('author', $author);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function projectType($type)
- {
- $this->option('type', $type);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function homepage($homepage)
- {
- $this->option('homepage', $homepage);
- return $this;
- }
-
- /**
- * 'require' is a keyword, so it cannot be a method name.
- * @return $this
- */
- public function dependency($project, $version = null)
- {
- if (isset($version)) {
- $project .= ":$version";
- }
- $this->option('require', $project);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function stability($stability)
- {
- $this->option('stability', $stability);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function license($license)
- {
- $this->option('license', $license);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function repository($repository)
- {
- $this->option('repository', $repository);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Creating composer.json: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Install.php b/vendor/consolidation/robo/src/Task/Composer/Install.php
deleted file mode 100644
index 76cb9861f..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Install.php
+++ /dev/null
@@ -1,40 +0,0 @@
-taskComposerInstall()->run();
- *
- * // prefer dist with custom path
- * $this->taskComposerInstall('path/to/my/composer.phar')
- * ->preferDist()
- * ->run();
- *
- * // optimize autoloader with custom path
- * $this->taskComposerInstall('path/to/my/composer.phar')
- * ->optimizeAutoloader()
- * ->run();
- * ?>
- * ```
- */
-class Install extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'install';
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Installing Packages: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Remove.php b/vendor/consolidation/robo/src/Task/Composer/Remove.php
deleted file mode 100644
index b0316f051..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Remove.php
+++ /dev/null
@@ -1,85 +0,0 @@
-taskComposerRemove()->run();
- * ?>
- * ```
- */
-class Remove extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'remove';
-
- /**
- * @return $this
- */
- public function dev($dev = true)
- {
- if ($dev) {
- $this->option('--dev');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noProgress($noProgress = true)
- {
- if ($noProgress) {
- $this->option('--no-progress');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noUpdate($noUpdate = true)
- {
- if ($noUpdate) {
- $this->option('--no-update');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function updateNoDev($updateNoDev = true)
- {
- if ($updateNoDev) {
- $this->option('--update-no-dev');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noUpdateWithDependencies($updateWithDependencies = true)
- {
- if ($updateWithDependencies) {
- $this->option('--no-update-with-dependencies');
- }
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Removing packages: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/RequireDependency.php b/vendor/consolidation/robo/src/Task/Composer/RequireDependency.php
deleted file mode 100644
index 6cdbf6139..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/RequireDependency.php
+++ /dev/null
@@ -1,50 +0,0 @@
-taskComposerRequire()->dependency('foo/bar', '^.2.4.8')->run();
- * ?>
- * ```
- */
-class RequireDependency extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'require';
-
- /**
- * 'require' is a keyword, so it cannot be a method name.
- * @return $this
- */
- public function dependency($project, $version = null)
- {
- $project = (array)$project;
-
- if (isset($version)) {
- $project = array_map(
- function ($item) use ($version) {
- return "$item:$version";
- },
- $project
- );
- }
- $this->args($project);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Requiring packages: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Update.php b/vendor/consolidation/robo/src/Task/Composer/Update.php
deleted file mode 100644
index 3a0a64afc..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Update.php
+++ /dev/null
@@ -1,40 +0,0 @@
-taskComposerUpdate()->run();
- *
- * // prefer dist with custom path
- * $this->taskComposerUpdate('path/to/my/composer.phar')
- * ->preferDist()
- * ->run();
- *
- * // optimize autoloader with custom path
- * $this->taskComposerUpdate('path/to/my/composer.phar')
- * ->optimizeAutoloader()
- * ->run();
- * ?>
- * ```
- */
-class Update extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'update';
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Updating Packages: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/Validate.php b/vendor/consolidation/robo/src/Task/Composer/Validate.php
deleted file mode 100644
index adb158543..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/Validate.php
+++ /dev/null
@@ -1,85 +0,0 @@
-taskComposerValidate()->run();
- * ?>
- * ```
- */
-class Validate extends Base
-{
- /**
- * {@inheritdoc}
- */
- protected $action = 'validate';
-
- /**
- * @return $this
- */
- public function noCheckAll($noCheckAll = true)
- {
- if ($noCheckAll) {
- $this->option('--no-check-all');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noCheckLock($noCheckLock = true)
- {
- if ($noCheckLock) {
- $this->option('--no-check-lock');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noCheckPublish($noCheckPublish = true)
- {
- if ($noCheckPublish) {
- $this->option('--no-check-publish');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function withDependencies($withDependencies = true)
- {
- if ($withDependencies) {
- $this->option('--with-dependencies');
- }
- return $this;
- }
-
- /**
- * @return $this
- */
- public function strict($strict = true)
- {
- if ($strict) {
- $this->option('--strict');
- }
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Validating composer.json: {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Composer/loadTasks.php b/vendor/consolidation/robo/src/Task/Composer/loadTasks.php
deleted file mode 100644
index a7149f8a2..000000000
--- a/vendor/consolidation/robo/src/Task/Composer/loadTasks.php
+++ /dev/null
@@ -1,95 +0,0 @@
-task(Install::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return Update
- */
- protected function taskComposerUpdate($pathToComposer = null)
- {
- return $this->task(Update::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return DumpAutoload
- */
- protected function taskComposerDumpAutoload($pathToComposer = null)
- {
- return $this->task(DumpAutoload::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return Init
- */
- protected function taskComposerInit($pathToComposer = null)
- {
- return $this->task(Init::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return Config
- */
- protected function taskComposerConfig($pathToComposer = null)
- {
- return $this->task(Config::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return Validate
- */
- protected function taskComposerValidate($pathToComposer = null)
- {
- return $this->task(Validate::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return Remove
- */
- protected function taskComposerRemove($pathToComposer = null)
- {
- return $this->task(Remove::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return RequireDependency
- */
- protected function taskComposerRequire($pathToComposer = null)
- {
- return $this->task(RequireDependency::class, $pathToComposer);
- }
-
- /**
- * @param null|string $pathToComposer
- *
- * @return CreateProject
- */
- protected function taskComposerCreateProject($pathToComposer = null)
- {
- return $this->task(CreateProject::class, $pathToComposer);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/Changelog.php b/vendor/consolidation/robo/src/Task/Development/Changelog.php
deleted file mode 100644
index 44af6d820..000000000
--- a/vendor/consolidation/robo/src/Task/Development/Changelog.php
+++ /dev/null
@@ -1,246 +0,0 @@
-taskChangelog()
- * ->version($version)
- * ->change("released to github")
- * ->run();
- * ?>
- * ```
- *
- * Changes can be asked from Console
- *
- * ``` php
- * taskChangelog()
- * ->version($version)
- * ->askForChanges()
- * ->run();
- * ?>
- * ```
- */
-class Changelog extends BaseTask implements BuilderAwareInterface
-{
- use BuilderAwareTrait;
-
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var array
- */
- protected $log = [];
-
- /**
- * @var string
- */
- protected $anchor = "# Changelog";
-
- /**
- * @var string
- */
- protected $version = "";
-
- /**
- * @var string
- */
- protected $body = "";
-
- /**
- * @var string
- */
- protected $header = "";
-
- /**
- * @param string $filename
- *
- * @return $this
- */
- public function filename($filename)
- {
- $this->filename = $filename;
- return $this;
- }
-
- /**
- * Sets the changelog body text.
- *
- * This method permits the raw changelog text to be set directly If this is set, $this->log changes will be ignored.
- *
- * @param string $body
- *
- * @return $this
- */
- public function setBody($body)
- {
- $this->body = $body;
- return $this;
- }
-
- /**
- * @param string $header
- *
- * @return $this
- */
- public function setHeader($header)
- {
- $this->header = $header;
- return $this;
- }
-
- /**
- * @param string $item
- *
- * @return $this
- */
- public function log($item)
- {
- $this->log[] = $item;
- return $this;
- }
-
- /**
- * @param string $anchor
- *
- * @return $this
- */
- public function anchor($anchor)
- {
- $this->anchor = $anchor;
- return $this;
- }
-
- /**
- * @param string $version
- *
- * @return $this
- */
- public function version($version)
- {
- $this->version = $version;
- return $this;
- }
-
- /**
- * @param string $filename
- */
- public function __construct($filename)
- {
- $this->filename = $filename;
- }
-
- /**
- * @param array $data
- *
- * @return $this
- */
- public function changes(array $data)
- {
- $this->log = array_merge($this->log, $data);
- return $this;
- }
-
- /**
- * @param string $change
- *
- * @return $this
- */
- public function change($change)
- {
- $this->log[] = $change;
- return $this;
- }
-
- /**
- * @return array
- */
- public function getChanges()
- {
- return $this->log;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (empty($this->body)) {
- if (empty($this->log)) {
- return Result::error($this, "Changelog is empty");
- }
- $this->body = $this->generateBody();
- }
- if (empty($this->header)) {
- $this->header = $this->generateHeader();
- }
-
- $text = $this->header . $this->body;
-
- if (!file_exists($this->filename)) {
- $this->printTaskInfo('Creating {filename}', ['filename' => $this->filename]);
- $res = file_put_contents($this->filename, $this->anchor);
- if ($res === false) {
- return Result::error($this, "File {filename} cant be created", ['filename' => $this->filename]);
- }
- }
-
- /** @var \Robo\Result $result */
- // trying to append to changelog for today
- $result = $this->collectionBuilder()->taskReplaceInFile($this->filename)
- ->from($this->header)
- ->to($text)
- ->run();
-
- if (!isset($result['replaced']) || !$result['replaced']) {
- $result = $this->collectionBuilder()->taskReplaceInFile($this->filename)
- ->from($this->anchor)
- ->to($this->anchor . "\n\n" . $text)
- ->run();
- }
-
- return new Result($this, $result->getExitCode(), $result->getMessage(), $this->log);
- }
-
- /**
- * @return \Robo\Result|string
- */
- protected function generateBody()
- {
- $text = implode("\n", array_map([$this, 'processLogRow'], $this->log));
- $text .= "\n";
-
- return $text;
- }
-
- /**
- * @return string
- */
- protected function generateHeader()
- {
- return "#### {$this->version}\n\n";
- }
-
- /**
- * @param $i
- *
- * @return string
- */
- public function processLogRow($i)
- {
- return "* $i *" . date('Y-m-d') . "*";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/GenerateMarkdownDoc.php b/vendor/consolidation/robo/src/Task/Development/GenerateMarkdownDoc.php
deleted file mode 100644
index 490aef31f..000000000
--- a/vendor/consolidation/robo/src/Task/Development/GenerateMarkdownDoc.php
+++ /dev/null
@@ -1,782 +0,0 @@
-taskGenDoc('models.md')
- * ->docClass('Model\User') // take class Model\User
- * ->docClass('Model\Post') // take class Model\Post
- * ->filterMethods(function(\ReflectionMethod $r) {
- * return $r->isPublic() or $r->isProtected(); // process public and protected methods
- * })->processClass(function(\ReflectionClass $r, $text) {
- * return "Class ".$r->getName()."\n\n$text\n\n###Methods\n";
- * })->run();
- * ```
- *
- * By default this task generates a documentation for each public method of a class, interface or trait.
- * It combines method signature with a docblock. Both can be post-processed.
- *
- * ``` php
- * taskGenDoc('models.md')
- * ->docClass('Model\User')
- * ->processClassSignature(false) // false can be passed to not include class signature
- * ->processClassDocBlock(function(\ReflectionClass $r, $text) {
- * return "[This is part of application model]\n" . $text;
- * })->processMethodSignature(function(\ReflectionMethod $r, $text) {
- * return "#### {$r->name}()";
- * })->processMethodDocBlock(function(\ReflectionMethod $r, $text) {
- * return strpos($r->name, 'save')===0 ? "[Saves to the database]\n" . $text : $text;
- * })->run();
- * ```
- */
-class GenerateMarkdownDoc extends BaseTask implements BuilderAwareInterface
-{
- use BuilderAwareTrait;
-
- /**
- * @var string[]
- */
- protected $docClass = [];
-
- /**
- * @var callable
- */
- protected $filterMethods;
-
- /**
- * @var callable
- */
- protected $filterClasses;
-
- /**
- * @var callable
- */
- protected $filterProperties;
-
- /**
- * @var callable
- */
- protected $processClass;
-
- /**
- * @var callable|false
- */
- protected $processClassSignature;
-
- /**
- * @var callable|false
- */
- protected $processClassDocBlock;
-
- /**
- * @var callable|false
- */
- protected $processMethod;
-
- /**
- * @var callable|false
- */
- protected $processMethodSignature;
-
- /**
- * @var callable|false
- */
- protected $processMethodDocBlock;
-
- /**
- * @var callable|false
- */
- protected $processProperty;
-
- /**
- * @var callable|false
- */
- protected $processPropertySignature;
-
- /**
- * @var callable|false
- */
- protected $processPropertyDocBlock;
-
- /**
- * @var callable
- */
- protected $reorder;
-
- /**
- * @var callable
- */
- protected $reorderMethods;
-
- /**
- * @todo Unused property.
- *
- * @var callable
- */
- protected $reorderProperties;
-
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var string
- */
- protected $prepend = "";
-
- /**
- * @var string
- */
- protected $append = "";
-
- /**
- * @var string
- */
- protected $text;
-
- /**
- * @var string[]
- */
- protected $textForClass = [];
-
- /**
- * @param string $filename
- *
- * @return static
- */
- public static function init($filename)
- {
- return new static($filename);
- }
-
- /**
- * @param string $filename
- */
- public function __construct($filename)
- {
- $this->filename = $filename;
- }
-
- /**
- * Put a class you want to be documented.
- *
- * @param string $item
- *
- * @return $this
- */
- public function docClass($item)
- {
- $this->docClass[] = $item;
- return $this;
- }
-
- /**
- * Using a callback function filter out methods that won't be documented.
- *
- * @param callable $filterMethods
- *
- * @return $this
- */
- public function filterMethods($filterMethods)
- {
- $this->filterMethods = $filterMethods;
- return $this;
- }
-
- /**
- * Using a callback function filter out classes that won't be documented.
- *
- * @param callable $filterClasses
- *
- * @return $this
- */
- public function filterClasses($filterClasses)
- {
- $this->filterClasses = $filterClasses;
- return $this;
- }
-
- /**
- * Using a callback function filter out properties that won't be documented.
- *
- * @param callable $filterProperties
- *
- * @return $this
- */
- public function filterProperties($filterProperties)
- {
- $this->filterProperties = $filterProperties;
- return $this;
- }
-
- /**
- * Post-process class documentation.
- *
- * @param callable $processClass
- *
- * @return $this
- */
- public function processClass($processClass)
- {
- $this->processClass = $processClass;
- return $this;
- }
-
- /**
- * Post-process class signature. Provide *false* to skip.
- *
- * @param callable|false $processClassSignature
- *
- * @return $this
- */
- public function processClassSignature($processClassSignature)
- {
- $this->processClassSignature = $processClassSignature;
- return $this;
- }
-
- /**
- * Post-process class docblock contents. Provide *false* to skip.
- *
- * @param callable|false $processClassDocBlock
- *
- * @return $this
- */
- public function processClassDocBlock($processClassDocBlock)
- {
- $this->processClassDocBlock = $processClassDocBlock;
- return $this;
- }
-
- /**
- * Post-process method documentation. Provide *false* to skip.
- *
- * @param callable|false $processMethod
- *
- * @return $this
- */
- public function processMethod($processMethod)
- {
- $this->processMethod = $processMethod;
- return $this;
- }
-
- /**
- * Post-process method signature. Provide *false* to skip.
- *
- * @param callable|false $processMethodSignature
- *
- * @return $this
- */
- public function processMethodSignature($processMethodSignature)
- {
- $this->processMethodSignature = $processMethodSignature;
- return $this;
- }
-
- /**
- * Post-process method docblock contents. Provide *false* to skip.
- *
- * @param callable|false $processMethodDocBlock
- *
- * @return $this
- */
- public function processMethodDocBlock($processMethodDocBlock)
- {
- $this->processMethodDocBlock = $processMethodDocBlock;
- return $this;
- }
-
- /**
- * Post-process property documentation. Provide *false* to skip.
- *
- * @param callable|false $processProperty
- *
- * @return $this
- */
- public function processProperty($processProperty)
- {
- $this->processProperty = $processProperty;
- return $this;
- }
-
- /**
- * Post-process property signature. Provide *false* to skip.
- *
- * @param callable|false $processPropertySignature
- *
- * @return $this
- */
- public function processPropertySignature($processPropertySignature)
- {
- $this->processPropertySignature = $processPropertySignature;
- return $this;
- }
-
- /**
- * Post-process property docblock contents. Provide *false* to skip.
- *
- * @param callable|false $processPropertyDocBlock
- *
- * @return $this
- */
- public function processPropertyDocBlock($processPropertyDocBlock)
- {
- $this->processPropertyDocBlock = $processPropertyDocBlock;
- return $this;
- }
-
- /**
- * Use a function to reorder classes.
- *
- * @param callable $reorder
- *
- * @return $this
- */
- public function reorder($reorder)
- {
- $this->reorder = $reorder;
- return $this;
- }
-
- /**
- * Use a function to reorder methods in class.
- *
- * @param callable $reorderMethods
- *
- * @return $this
- */
- public function reorderMethods($reorderMethods)
- {
- $this->reorderMethods = $reorderMethods;
- return $this;
- }
-
- /**
- * @param callable $reorderProperties
- *
- * @return $this
- */
- public function reorderProperties($reorderProperties)
- {
- $this->reorderProperties = $reorderProperties;
- return $this;
- }
-
- /**
- * @param string $filename
- *
- * @return $this
- */
- public function filename($filename)
- {
- $this->filename = $filename;
- return $this;
- }
-
- /**
- * Inserts text at the beginning of markdown file.
- *
- * @param string $prepend
- *
- * @return $this
- */
- public function prepend($prepend)
- {
- $this->prepend = $prepend;
- return $this;
- }
-
- /**
- * Inserts text at the end of markdown file.
- *
- * @param string $append
- *
- * @return $this
- */
- public function append($append)
- {
- $this->append = $append;
- return $this;
- }
-
- /**
- * @param string $text
- *
- * @return $this
- */
- public function text($text)
- {
- $this->text = $text;
- return $this;
- }
-
- /**
- * @param string $item
- *
- * @return $this
- */
- public function textForClass($item)
- {
- $this->textForClass[] = $item;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- foreach ($this->docClass as $class) {
- $this->printTaskInfo("Processing {class}", ['class' => $class]);
- $this->textForClass[$class] = $this->documentClass($class);
- }
-
- if (is_callable($this->reorder)) {
- $this->printTaskInfo("Applying reorder function");
- call_user_func_array($this->reorder, [$this->textForClass]);
- }
-
- $this->text = implode("\n", $this->textForClass);
-
- /** @var \Robo\Result $result */
- $result = $this->collectionBuilder()->taskWriteToFile($this->filename)
- ->line($this->prepend)
- ->text($this->text)
- ->line($this->append)
- ->run();
-
- $this->printTaskSuccess('{filename} created. {class-count} classes documented', ['filename' => $this->filename, 'class-count' => count($this->docClass)]);
-
- return new Result($this, $result->getExitCode(), $result->getMessage(), $this->textForClass);
- }
-
- /**
- * @param string $class
- *
- * @return null|string
- */
- protected function documentClass($class)
- {
- if (!class_exists($class) && !trait_exists($class)) {
- return "";
- }
- $refl = new \ReflectionClass($class);
-
- if (is_callable($this->filterClasses)) {
- $ret = call_user_func($this->filterClasses, $refl);
- if (!$ret) {
- return;
- }
- }
- $doc = $this->documentClassSignature($refl);
- $doc .= "\n" . $this->documentClassDocBlock($refl);
- $doc .= "\n";
-
- if (is_callable($this->processClass)) {
- $doc = call_user_func($this->processClass, $refl, $doc);
- }
-
- $properties = [];
- foreach ($refl->getProperties() as $reflProperty) {
- $properties[] = $this->documentProperty($reflProperty);
- }
-
- $properties = array_filter($properties);
- $doc .= implode("\n", $properties);
-
- $methods = [];
- foreach ($refl->getMethods() as $reflMethod) {
- $methods[$reflMethod->name] = $this->documentMethod($reflMethod);
- }
- if (is_callable($this->reorderMethods)) {
- call_user_func_array($this->reorderMethods, [&$methods]);
- }
-
- $methods = array_filter($methods);
-
- $doc .= implode("\n", $methods)."\n";
-
- return $doc;
- }
-
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return string
- */
- protected function documentClassSignature(\ReflectionClass $reflectionClass)
- {
- if ($this->processClassSignature === false) {
- return "";
- }
-
- $signature = "## {$reflectionClass->name}\n\n";
-
- if ($parent = $reflectionClass->getParentClass()) {
- $signature .= "* *Extends* `{$parent->name}`";
- }
- $interfaces = $reflectionClass->getInterfaceNames();
- if (count($interfaces)) {
- $signature .= "\n* *Implements* `" . implode('`, `', $interfaces) . '`';
- }
- $traits = $reflectionClass->getTraitNames();
- if (count($traits)) {
- $signature .= "\n* *Uses* `" . implode('`, `', $traits) . '`';
- }
- if (is_callable($this->processClassSignature)) {
- $signature = call_user_func($this->processClassSignature, $reflectionClass, $signature);
- }
-
- return $signature;
- }
-
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return string
- */
- protected function documentClassDocBlock(\ReflectionClass $reflectionClass)
- {
- if ($this->processClassDocBlock === false) {
- return "";
- }
- $doc = self::indentDoc($reflectionClass->getDocComment());
- if (is_callable($this->processClassDocBlock)) {
- $doc = call_user_func($this->processClassDocBlock, $reflectionClass, $doc);
- }
- return $doc;
- }
-
- /**
- * @param \ReflectionMethod $reflectedMethod
- *
- * @return string
- */
- protected function documentMethod(\ReflectionMethod $reflectedMethod)
- {
- if ($this->processMethod === false) {
- return "";
- }
- if (is_callable($this->filterMethods)) {
- $ret = call_user_func($this->filterMethods, $reflectedMethod);
- if (!$ret) {
- return "";
- }
- } else {
- if (!$reflectedMethod->isPublic()) {
- return "";
- }
- }
-
- $signature = $this->documentMethodSignature($reflectedMethod);
- $docblock = $this->documentMethodDocBlock($reflectedMethod);
- $methodDoc = "$signature $docblock";
- if (is_callable($this->processMethod)) {
- $methodDoc = call_user_func($this->processMethod, $reflectedMethod, $methodDoc);
- }
- return $methodDoc;
- }
-
- /**
- * @param \ReflectionProperty $reflectedProperty
- *
- * @return string
- */
- protected function documentProperty(\ReflectionProperty $reflectedProperty)
- {
- if ($this->processProperty === false) {
- return "";
- }
- if (is_callable($this->filterProperties)) {
- $ret = call_user_func($this->filterProperties, $reflectedProperty);
- if (!$ret) {
- return "";
- }
- } else {
- if (!$reflectedProperty->isPublic()) {
- return "";
- }
- }
- $signature = $this->documentPropertySignature($reflectedProperty);
- $docblock = $this->documentPropertyDocBlock($reflectedProperty);
- $propertyDoc = $signature . $docblock;
- if (is_callable($this->processProperty)) {
- $propertyDoc = call_user_func($this->processProperty, $reflectedProperty, $propertyDoc);
- }
- return $propertyDoc;
- }
-
- /**
- * @param \ReflectionProperty $reflectedProperty
- *
- * @return string
- */
- protected function documentPropertySignature(\ReflectionProperty $reflectedProperty)
- {
- if ($this->processPropertySignature === false) {
- return "";
- }
- $modifiers = implode(' ', \Reflection::getModifierNames($reflectedProperty->getModifiers()));
- $signature = "#### *$modifiers* {$reflectedProperty->name}";
- if (is_callable($this->processPropertySignature)) {
- $signature = call_user_func($this->processPropertySignature, $reflectedProperty, $signature);
- }
- return $signature;
- }
-
- /**
- * @param \ReflectionProperty $reflectedProperty
- *
- * @return string
- */
- protected function documentPropertyDocBlock(\ReflectionProperty $reflectedProperty)
- {
- if ($this->processPropertyDocBlock === false) {
- return "";
- }
- $propertyDoc = $reflectedProperty->getDocComment();
- // take from parent
- if (!$propertyDoc) {
- $parent = $reflectedProperty->getDeclaringClass();
- while ($parent = $parent->getParentClass()) {
- if ($parent->hasProperty($reflectedProperty->name)) {
- $propertyDoc = $parent->getProperty($reflectedProperty->name)->getDocComment();
- }
- }
- }
- $propertyDoc = self::indentDoc($propertyDoc, 7);
- $propertyDoc = preg_replace("~^@(.*?)([$\s])~", ' * `$1` $2', $propertyDoc); // format annotations
- if (is_callable($this->processPropertyDocBlock)) {
- $propertyDoc = call_user_func($this->processPropertyDocBlock, $reflectedProperty, $propertyDoc);
- }
- return ltrim($propertyDoc);
- }
-
- /**
- * @param \ReflectionParameter $param
- *
- * @return string
- */
- protected function documentParam(\ReflectionParameter $param)
- {
- $text = "";
- if ($param->isArray()) {
- $text .= 'array ';
- }
- if ($param->isCallable()) {
- $text .= 'callable ';
- }
- $text .= '$' . $param->name;
- if ($param->isDefaultValueAvailable()) {
- if ($param->allowsNull()) {
- $text .= ' = null';
- } else {
- $text .= ' = ' . str_replace("\n", ' ', print_r($param->getDefaultValue(), true));
- }
- }
-
- return $text;
- }
-
- /**
- * @param string $doc
- * @param int $indent
- *
- * @return string
- */
- public static function indentDoc($doc, $indent = 3)
- {
- if (!$doc) {
- return $doc;
- }
- return implode(
- "\n",
- array_map(
- function ($line) use ($indent) {
- return substr($line, $indent);
- },
- explode("\n", $doc)
- )
- );
- }
-
- /**
- * @param \ReflectionMethod $reflectedMethod
- *
- * @return string
- */
- protected function documentMethodSignature(\ReflectionMethod $reflectedMethod)
- {
- if ($this->processMethodSignature === false) {
- return "";
- }
- $modifiers = implode(' ', \Reflection::getModifierNames($reflectedMethod->getModifiers()));
- $params = implode(
- ', ',
- array_map(
- function ($p) {
- return $this->documentParam($p);
- },
- $reflectedMethod->getParameters()
- )
- );
- $signature = "#### *$modifiers* {$reflectedMethod->name}($params)";
- if (is_callable($this->processMethodSignature)) {
- $signature = call_user_func($this->processMethodSignature, $reflectedMethod, $signature);
- }
- return $signature;
- }
-
- /**
- * @param \ReflectionMethod $reflectedMethod
- *
- * @return string
- */
- protected function documentMethodDocBlock(\ReflectionMethod $reflectedMethod)
- {
- if ($this->processMethodDocBlock === false) {
- return "";
- }
- $methodDoc = $reflectedMethod->getDocComment();
- // take from parent
- if (!$methodDoc) {
- $parent = $reflectedMethod->getDeclaringClass();
- while ($parent = $parent->getParentClass()) {
- if ($parent->hasMethod($reflectedMethod->name)) {
- $methodDoc = $parent->getMethod($reflectedMethod->name)->getDocComment();
- }
- }
- }
- // take from interface
- if (!$methodDoc) {
- $interfaces = $reflectedMethod->getDeclaringClass()->getInterfaces();
- foreach ($interfaces as $interface) {
- $i = new \ReflectionClass($interface->name);
- if ($i->hasMethod($reflectedMethod->name)) {
- $methodDoc = $i->getMethod($reflectedMethod->name)->getDocComment();
- break;
- }
- }
- }
-
- $methodDoc = self::indentDoc($methodDoc, 7);
- $methodDoc = preg_replace("~^@(.*?) ([$\s])~m", ' * `$1` $2', $methodDoc); // format annotations
- if (is_callable($this->processMethodDocBlock)) {
- $methodDoc = call_user_func($this->processMethodDocBlock, $reflectedMethod, $methodDoc);
- }
-
- return $methodDoc;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/GenerateTask.php b/vendor/consolidation/robo/src/Task/Development/GenerateTask.php
deleted file mode 100644
index 9d7a698e9..000000000
--- a/vendor/consolidation/robo/src/Task/Development/GenerateTask.php
+++ /dev/null
@@ -1,107 +0,0 @@
-taskGenerateTask('Symfony\Component\Filesystem\Filesystem', 'FilesystemStack')
- * ->run();
- * ```
- */
-class GenerateTask extends BaseTask
-{
- /**
- * @var string
- */
- protected $className;
-
- /**
- * @var string
- */
- protected $wrapperClassName;
-
- /**
- * @param string $className
- * @param string $wrapperClassName
- */
- public function __construct($className, $wrapperClassName = '')
- {
- $this->className = $className;
- $this->wrapperClassName = $wrapperClassName;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $delegate = new \ReflectionClass($this->className);
- $replacements = [];
-
- $leadingCommentChars = " * ";
- $methodDescriptions = [];
- $methodImplementations = [];
- $immediateMethods = [];
- foreach ($delegate->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
- $methodName = $method->name;
- $getter = preg_match('/^(get|has|is)/', $methodName);
- $setter = preg_match('/^(set|unset)/', $methodName);
- $argPrototypeList = [];
- $argNameList = [];
- $needsImplementation = false;
- foreach ($method->getParameters() as $arg) {
- $argDescription = '$' . $arg->name;
- $argNameList[] = $argDescription;
- if ($arg->isOptional()) {
- $argDescription = $argDescription . ' = ' . str_replace("\n", "", var_export($arg->getDefaultValue(), true));
- // We will create wrapper methods for any method that
- // has default parameters.
- $needsImplementation = true;
- }
- $argPrototypeList[] = $argDescription;
- }
- $argPrototypeString = implode(', ', $argPrototypeList);
- $argNameListString = implode(', ', $argNameList);
-
- if ($methodName[0] != '_') {
- $methodDescriptions[] = "@method $methodName($argPrototypeString)";
-
- if ($getter) {
- $immediateMethods[] = " public function $methodName($argPrototypeString)\n {\n return \$this->delegate->$methodName($argNameListString);\n }";
- } elseif ($setter) {
- $immediateMethods[] = " public function $methodName($argPrototypeString)\n {\n \$this->delegate->$methodName($argNameListString);\n return \$this;\n }";
- } elseif ($needsImplementation) {
- // Include an implementation for the wrapper method if necessary
- $methodImplementations[] = " protected function _$methodName($argPrototypeString)\n {\n \$this->delegate->$methodName($argNameListString);\n }";
- }
- }
- }
-
- $classNameParts = explode('\\', $this->className);
- $delegate = array_pop($classNameParts);
- $delegateNamespace = implode('\\', $classNameParts);
-
- if (empty($this->wrapperClassName)) {
- $this->wrapperClassName = $delegate;
- }
-
- $replacements['{delegateNamespace}'] = $delegateNamespace;
- $replacements['{delegate}'] = $delegate;
- $replacements['{wrapperClassName}'] = $this->wrapperClassName;
- $replacements['{taskname}'] = "task$delegate";
- $replacements['{methodList}'] = $leadingCommentChars . implode("\n$leadingCommentChars", $methodDescriptions);
- $replacements['{immediateMethods}'] = "\n\n" . implode("\n\n", $immediateMethods);
- $replacements['{methodImplementations}'] = "\n\n" . implode("\n\n", $methodImplementations);
-
- $template = file_get_contents(__DIR__ . '/../../../data/Task/Development/GeneratedWrapper.tmpl');
- $template = str_replace(array_keys($replacements), array_values($replacements), $template);
-
- // Returning data in the $message will cause it to be printed.
- return Result::success($this, $template);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/GitHub.php b/vendor/consolidation/robo/src/Task/Development/GitHub.php
deleted file mode 100644
index 9fc9909d4..000000000
--- a/vendor/consolidation/robo/src/Task/Development/GitHub.php
+++ /dev/null
@@ -1,157 +0,0 @@
-repo = $repo;
- return $this;
- }
-
- /**
- * @param string $owner
- *
- * @return $this
- */
- public function owner($owner)
- {
- $this->owner = $owner;
- return $this;
- }
-
- /**
- * @param string $uri
- *
- * @return $this
- */
- public function uri($uri)
- {
- list($this->owner, $this->repo) = explode('/', $uri);
- return $this;
- }
-
- /**
- * @return string
- */
- protected function getUri()
- {
- return $this->owner . '/' . $this->repo;
- }
-
- /**
- * @param string $user
- *
- * @return $this
- */
- public function user($user)
- {
- $this->user = $user;
- return $this;
- }
-
- /**
- * @param $password
- *
- * @return $this
- */
- public function password($password)
- {
- $this->password = $password;
- return $this;
- }
-
- /**
- * @param $accessToken
- *
- * @return $this
- */
- public function accessToken($token)
- {
- $this->accessToken = $token;
- return $this;
- }
-
- /**
- * @param string $uri
- * @param array $params
- * @param string $method
- *
- * @return array
- *
- * @throws \Robo\Exception\TaskException
- */
- protected function sendRequest($uri, $params = [], $method = 'POST')
- {
- if (!$this->owner or !$this->repo) {
- throw new TaskException($this, 'Repo URI is not set');
- }
-
- $ch = curl_init();
- $url = sprintf('%s/repos/%s/%s', self::GITHUB_URL, $this->getUri(), $uri);
- $this->printTaskInfo($url);
- $this->printTaskInfo('{method} {url}', ['method' => $method, 'url' => $url]);
-
- if (!empty($this->user)) {
- curl_setopt($ch, CURLOPT_USERPWD, $this->user . ':' . $this->password);
- }
-
- if (!empty($this->accessToken)) {
- $url .= "?access_token=" . $this->accessToken;
- }
-
- curl_setopt_array(
- $ch,
- array(
- CURLOPT_URL => $url,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_POST => $method != 'GET',
- CURLOPT_POSTFIELDS => json_encode($params),
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_USERAGENT => "Robo"
- )
- );
-
- $output = curl_exec($ch);
- $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- $response = json_decode($output);
-
- $this->printTaskInfo($output);
- return [$code, $response];
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/GitHubRelease.php b/vendor/consolidation/robo/src/Task/Development/GitHubRelease.php
deleted file mode 100644
index bf7a4889e..000000000
--- a/vendor/consolidation/robo/src/Task/Development/GitHubRelease.php
+++ /dev/null
@@ -1,208 +0,0 @@
-taskGitHubRelease('0.1.0')
- * ->uri('consolidation-org/Robo')
- * ->description('Add stuff people need.')
- * ->change('Fix #123')
- * ->change('Add frobulation method to all widgets')
- * ->run();
- * ?>
- * ```
- */
-class GitHubRelease extends GitHub
-{
- /**
- * @var string
- */
- protected $tag;
-
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var string
- */
- protected $description = '';
-
- /**
- * @var string[]
- */
- protected $changes = [];
-
- /**
- * @var bool
- */
- protected $draft = false;
-
- /**
- * @var bool
- */
- protected $prerelease = false;
-
- /**
- * @var string
- */
- protected $comittish = 'master';
-
- /**
- * @param string $tag
- */
- public function __construct($tag)
- {
- $this->tag = $tag;
- }
-
- /**
- * @param string $tag
- *
- * @return $this
- */
- public function tag($tag)
- {
- $this->tag = $tag;
- return $this;
- }
-
- /**
- * @param bool $draft
- *
- * @return $this
- */
- public function draft($draft)
- {
- $this->draft = $draft;
- return $this;
- }
-
- /**
- * @param string $name
- *
- * @return $this
- */
- public function name($name)
- {
- $this->name = $name;
- return $this;
- }
-
- /**
- * @param string $description
- *
- * @return $this
- */
- public function description($description)
- {
- $this->description = $description;
- return $this;
- }
-
- /**
- * @param bool $prerelease
- *
- * @return $this
- */
- public function prerelease($prerelease)
- {
- $this->prerelease = $prerelease;
- return $this;
- }
-
- /**
- * @param string $comittish
- *
- * @return $this
- */
- public function comittish($comittish)
- {
- $this->comittish = $comittish;
- return $this;
- }
-
- /**
- * @param string $description
- *
- * @return $this
- */
- public function appendDescription($description)
- {
- if (!empty($this->description)) {
- $this->description .= "\n\n";
- }
- $this->description .= $description;
- return $this;
- }
-
- public function changes(array $changes)
- {
- $this->changes = array_merge($this->changes, $changes);
- return $this;
- }
-
- /**
- * @param string $change
- *
- * @return $this
- */
- public function change($change)
- {
- $this->changes[] = $change;
- return $this;
- }
-
- /**
- * @return string
- */
- protected function getBody()
- {
- $body = $this->description;
- if (!empty($this->changes)) {
- $changes = array_map(
- function ($line) {
- return "* $line";
- },
- $this->changes
- );
- $changesText = implode("\n", $changes);
- $body .= "### Changelog \n\n$changesText";
- }
- return $body;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Releasing {tag}', ['tag' => $this->tag]);
- $this->startTimer();
- list($code, $data) = $this->sendRequest(
- 'releases',
- [
- "tag_name" => $this->tag,
- "target_commitish" => $this->comittish,
- "name" => $this->name,
- "body" => $this->getBody(),
- "draft" => $this->draft,
- "prerelease" => $this->prerelease
- ]
- );
- $this->stopTimer();
-
- return new Result(
- $this,
- in_array($code, [200, 201]) ? 0 : 1,
- isset($data->message) ? $data->message : '',
- ['response' => $data, 'time' => $this->getExecutionTime()]
- );
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/OpenBrowser.php b/vendor/consolidation/robo/src/Task/Development/OpenBrowser.php
deleted file mode 100644
index ea01b326d..000000000
--- a/vendor/consolidation/robo/src/Task/Development/OpenBrowser.php
+++ /dev/null
@@ -1,80 +0,0 @@
-taskOpenBrowser('http://localhost')
- * ->run();
- *
- * // open two browser windows
- * $this->taskOpenBrowser([
- * 'http://localhost/mysite',
- * 'http://localhost/mysite2'
- * ])
- * ->run();
- * ```
- */
-class OpenBrowser extends BaseTask
-{
- /**
- * @var string[]
- */
- protected $urls = [];
-
- /**
- * @param string|array $url
- */
- public function __construct($url)
- {
- $this->urls = (array) $url;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $openCommand = $this->getOpenCommand();
-
- if (empty($openCommand)) {
- return Result::error($this, 'no suitable browser opening command found');
- }
-
- foreach ($this->urls as $url) {
- passthru(sprintf($openCommand, ProcessUtils::escapeArgument($url)));
- $this->printTaskInfo('Opened {url}', ['url' => $url]);
- }
-
- return Result::success($this);
- }
-
- /**
- * @return null|string
- */
- private function getOpenCommand()
- {
- if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
- return 'start "web" explorer "%s"';
- }
-
- passthru('which xdg-open', $linux);
- passthru('which open', $osx);
-
- if (0 === $linux) {
- return 'xdg-open %s';
- }
-
- if (0 === $osx) {
- return 'open %s';
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/PackPhar.php b/vendor/consolidation/robo/src/Task/Development/PackPhar.php
deleted file mode 100644
index 6d0a04d72..000000000
--- a/vendor/consolidation/robo/src/Task/Development/PackPhar.php
+++ /dev/null
@@ -1,252 +0,0 @@
-taskPackPhar('package/codecept.phar')
- * ->compress()
- * ->stub('package/stub.php');
- *
- * $finder = Finder::create()
- * ->name('*.php')
- * ->in('src');
- *
- * foreach ($finder as $file) {
- * $pharTask->addFile('src/'.$file->getRelativePathname(), $file->getRealPath());
- * }
- *
- * $finder = Finder::create()->files()
- * ->name('*.php')
- * ->in('vendor');
- *
- * foreach ($finder as $file) {
- * $pharTask->addStripped('vendor/'.$file->getRelativePathname(), $file->getRealPath());
- * }
- * $pharTask->run();
- *
- * // verify Phar is packed correctly
- * $code = $this->_exec('php package/codecept.phar');
- * ?>
- * ```
- */
-class PackPhar extends BaseTask implements PrintedInterface, ProgressIndicatorAwareInterface
-{
- /**
- * @var \Phar
- */
- protected $phar;
-
- /**
- * @var null|string
- */
- protected $compileDir = null;
-
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var bool
- */
- protected $compress = false;
-
- protected $stub;
-
- protected $bin;
-
- /**
- * @var string
- */
- protected $stubTemplate = <<filename = $filename;
- if (file_exists($file->getRealPath())) {
- @unlink($file->getRealPath());
- }
- $this->phar = new \Phar($file->getPathname(), 0, $file->getFilename());
- }
-
- /**
- * @param bool $compress
- *
- * @return $this
- */
- public function compress($compress = true)
- {
- $this->compress = $compress;
- return $this;
- }
-
- /**
- * @param string $stub
- *
- * @return $this
- */
- public function stub($stub)
- {
- $this->phar->setStub(file_get_contents($stub));
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function progressIndicatorSteps()
- {
- // run() will call advanceProgressIndicator() once for each
- // file, one after calling stopBuffering, and again after compression.
- return count($this->files)+2;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Creating {filename}', ['filename' => $this->filename]);
- $this->phar->setSignatureAlgorithm(\Phar::SHA1);
- $this->phar->startBuffering();
-
- $this->printTaskInfo('Packing {file-count} files into phar', ['file-count' => count($this->files)]);
-
- $this->startProgressIndicator();
- foreach ($this->files as $path => $content) {
- $this->phar->addFromString($path, $content);
- $this->advanceProgressIndicator();
- }
- $this->phar->stopBuffering();
- $this->advanceProgressIndicator();
-
- if ($this->compress and in_array('GZ', \Phar::getSupportedCompression())) {
- if (count($this->files) > 1000) {
- $this->printTaskInfo('Too many files. Compression DISABLED');
- } else {
- $this->printTaskInfo('{filename} compressed', ['filename' => $this->filename]);
- $this->phar = $this->phar->compressFiles(\Phar::GZ);
- }
- }
- $this->advanceProgressIndicator();
- $this->stopProgressIndicator();
- $this->printTaskSuccess('{filename} produced', ['filename' => $this->filename]);
- return Result::success($this, '', ['time' => $this->getExecutionTime()]);
- }
-
- /**
- * @param string $path
- * @param string $file
- *
- * @return $this
- */
- public function addStripped($path, $file)
- {
- $this->files[$path] = $this->stripWhitespace(file_get_contents($file));
- return $this;
- }
-
- /**
- * @param string $path
- * @param string $file
- *
- * @return $this
- */
- public function addFile($path, $file)
- {
- $this->files[$path] = file_get_contents($file);
- return $this;
- }
-
- /**
- * @param \Symfony\Component\Finder\SplFileInfo[] $files
- */
- public function addFiles($files)
- {
- foreach ($files as $file) {
- $this->addFile($file->getRelativePathname(), $file->getRealPath());
- }
- }
-
- /**
- * @param string $file
- *
- * @return $this
- */
- public function executable($file)
- {
- $source = file_get_contents($file);
- if (strpos($source, '#!/usr/bin/env php') === 0) {
- $source = substr($source, strpos($source, 'phar->setStub(sprintf($this->stubTemplate, $source));
- return $this;
- }
-
- /**
- * Strips whitespace from source. Taken from composer
- *
- * @param string $source
- *
- * @return string
- */
- private function stripWhitespace($source)
- {
- if (!function_exists('token_get_all')) {
- return $source;
- }
-
- $output = '';
- foreach (token_get_all($source) as $token) {
- if (is_string($token)) {
- $output .= $token;
- } elseif (in_array($token[0], array(T_COMMENT, T_DOC_COMMENT))) {
- // $output .= $token[1];
- $output .= str_repeat("\n", substr_count($token[1], "\n"));
- } elseif (T_WHITESPACE === $token[0]) {
- // reduce wide spaces
- $whitespace = preg_replace('{[ \t]+}', ' ', $token[1]);
- // normalize newlines to \n
- $whitespace = preg_replace('{(?:\r\n|\r|\n)}', "\n", $whitespace);
- // trim leading spaces
- $whitespace = preg_replace('{\n +}', "\n", $whitespace);
- $output .= $whitespace;
- } else {
- $output .= $token[1];
- }
- }
-
- return $output;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/PhpServer.php b/vendor/consolidation/robo/src/Task/Development/PhpServer.php
deleted file mode 100644
index 6dd36680a..000000000
--- a/vendor/consolidation/robo/src/Task/Development/PhpServer.php
+++ /dev/null
@@ -1,86 +0,0 @@
-taskServer(8000)
- * ->dir('public')
- * ->run();
- *
- * // run with IP 0.0.0.0
- * $this->taskServer(8000)
- * ->host('0.0.0.0')
- * ->run();
- *
- * // execute server in background
- * $this->taskServer(8000)
- * ->background()
- * ->run();
- * ?>
- * ```
- */
-class PhpServer extends Exec
-{
- /**
- * @var int
- */
- protected $port;
-
- /**
- * @var string
- */
- protected $host = '127.0.0.1';
-
- /**
- * {@inheritdoc}
- */
- protected $command = 'php -S %s:%d ';
-
- /**
- * @param int $port
- */
- public function __construct($port)
- {
- $this->port = $port;
-
- if (strtolower(PHP_OS) === 'linux') {
- $this->command = 'exec php -S %s:%d ';
- }
- }
-
- /**
- * @param string $host
- *
- * @return $this
- */
- public function host($host)
- {
- $this->host = $host;
- return $this;
- }
-
- /**
- * @param string $path
- *
- * @return $this
- */
- public function dir($path)
- {
- $this->command .= "-t $path";
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return sprintf($this->command . $this->arguments, $this->host, $this->port);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/SemVer.php b/vendor/consolidation/robo/src/Task/Development/SemVer.php
deleted file mode 100644
index 639c15323..000000000
--- a/vendor/consolidation/robo/src/Task/Development/SemVer.php
+++ /dev/null
@@ -1,255 +0,0 @@
-taskSemVer('.semver')
- * ->increment()
- * ->run();
- * ?>
- * ```
- *
- */
-class SemVer implements TaskInterface
-{
- const SEMVER = "---\n:major: %d\n:minor: %d\n:patch: %d\n:special: '%s'\n:metadata: '%s'";
-
- const REGEX = "/^\-\-\-\r?\n:major:\s(0|[1-9]\d*)\r?\n:minor:\s(0|[1-9]\d*)\r?\n:patch:\s(0|[1-9]\d*)\r?\n:special:\s'([a-zA-z0-9]*\.?(?:0|[1-9]\d*)?)'\r?\n:metadata:\s'((?:0|[1-9]\d*)?(?:\.[a-zA-z0-9\.]*)?)'/";
-
- const REGEX_STRING = '/^(?[0-9]+)\.(?[0-9]+)\.(?[0-9]+)(|-(?[0-9a-zA-Z.]+))(|\+(?[0-9a-zA-Z.]+))$/';
-
- /**
- * @var string
- */
- protected $format = 'v%M.%m.%p%s';
-
- /**
- * @var string
- */
- protected $specialSeparator = '-';
-
- /**
- * @var string
- */
- protected $metadataSeparator = '+';
-
- /**
- * @var string
- */
- protected $path;
-
- /**
- * @var array
- */
- protected $version = [
- 'major' => 0,
- 'minor' => 0,
- 'patch' => 0,
- 'special' => '',
- 'metadata' => ''
- ];
-
- /**
- * @param string $filename
- */
- public function __construct($filename = '')
- {
- $this->path = $filename;
-
- if (file_exists($this->path)) {
- $semverFileContents = file_get_contents($this->path);
- $this->parseFile($semverFileContents);
- }
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- $search = ['%M', '%m', '%p', '%s'];
- $replace = $this->version + ['extra' => ''];
-
- foreach (['special', 'metadata'] as $key) {
- if (!empty($replace[$key])) {
- $separator = $key . 'Separator';
- $replace['extra'] .= $this->{$separator} . $replace[$key];
- }
- unset($replace[$key]);
- }
-
- return str_replace($search, $replace, $this->format);
- }
-
- public function version($version)
- {
- $this->parseString($version);
- return $this;
- }
-
- /**
- * @param string $format
- *
- * @return $this
- */
- public function setFormat($format)
- {
- $this->format = $format;
- return $this;
- }
-
- /**
- * @param string $separator
- *
- * @return $this
- */
- public function setMetadataSeparator($separator)
- {
- $this->metadataSeparator = $separator;
- return $this;
- }
-
- /**
- * @param string $separator
- *
- * @return $this
- */
- public function setPrereleaseSeparator($separator)
- {
- $this->specialSeparator = $separator;
- return $this;
- }
-
- /**
- * @param string $what
- *
- * @return $this
- *
- * @throws \Robo\Exception\TaskException
- */
- public function increment($what = 'patch')
- {
- switch ($what) {
- case 'major':
- $this->version['major']++;
- $this->version['minor'] = 0;
- $this->version['patch'] = 0;
- break;
- case 'minor':
- $this->version['minor']++;
- $this->version['patch'] = 0;
- break;
- case 'patch':
- $this->version['patch']++;
- break;
- default:
- throw new TaskException(
- $this,
- 'Bad argument, only one of the following is allowed: major, minor, patch'
- );
- }
- return $this;
- }
-
- /**
- * @param string $tag
- *
- * @return $this
- *
- * @throws \Robo\Exception\TaskException
- */
- public function prerelease($tag = 'RC')
- {
- if (!is_string($tag)) {
- throw new TaskException($this, 'Bad argument, only strings allowed.');
- }
-
- $number = 0;
-
- if (!empty($this->version['special'])) {
- list($current, $number) = explode('.', $this->version['special']);
- if ($tag != $current) {
- $number = 0;
- }
- }
-
- $number++;
-
- $this->version['special'] = implode('.', [$tag, $number]);
- return $this;
- }
-
- /**
- * @param array|string $data
- *
- * @return $this
- */
- public function metadata($data)
- {
- if (is_array($data)) {
- $data = implode('.', $data);
- }
-
- $this->version['metadata'] = $data;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $written = $this->dump();
- return new Result($this, (int)($written === false), $this->__toString());
- }
-
- /**
- * @return bool
- *
- * @throws \Robo\Exception\TaskException
- */
- protected function dump()
- {
- if (empty($this->path)) {
- return true;
- }
- extract($this->version);
- $semver = sprintf(self::SEMVER, $major, $minor, $patch, $special, $metadata);
- if (is_writeable($this->path) === false || file_put_contents($this->path, $semver) === false) {
- throw new TaskException($this, 'Failed to write semver file.');
- }
- return true;
- }
-
- protected function parseString($semverString)
- {
- if (!preg_match_all(self::REGEX_STRING, $semverString, $matches)) {
- throw new TaskException($this, 'Bad semver value: ' . $semverString);
- }
-
- $this->version = array_intersect_key($matches, $this->version);
- $this->version = array_map(function ($item) {
- return $item[0];
- }, $this->version);
- }
-
- /**
- * @throws \Robo\Exception\TaskException
- */
- protected function parseFile($semverFileContents)
- {
- if (!preg_match_all(self::REGEX, $semverFileContents, $matches)) {
- throw new TaskException($this, 'Bad semver file.');
- }
-
- list(, $major, $minor, $patch, $special, $metadata) = array_map('current', $matches);
- $this->version = compact('major', 'minor', 'patch', 'special', 'metadata');
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Development/loadTasks.php b/vendor/consolidation/robo/src/Task/Development/loadTasks.php
deleted file mode 100644
index e3dc49a39..000000000
--- a/vendor/consolidation/robo/src/Task/Development/loadTasks.php
+++ /dev/null
@@ -1,86 +0,0 @@
-task(Changelog::class, $filename);
- }
-
- /**
- * @param string $filename
- *
- * @return GenerateMarkdownDoc
- */
- protected function taskGenDoc($filename)
- {
- return $this->task(GenerateMarkdownDoc::class, $filename);
- }
-
- /**
- * @param string $className
- * @param string $wrapperClassName
- *
- * @return \Robo\Task\Development\GenerateTask
- */
- protected function taskGenTask($className, $wrapperClassName = '')
- {
- return $this->task(GenerateTask::class, $className, $wrapperClassName);
- }
-
- /**
- * @param string $pathToSemVer
- *
- * @return SemVer
- */
- protected function taskSemVer($pathToSemVer = '.semver')
- {
- return $this->task(SemVer::class, $pathToSemVer);
- }
-
- /**
- * @param int $port
- *
- * @return PhpServer
- */
- protected function taskServer($port = 8000)
- {
- return $this->task(PhpServer::class, $port);
- }
-
- /**
- * @param string $filename
- *
- * @return PackPhar
- */
- protected function taskPackPhar($filename)
- {
- return $this->task(PackPhar::class, $filename);
- }
-
- /**
- * @param string $tag
- *
- * @return GitHubRelease
- */
- protected function taskGitHubRelease($tag)
- {
- return $this->task(GitHubRelease::class, $tag);
- }
-
- /**
- * @param string|array $url
- *
- * @return OpenBrowser
- */
- protected function taskOpenBrowser($url)
- {
- return $this->task(OpenBrowser::class, $url);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Base.php b/vendor/consolidation/robo/src/Task/Docker/Base.php
deleted file mode 100644
index 135f39e7a..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Base.php
+++ /dev/null
@@ -1,28 +0,0 @@
-getCommand();
- return $this->executeCommand($command);
- }
-
- abstract public function getCommand();
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Build.php b/vendor/consolidation/robo/src/Task/Docker/Build.php
deleted file mode 100644
index 11eb92ab4..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Build.php
+++ /dev/null
@@ -1,55 +0,0 @@
-taskDockerBuild()->run();
- *
- * $this->taskDockerBuild('path/to/dir')
- * ->tag('database')
- * ->run();
- *
- * ?>
- *
- * ```
- *
- * Class Build
- * @package Robo\Task\Docker
- */
-class Build extends Base
-{
- /**
- * @var string
- */
- protected $path;
-
- /**
- * @param string $path
- */
- public function __construct($path = '.')
- {
- $this->command = "docker build";
- $this->path = $path;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->arguments . ' ' . $this->path;
- }
-
- /**
- * @param string $tag
- *
- * @return $this
- */
- public function tag($tag)
- {
- return $this->option('-t', $tag);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Commit.php b/vendor/consolidation/robo/src/Task/Docker/Commit.php
deleted file mode 100644
index 302f1920e..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Commit.php
+++ /dev/null
@@ -1,66 +0,0 @@
-taskDockerCommit($containerId)
- * ->name('my/database')
- * ->run();
- *
- * // alternatively you can take the result from DockerRun task:
- *
- * $result = $this->taskDockerRun('db')
- * ->exec('./prepare_database.sh')
- * ->run();
- *
- * $task->dockerCommit($result)
- * ->name('my/database')
- * ->run();
- * ```
- */
-class Commit extends Base
-{
- /**
- * @var string
- */
- protected $command = "docker commit";
-
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var string
- */
- protected $cid;
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- */
- public function __construct($cidOrResult)
- {
- $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->cid . ' ' . $this->name . ' ' . $this->arguments;
- }
-
- /**
- * @param $name
- *
- * @return $this
- */
- public function name($name)
- {
- $this->name = $name;
- return $this;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Exec.php b/vendor/consolidation/robo/src/Task/Docker/Exec.php
deleted file mode 100644
index fa67c8da0..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Exec.php
+++ /dev/null
@@ -1,95 +0,0 @@
-taskDockerRun('test_env')
- * ->detached()
- * ->run();
- *
- * $this->taskDockerExec($test)
- * ->interactive()
- * ->exec('./runtests')
- * ->run();
- *
- * // alternatively use commands from other tasks
- *
- * $this->taskDockerExec($test)
- * ->interactive()
- * ->exec($this->taskCodecept()->suite('acceptance'))
- * ->run();
- * ?>
- * ```
- *
- */
-class Exec extends Base
-{
- use CommandReceiver;
-
- /**
- * @var string
- */
- protected $command = "docker exec";
-
- /**
- * @var string
- */
- protected $cid;
-
- /**
- * @var string
- */
- protected $run = '';
-
- /**
- * @param string|\Robo\Result $cidOrResult
- */
- public function __construct($cidOrResult)
- {
- $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;
- }
-
- /**
- * @return $this
- */
- public function detached()
- {
- $this->option('-d');
- return $this;
- }
-
- /**
- * {@inheritdoc)}
- */
- public function interactive($interactive = true)
- {
- if ($interactive) {
- $this->option('-i');
- }
- return parent::interactive($interactive);
- }
-
- /**
- * @param string|\Robo\Contract\CommandInterface $command
- *
- * @return $this
- */
- public function exec($command)
- {
- $this->run = $this->receiveCommand($command);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->arguments . ' ' . $this->cid.' '.$this->run;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Pull.php b/vendor/consolidation/robo/src/Task/Docker/Pull.php
deleted file mode 100644
index 32ba5b40f..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Pull.php
+++ /dev/null
@@ -1,33 +0,0 @@
-taskDockerPull('wordpress')
- * ->run();
- *
- * ?>
- * ```
- *
- */
-class Pull extends Base
-{
- /**
- * @param string $image
- */
- public function __construct($image)
- {
- $this->command = "docker pull $image ";
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->arguments;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Remove.php b/vendor/consolidation/robo/src/Task/Docker/Remove.php
deleted file mode 100644
index 0a8c0ac61..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Remove.php
+++ /dev/null
@@ -1,32 +0,0 @@
-taskDockerRemove($container)
- * ->run();
- * ?>
- * ```
- *
- */
-class Remove extends Base
-{
- /**
- * @param string $container
- */
- public function __construct($container)
- {
- $this->command = "docker rm $container ";
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->arguments;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Result.php b/vendor/consolidation/robo/src/Task/Docker/Result.php
deleted file mode 100644
index 0533159a8..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Result.php
+++ /dev/null
@@ -1,35 +0,0 @@
-taskDockerRun('mysql')->run();
- *
- * $result = $this->taskDockerRun('my_db_image')
- * ->env('DB', 'database_name')
- * ->volume('/path/to/data', '/data')
- * ->detached()
- * ->publish(3306)
- * ->name('my_mysql')
- * ->run();
- *
- * // retrieve container's cid:
- * $this->say("Running container ".$result->getCid());
- *
- * // execute script inside container
- * $result = $this->taskDockerRun('db')
- * ->exec('prepare_test_data.sh')
- * ->run();
- *
- * $this->taskDockerCommit($result)
- * ->name('test_db')
- * ->run();
- *
- * // link containers
- * $mysql = $this->taskDockerRun('mysql')
- * ->name('wp_db') // important to set name for linked container
- * ->env('MYSQL_ROOT_PASSWORD', '123456')
- * ->run();
- *
- * $this->taskDockerRun('wordpress')
- * ->link($mysql)
- * ->publish(80, 8080)
- * ->detached()
- * ->run();
- *
- * ?>
- * ```
- *
- */
-class Run extends Base
-{
- use CommandReceiver;
-
- /**
- * @var string
- */
- protected $image = '';
-
- /**
- * @var string
- */
- protected $run = '';
-
- /**
- * @var string
- */
- protected $cidFile;
-
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var string
- */
- protected $dir;
-
- /**
- * @param string $image
- */
- public function __construct($image)
- {
- $this->image = $image;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getPrinted()
- {
- return $this->isPrinted;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- if ($this->isPrinted) {
- $this->option('-i');
- }
- if ($this->cidFile) {
- $this->option('cidfile', $this->cidFile);
- }
- return trim('docker run ' . $this->arguments . ' ' . $this->image . ' ' . $this->run);
- }
-
- /**
- * @return $this
- */
- public function detached()
- {
- $this->option('-d');
- return $this;
- }
-
- /**
- * {@inheritdoc)}
- */
- public function interactive($interactive = true)
- {
- if ($interactive) {
- $this->option('-i');
- }
- return parent::interactive($interactive);
- }
-
- /**
- * @param string|\Robo\Contract\CommandInterface $run
- *
- * @return $this
- */
- public function exec($run)
- {
- $this->run = $this->receiveCommand($run);
- return $this;
- }
-
- /**
- * @param string $from
- * @param null|string $to
- *
- * @return $this
- */
- public function volume($from, $to = null)
- {
- $volume = $to ? "$from:$to" : $from;
- $this->option('-v', $volume);
- return $this;
- }
-
- /**
- * Set environment variables.
- * n.b. $this->env($variable, $value) also available here,
- * inherited from ExecTrait.
- *
- * @param array $env
- * @return type
- */
- public function envVars(array $env)
- {
- foreach ($env as $variable => $value) {
- $this->setDockerEnv($variable, $value);
- }
- return $this;
- }
-
- /**
- * @param string $variable
- * @param null|string $value
- *
- * @return $this
- */
- protected function setDockerEnv($variable, $value = null)
- {
- $env = $value ? "$variable=$value" : $variable;
- return $this->option("-e", $env);
- }
-
- /**
- * @param null|int $port
- * @param null|int $portTo
- *
- * @return $this
- */
- public function publish($port = null, $portTo = null)
- {
- if (!$port) {
- return $this->option('-P');
- }
- if ($portTo) {
- $port = "$port:$portTo";
- }
- return $this->option('-p', $port);
- }
-
- /**
- * @param string $dir
- *
- * @return $this
- */
- public function containerWorkdir($dir)
- {
- return $this->option('-w', $dir);
- }
-
- /**
- * @param string $user
- *
- * @return $this
- */
- public function user($user)
- {
- return $this->option('-u', $user);
- }
-
- /**
- * @return $this
- */
- public function privileged()
- {
- return $this->option('--privileged');
- }
-
- /**
- * @param string $name
- *
- * @return $this
- */
- public function name($name)
- {
- $this->name = $name;
- return $this->option('name', $name);
- }
-
- /**
- * @param string|\Robo\Task\Docker\Result $name
- * @param string $alias
- *
- * @return $this
- */
- public function link($name, $alias)
- {
- if ($name instanceof Result) {
- $name = $name->getContainerName();
- }
- $this->option('link', "$name:$alias");
- return $this;
- }
-
- /**
- * @param string $dir
- *
- * @return $this
- */
- public function tmpDir($dir)
- {
- $this->dir = $dir;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getTmpDir()
- {
- return $this->dir ? $this->dir : sys_get_temp_dir();
- }
-
- /**
- * @return string
- */
- public function getUniqId()
- {
- return uniqid();
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->cidFile = $this->getTmpDir() . '/docker_' . $this->getUniqId() . '.cid';
- $result = parent::run();
- $result['cid'] = $this->getCid();
- return $result;
- }
-
- /**
- * @return null|string
- */
- protected function getCid()
- {
- if (!$this->cidFile || !file_exists($this->cidFile)) {
- return null;
- }
- $cid = trim(file_get_contents($this->cidFile));
- @unlink($this->cidFile);
- return $cid;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Start.php b/vendor/consolidation/robo/src/Task/Docker/Start.php
deleted file mode 100644
index ef19d74d1..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Start.php
+++ /dev/null
@@ -1,41 +0,0 @@
-taskDockerStart($cidOrResult)
- * ->run();
- * ?>
- * ```
- */
-class Start extends Base
-{
- /**
- * @var string
- */
- protected $command = "docker start";
-
- /**
- * @var null|string
- */
- protected $cid;
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- */
- public function __construct($cidOrResult)
- {
- $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->arguments . ' ' . $this->cid;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/Stop.php b/vendor/consolidation/robo/src/Task/Docker/Stop.php
deleted file mode 100644
index 4d0d436d3..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/Stop.php
+++ /dev/null
@@ -1,41 +0,0 @@
-taskDockerStop($cidOrResult)
- * ->run();
- * ?>
- * ```
- */
-class Stop extends Base
-{
- /**
- * @var string
- */
- protected $command = "docker stop";
-
- /**
- * @var null|string
- */
- protected $cid;
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- */
- public function __construct($cidOrResult)
- {
- $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . ' ' . $this->arguments . ' ' . $this->cid;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Docker/loadTasks.php b/vendor/consolidation/robo/src/Task/Docker/loadTasks.php
deleted file mode 100644
index e58f5ef0c..000000000
--- a/vendor/consolidation/robo/src/Task/Docker/loadTasks.php
+++ /dev/null
@@ -1,85 +0,0 @@
-task(Run::class, $image);
- }
-
- /**
- * @param string $image
- *
- * @return \Robo\Task\Docker\Pull
- */
- protected function taskDockerPull($image)
- {
- return $this->task(Pull::class, $image);
- }
-
- /**
- * @param string $path
- *
- * @return \Robo\Task\Docker\Build
- */
- protected function taskDockerBuild($path = '.')
- {
- return $this->task(Build::class, $path);
- }
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- *
- * @return \Robo\Task\Docker\Stop
- */
- protected function taskDockerStop($cidOrResult)
- {
- return $this->task(Stop::class, $cidOrResult);
- }
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- *
- * @return \Robo\Task\Docker\Commit
- */
- protected function taskDockerCommit($cidOrResult)
- {
- return $this->task(Commit::class, $cidOrResult);
- }
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- *
- * @return \Robo\Task\Docker\Start
- */
- protected function taskDockerStart($cidOrResult)
- {
- return $this->task(Start::class, $cidOrResult);
- }
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- *
- * @return \Robo\Task\Docker\Remove
- */
- protected function taskDockerRemove($cidOrResult)
- {
- return $this->task(Remove::class, $cidOrResult);
- }
-
- /**
- * @param string|\Robo\Task\Docker\Result $cidOrResult
- *
- * @return \Robo\Task\Docker\Exec
- */
- protected function taskDockerExec($cidOrResult)
- {
- return $this->task(Exec::class, $cidOrResult);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/File/Concat.php b/vendor/consolidation/robo/src/Task/File/Concat.php
deleted file mode 100644
index 12b1eca00..000000000
--- a/vendor/consolidation/robo/src/Task/File/Concat.php
+++ /dev/null
@@ -1,101 +0,0 @@
-taskConcat([
- * 'web/assets/screen.css',
- * 'web/assets/print.css',
- * 'web/assets/theme.css'
- * ])
- * ->to('web/assets/style.css')
- * ->run()
- * ?>
- * ```
- */
-class Concat extends BaseTask
-{
- use ResourceExistenceChecker;
-
- /**
- * @var array|Iterator
- */
- protected $files;
-
- /**
- * @var string
- */
- protected $dst;
-
- /**
- * Constructor.
- *
- * @param array|Iterator $files
- */
- public function __construct($files)
- {
- $this->files = $files;
- }
-
- /**
- * set the destination file
- *
- * @param string $dst
- *
- * @return $this
- */
- public function to($dst)
- {
- $this->dst = $dst;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (is_null($this->dst) || "" === $this->dst) {
- return Result::error($this, 'You must specify a destination file with to() method.');
- }
-
- if (!$this->checkResources($this->files, 'file')) {
- return Result::error($this, 'Source files are missing!');
- }
-
- if (file_exists($this->dst) && !is_writable($this->dst)) {
- return Result::error($this, 'Destination already exists and cannot be overwritten.');
- }
-
- $dump = '';
-
- foreach ($this->files as $path) {
- foreach (glob($path) as $file) {
- $dump .= file_get_contents($file) . "\n";
- }
- }
-
- $this->printTaskInfo('Writing {destination}', ['destination' => $this->dst]);
-
- $dst = $this->dst . '.part';
- $write_result = file_put_contents($dst, $dump);
-
- if (false === $write_result) {
- @unlink($dst);
- return Result::error($this, 'File write failed.');
- }
- // Cannot be cross-volume; should always succeed.
- @rename($dst, $this->dst);
-
- return Result::success($this);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/File/Replace.php b/vendor/consolidation/robo/src/Task/File/Replace.php
deleted file mode 100644
index 0107df13c..000000000
--- a/vendor/consolidation/robo/src/Task/File/Replace.php
+++ /dev/null
@@ -1,141 +0,0 @@
-taskReplaceInFile('VERSION')
- * ->from('0.2.0')
- * ->to('0.3.0')
- * ->run();
- *
- * $this->taskReplaceInFile('README.md')
- * ->from(date('Y')-1)
- * ->to(date('Y'))
- * ->run();
- *
- * $this->taskReplaceInFile('config.yml')
- * ->regex('~^service:~')
- * ->to('services:')
- * ->run();
- *
- * $this->taskReplaceInFile('box/robo.txt')
- * ->from(array('##dbname##', '##dbhost##'))
- * ->to(array('robo', 'localhost'))
- * ->run();
- * ?>
- * ```
- */
-class Replace extends BaseTask
-{
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var string|string[]
- */
- protected $from;
-
- /**
- * @var string|string[]
- */
- protected $to;
-
- /**
- * @var string
- */
- protected $regex;
-
- /**
- * @param string $filename
- */
- public function __construct($filename)
- {
- $this->filename = $filename;
- }
-
- /**
- * @param string $filename
- *
- * @return $this
- */
- public function filename($filename)
- {
- $this->filename = $filename;
- return $this;
- }
-
- /**
- * String(s) to be replaced.
- *
- * @param string|string[] $from
- *
- * @return $this
- */
- public function from($from)
- {
- $this->from = $from;
- return $this;
- }
-
- /**
- * Value(s) to be set as a replacement.
- *
- * @param string|string[] $to
- *
- * @return $this
- */
- public function to($to)
- {
- $this->to = $to;
- return $this;
- }
-
- /**
- * Regex to match string to be replaced.
- *
- * @param string $regex
- *
- * @return $this
- */
- public function regex($regex)
- {
- $this->regex = $regex;
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!file_exists($this->filename)) {
- $this->printTaskError('File {filename} does not exist', ['filename' => $this->filename]);
- return false;
- }
-
- $text = file_get_contents($this->filename);
- if ($this->regex) {
- $text = preg_replace($this->regex, $this->to, $text, -1, $count);
- } else {
- $text = str_replace($this->from, $this->to, $text, $count);
- }
- if ($count > 0) {
- $res = file_put_contents($this->filename, $text);
- if ($res === false) {
- return Result::error($this, "Error writing to file {filename}.", ['filename' => $this->filename]);
- }
- $this->printTaskSuccess("{filename} updated. {count} items replaced", ['filename' => $this->filename, 'count' => $count]);
- } else {
- $this->printTaskInfo("{filename} unchanged. {count} items replaced", ['filename' => $this->filename, 'count' => $count]);
- }
- return Result::success($this, '', ['replaced' => $count]);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/File/TmpFile.php b/vendor/consolidation/robo/src/Task/File/TmpFile.php
deleted file mode 100644
index 4a18691d6..000000000
--- a/vendor/consolidation/robo/src/Task/File/TmpFile.php
+++ /dev/null
@@ -1,72 +0,0 @@
-collectionBuilder();
- * $tmpFilePath = $collection->taskTmpFile()
- * ->line('-----')
- * ->line(date('Y-m-d').' '.$title)
- * ->line('----')
- * ->getPath();
- * $collection->run();
- * ?>
- * ```
- */
-class TmpFile extends Write implements CompletionInterface
-{
- /**
- * @param string $filename
- * @param string $extension
- * @param string $baseDir
- * @param bool $includeRandomPart
- */
- public function __construct($filename = 'tmp', $extension = '', $baseDir = '', $includeRandomPart = true)
- {
- if (empty($baseDir)) {
- $baseDir = sys_get_temp_dir();
- }
- if ($includeRandomPart) {
- $random = static::randomString();
- $filename = "{$filename}_{$random}";
- }
- $filename .= $extension;
- parent::__construct("{$baseDir}/{$filename}");
- }
-
- /**
- * Generate a suitably random string to use as the suffix for our
- * temporary file.
- *
- * @param int $length
- *
- * @return string
- */
- private static function randomString($length = 12)
- {
- return substr(str_shuffle('23456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'), 0, $length);
- }
-
- /**
- * Delete this file when our collection completes.
- * If this temporary file is not part of a collection,
- * then it will be deleted when the program terminates,
- * presuming that it was created by taskTmpFile() or _tmpFile().
- */
- public function complete()
- {
- unlink($this->getPath());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/File/Write.php b/vendor/consolidation/robo/src/Task/File/Write.php
deleted file mode 100644
index dc2199f92..000000000
--- a/vendor/consolidation/robo/src/Task/File/Write.php
+++ /dev/null
@@ -1,335 +0,0 @@
-taskWriteToFile('blogpost.md')
- * ->line('-----')
- * ->line(date('Y-m-d').' '.$title)
- * ->line('----')
- * ->run();
- * ?>
- * ```
- */
-class Write extends BaseTask
-{
- /**
- * @var array
- */
- protected $stack = [];
-
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var bool
- */
- protected $append = false;
-
- /**
- * @var null|string
- */
- protected $originalContents = null;
-
- /**
- * @param string $filename
- */
- public function __construct($filename)
- {
- $this->filename = $filename;
- }
-
- /**
- * @param string $filename
- *
- * @return $this
- */
- public function filename($filename)
- {
- $this->filename = $filename;
- return $this;
- }
-
- /**
- * @param bool $append
- *
- * @return $this
- */
- public function append($append = true)
- {
- $this->append = $append;
- return $this;
- }
-
- /**
- * add a line.
- *
- * @param string $line
- *
- * @return $this The current instance
- */
- public function line($line)
- {
- $this->text($line . "\n");
- return $this;
- }
-
- /**
- * add more lines.
- *
- * @param array $lines
- *
- * @return $this The current instance
- */
- public function lines(array $lines)
- {
- $this->text(implode("\n", $lines) . "\n");
- return $this;
- }
-
- /**
- * add a text.
- *
- * @param string $text
- *
- * @return $this The current instance
- */
- public function text($text)
- {
- $this->stack[] = array_merge([__FUNCTION__ . 'Collect'], func_get_args());
- return $this;
- }
-
- /**
- * add a text from a file.
- *
- * Note that the file is read in the run() method of this task.
- * To load text from the current state of a file (e.g. one that may
- * be deleted or altered by other tasks prior the execution of this one),
- * use:
- * $task->text(file_get_contents($filename));
- *
- * @param string $filename
- *
- * @return $this The current instance
- */
- public function textFromFile($filename)
- {
- $this->stack[] = array_merge([__FUNCTION__ . 'Collect'], func_get_args());
- return $this;
- }
-
- /**
- * substitute a placeholder with value, placeholder must be enclosed by `{}`.
- *
- * @param string $name
- * @param string $val
- *
- * @return $this The current instance
- */
- public function place($name, $val)
- {
- $this->replace('{'.$name.'}', $val);
-
- return $this;
- }
-
- /**
- * replace any string with value.
- *
- * @param string $string
- * @param string $replacement
- *
- * @return $this The current instance
- */
- public function replace($string, $replacement)
- {
- $this->stack[] = array_merge([__FUNCTION__ . 'Collect'], func_get_args());
- return $this;
- }
-
- /**
- * replace any string with value using regular expression.
- *
- * @param string $pattern
- * @param string $replacement
- *
- * @return $this The current instance
- */
- public function regexReplace($pattern, $replacement)
- {
- $this->stack[] = array_merge([__FUNCTION__ . 'Collect'], func_get_args());
- return $this;
- }
-
- /**
- * Append the provided text to the end of the buffer if the provided
- * regex pattern matches any text already in the buffer.
- *
- * @param string $pattern
- * @param string $text
- *
- * @return $this
- */
- public function appendIfMatches($pattern, $text)
- {
- $this->stack[] = array_merge(['appendIfMatchesCollect'], [$pattern, $text, true]);
- return $this;
- }
-
- /**
- * Append the provided text to the end of the buffer unless the provided
- * regex pattern matches any text already in the buffer.
- *
- * @param string $pattern
- * @param string $text
- *
- * @return $this
- */
- public function appendUnlessMatches($pattern, $text)
- {
- $this->stack[] = array_merge(['appendIfMatchesCollect'], [$pattern, $text, false]);
- return $this;
- }
-
- /**
- * @param $contents string
- * @param $filename string
- *
- * @return string
- */
- protected function textFromFileCollect($contents, $filename)
- {
- if (file_exists($filename)) {
- $contents .= file_get_contents($filename);
- }
- return $contents;
- }
-
- /**
- * @param string|string[] $contents
- * @param string|string[] $string
- * @param string|string[] $replacement
- *
- * @return string|string[]
- */
- protected function replaceCollect($contents, $string, $replacement)
- {
- return str_replace($string, $replacement, $contents);
- }
-
- /**
- * @param string|string[] $contents
- * @param string|string[] $pattern
- * @param string|string[] $replacement
- *
- * @return string|string[]
- */
- protected function regexReplaceCollect($contents, $pattern, $replacement)
- {
- return preg_replace($pattern, $replacement, $contents);
- }
-
- /**
- * @param string $contents
- * @param string $text
- *
- * @return string
- */
- protected function textCollect($contents, $text)
- {
- return $contents . $text;
- }
-
- /**
- * @param string $contents
- * @param string $pattern
- * @param string $text
- * @param bool $shouldMatch
- *
- * @return string
- */
- protected function appendIfMatchesCollect($contents, $pattern, $text, $shouldMatch)
- {
- if (preg_match($pattern, $contents) == $shouldMatch) {
- $contents .= $text;
- }
- return $contents;
- }
-
- /**
- * @return string
- */
- public function originalContents()
- {
- if (!isset($this->originalContents)) {
- $this->originalContents = '';
- if (file_exists($this->filename)) {
- $this->originalContents = file_get_contents($this->filename);
- }
- }
- return $this->originalContents;
- }
-
- /**
- * @return bool
- */
- public function wouldChange()
- {
- return $this->originalContents() != $this->getContentsToWrite();
- }
-
- /**
- * @return string
- */
- protected function getContentsToWrite()
- {
- $contents = "";
- if ($this->append) {
- $contents = $this->originalContents();
- }
- foreach ($this->stack as $action) {
- $command = array_shift($action);
- if (method_exists($this, $command)) {
- array_unshift($action, $contents);
- $contents = call_user_func_array([$this, $command], $action);
- }
- }
- return $contents;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo("Writing to {filename}.", ['filename' => $this->filename]);
- $contents = $this->getContentsToWrite();
- if (!file_exists(dirname($this->filename))) {
- mkdir(dirname($this->filename), 0777, true);
- }
- $res = file_put_contents($this->filename, $contents);
- if ($res === false) {
- return Result::error($this, "File {$this->filename} couldn't be created");
- }
-
- return Result::success($this);
- }
-
- /**
- * @return string
- */
- public function getPath()
- {
- return $this->filename;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/File/loadTasks.php b/vendor/consolidation/robo/src/Task/File/loadTasks.php
deleted file mode 100644
index c5f39c950..000000000
--- a/vendor/consolidation/robo/src/Task/File/loadTasks.php
+++ /dev/null
@@ -1,48 +0,0 @@
-task(Concat::class, $files);
- }
-
- /**
- * @param string $file
- *
- * @return \Robo\Task\File\Replace
- */
- protected function taskReplaceInFile($file)
- {
- return $this->task(Replace::class, $file);
- }
-
- /**
- * @param string $file
- *
- * @return \Robo\Task\File\Write
- */
- protected function taskWriteToFile($file)
- {
- return $this->task(Write::class, $file);
- }
-
- /**
- * @param string $filename
- * @param string $extension
- * @param string $baseDir
- * @param bool $includeRandomPart
- *
- * @return \Robo\Task\File\TmpFile
- */
- protected function taskTmpFile($filename = 'tmp', $extension = '', $baseDir = '', $includeRandomPart = true)
- {
- return $this->task(TmpFile::class, $filename, $extension, $baseDir, $includeRandomPart);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/BaseDir.php b/vendor/consolidation/robo/src/Task/Filesystem/BaseDir.php
deleted file mode 100644
index 434334d79..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/BaseDir.php
+++ /dev/null
@@ -1,30 +0,0 @@
-dirs = $dirs
- : $this->dirs[] = $dirs;
-
- $this->fs = new sfFilesystem();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/CleanDir.php b/vendor/consolidation/robo/src/Task/Filesystem/CleanDir.php
deleted file mode 100644
index 762f85509..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/CleanDir.php
+++ /dev/null
@@ -1,63 +0,0 @@
-taskCleanDir(['tmp','logs'])->run();
- * // as shortcut
- * $this->_cleanDir('app/cache');
- * ?>
- * ```
- */
-class CleanDir extends BaseDir
-{
- use ResourceExistenceChecker;
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!$this->checkResources($this->dirs, 'dir')) {
- return Result::error($this, 'Source directories are missing!');
- }
- foreach ($this->dirs as $dir) {
- $this->emptyDir($dir);
- $this->printTaskInfo("Cleaned {dir}", ['dir' => $dir]);
- }
- return Result::success($this);
- }
-
- /**
- * @param string $path
- */
- protected function emptyDir($path)
- {
- $iterator = new \RecursiveIteratorIterator(
- new \RecursiveDirectoryIterator($path),
- \RecursiveIteratorIterator::CHILD_FIRST
- );
-
- foreach ($iterator as $path) {
- if ($path->isDir()) {
- $dir = (string)$path;
- if (basename($dir) === '.' || basename($dir) === '..') {
- continue;
- }
- $this->fs->remove($dir);
- } else {
- $file = (string)$path;
- if (basename($file) === '.gitignore' || basename($file) === '.gitkeep') {
- continue;
- }
- $this->fs->remove($file);
- }
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/CopyDir.php b/vendor/consolidation/robo/src/Task/Filesystem/CopyDir.php
deleted file mode 100644
index 084822229..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/CopyDir.php
+++ /dev/null
@@ -1,162 +0,0 @@
-taskCopyDir(['dist/config' => 'config'])->run();
- * // as shortcut
- * $this->_copyDir('dist/config', 'config');
- * ?>
- * ```
- */
-class CopyDir extends BaseDir
-{
- use ResourceExistenceChecker;
-
- /**
- * Explicitly declare our consturctor, so that
- * our copyDir() method does not look like a php4 constructor.
- */
- public function __construct($dirs)
- {
- parent::__construct($dirs);
- }
-
- /**
- * @var int
- */
- protected $chmod = 0755;
-
- /**
- * Files to exclude on copying.
- *
- * @var string[]
- */
- protected $exclude = [];
-
- /**
- * Overwrite destination files newer than source files.
- */
- protected $overwrite = true;
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!$this->checkResources($this->dirs, 'dir')) {
- return Result::error($this, 'Source directories are missing!');
- }
- foreach ($this->dirs as $src => $dst) {
- $this->copyDir($src, $dst);
- $this->printTaskInfo('Copied from {source} to {destination}', ['source' => $src, 'destination' => $dst]);
- }
- return Result::success($this);
- }
-
- /**
- * Sets the default folder permissions for the destination if it doesn't exist
- *
- * @link http://en.wikipedia.org/wiki/Chmod
- * @link http://php.net/manual/en/function.mkdir.php
- * @link http://php.net/manual/en/function.chmod.php
- *
- * @param int $value
- *
- * @return $this
- */
- public function dirPermissions($value)
- {
- $this->chmod = (int)$value;
- return $this;
- }
-
- /**
- * List files to exclude.
- *
- * @param string[] $exclude
- *
- * @return $this
- */
- public function exclude($exclude = [])
- {
- $this->exclude = $this->simplifyForCompare($exclude);
- return $this;
- }
-
- /**
- * Destination files newer than source files are overwritten.
- *
- * @param bool $overwrite
- *
- * @return $this
- */
- public function overwrite($overwrite)
- {
- $this->overwrite = $overwrite;
- return $this;
- }
-
- /**
- * Copies a directory to another location.
- *
- * @param string $src Source directory
- * @param string $dst Destination directory
- * @param string $parent Parent directory
- *
- * @throws \Robo\Exception\TaskException
- */
- protected function copyDir($src, $dst, $parent = '')
- {
- $dir = @opendir($src);
- if (false === $dir) {
- throw new TaskException($this, "Cannot open source directory '" . $src . "'");
- }
- if (!is_dir($dst)) {
- mkdir($dst, $this->chmod, true);
- }
- while (false !== ($file = readdir($dir))) {
- // Support basename and full path exclusion.
- if ($this->excluded($file, $src, $parent)) {
- continue;
- }
- $srcFile = $src . '/' . $file;
- $destFile = $dst . '/' . $file;
- if (is_dir($srcFile)) {
- $this->copyDir($srcFile, $destFile, $parent . $file . DIRECTORY_SEPARATOR);
- } else {
- $this->fs->copy($srcFile, $destFile, $this->overwrite);
- }
- }
- closedir($dir);
- }
-
- /**
- * Check to see if the current item is excluded.
- */
- protected function excluded($file, $src, $parent)
- {
- return
- ($file == '.') ||
- ($file == '..') ||
- in_array($file, $this->exclude) ||
- in_array($this->simplifyForCompare($parent . $file), $this->exclude) ||
- in_array($this->simplifyForCompare($src . DIRECTORY_SEPARATOR . $file), $this->exclude);
- }
-
- /**
- * Avoid problems comparing paths on Windows that may have a
- * combination of DIRECTORY_SEPARATOR and /.
- */
- protected function simplifyForCompare($item)
- {
- return str_replace(DIRECTORY_SEPARATOR, '/', $item);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/DeleteDir.php b/vendor/consolidation/robo/src/Task/Filesystem/DeleteDir.php
deleted file mode 100644
index 25cf007b5..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/DeleteDir.php
+++ /dev/null
@@ -1,36 +0,0 @@
-taskDeleteDir('tmp')->run();
- * // as shortcut
- * $this->_deleteDir(['tmp', 'log']);
- * ?>
- * ```
- */
-class DeleteDir extends BaseDir
-{
- use ResourceExistenceChecker;
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (!$this->checkResources($this->dirs, 'dir')) {
- return Result::error($this, 'Source directories are missing!');
- }
- foreach ($this->dirs as $dir) {
- $this->fs->remove($dir);
- $this->printTaskInfo("Deleted {dir}...", ['dir' => $dir]);
- }
- return Result::success($this);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/FilesystemStack.php b/vendor/consolidation/robo/src/Task/Filesystem/FilesystemStack.php
deleted file mode 100644
index 8663e245d..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/FilesystemStack.php
+++ /dev/null
@@ -1,154 +0,0 @@
-taskFilesystemStack()
- * ->mkdir('logs')
- * ->touch('logs/.gitignore')
- * ->chgrp('www', 'www-data')
- * ->symlink('/var/log/nginx/error.log', 'logs/error.log')
- * ->run();
- *
- * // one line
- * $this->_touch('.gitignore');
- * $this->_mkdir('logs');
- *
- * ?>
- * ```
- *
- * @method $this mkdir(string|array|\Traversable $dir, int $mode = 0777)
- * @method $this touch(string|array|\Traversable $file, int $time = null, int $atime = null)
- * @method $this copy(string $from, string $to, bool $force = false)
- * @method $this chmod(string|array|\Traversable $file, int $permissions, int $umask = 0000, bool $recursive = false)
- * @method $this chgrp(string|array|\Traversable $file, string $group, bool $recursive = false)
- * @method $this chown(string|array|\Traversable $file, string $user, bool $recursive = false)
- * @method $this remove(string|array|\Traversable $file)
- * @method $this rename(string $from, string $to, bool $force = false)
- * @method $this symlink(string $from, string $to, bool $copyOnWindows = false)
- * @method $this mirror(string $from, string $to, \Traversable $iterator = null, array $options = [])
- */
-class FilesystemStack extends StackBasedTask implements BuilderAwareInterface
-{
- use BuilderAwareTrait;
-
- /**
- * @var \Symfony\Component\Filesystem\Filesystem
- */
- protected $fs;
-
- public function __construct()
- {
- $this->fs = new sfFilesystem();
- }
-
- /**
- * @return \Symfony\Component\Filesystem\Filesystem
- */
- protected function getDelegate()
- {
- return $this->fs;
- }
-
- /**
- * @param string $from
- * @param string $to
- * @param bool $force
- */
- protected function _copy($from, $to, $force = false)
- {
- $this->fs->copy($from, $to, $force);
- }
-
- /**
- * @param string|string[]|\Traversable $file
- * @param int $permissions
- * @param int $umask
- * @param bool $recursive
- */
- protected function _chmod($file, $permissions, $umask = 0000, $recursive = false)
- {
- $this->fs->chmod($file, $permissions, $umask, $recursive);
- }
-
- /**
- * @param string|string[]|\Traversable $file
- * @param string $group
- * @param bool $recursive
- */
- protected function _chgrp($file, $group, $recursive = null)
- {
- $this->fs->chgrp($file, $group, $recursive);
- }
-
- /**
- * @param string|string[]|\Traversable $file
- * @param string $user
- * @param bool $recursive
- */
- protected function _chown($file, $user, $recursive = null)
- {
- $this->fs->chown($file, $user, $recursive);
- }
-
- /**
- * @param string $origin
- * @param string $target
- * @param bool $overwrite
- *
- * @return null|true|\Robo\Result
- */
- protected function _rename($origin, $target, $overwrite = false)
- {
- // we check that target does not exist
- if ((!$overwrite && is_readable($target)) || (file_exists($target) && !is_writable($target))) {
- throw new IOException(sprintf('Cannot rename because the target "%s" already exists.', $target), 0, null, $target);
- }
-
- // Due to a bug (limitation) in PHP, cross-volume renames do not work.
- // See: https://bugs.php.net/bug.php?id=54097
- if (true !== @rename($origin, $target)) {
- return $this->crossVolumeRename($origin, $target);
- }
- return true;
- }
-
- /**
- * @param string $origin
- * @param string $target
- *
- * @return null|\Robo\Result
- */
- protected function crossVolumeRename($origin, $target)
- {
- // First step is to try to get rid of the target. If there
- // is a single, deletable file, then we will just unlink it.
- if (is_file($target)) {
- unlink($target);
- }
- // If the target still exists, we will try to delete it.
- // TODO: Note that if this fails partway through, then we cannot
- // adequately rollback. Perhaps we need to preflight the operation
- // and determine if everything inside of $target is writable.
- if (file_exists($target)) {
- $this->fs->remove($target);
- }
-
- /** @var \Robo\Result $result */
- $result = $this->collectionBuilder()->taskCopyDir([$origin => $target])->run();
- if (!$result->wasSuccessful()) {
- return $result;
- }
- $this->fs->remove($origin);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/FlattenDir.php b/vendor/consolidation/robo/src/Task/Filesystem/FlattenDir.php
deleted file mode 100644
index 6e885112e..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/FlattenDir.php
+++ /dev/null
@@ -1,294 +0,0 @@
-taskFlattenDir(['assets/*.min.js' => 'dist'])->run();
- * // or use shortcut
- * $this->_flattenDir('assets/*.min.js', 'dist');
- * ?>
- * ```
- *
- * You can also define the target directory with an additional method, instead of
- * key/value pairs. More similar to the gulp-flatten syntax:
- *
- * ``` php
- * taskFlattenDir(['assets/*.min.js'])
- * ->to('dist')
- * ->run();
- * ?>
- * ```
- *
- * You can also append parts of the parent directories to the target path. If you give
- * the value `1` to the `includeParents()` method, then the top parent will be appended
- * to the target directory resulting in a path such as `dist/assets/asset-library1.min.js`.
- *
- * If you give a negative number, such as `-1` (the same as specifying `array(0, 1)` then
- * the bottom parent will be appended, resulting in a path such as
- * `dist/asset-library1/asset-library1.min.js`.
- *
- * The top parent directory will always be starting from the relative path to the current
- * directory. You can override that with the `parentDir()` method. If in the above example
- * you would specify `assets`, then the top parent directory would be `asset-library1`.
- *
- * ``` php
- * taskFlattenDir(['assets/*.min.js' => 'dist'])
- * ->parentDir('assets')
- * ->includeParents(1)
- * ->run();
- * ?>
- * ```
- */
-class FlattenDir extends BaseDir
-{
- /**
- * @var int
- */
- protected $chmod = 0755;
-
- /**
- * @var int[]
- */
- protected $parents = array(0, 0);
-
- /**
- * @var string
- */
- protected $parentDir = '';
-
- /**
- * @var string
- */
- protected $to;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($dirs)
- {
- parent::__construct($dirs);
- $this->parentDir = getcwd();
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- // find the files
- $files = $this->findFiles($this->dirs);
-
- // copy the files
- $this->copyFiles($files);
-
- $fileNoun = count($files) == 1 ? ' file' : ' files';
- $this->printTaskSuccess("Copied {count} $fileNoun to {destination}", ['count' => count($files), 'destination' => $this->to]);
-
- return Result::success($this);
- }
-
- /**
- * Sets the default folder permissions for the destination if it does not exist.
- *
- * @link http://en.wikipedia.org/wiki/Chmod
- * @link http://php.net/manual/en/function.mkdir.php
- * @link http://php.net/manual/en/function.chmod.php
- *
- * @param int $permission
- *
- * @return $this
- */
- public function dirPermissions($permission)
- {
- $this->chmod = (int) $permission;
-
- return $this;
- }
-
- /**
- * Sets the value from which direction and how much parent dirs should be included.
- * Accepts a positive or negative integer or an array with two integer values.
- *
- * @param int|int[] $parents
- *
- * @return $this
- *
- * @throws TaskException
- */
- public function includeParents($parents)
- {
- if (is_int($parents)) {
- // if an integer is given check whether it is for top or bottom parent
- if ($parents >= 0) {
- $this->parents[0] = $parents;
- return $this;
- }
- $this->parents[1] = 0 - $parents;
- return $this;
- }
-
- if (is_array($parents)) {
- // check if the array has two values no more, no less
- if (count($parents) == 2) {
- $this->parents = $parents;
- return $this;
- }
- }
-
- throw new TaskException($this, 'includeParents expects an integer or an array with two values');
- }
-
- /**
- * Sets the parent directory from which the relative parent directories will be calculated.
- *
- * @param string $dir
- *
- * @return $this
- */
- public function parentDir($dir)
- {
- if (!$this->fs->isAbsolutePath($dir)) {
- // attach the relative path to current working directory
- $dir = getcwd().'/'.$dir;
- }
- $this->parentDir = $dir;
-
- return $this;
- }
-
- /**
- * Sets the target directory where the files will be copied to.
- *
- * @param string $target
- *
- * @return $this
- */
- public function to($target)
- {
- $this->to = rtrim($target, '/');
-
- return $this;
- }
-
- /**
- * @param array $dirs
- *
- * @return array|\Robo\Result
- *
- * @throws \Robo\Exception\TaskException
- */
- protected function findFiles($dirs)
- {
- $files = array();
-
- // find the files
- foreach ($dirs as $k => $v) {
- // reset finder
- $finder = new Finder();
-
- $dir = $k;
- $to = $v;
- // check if target was given with the to() method instead of key/value pairs
- if (is_int($k)) {
- $dir = $v;
- if (isset($this->to)) {
- $to = $this->to;
- } else {
- throw new TaskException($this, 'target directory is not defined');
- }
- }
-
- try {
- $finder->files()->in($dir);
- } catch (\InvalidArgumentException $e) {
- // if finder cannot handle it, try with in()->name()
- if (strpos($dir, '/') === false) {
- $dir = './'.$dir;
- }
- $parts = explode('/', $dir);
- $new_dir = implode('/', array_slice($parts, 0, -1));
- try {
- $finder->files()->in($new_dir)->name(array_pop($parts));
- } catch (\InvalidArgumentException $e) {
- return Result::fromException($this, $e);
- }
- }
-
- foreach ($finder as $file) {
- // store the absolute path as key and target as value in the files array
- $files[$file->getRealpath()] = $this->getTarget($file->getRealPath(), $to);
- }
- $fileNoun = count($files) == 1 ? ' file' : ' files';
- $this->printTaskInfo("Found {count} $fileNoun in {dir}", ['count' => count($files), 'dir' => $dir]);
- }
-
- return $files;
- }
-
- /**
- * @param string $file
- * @param string $to
- *
- * @return string
- */
- protected function getTarget($file, $to)
- {
- $target = $to.'/'.basename($file);
- if ($this->parents !== array(0, 0)) {
- // if the parent is set, create additional directories inside target
- // get relative path to parentDir
- $rel_path = $this->fs->makePathRelative(dirname($file), $this->parentDir);
- // get top parents and bottom parents
- $parts = explode('/', rtrim($rel_path, '/'));
- $prefix_dir = '';
- $prefix_dir .= ($this->parents[0] > 0 ? implode('/', array_slice($parts, 0, $this->parents[0])).'/' : '');
- $prefix_dir .= ($this->parents[1] > 0 ? implode('/', array_slice($parts, (0 - $this->parents[1]), $this->parents[1])) : '');
- $prefix_dir = rtrim($prefix_dir, '/');
- $target = $to.'/'.$prefix_dir.'/'.basename($file);
- }
-
- return $target;
- }
-
- /**
- * @param array $files
- */
- protected function copyFiles($files)
- {
- // copy the files
- foreach ($files as $from => $to) {
- // check if target dir exists
- if (!is_dir(dirname($to))) {
- $this->fs->mkdir(dirname($to), $this->chmod);
- }
- $this->fs->copy($from, $to);
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/MirrorDir.php b/vendor/consolidation/robo/src/Task/Filesystem/MirrorDir.php
deleted file mode 100644
index 4eda9097b..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/MirrorDir.php
+++ /dev/null
@@ -1,40 +0,0 @@
-taskMirrorDir(['dist/config/' => 'config/'])->run();
- * // or use shortcut
- * $this->_mirrorDir('dist/config/', 'config/');
- *
- * ?>
- * ```
- */
-class MirrorDir extends BaseDir
-{
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- foreach ($this->dirs as $src => $dst) {
- $this->fs->mirror(
- $src,
- $dst,
- null,
- [
- 'override' => true,
- 'copy_on_windows' => true,
- 'delete' => true
- ]
- );
- $this->printTaskInfo("Mirrored from {source} to {destination}", ['source' => $src, 'destination' => $dst]);
- }
- return Result::success($this);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/TmpDir.php b/vendor/consolidation/robo/src/Task/Filesystem/TmpDir.php
deleted file mode 100644
index 104318ded..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/TmpDir.php
+++ /dev/null
@@ -1,173 +0,0 @@
-run().
- * $collection = $this->collectionBuilder();
- * $tmpPath = $collection->tmpDir()->getPath();
- * $collection->taskFilesystemStack()
- * ->mkdir("$tmpPath/log")
- * ->touch("$tmpPath/log/error.txt");
- * $collection->run();
- * // as shortcut (deleted when program exits)
- * $tmpPath = $this->_tmpDir();
- * ?>
- * ```
- */
-class TmpDir extends BaseDir implements CompletionInterface
-{
- /**
- * @var string
- */
- protected $base;
-
- /**
- * @var string
- */
- protected $prefix;
-
- /**
- * @var bool
- */
- protected $cwd;
-
- /**
- * @var string
- */
- protected $savedWorkingDirectory;
-
- /**
- * @param string $prefix
- * @param string $base
- * @param bool $includeRandomPart
- */
- public function __construct($prefix = 'tmp', $base = '', $includeRandomPart = true)
- {
- if (empty($base)) {
- $base = sys_get_temp_dir();
- }
- $path = "{$base}/{$prefix}";
- if ($includeRandomPart) {
- $path = static::randomLocation($path);
- }
- parent::__construct(["$path"]);
- }
-
- /**
- * Add a random part to a path, ensuring that the directory does
- * not (currently) exist.
- *
- * @param string $path The base/prefix path to add a random component to
- * @param int $length Number of digits in the random part
- *
- * @return string
- */
- protected static function randomLocation($path, $length = 12)
- {
- $random = static::randomString($length);
- while (is_dir("{$path}_{$random}")) {
- $random = static::randomString($length);
- }
- return "{$path}_{$random}";
- }
-
- /**
- * Generate a suitably random string to use as the suffix for our
- * temporary directory.
- *
- * @param int $length
- *
- * @return string
- */
- protected static function randomString($length = 12)
- {
- return substr(str_shuffle('23456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'), 0, max($length, 3));
- }
-
- /**
- * Flag that we should cwd to the temporary directory when it is
- * created, and restore the old working directory when it is deleted.
- *
- * @param bool $shouldChangeWorkingDirectory
- *
- * @return $this
- */
- public function cwd($shouldChangeWorkingDirectory = true)
- {
- $this->cwd = $shouldChangeWorkingDirectory;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- // Save the current working directory
- $this->savedWorkingDirectory = getcwd();
- foreach ($this->dirs as $dir) {
- $this->fs->mkdir($dir);
- $this->printTaskInfo("Created {dir}...", ['dir' => $dir]);
-
- // Change the current working directory, if requested
- if ($this->cwd) {
- chdir($dir);
- }
- }
-
- return Result::success($this, '', ['path' => $this->getPath()]);
- }
-
- protected function restoreWorkingDirectory()
- {
- // Restore the current working directory, if we redirected it.
- if ($this->cwd) {
- chdir($this->savedWorkingDirectory);
- }
- }
-
- protected function deleteTmpDir()
- {
- foreach ($this->dirs as $dir) {
- $this->fs->remove($dir);
- }
- }
-
- /**
- * Delete this directory when our collection completes.
- * If this temporary directory is not part of a collection,
- * then it will be deleted when the program terminates,
- * presuming that it was created by taskTmpDir() or _tmpDir().
- */
- public function complete()
- {
- $this->restoreWorkingDirectory();
- $this->deleteTmpDir();
- }
-
- /**
- * Get a reference to the path to the temporary directory, so that
- * it may be used to create other tasks. Note that the directory
- * is not actually created until the task runs.
- *
- * @return string
- */
- public function getPath()
- {
- return $this->dirs[0];
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/WorkDir.php b/vendor/consolidation/robo/src/Task/Filesystem/WorkDir.php
deleted file mode 100644
index 4b75c6ed2..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/WorkDir.php
+++ /dev/null
@@ -1,126 +0,0 @@
-collectionBuilder();
- * $workingPath = $collection->workDir("build")->getPath();
- * $collection->taskFilesystemStack()
- * ->mkdir("$workingPath/log")
- * ->touch("$workingPath/log/error.txt");
- * $collection->run();
- * ?>
- * ```
- */
-class WorkDir extends TmpDir implements RollbackInterface, BuilderAwareInterface
-{
- use BuilderAwareTrait;
-
- /**
- * @var string
- */
- protected $finalDestination;
-
- /**
- * @param string $finalDestination
- */
- public function __construct($finalDestination)
- {
- $this->finalDestination = $finalDestination;
-
- // Create a temporary directory to work in. We will place our
- // temporary directory in the same location as the final destination
- // directory, so that the work directory can be moved into place
- // without having to be copied, e.g. in a cross-volume rename scenario.
- parent::__construct(basename($finalDestination), dirname($finalDestination));
- }
-
- /**
- * Create our working directory.
- *
- * @return \Robo\Result
- */
- public function run()
- {
- // Destination cannot be empty
- if (empty($this->finalDestination)) {
- return Result::error($this, "Destination directory not specified.");
- }
-
- // Before we do anything else, ensure that any directory in the
- // final destination is writable, so that we can at a minimum
- // move it out of the way before placing our results there.
- if (is_dir($this->finalDestination)) {
- if (!is_writable($this->finalDestination)) {
- return Result::error($this, "Destination directory {dir} exists and cannot be overwritten.", ['dir' => $this->finalDestination]);
- }
- }
-
- return parent::run();
- }
-
- /**
- * Move our working directory into its final destination once the
- * collection it belongs to completes.
- */
- public function complete()
- {
- $this->restoreWorkingDirectory();
-
- // Delete the final destination, if it exists.
- // Move it out of the way first, in case it cannot
- // be completely deleted.
- if (file_exists($this->finalDestination)) {
- $temporaryLocation = static::randomLocation($this->finalDestination . '_TO_DELETE_');
- // This should always work, because we already created a temporary
- // folder in the parent directory of the final destination, and we
- // have already checked to confirm that the final destination is
- // writable.
- rename($this->finalDestination, $temporaryLocation);
- // This may silently fail, leaving artifacts behind, if there
- // are permissions problems with some items somewhere inside
- // the folder being deleted.
- $this->fs->remove($temporaryLocation);
- }
-
- // Move our working directory over the final destination.
- // This should never be a cross-volume rename, so this should
- // always succeed.
- $workDir = reset($this->dirs);
- if (file_exists($workDir)) {
- rename($workDir, $this->finalDestination);
- }
- }
-
- /**
- * Delete our working directory
- */
- public function rollback()
- {
- $this->restoreWorkingDirectory();
- $this->deleteTmpDir();
- }
-
- /**
- * Get a reference to the path to the temporary directory, so that
- * it may be used to create other tasks. Note that the directory
- * is not actually created until the task runs.
- *
- * @return string
- */
- public function getPath()
- {
- return $this->dirs[0];
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/loadShortcuts.php b/vendor/consolidation/robo/src/Task/Filesystem/loadShortcuts.php
deleted file mode 100644
index fe72ce5a4..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/loadShortcuts.php
+++ /dev/null
@@ -1,159 +0,0 @@
-taskCopyDir([$src => $dst])->run();
- }
-
- /**
- * @param string $src
- * @param string $dst
- *
- * @return \Robo\Result
- */
- protected function _mirrorDir($src, $dst)
- {
- return $this->taskMirrorDir([$src => $dst])->run();
- }
-
- /**
- * @param string|string[] $dir
- *
- * @return \Robo\Result
- */
- protected function _deleteDir($dir)
- {
- return $this->taskDeleteDir($dir)->run();
- }
-
- /**
- * @param string|string[] $dir
- *
- * @return \Robo\Result
- */
- protected function _cleanDir($dir)
- {
- return $this->taskCleanDir($dir)->run();
- }
-
- /**
- * @param string $from
- * @param string $to
- * @param bool $overwrite
- *
- * @return \Robo\Result
- */
- protected function _rename($from, $to, $overwrite = false)
- {
- return $this->taskFilesystemStack()->rename($from, $to, $overwrite)->run();
- }
-
- /**
- * @param string|string[] $dir
- *
- * @return \Robo\Result
- */
- protected function _mkdir($dir)
- {
- return $this->taskFilesystemStack()->mkdir($dir)->run();
- }
-
- /**
- * @param string $prefix
- * @param string $base
- * @param bool $includeRandomPart
- *
- * @return string
- */
- protected function _tmpDir($prefix = 'tmp', $base = '', $includeRandomPart = true)
- {
- $result = $this->taskTmpDir($prefix, $base, $includeRandomPart)->run();
- return isset($result['path']) ? $result['path'] : '';
- }
-
- /**
- * @param string $file
- *
- * @return \Robo\Result
- */
- protected function _touch($file)
- {
- return $this->taskFilesystemStack()->touch($file)->run();
- }
-
- /**
- * @param string|string[] $file
- *
- * @return \Robo\Result
- */
- protected function _remove($file)
- {
- return $this->taskFilesystemStack()->remove($file)->run();
- }
-
- /**
- * @param string|string[] $file
- * @param string $group
- *
- * @return \Robo\Result
- */
- protected function _chgrp($file, $group)
- {
- return $this->taskFilesystemStack()->chgrp($file, $group)->run();
- }
-
- /**
- * @param string|string[] $file
- * @param int $permissions
- * @param int $umask
- * @param bool $recursive
- *
- * @return \Robo\Result
- */
- protected function _chmod($file, $permissions, $umask = 0000, $recursive = false)
- {
- return $this->taskFilesystemStack()->chmod($file, $permissions, $umask, $recursive)->run();
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return \Robo\Result
- */
- protected function _symlink($from, $to)
- {
- return $this->taskFilesystemStack()->symlink($from, $to)->run();
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return \Robo\Result
- */
- protected function _copy($from, $to)
- {
- return $this->taskFilesystemStack()->copy($from, $to)->run();
- }
-
- /**
- * @param string $from
- * @param string $to
- *
- * @return \Robo\Result
- */
- protected function _flattenDir($from, $to)
- {
- return $this->taskFlattenDir([$from => $to])->run();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Filesystem/loadTasks.php b/vendor/consolidation/robo/src/Task/Filesystem/loadTasks.php
deleted file mode 100644
index 8fecaafff..000000000
--- a/vendor/consolidation/robo/src/Task/Filesystem/loadTasks.php
+++ /dev/null
@@ -1,85 +0,0 @@
-task(CleanDir::class, $dirs);
- }
-
- /**
- * @param string|string[] $dirs
- *
- * @return \Robo\Task\Filesystem\DeleteDir
- */
- protected function taskDeleteDir($dirs)
- {
- return $this->task(DeleteDir::class, $dirs);
- }
-
- /**
- * @param string $prefix
- * @param string $base
- * @param bool $includeRandomPart
- *
- * @return \Robo\Task\Filesystem\WorkDir
- */
- protected function taskTmpDir($prefix = 'tmp', $base = '', $includeRandomPart = true)
- {
- return $this->task(TmpDir::class, $prefix, $base, $includeRandomPart);
- }
-
- /**
- * @param string $finalDestination
- *
- * @return \Robo\Task\Filesystem\TmpDir
- */
- protected function taskWorkDir($finalDestination)
- {
- return $this->task(WorkDir::class, $finalDestination);
- }
-
- /**
- * @param string|string[] $dirs
- *
- * @return \Robo\Task\Filesystem\CopyDir
- */
- protected function taskCopyDir($dirs)
- {
- return $this->task(CopyDir::class, $dirs);
- }
-
- /**
- * @param string|string[] $dirs
- *
- * @return \Robo\Task\Filesystem\MirrorDir
- */
- protected function taskMirrorDir($dirs)
- {
- return $this->task(MirrorDir::class, $dirs);
- }
-
- /**
- * @param string|string[] $dirs
- *
- * @return \Robo\Task\Filesystem\FlattenDir
- */
- protected function taskFlattenDir($dirs)
- {
- return $this->task(FlattenDir::class, $dirs);
- }
-
- /**
- * @return \Robo\Task\Filesystem\FilesystemStack
- */
- protected function taskFilesystemStack()
- {
- return $this->task(FilesystemStack::class);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Gulp/Base.php b/vendor/consolidation/robo/src/Task/Gulp/Base.php
deleted file mode 100644
index 42728673c..000000000
--- a/vendor/consolidation/robo/src/Task/Gulp/Base.php
+++ /dev/null
@@ -1,97 +0,0 @@
-option('silent');
- return $this;
- }
-
- /**
- * adds `--no-color` option to gulp
- *
- * @return $this
- */
- public function noColor()
- {
- $this->option('no-color');
- return $this;
- }
-
- /**
- * adds `--color` option to gulp
- *
- * @return $this
- */
- public function color()
- {
- $this->option('color');
- return $this;
- }
-
- /**
- * adds `--tasks-simple` option to gulp
- *
- * @return $this
- */
- public function simple()
- {
- $this->option('tasks-simple');
- return $this;
- }
-
- /**
- * @param string $task
- * @param null|string $pathToGulp
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($task, $pathToGulp = null)
- {
- $this->task = $task;
- $this->command = $pathToGulp;
- if (!$this->command) {
- $this->command = $this->findExecutable('gulp');
- }
- if (!$this->command) {
- throw new TaskException(__CLASS__, "Gulp executable not found.");
- }
- }
-
- /**
- * @return string
- */
- public function getCommand()
- {
- return "{$this->command} " . ProcessUtils::escapeArgument($this->task) . "{$this->arguments}";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Gulp/Run.php b/vendor/consolidation/robo/src/Task/Gulp/Run.php
deleted file mode 100644
index 8f2077b57..000000000
--- a/vendor/consolidation/robo/src/Task/Gulp/Run.php
+++ /dev/null
@@ -1,35 +0,0 @@
-taskGulpRun()->run();
- *
- * // run task 'clean' with --silent option
- * $this->taskGulpRun('clean')
- * ->silent()
- * ->run();
- * ?>
- * ```
- */
-class Run extends Base implements CommandInterface
-{
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- if (strlen($this->arguments)) {
- $this->printTaskInfo('Running Gulp task: {gulp_task} with arguments: {arguments}', ['gulp_task' => $this->task, 'arguments' => $this->arguments]);
- } else {
- $this->printTaskInfo('Running Gulp task: {gulp_task} without arguments', ['gulp_task' => $this->task]);
- }
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Gulp/loadTasks.php b/vendor/consolidation/robo/src/Task/Gulp/loadTasks.php
deleted file mode 100644
index 6fdc6ca70..000000000
--- a/vendor/consolidation/robo/src/Task/Gulp/loadTasks.php
+++ /dev/null
@@ -1,16 +0,0 @@
-task(Run::class, $task, $pathToGulp);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Npm/Base.php b/vendor/consolidation/robo/src/Task/Npm/Base.php
deleted file mode 100644
index 35ff9c48f..000000000
--- a/vendor/consolidation/robo/src/Task/Npm/Base.php
+++ /dev/null
@@ -1,60 +0,0 @@
-option('production');
- return $this;
- }
-
- /**
- * @param null|string $pathToNpm
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($pathToNpm = null)
- {
- $this->command = $pathToNpm;
- if (!$this->command) {
- $this->command = $this->findExecutable('npm');
- }
- if (!$this->command) {
- throw new TaskException(__CLASS__, "Npm executable not found.");
- }
- }
-
- /**
- * @return string
- */
- public function getCommand()
- {
- return "{$this->command} {$this->action}{$this->arguments}";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Npm/Install.php b/vendor/consolidation/robo/src/Task/Npm/Install.php
deleted file mode 100644
index 65cbe6189..000000000
--- a/vendor/consolidation/robo/src/Task/Npm/Install.php
+++ /dev/null
@@ -1,36 +0,0 @@
-taskNpmInstall()->run();
- *
- * // prefer dist with custom path
- * $this->taskNpmInstall('path/to/my/npm')
- * ->noDev()
- * ->run();
- * ?>
- * ```
- */
-class Install extends Base implements CommandInterface
-{
- /**
- * @var string
- */
- protected $action = 'install';
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Install Npm packages: {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Npm/Update.php b/vendor/consolidation/robo/src/Task/Npm/Update.php
deleted file mode 100644
index 75421b307..000000000
--- a/vendor/consolidation/robo/src/Task/Npm/Update.php
+++ /dev/null
@@ -1,34 +0,0 @@
-taskNpmUpdate()->run();
- *
- * // prefer dist with custom path
- * $this->taskNpmUpdate('path/to/my/npm')
- * ->noDev()
- * ->run();
- * ?>
- * ```
- */
-class Update extends Base
-{
- /**
- * @var string
- */
- protected $action = 'update';
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Update Npm packages: {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Npm/loadTasks.php b/vendor/consolidation/robo/src/Task/Npm/loadTasks.php
deleted file mode 100644
index 4d9a26eb3..000000000
--- a/vendor/consolidation/robo/src/Task/Npm/loadTasks.php
+++ /dev/null
@@ -1,25 +0,0 @@
-task(Install::class, $pathToNpm);
- }
-
- /**
- * @param null|string $pathToNpm
- *
- * @return \Robo\Task\Npm\Update
- */
- protected function taskNpmUpdate($pathToNpm = null)
- {
- return $this->task(Update::class, $pathToNpm);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Remote/Rsync.php b/vendor/consolidation/robo/src/Task/Remote/Rsync.php
deleted file mode 100644
index 324a8d9a5..000000000
--- a/vendor/consolidation/robo/src/Task/Remote/Rsync.php
+++ /dev/null
@@ -1,484 +0,0 @@
-taskRsync()
- * ->fromPath('src/')
- * ->toHost('localhost')
- * ->toUser('dev')
- * ->toPath('/var/www/html/app/')
- * ->remoteShell('ssh -i public_key')
- * ->recursive()
- * ->excludeVcs()
- * ->checksum()
- * ->wholeFile()
- * ->verbose()
- * ->progress()
- * ->humanReadable()
- * ->stats()
- * ->run();
- * ```
- *
- * You could also clone the task and do a dry-run first:
- *
- * ``` php
- * $rsync = $this->taskRsync()
- * ->fromPath('src/')
- * ->toPath('example.com:/var/www/html/app/')
- * ->archive()
- * ->excludeVcs()
- * ->progress()
- * ->stats();
- *
- * $dryRun = clone $rsync;
- * $dryRun->dryRun()->run();
- * if ('y' === $this->ask('Do you want to run (y/n)')) {
- * $rsync->run();
- * }
- * ```
- */
-class Rsync extends BaseTask implements CommandInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var string
- */
- protected $command;
-
- /**
- * @var string
- */
- protected $fromUser;
-
- /**
- * @var string
- */
- protected $fromHost;
-
- /**
- * @var string
- */
- protected $fromPath;
-
- /**
- * @var string
- */
- protected $toUser;
-
- /**
- * @var string
- */
- protected $toHost;
-
- /**
- * @var string
- */
- protected $toPath;
-
- /**
- * @return static
- */
- public static function init()
- {
- return new static();
- }
-
- public function __construct()
- {
- $this->command = 'rsync';
- }
-
- /**
- * This can either be a full rsync path spec (user@host:path) or just a path.
- * In case of the former do not specify host and user.
- *
- * @param string|array $path
- *
- * @return $this
- */
- public function fromPath($path)
- {
- $this->fromPath = $path;
-
- return $this;
- }
-
- /**
- * This can either be a full rsync path spec (user@host:path) or just a path.
- * In case of the former do not specify host and user.
- *
- * @param string $path
- *
- * @return $this
- */
- public function toPath($path)
- {
- $this->toPath = $path;
-
- return $this;
- }
-
- /**
- * @param string $fromUser
- *
- * @return $this
- */
- public function fromUser($fromUser)
- {
- $this->fromUser = $fromUser;
- return $this;
- }
-
- /**
- * @param string $fromHost
- *
- * @return $this
- */
- public function fromHost($fromHost)
- {
- $this->fromHost = $fromHost;
- return $this;
- }
-
- /**
- * @param string $toUser
- *
- * @return $this
- */
- public function toUser($toUser)
- {
- $this->toUser = $toUser;
- return $this;
- }
-
- /**
- * @param string $toHost
- *
- * @return $this
- */
- public function toHost($toHost)
- {
- $this->toHost = $toHost;
- return $this;
- }
-
- /**
- * @return $this
- */
- public function progress()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function stats()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function recursive()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function verbose()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function checksum()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function archive()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function compress()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function owner()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function group()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function times()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function delete()
- {
- $this->option(__FUNCTION__);
-
- return $this;
- }
-
- /**
- * @param int $seconds
- *
- * @return $this
- */
- public function timeout($seconds)
- {
- $this->option(__FUNCTION__, $seconds);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function humanReadable()
- {
- $this->option('human-readable');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function wholeFile()
- {
- $this->option('whole-file');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function dryRun()
- {
- $this->option('dry-run');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function itemizeChanges()
- {
- $this->option('itemize-changes');
-
- return $this;
- }
-
- /**
- * Excludes .git, .svn and .hg items at any depth.
- *
- * @return $this
- */
- public function excludeVcs()
- {
- return $this->exclude([
- '.git',
- '.svn',
- '.hg',
- ]);
- }
-
- /**
- * @param array|string $pattern
- *
- * @return $this
- */
- public function exclude($pattern)
- {
- return $this->optionList(__FUNCTION__, $pattern);
- }
-
- /**
- * @param string $file
- *
- * @return $this
- *
- * @throws \Robo\Exception\TaskException
- */
- public function excludeFrom($file)
- {
- if (!is_readable($file)) {
- throw new TaskException($this, "Exclude file $file is not readable");
- }
-
- return $this->option('exclude-from', $file);
- }
-
- /**
- * @param array|string $pattern
- *
- * @return $this
- */
- public function includeFilter($pattern)
- {
- return $this->optionList('include', $pattern);
- }
-
- /**
- * @param array|string $pattern
- *
- * @return $this
- */
- public function filter($pattern)
- {
- return $this->optionList(__FUNCTION__, $pattern);
- }
-
- /**
- * @param string $file
- *
- * @return $this
- *
- * @throws \Robo\Exception\TaskException
- */
- public function filesFrom($file)
- {
- if (!is_readable($file)) {
- throw new TaskException($this, "Files-from file $file is not readable");
- }
-
- return $this->option('files-from', $file);
- }
-
- /**
- * @param string $command
- *
- * @return $this
- */
- public function remoteShell($command)
- {
- $this->option('rsh', "$command");
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
-
- return $this->executeCommand($command);
- }
-
- /**
- * Returns command that can be executed.
- * This method is used to pass generated command from one task to another.
- *
- * @return string
- */
- public function getCommand()
- {
- foreach ((array)$this->fromPath as $from) {
- $this->option(null, $this->getFromPathSpec($from));
- }
- $this->option(null, $this->getToPathSpec());
-
- return $this->command . $this->arguments;
- }
-
- /**
- * @return string
- */
- protected function getFromPathSpec($from)
- {
- return $this->getPathSpec($this->fromHost, $this->fromUser, $from);
- }
-
- /**
- * @return string
- */
- protected function getToPathSpec()
- {
- return $this->getPathSpec($this->toHost, $this->toUser, $this->toPath);
- }
-
- /**
- * @param string $host
- * @param string $user
- * @param string $path
- *
- * @return string
- */
- protected function getPathSpec($host, $user, $path)
- {
- $spec = isset($path) ? $path : '';
- if (!empty($host)) {
- $spec = "{$host}:{$spec}";
- }
- if (!empty($user)) {
- $spec = "{$user}@{$spec}";
- }
-
- return $spec;
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Remote/Ssh.php b/vendor/consolidation/robo/src/Task/Remote/Ssh.php
deleted file mode 100644
index 69df9fe2c..000000000
--- a/vendor/consolidation/robo/src/Task/Remote/Ssh.php
+++ /dev/null
@@ -1,273 +0,0 @@
-taskSshExec('remote.example.com', 'user')
- * ->remoteDir('/var/www/html')
- * ->exec('ls -la')
- * ->exec('chmod g+x logs')
- * ->run();
- *
- * ```
- *
- * You can even exec other tasks (which implement CommandInterface):
- *
- * ```php
- * $gitTask = $this->taskGitStack()
- * ->checkout('master')
- * ->pull();
- *
- * $this->taskSshExec('remote.example.com')
- * ->remoteDir('/var/www/html/site')
- * ->exec($gitTask)
- * ->run();
- * ```
- *
- * You can configure the remote directory for all future calls:
- *
- * ```php
- * \Robo\Task\Remote\Ssh::configure('remoteDir', '/some-dir');
- * ```
- */
-class Ssh extends BaseTask implements CommandInterface, SimulatedInterface
-{
- use \Robo\Common\CommandReceiver;
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var null|string
- */
- protected $hostname;
-
- /**
- * @var null|string
- */
- protected $user;
-
- /**
- * @var bool
- */
- protected $stopOnFail = true;
-
- /**
- * @var array
- */
- protected $exec = [];
-
- /**
- * Changes to the given directory before running commands.
- *
- * @var string
- */
- protected $remoteDir;
-
- /**
- * @param null|string $hostname
- * @param null|string $user
- */
- public function __construct($hostname = null, $user = null)
- {
- $this->hostname = $hostname;
- $this->user = $user;
- }
-
- /**
- * @param string $hostname
- *
- * @return $this
- */
- public function hostname($hostname)
- {
- $this->hostname = $hostname;
- return $this;
- }
-
- /**
- * @param string $user
- *
- * @return $this
- */
- public function user($user)
- {
- $this->user = $user;
- return $this;
- }
-
- /**
- * Whether or not to chain commands together with && and stop the chain if one command fails.
- *
- * @param bool $stopOnFail
- *
- * @return $this
- */
- public function stopOnFail($stopOnFail = true)
- {
- $this->stopOnFail = $stopOnFail;
- return $this;
- }
-
- /**
- * Changes to the given directory before running commands.
- *
- * @param string $remoteDir
- *
- * @return $this
- */
- public function remoteDir($remoteDir)
- {
- $this->remoteDir = $remoteDir;
- return $this;
- }
-
- /**
- * @param string $filename
- *
- * @return $this
- */
- public function identityFile($filename)
- {
- $this->option('-i', $filename);
-
- return $this;
- }
-
- /**
- * @param int $port
- *
- * @return $this
- */
- public function port($port)
- {
- $this->option('-p', $port);
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function forcePseudoTty()
- {
- $this->option('-t');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function quiet()
- {
- $this->option('-q');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function verbose()
- {
- $this->option('-v');
-
- return $this;
- }
-
- /**
- * @param string|string[]|CommandInterface $command
- *
- * @return $this
- */
- public function exec($command)
- {
- if (is_array($command)) {
- $command = implode(' ', array_filter($command));
- }
-
- $this->exec[] = $command;
-
- return $this;
- }
-
- /**
- * Returns command that can be executed.
- * This method is used to pass generated command from one task to another.
- *
- * @return string
- */
- public function getCommand()
- {
- $commands = [];
- foreach ($this->exec as $command) {
- $commands[] = $this->receiveCommand($command);
- }
-
- $remoteDir = $this->remoteDir ? $this->remoteDir : $this->getConfigValue('remoteDir');
- if (!empty($remoteDir)) {
- array_unshift($commands, sprintf('cd "%s"', $remoteDir));
- }
- $command = implode($this->stopOnFail ? ' && ' : ' ; ', $commands);
-
- return $this->sshCommand($command);
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->validateParameters();
- $command = $this->getCommand();
- return $this->executeCommand($command);
- }
-
- /**
- * {@inheritdoc}
- */
- public function simulate($context)
- {
- $command = $this->getCommand();
- $this->printTaskInfo("Running {command}", ['command' => $command] + $context);
- }
-
- protected function validateParameters()
- {
- if (empty($this->hostname)) {
- throw new TaskException($this, 'Please set a hostname');
- }
- if (empty($this->exec)) {
- throw new TaskException($this, 'Please add at least one command');
- }
- }
-
- /**
- * Returns an ssh command string running $command on the remote.
- *
- * @param string|CommandInterface $command
- *
- * @return string
- */
- protected function sshCommand($command)
- {
- $command = $this->receiveCommand($command);
- $sshOptions = $this->arguments;
- $hostSpec = $this->hostname;
- if ($this->user) {
- $hostSpec = $this->user . '@' . $hostSpec;
- }
-
- return "ssh{$sshOptions} {$hostSpec} '{$command}'";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Remote/loadTasks.php b/vendor/consolidation/robo/src/Task/Remote/loadTasks.php
deleted file mode 100644
index 092d2a554..000000000
--- a/vendor/consolidation/robo/src/Task/Remote/loadTasks.php
+++ /dev/null
@@ -1,24 +0,0 @@
-task(Rsync::class);
- }
-
- /**
- * @param null|string $hostname
- * @param null|string $user
- *
- * @return \Robo\Task\Remote\Ssh
- */
- protected function taskSshExec($hostname = null, $user = null)
- {
- return $this->task(Ssh::class, $hostname, $user);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Simulator.php b/vendor/consolidation/robo/src/Task/Simulator.php
deleted file mode 100644
index e69d23fa3..000000000
--- a/vendor/consolidation/robo/src/Task/Simulator.php
+++ /dev/null
@@ -1,168 +0,0 @@
-task = ($task instanceof WrappedTaskInterface) ? $task->original() : $task;
- $this->constructorParameters = $constructorParameters;
- }
-
- /**
- * @param string $function
- * @param array $args
- *
- * @return \Robo\Result|\Robo\Task\Simulator
- */
- public function __call($function, $args)
- {
- $this->stack[] = array_merge([$function], $args);
- $result = call_user_func_array([$this->task, $function], $args);
- return $result == $this->task ? $this : $result;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $callchain = '';
- foreach ($this->stack as $action) {
- $command = array_shift($action);
- $parameters = $this->formatParameters($action);
- $callchain .= "\n ->$command($parameters>)";
- }
- $context = $this->getTaskContext(
- [
- '_level' => RoboLogLevel::SIMULATED_ACTION,
- 'simulated' => TaskInfo::formatTaskName($this->task),
- 'parameters' => $this->formatParameters($this->constructorParameters),
- '_style' => ['simulated' => 'fg=blue;options=bold'],
- ]
- );
-
- // RoboLogLevel::SIMULATED_ACTION
- $this->printTaskInfo(
- "Simulating {simulated}({parameters})$callchain",
- $context
- );
-
- $result = null;
- if ($this->task instanceof SimulatedInterface) {
- $result = $this->task->simulate($context);
- }
- if (!isset($result)) {
- $result = Result::success($this);
- }
-
- return $result;
- }
-
- /**
- * Danger: reach through the simulated wrapper and pull out the command
- * to be executed. This is used when using a simulated task with another
- * simulated task that runs commands, e.g. the Remote\Ssh task. Using
- * a simulated CommandInterface task with a non-simulated task may produce
- * unexpected results (e.g. execution!).
- *
- * @return string
- *
- * @throws \Robo\Exception\TaskException
- */
- public function getCommand()
- {
- if (!$this->task instanceof CommandInterface) {
- throw new TaskException($this->task, 'Simulated task that is not a CommandInterface used as a CommandInterface.');
- }
- return $this->task->getCommand();
- }
-
- /**
- * @param string $action
- *
- * @return string
- */
- protected function formatParameters($action)
- {
- $parameterList = array_map([$this, 'convertParameter'], $action);
- return implode(', ', $parameterList);
- }
-
- /**
- * @param mixed $item
- *
- * @return string
- */
- protected function convertParameter($item)
- {
- if (is_callable($item)) {
- return 'inline_function(...)';
- }
- if (is_array($item)) {
- return $this->shortenParameter(var_export($item, true));
- }
- if (is_object($item)) {
- return '[' . get_class($item). ' object]';
- }
- if (is_string($item)) {
- return $this->shortenParameter("'$item'");
- }
- if (is_null($item)) {
- return 'null';
- }
- return $item;
- }
-
- /**
- * @param string $item
- * @param string $shortForm
- *
- * @return string
- */
- protected function shortenParameter($item, $shortForm = '')
- {
- $maxLength = 80;
- $tailLength = 20;
- if (strlen($item) < $maxLength) {
- return $item;
- }
- if (!empty($shortForm)) {
- return $shortForm;
- }
- $item = trim($item);
- $tail = preg_replace("#.*\n#ms", '', substr($item, -$tailLength));
- $head = preg_replace("#\n.*#ms", '', substr($item, 0, $maxLength - (strlen($tail) + 5)));
- return "$head ... $tail";
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/StackBasedTask.php b/vendor/consolidation/robo/src/Task/StackBasedTask.php
deleted file mode 100644
index 91659f33a..000000000
--- a/vendor/consolidation/robo/src/Task/StackBasedTask.php
+++ /dev/null
@@ -1,236 +0,0 @@
-friz()
- * ->fraz()
- * ->frob();
- *
- * We presume that the existing library throws an exception on error.
- *
- * You want:
- *
- * $result = $this->taskFrobinator($a, $b, $c)
- * ->friz()
- * ->fraz()
- * ->frob()
- * ->run();
- *
- * Execution is deferred until run(), and a Robo\Result instance is
- * returned. Additionally, using Robo will covert Exceptions
- * into RoboResult objects.
- *
- * To create a new Robo task:
- *
- * - Make a new class that extends StackBasedTask
- * - Give it a constructor that creates a new Frobinator
- * - Override getDelegate(), and return the Frobinator instance
- *
- * Finally, add your new class to loadTasks.php as usual,
- * and you are all done.
- *
- * If you need to add any methods to your task that should run
- * immediately (e.g. to set parameters used at run() time), just
- * implement them in your derived class.
- *
- * If you need additional methods that should run deferred, just
- * define them as 'protected function _foo()'. Then, users may
- * call $this->taskFrobinator()->foo() to get deferred execution
- * of _foo().
- */
-abstract class StackBasedTask extends BaseTask
-{
- /**
- * @var array
- */
- protected $stack = [];
-
- /**
- * @var bool
- */
- protected $stopOnFail = true;
-
- /**
- * @param bool $stop
- *
- * @return $this
- */
- public function stopOnFail($stop = true)
- {
- $this->stopOnFail = $stop;
- return $this;
- }
-
- /**
- * Derived classes should override the getDelegate() method, and
- * return an instance of the API class being wrapped. When this
- * is done, any method of the delegate is available as a method of
- * this class. Calling one of the delegate's methods will defer
- * execution until the run() method is called.
- *
- * @return null
- */
- protected function getDelegate()
- {
- return null;
- }
-
- /**
- * Derived classes that have more than one delegate may override
- * getCommandList to add as many delegate commands as desired to
- * the list of potential functions that __call() tried to find.
- *
- * @param string $function
- *
- * @return array
- */
- protected function getDelegateCommandList($function)
- {
- return [[$this, "_$function"], [$this->getDelegate(), $function]];
- }
-
- /**
- * Print progress about the commands being executed
- *
- * @param string $command
- * @param string $action
- */
- protected function printTaskProgress($command, $action)
- {
- $this->printTaskInfo('{command} {action}', ['command' => "{$command[1]}", 'action' => json_encode($action, JSON_UNESCAPED_SLASHES)]);
- }
-
- /**
- * Derived classes can override processResult to add more
- * logic to result handling from functions. By default, it
- * is assumed that if a function returns in int, then
- * 0 == success, and any other value is the error code.
- *
- * @param int|\Robo\Result $function_result
- *
- * @return \Robo\Result
- */
- protected function processResult($function_result)
- {
- if (is_int($function_result)) {
- if ($function_result) {
- return Result::error($this, $function_result);
- }
- }
- return Result::success($this);
- }
-
- /**
- * Record a function to call later.
- *
- * @param string $command
- * @param array $args
- *
- * @return $this
- */
- protected function addToCommandStack($command, $args)
- {
- $this->stack[] = array_merge([$command], $args);
- return $this;
- }
-
- /**
- * Any API function provided by the delegate that executes immediately
- * may be handled by __call automatically. These operations will all
- * be deferred until this task's run() method is called.
- *
- * @param string $function
- * @param array $args
- *
- * @return $this
- */
- public function __call($function, $args)
- {
- foreach ($this->getDelegateCommandList($function) as $command) {
- if (method_exists($command[0], $command[1])) {
- // Otherwise, we'll defer calling this function
- // until run(), and return $this.
- $this->addToCommandStack($command, $args);
- return $this;
- }
- }
-
- $message = "Method $function does not exist.\n";
- throw new \BadMethodCallException($message);
- }
-
- /**
- * @return int
- */
- public function progressIndicatorSteps()
- {
- // run() will call advanceProgressIndicator() once for each
- // file, one after calling stopBuffering, and again after compression.
- return count($this->stack);
- }
-
- /**
- * Run all of the queued objects on the stack
- *
- * @return \Robo\Result
- */
- public function run()
- {
- $this->startProgressIndicator();
- $result = Result::success($this);
-
- foreach ($this->stack as $action) {
- $command = array_shift($action);
- $this->printTaskProgress($command, $action);
- $this->advanceProgressIndicator();
- // TODO: merge data from the result on this call
- // with data from the result on the previous call?
- // For now, the result always comes from the last function.
- $result = $this->callTaskMethod($command, $action);
- if ($this->stopOnFail && $result && !$result->wasSuccessful()) {
- break;
- }
- }
-
- $this->stopProgressIndicator();
-
- // todo: add timing information to the result
- return $result;
- }
-
- /**
- * Execute one task method
- *
- * @param string $command
- * @param string $action
- *
- * @return \Robo\Result
- */
- protected function callTaskMethod($command, $action)
- {
- try {
- $function_result = call_user_func_array($command, $action);
- return $this->processResult($function_result);
- } catch (\Exception $e) {
- $this->printTaskError($e->getMessage());
- return Result::fromException($this, $e);
- }
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Testing/Atoum.php b/vendor/consolidation/robo/src/Task/Testing/Atoum.php
deleted file mode 100644
index 56b47d84f..000000000
--- a/vendor/consolidation/robo/src/Task/Testing/Atoum.php
+++ /dev/null
@@ -1,184 +0,0 @@
-taskAtoum()
- * ->files('path/to/test.php')
- * ->configFile('config/dev.php')
- * ->run()
- *
- * ?>
- * ```
- */
-class Atoum extends BaseTask implements CommandInterface, PrintedInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var string
- */
- protected $command;
-
- /**
- * Atoum constructor.
- *
- * @param null|string $pathToAtoum
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($pathToAtoum = null)
- {
- $this->command = $pathToAtoum;
- if (!$this->command) {
- $this->command = $this->findExecutable('atoum');
- }
- if (!$this->command) {
- throw new \Robo\Exception\TaskException(__CLASS__, "Neither local atoum nor global composer installation not found");
- }
- }
-
- /**
- * Tag or Tags to filter.
- *
- * @param string|array $tags
- *
- * @return $this
- */
- public function tags($tags)
- {
- return $this->addMultipleOption('tags', $tags);
- }
-
- /**
- * Display result using the light reporter.
- *
- * @return $this
- */
- public function lightReport()
- {
- $this->option("--use-light-report");
-
- return $this;
- }
-
- /**
- * Display result using the tap reporter.
- *
- * @return $this
- */
- public function tap()
- {
- $this->option("use-tap-report");
-
- return $this;
- }
-
- /**
- * Path to the bootstrap file.
-
- * @param string $file
- *
- * @return $this
- */
- public function bootstrap($file)
- {
- $this->option("bootstrap", $file);
-
- return $this;
- }
-
- /**
- * Path to the config file.
- *
- * @param string $file
- *
- * @return $this
- */
- public function configFile($file)
- {
- $this->option('-c', $file);
-
- return $this;
- }
-
- /**
- * Use atoum's debug mode.
- *
- * @return $this
- */
- public function debug()
- {
- $this->option("debug");
-
- return $this;
- }
-
- /**
- * Test file or test files to run.
- *
- * @param string|array
- *
- * @return $this
- */
- public function files($files)
- {
- return $this->addMultipleOption('f', $files);
- }
-
- /**
- * Test directory or directories to run.
- *
- * @param string|array A single directory or a list of directories.
- *
- * @return $this
- */
- public function directories($directories)
- {
- return $this->addMultipleOption('directories', $directories);
- }
-
- /**
- * @param string $option
- * @param string|array $values
- *
- * @return $this
- */
- protected function addMultipleOption($option, $values)
- {
- if (is_string($values)) {
- $values = [$values];
- }
-
- foreach ($values as $value) {
- $this->option($option, $value);
- }
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . $this->arguments;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Running atoum ' . $this->arguments);
-
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Testing/Behat.php b/vendor/consolidation/robo/src/Task/Testing/Behat.php
deleted file mode 100644
index 7e4f1d41a..000000000
--- a/vendor/consolidation/robo/src/Task/Testing/Behat.php
+++ /dev/null
@@ -1,163 +0,0 @@
-taskBehat()
- * ->format('pretty')
- * ->noInteraction()
- * ->run();
- * ?>
- * ```
- *
- */
-class Behat extends BaseTask implements CommandInterface, PrintedInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var string
- */
- protected $command;
-
- /**
- * @var string[] $formaters available formaters for format option
- */
- protected $formaters = ['progress', 'pretty', 'junit'];
-
- /**
- * @var string[] $verbose_levels available verbose levels
- */
- protected $verbose_levels = ['v', 'vv'];
-
- /**
- * Behat constructor.
- *
- * @param null|string $pathToBehat
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($pathToBehat = null)
- {
- $this->command = $pathToBehat;
- if (!$this->command) {
- $this->command = $this->findExecutable('behat');
- }
- if (!$this->command) {
- throw new \Robo\Exception\TaskException(__CLASS__, "Neither composer nor phar installation of Behat found");
- }
- }
-
- /**
- * @return $this
- */
- public function stopOnFail()
- {
- $this->option('stop-on-failure');
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noInteraction()
- {
- $this->option('no-interaction');
- return $this;
- }
-
- /**
- * @param $config_file
- *
- * @return $this
- */
- public function config($config_file)
- {
- $this->option('config', $config_file);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function colors()
- {
- $this->option('colors');
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noColors()
- {
- $this->option('no-colors');
- return $this;
- }
-
- /**
- * @param string $suite
- *
- * @return $this
- */
- public function suite($suite)
- {
- $this->option('suite', $suite);
- return $this;
- }
-
- /**
- * @param string $level
- *
- * @return $this
- */
- public function verbose($level = 'v')
- {
- if (!in_array($level, $this->verbose_levels)) {
- throw new \InvalidArgumentException('expected ' . implode(',', $this->verbose_levels));
- }
- $this->option('-' . $level);
- return $this;
- }
-
- /**
- * @param string $formater
- *
- * @return $this
- */
- public function format($formater)
- {
- if (!in_array($formater, $this->formaters)) {
- throw new \InvalidArgumentException('expected ' . implode(',', $this->formaters));
- }
- $this->option('format', $formater);
- return $this;
- }
-
- /**
- * Returns command that can be executed.
- * This method is used to pass generated command from one task to another.
- *
- * @return string
- */
- public function getCommand()
- {
- return $this->command . $this->arguments;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Running behat {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Testing/Codecept.php b/vendor/consolidation/robo/src/Task/Testing/Codecept.php
deleted file mode 100644
index 1f8cce703..000000000
--- a/vendor/consolidation/robo/src/Task/Testing/Codecept.php
+++ /dev/null
@@ -1,271 +0,0 @@
-taskCodecept()
- * ->suite('acceptance')
- * ->env('chrome')
- * ->group('admin')
- * ->xml()
- * ->html()
- * ->run();
- *
- * ?>
- * ```
- *
- */
-class Codecept extends BaseTask implements CommandInterface, PrintedInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var string
- */
- protected $command;
-
- /**
- * @param string $pathToCodeception
- *
- * @throws \Robo\Exception\TaskException
- */
- public function __construct($pathToCodeception = '')
- {
- $this->command = $pathToCodeception;
- if (!$this->command) {
- $this->command = $this->findExecutable('codecept');
- }
- if (!$this->command) {
- throw new TaskException(__CLASS__, "Neither composer nor phar installation of Codeception found.");
- }
- $this->command .= ' run';
- }
-
- /**
- * @param string $suite
- *
- * @return $this
- */
- public function suite($suite)
- {
- $this->option(null, $suite);
- return $this;
- }
-
- /**
- * @param string $testName
- *
- * @return $this
- */
- public function test($testName)
- {
- $this->option(null, $testName);
- return $this;
- }
-
- /**
- * set group option. Can be called multiple times
- *
- * @param string $group
- *
- * @return $this
- */
- public function group($group)
- {
- $this->option("group", $group);
- return $this;
- }
-
- /**
- * @param string $group
- *
- * @return $this
- */
- public function excludeGroup($group)
- {
- $this->option("skip-group", $group);
- return $this;
- }
-
- /**
- * generate json report
- *
- * @param string $file
- *
- * @return $this
- */
- public function json($file = null)
- {
- $this->option("json", $file);
- return $this;
- }
-
- /**
- * generate xml JUnit report
- *
- * @param string $file
- *
- * @return $this
- */
- public function xml($file = null)
- {
- $this->option("xml", $file);
- return $this;
- }
-
- /**
- * Generate html report
- *
- * @param string $dir
- *
- * @return $this
- */
- public function html($dir = null)
- {
- $this->option("html", $dir);
- return $this;
- }
-
- /**
- * generate tap report
- *
- * @param string $file
- *
- * @return $this
- */
- public function tap($file = null)
- {
- $this->option("tap", $file);
- return $this;
- }
-
- /**
- * provides config file other then default `codeception.yml` with `-c` option
- *
- * @param string $file
- *
- * @return $this
- */
- public function configFile($file)
- {
- $this->option("-c", $file);
- return $this;
- }
-
- /**
- * collect codecoverage in raw format. You may pass name of cov file to save results
- *
- * @param null|string $cov
- *
- * @return $this
- */
- public function coverage($cov = null)
- {
- $this->option("coverage", $cov);
- return $this;
- }
-
- /**
- * execute in silent mode
- *
- * @return $this
- */
- public function silent()
- {
- $this->option("silent");
- return $this;
- }
-
- /**
- * collect code coverage in xml format. You may pass name of xml file to save results
- *
- * @param string $xml
- *
- * @return $this
- */
- public function coverageXml($xml = null)
- {
- $this->option("coverage-xml", $xml);
- return $this;
- }
-
- /**
- * collect code coverage and generate html report. You may pass
- *
- * @param string $html
- *
- * @return $this
- */
- public function coverageHtml($html = null)
- {
- $this->option("coverage-html", $html);
- return $this;
- }
-
- /**
- * @param string $env
- *
- * @return $this
- */
- public function env($env)
- {
- $this->option("env", $env);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function debug()
- {
- $this->option("debug");
- return $this;
- }
-
- /**
- * @return $this
- */
- public function noRebuild()
- {
- $this->option("no-rebuild");
- return $this;
- }
-
- /**
- * @param string $failGroup
- * @return $this
- */
- public function failGroup($failGroup)
- {
- $this->option('override', "extensions: config: Codeception\\Extension\\RunFailed: fail-group: {$failGroup}");
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . $this->arguments;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $command = $this->getCommand();
- $this->printTaskInfo('Executing {command}', ['command' => $command]);
- return $this->executeCommand($command);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Testing/PHPUnit.php b/vendor/consolidation/robo/src/Task/Testing/PHPUnit.php
deleted file mode 100644
index df67e1c75..000000000
--- a/vendor/consolidation/robo/src/Task/Testing/PHPUnit.php
+++ /dev/null
@@ -1,199 +0,0 @@
-taskPHPUnit()
- * ->group('core')
- * ->bootstrap('test/bootstrap.php')
- * ->run()
- *
- * ?>
- * ```
- */
-class PHPUnit extends BaseTask implements CommandInterface, PrintedInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var string
- */
- protected $command;
-
- /**
- * Directory of test files or single test file to run. Appended to
- * the command and arguments.
- *
- * @var string
- */
- protected $files = '';
-
- public function __construct($pathToPhpUnit = null)
- {
- $this->command = $pathToPhpUnit;
- if (!$this->command) {
- $this->command = $this->findExecutablePhar('phpunit');
- }
- if (!$this->command) {
- throw new \Robo\Exception\TaskException(__CLASS__, "Neither local phpunit nor global composer installation not found");
- }
- }
-
- /**
- * @param string $filter
- *
- * @return $this
- */
- public function filter($filter)
- {
- $this->option('filter', $filter);
- return $this;
- }
-
- /**
- * @param string $group
- *
- * @return $this
- */
- public function group($group)
- {
- $this->option("group", $group);
- return $this;
- }
-
- /**
- * @param string $group
- *
- * @return $this
- */
- public function excludeGroup($group)
- {
- $this->option("exclude-group", $group);
- return $this;
- }
-
- /**
- * adds `log-json` option to runner
- *
- * @param string $file
- *
- * @return $this
- */
- public function json($file = null)
- {
- $this->option("log-json", $file);
- return $this;
- }
-
- /**
- * adds `log-junit` option
- *
- * @param string $file
- *
- * @return $this
- */
- public function xml($file = null)
- {
- $this->option("log-junit", $file);
- return $this;
- }
-
- /**
- * @param string $file
- *
- * @return $this
- */
- public function tap($file = "")
- {
- $this->option("log-tap", $file);
- return $this;
- }
-
- /**
- * @param string $file
- *
- * @return $this
- */
- public function bootstrap($file)
- {
- $this->option("bootstrap", $file);
- return $this;
- }
-
- /**
- * @param string $file
- *
- * @return $this
- */
- public function configFile($file)
- {
- $this->option('-c', $file);
- return $this;
- }
-
- /**
- * @return $this
- */
- public function debug()
- {
- $this->option("debug");
- return $this;
- }
-
- /**
- * Directory of test files or single test file to run.
- *
- * @param string $files A single test file or a directory containing test files.
- *
- * @return $this
- *
- * @throws \Robo\Exception\TaskException
- *
- * @deprecated Use file() or dir() method instead
- */
- public function files($files)
- {
- if (!empty($this->files) || is_array($files)) {
- throw new \Robo\Exception\TaskException(__CLASS__, "Only one file or directory may be provided.");
- }
- $this->files = ' ' . $files;
-
- return $this;
- }
-
- /**
- * Test the provided file.
- *
- * @param string $file path to file to test
- *
- * @return $this
- */
- public function file($file)
- {
- return $this->files($file);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCommand()
- {
- return $this->command . $this->arguments . $this->files;
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Running PHPUnit {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Testing/Phpspec.php b/vendor/consolidation/robo/src/Task/Testing/Phpspec.php
deleted file mode 100644
index dd6a5ae77..000000000
--- a/vendor/consolidation/robo/src/Task/Testing/Phpspec.php
+++ /dev/null
@@ -1,116 +0,0 @@
-taskPhpspec()
- * ->format('pretty')
- * ->noInteraction()
- * ->run();
- * ?>
- * ```
- *
- */
-class Phpspec extends BaseTask implements CommandInterface, PrintedInterface
-{
- use \Robo\Common\ExecOneCommand;
-
- /**
- * @var string
- */
- protected $command;
-
- /**
- * @var string[] $formaters available formaters for format option
- */
- protected $formaters = ['progress', 'html', 'pretty', 'junit', 'dot', 'tap'];
-
- /**
- * @var array $verbose_levels available verbose levels
- */
- protected $verbose_levels = ['v', 'vv', 'vvv'];
-
- public function __construct($pathToPhpspec = null)
- {
- $this->command = $pathToPhpspec;
- if (!$this->command) {
- $this->command = $this->findExecutable('phpspec');
- }
- if (!$this->command) {
- throw new \Robo\Exception\TaskException(__CLASS__, "Neither composer nor phar installation of Phpspec found");
- }
- $this->arg('run');
- }
-
- public function stopOnFail()
- {
- $this->option('stop-on-failure');
- return $this;
- }
-
- public function noCodeGeneration()
- {
- $this->option('no-code-generation');
- return $this;
- }
-
- public function quiet()
- {
- $this->option('quiet');
- return $this;
- }
-
- public function verbose($level = 'v')
- {
- if (!in_array($level, $this->verbose_levels)) {
- throw new \InvalidArgumentException('expected ' . implode(',', $this->verbose_levels));
- }
- $this->option('-' . $level);
- return $this;
- }
-
- public function noAnsi()
- {
- $this->option('no-ansi');
- return $this;
- }
-
- public function noInteraction()
- {
- $this->option('no-interaction');
- return $this;
- }
-
- public function config($config_file)
- {
- $this->option('config', $config_file);
- return $this;
- }
-
- public function format($formater)
- {
- if (!in_array($formater, $this->formaters)) {
- throw new \InvalidArgumentException('expected ' . implode(',', $this->formaters));
- }
- $this->option('format', $formater);
- return $this;
- }
-
- public function getCommand()
- {
- return $this->command . $this->arguments;
- }
-
- public function run()
- {
- $this->printTaskInfo('Running phpspec {arguments}', ['arguments' => $this->arguments]);
- return $this->executeCommand($this->getCommand());
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Testing/loadTasks.php b/vendor/consolidation/robo/src/Task/Testing/loadTasks.php
deleted file mode 100644
index 43145b9b6..000000000
--- a/vendor/consolidation/robo/src/Task/Testing/loadTasks.php
+++ /dev/null
@@ -1,55 +0,0 @@
-task(Codecept::class, $pathToCodeception);
- }
-
- /**
- * @param null|string $pathToPhpUnit
- *
- * @return \Robo\Task\Testing\PHPUnit
- */
- protected function taskPhpUnit($pathToPhpUnit = null)
- {
- return $this->task(PHPUnit::class, $pathToPhpUnit);
- }
-
- /**
- * @param null $pathToPhpspec
- *
- * @return \Robo\Task\Testing\Phpspec
- */
- protected function taskPhpspec($pathToPhpspec = null)
- {
- return $this->task(Phpspec::class, $pathToPhpspec);
- }
-
- /**
- * @param null $pathToAtoum
- *
- * @return \Robo\Task\Testing\Atoum
- */
- protected function taskAtoum($pathToAtoum = null)
- {
- return $this->task(Atoum::class, $pathToAtoum);
- }
-
- /**
- * @param null $pathToBehat
- *
- * @return \Robo\Task\Testing\Behat
- */
- protected function taskBehat($pathToBehat = null)
- {
- return $this->task(Behat::class, $pathToBehat);
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Vcs/GitStack.php b/vendor/consolidation/robo/src/Task/Vcs/GitStack.php
deleted file mode 100644
index 6cb1783f0..000000000
--- a/vendor/consolidation/robo/src/Task/Vcs/GitStack.php
+++ /dev/null
@@ -1,177 +0,0 @@
-taskGitStack()
- * ->stopOnFail()
- * ->add('-A')
- * ->commit('adding everything')
- * ->push('origin','master')
- * ->tag('0.6.0')
- * ->push('origin','0.6.0')
- * ->run()
- *
- * $this->taskGitStack()
- * ->stopOnFail()
- * ->add('doc/*')
- * ->commit('doc updated')
- * ->push()
- * ->run();
- * ?>
- * ```
- */
-class GitStack extends CommandStack
-{
- /**
- * @param string $pathToGit
- */
- public function __construct($pathToGit = 'git')
- {
- $this->executable = $pathToGit;
- }
-
- /**
- * Executes `git clone`
- *
- * @param string $repo
- * @param string $to
- *
- * @return $this
- */
- public function cloneRepo($repo, $to = "", $branch = "")
- {
- $cmd = ['clone', $repo, $to];
- if (!empty($branch)) {
- $cmd[] = "--branch $branch";
- }
- return $this->exec($cmd);
- }
-
- /**
- * Executes `git clone` with depth 1 as default
- *
- * @param string $repo
- * @param string $to
- * @param string $branch
- * @param int $depth
- *
- * @return $this
- */
- public function cloneShallow($repo, $to = '', $branch = "", $depth = 1)
- {
- $cmd = ["clone --depth $depth", $repo, $to];
- if (!empty($branch)) {
- $cmd[] = "--branch $branch";
- }
-
- return $this->exec($cmd);
- }
-
- /**
- * Executes `git add` command with files to add pattern
- *
- * @param string $pattern
- *
- * @return $this
- */
- public function add($pattern)
- {
- return $this->exec([__FUNCTION__, $pattern]);
- }
-
- /**
- * Executes `git commit` command with a message
- *
- * @param string $message
- * @param string $options
- *
- * @return $this
- */
- public function commit($message, $options = "")
- {
- $message = ProcessUtils::escapeArgument($message);
- return $this->exec([__FUNCTION__, "-m $message", $options]);
- }
-
- /**
- * Executes `git pull` command.
- *
- * @param string $origin
- * @param string $branch
- *
- * @return $this
- */
- public function pull($origin = '', $branch = '')
- {
- return $this->exec([__FUNCTION__, $origin, $branch]);
- }
-
- /**
- * Executes `git push` command
- *
- * @param string $origin
- * @param string $branch
- *
- * @return $this
- */
- public function push($origin = '', $branch = '')
- {
- return $this->exec([__FUNCTION__, $origin, $branch]);
- }
-
- /**
- * Performs git merge
- *
- * @param string $branch
- *
- * @return $this
- */
- public function merge($branch)
- {
- return $this->exec([__FUNCTION__, $branch]);
- }
-
- /**
- * Executes `git checkout` command
- *
- * @param string $branch
- *
- * @return $this
- */
- public function checkout($branch)
- {
- return $this->exec([__FUNCTION__, $branch]);
- }
-
- /**
- * Executes `git tag` command
- *
- * @param string $tag_name
- * @param string $message
- *
- * @return $this
- */
- public function tag($tag_name, $message = "")
- {
- if ($message != "") {
- $message = "-m '$message'";
- }
- return $this->exec([__FUNCTION__, $message, $tag_name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo("Running git commands...");
- return parent::run();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Vcs/HgStack.php b/vendor/consolidation/robo/src/Task/Vcs/HgStack.php
deleted file mode 100644
index 71cc0ca9c..000000000
--- a/vendor/consolidation/robo/src/Task/Vcs/HgStack.php
+++ /dev/null
@@ -1,153 +0,0 @@
-hgStack
- * ->cloneRepo('https://bitbucket.org/durin42/hgsubversion')
- * ->pull()
- * ->add()
- * ->commit('changed')
- * ->push()
- * ->tag('0.6.0')
- * ->push('0.6.0')
- * ->run();
- * ?>
- * ```
- */
-class HgStack extends CommandStack
-{
-
- /**
- * @param string $pathToHg
- */
- public function __construct($pathToHg = 'hg')
- {
- $this->executable = $pathToHg;
- }
-
- /**
- * Executes `hg clone`
- *
- * @param string $repo
- * @param string $to
- *
- * @return $this
- */
- public function cloneRepo($repo, $to = '')
- {
- return $this->exec(['clone', $repo, $to]);
- }
-
- /**
- * Executes `hg add` command with files to add by pattern
- *
- * @param string $include
- * @param string $exclude
- *
- * @return $this
- */
- public function add($include = '', $exclude = '')
- {
- if (strlen($include) > 0) {
- $include = "-I {$include}";
- }
-
- if (strlen($exclude) > 0) {
- $exclude = "-X {$exclude}";
- }
-
- return $this->exec([__FUNCTION__, $include, $exclude]);
- }
-
- /**
- * Executes `hg commit` command with a message
- *
- * @param string $message
- * @param string $options
- *
- * @return $this
- */
- public function commit($message, $options = '')
- {
- return $this->exec([__FUNCTION__, "-m '{$message}'", $options]);
- }
-
- /**
- * Executes `hg pull` command.
- *
- * @param string $branch
- *
- * @return $this
- */
- public function pull($branch = '')
- {
- if (strlen($branch) > 0) {
- $branch = "-b '{$branch}''";
- }
-
- return $this->exec([__FUNCTION__, $branch]);
- }
-
- /**
- * Executes `hg push` command
- *
- * @param string $branch
- *
- * @return $this
- */
- public function push($branch = '')
- {
- if (strlen($branch) > 0) {
- $branch = "-b '{$branch}'";
- }
-
- return $this->exec([__FUNCTION__, $branch]);
- }
-
- /**
- * Performs hg merge
- *
- * @param string $revision
- *
- * @return $this
- */
- public function merge($revision = '')
- {
- if (strlen($revision) > 0) {
- $revision = "-r {$revision}";
- }
-
- return $this->exec([__FUNCTION__, $revision]);
- }
-
- /**
- * Executes `hg tag` command
- *
- * @param string $tag_name
- * @param string $message
- *
- * @return $this
- */
- public function tag($tag_name, $message = '')
- {
- if ($message !== '') {
- $message = "-m '{$message}'";
- }
- return $this->exec([__FUNCTION__, $message, $tag_name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function run()
- {
- $this->printTaskInfo('Running hg commands...');
- return parent::run();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Vcs/SvnStack.php b/vendor/consolidation/robo/src/Task/Vcs/SvnStack.php
deleted file mode 100644
index ec719b538..000000000
--- a/vendor/consolidation/robo/src/Task/Vcs/SvnStack.php
+++ /dev/null
@@ -1,106 +0,0 @@
-taskSvnStack()
- * ->checkout('http://svn.collab.net/repos/svn/trunk')
- * ->run()
- *
- * // alternatively
- * $this->_svnCheckout('http://svn.collab.net/repos/svn/trunk');
- *
- * $this->taskSvnStack('username', 'password')
- * ->stopOnFail()
- * ->update()
- * ->add('doc/*')
- * ->commit('doc updated')
- * ->run();
- * ?>
- * ```
- */
-class SvnStack extends CommandStack implements CommandInterface
-{
- /**
- * @var bool
- */
- protected $stopOnFail = false;
-
- /**
- * @var \Robo\Result
- */
- protected $result;
-
- /**
- * @param string $username
- * @param string $password
- * @param string $pathToSvn
- */
- public function __construct($username = '', $password = '', $pathToSvn = 'svn')
- {
- $this->executable = $pathToSvn;
- if (!empty($username)) {
- $this->executable .= " --username $username";
- }
- if (!empty($password)) {
- $this->executable .= " --password $password";
- }
- $this->result = Result::success($this);
- }
-
- /**
- * Updates `svn update` command
- *
- * @param string $path
- *
- * @return $this;
- */
- public function update($path = '')
- {
- return $this->exec("update $path");
- }
-
- /**
- * Executes `svn add` command with files to add pattern
- *
- * @param string $pattern
- *
- * @return $this
- */
- public function add($pattern = '')
- {
- return $this->exec("add $pattern");
- }
-
- /**
- * Executes `svn commit` command with a message
- *
- * @param string $message
- * @param string $options
- *
- * @return $this
- */
- public function commit($message, $options = "")
- {
- return $this->exec("commit -m '$message' $options");
- }
-
- /**
- * Executes `svn checkout` command
- *
- * @param string $branch
- *
- * @return $this
- */
- public function checkout($branch)
- {
- return $this->exec("checkout $branch");
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Vcs/loadShortcuts.php b/vendor/consolidation/robo/src/Task/Vcs/loadShortcuts.php
deleted file mode 100644
index 7d64ab58c..000000000
--- a/vendor/consolidation/robo/src/Task/Vcs/loadShortcuts.php
+++ /dev/null
@@ -1,35 +0,0 @@
-taskSvnStack()->checkout($url)->run();
- }
-
- /**
- * @param string $url
- *
- * @return \Robo\Result
- */
- protected function _gitClone($url)
- {
- return $this->taskGitStack()->cloneRepo($url)->run();
- }
-
- /**
- * @param string $url
- *
- * @return \Robo\Result
- */
- protected function _hgClone($url)
- {
- return $this->taskHgStack()->cloneRepo($url)->run();
- }
-}
diff --git a/vendor/consolidation/robo/src/Task/Vcs/loadTasks.php b/vendor/consolidation/robo/src/Task/Vcs/loadTasks.php
deleted file mode 100644
index 6dd06228a..000000000
--- a/vendor/consolidation/robo/src/Task/Vcs/loadTasks.php
+++ /dev/null
@@ -1,37 +0,0 @@
-task(SvnStack::class, $username, $password, $pathToSvn);
- }
-
- /**
- * @param string $pathToGit
- *
- * @return \Robo\Task\Vcs\GitStack
- */
- protected function taskGitStack($pathToGit = 'git')
- {
- return $this->task(GitStack::class, $pathToGit);
- }
-
- /**
- * @param string $pathToHg
- *
- * @return \Robo\Task\Vcs\HgStack
- */
- protected function taskHgStack($pathToHg = 'hg')
- {
- return $this->task(HgStack::class, $pathToHg);
- }
-}
diff --git a/vendor/consolidation/robo/src/TaskAccessor.php b/vendor/consolidation/robo/src/TaskAccessor.php
deleted file mode 100644
index e65cd3eb3..000000000
--- a/vendor/consolidation/robo/src/TaskAccessor.php
+++ /dev/null
@@ -1,47 +0,0 @@
-task(Foo::class, $a, $b);
- *
- * instead of:
- *
- * $this->taskFoo($a, $b);
- *
- * The later form is preferred.
- *
- * @return \Robo\Collection\CollectionBuilder
- */
- protected function task()
- {
- $args = func_get_args();
- $name = array_shift($args);
-
- $collectionBuilder = $this->collectionBuilder();
- return $collectionBuilder->build($name, $args);
- }
-}
diff --git a/vendor/consolidation/robo/src/TaskInfo.php b/vendor/consolidation/robo/src/TaskInfo.php
deleted file mode 100644
index ce59c2d55..000000000
--- a/vendor/consolidation/robo/src/TaskInfo.php
+++ /dev/null
@@ -1,35 +0,0 @@
- TaskInfo::formatTaskName($task),
- 'task' => $task,
- ];
- }
-
- /**
- * @param object $task
- *
- * @return string
- */
- public static function formatTaskName($task)
- {
- $name = get_class($task);
- $name = preg_replace('~Stack^~', '', $name);
- $name = str_replace('Robo\\Task\Base\\', '', $name);
- $name = str_replace('Robo\\Task\\', '', $name);
- $name = str_replace('Robo\\Collection\\', '', $name);
- return $name;
- }
-}
diff --git a/vendor/consolidation/robo/src/Tasks.php b/vendor/consolidation/robo/src/Tasks.php
deleted file mode 100644
index 2822d7d50..000000000
--- a/vendor/consolidation/robo/src/Tasks.php
+++ /dev/null
@@ -1,23 +0,0 @@
-add($cmd);
-```
-
-## Similar Projects
-
-- https://github.com/DavaHome/self-update
-- https://github.com/padraic/phar-updater
diff --git a/vendor/consolidation/self-update/VERSION b/vendor/consolidation/self-update/VERSION
deleted file mode 100644
index e25d8d9f3..000000000
--- a/vendor/consolidation/self-update/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.1.5
diff --git a/vendor/consolidation/self-update/composer.json b/vendor/consolidation/self-update/composer.json
deleted file mode 100644
index 3125a65f6..000000000
--- a/vendor/consolidation/self-update/composer.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "consolidation/self-update",
- "description": "Provides a self:update command for Symfony Console applications.",
- "license": "MIT",
- "authors": [
- {
- "name": "Alexander Menk",
- "email": "menk@mestrona.net"
- },
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "autoload":{
- "psr-4":{
- "SelfUpdate\\":"src"
- }
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4"
- },
- "bin": [
- "scripts/release"
- ],
- "scripts": {
- "release": "./scripts/release VERSION"
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "5.6.3"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/self-update/composer.lock b/vendor/consolidation/self-update/composer.lock
deleted file mode 100644
index af14184c8..000000000
--- a/vendor/consolidation/self-update/composer.lock
+++ /dev/null
@@ -1,362 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "3c87d0a607c776a773e52613a1ae51a9",
- "packages": [
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "d5a058ff6ecad26b30c1ba452241306ea34c65cc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/d5a058ff6ecad26b30c1ba452241306ea34c65cc",
- "reference": "d5a058ff6ecad26b30c1ba452241306ea34c65cc",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.14",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "a59f917e3c5d82332514cb4538387638f5bde2d6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/a59f917e3c5d82332514cb4538387638f5bde2d6",
- "reference": "a59f917e3c5d82332514cb4538387638f5bde2d6",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- }
- ],
- "packages-dev": [],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.5.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.6.3"
- }
-}
diff --git a/vendor/consolidation/self-update/scripts/release b/vendor/consolidation/self-update/scripts/release
deleted file mode 100755
index 10314111a..000000000
--- a/vendor/consolidation/self-update/scripts/release
+++ /dev/null
@@ -1,178 +0,0 @@
-#!/usr/bin/env php
-[0-9]+\.[0-9]+\.[0-9]+)(?-[0-9a-zA-Z.]+)?(?\+[0-9a-zA-Z.]*)?';
-
-$optind = null;
-$options = getopt ("dvy", [
- 'pattern:',
- 'simulate',
- 'yes',
-], $optind) + [
- 'pattern' => "^SEMVER$",
-];
-$simulate = array_key_exists('simulate', $options);
-$yes = array_key_exists('yes', $options) || array_key_exists('y', $options);
-
-$pos_args = array_slice($argv, $optind);
-$path = array_shift($pos_args);
-
-if (empty($path)) {
- print "Path to version file must be specified as a commandline argument\n";
- exit(1);
-}
-
-if (!file_exists($path)) {
- print "Version file not found at $path\n";
- exit(1);
-}
-
-// The --pattern option is expected to contain the string SEMVER
-$regex = str_replace('SEMVER', "$semverRegEx", $options['pattern']);
-if ($regex == $options['pattern']) {
- print "Pattern '$regex' must contain the string 'SEMVER'.\n";
- exit(1);
-}
-
-// Read the contents of the version file and find the version string
-$contents = file_get_contents($path);
-if (!preg_match("#$regex#m", $contents, $matches)) {
- print "A semver version not found in $path\n";
- exit(1);
-}
-$matches += ['prerelease' => '', 'build' => ''];
-
-// Calculate the stable and next version strings
-$original_version_match = $matches[0];
-$original_version = $matches['version'] . $matches['prerelease'] . $matches['build'];
-$stable_version = $matches['version'] . (has_prerelease($matches) ? $matches['prerelease'] : '');
-$next_version = next_version($matches);
-
-$stable_version_replacement = str_replace($original_version, $stable_version, $original_version_match);
-$next_version_replacement = str_replace($original_version, $next_version, $original_version_match);
-
-$stable_version_contents = str_replace($original_version_match, $stable_version_replacement, $contents);
-$next_version_contents = str_replace($original_version_match, $next_version_replacement, $contents);
-
-$composerContents = file_get_contents('composer.json');
-$composerData = json_decode($composerContents, true);
-$project = $composerData['name'];
-
-$msg = "Release $project version $stable_version";
-$dashes = str_pad('', strlen($msg) + 8, '-', STR_PAD_LEFT);
-
-print "\n$dashes\n\n";
-print " $msg\n";
-print "\n$dashes\n\n";
-
-// Write the stable version into the version file, tag and push the release
-if (!$simulate) {
- file_put_contents($path, $stable_version_contents);
-}
-else {
- print "Replace stable version in $path:\n> $stable_version_replacement\n";
-}
-
-run('git add {path}', ['{path}' => $path], $simulate);
-run('git commit -m "Version {version}"', ['{version}' => $stable_version], $simulate);
-run('git tag {version}', ['{version}' => $stable_version], $simulate);
-run('git push origin {version}', ['{version}' => $stable_version], $simulate);
-
-// Put the next version into the version file and push the result back to master
-if (!$simulate) {
- file_put_contents($path, $next_version_contents);
-}
-else {
- print "Replace next version in $path:\n> $next_version_replacement\n";
-}
-
-run('git add {path}', ['{path}' => $path], $simulate);
-run('git commit -m "[ci skip] Back to {version}"', ['{version}' => $next_version], $simulate);
-run('git push origin master', [], $simulate);
-
-exit(0);
-
-/**
- * inflect replaces the placeholders in the command with the provided parameter values
- * @param string $cmd
- * @param array $parameters
- * @return string
- */
-function inflect($cmd, $parameters = [])
-{
- if (!empty($parameters)) {
- return str_replace(array_keys($parameters), array_values($parameters), $cmd);
- }
- return $cmd;
-}
-
-/**
- * Run the specified command. Abort most rudely if an error is encountered
- */
-function run($cmd, $parameters = [], $simulate = false)
-{
- $cmd = inflect($cmd, $parameters);
- if ($simulate) {
- print "$cmd\n";
- return;
- }
- passthru($cmd, $status);
- if ($status) {
- exit($status);
- }
-}
-
-/**
- * Determine the next version after the current release
- */
-function next_version($matches)
-{
- $version = $matches['version'];
-
- $next_version = next_version_prerelease($matches);
- if ($next_version !== false) {
- return $next_version;
- }
- return next_version_stable($matches);
-}
-
-/**
- * Determine the next version given that the current version is stable
- */
-function next_version_stable($matches)
-{
- $version_parts = explode('.', $matches['version']);
- $last_version = array_pop($version_parts);
- $last_version++;
- $version_parts[] = $last_version;
-
- return implode('.', $version_parts) . (empty($matches['prerelease']) ? '-dev' : $matches['prerelease']);
-}
-
-function has_prerelease($matches)
-{
- if (empty($matches['prerelease'])) {
- return false;
- }
-
- return is_numeric(substr($matches['prerelease'], -1));
-}
-
-/**
- * Determine the next version given that the current version has a pre-release
- * (e.g. '-alpha5').
- */
-function next_version_prerelease($version_parts)
-{
- if (!preg_match('#(.*?)([0-9]+)$#', $version_parts['prerelease'], $matches)) {
- return false;
- }
- $next = $matches[2] + 1;
- return $version_parts['version'] . $matches[1] . $next . '+dev';
-}
diff --git a/vendor/consolidation/self-update/src/SelfUpdateCommand.php b/vendor/consolidation/self-update/src/SelfUpdateCommand.php
deleted file mode 100644
index ad40e3477..000000000
--- a/vendor/consolidation/self-update/src/SelfUpdateCommand.php
+++ /dev/null
@@ -1,154 +0,0 @@
-
- */
-class SelfUpdateCommand extends Command
-{
- const SELF_UPDATE_COMMAND_NAME = 'self:update';
-
- protected $gitHubRepository;
-
- protected $currentVersion;
-
- protected $applicationName;
-
- public function __construct($applicationName = null, $currentVersion = null, $gitHubRepository = null)
- {
- $this->applicationName = $applicationName;
- $this->currentVersion = $currentVersion;
- $this->gitHubRepository = $gitHubRepository;
-
- parent::__construct(self::SELF_UPDATE_COMMAND_NAME);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $app = $this->applicationName;
-
- $this
- ->setAliases(array('update'))
- ->setDescription("Updates $app to the latest version.")
- ->setHelp(
- <<self-update command checks github for newer
-versions of $app and if found, installs the latest.
-EOT
- );
- }
-
- protected function getLatestReleaseFromGithub()
- {
- $opts = [
- 'http' => [
- 'method' => 'GET',
- 'header' => [
- 'User-Agent: ' . $this->applicationName . ' (' . $this->gitHubRepository . ')' . ' Self-Update (PHP)'
- ]
- ]
- ];
-
- $context = stream_context_create($opts);
-
- $releases = file_get_contents('https://api.github.com/repos/' . $this->gitHubRepository . '/releases', false, $context);
- $releases = json_decode($releases);
-
- if (! isset($releases[0])) {
- throw new \Exception('API error - no release found at GitHub repository ' . $this->gitHubRepository);
- }
-
- $version = $releases[0]->tag_name;
- $url = $releases[0]->assets[0]->browser_download_url;
-
- return [ $version, $url ];
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if (empty(\Phar::running())) {
- throw new \Exception(self::SELF_UPDATE_COMMAND_NAME . ' only works when running the phar version of ' . $this->applicationName . '.');
- }
-
- $localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
- $programName = basename($localFilename);
- $tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar') . '-temp.phar';
-
- // check for permissions in local filesystem before start connection process
- if (! is_writable($tempDirectory = dirname($tempFilename))) {
- throw new \Exception(
- $programName . ' update failed: the "' . $tempDirectory .
- '" directory used to download the temp file could not be written'
- );
- }
-
- if (! is_writable($localFilename)) {
- throw new \Exception(
- $programName . ' update failed: the "' . $localFilename . '" file could not be written (execute with sudo)'
- );
- }
-
- list( $latest, $downloadUrl ) = $this->getLatestReleaseFromGithub();
-
-
- if ($this->currentVersion == $latest) {
- $output->writeln('No update available');
- return;
- }
-
- $fs = new sfFilesystem();
-
- $output->writeln('Downloading ' . $this->applicationName . ' (' . $this->gitHubRepository . ') ' . $latest);
-
- $fs->copy($downloadUrl, $tempFilename);
-
- $output->writeln('Download finished');
-
- try {
- \error_reporting(E_ALL); // supress notices
-
- @chmod($tempFilename, 0777 & ~umask());
- // test the phar validity
- $phar = new \Phar($tempFilename);
- // free the variable to unlock the file
- unset($phar);
- @rename($tempFilename, $localFilename);
- $output->writeln('Successfully updated ' . $programName . ' ');
- $this->_exit();
- } catch (\Exception $e) {
- @unlink($tempFilename);
- if (! $e instanceof \UnexpectedValueException && ! $e instanceof \PharException) {
- throw $e;
- }
- $output->writeln('The download is corrupted (' . $e->getMessage() . '). ');
- $output->writeln('Please re-run the self-update command to try again. ');
- }
- }
-
- /**
- * Stop execution
- *
- * This is a workaround to prevent warning of dispatcher after replacing
- * the phar file.
- *
- * @return void
- */
- protected function _exit()
- {
- exit;
- }
-}
diff --git a/vendor/consolidation/site-alias/.editorconfig b/vendor/consolidation/site-alias/.editorconfig
deleted file mode 100644
index 0c29908ff..000000000
--- a/vendor/consolidation/site-alias/.editorconfig
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[**.php]
-indent_style = space
-indent_size = 4
-
-[{composer.json,composer.lock}]
-indent_size = 4
diff --git a/vendor/consolidation/site-alias/.github/issue_template.md b/vendor/consolidation/site-alias/.github/issue_template.md
deleted file mode 100644
index 97335f49d..000000000
--- a/vendor/consolidation/site-alias/.github/issue_template.md
+++ /dev/null
@@ -1,11 +0,0 @@
-### Steps to reproduce
-What did you do?
-
-### Expected behavior
-Tell us what should happen
-
-### Actual behavior
-Tell us what happens instead
-
-### System Configuration
-Which O.S. and PHP version are you using?
diff --git a/vendor/consolidation/site-alias/.github/pull_request_template.md b/vendor/consolidation/site-alias/.github/pull_request_template.md
deleted file mode 100644
index 42ec29246..000000000
--- a/vendor/consolidation/site-alias/.github/pull_request_template.md
+++ /dev/null
@@ -1,16 +0,0 @@
-### Overview
-This pull request:
-
-| Q | A
-| ------------- | ---
-| Bug fix? | yes/no
-| New feature? | yes/no
-| Has tests? | yes/no
-| BC breaks? | no
-| Deprecations? | yes/no
-
-### Summary
-Short overview of what changed.
-
-### Description
-Any additional information.
diff --git a/vendor/consolidation/site-alias/.gitignore b/vendor/consolidation/site-alias/.gitignore
deleted file mode 100644
index 9722bd90d..000000000
--- a/vendor/consolidation/site-alias/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-.idea/
-box.phar
-build
-alias-tool.phar
-vendor/
diff --git a/vendor/consolidation/site-alias/.scenarios.lock/install b/vendor/consolidation/site-alias/.scenarios.lock/install
deleted file mode 100755
index 16c69e107..000000000
--- a/vendor/consolidation/site-alias/.scenarios.lock/install
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-SCENARIO=$1
-DEPENDENCIES=${2-install}
-
-# Convert the aliases 'highest', 'lowest' and 'lock' to
-# the corresponding composer command to run.
-case $DEPENDENCIES in
- highest)
- DEPENDENCIES=update
- ;;
- lowest)
- DEPENDENCIES='update --prefer-lowest'
- ;;
- lock|default|"")
- DEPENDENCIES=install
- ;;
-esac
-
-original_name=scenarios
-recommended_name=".scenarios.lock"
-
-base="$original_name"
-if [ -d "$recommended_name" ] ; then
- base="$recommended_name"
-fi
-
-# If scenario is not specified, install the lockfile at
-# the root of the project.
-dir="$base/${SCENARIO}"
-if [ -z "$SCENARIO" ] || [ "$SCENARIO" == "default" ] ; then
- SCENARIO=default
- dir=.
-fi
-
-# Test to make sure that the selected scenario exists.
-if [ ! -d "$dir" ] ; then
- echo "Requested scenario '${SCENARIO}' does not exist."
- exit 1
-fi
-
-echo
-echo "::"
-echo ":: Switch to ${SCENARIO} scenario"
-echo "::"
-echo
-
-set -ex
-
-composer -n validate --working-dir=$dir --no-check-all --ansi
-composer -n --working-dir=$dir ${DEPENDENCIES} --prefer-dist --no-scripts
-
-# If called from a CI context, print out some extra information about
-# what we just installed.
-if [[ -n "$CI" ]] ; then
- composer -n --working-dir=$dir info
-fi
diff --git a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/.gitignore b/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/.gitignore
deleted file mode 100644
index 22d0d82f8..000000000
--- a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
diff --git a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/composer.json b/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/composer.json
deleted file mode 100644
index bc86aacd7..000000000
--- a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/composer.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "name": "consolidation/site-alias",
- "description": "Template project for PHP libraries.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Moshe Weitzman",
- "email": "weitzman@tejasa.com"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\SiteAlias\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\SiteAlias\\": "tests/src"
- }
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "consolidation/Robo": "^1.2.3",
- "g1a/composer-test-scenarios": "^2",
- "knplabs/github-api": "^2.7",
- "php-http/guzzle6-adapter": "^1.1",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.8",
- "symfony/console": "^2.8|^3|^4",
- "symfony/yaml": "~2.3|^3"
- },
- "scripts": {
- "phar:install-tools": [
- "gem install mime-types -v 2.6.2",
- "curl -LSs https://box-project.github.io/box2/installer.php | php"
- ],
- "phar:build": "box build",
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "release": [
- "( sed -e 's/-dev$//' VERSION > VERSION.tmp && mv -f VERSION.tmp VERSION && ver=\"$(cat VERSION)\" && git add VERSION && git commit -m \"Version $ver\" && git tag \"$ver\" && git push origin \"$ver\" && a=( ${ver//./ } ) && ((a[2]++)) && echo \"${a[0]}.${a[1]}.${a[2]}-dev\" > VERSION && git add VERSION && git commit -m \"Back to -dev\" && git push origin master )"
- ],
- "scenario": ".scenarios.lock/install",
- "post-update-cmd": [
- "create-scenario phpunit5 'phpunit/phpunit:^5.7.27' --platform-php '5.6.33'",
- "dependency-licenses"
- ]
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "5.6.33"
- },
- "vendor-dir": "../../vendor"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "minimum-stability": "stable"
-}
diff --git a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/composer.lock b/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/composer.lock
deleted file mode 100644
index 111be66f1..000000000
--- a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/composer.lock
+++ /dev/null
@@ -1,3708 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "125c879aa4bd882e58a507fae89da176",
- "packages": [],
- "packages-dev": [
- {
- "name": "clue/stream-filter",
- "version": "v1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/clue/php-stream-filter.git",
- "reference": "d80fdee9b3a7e0d16fc330a22f41f3ad0eeb09d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/clue/php-stream-filter/zipball/d80fdee9b3a7e0d16fc330a22f41f3ad0eeb09d0",
- "reference": "d80fdee9b3a7e0d16fc330a22f41f3ad0eeb09d0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0 || ^4.8"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Clue\\StreamFilter\\": "src/"
- },
- "files": [
- "src/functions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Christian Lück",
- "email": "christian@lueck.tv"
- }
- ],
- "description": "A simple and modern approach to stream filtering in PHP",
- "homepage": "https://github.com/clue/php-stream-filter",
- "keywords": [
- "bucket brigade",
- "callback",
- "filter",
- "php_user_filter",
- "stream",
- "stream_filter_append",
- "stream_filter_register"
- ],
- "time": "2017-08-18T09:54:01+00:00"
- },
- {
- "name": "consolidation/annotated-command",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/annotated-command.git",
- "reference": "4bdbb8fa149e1cc1511bd77b0bc4729fd66bccac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/4bdbb8fa149e1cc1511bd77b0bc4729fd66bccac",
- "reference": "4bdbb8fa149e1cc1511bd77b0bc4729fd66bccac",
- "shasum": ""
- },
- "require": {
- "consolidation/output-formatters": "^3.1.12",
- "php": ">=5.4.0",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^6",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "time": "2018-09-19T17:47:18+00:00"
- },
- {
- "name": "consolidation/config",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/config.git",
- "reference": "c9fc25e9088a708637e18a256321addc0670e578"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/config/zipball/c9fc25e9088a708637e18a256321addc0670e578",
- "reference": "c9fc25e9088a708637e18a256321addc0670e578",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "grasmash/expander": "^1",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^5",
- "satooshi/php-coveralls": "^1.0",
- "squizlabs/php_codesniffer": "2.*",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "suggest": {
- "symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Config\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Provide configuration services for a commandline tool.",
- "time": "2018-08-07T22:57:00+00:00"
- },
- {
- "name": "consolidation/log",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/log.git",
- "reference": "dfd8189a771fe047bf3cd669111b2de5f1c79395"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/log/zipball/dfd8189a771fe047bf3cd669111b2de5f1c79395",
- "reference": "dfd8189a771fe047bf3cd669111b2de5f1c79395",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "psr/log": "~1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "4.*",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "2.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "time": "2018-05-25T18:14:39+00:00"
- },
- {
- "name": "consolidation/output-formatters",
- "version": "3.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "d78ef59aea19d3e2e5a23f90a055155ee78a0ad5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/d78ef59aea19d3e2e5a23f90a055155ee78a0ad5",
- "reference": "d78ef59aea19d3e2e5a23f90a055155ee78a0ad5",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-05-25T18:02:34+00:00"
- },
- {
- "name": "consolidation/robo",
- "version": "1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/Robo.git",
- "reference": "31f2d2562c4e1dcde70f2659eefd59aa9c7f5b2d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/Robo/zipball/31f2d2562c4e1dcde70f2659eefd59aa9c7f5b2d",
- "reference": "31f2d2562c4e1dcde70f2659eefd59aa9c7f5b2d",
- "shasum": ""
- },
- "require": {
- "consolidation/annotated-command": "^2.8.2",
- "consolidation/config": "^1.0.10",
- "consolidation/log": "~1",
- "consolidation/output-formatters": "^3.1.13",
- "consolidation/self-update": "^1",
- "g1a/composer-test-scenarios": "^2",
- "grasmash/yaml-expander": "^1.3",
- "league/container": "^2.2",
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/process": "^2.5|^3|^4"
- },
- "replace": {
- "codegyre/robo": "< 1.0"
- },
- "require-dev": {
- "codeception/aspect-mock": "^1|^2.1.1",
- "codeception/base": "^2.3.7",
- "codeception/verify": "^0.3.2",
- "goaop/framework": "~2.1.2",
- "goaop/parser-reflection": "^1.1.0",
- "natxet/cssmin": "3.0.4",
- "nikic/php-parser": "^3.1.5",
- "patchwork/jsqueeze": "~2",
- "pear/archive_tar": "^1.4.2",
- "phpunit/php-code-coverage": "~2|~4",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "suggest": {
- "henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "natxet/CssMin": "For minifying CSS files in taskMinify",
- "patchwork/jsqueeze": "For minifying JS files in taskMinify",
- "pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively."
- },
- "bin": [
- "robo"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev",
- "dev-state": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Robo\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "description": "Modern task runner",
- "time": "2018-08-17T18:44:18+00:00"
- },
- {
- "name": "consolidation/self-update",
- "version": "1.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/self-update.git",
- "reference": "de33822f907e0beb0ffad24cf4b1b4fae5ada318"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/self-update/zipball/de33822f907e0beb0ffad24cf4b1b4fae5ada318",
- "reference": "de33822f907e0beb0ffad24cf4b1b4fae5ada318",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4"
- },
- "bin": [
- "scripts/release"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "SelfUpdate\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Alexander Menk",
- "email": "menk@mestrona.net"
- }
- ],
- "description": "Provides a self:update command for Symfony Console applications.",
- "time": "2018-08-24T17:01:46+00:00"
- },
- {
- "name": "container-interop/container-interop",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/container-interop/container-interop.git",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "shasum": ""
- },
- "require": {
- "psr/container": "^1.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop",
- "time": "2017-02-14T19:40:03+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "2.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "a166fd15191aceab89f30c097e694b7cf3db4880"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/a166fd15191aceab89f30c097e694b7cf3db4880",
- "reference": "a166fd15191aceab89f30c097e694b7cf3db4880",
- "shasum": ""
- },
- "bin": [
- "scripts/create-scenario",
- "scripts/dependency-licenses",
- "scripts/install-scenario"
- ],
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-08-08T23:37:23+00:00"
- },
- {
- "name": "grasmash/expander",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/expander.git",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\Expander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in PHP arrays file.",
- "time": "2017-12-21T22:14:55+00:00"
- },
- {
- "name": "grasmash/yaml-expander",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/yaml-expander.git",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/yaml-expander/zipball/3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\YamlExpander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in a yaml file.",
- "time": "2017-12-16T16:06:03+00:00"
- },
- {
- "name": "guzzlehttp/guzzle",
- "version": "6.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "shasum": ""
- },
- "require": {
- "guzzlehttp/promises": "^1.0",
- "guzzlehttp/psr7": "^1.4",
- "php": ">=5.5"
- },
- "require-dev": {
- "ext-curl": "*",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
- "psr/log": "^1.0"
- },
- "suggest": {
- "psr/log": "Required for using the Log middleware"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.3-dev"
- }
- },
- "autoload": {
- "files": [
- "src/functions_include.php"
- ],
- "psr-4": {
- "GuzzleHttp\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "time": "2018-04-22T15:46:56+00:00"
- },
- {
- "name": "guzzlehttp/promises",
- "version": "v1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/promises.git",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Promise\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle promises library",
- "keywords": [
- "promise"
- ],
- "time": "2016-12-20T10:07:11+00:00"
- },
- {
- "name": "guzzlehttp/psr7",
- "version": "1.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/psr7.git",
- "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
- "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Tobias Schultze",
- "homepage": "https://github.com/Tobion"
- }
- ],
- "description": "PSR-7 message implementation that also provides common utility methods",
- "keywords": [
- "http",
- "message",
- "request",
- "response",
- "stream",
- "uri",
- "url"
- ],
- "time": "2017-03-20T17:10:46+00:00"
- },
- {
- "name": "knplabs/github-api",
- "version": "2.10.1",
- "source": {
- "type": "git",
- "url": "https://github.com/KnpLabs/php-github-api.git",
- "reference": "493423ae7ad1fa9075924cdfb98537828b9e80b5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/KnpLabs/php-github-api/zipball/493423ae7ad1fa9075924cdfb98537828b9e80b5",
- "reference": "493423ae7ad1fa9075924cdfb98537828b9e80b5",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "php-http/cache-plugin": "^1.4",
- "php-http/client-common": "^1.6",
- "php-http/client-implementation": "^1.0",
- "php-http/discovery": "^1.0",
- "php-http/httplug": "^1.1",
- "psr/cache": "^1.0",
- "psr/http-message": "^1.0"
- },
- "require-dev": {
- "cache/array-adapter": "^0.4",
- "guzzlehttp/psr7": "^1.2",
- "php-http/guzzle6-adapter": "^1.0",
- "php-http/mock-client": "^1.0",
- "phpunit/phpunit": "^5.5 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.10.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Github\\": "lib/Github/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Thibault Duplessis",
- "email": "thibault.duplessis@gmail.com",
- "homepage": "http://ornicar.github.com"
- },
- {
- "name": "KnpLabs Team",
- "homepage": "http://knplabs.com"
- }
- ],
- "description": "GitHub API v3 client",
- "homepage": "https://github.com/KnpLabs/php-github-api",
- "keywords": [
- "api",
- "gh",
- "gist",
- "github"
- ],
- "time": "2018-09-05T19:12:14+00:00"
- },
- {
- "name": "league/container",
- "version": "2.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/thephpleague/container.git",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/thephpleague/container/zipball/43f35abd03a12977a60ffd7095efd6a7808488c0",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0",
- "shasum": ""
- },
- "require": {
- "container-interop/container-interop": "^1.2",
- "php": "^5.4.0 || ^7.0"
- },
- "provide": {
- "container-interop/container-interop-implementation": "^1.2",
- "psr/container-implementation": "^1.0"
- },
- "replace": {
- "orno/di": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-2.x": "2.x-dev",
- "dev-1.x": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "League\\Container\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Phil Bennett",
- "email": "philipobenito@gmail.com",
- "homepage": "http://www.philipobenito.com",
- "role": "Developer"
- }
- ],
- "description": "A fast and intuitive dependency injection container.",
- "homepage": "https://github.com/thephpleague/container",
- "keywords": [
- "container",
- "dependency",
- "di",
- "injection",
- "league",
- "provider",
- "service"
- ],
- "time": "2017-05-10T09:20:27+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "php-http/cache-plugin",
- "version": "v1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/cache-plugin.git",
- "reference": "c573ac6ea9b4e33fad567f875b844229d18000b9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/cache-plugin/zipball/c573ac6ea9b4e33fad567f875b844229d18000b9",
- "reference": "c573ac6ea9b4e33fad567f875b844229d18000b9",
- "shasum": ""
- },
- "require": {
- "php": "^5.4 || ^7.0",
- "php-http/client-common": "^1.1",
- "php-http/message-factory": "^1.0",
- "psr/cache": "^1.0",
- "symfony/options-resolver": "^2.6 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Client\\Common\\Plugin\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "PSR-6 Cache plugin for HTTPlug",
- "homepage": "http://httplug.io",
- "keywords": [
- "cache",
- "http",
- "httplug",
- "plugin"
- ],
- "time": "2017-11-29T20:45:41+00:00"
- },
- {
- "name": "php-http/client-common",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/client-common.git",
- "reference": "9accb4a082eb06403747c0ffd444112eda41a0fd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/client-common/zipball/9accb4a082eb06403747c0ffd444112eda41a0fd",
- "reference": "9accb4a082eb06403747c0ffd444112eda41a0fd",
- "shasum": ""
- },
- "require": {
- "php": "^5.4 || ^7.0",
- "php-http/httplug": "^1.1",
- "php-http/message": "^1.6",
- "php-http/message-factory": "^1.0",
- "symfony/options-resolver": "^2.6 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "guzzlehttp/psr7": "^1.4",
- "phpspec/phpspec": "^2.5 || ^3.4 || ^4.2"
- },
- "suggest": {
- "php-http/cache-plugin": "PSR-6 Cache plugin",
- "php-http/logger-plugin": "PSR-3 Logger plugin",
- "php-http/stopwatch-plugin": "Symfony Stopwatch plugin"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.7-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Client\\Common\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "Common HTTP Client implementations and tools for HTTPlug",
- "homepage": "http://httplug.io",
- "keywords": [
- "client",
- "common",
- "http",
- "httplug"
- ],
- "time": "2017-11-30T11:06:59+00:00"
- },
- {
- "name": "php-http/discovery",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/discovery.git",
- "reference": "9a6cb24de552bfe1aa9d7d1569e2d49c5b169a33"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/discovery/zipball/9a6cb24de552bfe1aa9d7d1569e2d49c5b169a33",
- "reference": "9a6cb24de552bfe1aa9d7d1569e2d49c5b169a33",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0"
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^2.0.2",
- "php-http/httplug": "^1.0",
- "php-http/message-factory": "^1.0",
- "phpspec/phpspec": "^2.4",
- "puli/composer-plugin": "1.0.0-beta10"
- },
- "suggest": {
- "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories",
- "puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Discovery\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "Finds installed HTTPlug implementations and PSR-7 message factories",
- "homepage": "http://php-http.org",
- "keywords": [
- "adapter",
- "client",
- "discovery",
- "factory",
- "http",
- "message",
- "psr7"
- ],
- "time": "2018-02-06T10:55:24+00:00"
- },
- {
- "name": "php-http/guzzle6-adapter",
- "version": "v1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/guzzle6-adapter.git",
- "reference": "a56941f9dc6110409cfcddc91546ee97039277ab"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/guzzle6-adapter/zipball/a56941f9dc6110409cfcddc91546ee97039277ab",
- "reference": "a56941f9dc6110409cfcddc91546ee97039277ab",
- "shasum": ""
- },
- "require": {
- "guzzlehttp/guzzle": "^6.0",
- "php": ">=5.5.0",
- "php-http/httplug": "^1.0"
- },
- "provide": {
- "php-http/async-client-implementation": "1.0",
- "php-http/client-implementation": "1.0"
- },
- "require-dev": {
- "ext-curl": "*",
- "php-http/adapter-integration-tests": "^0.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Adapter\\Guzzle6\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- },
- {
- "name": "David de Boer",
- "email": "david@ddeboer.nl"
- }
- ],
- "description": "Guzzle 6 HTTP Adapter",
- "homepage": "http://httplug.io",
- "keywords": [
- "Guzzle",
- "http"
- ],
- "time": "2016-05-10T06:13:32+00:00"
- },
- {
- "name": "php-http/httplug",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/httplug.git",
- "reference": "1c6381726c18579c4ca2ef1ec1498fdae8bdf018"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/httplug/zipball/1c6381726c18579c4ca2ef1ec1498fdae8bdf018",
- "reference": "1c6381726c18579c4ca2ef1ec1498fdae8bdf018",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "php-http/promise": "^1.0",
- "psr/http-message": "^1.0"
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Client\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Eric GELOEN",
- "email": "geloen.eric@gmail.com"
- },
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "HTTPlug, the HTTP client abstraction for PHP",
- "homepage": "http://httplug.io",
- "keywords": [
- "client",
- "http"
- ],
- "time": "2016-08-31T08:30:17+00:00"
- },
- {
- "name": "php-http/message",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/message.git",
- "reference": "741f2266a202d59c4ed75436671e1b8e6f475ea3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/message/zipball/741f2266a202d59c4ed75436671e1b8e6f475ea3",
- "reference": "741f2266a202d59c4ed75436671e1b8e6f475ea3",
- "shasum": ""
- },
- "require": {
- "clue/stream-filter": "^1.4",
- "php": "^5.4 || ^7.0",
- "php-http/message-factory": "^1.0.2",
- "psr/http-message": "^1.0"
- },
- "provide": {
- "php-http/message-factory-implementation": "1.0"
- },
- "require-dev": {
- "akeneo/phpspec-skip-example-extension": "^1.0",
- "coduo/phpspec-data-provider-extension": "^1.0",
- "ext-zlib": "*",
- "guzzlehttp/psr7": "^1.0",
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.4",
- "slim/slim": "^3.0",
- "zendframework/zend-diactoros": "^1.0"
- },
- "suggest": {
- "ext-zlib": "Used with compressor/decompressor streams",
- "guzzlehttp/psr7": "Used with Guzzle PSR-7 Factories",
- "slim/slim": "Used with Slim Framework PSR-7 implementation",
- "zendframework/zend-diactoros": "Used with Diactoros Factories"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Message\\": "src/"
- },
- "files": [
- "src/filters.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "HTTP Message related tools",
- "homepage": "http://php-http.org",
- "keywords": [
- "http",
- "message",
- "psr-7"
- ],
- "time": "2018-08-15T06:37:30+00:00"
- },
- {
- "name": "php-http/message-factory",
- "version": "v1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/message-factory.git",
- "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/message-factory/zipball/a478cb11f66a6ac48d8954216cfed9aa06a501a1",
- "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "psr/http-message": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "Factory interfaces for PSR-7 HTTP Message",
- "homepage": "http://php-http.org",
- "keywords": [
- "factory",
- "http",
- "message",
- "stream",
- "uri"
- ],
- "time": "2015-12-19T14:08:53+00:00"
- },
- {
- "name": "php-http/promise",
- "version": "v1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/promise.git",
- "reference": "dc494cdc9d7160b9a09bd5573272195242ce7980"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/promise/zipball/dc494cdc9d7160b9a09bd5573272195242ce7980",
- "reference": "dc494cdc9d7160b9a09bd5573272195242ce7980",
- "shasum": ""
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Promise\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- },
- {
- "name": "Joel Wurtz",
- "email": "joel.wurtz@gmail.com"
- }
- ],
- "description": "Promise used for asynchronous HTTP requests",
- "homepage": "http://httplug.io",
- "keywords": [
- "promise"
- ],
- "time": "2016-01-26T13:27:02+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "3.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-10T14:09:06+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
- },
- "require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
- },
- "suggest": {
- "ext-xdebug": "^2.5.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2017-04-02T07:44:40+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "5.7.27",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-02-01T05:50:59+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2017-06-30T09:13:00+00:00"
- },
- {
- "name": "psr/cache",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/cache.git",
- "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
- "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Cache\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for caching libraries",
- "keywords": [
- "cache",
- "psr",
- "psr-6"
- ],
- "time": "2016-08-06T20:24:11+00:00"
- },
- {
- "name": "psr/container",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/container.git",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common Container Interface (PHP FIG PSR-11)",
- "homepage": "https://github.com/php-fig/container",
- "keywords": [
- "PSR-11",
- "container",
- "container-interface",
- "container-interop",
- "psr"
- ],
- "time": "2017-02-14T16:28:37+00:00"
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "satooshi/php-coveralls",
- "version": "v2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "3eaf7eb689cdf6b86801a3843940d974dc657068"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/3eaf7eb689cdf6b86801a3843940d974dc657068",
- "reference": "3eaf7eb689cdf6b86801a3843940d974dc657068",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzlehttp/guzzle": "^6.0",
- "php": "^5.5 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/php-coveralls"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpCoveralls\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp",
- "role": "Original creator"
- },
- {
- "name": "Takashi Matsuo",
- "email": "tmatsuo@google.com"
- },
- {
- "name": "Google Inc"
- },
- {
- "name": "Dariusz Ruminski",
- "email": "dariusz.ruminski@gmail.com",
- "homepage": "https://github.com/keradus"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/php-coveralls/php-coveralls/graphs/contributors"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "abandoned": "php-coveralls/php-coveralls",
- "time": "2017-12-08T14:28:16+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-11-26T07:53:53+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-11-19T08:54:04+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-02-18T15:18:39+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-11-19T07:33:16+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2017-05-22T02:43:20+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "7b08223b7f6abd859651c56bcabf900d1627d085"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/7b08223b7f6abd859651c56bcabf900d1627d085",
- "reference": "7b08223b7f6abd859651c56bcabf900d1627d085",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "c4625e75341e4fb309ce0c049cbf7fb84b8897cd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/c4625e75341e4fb309ce0c049cbf7fb84b8897cd",
- "reference": "c4625e75341e4fb309ce0c049cbf7fb84b8897cd",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-03T10:42:44+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "b2e1f19280c09a42dc64c0b72b80fe44dd6e88fb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b2e1f19280c09a42dc64c0b72b80fe44dd6e88fb",
- "reference": "b2e1f19280c09a42dc64c0b72b80fe44dd6e88fb",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T09:06:28+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "285ce5005cb01a0aeaa5b0cf590bd0cc40bb631c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/285ce5005cb01a0aeaa5b0cf590bd0cc40bb631c",
- "reference": "285ce5005cb01a0aeaa5b0cf590bd0cc40bb631c",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-10T07:29:05+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "8a84fcb207451df0013b2c74cbbf1b62d47b999a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/8a84fcb207451df0013b2c74cbbf1b62d47b999a",
- "reference": "8a84fcb207451df0013b2c74cbbf1b62d47b999a",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/options-resolver",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/options-resolver.git",
- "reference": "6debc476953a45969ab39afe8dee0b825f356dc7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/options-resolver/zipball/6debc476953a45969ab39afe8dee0b825f356dc7",
- "reference": "6debc476953a45969ab39afe8dee0b825f356dc7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\OptionsResolver\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony OptionsResolver Component",
- "homepage": "https://symfony.com",
- "keywords": [
- "config",
- "configuration",
- "options"
- ],
- "time": "2018-07-26T08:45:46+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "4d6b125d5293cbceedc2aa10f2c71617e76262e7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/4d6b125d5293cbceedc2aa10f2c71617e76262e7",
- "reference": "4d6b125d5293cbceedc2aa10f2c71617e76262e7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-03T10:42:44+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "deda2765e8dab2fc38492e926ea690f2a681f59d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/deda2765e8dab2fc38492e926ea690f2a681f59d",
- "reference": "deda2765e8dab2fc38492e926ea690f2a681f59d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T10:03:52+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c2f4812ead9f847cb69e90917ca7502e6892d6b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c2f4812ead9f847cb69e90917ca7502e6892d6b8",
- "reference": "c2f4812ead9f847cb69e90917ca7502e6892d6b8",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-10T07:34:36+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.5.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.6.33"
- }
-}
diff --git a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/src b/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/src
deleted file mode 120000
index 929cb3dc9..000000000
--- a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/src
+++ /dev/null
@@ -1 +0,0 @@
-../../src
\ No newline at end of file
diff --git a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/tests b/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/tests
deleted file mode 120000
index c2ebfe530..000000000
--- a/vendor/consolidation/site-alias/.scenarios.lock/phpunit5/tests
+++ /dev/null
@@ -1 +0,0 @@
-../../tests
\ No newline at end of file
diff --git a/vendor/consolidation/site-alias/.scrutinizer.yml b/vendor/consolidation/site-alias/.scrutinizer.yml
deleted file mode 100644
index 8528e06fb..000000000
--- a/vendor/consolidation/site-alias/.scrutinizer.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-checks:
- php: true
-filter:
- excluded_paths:
- - customize/*
- - tests/*
-tools:
- php_sim: true
- php_pdepend: true
- php_analyzer: true
- php_cs_fixer: false
diff --git a/vendor/consolidation/site-alias/.travis.yml b/vendor/consolidation/site-alias/.travis.yml
deleted file mode 100644
index b2300f691..000000000
--- a/vendor/consolidation/site-alias/.travis.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-dist: trusty
-language: php
-branches:
- only:
- - master
- - "/^[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+.*$/"
-matrix:
- fast_finish: true
- include:
- - php: 7.2
- env: DEPENCENCIES=highest
- - php: 7.2
- - php: 7.1
- - php: 7.0.11
- - php: 5.6
- env: SCENARIO=phpunit5
- - php: 5.6
- env: SCENARIO=phpunit5 DEPENDENCIES=lowest
-sudo: false
-cache:
- directories:
- - "$HOME/.composer/cache"
-install:
-- composer scenario "${SCENARIO}" "${DEPENDENCIES}"
-script:
-- composer test
-after_success:
-- travis_retry php vendor/bin/php-coveralls -v
-before_deploy:
-- composer phar:install-tools
-- composer install --prefer-dist --no-dev --no-interaction
-- php box.phar build
-deploy:
- provider: releases
- api_key:
- secure: Nk+oRXu2ZpF6UCKSxIK1FeQ4zykN8X2oGZrUjQy+tTVE2/BjhldFqlOxHhjfrtViC+eTvGbJbxGteQ7S+67WKyz5Kps9g2mlf7M2wJj9obIR2YJn1d8ch1PYKkWbiXcp8vZoMXDt++pP5TkL6IDTsV7pom7cBa9Yb7OlGkzyxQmu2sfqXzF4ivcsmmoF49ASkHpA6PmRJetXywW/zM1nglIGXZCqfIIYCMi6BLmWsDFBe1xLbvk4H4DgLyMs5O4p5cW9y2abQ0vydcUSoJmIo/7Ehjg4xy2UNWcJnS/oMc4jQj62uPgAtk81rrSAM8HgmCr/fDAVOdOryypElT6jCXSA0LRvCP67X9JkpM5PBGktFYJwMJFKygpGjyqYjI5u7CR8GQuUpJIhgOvIqJIsz+PoDkFnEohbS0NqtLkTfq4GP3wIr2u42NnArpUNw8ejawGk8sgHlhxWI98+3mif8ZHHZlUEr8JCppFIz/W9f2TiFvoRCsNUOR7t2FV/q0k5tbxRA3465fDy2fxz506c11rb6NHV61mu6Xl1RevtX97bHhRHT1Igmhzn3dnfxAyEWxU5CPeVUKFdAqx0WxrAlosQaUwmRXxUlq9qs5j8F2rjPbE+une/sB5S5+2+lSlz8ympF5vIKIE4eExdXaTaIoXO52hPIMKkhZCHxq5tdU4=
- file: alias-tool.phar
- skip_cleanup: true
- on:
- tags: true
- repo: consolidation/site-alias
diff --git a/vendor/consolidation/site-alias/CHANGELOG.md b/vendor/consolidation/site-alias/CHANGELOG.md
deleted file mode 100644
index 92b2fb8ca..000000000
--- a/vendor/consolidation/site-alias/CHANGELOG.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Changelog
-
-### 1.1.9 - 1.1.7 - 2018/Oct/30
-
-* Fixes #11: Prevent calls to 'localRoot' from failing when there is no root set (#15)
-* Set short description in composer.json
-
-### 1.1.6 - 2018/Oct/27
-
-* Add an 'os' method to AliasRecord
-* Only run root through realpath if it is present (throw otherwise) (#11)
-* Add a site:value command for ad-hoc testing
-
-### 1.1.5 - 1.1.3 - 2018/Sept/21
-
-* Experimental wildcard environments
-* Find 'aliases.drushrc.php' files when converting aliases.
-* Fix get multiple (#6)
-
-### 1.1.2 - 2018/Aug/21
-
-* Allow SiteAliasFileLoader::loadMultiple to be filtered by location. (#3)
-
-### 1.1.0 + 1.1.1 - 2018/Aug/14
-
-* Add wildcard site alias environments. (#2)
-* Remove legacy AliasRecord definition; causes more problems than it solves.
-
-### 1.0.1 - 2018/Aug/7
-
-* Allow addSearchLocation to take an array
-
-### 1.0.0 - 2018/July/5
-
-* Initial release
-
diff --git a/vendor/consolidation/site-alias/CONTRIBUTING.md b/vendor/consolidation/site-alias/CONTRIBUTING.md
deleted file mode 100644
index 978799c11..000000000
--- a/vendor/consolidation/site-alias/CONTRIBUTING.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# Contributing to SiteAlias
-
-Thank you for your interest in contributing to SiteAlias! Here are some of the guidelines you should follow to make the most of your efforts:
-
-## Code Style Guidelines
-
-This project adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code. An `.editorconfig` file is included with the repository to help you get up and running quickly. Most modern editors support this standard, but if yours does not or you would like to configure your editor manually, follow the guidelines in the document linked above.
-
-You can run the PHP Codesniffer on your work using a convenient command provided as a composer script:
-```
-composer cs
-```
-The above will run the PHP Codesniffer on the project sources. To automatically clean up code style violations, run:
-```
-composer cbf
-```
-Please ensure all contributions are compliant _before_ submitting a pull request.
-
-## Code of Conduct
-
-### Our Pledge
-
-In the interest of fostering an open and welcoming environment, we as
-contributors and maintainers pledge to making participation in our project and
-our community a harassment-free experience for everyone, regardless of age, body
-size, disability, ethnicity, gender identity and expression, level of experience,
-nationality, personal appearance, race, religion, or sexual identity and
-orientation.
-
-### Our Standards
-
-Examples of behavior that contributes to creating a positive environment
-include:
-
-* Using welcoming and inclusive language
-* Being respectful of differing viewpoints and experiences
-* Gracefully accepting constructive criticism
-* Focusing on what is best for the community
-* Showing empathy towards other community members
-
-Examples of unacceptable behavior by participants include:
-
-* The use of sexualized language or imagery and unwelcome sexual attention or
-advances
-* Trolling, insulting/derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or electronic
- address, without explicit permission
-* Other conduct which could reasonably be considered inappropriate in a
- professional setting
-
-### Our Responsibilities
-
-Project maintainers are responsible for clarifying the standards of acceptable
-behavior and are expected to take appropriate and fair corrective action in
-response to any instances of unacceptable behavior.
-
-Project maintainers have the right and responsibility to remove, edit, or
-reject comments, commits, code, wiki edits, issues, and other contributions
-that are not aligned to this Code of Conduct, or to ban temporarily or
-permanently any contributor for other behaviors that they deem inappropriate,
-threatening, offensive, or harmful.
-
-### Scope
-
-This Code of Conduct applies both within project spaces and in public spaces
-when an individual is representing the project or its community. Examples of
-representing a project or community include using an official project e-mail
-address, posting via an official social media account, or acting as an appointed
-representative at an online or offline event. Representation of a project may be
-further defined and clarified by project maintainers.
-
-### Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
-complaints will be reviewed and investigated and will result in a response that
-is deemed necessary and appropriate to the circumstances. The project team is
-obligated to maintain confidentiality with regard to the reporter of an incident.
-Further details of specific enforcement policies may be posted separately.
-
-Project maintainers who do not follow or enforce the Code of Conduct in good
-faith may face temporary or permanent repercussions as determined by other
-members of the project's leadership.
-
-### Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
-available at [http://contributor-covenant.org/version/1/4][version]
-
-[homepage]: http://contributor-covenant.org
-[version]: http://contributor-covenant.org/version/1/4/
diff --git a/vendor/consolidation/site-alias/LICENSE b/vendor/consolidation/site-alias/LICENSE
deleted file mode 100644
index 1ab5cdf0f..000000000
--- a/vendor/consolidation/site-alias/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2018 Greg Anderson
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-DEPENDENCY LICENSES:
-
-Name Version License
diff --git a/vendor/consolidation/site-alias/README.md b/vendor/consolidation/site-alias/README.md
deleted file mode 100644
index 55dee4d28..000000000
--- a/vendor/consolidation/site-alias/README.md
+++ /dev/null
@@ -1,178 +0,0 @@
-# SiteAlias
-
-Manage alias records for local and remote sites.
-
-[![Travis CI](https://travis-ci.org/consolidation/site-alias.svg?branch=master)](https://travis-ci.org/consolidation/site-alias)
-[![Windows CI](https://ci.appveyor.com/api/projects/status/6mp1hxmql85aw7ah?svg=true)](https://ci.appveyor.com/project/greg-1-anderson/site-alias)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/consolidation/site-alias/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/consolidation/site-alias/?branch=master)
-[![Coverage Status](https://coveralls.io/repos/github/consolidation/site-alias/badge.svg?branch=master)](https://coveralls.io/github/consolidation/site-alias?branch=master)
-[![License](https://img.shields.io/badge/license-MIT-408677.svg)](LICENSE)
-
-## Overview
-
-This project provides the implementation for Drush site aliases. It is used in Drush 9 and later. It would also be possible to use this library to manage site aliases for similar commandline tools.
-
-### Alias naming conventions
-
-Site alias names always begin with a `@`, and typically are divided in three parts: the alias file location (optional), the site name, and the environment name, each separated by a dot. None of these names may contain a dot. An example alias that referenced the `dev` environment of the site `example` in the `myisp` directory might therefore look something like:
-```
-@myisp.example.dev
-```
-The location name is optional. If specified, it will only consider alias files located in directories with the same name as the provided location name. The remainder of the path is immaterial; only the directory that is the immediate parent of the site alias file is relevant. The location name may be omitted, e.g.:
-```
-@example.dev
-```
-If the location is not specified, then the alias manaager will consider all locations for an applicable site alias file. Note that by default, deep searching is disabled; unless deep searching is enabled, the location name must refer to a directory that is explicitly listed as a location to place site alias files (e.g. in the application's configuration file).
-
-It is also possible to use single-word aliases. These can sometimes be ambiguous; the site alias manager will resolve single-word aliases as follows:
-
-1. `@self` is interpreted to mean the site that has already been selected, or the site that would be selected in the absence of any alias.
-2. `@none` is interpreted as the empty alias--an alias with no items defined.
-3. `@`, for any `` is equivalent to `@self.` if such an alias is defined. See below.
-4. `@`, for any `` is equivalent to the default environment of ``, e.g. `@.`. The default environment defaults to `dev`, but may be explicitly set in the alias.
-
-### Alias placement on commandline
-
-It is up to each individual commandline tools how to utilize aliases. There are two primary examples:
-
-1. Site selection alias: `tool @sitealias command`
-2. Alias parameters: `tool command @source @destination`
-
-In the first example, with the site alias appearing before the command name, the alias is used to determine the target site for the current command. In the second example, the arguments of the command are used to specify source and destination sites.
-
-### Alias filenames and locations
-
-It is also up to each individual commandline tool where to search for alias files. Search locations may be added to the SiteAliasManager via an API call. By default, alias files are only found if they appear immediately inside one of the specified search locations. Deep searching is only done if explicitly enabled by the application.
-
-Aliases are typically stored in Yaml files, although other formats may also be used if a custom alias data file loader is provided. The extension of the file determines the loader type (.yml for Yaml). The base name of the file, sans its extension, is the site name used to address the alias on the commandline. Site names may not contain periods.
-
-### Alias file contents
-
-The canonical site alias will contain information about how to locate the site on the local file system, and how the site is addressed on the network (when accessed via a web browser).
-```
-dev:
- root: /path/to/site
- uri: https://example.com
-```
-A more complex alias might also contain information about the server that the site is running on (when accessed via ssh for deployment and maintenance).
-```
-dev:
- root: /path/to/site
- uri: https://example.com
- remote: server.com
- user: www-data
-```
-
-### Wildcard environments (Experimental)
-
-It is also possible to define "wildcard" environments that will match any provided environment name. This is only possible to do in instances where the contents of the wildcard aliases are all the same, except for places where the environment name appears. To substitute the name of the environment into a wildcard domain, use the variable replacement string `${env-name}`. For example, a wildcard alias that will match any multisite in a Drupal site might look something like the following example:
-```
-'*':
- root: /wild/path/to/wild
- uri: https://${env-name}.example.com
-```
-
-### 'Self' environment aliases
-
-As previously mentioned, an alias in the form of `@` is interpreted as `@self.`. This allows sites to define a `self.site.yml` file that contains common aliases shared among a team--for example, `@stage` and `@live`.
-
-## Site specifications
-
-Site specifications are specially-crafted commandline arguments that can serve as replacements for simple site aliases. Site specifications are particularly useful for scripts that may wish to operate on a remote site without generating a temporary alias file.
-
-The basic form for a site specification is:
-```
-user.name@example.com/path#uri
-```
-This is equivalent to the following alias record:
-```
-env:
- user: user.name
- host: example.com
- root: /path
- uri: somemultisite
-```
-
-## Getting Started
-
-To get started contributing to this project, simply clone it locally and then run `composer install`.
-
-### Running the tests
-
-The test suite may be run locally by way of some simple composer scripts:
-
-| Test | Command
-| ---------------- | ---
-| Run all tests | `composer test`
-| PHPUnit tests | `composer unit`
-| PHP linter | `composer lint`
-| Code style | `composer cs`
-| Fix style errors | `composer cbf`
-
-### Development Commandline Tool
-
-This library comes with a commandline tool called `alias-tool`. The only purpose
-this tool serves is to provide a way to do ad-hoc experimentation and testing
-for this library.
-
-Example:
-```
-$ ./alias-tool site:list tests/fixtures/sitealiases/sites/
-
- ! [NOTE] Add search location: tests/fixtures/sitealiases/sites/
-
-'@single.alternate':
- foo: bar
- root: /alternate/path/to/single
-'@single.dev':
- foo: bar
- root: /path/to/single
-'@wild.*':
- foo: bar
- root: /wild/path/to/wild
- uri: 'https://*.example.com'
-'@wild.dev':
- foo: bar
- root: /path/to/wild
- uri: 'https://dev.example.com'
-
-$ ./alias-tool site:get tests/fixtures/sitealiases/sites/ @single.dev
-
- ! [NOTE] Add search location: tests/fixtures/sitealiases/sites/
-
- ! [NOTE] Alias parameter: '@single.dev'
-
-foo: bar
-root: /path/to/single
-```
-See `./alias-tool help` and `./alias-tool list` for more information.
-
-## Release Procedure
-
-To create a release:
-
-- Edit the `VERSION` file to contain the version to release, and commit the change.
-- Run `composer release`
-
-## Built With
-
-This library was created with the [g1a/starter](https://github.com/g1a/starter) project, a fast way to create php libraries and [Robo](https://robo.li/) / [Symfony](https://symfony.com/) applications.
-
-## Contributing
-
-Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on the process for submitting pull requests to us.
-
-## Versioning
-
-We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [releases](https://github.com/consolidation/site-alias/releases) page.
-
-## Authors
-
-* **Greg Anderson**
-* **Moshe Weitzman**
-
-See also the list of [contributors](https://github.com/consolidation/site-alias/contributors) who participated in this project. Thanks also to all of the [drush contributors](https://github.com/drush-ops/drush/contributors) who contributed directly or indirectly to site aliases.
-
-## License
-
-This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
diff --git a/vendor/consolidation/site-alias/VERSION b/vendor/consolidation/site-alias/VERSION
deleted file mode 100644
index 9ee1f786d..000000000
--- a/vendor/consolidation/site-alias/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.1.11
diff --git a/vendor/consolidation/site-alias/alias-tool b/vendor/consolidation/site-alias/alias-tool
deleted file mode 100755
index c03e309aa..000000000
--- a/vendor/consolidation/site-alias/alias-tool
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env php
-setSelfUpdateRepository($selfUpdateRepository)
- ->setConfigurationFilename($configFilePath)
- ->setEnvConfigPrefix($configPrefix)
- ->setClassLoader($classLoader);
-
-// Execute the command and return the result.
-$output = new \Symfony\Component\Console\Output\ConsoleOutput();
-$statusCode = $runner->execute($argv, $appName, $appVersion, $output);
-exit($statusCode);
diff --git a/vendor/consolidation/site-alias/appveyor.yml b/vendor/consolidation/site-alias/appveyor.yml
deleted file mode 100644
index 0483b24f8..000000000
--- a/vendor/consolidation/site-alias/appveyor.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-build: false
-shallow_clone: false
-platform: 'x86'
-clone_folder: C:\projects\work
-branches:
- only:
- - master
-
-## Cache composer bits
-cache:
- - '%LOCALAPPDATA%\Composer\files -> composer.lock'
-
-init:
- #https://github.com/composer/composer/blob/master/appveyor.yml
- #- SET ANSICON=121x90 (121x90)
-
-# Inspired by https://github.com/Codeception/base/blob/master/appveyor.yml and https://github.com/phpmd/phpmd/blob/master/appveyor.yml
-install:
- - cinst -y curl
- - SET PATH=C:\Program Files\curl;%PATH%
- #which is only needed by the test suite.
- - cinst -y which
- - SET PATH=C:\Program Files\which;%PATH%
- - git clone -q https://github.com/acquia/DevDesktopCommon.git #For tar, cksum, ...
- - SET PATH=%APPVEYOR_BUILD_FOLDER%/DevDesktopCommon/bintools-win/msys/bin;%PATH%
- - SET PATH=C:\Program Files\MySql\MySQL Server 5.7\bin\;%PATH%
- #Install PHP per https://blog.wyrihaximus.net/2016/11/running-php-unit-tests-on-windows-using-appveyor-and-chocolatey/
- - ps: appveyor-retry cinst --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
- - cd c:\tools\php70
- - copy php.ini-production php.ini
-
- - echo extension_dir=ext >> php.ini
- - echo extension=php_openssl.dll >> php.ini
- - echo date.timezone="UTC" >> php.ini
- - echo variables_order="EGPCS" >> php.ini #May be unneeded.
- - echo mbstring.http_input=pass >> php.ini
- - echo mbstring.http_output=pass >> php.ini
- - echo sendmail_path=nul >> php.ini
- - echo extension=php_mbstring.dll >> php.ini
- - echo extension=php_curl.dll >> php.ini
- - echo extension=php_pdo_mysql.dll >> php.ini
- - echo extension=php_pdo_pgsql.dll >> php.ini
- - echo extension=php_pdo_sqlite.dll >> php.ini
- - echo extension=php_pgsql.dll >> php.ini
- - echo extension=php_gd2.dll >> php.ini
- - SET PATH=C:\tools\php70;%PATH%
- #Install Composer
- - cd %APPVEYOR_BUILD_FOLDER%
- #- appveyor DownloadFile https://getcomposer.org/composer.phar
- - php -r "readfile('http://getcomposer.org/installer');" | php
- #Install dependencies via Composer
- - php composer.phar -q install --prefer-dist -n
- - SET PATH=%APPVEYOR_BUILD_FOLDER%;%APPVEYOR_BUILD_FOLDER%/vendor/bin;%PATH%
- #Create a sandbox for testing. Don't think we need this.
- - mkdir c:\test_temp
-
-test_script:
- - php composer.phar unit
-
-# environment variables
-environment:
- global:
- php_ver_target: 7.0
diff --git a/vendor/consolidation/site-alias/box.json.dist b/vendor/consolidation/site-alias/box.json.dist
deleted file mode 100644
index c81342df0..000000000
--- a/vendor/consolidation/site-alias/box.json.dist
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "alias": "alias-tool.phar",
- "chmod": "0755",
- "compactors": [],
- "directories": ["src"],
- "files": ["alias-tool", "README.md", "VERSION"],
- "finder": [
- {
- "name": "*.php",
- "exclude": [
- "test",
- "tests",
- "Test",
- "Tests",
- "Tester"
- ],
- "in": "vendor"
- }
- ],
- "git-commit": "git-commit",
- "git-version": "git-version",
- "output": "alias-tool.phar",
- "main": "alias-tool",
- "stub": true
-}
diff --git a/vendor/consolidation/site-alias/composer.json b/vendor/consolidation/site-alias/composer.json
deleted file mode 100644
index 3a3c72a28..000000000
--- a/vendor/consolidation/site-alias/composer.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "name": "consolidation/site-alias",
- "description": "Manage alias records for local and remote sites.",
- "license": "MIT",
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Moshe Weitzman",
- "email": "weitzman@tejasa.com"
- }
- ],
- "autoload": {
- "psr-4": {
- "Consolidation\\SiteAlias\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Consolidation\\SiteAlias\\": "tests/src"
- }
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "symfony/yaml": "~2.3|^3",
- "consolidation/Robo": "^1.2.3",
- "symfony/console": "^2.8|^3|^4",
- "knplabs/github-api": "^2.7",
- "php-http/guzzle6-adapter": "^1.1",
- "phpunit/phpunit": "^5",
- "g1a/composer-test-scenarios": "^2",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "scripts": {
- "phar:install-tools": [
- "gem install mime-types -v 2.6.2",
- "curl -LSs https://box-project.github.io/box2/installer.php | php"
- ],
- "phar:build": "box build",
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs"
- ],
- "release": [
- "release VERSION"
- ],
- "scenario": ".scenarios.lock/install",
- "post-update-cmd": [
- "create-scenario phpunit5 'phpunit/phpunit:^5.7.27' --platform-php '5.6.33'",
- "dependency-licenses"
- ]
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "7.0.8"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- }
-}
diff --git a/vendor/consolidation/site-alias/composer.lock b/vendor/consolidation/site-alias/composer.lock
deleted file mode 100644
index 952d2c48e..000000000
--- a/vendor/consolidation/site-alias/composer.lock
+++ /dev/null
@@ -1,3714 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "b7365571381c682d4bfa362f7ba15e38",
- "packages": [],
- "packages-dev": [
- {
- "name": "clue/stream-filter",
- "version": "v1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/clue/php-stream-filter.git",
- "reference": "d80fdee9b3a7e0d16fc330a22f41f3ad0eeb09d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/clue/php-stream-filter/zipball/d80fdee9b3a7e0d16fc330a22f41f3ad0eeb09d0",
- "reference": "d80fdee9b3a7e0d16fc330a22f41f3ad0eeb09d0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0 || ^4.8"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Clue\\StreamFilter\\": "src/"
- },
- "files": [
- "src/functions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Christian Lück",
- "email": "christian@lueck.tv"
- }
- ],
- "description": "A simple and modern approach to stream filtering in PHP",
- "homepage": "https://github.com/clue/php-stream-filter",
- "keywords": [
- "bucket brigade",
- "callback",
- "filter",
- "php_user_filter",
- "stream",
- "stream_filter_append",
- "stream_filter_register"
- ],
- "time": "2017-08-18T09:54:01+00:00"
- },
- {
- "name": "consolidation/annotated-command",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/annotated-command.git",
- "reference": "4bdbb8fa149e1cc1511bd77b0bc4729fd66bccac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/4bdbb8fa149e1cc1511bd77b0bc4729fd66bccac",
- "reference": "4bdbb8fa149e1cc1511bd77b0bc4729fd66bccac",
- "shasum": ""
- },
- "require": {
- "consolidation/output-formatters": "^3.1.12",
- "php": ">=5.4.0",
- "psr/log": "^1",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^6",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\AnnotatedCommand\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Initialize Symfony Console commands from annotated command class methods.",
- "time": "2018-09-19T17:47:18+00:00"
- },
- {
- "name": "consolidation/config",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/config.git",
- "reference": "c9fc25e9088a708637e18a256321addc0670e578"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/config/zipball/c9fc25e9088a708637e18a256321addc0670e578",
- "reference": "c9fc25e9088a708637e18a256321addc0670e578",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "grasmash/expander": "^1",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^5",
- "satooshi/php-coveralls": "^1.0",
- "squizlabs/php_codesniffer": "2.*",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "suggest": {
- "symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Config\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Provide configuration services for a commandline tool.",
- "time": "2018-08-07T22:57:00+00:00"
- },
- {
- "name": "consolidation/log",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/log.git",
- "reference": "dfd8189a771fe047bf3cd669111b2de5f1c79395"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/log/zipball/dfd8189a771fe047bf3cd669111b2de5f1c79395",
- "reference": "dfd8189a771fe047bf3cd669111b2de5f1c79395",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "psr/log": "~1.0",
- "symfony/console": "^2.8|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^1",
- "phpunit/phpunit": "4.*",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "2.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\Log\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
- "time": "2018-05-25T18:14:39+00:00"
- },
- {
- "name": "consolidation/output-formatters",
- "version": "3.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/output-formatters.git",
- "reference": "d78ef59aea19d3e2e5a23f90a055155ee78a0ad5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/d78ef59aea19d3e2e5a23f90a055155ee78a0ad5",
- "reference": "d78ef59aea19d3e2e5a23f90a055155ee78a0ad5",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/finder": "^2.5|^3|^4"
- },
- "require-dev": {
- "g1a/composer-test-scenarios": "^2",
- "phpunit/phpunit": "^5.7.27",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.7",
- "symfony/console": "3.2.3",
- "symfony/var-dumper": "^2.8|^3|^4",
- "victorjonsson/markdowndocs": "^1.3"
- },
- "suggest": {
- "symfony/var-dumper": "For using the var_dump formatter"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Consolidation\\OutputFormatters\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Format text by applying transformations provided by plug-in formatters.",
- "time": "2018-05-25T18:02:34+00:00"
- },
- {
- "name": "consolidation/robo",
- "version": "1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/Robo.git",
- "reference": "31f2d2562c4e1dcde70f2659eefd59aa9c7f5b2d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/Robo/zipball/31f2d2562c4e1dcde70f2659eefd59aa9c7f5b2d",
- "reference": "31f2d2562c4e1dcde70f2659eefd59aa9c7f5b2d",
- "shasum": ""
- },
- "require": {
- "consolidation/annotated-command": "^2.8.2",
- "consolidation/config": "^1.0.10",
- "consolidation/log": "~1",
- "consolidation/output-formatters": "^3.1.13",
- "consolidation/self-update": "^1",
- "g1a/composer-test-scenarios": "^2",
- "grasmash/yaml-expander": "^1.3",
- "league/container": "^2.2",
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/process": "^2.5|^3|^4"
- },
- "replace": {
- "codegyre/robo": "< 1.0"
- },
- "require-dev": {
- "codeception/aspect-mock": "^1|^2.1.1",
- "codeception/base": "^2.3.7",
- "codeception/verify": "^0.3.2",
- "goaop/framework": "~2.1.2",
- "goaop/parser-reflection": "^1.1.0",
- "natxet/cssmin": "3.0.4",
- "nikic/php-parser": "^3.1.5",
- "patchwork/jsqueeze": "~2",
- "pear/archive_tar": "^1.4.2",
- "phpunit/php-code-coverage": "~2|~4",
- "satooshi/php-coveralls": "^2",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "suggest": {
- "henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "natxet/CssMin": "For minifying CSS files in taskMinify",
- "patchwork/jsqueeze": "For minifying JS files in taskMinify",
- "pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively."
- },
- "bin": [
- "robo"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev",
- "dev-state": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Robo\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Davert",
- "email": "davert.php@resend.cc"
- }
- ],
- "description": "Modern task runner",
- "time": "2018-08-17T18:44:18+00:00"
- },
- {
- "name": "consolidation/self-update",
- "version": "1.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/consolidation/self-update.git",
- "reference": "de33822f907e0beb0ffad24cf4b1b4fae5ada318"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/consolidation/self-update/zipball/de33822f907e0beb0ffad24cf4b1b4fae5ada318",
- "reference": "de33822f907e0beb0ffad24cf4b1b4fae5ada318",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4"
- },
- "bin": [
- "scripts/release"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "SelfUpdate\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- },
- {
- "name": "Alexander Menk",
- "email": "menk@mestrona.net"
- }
- ],
- "description": "Provides a self:update command for Symfony Console applications.",
- "time": "2018-08-24T17:01:46+00:00"
- },
- {
- "name": "container-interop/container-interop",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/container-interop/container-interop.git",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
- "shasum": ""
- },
- "require": {
- "psr/container": "^1.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop",
- "time": "2017-02-14T19:40:03+00:00"
- },
- {
- "name": "dflydev/dot-access-data",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/3fbd874921ab2c041e899d044585a2ab9795df8a",
- "reference": "3fbd874921ab2c041e899d044585a2ab9795df8a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": [
- "access",
- "data",
- "dot",
- "notation"
- ],
- "time": "2017-01-20T21:14:22+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "2.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "a166fd15191aceab89f30c097e694b7cf3db4880"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/a166fd15191aceab89f30c097e694b7cf3db4880",
- "reference": "a166fd15191aceab89f30c097e694b7cf3db4880",
- "shasum": ""
- },
- "bin": [
- "scripts/create-scenario",
- "scripts/dependency-licenses",
- "scripts/install-scenario"
- ],
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-08-08T23:37:23+00:00"
- },
- {
- "name": "grasmash/expander",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/expander.git",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "reference": "95d6037344a4be1dd5f8e0b0b2571a28c397578f",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\Expander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in PHP arrays file.",
- "time": "2017-12-21T22:14:55+00:00"
- },
- {
- "name": "grasmash/yaml-expander",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/yaml-expander.git",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/yaml-expander/zipball/3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\YamlExpander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in a yaml file.",
- "time": "2017-12-16T16:06:03+00:00"
- },
- {
- "name": "guzzlehttp/guzzle",
- "version": "6.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle.git",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
- "shasum": ""
- },
- "require": {
- "guzzlehttp/promises": "^1.0",
- "guzzlehttp/psr7": "^1.4",
- "php": ">=5.5"
- },
- "require-dev": {
- "ext-curl": "*",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
- "psr/log": "^1.0"
- },
- "suggest": {
- "psr/log": "Required for using the Log middleware"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.3-dev"
- }
- },
- "autoload": {
- "files": [
- "src/functions_include.php"
- ],
- "psr-4": {
- "GuzzleHttp\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle is a PHP HTTP client library",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "time": "2018-04-22T15:46:56+00:00"
- },
- {
- "name": "guzzlehttp/promises",
- "version": "v1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/promises.git",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Promise\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- }
- ],
- "description": "Guzzle promises library",
- "keywords": [
- "promise"
- ],
- "time": "2016-12-20T10:07:11+00:00"
- },
- {
- "name": "guzzlehttp/psr7",
- "version": "1.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/psr7.git",
- "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
- "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0"
- },
- "provide": {
- "psr/http-message-implementation": "1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Tobias Schultze",
- "homepage": "https://github.com/Tobion"
- }
- ],
- "description": "PSR-7 message implementation that also provides common utility methods",
- "keywords": [
- "http",
- "message",
- "request",
- "response",
- "stream",
- "uri",
- "url"
- ],
- "time": "2017-03-20T17:10:46+00:00"
- },
- {
- "name": "knplabs/github-api",
- "version": "2.10.1",
- "source": {
- "type": "git",
- "url": "https://github.com/KnpLabs/php-github-api.git",
- "reference": "493423ae7ad1fa9075924cdfb98537828b9e80b5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/KnpLabs/php-github-api/zipball/493423ae7ad1fa9075924cdfb98537828b9e80b5",
- "reference": "493423ae7ad1fa9075924cdfb98537828b9e80b5",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "php-http/cache-plugin": "^1.4",
- "php-http/client-common": "^1.6",
- "php-http/client-implementation": "^1.0",
- "php-http/discovery": "^1.0",
- "php-http/httplug": "^1.1",
- "psr/cache": "^1.0",
- "psr/http-message": "^1.0"
- },
- "require-dev": {
- "cache/array-adapter": "^0.4",
- "guzzlehttp/psr7": "^1.2",
- "php-http/guzzle6-adapter": "^1.0",
- "php-http/mock-client": "^1.0",
- "phpunit/phpunit": "^5.5 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.10.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Github\\": "lib/Github/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Thibault Duplessis",
- "email": "thibault.duplessis@gmail.com",
- "homepage": "http://ornicar.github.com"
- },
- {
- "name": "KnpLabs Team",
- "homepage": "http://knplabs.com"
- }
- ],
- "description": "GitHub API v3 client",
- "homepage": "https://github.com/KnpLabs/php-github-api",
- "keywords": [
- "api",
- "gh",
- "gist",
- "github"
- ],
- "time": "2018-09-05T19:12:14+00:00"
- },
- {
- "name": "league/container",
- "version": "2.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/thephpleague/container.git",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/thephpleague/container/zipball/43f35abd03a12977a60ffd7095efd6a7808488c0",
- "reference": "43f35abd03a12977a60ffd7095efd6a7808488c0",
- "shasum": ""
- },
- "require": {
- "container-interop/container-interop": "^1.2",
- "php": "^5.4.0 || ^7.0"
- },
- "provide": {
- "container-interop/container-interop-implementation": "^1.2",
- "psr/container-implementation": "^1.0"
- },
- "replace": {
- "orno/di": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-2.x": "2.x-dev",
- "dev-1.x": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "League\\Container\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Phil Bennett",
- "email": "philipobenito@gmail.com",
- "homepage": "http://www.philipobenito.com",
- "role": "Developer"
- }
- ],
- "description": "A fast and intuitive dependency injection container.",
- "homepage": "https://github.com/thephpleague/container",
- "keywords": [
- "container",
- "dependency",
- "di",
- "injection",
- "league",
- "provider",
- "service"
- ],
- "time": "2017-05-10T09:20:27+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "php-http/cache-plugin",
- "version": "v1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/cache-plugin.git",
- "reference": "c573ac6ea9b4e33fad567f875b844229d18000b9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/cache-plugin/zipball/c573ac6ea9b4e33fad567f875b844229d18000b9",
- "reference": "c573ac6ea9b4e33fad567f875b844229d18000b9",
- "shasum": ""
- },
- "require": {
- "php": "^5.4 || ^7.0",
- "php-http/client-common": "^1.1",
- "php-http/message-factory": "^1.0",
- "psr/cache": "^1.0",
- "symfony/options-resolver": "^2.6 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Client\\Common\\Plugin\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "PSR-6 Cache plugin for HTTPlug",
- "homepage": "http://httplug.io",
- "keywords": [
- "cache",
- "http",
- "httplug",
- "plugin"
- ],
- "time": "2017-11-29T20:45:41+00:00"
- },
- {
- "name": "php-http/client-common",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/client-common.git",
- "reference": "9accb4a082eb06403747c0ffd444112eda41a0fd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/client-common/zipball/9accb4a082eb06403747c0ffd444112eda41a0fd",
- "reference": "9accb4a082eb06403747c0ffd444112eda41a0fd",
- "shasum": ""
- },
- "require": {
- "php": "^5.4 || ^7.0",
- "php-http/httplug": "^1.1",
- "php-http/message": "^1.6",
- "php-http/message-factory": "^1.0",
- "symfony/options-resolver": "^2.6 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "guzzlehttp/psr7": "^1.4",
- "phpspec/phpspec": "^2.5 || ^3.4 || ^4.2"
- },
- "suggest": {
- "php-http/cache-plugin": "PSR-6 Cache plugin",
- "php-http/logger-plugin": "PSR-3 Logger plugin",
- "php-http/stopwatch-plugin": "Symfony Stopwatch plugin"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.7-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Client\\Common\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "Common HTTP Client implementations and tools for HTTPlug",
- "homepage": "http://httplug.io",
- "keywords": [
- "client",
- "common",
- "http",
- "httplug"
- ],
- "time": "2017-11-30T11:06:59+00:00"
- },
- {
- "name": "php-http/discovery",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/discovery.git",
- "reference": "9a6cb24de552bfe1aa9d7d1569e2d49c5b169a33"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/discovery/zipball/9a6cb24de552bfe1aa9d7d1569e2d49c5b169a33",
- "reference": "9a6cb24de552bfe1aa9d7d1569e2d49c5b169a33",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0"
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^2.0.2",
- "php-http/httplug": "^1.0",
- "php-http/message-factory": "^1.0",
- "phpspec/phpspec": "^2.4",
- "puli/composer-plugin": "1.0.0-beta10"
- },
- "suggest": {
- "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories",
- "puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Discovery\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "Finds installed HTTPlug implementations and PSR-7 message factories",
- "homepage": "http://php-http.org",
- "keywords": [
- "adapter",
- "client",
- "discovery",
- "factory",
- "http",
- "message",
- "psr7"
- ],
- "time": "2018-02-06T10:55:24+00:00"
- },
- {
- "name": "php-http/guzzle6-adapter",
- "version": "v1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/guzzle6-adapter.git",
- "reference": "a56941f9dc6110409cfcddc91546ee97039277ab"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/guzzle6-adapter/zipball/a56941f9dc6110409cfcddc91546ee97039277ab",
- "reference": "a56941f9dc6110409cfcddc91546ee97039277ab",
- "shasum": ""
- },
- "require": {
- "guzzlehttp/guzzle": "^6.0",
- "php": ">=5.5.0",
- "php-http/httplug": "^1.0"
- },
- "provide": {
- "php-http/async-client-implementation": "1.0",
- "php-http/client-implementation": "1.0"
- },
- "require-dev": {
- "ext-curl": "*",
- "php-http/adapter-integration-tests": "^0.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Adapter\\Guzzle6\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- },
- {
- "name": "David de Boer",
- "email": "david@ddeboer.nl"
- }
- ],
- "description": "Guzzle 6 HTTP Adapter",
- "homepage": "http://httplug.io",
- "keywords": [
- "Guzzle",
- "http"
- ],
- "time": "2016-05-10T06:13:32+00:00"
- },
- {
- "name": "php-http/httplug",
- "version": "v1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/httplug.git",
- "reference": "1c6381726c18579c4ca2ef1ec1498fdae8bdf018"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/httplug/zipball/1c6381726c18579c4ca2ef1ec1498fdae8bdf018",
- "reference": "1c6381726c18579c4ca2ef1ec1498fdae8bdf018",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "php-http/promise": "^1.0",
- "psr/http-message": "^1.0"
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Client\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Eric GELOEN",
- "email": "geloen.eric@gmail.com"
- },
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "HTTPlug, the HTTP client abstraction for PHP",
- "homepage": "http://httplug.io",
- "keywords": [
- "client",
- "http"
- ],
- "time": "2016-08-31T08:30:17+00:00"
- },
- {
- "name": "php-http/message",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/message.git",
- "reference": "741f2266a202d59c4ed75436671e1b8e6f475ea3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/message/zipball/741f2266a202d59c4ed75436671e1b8e6f475ea3",
- "reference": "741f2266a202d59c4ed75436671e1b8e6f475ea3",
- "shasum": ""
- },
- "require": {
- "clue/stream-filter": "^1.4",
- "php": "^5.4 || ^7.0",
- "php-http/message-factory": "^1.0.2",
- "psr/http-message": "^1.0"
- },
- "provide": {
- "php-http/message-factory-implementation": "1.0"
- },
- "require-dev": {
- "akeneo/phpspec-skip-example-extension": "^1.0",
- "coduo/phpspec-data-provider-extension": "^1.0",
- "ext-zlib": "*",
- "guzzlehttp/psr7": "^1.0",
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.4",
- "slim/slim": "^3.0",
- "zendframework/zend-diactoros": "^1.0"
- },
- "suggest": {
- "ext-zlib": "Used with compressor/decompressor streams",
- "guzzlehttp/psr7": "Used with Guzzle PSR-7 Factories",
- "slim/slim": "Used with Slim Framework PSR-7 implementation",
- "zendframework/zend-diactoros": "Used with Diactoros Factories"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Message\\": "src/"
- },
- "files": [
- "src/filters.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "HTTP Message related tools",
- "homepage": "http://php-http.org",
- "keywords": [
- "http",
- "message",
- "psr-7"
- ],
- "time": "2018-08-15T06:37:30+00:00"
- },
- {
- "name": "php-http/message-factory",
- "version": "v1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/message-factory.git",
- "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/message-factory/zipball/a478cb11f66a6ac48d8954216cfed9aa06a501a1",
- "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "psr/http-message": "^1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- }
- ],
- "description": "Factory interfaces for PSR-7 HTTP Message",
- "homepage": "http://php-http.org",
- "keywords": [
- "factory",
- "http",
- "message",
- "stream",
- "uri"
- ],
- "time": "2015-12-19T14:08:53+00:00"
- },
- {
- "name": "php-http/promise",
- "version": "v1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-http/promise.git",
- "reference": "dc494cdc9d7160b9a09bd5573272195242ce7980"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-http/promise/zipball/dc494cdc9d7160b9a09bd5573272195242ce7980",
- "reference": "dc494cdc9d7160b9a09bd5573272195242ce7980",
- "shasum": ""
- },
- "require-dev": {
- "henrikbjorn/phpspec-code-coverage": "^1.0",
- "phpspec/phpspec": "^2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Http\\Promise\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Márk Sági-Kazár",
- "email": "mark.sagikazar@gmail.com"
- },
- {
- "name": "Joel Wurtz",
- "email": "joel.wurtz@gmail.com"
- }
- ],
- "description": "Promise used for asynchronous HTTP requests",
- "homepage": "http://httplug.io",
- "keywords": [
- "promise"
- ],
- "time": "2016-01-26T13:27:02+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-08-05T17:53:17+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "4.0.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^5.6 || ^7.0",
- "phpunit/php-file-iterator": "^1.3",
- "phpunit/php-text-template": "^1.2",
- "phpunit/php-token-stream": "^1.4.2 || ^2.0",
- "sebastian/code-unit-reverse-lookup": "^1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "^1.0 || ^2.0"
- },
- "require-dev": {
- "ext-xdebug": "^2.1.4",
- "phpunit/phpunit": "^5.7"
- },
- "suggest": {
- "ext-xdebug": "^2.5.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2017-04-02T07:44:40+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "5.7.27",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
- "phpspec/prophecy": "^1.6.2",
- "phpunit/php-code-coverage": "^4.0.4",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "^1.2.4",
- "sebastian/diff": "^1.4.3",
- "sebastian/environment": "^1.3.4 || ^2.0",
- "sebastian/exporter": "~2.0",
- "sebastian/global-state": "^1.1",
- "sebastian/object-enumerator": "~2.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "^1.0.6|^2.0.1",
- "symfony/yaml": "~2.1|~3.0|~4.0"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.7.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-02-01T05:50:59+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "3.4.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
- "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2 || ^2.0"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2017-06-30T09:13:00+00:00"
- },
- {
- "name": "psr/cache",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/cache.git",
- "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
- "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Cache\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for caching libraries",
- "keywords": [
- "cache",
- "psr",
- "psr-6"
- ],
- "time": "2016-08-06T20:24:11+00:00"
- },
- {
- "name": "psr/container",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/container.git",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common Container Interface (PHP FIG PSR-11)",
- "homepage": "https://github.com/php-fig/container",
- "keywords": [
- "PSR-11",
- "container",
- "container-interface",
- "container-interop",
- "psr"
- ],
- "time": "2017-02-14T16:28:37+00:00"
- },
- {
- "name": "psr/http-message",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Http\\Message\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
- "keywords": [
- "http",
- "http-message",
- "psr",
- "psr-7",
- "request",
- "response"
- ],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "satooshi/php-coveralls",
- "version": "v2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-coveralls/php-coveralls.git",
- "reference": "3eaf7eb689cdf6b86801a3843940d974dc657068"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/3eaf7eb689cdf6b86801a3843940d974dc657068",
- "reference": "3eaf7eb689cdf6b86801a3843940d974dc657068",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzlehttp/guzzle": "^6.0",
- "php": "^5.5 || ^7.0",
- "psr/log": "^1.0",
- "symfony/config": "^2.1 || ^3.0 || ^4.0",
- "symfony/console": "^2.1 || ^3.0 || ^4.0",
- "symfony/stopwatch": "^2.0 || ^3.0 || ^4.0",
- "symfony/yaml": "^2.0 || ^3.0 || ^4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/php-coveralls"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PhpCoveralls\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp",
- "role": "Original creator"
- },
- {
- "name": "Takashi Matsuo",
- "email": "tmatsuo@google.com"
- },
- {
- "name": "Google Inc"
- },
- {
- "name": "Dariusz Ruminski",
- "email": "dariusz.ruminski@gmail.com",
- "homepage": "https://github.com/keradus"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/php-coveralls/php-coveralls/graphs/contributors"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/php-coveralls/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "abandoned": "php-coveralls/php-coveralls",
- "time": "2017-12-08T14:28:16+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-11-26T07:53:53+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-11-19T08:54:04+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-02-18T15:18:39+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-11-19T07:33:16+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2017-05-22T02:43:20+00:00"
- },
- {
- "name": "symfony/config",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "7b08223b7f6abd859651c56bcabf900d1627d085"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/7b08223b7f6abd859651c56bcabf900d1627d085",
- "reference": "7b08223b7f6abd859651c56bcabf900d1627d085",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/filesystem": "~2.8|~3.0|~4.0",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3",
- "symfony/finder": "<3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/event-dispatcher": "~3.3|~4.0",
- "symfony/finder": "~3.3|~4.0",
- "symfony/yaml": "~3.0|~4.0"
- },
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "reference": "6b217594552b9323bcdcfc14f8a0ce126e84cd73",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "c4625e75341e4fb309ce0c049cbf7fb84b8897cd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/c4625e75341e4fb309ce0c049cbf7fb84b8897cd",
- "reference": "c4625e75341e4fb309ce0c049cbf7fb84b8897cd",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-03T10:42:44+00:00"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "b2e1f19280c09a42dc64c0b72b80fe44dd6e88fb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b2e1f19280c09a42dc64c0b72b80fe44dd6e88fb",
- "reference": "b2e1f19280c09a42dc64c0b72b80fe44dd6e88fb",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T09:06:28+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "285ce5005cb01a0aeaa5b0cf590bd0cc40bb631c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/285ce5005cb01a0aeaa5b0cf590bd0cc40bb631c",
- "reference": "285ce5005cb01a0aeaa5b0cf590bd0cc40bb631c",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-10T07:29:05+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "8a84fcb207451df0013b2c74cbbf1b62d47b999a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/8a84fcb207451df0013b2c74cbbf1b62d47b999a",
- "reference": "8a84fcb207451df0013b2c74cbbf1b62d47b999a",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T11:19:56+00:00"
- },
- {
- "name": "symfony/options-resolver",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/options-resolver.git",
- "reference": "6debc476953a45969ab39afe8dee0b825f356dc7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/options-resolver/zipball/6debc476953a45969ab39afe8dee0b825f356dc7",
- "reference": "6debc476953a45969ab39afe8dee0b825f356dc7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\OptionsResolver\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony OptionsResolver Component",
- "homepage": "https://symfony.com",
- "keywords": [
- "config",
- "configuration",
- "options"
- ],
- "time": "2018-07-26T08:45:46+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-08-06T14:22:27+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "4d6b125d5293cbceedc2aa10f2c71617e76262e7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/4d6b125d5293cbceedc2aa10f2c71617e76262e7",
- "reference": "4d6b125d5293cbceedc2aa10f2c71617e76262e7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-03T10:42:44+00:00"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "deda2765e8dab2fc38492e926ea690f2a681f59d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/deda2765e8dab2fc38492e926ea690f2a681f59d",
- "reference": "deda2765e8dab2fc38492e926ea690f2a681f59d",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-07-26T10:03:52+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.15",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c2f4812ead9f847cb69e90917ca7502e6892d6b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c2f4812ead9f847cb69e90917ca7502e6892d6b8",
- "reference": "c2f4812ead9f847cb69e90917ca7502e6892d6b8",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-08-10T07:34:36+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.5.0"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.0.8"
- }
-}
diff --git a/vendor/consolidation/site-alias/dependencies.yml b/vendor/consolidation/site-alias/dependencies.yml
deleted file mode 100644
index c381f99f8..000000000
--- a/vendor/consolidation/site-alias/dependencies.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-version: 2
-dependencies:
-- type: php
- path: /
- manifest_updates:
- filters:
- - name: ".*"
- versions: "L.Y.Y"
diff --git a/vendor/consolidation/site-alias/phpunit.xml.dist b/vendor/consolidation/site-alias/phpunit.xml.dist
deleted file mode 100644
index 82d63a16d..000000000
--- a/vendor/consolidation/site-alias/phpunit.xml.dist
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
- tests
-
-
-
-
-
-
-
-
- src
-
-
-
diff --git a/vendor/consolidation/site-alias/src/AliasRecord.php b/vendor/consolidation/site-alias/src/AliasRecord.php
deleted file mode 100644
index 3fc00d63e..000000000
--- a/vendor/consolidation/site-alias/src/AliasRecord.php
+++ /dev/null
@@ -1,260 +0,0 @@
-name = $name;
- }
-
- /**
- * @inheritdoc
- */
- public function getConfig(ConfigInterface $config, $key, $default = null)
- {
- if ($this->has($key)) {
- return $this->get($key, $default);
- }
- return $config->get($key, $default);
- }
-
- /**
- * @inheritdoc
- */
- public function name()
- {
- return $this->name;
- }
-
- /**
- * @inheritdoc
- */
- public function setName($name)
- {
- $this->name = $name;
- }
-
- /**
- * @inheritdoc
- */
- public function hasRoot()
- {
- return $this->has('root');
- }
-
- /**
- * @inheritdoc
- */
- public function root()
- {
- $root = $this->get('root');
- if ($this->isLocal()) {
- return FsUtils::realpath($root);
- }
- return $root;
- }
-
- /**
- * @inheritdoc
- */
- public function uri()
- {
- return $this->get('uri');
- }
-
- /**
- * @inheritdoc
- */
- public function setUri($uri)
- {
- return $this->set('uri', $uri);
- }
-
- /**
- * @inheritdoc
- */
- public function remoteHostWithUser()
- {
- $result = $this->remoteHost();
- if (!empty($result) && $this->hasRemoteUser()) {
- $result = $this->remoteUser() . '@' . $result;
- }
- return $result;
- }
-
- /**
- * @inheritdoc
- */
- public function remoteUser()
- {
- return $this->get('user');
- }
-
- /**
- * @inheritdoc
- */
- public function hasRemoteUser()
- {
- return $this->has('user');
- }
-
- /**
- * @inheritdoc
- */
- public function remoteHost()
- {
- return $this->get('host');
- }
-
- /**
- * @inheritdoc
- */
- public function isRemote()
- {
- return $this->has('host');
- }
-
- /**
- * @inheritdoc
- */
- public function isLocal()
- {
- return !$this->isRemote();
- }
-
- /**
- * @inheritdoc
- */
- public function isNone()
- {
- return empty($this->root()) && $this->isLocal();
- }
-
- /**
- * @inheritdoc
- */
- public function localRoot()
- {
- if ($this->isLocal() && $this->hasRoot()) {
- return $this->root();
- }
-
- return false;
- }
-
- /**
- * os returns the OS that this alias record points to. For local alias
- * records, PHP_OS will be returned. For remote alias records, the
- * value from the `os` element will be returned. If there is no `os`
- * element, then the default assumption is that the remote system is Linux.
- *
- * @return string
- * Linux
- * WIN* (e.g. WINNT)
- * CYGWIN
- * MINGW* (e.g. MINGW32)
- */
- public function os()
- {
- if ($this->isLocal()) {
- return PHP_OS;
- }
- return $this->get('os', 'Linux');
- }
-
- /**
- * @inheritdoc
- */
- public function exportConfig()
- {
- return $this->remap($this->export());
- }
-
- /**
- * Reconfigure data exported from the form it is expected to be in
- * inside an alias record to the form it is expected to be in when
- * inside a configuration file.
- */
- protected function remap($data)
- {
- foreach ($this->remapOptionTable() as $from => $to) {
- if (isset($data[$from])) {
- unset($data[$from]);
- }
- $value = $this->get($from, null);
- if (isset($value)) {
- $data['options'][$to] = $value;
- }
- }
-
- return new Config($data);
- }
-
- /**
- * Fetch the parameter-specific options from the 'alias-parameters' section of the alias.
- * @param string $parameterName
- * @return array
- */
- protected function getParameterSpecificOptions($aliasData, $parameterName)
- {
- if (!empty($parameterName) && $this->has("alias-parameters.{$parameterName}")) {
- return $this->get("alias-parameters.{$parameterName}");
- }
- return [];
- }
-
- /**
- * Convert the data in this record to the layout that was used
- * in the legacy code, for backwards compatiblity.
- */
- public function legacyRecord()
- {
- $result = $this->exportConfig()->get('options', []);
-
- // Backend invoke needs a couple of critical items in specific locations.
- if ($this->has('paths.drush-script')) {
- $result['path-aliases']['%drush-script'] = $this->get('paths.drush-script');
- }
- if ($this->has('ssh.options')) {
- $result['ssh-options'] = $this->get('ssh.options');
- }
- return $result;
- }
-
- /**
- * Conversion table from old to new option names. These all implicitly
- * go in `options`, although they can come from different locations.
- */
- protected function remapOptionTable()
- {
- return [
- 'user' => 'remote-user',
- 'host' => 'remote-host',
- 'root' => 'root',
- 'uri' => 'uri',
- ];
- }
-}
diff --git a/vendor/consolidation/site-alias/src/AliasRecordInterface.php b/vendor/consolidation/site-alias/src/AliasRecordInterface.php
deleted file mode 100644
index d56c082a6..000000000
--- a/vendor/consolidation/site-alias/src/AliasRecordInterface.php
+++ /dev/null
@@ -1,144 +0,0 @@
-aliasLoader = new SiteAliasFileLoader();
- $ymlLoader = new YamlDataFileLoader();
- $this->aliasLoader->addLoader('yml', $ymlLoader);
- $aliasName = $this->getLocationsAndAliasName($varArgs, $this->aliasLoader);
-
- $this->manager = new SiteAliasManager($this->aliasLoader);
-
- return $this->renderAliases($this->manager->getMultiple($aliasName));
- }
-
- /**
- * Load available site aliases.
- *
- * @command site:load
- * @format yaml
- * @return array
- */
- public function siteLoad(array $dirs)
- {
- $this->aliasLoader = new SiteAliasFileLoader();
- $ymlLoader = new YamlDataFileLoader();
- $this->aliasLoader->addLoader('yml', $ymlLoader);
-
- foreach ($dirs as $dir) {
- $this->io()->note("Add search location: $dir");
- $this->aliasLoader->addSearchLocation($dir);
- }
-
- $all = $this->aliasLoader->loadAll();
-
- return $this->renderAliases($all);
- }
-
- protected function getLocationsAndAliasName($varArgs)
- {
- $aliasName = '';
- foreach ($varArgs as $arg) {
- if (SiteAliasName::isAliasName($arg)) {
- $this->io()->note("Alias parameter: '$arg'");
- $aliasName = $arg;
- } else {
- $this->io()->note("Add search location: $arg");
- $this->aliasLoader->addSearchLocation($arg);
- }
- }
- return $aliasName;
- }
-
- protected function renderAliases($all)
- {
- if (empty($all)) {
- throw new \Exception("No aliases found");
- }
-
- $result = [];
- foreach ($all as $name => $alias) {
- $result[$name] = $alias->export();
- }
-
- return $result;
- }
-
- /**
- * Show contents of a single site alias.
- *
- * @command site:get
- * @format yaml
- * @return array
- */
- public function siteGet(array $varArgs)
- {
- $this->aliasLoader = new SiteAliasFileLoader();
- $ymlLoader = new YamlDataFileLoader();
- $this->aliasLoader->addLoader('yml', $ymlLoader);
- $aliasName = $this->getLocationsAndAliasName($varArgs, $this->aliasLoader);
-
- $manager = new SiteAliasManager($this->aliasLoader);
- $result = $manager->get($aliasName);
- if (!$result) {
- throw new \Exception("No alias found");
- }
-
- return $result->export();
- }
-
- /**
- * Access a value from a single alias.
- *
- * @command site:value
- * @format yaml
- * @return string
- */
- public function siteValue(array $varArgs)
- {
- $this->aliasLoader = new SiteAliasFileLoader();
- $ymlLoader = new YamlDataFileLoader();
- $this->aliasLoader->addLoader('yml', $ymlLoader);
- $key = array_pop($varArgs);
- $aliasName = $this->getLocationsAndAliasName($varArgs, $this->aliasLoader);
-
- $manager = new SiteAliasManager($this->aliasLoader);
- $result = $manager->get($aliasName);
- if (!$result) {
- throw new \Exception("No alias found");
- }
-
- return $result->get($key);
- }
-
- /**
- * Parse a site specification.
- *
- * @command site-spec:parse
- * @format yaml
- * @return array
- */
- public function parse($spec, $options = ['root' => ''])
- {
- $parser = new SiteSpecParser();
- return $parser->parse($spec, $options['root']);
- }
-}
diff --git a/vendor/consolidation/site-alias/src/DataFileLoaderInterface.php b/vendor/consolidation/site-alias/src/DataFileLoaderInterface.php
deleted file mode 100644
index e6463ad38..000000000
--- a/vendor/consolidation/site-alias/src/DataFileLoaderInterface.php
+++ /dev/null
@@ -1,10 +0,0 @@
-alias_record = $alias_record;
- $this->original_path = $original_path;
- $this->path = $path;
- $this->implicit = $implicit;
- }
-
- /**
- * Factory method to create a host path.
- *
- * @param SiteAliasManager $manager We need to be provided a reference
- * to the alias manager to create a host path
- * @param string $hostPath The path to create.
- */
- public static function create(SiteAliasManager $manager, $hostPath)
- {
- // Split the alias path up into
- // - $parts[0]: everything before the first ":"
- // - $parts[1]: everything after the ":", if there was one.
- $parts = explode(':', $hostPath, 2);
-
- // Determine whether or not $parts[0] is a site spec or an alias
- // record. If $parts[0] is not in the right form, the result
- // will be 'false'. This will throw if $parts[0] is an @alias
- // record, but the requested alias cannot be found.
- $alias_record = $manager->get($parts[0]);
-
- if (!isset($parts[1])) {
- return static::determinePathOrAlias($manager, $alias_record, $hostPath, $parts[0]);
- }
-
- // If $parts[0] did not resolve to a site spec or alias record,
- // but there is a $parts[1], then $parts[0] must be a machine name.
- // Unless it was an alias that could not be found.
- if ($alias_record === false) {
- if (SiteAliasName::isAliasName($parts[0])) {
- throw new \Exception('Site alias ' . $parts[0] . ' not found.');
- }
- $alias_record = new AliasRecord(['host' => $parts[0]]);
- }
-
- // Create our alias path
- return new HostPath($alias_record, $hostPath, $parts[1]);
- }
-
- /**
- * Return the alias record portion of the host path.
- *
- * @return AliasRecord
- */
- public function getAliasRecord()
- {
- return $this->alias_record;
- }
-
- /**
- * Returns true if this host path points at a remote machine
- *
- * @return bool
- */
- public function isRemote()
- {
- return $this->alias_record->isRemote();
- }
-
- /**
- * Return just the path portion, without considering the alias root.
- *
- * @return string
- */
- public function getOriginalPath()
- {
- return $this->path;
- }
-
- /**
- * Return the original host path string, as provided to the create() method.
- *
- * @return string
- */
- public function getOriginal()
- {
- return $this->original_path;
- }
-
- /**
- * Return just the path portion of the host path
- *
- * @return string
- */
- public function getPath()
- {
- if (empty($this->path)) {
- return $this->alias_record->root();
- }
- if ($this->alias_record->hasRoot() && !$this->implicit) {
- return Path::makeAbsolute($this->path, $this->alias_record->root());
- }
- return $this->path;
- }
-
- /**
- * Returns 'true' if the path portion of the host path begins with a
- * path alias (e.g. '%files'). Path aliases must appear at the beginning
- * of the path.
- *
- * @return bool
- */
- public function hasPathAlias()
- {
- $pathAlias = $this->getPathAlias();
- return !empty($pathAlias);
- }
-
- /**
- * Return just the path alias portion of the path (e.g. '%files'), or
- * empty if there is no alias in the path.
- *
- * @return string
- */
- public function getPathAlias()
- {
- if (preg_match('#%([^/]*).*#', $this->path, $matches)) {
- return $matches[1];
- }
- return '';
- }
-
- /**
- * Replaces the path alias portion of the path with the resolved path.
- *
- * @param string $resolvedPath The converted path alias (e.g. 'sites/default/files')
- * @return $this
- */
- public function replacePathAlias($resolvedPath)
- {
- $pathAlias = $this->getPathAlias();
- if (empty($pathAlias)) {
- return $this;
- }
- // Make sure that the resolved path always ends in a '\'.
- $resolvedPath .= '/';
- // Avoid double / in path.
- // $this->path: %files/foo
- // $pathAlias: files
- // We add one to the length of $pathAlias to account for the '%' in $this->path.
- if (strlen($this->path) > (strlen($pathAlias) + 1)) {
- $resolvedPath = rtrim($resolvedPath, '/');
- }
- // Once the path alias is resolved, replace the alias in the $path with the result.
- $this->path = $resolvedPath . substr($this->path, strlen($pathAlias) + 1);
-
- // Using a path alias such as %files is equivalent to making explicit
- // use of @self:%files. We set implicit to false here so that the resolved
- // path will be returned as an absolute path rather than a relative path.
- $this->implicit = false;
-
- return $this;
- }
-
- /**
- * Return the host portion of the host path, including the user.
- *
- * @return string
- */
- public function getHost()
- {
- return $this->alias_record->remoteHostWithUser();
- }
-
- /**
- * Return the fully resolved path, e.g. user@server:/path/to/drupalroot/sites/default/files
- *
- * @return string
- */
- public function fullyQualifiedPath()
- {
- $host = $this->getHost();
- if (!empty($host)) {
- return $host . ':' . $this->getPath();
- }
- return $this->getPath();
- }
-
- /**
- * Our fully qualified path passes the result through Path::makeAbsolute()
- * which canonicallizes the path, removing any trailing slashes.
- * That is what we want most of the time; however, the trailing slash is
- * sometimes significant, e.g. for rsync, so we provide a separate API
- * for those cases where the trailing slash should be preserved.
- *
- * @return string
- */
- public function fullyQualifiedPathPreservingTrailingSlash()
- {
- $fqp = $this->fullyQualifiedPath();
- if ((substr($this->path, strlen($this->path) - 1) == '/') && (substr($fqp, strlen($fqp) - 1) != '/')) {
- $fqp .= '/';
- }
- return $fqp;
- }
-
- /**
- * Helper method for HostPath::create(). When the host path contains no
- * ':', this method determines whether the string that was provided is
- * a host or a path.
- *
- * @param SiteAliasManager $manager
- * @param AliasRecord|bool $alias_record
- * @param string $hostPath
- * @param string $single_part
- */
- protected static function determinePathOrAlias(SiteAliasManager $manager, $alias_record, $hostPath, $single_part)
- {
- // If $alias_record is false, then $single_part must be a path.
- if ($alias_record === false) {
- return new HostPath($manager->getSelf(), $hostPath, $single_part, true);
- }
-
- // Otherwise, we have a alias record without a path.
- // In this instance, the alias record _must_ have a root.
- if (!$alias_record->hasRoot()) {
- throw new \Exception("$hostPath does not define a path.");
- }
- return new HostPath($alias_record, $hostPath);
- }
-}
diff --git a/vendor/consolidation/site-alias/src/SiteAliasFileDiscovery.php b/vendor/consolidation/site-alias/src/SiteAliasFileDiscovery.php
deleted file mode 100644
index 3902c6c35..000000000
--- a/vendor/consolidation/site-alias/src/SiteAliasFileDiscovery.php
+++ /dev/null
@@ -1,213 +0,0 @@
-locationFilter = $locationFilter;
- $this->searchLocations = $searchLocations;
- $this->depth = $depth;
- }
-
- /**
- * Add a location that alias files may be found.
- *
- * @param string $path
- * @return $this
- */
- public function addSearchLocation($paths)
- {
- foreach ((array)$paths as $path) {
- if (is_dir($path)) {
- $this->searchLocations[] = $path;
- }
- }
- return $this;
- }
-
- /**
- * Return all of the paths where alias files may be found.
- * @return string[]
- */
- public function searchLocations()
- {
- return $this->searchLocations;
- }
-
- public function locationFilter()
- {
- return $this->locationFilter;
- }
-
- /**
- * Set the search depth for finding alias files
- *
- * @param string|int $depth (@see \Symfony\Component\Finder\Finder::depth)
- * @return $this
- */
- public function depth($depth)
- {
- $this->depth = $depth;
- return $this;
- }
-
- /**
- * Only search for aliases that are in alias files stored in directories
- * whose basename or key matches the specified location.
- */
- public function filterByLocation($location)
- {
- if (empty($location)) {
- return $this;
- }
-
- return new SiteAliasFileDiscovery($this->searchLocations(), $this->depth, $location);
- }
-
- /**
- * Find an alias file SITENAME.site.yml in one
- * of the specified search locations.
- *
- * @param string $siteName
- * @return string[]
- */
- public function find($siteName)
- {
- return $this->searchForAliasFiles("$siteName.site.yml");
- }
-
- /**
- * Find an alias file SITENAME.site.yml in one
- * of the specified search locations.
- *
- * @param string $siteName
- * @return string|bool
- */
- public function findSingleSiteAliasFile($siteName)
- {
- $matches = $this->find($siteName);
- if (empty($matches)) {
- return false;
- }
- return reset($matches);
- }
-
- /**
- * Return a list of all SITENAME.site.yml files in any of
- * the search locations.
- *
- * @return string[]
- */
- public function findAllSingleAliasFiles()
- {
- return $this->searchForAliasFiles('*.site.yml');
- }
-
- /**
- * Return all of the legacy alias files used in previous Drush versions.
- *
- * @return string[]
- */
- public function findAllLegacyAliasFiles()
- {
- return array_merge(
- $this->searchForAliasFiles('*.alias.drushrc.php'),
- $this->searchForAliasFiles('*.aliases.drushrc.php'),
- $this->searchForAliasFiles('aliases.drushrc.php')
- );
- }
-
- /**
- * Create a Symfony Finder object to search all available search locations
- * for the specified search pattern.
- *
- * @param string $searchPattern
- * @return Finder
- */
- protected function createFinder($searchPattern)
- {
- $finder = new Finder();
- $finder->files()
- ->name($searchPattern)
- ->in($this->searchLocations)
- ->depth($this->depth);
- return $finder;
- }
-
- /**
- * Return a list of all alias files matching the provided pattern.
- *
- * @param string $searchPattern
- * @return string[]
- */
- protected function searchForAliasFiles($searchPattern)
- {
- if (empty($this->searchLocations)) {
- return [];
- }
- list($match, $site) = $this->splitLocationFromSite($this->locationFilter);
- if (!empty($site)) {
- $searchPattern = str_replace('*', $site, $searchPattern);
- }
- $finder = $this->createFinder($searchPattern);
- $result = [];
- foreach ($finder as $file) {
- $path = $file->getRealPath();
- $result[] = $path;
- }
- // Find every location where the parent directory name matches
- // with the first part of the search pattern.
- // In theory we can use $finder->path() instead. That didn't work well,
- // in practice, though; had trouble correctly escaping the path separators.
- if (!empty($this->locationFilter)) {
- $result = array_filter($result, function ($path) use ($match) {
- return SiteAliasName::locationFromPath($path) === $match;
- });
- }
-
- return $result;
- }
-
- /**
- * splitLocationFromSite returns the part of 'site' before the first
- * '.' as the "path match" component, and the part after the first
- * '.' as the "site" component.
- */
- protected function splitLocationFromSite($site)
- {
- $parts = explode('.', $site, 3) + ['', '', ''];
-
- return array_slice($parts, 0, 2);
- }
-
-
- // TODO: Seems like this could just be basename()
- protected function extractKey($basename, $filenameExensions)
- {
- return str_replace($filenameExensions, '', $basename);
- }
-}
diff --git a/vendor/consolidation/site-alias/src/SiteAliasFileLoader.php b/vendor/consolidation/site-alias/src/SiteAliasFileLoader.php
deleted file mode 100644
index ce422e7b6..000000000
--- a/vendor/consolidation/site-alias/src/SiteAliasFileLoader.php
+++ /dev/null
@@ -1,596 +0,0 @@
-discovery = $discovery ?: new SiteAliasFileDiscovery();
- $this->referenceData = [];
- $this->loader = [];
- }
-
- /**
- * Allow configuration data to be used in replacements in the alias file.
- */
- public function setReferenceData($data)
- {
- $this->referenceData = $data;
- }
-
- /**
- * Add a search location to our discovery object.
- *
- * @param string $path
- *
- * @return $this
- */
- public function addSearchLocation($path)
- {
- $this->discovery()->addSearchLocation($path);
- return $this;
- }
-
- /**
- * Return our discovery object.
- *
- * @return SiteAliasFileDiscovery
- */
- public function discovery()
- {
- return $this->discovery;
- }
-
- /**
- * Load the file containing the specified alias name.
- *
- * @param SiteAliasName $aliasName
- *
- * @return AliasRecord|false
- */
- public function load(SiteAliasName $aliasName)
- {
- // First attempt to load a sitename.site.yml file for the alias.
- $aliasRecord = $this->loadSingleAliasFile($aliasName);
- if ($aliasRecord) {
- return $aliasRecord;
- }
-
- // If aliasname was provides as @site.env and we did not find it,
- // then we are done.
- if ($aliasName->hasSitename()) {
- return false;
- }
-
- // If $aliasName was provided as `@foo` (`hasSitename()` returned `false`
- // above), then this was interpreted as `@self.foo` when we searched
- // above. If we could not find an alias record for `@self.foo`, then we
- // will try to search again, this time with the assumption that `@foo`
- // might be `@foo.`, where `` is the default
- // environment for the specified site. Note that in this instance, the
- // sitename will be found in $aliasName->env().
- $sitename = $aliasName->env();
- return $this->loadDefaultEnvFromSitename($sitename);
- }
-
- /**
- * Given only a site name, load the default environment from it.
- */
- protected function loadDefaultEnvFromSitename($sitename)
- {
- $path = $this->discovery()->findSingleSiteAliasFile($sitename);
- if (!$path) {
- return false;
- }
- $data = $this->loadSiteDataFromPath($path);
- if (!$data) {
- return false;
- }
- $env = $this->getDefaultEnvironmentName($data);
-
- $aliasName = new SiteAliasName($sitename, $env);
- $processor = new ConfigProcessor();
- return $this->fetchAliasRecordFromSiteAliasData($aliasName, $processor, $data);
- }
-
- /**
- * Return a list of all site aliases loadable from any findable path.
- *
- * @return AliasRecord[]
- */
- public function loadAll()
- {
- $result = [];
- $paths = $this->discovery()->findAllSingleAliasFiles();
- foreach ($paths as $path) {
- $aliasRecords = $this->loadSingleSiteAliasFileAtPath($path);
- if ($aliasRecords) {
- foreach ($aliasRecords as $aliasRecord) {
- $this->storeAliasRecordInResut($result, $aliasRecord);
- }
- }
- }
- ksort($result);
- return $result;
- }
-
- /**
- * Return a list of all available alias files. Does not include
- * legacy files.
- *
- * @param string $location Only consider alias files in the specified location.
- * @return string[]
- */
- public function listAll($location = '')
- {
- return $this->discovery()->filterByLocation($location)->findAllSingleAliasFiles();
- }
-
- /**
- * Given an alias name that might represent multiple sites,
- * return a list of all matching alias records. If nothing was found,
- * or the name represents a single site + env, then we take
- * no action and return `false`.
- *
- * @param string $sitename The site name to return all environments for.
- * @return AliasRecord[]|false
- */
- public function loadMultiple($sitename, $location = null)
- {
- $result = [];
- foreach ($this->discovery()->filterByLocation($location)->find($sitename) as $path) {
- if ($siteData = $this->loadSiteDataFromPath($path)) {
- $location = SiteAliasName::locationFromPath($path);
- // Convert the raw array into a list of alias records.
- $result = array_merge(
- $result,
- $this->createAliasRecordsFromSiteData($sitename, $siteData, $location)
- );
- }
- }
- return $result;
- }
-
- /**
- * Given a location, return all alias files located there.
- *
- * @param string $location The location to filter.
- * @return AliasRecord[]
- */
- public function loadLocation($location)
- {
- $result = [];
- foreach ($this->listAll($location) as $path) {
- if ($siteData = $this->loadSiteDataFromPath($path)) {
- $location = SiteAliasName::locationFromPath($path);
- $sitename = $this->siteNameFromPath($path);
- // Convert the raw array into a list of alias records.
- $result = array_merge(
- $result,
- $this->createAliasRecordsFromSiteData($sitename, $siteData, $location)
- );
- }
- }
- return $result;
- }
-
- /**
- * @param array $siteData list of sites with its respective data
- *
- * @param SiteAliasName $aliasName The name of the record being created
- * @param $siteData An associative array of envrionment => site data
- * @return AliasRecord[]
- */
- protected function createAliasRecordsFromSiteData($sitename, $siteData, $location = '')
- {
- $result = [];
- if (!is_array($siteData) || empty($siteData)) {
- return $result;
- }
- foreach ($siteData as $envName => $data) {
- if (is_array($data) && $this->isValidEnvName($envName)) {
- $aliasName = new SiteAliasName($sitename, $envName, $location);
-
- $processor = new ConfigProcessor();
- $oneRecord = $this->fetchAliasRecordFromSiteAliasData($aliasName, $processor, $siteData);
- $this->storeAliasRecordInResut($result, $oneRecord);
- }
- }
- return $result;
- }
-
- /**
- * isValidEnvName determines if a given entry should be skipped or not
- * (e.g. the "common" entry).
- *
- * @param string $envName The environment name to test
- */
- protected function isValidEnvName($envName)
- {
- return $envName != 'common';
- }
-
- /**
- * Store an alias record in a list. If the alias record has
- * a known name, then the key of the list will be the record's name.
- * Otherwise, append the record to the end of the list with
- * a numeric index.
- *
- * @param &AliasRecord[] $result list of alias records
- * @param AliasRecord $aliasRecord one more alias to store in the result
- */
- protected function storeAliasRecordInResut(&$result, AliasRecord $aliasRecord)
- {
- if (!$aliasRecord) {
- return;
- }
- $key = $aliasRecord->name();
- if (empty($key)) {
- $result[] = $aliasRecord;
- return;
- }
- $result[$key] = $aliasRecord;
- }
-
- /**
- * If the alias name is '@sitename', or if it is '@sitename.env', then
- * look for a sitename.site.yml file that contains it. We also handle
- * '@location.sitename.env' here as well.
- *
- * @param SiteAliasName $aliasName
- *
- * @return AliasRecord|false
- */
- protected function loadSingleAliasFile(SiteAliasName $aliasName)
- {
- // Check to see if the appropriate sitename.alias.yml file can be
- // found. Return if it cannot.
- $path = $this->discovery()
- ->filterByLocation($aliasName->location())
- ->findSingleSiteAliasFile($aliasName->sitename());
- if (!$path) {
- return false;
- }
- return $this->loadSingleAliasFileWithNameAtPath($aliasName, $path);
- }
-
- /**
- * Given only the path to an alias file `site.alias.yml`, return all
- * of the alias records for every environment stored in that file.
- *
- * @param string $path
- * @return AliasRecord[]
- */
- protected function loadSingleSiteAliasFileAtPath($path)
- {
- $sitename = $this->siteNameFromPath($path);
- $location = SiteAliasName::locationFromPath($path);
- if ($siteData = $this->loadSiteDataFromPath($path)) {
- return $this->createAliasRecordsFromSiteData($sitename, $siteData, $location);
- }
- return false;
- }
-
- /**
- * Given the path to a single site alias file `site.alias.yml`,
- * return the `site` part.
- *
- * @param string $path
- */
- protected function siteNameFromPath($path)
- {
- return $this->basenameWithoutExtension($path, '.site.yml');
-
-// OR:
-// $filename = basename($path);
-// return preg_replace('#\..*##', '', $filename);
- }
-
- /**
- * Chop off the `aliases.yml` or `alias.yml` part of a path. This works
- * just like `basename`, except it will throw if the provided path
- * does not end in the specified extension.
- *
- * @param string $path
- * @param string $extension
- * @return string
- * @throws \Exception
- */
- protected function basenameWithoutExtension($path, $extension)
- {
- $result = basename($path, $extension);
- // It is an error if $path does not end with site.yml
- if ($result == basename($path)) {
- throw new \Exception("$path must end with '$extension'");
- }
- return $result;
- }
-
- /**
- * Given an alias name and a path, load the data from the path
- * and process it as needed to generate the alias record.
- *
- * @param SiteAliasName $aliasName
- * @param string $path
- * @return AliasRecord|false
- */
- protected function loadSingleAliasFileWithNameAtPath(SiteAliasName $aliasName, $path)
- {
- $data = $this->loadSiteDataFromPath($path);
- if (!$data) {
- return false;
- }
- $processor = new ConfigProcessor();
- return $this->fetchAliasRecordFromSiteAliasData($aliasName, $processor, $data);
- }
-
- /**
- * Load the yml from the given path
- *
- * @param string $path
- * @return array|bool
- */
- protected function loadSiteDataFromPath($path)
- {
- $data = $this->loadData($path);
- if (!$data) {
- return false;
- }
- $selfSiteAliases = $this->findSelfSiteAliases($data);
- $data = array_merge($data, $selfSiteAliases);
- return $data;
- }
-
- /**
- * Given an array of site aliases, find the first one that is
- * local (has no 'host' item) and also contains a 'self.site.yml' file.
- * @param array $data
- * @return array
- */
- protected function findSelfSiteAliases($site_aliases)
- {
- foreach ($site_aliases as $site => $data) {
- if (!isset($data['host']) && isset($data['root'])) {
- foreach (['.', '..'] as $relative_path) {
- $candidate = $data['root'] . '/' . $relative_path . '/drush/sites/self.site.yml';
- if (file_exists($candidate)) {
- return $this->loadData($candidate);
- }
- }
- }
- }
- return [];
- }
-
- /**
- * Load the contents of the specified file.
- *
- * @param string $path Path to file to load
- * @return array
- */
- protected function loadData($path)
- {
- if (empty($path) || !file_exists($path)) {
- return [];
- }
- $loader = $this->getLoader(pathinfo($path, PATHINFO_EXTENSION));
- if (!$loader) {
- return [];
- }
- return $loader->load($path);
- }
-
- /**
- * @return DataFileLoaderInterface
- */
- public function getLoader($extension)
- {
- if (!isset($this->loader[$extension])) {
- return null;
- }
- return $this->loader[$extension];
- }
-
- public function addLoader($extension, DataFileLoaderInterface $loader)
- {
- $this->loader[$extension] = $loader;
- }
-
- /**
- * Given an array containing site alias data, return an alias record
- * containing the data for the requested record. If there is a 'common'
- * section, then merge that in as well.
- *
- * @param SiteAliasName $aliasName the alias we are loading
- * @param array $data
- *
- * @return AliasRecord|false
- */
- protected function fetchAliasRecordFromSiteAliasData(SiteAliasName $aliasName, ConfigProcessor $processor, array $data)
- {
- $data = $this->adjustIfSingleAlias($data);
- $env = $this->getEnvironmentName($aliasName, $data);
- $env_data = $this->getRequestedEnvData($data, $env);
- if (!$env_data) {
- return false;
- }
-
- // Add the 'common' section if it exists.
- if ($this->siteEnvExists($data, 'common')) {
- $processor->add($data['common']);
- }
-
- // Then add the data from the desired environment.
- $processor->add($env_data);
-
- // Export the combined data and create an AliasRecord object to manage it.
- return new AliasRecord($processor->export($this->referenceData + ['env-name' => $env]), '@' . $aliasName->sitenameWithLocation(), $env);
- }
-
- /**
- * getRequestedEnvData fetches the data for the specified environment
- * from the provided site record data.
- *
- * @param array $data The site alias data
- * @param string $env The name of the environment desired
- * @return array|false
- */
- protected function getRequestedEnvData(array $data, $env)
- {
- // If the requested environment exists, we will use it.
- if ($this->siteEnvExists($data, $env)) {
- return $data[$env];
- }
-
- // If there is a wildcard environment, then return that instead.
- if ($this->siteEnvExists($data, '*')) {
- return $data['*'];
- }
-
- return false;
- }
-
- /**
- * Determine whether there is a valid-looking environment '$env' in the
- * provided site alias data.
- *
- * @param array $data
- * @param string $env
- * @return bool
- */
- protected function siteEnvExists(array $data, $env)
- {
- return (
- is_array($data) &&
- isset($data[$env]) &&
- is_array($data[$env])
- );
- }
-
- /**
- * Adjust the alias data for a single-site alias. Usually, a .yml alias
- * file will contain multiple entries, one for each of the environments
- * of an alias. If there are no environments
- *
- * @param array $data
- * @return array
- */
- protected function adjustIfSingleAlias($data)
- {
- if (!$this->detectSingleAlias($data)) {
- return $data;
- }
-
- $result = [
- 'default' => $data,
- ];
-
- return $result;
- }
-
- /**
- * A single-environment alias looks something like this:
- *
- * ---
- * root: /path/to/drupal
- * uri: https://mysite.org
- *
- * A multiple-environment alias looks something like this:
- *
- * ---
- * default: dev
- * dev:
- * root: /path/to/dev
- * uri: https://dev.mysite.org
- * stage:
- * root: /path/to/stage
- * uri: https://stage.mysite.org
- *
- * The differentiator between these two is that the multi-environment
- * alias always has top-level elements that are associative arrays, and
- * the single-environment alias never does.
- *
- * @param array $data
- * @return bool
- */
- protected function detectSingleAlias($data)
- {
- foreach ($data as $key => $value) {
- if (is_array($value) && DotAccessDataUtil::isAssoc($value)) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * Return the name of the environment requested.
- *
- * @param SiteAliasName $aliasName the alias we are loading
- * @param array $data
- *
- * @return string
- */
- protected function getEnvironmentName(SiteAliasName $aliasName, array $data)
- {
- // If the alias name specifically mentions the environment
- // to use, then return it.
- if ($aliasName->hasEnv()) {
- return $aliasName->env();
- }
- return $this->getDefaultEnvironmentName($data);
- }
-
- /**
- * Given a data array containing site alias environments, determine which
- * envirionmnet should be used as the default environment.
- *
- * @param array $data
- * @return string
- */
- protected function getDefaultEnvironmentName(array $data)
- {
- // If there is an entry named 'default', it will either contain the
- // name of the environment to use by default, or it will itself be
- // the default environment.
- if (isset($data['default'])) {
- return is_array($data['default']) ? 'default' : $data['default'];
- }
- // If there is an environment named 'dev', it will be our default.
- if (isset($data['dev'])) {
- return 'dev';
- }
- // If we don't know which environment to use, just take the first one.
- $keys = array_keys($data);
- return reset($keys);
- }
-}
diff --git a/vendor/consolidation/site-alias/src/SiteAliasManager.php b/vendor/consolidation/site-alias/src/SiteAliasManager.php
deleted file mode 100644
index 2efce6bbc..000000000
--- a/vendor/consolidation/site-alias/src/SiteAliasManager.php
+++ /dev/null
@@ -1,214 +0,0 @@
-aliasLoader = $aliasLoader ?: new SiteAliasFileLoader();
- $this->specParser = new SiteSpecParser();
- $this->selfAliasRecord = new AliasRecord();
- $this->root = $root;
- }
-
- /**
- * Allow configuration data to be used in replacements in the alias file.
- */
- public function setReferenceData($data)
- {
- $this->aliasLoader->setReferenceData($data);
- return $this;
- }
-
- /**
- * Inject the root of the selected site
- *
- * @param string $root
- * @return $this
- */
- public function setRoot($root)
- {
- $this->root = $root;
- return $this;
- }
-
- /**
- * Add a search location to our site alias discovery object.
- *
- * @param string $path
- *
- * @return $this
- */
- public function addSearchLocation($path)
- {
- $this->aliasLoader->discovery()->addSearchLocation($path);
- return $this;
- }
-
- /**
- * Add search locations to our site alias discovery object.
- *
- * @param array $paths Any path provided in --alias-path option
- * or drush.path.alias-path configuration item.
- *
- * @return $this
- */
- public function addSearchLocations(array $paths)
- {
- foreach ($paths as $path) {
- $this->aliasLoader->discovery()->addSearchLocation($path);
- }
- return $this;
- }
-
- /**
- * Return all of the paths where alias files may be found.
- * @return string[]
- */
- public function searchLocations()
- {
- return $this->aliasLoader->discovery()->searchLocations();
- }
-
- /**
- * Get an alias record by name, or convert a site specification
- * into an alias record via the site alias spec parser. If a
- * simple alias name is provided (e.g. '@alias'), it is interpreted
- * as a sitename, and the default environment for that site is returned.
- *
- * @param string $name Alias name or site specification
- *
- * @return AliasRecord|false
- */
- public function get($name)
- {
- if (SiteAliasName::isAliasName($name)) {
- return $this->getAlias($name);
- }
-
- if ($this->specParser->validSiteSpec($name)) {
- return new AliasRecord($this->specParser->parse($name, $this->root), $name);
- }
-
- return false;
- }
-
- /**
- * Get the '@self' alias record.
- *
- * @return AliasRecord
- */
- public function getSelf()
- {
- return $this->selfAliasRecord;
- }
-
- /**
- * Force-set the current @self alias.
- *
- * @param AliasRecord $selfAliasRecord
- * @return $this
- */
- public function setSelf(AliasRecord $selfAliasRecord)
- {
- $this->selfAliasRecord = $selfAliasRecord;
- $this->setRoot($selfAliasRecord->localRoot());
- return $this;
- }
-
- /**
- * Get an alias record from a name. Does not accept site specifications.
- *
- * @param string $aliasName alias name
- *
- * @return AliasRecord
- */
- public function getAlias($aliasName)
- {
- $aliasName = SiteAliasName::parse($aliasName);
-
- if ($aliasName->isSelf()) {
- return $this->getSelf();
- }
-
- if ($aliasName->isNone()) {
- return new AliasRecord([], '@none');
- }
-
- // Search through all search locations, load
- // matching and potentially-matching alias files,
- // and return the alias matching the provided name.
- return $this->aliasLoader->load($aliasName);
- }
-
- /**
- * Given a simple alias name, e.g. '@alias', returns all of the
- * environments in the specified site.
- *
- * If the provided name is a site specification et. al.,
- * then this method will return 'false'.
- *
- * @param string $name Alias name
- * @return AliasRecord[]|false
- */
- public function getMultiple($name = '')
- {
- if (empty($name)) {
- return $this->aliasLoader->loadAll();
- }
-
- if (!SiteAliasName::isAliasName($name)) {
- return false;
- }
-
- // Trim off the '@'
- $trimmedName = ltrim($name, '@');
-
- // If the provided name is a location, return all aliases there
- $result = $this->aliasLoader->loadLocation($trimmedName);
- if (!empty($result)) {
- return $result;
- }
-
- // If the provided name is a site, return all environments
- $result = $this->aliasLoader->loadMultiple($trimmedName);
- if (!empty($result)) {
- return $result;
- }
-
- // Special checking for @self
- if ($trimmedName == 'self') {
- $self = $this->getSelf();
- $result = array_merge(
- ['@self' => $self],
- $result
- );
- }
-
- return $result;
- }
-
- /**
- * Return the paths to all alias files in all search locations known
- * to the alias manager.
- *
- * @return string[]
- */
- public function listAllFilePaths($location = '')
- {
- return $this->aliasLoader->listAll($location);
- }
-}
diff --git a/vendor/consolidation/site-alias/src/SiteAliasManagerAwareInterface.php b/vendor/consolidation/site-alias/src/SiteAliasManagerAwareInterface.php
deleted file mode 100644
index 061b5af43..000000000
--- a/vendor/consolidation/site-alias/src/SiteAliasManagerAwareInterface.php
+++ /dev/null
@@ -1,23 +0,0 @@
-siteAliasManager = $siteAliasManager;
- }
-
- /**
- * @return SiteAliasManager
- */
- public function siteAliasManager()
- {
- return $this->siteAliasManager;
- }
-
- /**
- * @inheritdoc
- */
- public function hasSiteAliasManager()
- {
- return isset($this->siteAliasManager);
- }
-}
diff --git a/vendor/consolidation/site-alias/src/SiteAliasName.php b/vendor/consolidation/site-alias/src/SiteAliasName.php
deleted file mode 100644
index d8aa32ec2..000000000
--- a/vendor/consolidation/site-alias/src/SiteAliasName.php
+++ /dev/null
@@ -1,342 +0,0 @@
-doParse($item);
- return $aliasName;
- }
-
- /**
- * The 'location' of an alias file is defined as being the name
- * of the immediate parent of the alias file. e.g. the path
- * '$HOME/.drush/sites/isp/mysite.site.yml' would have a location
- * of 'isp' and a sitename of 'mysite'. The environments of the site
- * are defined by the alias contents.
- *
- * @param type $path
- * @return type
- */
- public static function locationFromPath($path)
- {
- $location = ltrim(basename(dirname($path)), '.');
- if (($location === 'sites') || ($location === 'drush')) {
- return '';
- }
- return $location;
- }
-
- /**
- * Creae a SiteAliasName object from an alias name string.
- *
- * @param string $sitename The alias name for the site.
- * @param string $env The name for the site's environment.
- * @param string $location The location filter for the site.
- */
- public function __construct($sitename = null, $env = null, $location = null)
- {
- $this->location = $location;
- $this->sitename = $sitename;
- $this->env = $env;
- }
-
- /**
- * Convert an alias name back to a string.
- *
- * @return string
- */
- public function __toString()
- {
- $parts = [ $this->sitename() ];
- if ($this->hasLocation()) {
- array_unshift($parts, $this->location());
- }
- if ($this->hasEnv()) {
- $parts[] = $this->env();
- }
- return '@' . implode('.', $parts);
- }
-
- /**
- * Determine whether or not the provided name is an alias name.
- *
- * @param string $aliasName
- * @return bool
- */
- public static function isAliasName($aliasName)
- {
- // Alias names provided by users must begin with '@'
- if (empty($aliasName) || ($aliasName[0] != '@')) {
- return false;
- }
- return preg_match(self::ALIAS_NAME_REGEX, $aliasName);
- }
-
- /**
- * Return the sitename portion of the alias name. By definition,
- * every alias must have a sitename. If the site name is implicit,
- * then 'self' is assumed.
- *
- * @return string
- */
- public function sitename()
- {
- if (empty($this->sitename)) {
- return 'self';
- }
- return $this->sitename;
- }
-
- /**
- * Return the sitename portion of the alias name. By definition,
- * every alias must have a sitename. If the site name is implicit,
- * then 'self' is assumed.
- *
- * @return string
- */
- public function sitenameWithLocation()
- {
- if (empty($this->sitename)) {
- return 'self';
- }
- return (empty($this->location) ? '' : $this->location . '.') . $this->sitename;
- }
-
- /**
- * Set the sitename portion of the alias name
- *
- * @param string $sitename
- */
- public function setSitename($sitename)
- {
- $this->sitename = $sitename;
- return $this;
- }
-
- /**
- * In general, all aliases have a sitename. The time when one will not
- * is when an environment name `@env` is used as a shortcut for `@self.env`
- *
- * @return bool
- */
- public function hasSitename()
- {
- return !empty($this->sitename);
- }
-
- /**
- * Return true if this alias name contains an 'env' portion.
- *
- * @return bool
- */
- public function hasEnv()
- {
- return !empty($this->env);
- }
-
- /**
- * Set the environment portion of the alias name.
- *
- * @param string
- */
- public function setEnv($env)
- {
- $this->env = $env;
- return $this;
- }
-
- /**
- * Return the 'env' portion of the alias name.
- *
- * @return string
- */
- public function env()
- {
- return $this->env;
- }
-
- /**
- * Return true if this alias name contains a 'location' portion
- * @return bool
- */
- public function hasLocation()
- {
- return !empty($this->location);
- }
-
- /**
- * Set the 'loation' portion of the alias name.
- * @param string $location
- */
- public function setLocation($location)
- {
- $this->location = $location;
- return $this;
- }
-
- /**
- * Return the 'location' portion of the alias name.
- *
- * @param string
- */
- public function location()
- {
- return $this->location;
- }
-
- /**
- * Return true if this alias name is the 'self' alias.
- *
- * @return bool
- */
- public function isSelf()
- {
- return ($this->sitename == 'self') && !isset($this->env);
- }
-
- /**
- * Return true if this alias name is the 'none' alias.
- */
- public function isNone()
- {
- return ($this->sitename == 'none') && !isset($this->env);
- }
-
- /**
- * Convert the parts of an alias name to its various component parts.
- *
- * @param string $aliasName a string representation of an alias name.
- */
- protected function doParse($aliasName)
- {
- // Example contents of $matches:
- //
- // - a.b:
- // [
- // 0 => 'a.b',
- // 1 => 'a',
- // 2 => '.b',
- // ]
- //
- // - a:
- // [
- // 0 => 'a',
- // 1 => 'a',
- // ]
- if (!preg_match(self::ALIAS_NAME_REGEX, $aliasName, $matches)) {
- return false;
- }
-
- // Get rid of $matches[0]
- array_shift($matches);
-
- // If $matches contains only one item1, then assume the alias name
- // contains only the environment.
- if (count($matches) == 1) {
- return $this->processSingleItem($matches[0]);
- }
-
- // If there are three items, then the first is the location.
- if (count($matches) == 3) {
- $this->location = trim(array_shift($matches), '.');
- }
-
- // The sitename and env follow the location.
- $this->sitename = trim(array_shift($matches), '.');
- $this->env = trim(array_shift($matches), '.');
- return true;
- }
-
- /**
- * Process an alias name provided as '@sitename'.
- *
- * @param string $sitename
- * @return true
- */
- protected function processSingleItem($item)
- {
- if ($this->isSpecialAliasName($item)) {
- $this->setSitename($item);
- return true;
- }
- $this->sitename = '';
- $this->env = $item;
- return true;
- }
-
- /**
- * Determine whether the requested name is a special alias name.
- *
- * @param string $item
- * @return boolean
- */
- protected function isSpecialAliasName($item)
- {
- return ($item == 'self') || ($item == 'none');
- }
-}
diff --git a/vendor/consolidation/site-alias/src/SiteSpecParser.php b/vendor/consolidation/site-alias/src/SiteSpecParser.php
deleted file mode 100644
index c84ae77a4..000000000
--- a/vendor/consolidation/site-alias/src/SiteSpecParser.php
+++ /dev/null
@@ -1,234 +0,0 @@
-match($spec);
- return $this->fixAndCheckUsability($result, $root);
- }
-
- /**
- * Determine if the provided specification is valid. Note that this
- * tests only for syntactic validity; to see if the specification is
- * usable, call 'parse()', which will also filter out specifications
- * for local sites that specify a multidev site that does not exist.
- *
- * @param string $spec
- * @see parse()
- * @return bool
- */
- public function validSiteSpec($spec)
- {
- $result = $this->match($spec);
- return !empty($result);
- }
-
- /**
- * Determine whether or not the provided name is an alias name.
- *
- * @param string $aliasName
- * @return bool
- */
- public function isAliasName($aliasName)
- {
- return !empty($aliasName) && ($aliasName[0] == '@');
- }
-
- public function setMultisiteDirectoryRoot($location)
- {
- $this->multisiteDirectoryRoot = $location;
- }
-
- public function getMultisiteDirectoryRoot($root)
- {
- return $root . DIRECTORY_SEPARATOR . $this->multisiteDirectoryRoot;
- }
-
- /**
- * Return the set of regular expression patterns that match the available
- * site specification formats.
- *
- * @return array
- * key: site specification regex
- * value: an array mapping from site specification component names to
- * the elements in the 'matches' array containing the data for that element.
- */
- protected function patterns()
- {
- $PATH = '([a-zA-Z]:[/\\\\][^#]*|[/\\\\][^#]*)';
- $USER = '([a-zA-Z0-9\._-]+)';
- $SERVER = '([a-zA-Z0-9\._-]+)';
- $URI = '([a-zA-Z0-9_-]+)';
-
- return [
- // /path/to/drupal#uri
- "%^{$PATH}#{$URI}\$%" => [
- 'root' => 1,
- 'uri' => 2,
- ],
- // user@server/path/to/drupal#uri
- "%^{$USER}@{$SERVER}{$PATH}#{$URI}\$%" => [
- 'user' => 1,
- 'host' => 2,
- 'root' => 3,
- 'uri' => 4,
- ],
- // user@server/path/to/drupal
- "%^{$USER}@{$SERVER}{$PATH}\$%" => [
- 'user' => 1,
- 'host' => 2,
- 'root' => 3,
- 'uri' => 'default', // Or '2' if uri should be 'host'
- ],
- // user@server#uri
- "%^{$USER}@{$SERVER}#{$URI}\$%" => [
- 'user' => 1,
- 'host' => 2,
- 'uri' => 3,
- ],
- // #uri
- "%^#{$URI}\$%" => [
- 'uri' => 1,
- ],
- ];
- }
-
- /**
- * Run through all of the available regex patterns and determine if
- * any match the provided specification.
- *
- * @return array
- * @see parse()
- */
- protected function match($spec)
- {
- foreach ($this->patterns() as $regex => $map) {
- if (preg_match($regex, $spec, $matches)) {
- return $this->mapResult($map, $matches);
- }
- }
- return [];
- }
-
- /**
- * Inflate the provided array so that it always contains the required
- * elements.
- *
- * @return array
- * @see parse()
- */
- protected function defaults($result = [])
- {
- $result += [
- 'root' => '',
- 'uri' => '',
- ];
-
- return $result;
- }
-
- /**
- * Take the data from the matches from the regular expression and
- * plug them into the result array per the info in the provided map.
- *
- * @param array $map
- * An array mapping from result key to matches index.
- * @param array $matches
- * The matched strings returned from preg_match
- * @return array
- * @see parse()
- */
- protected function mapResult($map, $matches)
- {
- $result = [];
-
- foreach ($map as $key => $index) {
- $value = is_string($index) ? $index : $matches[$index];
- $result[$key] = $value;
- }
-
- if (empty($result)) {
- return [];
- }
-
- return $this->defaults($result);
- }
-
- /**
- * Validate the provided result. If the result is local, then it must
- * have a 'root'. If it does not, then fill in the root that was provided
- * to us in our consturctor.
- *
- * @param array $result
- * @see parse() result.
- * @return array
- * @see parse()
- */
- protected function fixAndCheckUsability($result, $root)
- {
- if (empty($result) || !empty($result['host'])) {
- return $result;
- }
-
- if (empty($result['root'])) {
- // TODO: should these throw an exception, so the user knows
- // why their site spec was invalid?
- if (empty($root) || !is_dir($root)) {
- return [];
- }
-
- $result['root'] = $root;
- }
-
- // If using a sitespec `#uri`, then `uri` MUST
- // be the name of a folder that exists in __DRUPAL_ROOT__/sites.
- // This restriction does NOT apply to the --uri option. Are there
- // instances where we need to allow 'uri' to be a literal uri
- // rather than the folder name? If so, we need to loosen this check.
- // I think it's fine as it is, though.
- $path = $this->getMultisiteDirectoryRoot($result['root']) . DIRECTORY_SEPARATOR . $result['uri'];
- if (!is_dir($path)) {
- return [];
- }
-
- return $result;
- }
-}
diff --git a/vendor/consolidation/site-alias/src/Util/FsUtils.php b/vendor/consolidation/site-alias/src/Util/FsUtils.php
deleted file mode 100644
index b5741f290..000000000
--- a/vendor/consolidation/site-alias/src/Util/FsUtils.php
+++ /dev/null
@@ -1,26 +0,0 @@
-commandClasses = [ \Consolidation\SiteAlias\Cli\SiteAliasCommands::class ];
-
- // Define our invariants for our test
- $this->appName = 'TestFixtureApp';
- $this->appVersion = '1.0.1';
- }
-
- /**
- * Data provider for testExample.
- *
- * Return an array of arrays, each of which contains the parameter
- * values to be used in one invocation of the testExample test function.
- */
- public function exampleTestCommandParameters()
- {
- return [
-
- [
- 'Add search location: /fixtures/sitealiases/sites', self::STATUS_ERROR,
- 'site:list', '/fixtures/sitealiases/sites',
- ],
-
- [
- 'List available site aliases', self::STATUS_OK,
- 'list',
- ],
-
- ];
- }
-
- /**
- * Test our example class. Each time this function is called, it will
- * be passed data from the data provider function idendified by the
- * dataProvider annotation.
- *
- * @dataProvider exampleTestCommandParameters
- */
- public function testExampleCommands($expectedOutput, $expectedStatus, $variable_args)
- {
- // Create our argv array and run the command
- $argv = $this->argv(func_get_args());
- list($actualOutput, $statusCode) = $this->execute($argv);
-
- // Confirm that our output and status code match expectations
- $this->assertContains($expectedOutput, $actualOutput);
- $this->assertEquals($expectedStatus, $statusCode);
- }
-
- /**
- * Prepare our $argv array; put the app name in $argv[0] followed by
- * the command name and all command arguments and options.
- */
- protected function argv($functionParameters)
- {
- $argv = $functionParameters;
- array_shift($argv);
- array_shift($argv);
- array_unshift($argv, $this->appName);
-
- // TODO: replace paths beginning with '/fixtures' with actual path to fixture data
-
- return $argv;
- }
-
- /**
- * Simulated front controller
- */
- protected function execute($argv)
- {
- // Define a global output object to capture the test results
- $output = new BufferedOutput();
-
- // We can only call `Runner::execute()` once; then we need to tear down.
- $runner = new \Robo\Runner($this->commandClasses);
- $statusCode = $runner->execute($argv, $this->appName, $this->appVersion, $output);
- \Robo\Robo::unsetContainer();
-
- // Return the output and status code.
- $actualOutput = trim($output->fetch());
- return [$actualOutput, $statusCode];
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/SiteAliasFileDiscoveryTest.php b/vendor/consolidation/site-alias/tests/SiteAliasFileDiscoveryTest.php
deleted file mode 100644
index 43021bb38..000000000
--- a/vendor/consolidation/site-alias/tests/SiteAliasFileDiscoveryTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-sut = new SiteAliasFileDiscovery();
- }
-
- public function testSearchForSingleAliasFile()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/sites');
-
- $path = $this->sut->findSingleSiteAliasFile('single');
- $this->assertLocation('sites', $path);
- $this->assertBasename('single.site.yml', $path);
- }
-
- public function testSearchForMissingSingleAliasFile()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/sites');
-
- $path = $this->sut->findSingleSiteAliasFile('missing');
- $this->assertFalse($path);
- }
-
- public function testFindAllLegacyAliasFiles()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/legacy');
-
- $result = $this->sut->findAllLegacyAliasFiles();
- $paths = $this->simplifyToBasenamesWithLocation($result);
- $this->assertEquals('legacy/aliases.drushrc.php,legacy/cc.aliases.drushrc.php,legacy/one.alias.drushrc.php,legacy/pantheon.aliases.drushrc.php,legacy/server.aliases.drushrc.php', implode(',', $paths));
- }
-
- protected function assertLocation($expected, $path)
- {
- $this->assertEquals($expected, basename(dirname($path)));
- }
-
- protected function assertBasename($expected, $path)
- {
- $this->assertEquals($expected, basename($path));
- }
-
- protected function simplifyToBasenamesWithLocation($result)
- {
- if (!is_array($result)) {
- return $result;
- }
-
- $result = array_map(
- function ($item) {
- return basename(dirname($item)) . '/' . basename($item);
- }
- ,
- $result
- );
-
- sort($result);
-
- return $result;
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/SiteAliasFileLoaderTest.php b/vendor/consolidation/site-alias/tests/SiteAliasFileLoaderTest.php
deleted file mode 100644
index 97dac13e8..000000000
--- a/vendor/consolidation/site-alias/tests/SiteAliasFileLoaderTest.php
+++ /dev/null
@@ -1,165 +0,0 @@
-sut = new SiteAliasFileLoader();
-
- $ymlLoader = new YamlDataFileLoader();
- $this->sut->addLoader('yml', $ymlLoader);
- }
-
- public function testLoadWildAliasFile()
- {
- $siteAliasFixtures = $this->fixturesDir() . '/sitealiases/sites';
- $this->assertTrue(is_dir($siteAliasFixtures));
- $this->assertTrue(is_file($siteAliasFixtures . '/wild.site.yml'));
-
- $this->sut->addSearchLocation($siteAliasFixtures);
-
- // Try to get the dev environment.
- $name = SiteAliasName::parse('@wild.dev');
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/path/to/wild', $result->get('root'));
- $this->assertEquals('bar', $result->get('foo'));
-
- // Try to fetch an environment that does not exist. Since this is
- // a wildcard alias, there should
- $name = SiteAliasName::parse('@wild.other');
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/wild/path/to/wild', $result->get('root'));
- $this->assertEquals('bar', $result->get('foo'));
-
- }
-
- public function testLoadSingleAliasFile()
- {
- $siteAliasFixtures = $this->fixturesDir() . '/sitealiases/sites';
- $this->assertTrue(is_dir($siteAliasFixtures));
- $this->assertTrue(is_file($siteAliasFixtures . '/simple.site.yml'));
- $this->assertTrue(is_file($siteAliasFixtures . '/single.site.yml'));
-
- $this->sut->addSearchLocation($siteAliasFixtures);
-
- // Add a secondary location
- $siteAliasFixtures = $this->fixturesDir() . '/sitealiases/other';
- $this->assertTrue(is_dir($siteAliasFixtures));
- $this->sut->addSearchLocation($siteAliasFixtures);
-
- // Look for a simple alias with no environments defined
- $name = new SiteAliasName('simple');
- $this->assertEquals('simple', $name->sitename());
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/path/to/simple', $result->get('root'));
-
- // Look for a single alias without an environment specified.
- $name = new SiteAliasName('single');
- $this->assertEquals('single', $name->sitename());
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/path/to/single', $result->get('root'));
- $this->assertEquals('bar', $result->get('foo'));
-
- // Same test, but with environment explicitly requested.
- $name = SiteAliasName::parse('@single.alternate');
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/alternate/path/to/single', $result->get('root'));
- $this->assertEquals('bar', $result->get('foo'));
-
- // Same test, but with location explicitly filtered.
- $name = SiteAliasName::parse('@other.single.dev');
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/other/path/to/single', $result->get('root'));
- $this->assertEquals('baz', $result->get('foo'));
-
- // Try to fetch an alias that does not exist.
- $name = SiteAliasName::parse('@missing');
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertFalse($result);
-
- // Try to fetch an alias using a missing location
- $name = SiteAliasName::parse('@missing.single.alternate');
- $result = $this->callProtected('loadSingleAliasFile', [$name]);
- $this->assertFalse($result);
- }
-
- public function testLoadLegacy()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/legacy');
- }
-
- public function testLoad()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/sites');
-
- // Look for a simple alias with no environments defined
- $name = new SiteAliasName('simple');
- $result = $this->sut->load($name);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/path/to/simple', $result->get('root'));
-
- // Look for a single alias without an environment specified.
- $name = new SiteAliasName('single');
- $result = $this->sut->load($name);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/path/to/single', $result->get('root'));
- $this->assertEquals('bar', $result->get('foo'));
-
- // Same test, but with environment explicitly requested.
- $name = new SiteAliasName('single', 'alternate');
- $result = $this->sut->load($name);
- $this->assertTrue($result instanceof AliasRecord);
- $this->assertEquals('/alternate/path/to/single', $result->get('root'));
- $this->assertEquals('bar', $result->get('foo'));
-
- // Try to fetch an alias that does not exist.
- $name = new SiteAliasName('missing');
- $result = $this->sut->load($name);
- $this->assertFalse($result);
-
- // Try to fetch an alias that does not exist.
- $name = new SiteAliasName('missing');
- $result = $this->sut->load($name);
- $this->assertFalse($result);
- }
-
- public function testLoadAll()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/sites');
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/other');
-
- $all = $this->sut->loadAll();
- $this->assertEquals('@other.bob.dev,@other.bob.other,@other.fred.dev,@other.fred.other,@other.single.dev,@other.single.other,@single.alternate,@single.dev,@single.empty,@wild.*,@wild.dev', implode(',', array_keys($all)));
- }
-
- public function testLoadMultiple()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/sites');
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/other');
-
- $aliases = $this->sut->loadMultiple('single');
- $this->assertEquals('@single.dev,@single.alternate,@single.empty,@other.single.dev,@other.single.other', implode(',', array_keys($aliases)));
- }
-
- public function testLoadLocation()
- {
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/sites');
- $this->sut->addSearchLocation($this->fixturesDir() . '/sitealiases/other');
-
- $aliases = $this->sut->loadLocation('other');
- $this->assertEquals('@other.bob.dev,@other.bob.other,@other.fred.dev,@other.fred.other,@other.single.dev,@other.single.other', implode(',', array_keys($aliases)));
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/SiteAliasManagerTest.php b/vendor/consolidation/site-alias/tests/SiteAliasManagerTest.php
deleted file mode 100644
index 00ac33a51..000000000
--- a/vendor/consolidation/site-alias/tests/SiteAliasManagerTest.php
+++ /dev/null
@@ -1,215 +0,0 @@
-siteDir();
- $referenceData = [];
- $siteAliasFixtures = $this->fixturesDir() . '/sitealiases/sites';
-
- $aliasLoader = new SiteAliasFileLoader();
- $ymlLoader = new YamlDataFileLoader();
- $aliasLoader->addLoader('yml', $ymlLoader);
-
- $this->manager = new SiteAliasManager($aliasLoader, $root);
- $this->manager
- ->setReferenceData($referenceData)
- ->addSearchLocation($siteAliasFixtures);
- }
-
- public function managerGetTestValues()
- {
- return [
- [
- '@single.other', false,
- ],
-
- [
- '@other.single.other', false,
- ],
-
- [
- '@single.dev', 'foo: bar
-root: /path/to/single',
- ],
-
- ];
- }
-
- public function managerGetWithOtherLocationTestValues()
- {
- return [
- [
- '@single.other', false,
- ],
-
- [
- '@other.single.other', 'foo: baz
-root: /other/other/path/to/single',
- ],
-
- [
- '@single.dev', 'foo: bar
-root: /path/to/single',
- ],
-
- ];
- }
-
- public function managerGetWithDupLocationsTestValues()
- {
- return [
- [
- '@single.dev', 'foo: bar
-root: /path/to/single',
- ],
-
- [
- '@other.single.dev', 'foo: baz
-root: /other/path/to/single',
- ],
-
- [
- '@dup.single.dev', 'foo: dup
-root: /dup/path/to/single',
- ],
-
- ];
- }
-
- /**
- * This test is just to ensure that our fixture data is being loaded
- * accurately so that we can start writing tests. Its okay to remove
- * rather than maintain this test once the suite is mature.
- */
- public function testGetMultiple()
- {
- // First set of tests: get all aliases in the default location
-
- $all = $this->manager->getMultiple();
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@single.alternate,@single.dev,@single.empty,@wild.*,@wild.dev', implode(',', $allNames));
-
- $all = $this->manager->getMultiple('@single');
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@single.alternate,@single.dev,@single.empty', implode(',', $allNames));
-
- // Next set of tests: Get all aliases in the 'other' location
-
- $this->addAlternateLocation('other');
-
- $all = $this->manager->getMultiple();
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@other.bob.dev,@other.bob.other,@other.fred.dev,@other.fred.other,@other.single.dev,@other.single.other,@single.alternate,@single.dev,@single.empty,@wild.*,@wild.dev', implode(',', $allNames));
-
- $all = $this->manager->getMultiple('@other');
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@other.bob.dev,@other.bob.other,@other.fred.dev,@other.fred.other,@other.single.dev,@other.single.other', implode(',', $allNames));
-
- // Add the 'dup' location and do some more tests
-
- $this->addAlternateLocation('dup');
-
- $all = $this->manager->getMultiple();
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@dup.bob.dev,@dup.bob.other,@dup.fred.dev,@dup.fred.other,@dup.single.alternate,@dup.single.dev,@other.bob.dev,@other.bob.other,@other.fred.dev,@other.fred.other,@other.single.dev,@other.single.other,@single.alternate,@single.dev,@single.empty,@wild.*,@wild.dev', implode(',', $allNames));
-
- $all = $this->manager->getMultiple('@dup');
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@dup.bob.dev,@dup.bob.other,@dup.fred.dev,@dup.fred.other,@dup.single.alternate,@dup.single.dev', implode(',', $allNames));
-
- $all = $this->manager->getMultiple('@other');
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@other.bob.dev,@other.bob.other,@other.fred.dev,@other.fred.other,@other.single.dev,@other.single.other', implode(',', $allNames));
-
- $all = $this->manager->getMultiple('@dup.single');
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@dup.single.alternate,@dup.single.dev', implode(',', $allNames));
-
- $all = $this->manager->getMultiple('@other.single');
- $allNames = array_keys($all);
- sort($allNames);
-
- $this->assertEquals('@other.single.dev,@other.single.other', implode(',', $allNames));
- }
-
- /**
- * @dataProvider managerGetTestValues
- */
- public function testGet(
- $aliasName,
- $expected)
- {
- $alias = $this->manager->get($aliasName);
- $actual = $this->renderAlias($alias);
- $this->assertEquals($expected, $actual);
- }
-
- /**
- * @dataProvider managerGetWithOtherLocationTestValues
- */
- public function testGetWithOtherLocation(
- $aliasName,
- $expected)
- {
- $this->addAlternateLocation('other');
- $this->testGet($aliasName, $expected);
- }
-
- /**
- * @dataProvider managerGetWithDupLocationsTestValues
- */
- public function testGetWithDupLocations(
- $aliasName,
- $expected)
- {
- $this->addAlternateLocation('dup');
- $this->testGetWithOtherLocation($aliasName, $expected);
- }
-
- protected function addAlternateLocation($fixtureDirName)
- {
- // Add another search location IN ADDITION to the one
- // already added in the setup() mehtod.
- $siteAliasFixtures = $this->fixturesDir() . '/sitealiases/' . $fixtureDirName;
- $this->manager->addSearchLocation($siteAliasFixtures);
- }
-
- protected function renderAlias($alias)
- {
- if (!$alias) {
- return false;
- }
-
- return trim(Yaml::Dump($alias->export()));
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/SiteAliasNameTest.php b/vendor/consolidation/site-alias/tests/SiteAliasNameTest.php
deleted file mode 100644
index 3c3d3cb03..000000000
--- a/vendor/consolidation/site-alias/tests/SiteAliasNameTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-assertFalse($name->hasLocation());
- $this->assertTrue(!$name->hasSitename());
- $this->assertTrue($name->hasEnv());
- $this->assertEquals('simple', $name->env());
- $this->assertEquals('@self.simple', (string)$name);
-
- // Test a non-ambiguous sitename.env alias.
- $name = SiteAliasName::parse('@site.env');
- $this->assertFalse($name->hasLocation());
- $this->assertTrue($name->hasSitename());
- $this->assertTrue($name->hasEnv());
- $this->assertEquals('site', $name->sitename());
- $this->assertEquals('env', $name->env());
- $this->assertEquals('@site.env', (string)$name);
-
- // Test a non-ambiguous location.sitename.env alias.
- $name = SiteAliasName::parse('@location.site.env');
- $this->assertTrue($name->hasLocation());
- $this->assertTrue($name->hasSitename());
- $this->assertTrue($name->hasEnv());
- $this->assertEquals('location', $name->location());
- $this->assertEquals('site', $name->sitename());
- $this->assertEquals('env', $name->env());
- $this->assertEquals('@location.site.env', (string)$name);
-
- // Test an invalid alias - bad character
- $name = SiteAliasName::parse('!site.env');
- $this->assertFalse($name->hasLocation());
- $this->assertFalse($name->hasSitename());
- $this->assertFalse($name->hasEnv());
-
- // Test an invalid alias - too many separators
- $name = SiteAliasName::parse('@location.group.site.env');
- $this->assertFalse($name->hasLocation());
- $this->assertFalse($name->hasSitename());
- $this->assertFalse($name->hasEnv());
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/SiteSpecParserTest.php b/vendor/consolidation/site-alias/tests/SiteSpecParserTest.php
deleted file mode 100644
index a158a2284..000000000
--- a/vendor/consolidation/site-alias/tests/SiteSpecParserTest.php
+++ /dev/null
@@ -1,177 +0,0 @@
-siteDir();
- $fixtureSite = '/' . basename($root);
- $parser = new SiteSpecParser();
-
- // If the test spec begins with '/fixtures', substitute the
- // actual path to our fixture site.
- $spec = preg_replace('%^/fixtures%', $root, $spec);
-
- // Make sure that our spec is valid
- $this->assertTrue($parser->validSiteSpec($spec));
-
- // Parse it!
- $result = $parser->parse($spec, $root);
-
- // If the result contains the path to our fixtures site, replace
- // it with the simple string '/fixtures'.
- if (isset($result['root'])) {
- $result['root'] = preg_replace("%.*$fixtureSite%", '/fixtures', $result['root']);
- }
-
- // Compare the altered result with the expected value.
- $this->assertEquals($expected, $result);
- }
-
- /**
- * @dataProvider validSiteSpecs
- */
- public function testValidSiteSpecs($spec)
- {
- $this->isSpecValid($spec, true);
- }
-
- /**
- * @dataProvider invalidSiteSpecs
- */
- public function testInvalidSiteSpecs($spec)
- {
- $this->isSpecValid($spec, false);
- }
-
- protected function isSpecValid($spec, $expected)
- {
- $parser = new SiteSpecParser();
-
- $result = $parser->validSiteSpec($spec);
- $this->assertEquals($expected, $result);
- }
-
- public static function validSiteSpecs()
- {
- return [
- [ '/path/to/drupal#uri' ],
- [ 'user@server/path/to/drupal#uri' ],
- [ 'user.name@example.com/path/to/drupal#uri' ],
- [ 'user@server/path/to/drupal' ],
- [ 'user@example.com/path/to/drupal' ],
- [ 'user@server#uri' ],
- [ 'user@example.com#uri' ],
- [ '#uri' ],
- ];
- }
-
- public static function invalidSiteSpecs()
- {
- return [
- [ 'uri' ],
- [ '@/#' ],
- [ 'user@#uri' ],
- [ '@server/path/to/drupal#uri' ],
- [ 'user@server/path/to/drupal#' ],
- [ 'user@server/path/to/drupal#uri!' ],
- [ 'user@server/path/to/drupal##uri' ],
- [ 'user#server/path/to/drupal#uri' ],
- ];
- }
-
- public static function parserTestValues()
- {
- return [
- [
- 'user@server/path#somemultisite',
- [
- 'user' => 'user',
- 'host' => 'server',
- 'root' => '/path',
- 'uri' => 'somemultisite',
- ],
- ],
-
- [
- 'user.name@example.com/path#somemultisite',
- [
- 'user' => 'user.name',
- 'host' => 'example.com',
- 'root' => '/path',
- 'uri' => 'somemultisite',
- ],
- ],
-
- [
- 'user@server/path',
- [
- 'user' => 'user',
- 'host' => 'server',
- 'root' => '/path',
- 'uri' => 'default',
- ],
- ],
-
- [
- 'user.name@example.com/path',
- [
- 'user' => 'user.name',
- 'host' => 'example.com',
- 'root' => '/path',
- 'uri' => 'default',
- ],
- ],
-
- [
- '/fixtures#mymultisite',
- [
- 'root' => '/fixtures',
- 'uri' => 'mymultisite',
- ],
- ],
-
- [
- '#mymultisite',
- [
- 'root' => '/fixtures',
- 'uri' => 'mymultisite',
- ],
- ],
-
- [
- '/fixtures#somemultisite',
- [
- ],
- ],
-
- [
- '/path#somemultisite',
- [
- ],
- ],
-
- [
- '/path#mymultisite',
- [
- ],
- ],
-
- [
- '#somemultisite',
- [
- ],
- ],
- ];
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/bob.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/bob.site.yml
deleted file mode 100644
index d2aa6f36e..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/bob.site.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-dev:
- root: /other/path/to/bob
-other:
- root: /other/other/path/to/bob
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/fred.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/fred.site.yml
deleted file mode 100644
index 377e2df40..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/fred.site.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-dev:
- root: /other/path/to/fred
-other:
- root: /other/other/path/to/fred
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/single.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/single.site.yml
deleted file mode 100644
index eb4634b7b..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/dup/single.site.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-default: dev
-dev:
- root: /dup/path/to/single
-alternate:
- root: /dup/alternate/path/to/single
-common:
- foo: dup
-
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/aliases.drushrc.php b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/aliases.drushrc.php
deleted file mode 100644
index 09fad12d8..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/aliases.drushrc.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'example.com',
- 'root' => '/path/to/drupal',
-];
-
-$aliases['staging'] = [
- 'uri' => 'staging.example.com',
- 'root' => '/path/to/drupal',
-];
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/cc.aliases.drushrc.php b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/cc.aliases.drushrc.php
deleted file mode 100644
index c077dcced..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/cc.aliases.drushrc.php
+++ /dev/null
@@ -1,43 +0,0 @@
- '@server.digital-ocean',
- 'project-type' => 'live',
- 'root' => '/srv/www/couturecostume.com/htdocs',
- 'uri' => 'couturecostume.com',
- 'path-aliases' => array(
- '%dump-dir' => '/var/sql-dump/',
- ),
- 'target-command-specific' => array(
- 'sql-sync' => array(
- 'disable' => array('stage_file_proxy'),
- 'permission' => array(
- 'authenticated user' => array(
- 'remove' => array('access environment indicator'),
- ),
- 'anonymous user' => array(
- 'remove' => 'access environment indicator',
- ),
- ),
- ),
- ),
-);
-
-$aliases['update'] = array (
- 'parent' => '@server.nitrogen',
- 'root' => '/srv/www/update.couturecostume.com/htdocs',
- 'uri' => 'update.couturecostume.com',
- 'target-command-specific' => array(
- 'sql-sync' => array(
- 'enable' => array('environment_indicator', 'stage_file_proxy'),
- 'permission' => array(
- 'authenticated user' => array(
- 'add' => array('access environment indicator'),
- ),
- 'anonymous user' => array(
- 'add' => 'access environment indicator',
- ),
- ),
- ),
- ),
-);
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/do-not-find-me.php b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/do-not-find-me.php
deleted file mode 100644
index 0cb51f9c0..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/do-not-find-me.php
+++ /dev/null
@@ -1,3 +0,0 @@
- 'test-outlandish-josh.pantheonsite.io',
- 'db-url' => 'mysql://pantheon:pw@dbserver.test.site-id.drush.in:11621/pantheon',
- 'db-allows-remote' => TRUE,
- 'remote-host' => 'appserver.test.site-id.drush.in',
- 'remote-user' => 'test.site-id',
- 'ssh-options' => '-p 2222 -o "AddressFamily inet"',
- 'path-aliases' => array(
- '%files' => 'code/sites/default/files',
- '%drush-script' => 'drush',
- ),
- );
- $aliases['outlandish-josh.live'] = array(
- 'uri' => 'www.outlandishjosh.com',
- 'db-url' => 'mysql://pantheon:pw@dbserver.live.site-id.drush.in:10516/pantheon',
- 'db-allows-remote' => TRUE,
- 'remote-host' => 'appserver.live.site-id.drush.in',
- 'remote-user' => 'live.site-id',
- 'ssh-options' => '-p 2222 -o "AddressFamily inet"',
- 'path-aliases' => array(
- '%files' => 'code/sites/default/files',
- '%drush-script' => 'drush',
- ),
- );
- $aliases['outlandish-josh.dev'] = array(
- 'uri' => 'dev-outlandish-josh.pantheonsite.io',
- 'db-url' => 'mysql://pantheon:pw@dbserver.dev.site-id.drush.in:21086/pantheon',
- 'db-allows-remote' => TRUE,
- 'remote-host' => 'appserver.dev.site-id.drush.in',
- 'remote-user' => 'dev.site-id',
- 'ssh-options' => '-p 2222 -o "AddressFamily inet"',
- 'path-aliases' => array(
- '%files' => 'code/sites/default/files',
- '%drush-script' => 'drush',
- ),
- );
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/server.aliases.drushrc.php b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/server.aliases.drushrc.php
deleted file mode 100644
index 5d1c7ca07..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/legacy/server.aliases.drushrc.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'hydrogen.server.org',
- 'remote-user' => 'www-admin',
-);
-
-$aliases['nitrogen'] = array (
- 'remote-host' => 'nitrogen.server.org',
- 'remote-user' => 'admin',
-);
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/bob.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/bob.site.yml
deleted file mode 100644
index d2aa6f36e..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/bob.site.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-dev:
- root: /other/path/to/bob
-other:
- root: /other/other/path/to/bob
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/fred.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/fred.site.yml
deleted file mode 100644
index 377e2df40..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/fred.site.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-dev:
- root: /other/path/to/fred
-other:
- root: /other/other/path/to/fred
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/simple.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/simple.site.yml
deleted file mode 100644
index cb838f76e..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/simple.site.yml
+++ /dev/null
@@ -1 +0,0 @@
-root: /other/path/to/simple
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/single.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/single.site.yml
deleted file mode 100644
index b85ded36f..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/other/single.site.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-default: dev
-dev:
- root: /other/path/to/single
-other:
- root: /other/other/path/to/single
-common:
- foo: baz
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/simple.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/simple.site.yml
deleted file mode 100644
index 34b77c6cc..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/simple.site.yml
+++ /dev/null
@@ -1 +0,0 @@
-root: /path/to/simple
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/single.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/single.site.yml
deleted file mode 100644
index 5d700f5f8..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/single.site.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-default: dev
-dev:
- root: /path/to/single
-alternate:
- root: /alternate/path/to/single
-empty:
- foo: bar
-common:
- foo: bar
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/wild.site.yml b/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/wild.site.yml
deleted file mode 100644
index eeafebcd9..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sitealiases/sites/wild.site.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-default: dev
-dev:
- root: /path/to/wild
- uri: https://dev.example.com
-'*':
- root: /wild/path/to/wild
- uri: https://${env-name}.example.com
-common:
- foo: bar
diff --git a/vendor/consolidation/site-alias/tests/fixtures/sites/d8/sites/mymultisite/settings.php b/vendor/consolidation/site-alias/tests/fixtures/sites/d8/sites/mymultisite/settings.php
deleted file mode 100644
index b3d9bbc7f..000000000
--- a/vendor/consolidation/site-alias/tests/fixtures/sites/d8/sites/mymultisite/settings.php
+++ /dev/null
@@ -1 +0,0 @@
-fixturesDir() . '/home';
- }
-
- // It is still an aspirational goal to add Drupal 7 support back to Drush. :P
- // For now, only Drupal 8 is supported.
- protected function siteDir($majorVersion = '8')
- {
- return $this->fixturesDir() . '/sites/d' . $majorVersion;
- }
-}
diff --git a/vendor/consolidation/site-alias/tests/src/FunctionUtils.php b/vendor/consolidation/site-alias/tests/src/FunctionUtils.php
deleted file mode 100644
index bcc3521b7..000000000
--- a/vendor/consolidation/site-alias/tests/src/FunctionUtils.php
+++ /dev/null
@@ -1,14 +0,0 @@
-sut, $methodName);
- $r->setAccessible(true);
- return $r->invokeArgs($this->sut, $args);
- }
-}
diff --git a/vendor/container-interop/container-interop/.gitignore b/vendor/container-interop/container-interop/.gitignore
deleted file mode 100644
index b2395aa05..000000000
--- a/vendor/container-interop/container-interop/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-composer.lock
-composer.phar
-/vendor/
diff --git a/vendor/container-interop/container-interop/LICENSE b/vendor/container-interop/container-interop/LICENSE
deleted file mode 100644
index 7671d9020..000000000
--- a/vendor/container-interop/container-interop/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 container-interop
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/container-interop/container-interop/README.md b/vendor/container-interop/container-interop/README.md
deleted file mode 100644
index cdd7a44c8..000000000
--- a/vendor/container-interop/container-interop/README.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# Container Interoperability
-
-[![Latest Stable Version](https://poser.pugx.org/container-interop/container-interop/v/stable.png)](https://packagist.org/packages/container-interop/container-interop)
-[![Total Downloads](https://poser.pugx.org/container-interop/container-interop/downloads.svg)](https://packagist.org/packages/container-interop/container-interop)
-
-## Deprecation warning!
-
-Starting Feb. 13th 2017, container-interop is officially deprecated in favor of [PSR-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md).
-Container-interop has been the test-bed of PSR-11. From v1.2, container-interop directly extends PSR-11 interfaces.
-Therefore, all containers implementing container-interop are now *de-facto* compatible with PSR-11.
-
-- Projects implementing container-interop interfaces are encouraged to directly implement PSR-11 interfaces instead.
-- Projects consuming container-interop interfaces are very strongly encouraged to directly type-hint on PSR-11 interfaces, in order to be compatible with PSR-11 containers that are not compatible with container-interop.
-
-Regarding the delegate lookup feature, that is present in container-interop and not in PSR-11, the feature is actually a design pattern. It is therefore not deprecated. Documentation regarding this design pattern will be migrated from this repository into a separate website in the future.
-
-## About
-
-*container-interop* tries to identify and standardize features in *container* objects (service locators,
-dependency injection containers, etc.) to achieve interoperability.
-
-Through discussions and trials, we try to create a standard, made of common interfaces but also recommendations.
-
-If PHP projects that provide container implementations begin to adopt these common standards, then PHP
-applications and projects that use containers can depend on the common interfaces instead of specific
-implementations. This facilitates a high-level of interoperability and flexibility that allows users to consume
-*any* container implementation that can be adapted to these interfaces.
-
-The work done in this project is not officially endorsed by the [PHP-FIG](http://www.php-fig.org/), but it is being
-worked on by members of PHP-FIG and other good developers. We adhere to the spirit and ideals of PHP-FIG, and hope
-this project will pave the way for one or more future PSRs.
-
-
-## Installation
-
-You can install this package through Composer:
-
-```json
-composer require container-interop/container-interop
-```
-
-The packages adheres to the [SemVer](http://semver.org/) specification, and there will be full backward compatibility
-between minor versions.
-
-## Standards
-
-### Available
-
-- [`ContainerInterface`](src/Interop/Container/ContainerInterface.php).
-[Description](docs/ContainerInterface.md) [Meta Document](docs/ContainerInterface-meta.md).
-Describes the interface of a container that exposes methods to read its entries.
-- [*Delegate lookup feature*](docs/Delegate-lookup.md).
-[Meta Document](docs/Delegate-lookup-meta.md).
-Describes the ability for a container to delegate the lookup of its dependencies to a third-party container. This
-feature lets several containers work together in a single application.
-
-### Proposed
-
-View open [request for comments](https://github.com/container-interop/container-interop/labels/RFC)
-
-## Compatible projects
-
-### Projects implementing `ContainerInterface`
-
-- [Acclimate](https://github.com/jeremeamia/acclimate-container): Adapters for
- Aura.Di, Laravel, Nette DI, Pimple, Symfony DI, ZF2 Service manager, ZF2
- Dependency injection and any container using `ArrayAccess`
-- [Aura.Di](https://github.com/auraphp/Aura.Di)
-- [auryn-container-interop](https://github.com/elazar/auryn-container-interop)
-- [Burlap](https://github.com/codeeverything/burlap)
-- [Chernozem](https://github.com/pyrsmk/Chernozem)
-- [Data Manager](https://github.com/chrismichaels84/data-manager)
-- [Disco](https://github.com/bitexpert/disco)
-- [InDI](https://github.com/idealogica/indi)
-- [League/Container](http://container.thephpleague.com/)
-- [Mouf](http://mouf-php.com)
-- [Njasm Container](https://github.com/njasm/container)
-- [PHP-DI](http://php-di.org)
-- [Picotainer](https://github.com/thecodingmachine/picotainer)
-- [PimpleInterop](https://github.com/moufmouf/pimple-interop)
-- [Pimple3-ContainerInterop](https://github.com/Sam-Burns/pimple3-containerinterop) (using Pimple v3)
-- [SitePoint Container](https://github.com/sitepoint/Container)
-- [Thruster Container](https://github.com/ThrusterIO/container) (PHP7 only)
-- [Ultra-Lite Container](https://github.com/ultra-lite/container)
-- [Unbox](https://github.com/mindplay-dk/unbox)
-- [XStatic](https://github.com/jeremeamia/xstatic)
-- [Zend\ServiceManager](https://github.com/zendframework/zend-servicemanager)
-- [Zit](https://github.com/inxilpro/Zit)
-
-### Projects implementing the *delegate lookup* feature
-
-- [Aura.Di](https://github.com/auraphp/Aura.Di)
-- [Burlap](https://github.com/codeeverything/burlap)
-- [Chernozem](https://github.com/pyrsmk/Chernozem)
-- [InDI](https://github.com/idealogica/indi)
-- [League/Container](http://container.thephpleague.com/)
-- [Mouf](http://mouf-php.com)
-- [Picotainer](https://github.com/thecodingmachine/picotainer)
-- [PHP-DI](http://php-di.org)
-- [PimpleInterop](https://github.com/moufmouf/pimple-interop)
-- [Ultra-Lite Container](https://github.com/ultra-lite/container)
-
-### Middlewares implementing `ContainerInterface`
-
-- [Alias-Container](https://github.com/thecodingmachine/alias-container): add
- aliases support to any container
-- [Prefixer-Container](https://github.com/thecodingmachine/prefixer-container):
- dynamically prefix identifiers
-- [Lazy-Container](https://github.com/snapshotpl/lazy-container): lazy services
-
-### Projects using `ContainerInterface`
-
-The list below contains only a sample of all the projects consuming `ContainerInterface`. For a more complete list have a look [here](http://packanalyst.com/class?q=Interop%5CContainer%5CContainerInterface).
-
-| | Downloads |
-| --- | --- |
-| [Adroit](https://github.com/bitexpert/adroit) | ![](https://img.shields.io/packagist/dt/bitexpert/adroit.svg) |
-| [Behat](https://github.com/Behat/Behat/pull/974) | ![](https://img.shields.io/packagist/dt/behat/behat.svg) |
-| [blast-facades](https://github.com/phpthinktank/blast-facades): Minimize complexity and represent dependencies as facades. | ![](https://img.shields.io/packagist/dt/blast/facades.svg) |
-| [interop.silex.di](https://github.com/thecodingmachine/interop.silex.di): an extension to [Silex](http://silex.sensiolabs.org/) that adds support for any *container-interop* compatible container | ![](https://img.shields.io/packagist/dt/mouf/interop.silex.di.svg) |
-| [mindplay/walkway](https://github.com/mindplay-dk/walkway): a modular request router | ![](https://img.shields.io/packagist/dt/mindplay/walkway.svg) |
-| [mindplay/middleman](https://github.com/mindplay-dk/middleman): minimalist PSR-7 middleware dispatcher | ![](https://img.shields.io/packagist/dt/mindplay/middleman.svg) |
-| [PHP-DI/Invoker](https://github.com/PHP-DI/Invoker): extensible and configurable invoker/dispatcher | ![](https://img.shields.io/packagist/dt/php-di/invoker.svg) |
-| [Prophiler](https://github.com/fabfuel/prophiler) | ![](https://img.shields.io/packagist/dt/fabfuel/prophiler.svg) |
-| [Silly](https://github.com/mnapoli/silly): CLI micro-framework | ![](https://img.shields.io/packagist/dt/mnapoli/silly.svg) |
-| [Slim v3](https://github.com/slimphp/Slim) | ![](https://img.shields.io/packagist/dt/slim/slim.svg) |
-| [Splash](http://mouf-php.com/packages/mouf/mvc.splash-common/version/8.0-dev/README.md) | ![](https://img.shields.io/packagist/dt/mouf/mvc.splash-common.svg) |
-| [Woohoo Labs. Harmony](https://github.com/woohoolabs/harmony): a flexible micro-framework | ![](https://img.shields.io/packagist/dt/woohoolabs/harmony.svg) |
-| [zend-expressive](https://github.com/zendframework/zend-expressive) | ![](https://img.shields.io/packagist/dt/zendframework/zend-expressive.svg) |
-
-
-## Workflow
-
-Everyone is welcome to join and contribute.
-
-The general workflow looks like this:
-
-1. Someone opens a discussion (GitHub issue) to suggest an interface
-1. Feedback is gathered
-1. The interface is added to a development branch
-1. We release alpha versions so that the interface can be experimented with
-1. Discussions and edits ensue until the interface is deemed stable by a general consensus
-1. A new minor version of the package is released
-
-We try to not break BC by creating new interfaces instead of editing existing ones.
-
-While we currently work on interfaces, we are open to anything that might help towards interoperability, may that
-be code, best practices, etc.
diff --git a/vendor/container-interop/container-interop/composer.json b/vendor/container-interop/container-interop/composer.json
deleted file mode 100644
index 855f76672..000000000
--- a/vendor/container-interop/container-interop/composer.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "container-interop/container-interop",
- "type": "library",
- "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
- "homepage": "https://github.com/container-interop/container-interop",
- "license": "MIT",
- "autoload": {
- "psr-4": {
- "Interop\\Container\\": "src/Interop/Container/"
- }
- },
- "require": {
- "psr/container": "^1.0"
- }
-}
diff --git a/vendor/container-interop/container-interop/docs/ContainerInterface-meta.md b/vendor/container-interop/container-interop/docs/ContainerInterface-meta.md
deleted file mode 100644
index 59f3d5599..000000000
--- a/vendor/container-interop/container-interop/docs/ContainerInterface-meta.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# ContainerInterface Meta Document
-
-## Introduction
-
-This document describes the process and discussions that lead to the `ContainerInterface`.
-Its goal is to explain the reasons behind each decision.
-
-## Goal
-
-The goal set by `ContainerInterface` is to standardize how frameworks and libraries make use of a
-container to obtain objects and parameters.
-
-By standardizing such a behavior, frameworks and libraries using the `ContainerInterface`
-could work with any compatible container.
-That would allow end users to choose their own container based on their own preferences.
-
-It is important to distinguish the two usages of a container:
-
-- configuring entries
-- fetching entries
-
-Most of the time, those two sides are not used by the same party.
-While it is often end users who tend to configure entries, it is generally the framework that fetch
-entries to build the application.
-
-This is why this interface focuses only on how entries can be fetched from a container.
-
-## Interface name
-
-The interface name has been thoroughly discussed and was decided by a vote.
-
-The list of options considered with their respective votes are:
-
-- `ContainerInterface`: +8
-- `ProviderInterface`: +2
-- `LocatorInterface`: 0
-- `ReadableContainerInterface`: -5
-- `ServiceLocatorInterface`: -6
-- `ObjectFactory`: -6
-- `ObjectStore`: -8
-- `ConsumerInterface`: -9
-
-[Full results of the vote](https://github.com/container-interop/container-interop/wiki/%231-interface-name:-Vote)
-
-The complete discussion can be read in [the issue #1](https://github.com/container-interop/container-interop/issues/1).
-
-## Interface methods
-
-The choice of which methods the interface would contain was made after a statistical analysis of existing containers.
-The results of this analysis are available [in this document](https://gist.github.com/mnapoli/6159681).
-
-The summary of the analysis showed that:
-
-- all containers offer a method to get an entry by its id
-- a large majority name such method `get()`
-- for all containers, the `get()` method has 1 mandatory parameter of type string
-- some containers have an optional additional argument for `get()`, but it doesn't have the same purpose between containers
-- a large majority of the containers offer a method to test if it can return an entry by its id
-- a majority name such method `has()`
-- for all containers offering `has()`, the method has exactly 1 parameter of type string
-- a large majority of the containers throw an exception rather than returning null when an entry is not found in `get()`
-- a large majority of the containers don't implement `ArrayAccess`
-
-The question of whether to include methods to define entries has been discussed in
-[issue #1](https://github.com/container-interop/container-interop/issues/1).
-It has been judged that such methods do not belong in the interface described here because it is out of its scope
-(see the "Goal" section).
-
-As a result, the `ContainerInterface` contains two methods:
-
-- `get()`, returning anything, with one mandatory string parameter. Should throw an exception if the entry is not found.
-- `has()`, returning a boolean, with one mandatory string parameter.
-
-### Number of parameters in `get()` method
-
-While `ContainerInterface` only defines one mandatory parameter in `get()`, it is not incompatible with
-existing containers that have additional optional parameters. PHP allows an implementation to offer more parameters
-as long as they are optional, because the implementation *does* satisfy the interface.
-
-This issue has been discussed in [issue #6](https://github.com/container-interop/container-interop/issues/6).
-
-### Type of the `$id` parameter
-
-The type of the `$id` parameter in `get()` and `has()` has been discussed in
-[issue #6](https://github.com/container-interop/container-interop/issues/6).
-While `string` is used in all the containers that were analyzed, it was suggested that allowing
-anything (such as objects) could allow containers to offer a more advanced query API.
-
-An example given was to use the container as an object builder. The `$id` parameter would then be an
-object that would describe how to create an instance.
-
-The conclusion of the discussion was that this was beyond the scope of getting entries from a container without
-knowing how the container provided them, and it was more fit for a factory.
-
-## Contributors
-
-Are listed here all people that contributed in the discussions or votes, by alphabetical order:
-
-- [Amy Stephen](https://github.com/AmyStephen)
-- [David Négrier](https://github.com/moufmouf)
-- [Don Gilbert](https://github.com/dongilbert)
-- [Jason Judge](https://github.com/judgej)
-- [Jeremy Lindblom](https://github.com/jeremeamia)
-- [Marco Pivetta](https://github.com/Ocramius)
-- [Matthieu Napoli](https://github.com/mnapoli)
-- [Paul M. Jones](https://github.com/pmjones)
-- [Stephan Hochdörfer](https://github.com/shochdoerfer)
-- [Taylor Otwell](https://github.com/taylorotwell)
-
-## Relevant links
-
-- [`ContainerInterface.php`](https://github.com/container-interop/container-interop/blob/master/src/Interop/Container/ContainerInterface.php)
-- [List of all issues](https://github.com/container-interop/container-interop/issues?labels=ContainerInterface&milestone=&page=1&state=closed)
-- [Vote for the interface name](https://github.com/container-interop/container-interop/wiki/%231-interface-name:-Vote)
diff --git a/vendor/container-interop/container-interop/docs/ContainerInterface.md b/vendor/container-interop/container-interop/docs/ContainerInterface.md
deleted file mode 100644
index bda973d6f..000000000
--- a/vendor/container-interop/container-interop/docs/ContainerInterface.md
+++ /dev/null
@@ -1,158 +0,0 @@
-Container interface
-===================
-
-This document describes a common interface for dependency injection containers.
-
-The goal set by `ContainerInterface` is to standardize how frameworks and libraries make use of a
-container to obtain objects and parameters (called *entries* in the rest of this document).
-
-The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
-"SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
-interpreted as described in [RFC 2119][].
-
-The word `implementor` in this document is to be interpreted as someone
-implementing the `ContainerInterface` in a dependency injection-related library or framework.
-Users of dependency injections containers (DIC) are referred to as `user`.
-
-[RFC 2119]: http://tools.ietf.org/html/rfc2119
-
-1. Specification
------------------
-
-### 1.1 Basics
-
-- The `Interop\Container\ContainerInterface` exposes two methods : `get` and `has`.
-
-- `get` takes one mandatory parameter: an entry identifier. It MUST be a string.
- A call to `get` can return anything (a *mixed* value), or throws an exception if the identifier
- is not known to the container. Two successive calls to `get` with the same
- identifier SHOULD return the same value. However, depending on the `implementor`
- design and/or `user` configuration, different values might be returned, so
- `user` SHOULD NOT rely on getting the same value on 2 successive calls.
- While `ContainerInterface` only defines one mandatory parameter in `get()`, implementations
- MAY accept additional optional parameters.
-
-- `has` takes one unique parameter: an entry identifier. It MUST return `true`
- if an entry identifier is known to the container and `false` if it is not.
- `has($id)` returning true does not mean that `get($id)` will not throw an exception.
- It does however mean that `get($id)` will not throw a `NotFoundException`.
-
-### 1.2 Exceptions
-
-Exceptions directly thrown by the container MUST implement the
-[`Interop\Container\Exception\ContainerException`](../src/Interop/Container/Exception/ContainerException.php).
-
-A call to the `get` method with a non-existing id SHOULD throw a
-[`Interop\Container\Exception\NotFoundException`](../src/Interop/Container/Exception/NotFoundException.php).
-
-### 1.3 Additional features
-
-This section describes additional features that MAY be added to a container. Containers are not
-required to implement these features to respect the ContainerInterface.
-
-#### 1.3.1 Delegate lookup feature
-
-The goal of the *delegate lookup* feature is to allow several containers to share entries.
-Containers implementing this feature can perform dependency lookups in other containers.
-
-Containers implementing this feature will offer a greater lever of interoperability
-with other containers. Implementation of this feature is therefore RECOMMENDED.
-
-A container implementing this feature:
-
-- MUST implement the `ContainerInterface`
-- MUST provide a way to register a delegate container (using a constructor parameter, or a setter,
- or any possible way). The delegate container MUST implement the `ContainerInterface`.
-
-When a container is configured to use a delegate container for dependencies:
-
-- Calls to the `get` method should only return an entry if the entry is part of the container.
- If the entry is not part of the container, an exception should be thrown
- (as requested by the `ContainerInterface`).
-- Calls to the `has` method should only return `true` if the entry is part of the container.
- If the entry is not part of the container, `false` should be returned.
-- If the fetched entry has dependencies, **instead** of performing
- the dependency lookup in the container, the lookup is performed on the *delegate container*.
-
-Important! By default, the lookup SHOULD be performed on the delegate container **only**, not on the container itself.
-
-It is however allowed for containers to provide exception cases for special entries, and a way to lookup
-into the same container (or another container) instead of the delegate container.
-
-2. Package
-----------
-
-The interfaces and classes described as well as relevant exception are provided as part of the
-[container-interop/container-interop](https://packagist.org/packages/container-interop/container-interop) package.
-
-3. `Interop\Container\ContainerInterface`
------------------------------------------
-
-```php
-setParentContainer($this);
- }
- }
- ...
- }
-}
-
-```
-
-**Cons:**
-
-Cons have been extensively discussed [here](https://github.com/container-interop/container-interop/pull/8#issuecomment-51721777).
-Basically, forcing a setter into an interface is a bad idea. Setters are similar to constructor arguments,
-and it's a bad idea to standardize a constructor: how the delegate container is configured into a container is an implementation detail. This outweights the benefits of the interface.
-
-### 4.4 Alternative: no exception case for delegate lookups
-
-Originally, the proposed wording for delegate lookup calls was:
-
-> Important! The lookup MUST be performed on the delegate container **only**, not on the container itself.
-
-This was later replaced by:
-
-> Important! By default, the lookup SHOULD be performed on the delegate container **only**, not on the container itself.
->
-> It is however allowed for containers to provide exception cases for special entries, and a way to lookup
-> into the same container (or another container) instead of the delegate container.
-
-Exception cases have been allowed to avoid breaking dependencies with some services that must be provided
-by the container (on @njasm proposal). This was proposed here: https://github.com/container-interop/container-interop/pull/20#issuecomment-56597235
-
-### 4.5 Alternative: having one of the containers act as the composite container
-
-In real-life scenarios, we usually have a big framework (Symfony 2, Zend Framework 2, etc...) and we want to
-add another DI container to this container. Most of the time, the "big" framework will be responsible for
-creating the controller's instances, using it's own DI container. Until *container-interop* is fully adopted,
-the "big" framework will not be aware of the existence of a composite container that it should use instead
-of its own container.
-
-For this real-life use cases, @mnapoli and @moufmouf proposed to extend the "big" framework's DI container
-to make it act as a composite container.
-
-This has been discussed [here](https://github.com/container-interop/container-interop/pull/8#issuecomment-40367194)
-and [here](http://mouf-php.com/container-interop-whats-next#solution4).
-
-This was implemented in Symfony 2 using:
-
-- [interop.symfony.di](https://github.com/thecodingmachine/interop.symfony.di/tree/v0.1.0)
-- [framework interop](https://github.com/mnapoli/framework-interop/)
-
-This was implemented in Silex using:
-
-- [interop.silex.di](https://github.com/thecodingmachine/interop.silex.di)
-
-Having a container act as the composite container is not part of the delegate lookup standard because it is
-simply a temporary design pattern used to make existing frameworks that do not support yet ContainerInterop
-play nice with other DI containers.
-
-
-5. Implementations
-------------------
-
-The following projects already implement the delegate lookup feature:
-
-- [Mouf](http://mouf-php.com), through the [`setDelegateLookupContainer` method](https://github.com/thecodingmachine/mouf/blob/2.0/src/Mouf/MoufManager.php#L2120)
-- [PHP-DI](http://php-di.org/), through the [`$wrapperContainer` parameter of the constructor](https://github.com/mnapoli/PHP-DI/blob/master/src/DI/Container.php#L72)
-- [pimple-interop](https://github.com/moufmouf/pimple-interop), through the [`$container` parameter of the constructor](https://github.com/moufmouf/pimple-interop/blob/master/src/Interop/Container/Pimple/PimpleInterop.php#L62)
-
-6. People
----------
-
-Are listed here all people that contributed in the discussions, by alphabetical order:
-
-- [Alexandru Pătrănescu](https://github.com/drealecs)
-- [Ben Peachey](https://github.com/potherca)
-- [David Négrier](https://github.com/moufmouf)
-- [Jeremy Lindblom](https://github.com/jeremeamia)
-- [Marco Pivetta](https://github.com/Ocramius)
-- [Matthieu Napoli](https://github.com/mnapoli)
-- [Nelson J Morais](https://github.com/njasm)
-- [Phil Sturgeon](https://github.com/philsturgeon)
-- [Stephan Hochdörfer](https://github.com/shochdoerfer)
-
-7. Relevant Links
------------------
-
-_**Note:** Order descending chronologically._
-
-- [Pull request on the delegate lookup feature](https://github.com/container-interop/container-interop/pull/20)
-- [Pull request on the interface idea](https://github.com/container-interop/container-interop/pull/8)
-- [Original article exposing the delegate lookup idea along many others](http://mouf-php.com/container-interop-whats-next)
-
diff --git a/vendor/container-interop/container-interop/docs/Delegate-lookup.md b/vendor/container-interop/container-interop/docs/Delegate-lookup.md
deleted file mode 100644
index f64a8f785..000000000
--- a/vendor/container-interop/container-interop/docs/Delegate-lookup.md
+++ /dev/null
@@ -1,60 +0,0 @@
-Delegate lookup feature
-=======================
-
-This document describes a standard for dependency injection containers.
-
-The goal set by the *delegate lookup* feature is to allow several containers to share entries.
-Containers implementing this feature can perform dependency lookups in other containers.
-
-Containers implementing this feature will offer a greater lever of interoperability
-with other containers. Implementation of this feature is therefore RECOMMENDED.
-
-The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
-"SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
-interpreted as described in [RFC 2119][].
-
-The word `implementor` in this document is to be interpreted as someone
-implementing the delegate lookup feature in a dependency injection-related library or framework.
-Users of dependency injections containers (DIC) are referred to as `user`.
-
-[RFC 2119]: http://tools.ietf.org/html/rfc2119
-
-1. Vocabulary
--------------
-
-In a dependency injection container, the container is used to fetch entries.
-Entries can have dependencies on other entries. Usually, these other entries are fetched by the container.
-
-The *delegate lookup* feature is the ability for a container to fetch dependencies in
-another container. In the rest of the document, the word "container" will reference the container
-implemented by the implementor. The word "delegate container" will reference the container we are
-fetching the dependencies from.
-
-2. Specification
-----------------
-
-A container implementing the *delegate lookup* feature:
-
-- MUST implement the [`ContainerInterface`](ContainerInterface.md)
-- MUST provide a way to register a delegate container (using a constructor parameter, or a setter,
- or any possible way). The delegate container MUST implement the [`ContainerInterface`](ContainerInterface.md).
-
-When a container is configured to use a delegate container for dependencies:
-
-- Calls to the `get` method should only return an entry if the entry is part of the container.
- If the entry is not part of the container, an exception should be thrown
- (as requested by the [`ContainerInterface`](ContainerInterface.md)).
-- Calls to the `has` method should only return `true` if the entry is part of the container.
- If the entry is not part of the container, `false` should be returned.
-- If the fetched entry has dependencies, **instead** of performing
- the dependency lookup in the container, the lookup is performed on the *delegate container*.
-
-Important: By default, the dependency lookups SHOULD be performed on the delegate container **only**, not on the container itself.
-
-It is however allowed for containers to provide exception cases for special entries, and a way to lookup
-into the same container (or another container) instead of the delegate container.
-
-3. Package / Interface
-----------------------
-
-This feature is not tied to any code, interface or package.
diff --git a/vendor/container-interop/container-interop/docs/images/interoperating_containers.png b/vendor/container-interop/container-interop/docs/images/interoperating_containers.png
deleted file mode 100644
index 1d3fdd0dd..000000000
Binary files a/vendor/container-interop/container-interop/docs/images/interoperating_containers.png and /dev/null differ
diff --git a/vendor/container-interop/container-interop/docs/images/priority.png b/vendor/container-interop/container-interop/docs/images/priority.png
deleted file mode 100644
index d02cb7d1f..000000000
Binary files a/vendor/container-interop/container-interop/docs/images/priority.png and /dev/null differ
diff --git a/vendor/container-interop/container-interop/docs/images/side_by_side_containers.png b/vendor/container-interop/container-interop/docs/images/side_by_side_containers.png
deleted file mode 100644
index 87884bc29..000000000
Binary files a/vendor/container-interop/container-interop/docs/images/side_by_side_containers.png and /dev/null differ
diff --git a/vendor/container-interop/container-interop/src/Interop/Container/ContainerInterface.php b/vendor/container-interop/container-interop/src/Interop/Container/ContainerInterface.php
deleted file mode 100644
index a75468f6a..000000000
--- a/vendor/container-interop/container-interop/src/Interop/Container/ContainerInterface.php
+++ /dev/null
@@ -1,15 +0,0 @@
-=5.3.0",
- "composer-plugin-api": "^1.0"
- },
- "require-dev": {
- "composer/composer": "~1.0",
- "phpunit/phpunit": "~4.6"
- },
- "autoload": {
- "psr-4": {"cweagans\\Composer\\": "src"}
- },
- "autoload-dev": {
- "psr-4": {"cweagans\\Composer\\Tests\\": "tests"}
- }
-}
diff --git a/vendor/cweagans/composer-patches/composer.lock b/vendor/cweagans/composer-patches/composer.lock
deleted file mode 100644
index 2ca41b42d..000000000
--- a/vendor/cweagans/composer-patches/composer.lock
+++ /dev/null
@@ -1,1564 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
- "This file is @generated automatically"
- ],
- "hash": "a2cd6826c202b7ebefe3050efc2a7b7f",
- "content-hash": "0ed9361502c0f5f22a5b440c16640193",
- "packages": [],
- "packages-dev": [
- {
- "name": "composer/composer",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/composer.git",
- "reference": "a54f84f05f915c6d42bed94de0cdcb4406a4707b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/composer/zipball/f2d606ae0c705907d8bfa1c6f884bced1255b827",
- "reference": "a54f84f05f915c6d42bed94de0cdcb4406a4707b",
- "shasum": ""
- },
- "require": {
- "composer/semver": "^1.0",
- "composer/spdx-licenses": "^1.0",
- "justinrainbow/json-schema": "^1.4.4",
- "php": ">=5.3.2",
- "seld/cli-prompt": "~1.0",
- "seld/jsonlint": "~1.0",
- "seld/phar-utils": "~1.0",
- "symfony/console": "~2.5",
- "symfony/filesystem": "~2.5",
- "symfony/finder": "~2.2",
- "symfony/process": "~2.1"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5|^5.0.5",
- "phpunit/phpunit-mock-objects": "2.3.0|~3.0"
- },
- "suggest": {
- "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
- "ext-zip": "Enabling the zip extension allows you to unzip archives, and allows gzip compression of all internet traffic"
- },
- "bin": [
- "bin/composer"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Composer": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.",
- "homepage": "https://getcomposer.org/",
- "keywords": [
- "autoload",
- "dependency",
- "package"
- ],
- "time": "2015-10-13 13:09:04"
- },
- {
- "name": "composer/semver",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/semver.git",
- "reference": "d0e1ccc6d44ab318b758d709e19176037da6b1ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/d0e1ccc6d44ab318b758d709e19176037da6b1ba",
- "reference": "d0e1ccc6d44ab318b758d709e19176037da6b1ba",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5",
- "phpunit/phpunit-mock-objects": "~2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\Semver\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com"
- },
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Semver library that offers utilities, version constraint parsing and validation.",
- "keywords": [
- "semantic",
- "semver",
- "validation",
- "versioning"
- ],
- "time": "2015-09-21 09:42:36"
- },
- {
- "name": "composer/spdx-licenses",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/spdx-licenses.git",
- "reference": "b2dbc76d1c3f81f33857cdd49c0be6ce7b87897d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/022fc25ca664f612b1e7007e0d87642ef489f000",
- "reference": "b2dbc76d1c3f81f33857cdd49c0be6ce7b87897d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5",
- "phpunit/phpunit-mock-objects": "~2.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\Spdx\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "SPDX licenses list and validation library.",
- "keywords": [
- "license",
- "spdx",
- "validator"
- ],
- "time": "2015-10-05 11:33:06"
- },
- {
- "name": "doctrine/instantiator",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14 21:17:01"
- },
- {
- "name": "justinrainbow/json-schema",
- "version": "1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/justinrainbow/json-schema.git",
- "reference": "a4bee9f4b344b66e0a0d96c7afae1e92edf385fe"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/a4bee9f4b344b66e0a0d96c7afae1e92edf385fe",
- "reference": "a4bee9f4b344b66e0a0d96c7afae1e92edf385fe",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "json-schema/json-schema-test-suite": "1.1.0",
- "phpdocumentor/phpdocumentor": "~2",
- "phpunit/phpunit": "~3.7"
- },
- "bin": [
- "bin/validate-json"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "JsonSchema\\": "src/JsonSchema/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Bruno Prieto Reis",
- "email": "bruno.p.reis@gmail.com"
- },
- {
- "name": "Justin Rainbow",
- "email": "justin.rainbow@gmail.com"
- },
- {
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
- },
- {
- "name": "Robert Schönthal",
- "email": "seroscho@googlemail.com"
- }
- ],
- "description": "A library to validate a json schema.",
- "homepage": "https://github.com/justinrainbow/json-schema",
- "keywords": [
- "json",
- "schema"
- ],
- "time": "2015-09-08 22:28:04"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "2.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",
- "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "dflydev/markdown": "~1.0",
- "erusev/parsedown": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2015-02-03 12:10:50"
- },
- {
- "name": "phpspec/prophecy",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4f9b1eaf0a7da77c362f8d91cbc68ab1f4718d62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b02221e42163be673f9b44a0bc92a8b4907a7c6d",
- "reference": "4f9b1eaf0a7da77c362f8d91cbc68ab1f4718d62",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "phpdocumentor/reflection-docblock": "~2.0",
- "sebastian/comparator": "~1.1"
- },
- "require-dev": {
- "phpspec/phpspec": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.5.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2015-09-22 14:49:23"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2015-10-06 15:47:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
- "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2015-06-21 13:08:43"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21 13:50:34"
- },
- {
- "name": "phpunit/php-timer",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
- "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2015-06-21 08:01:12"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "cab6c6fefee93d7b7c3a01292a0fe0884ea66644"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/cab6c6fefee93d7b7c3a01292a0fe0884ea66644",
- "reference": "cab6c6fefee93d7b7c3a01292a0fe0884ea66644",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2015-09-23 14:46:55"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.8.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "be067d6105286b74272facefc2697038f8807b77"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/264188ddf4d3586c80ea615f8ec8eaea34e652a1",
- "reference": "be067d6105286b74272facefc2697038f8807b77",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": ">=1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.1",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.1|~3.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2015-10-14 13:49:40"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2015-10-02 06:51:40"
- },
- {
- "name": "sebastian/comparator",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
- "reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2015-07-26 15:48:44"
- },
- {
- "name": "sebastian/diff",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "6899b3e33bfbd386d88b5eea5f65f563e8793051"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e",
- "reference": "6899b3e33bfbd386d88b5eea5f65f563e8793051",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "http://www.github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2015-06-22 14:15:55"
- },
- {
- "name": "sebastian/environment",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf",
- "reference": "6324c907ce7a52478eeeaede764f48733ef5ae44",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2015-08-03 06:14:51"
- },
- {
- "name": "sebastian/exporter",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "f88f8936517d54ae6d589166810877fb2015d0a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f88f8936517d54ae6d589166810877fb2015d0a2",
- "reference": "f88f8936517d54ae6d589166810877fb2015d0a2",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2015-08-09 04:23:41"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12 03:26:01"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "994d4a811bafe801fb06dccbee797863ba2792ba"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/7ff5b1b3dcc55b8ab8ae61ef99d4730940856ee7",
- "reference": "994d4a811bafe801fb06dccbee797863ba2792ba",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2015-06-21 08:04:50"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-06-21 13:59:46"
- },
- {
- "name": "seld/cli-prompt",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/cli-prompt.git",
- "reference": "fe114c7a6ac5cb0ce76932ae4017024d9842a49c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/cli-prompt/zipball/b27db1514f7d7bb7a366ad95d4eb2b17140a0691",
- "reference": "fe114c7a6ac5cb0ce76932ae4017024d9842a49c",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Seld\\CliPrompt\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be"
- }
- ],
- "description": "Allows you to prompt for user input on the command line, and optionally hide the characters they type",
- "keywords": [
- "cli",
- "console",
- "hidden",
- "input",
- "prompt"
- ],
- "time": "2015-04-30 20:24:49"
- },
- {
- "name": "seld/jsonlint",
- "version": "1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/jsonlint.git",
- "reference": "863ae85c6d3ef60ca49cb12bd051c4a0648c40c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/863ae85c6d3ef60ca49cb12bd051c4a0648c40c4",
- "reference": "863ae85c6d3ef60ca49cb12bd051c4a0648c40c4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "bin": [
- "bin/jsonlint"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Seld\\JsonLint\\": "src/Seld/JsonLint/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "JSON Linter",
- "keywords": [
- "json",
- "linter",
- "parser",
- "validator"
- ],
- "time": "2015-01-04 21:18:15"
- },
- {
- "name": "seld/phar-utils",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/phar-utils.git",
- "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/7009b5139491975ef6486545a39f3e6dad5ac30a",
- "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Seld\\PharUtils\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be"
- }
- ],
- "description": "PHAR file format utilities, for when PHP phars you up",
- "keywords": [
- "phra"
- ],
- "time": "2015-10-13 18:44:15"
- },
- {
- "name": "symfony/console",
- "version": "2.8.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "89a795226477f66745e8ea10415e769304114920"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/56cc5caf051189720b8de974e4746090aaa10d44",
- "reference": "89a795226477f66745e8ea10415e769304114920",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.1|~3.0.0",
- "symfony/process": "~2.1|~3.0.0"
- },
- "suggest": {
- "psr/log": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-12 10:31:17"
- },
- {
- "name": "symfony/filesystem",
- "version": "2.8.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "fc3fe52fef85e1f3e7775ffad92539e16c20e0af"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/65cb36b6539b1d446527d60457248f30d045464d",
- "reference": "fc3fe52fef85e1f3e7775ffad92539e16c20e0af",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-11 08:29:26"
- },
- {
- "name": "symfony/finder",
- "version": "2.8.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "dcd5aaba34ca332abb7f33ec554ebd4d829cb202"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/877bb4b16ea573cc8c024e9590888fcf7eb7e0f7",
- "reference": "dcd5aaba34ca332abb7f33ec554ebd4d829cb202",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-11 08:29:26"
- },
- {
- "name": "symfony/process",
- "version": "2.8.x-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "4e1daf58b375ea7c506d525dc7801df1c9a6ebbd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/7dedd5b60550f33dca16dd7e94ef8aca8b67bbfe",
- "reference": "4e1daf58b375ea7c506d525dc7801df1c9a6ebbd",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-11 08:29:26"
- },
- {
- "name": "symfony/yaml",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "8d32eb597b531eb915b4fee3dc582ade5ae1fe6a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/ab0314f7544d600ea7917f02cdad774358b81113",
- "reference": "8d32eb597b531eb915b4fee3dc582ade5ae1fe6a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-13 16:01:35"
- }
- ],
- "aliases": [],
- "minimum-stability": "dev",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.3.0"
- },
- "platform-dev": []
-}
diff --git a/vendor/cweagans/composer-patches/phpunit.xml.dist b/vendor/cweagans/composer-patches/phpunit.xml.dist
deleted file mode 100644
index 62409b3b4..000000000
--- a/vendor/cweagans/composer-patches/phpunit.xml.dist
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
- ./tests/
-
-
-
-
-
- src/
-
-
- vendor/
-
-
-
diff --git a/vendor/cweagans/composer-patches/src/PatchEvent.php b/vendor/cweagans/composer-patches/src/PatchEvent.php
deleted file mode 100644
index 31d36f89f..000000000
--- a/vendor/cweagans/composer-patches/src/PatchEvent.php
+++ /dev/null
@@ -1,70 +0,0 @@
-package = $package;
- $this->url = $url;
- $this->description = $description;
- }
-
- /**
- * Returns the package that is patched.
- *
- * @return PackageInterface
- */
- public function getPackage() {
- return $this->package;
- }
-
- /**
- * Returns the url of the patch.
- *
- * @return string
- */
- public function getUrl() {
- return $this->url;
- }
-
- /**
- * Returns the description of the patch.
- *
- * @return string
- */
- public function getDescription() {
- return $this->description;
- }
-
-}
diff --git a/vendor/cweagans/composer-patches/src/PatchEvents.php b/vendor/cweagans/composer-patches/src/PatchEvents.php
deleted file mode 100644
index ecee94768..000000000
--- a/vendor/cweagans/composer-patches/src/PatchEvents.php
+++ /dev/null
@@ -1,30 +0,0 @@
-composer = $composer;
- $this->io = $io;
- $this->eventDispatcher = $composer->getEventDispatcher();
- $this->executor = new ProcessExecutor($this->io);
- $this->patches = array();
- $this->installedPatches = array();
- }
-
- /**
- * Returns an array of event names this subscriber wants to listen to.
- */
- public static function getSubscribedEvents() {
- return array(
- ScriptEvents::PRE_INSTALL_CMD => array('checkPatches'),
- ScriptEvents::PRE_UPDATE_CMD => array('checkPatches'),
- PackageEvents::PRE_PACKAGE_INSTALL => array('gatherPatches'),
- PackageEvents::PRE_PACKAGE_UPDATE => array('gatherPatches'),
- // The following is a higher weight for compatibility with
- // https://github.com/AydinHassan/magento-core-composer-installer and more generally for compatibility with
- // every Composer plugin which deploys downloaded packages to other locations.
- // In such cases you want that those plugins deploy patched files so they have to run after
- // the "composer-patches" plugin.
- // @see: https://github.com/cweagans/composer-patches/pull/153
- PackageEvents::POST_PACKAGE_INSTALL => array('postInstall', 10),
- PackageEvents::POST_PACKAGE_UPDATE => array('postInstall', 10),
- );
- }
-
- /**
- * Before running composer install,
- * @param Event $event
- */
- public function checkPatches(Event $event) {
- if (!$this->isPatchingEnabled()) {
- return;
- }
-
- try {
- $repositoryManager = $this->composer->getRepositoryManager();
- $localRepository = $repositoryManager->getLocalRepository();
- $installationManager = $this->composer->getInstallationManager();
- $packages = $localRepository->getPackages();
-
- $extra = $this->composer->getPackage()->getExtra();
- $patches_ignore = isset($extra['patches-ignore']) ? $extra['patches-ignore'] : array();
-
- $tmp_patches = $this->grabPatches();
- foreach ($packages as $package) {
- $extra = $package->getExtra();
- if (isset($extra['patches'])) {
- if (isset($patches_ignore[$package->getName()])) {
- foreach ($patches_ignore[$package->getName()] as $package_name => $patches) {
- if (isset($extra['patches'][$package_name])) {
- $extra['patches'][$package_name] = array_diff($extra['patches'][$package_name], $patches);
- }
- }
- }
- $this->installedPatches[$package->getName()] = $extra['patches'];
- }
- $patches = isset($extra['patches']) ? $extra['patches'] : array();
- $tmp_patches = array_merge_recursive($tmp_patches, $patches);
- }
-
- if ($tmp_patches == FALSE) {
- $this->io->write('No patches supplied. ');
- return;
- }
-
- // Remove packages for which the patch set has changed.
- foreach ($packages as $package) {
- if (!($package instanceof AliasPackage)) {
- $package_name = $package->getName();
- $extra = $package->getExtra();
- $has_patches = isset($tmp_patches[$package_name]);
- $has_applied_patches = isset($extra['patches_applied']);
- if (($has_patches && !$has_applied_patches)
- || (!$has_patches && $has_applied_patches)
- || ($has_patches && $has_applied_patches && $tmp_patches[$package_name] !== $extra['patches_applied'])) {
- $uninstallOperation = new UninstallOperation($package, 'Removing package so it can be re-installed and re-patched.');
- $this->io->write('Removing package ' . $package_name . ' so that it can be re-installed and re-patched. ');
- $installationManager->uninstall($localRepository, $uninstallOperation);
- }
- }
- }
- }
- // If the Locker isn't available, then we don't need to do this.
- // It's the first time packages have been installed.
- catch (\LogicException $e) {
- return;
- }
- }
-
- /**
- * Gather patches from dependencies and store them for later use.
- *
- * @param PackageEvent $event
- */
- public function gatherPatches(PackageEvent $event) {
- // If we've already done this, then don't do it again.
- if (isset($this->patches['_patchesGathered'])) {
- $this->io->write('Patches already gathered. Skipping ', TRUE, IOInterface::VERBOSE);
- return;
- }
- // If patching has been disabled, bail out here.
- elseif (!$this->isPatchingEnabled()) {
- $this->io->write('Patching is disabled. Skipping. ', TRUE, IOInterface::VERBOSE);
- return;
- }
-
- $this->patches = $this->grabPatches();
- if (empty($this->patches)) {
- $this->io->write('No patches supplied. ');
- }
-
- $extra = $this->composer->getPackage()->getExtra();
- $patches_ignore = isset($extra['patches-ignore']) ? $extra['patches-ignore'] : array();
-
- // Now add all the patches from dependencies that will be installed.
- $operations = $event->getOperations();
- $this->io->write('Gathering patches for dependencies. This might take a minute. ');
- foreach ($operations as $operation) {
- if ($operation->getJobType() == 'install' || $operation->getJobType() == 'update') {
- $package = $this->getPackageFromOperation($operation);
- $extra = $package->getExtra();
- if (isset($extra['patches'])) {
- if (isset($patches_ignore[$package->getName()])) {
- foreach ($patches_ignore[$package->getName()] as $package_name => $patches) {
- if (isset($extra['patches'][$package_name])) {
- $extra['patches'][$package_name] = array_diff($extra['patches'][$package_name], $patches);
- }
- }
- }
- $this->patches = $this->arrayMergeRecursiveDistinct($this->patches, $extra['patches']);
- }
- // Unset installed patches for this package
- if(isset($this->installedPatches[$package->getName()])) {
- unset($this->installedPatches[$package->getName()]);
- }
- }
- }
-
- // Merge installed patches from dependencies that did not receive an update.
- foreach ($this->installedPatches as $patches) {
- $this->patches = array_merge_recursive($this->patches, $patches);
- }
-
- // If we're in verbose mode, list the projects we're going to patch.
- if ($this->io->isVerbose()) {
- foreach ($this->patches as $package => $patches) {
- $number = count($patches);
- $this->io->write('Found ' . $number . ' patches for ' . $package . '. ');
- }
- }
-
- // Make sure we don't gather patches again. Extra keys in $this->patches
- // won't hurt anything, so we'll just stash it there.
- $this->patches['_patchesGathered'] = TRUE;
- }
-
- /**
- * Get the patches from root composer or external file
- * @return Patches
- * @throws \Exception
- */
- public function grabPatches() {
- // First, try to get the patches from the root composer.json.
- $extra = $this->composer->getPackage()->getExtra();
- if (isset($extra['patches'])) {
- $this->io->write('Gathering patches for root package. ');
- $patches = $extra['patches'];
- return $patches;
- }
- // If it's not specified there, look for a patches-file definition.
- elseif (isset($extra['patches-file'])) {
- $this->io->write('Gathering patches from patch file. ');
- $patches = file_get_contents($extra['patches-file']);
- $patches = json_decode($patches, TRUE);
- $error = json_last_error();
- if ($error != 0) {
- switch ($error) {
- case JSON_ERROR_DEPTH:
- $msg = ' - Maximum stack depth exceeded';
- break;
- case JSON_ERROR_STATE_MISMATCH:
- $msg = ' - Underflow or the modes mismatch';
- break;
- case JSON_ERROR_CTRL_CHAR:
- $msg = ' - Unexpected control character found';
- break;
- case JSON_ERROR_SYNTAX:
- $msg = ' - Syntax error, malformed JSON';
- break;
- case JSON_ERROR_UTF8:
- $msg = ' - Malformed UTF-8 characters, possibly incorrectly encoded';
- break;
- default:
- $msg = ' - Unknown error';
- break;
- }
- throw new \Exception('There was an error in the supplied patches file:' . $msg);
- }
- if (isset($patches['patches'])) {
- $patches = $patches['patches'];
- return $patches;
- }
- elseif(!$patches) {
- throw new \Exception('There was an error in the supplied patch file');
- }
- }
- else {
- return array();
- }
- }
-
- /**
- * @param PackageEvent $event
- * @throws \Exception
- */
- public function postInstall(PackageEvent $event) {
-
- // Check if we should exit in failure.
- $extra = $this->composer->getPackage()->getExtra();
- $exitOnFailure = getenv('COMPOSER_EXIT_ON_PATCH_FAILURE') || !empty($extra['composer-exit-on-patch-failure']);
-
- // Get the package object for the current operation.
- $operation = $event->getOperation();
- /** @var PackageInterface $package */
- $package = $this->getPackageFromOperation($operation);
- $package_name = $package->getName();
-
- if (!isset($this->patches[$package_name])) {
- if ($this->io->isVerbose()) {
- $this->io->write('No patches found for ' . $package_name . '. ');
- }
- return;
- }
- $this->io->write(' - Applying patches for ' . $package_name . ' ');
-
- // Get the install path from the package object.
- $manager = $event->getComposer()->getInstallationManager();
- $install_path = $manager->getInstaller($package->getType())->getInstallPath($package);
-
- // Set up a downloader.
- $downloader = new RemoteFilesystem($this->io, $this->composer->getConfig());
-
- // Track applied patches in the package info in installed.json
- $localRepository = $this->composer->getRepositoryManager()->getLocalRepository();
- $localPackage = $localRepository->findPackage($package_name, $package->getVersion());
- $extra = $localPackage->getExtra();
- $extra['patches_applied'] = array();
-
- foreach ($this->patches[$package_name] as $description => $url) {
- $this->io->write(' ' . $url . ' (' . $description. ' )');
- try {
- $this->eventDispatcher->dispatch(NULL, new PatchEvent(PatchEvents::PRE_PATCH_APPLY, $package, $url, $description));
- $this->getAndApplyPatch($downloader, $install_path, $url, $package);
- $this->eventDispatcher->dispatch(NULL, new PatchEvent(PatchEvents::POST_PATCH_APPLY, $package, $url, $description));
- $extra['patches_applied'][$description] = $url;
- }
- catch (\Exception $e) {
- $this->io->write(' Could not apply patch! Skipping. The error was: ' . $e->getMessage() . ' ');
- if ($exitOnFailure) {
- throw new \Exception("Cannot apply patch $description ($url)!");
- }
- }
- }
- $localPackage->setExtra($extra);
-
- $this->io->write('');
- $this->writePatchReport($this->patches[$package_name], $install_path);
- }
-
- /**
- * Get a Package object from an OperationInterface object.
- *
- * @param OperationInterface $operation
- * @return PackageInterface
- * @throws \Exception
- */
- protected function getPackageFromOperation(OperationInterface $operation) {
- if ($operation instanceof InstallOperation) {
- $package = $operation->getPackage();
- }
- elseif ($operation instanceof UpdateOperation) {
- $package = $operation->getTargetPackage();
- }
- else {
- throw new \Exception('Unknown operation: ' . get_class($operation));
- }
-
- return $package;
- }
-
- /**
- * Apply a patch on code in the specified directory.
- *
- * @param RemoteFilesystem $downloader
- * @param $install_path
- * @param $patch_url
- * @param PackageInterface $package
- * @throws \Exception
- */
- protected function getAndApplyPatch(RemoteFilesystem $downloader, $install_path, $patch_url, PackageInterface $package) {
-
- // Local patch file.
- if (file_exists($patch_url)) {
- $filename = realpath($patch_url);
- }
- else {
- // Generate random (but not cryptographically so) filename.
- $filename = uniqid(sys_get_temp_dir().'/') . ".patch";
-
- // Download file from remote filesystem to this location.
- $hostname = parse_url($patch_url, PHP_URL_HOST);
- $downloader->copy($hostname, $patch_url, $filename, FALSE);
- }
-
- // The order here is intentional. p1 is most likely to apply with git apply.
- // p0 is next likely. p2 is extremely unlikely, but for some special cases,
- // it might be useful. p4 is useful for Magento 2 patches
- $patch_levels = array('-p1', '-p0', '-p2', '-p4');
-
- // Check for specified patch level for this package.
- if (!empty($this->composer->getPackage()->getExtra()['patchLevel'][$package->getName()])){
- $patch_levels = array($this->composer->getPackage()->getExtra()['patchLevel'][$package->getName()]);
- }
- // Attempt to apply with git apply.
- $patched = $this->applyPatchWithGit($install_path, $patch_levels, $filename);
-
- // In some rare cases, git will fail to apply a patch, fallback to using
- // the 'patch' command.
- if (!$patched) {
- foreach ($patch_levels as $patch_level) {
- // --no-backup-if-mismatch here is a hack that fixes some
- // differences between how patch works on windows and unix.
- if ($patched = $this->executeCommand("patch %s --no-backup-if-mismatch -d %s < %s", $patch_level, $install_path, $filename)) {
- break;
- }
- }
- }
-
- // Clean up the temporary patch file.
- if (isset($hostname)) {
- unlink($filename);
- }
- // If the patch *still* isn't applied, then give up and throw an Exception.
- // Otherwise, let the user know it worked.
- if (!$patched) {
- throw new \Exception("Cannot apply patch $patch_url");
- }
- }
-
- /**
- * Checks if the root package enables patching.
- *
- * @return bool
- * Whether patching is enabled. Defaults to TRUE.
- */
- protected function isPatchingEnabled() {
- $extra = $this->composer->getPackage()->getExtra();
-
- if (empty($extra['patches']) && empty($extra['patches-ignore']) && !isset($extra['patches-file'])) {
- // The root package has no patches of its own, so only allow patching if
- // it has specifically opted in.
- return isset($extra['enable-patching']) ? $extra['enable-patching'] : FALSE;
- }
- else {
- return TRUE;
- }
- }
-
- /**
- * Writes a patch report to the target directory.
- *
- * @param array $patches
- * @param string $directory
- */
- protected function writePatchReport($patches, $directory) {
- $output = "This file was automatically generated by Composer Patches (https://github.com/cweagans/composer-patches)\n";
- $output .= "Patches applied to this directory:\n\n";
- foreach ($patches as $description => $url) {
- $output .= $description . "\n";
- $output .= 'Source: ' . $url . "\n\n\n";
- }
- file_put_contents($directory . "/PATCHES.txt", $output);
- }
-
- /**
- * Executes a shell command with escaping.
- *
- * @param string $cmd
- * @return bool
- */
- protected function executeCommand($cmd) {
- // Shell-escape all arguments except the command.
- $args = func_get_args();
- foreach ($args as $index => $arg) {
- if ($index !== 0) {
- $args[$index] = escapeshellarg($arg);
- }
- }
-
- // And replace the arguments.
- $command = call_user_func_array('sprintf', $args);
- $output = '';
- if ($this->io->isVerbose()) {
- $this->io->write('' . $command . ' ');
- $io = $this->io;
- $output = function ($type, $data) use ($io) {
- if ($type == Process::ERR) {
- $io->write('' . $data . ' ');
- }
- else {
- $io->write('' . $data . ' ');
- }
- };
- }
- return ($this->executor->execute($command, $output) == 0);
- }
-
- /**
- * Recursively merge arrays without changing data types of values.
- *
- * Does not change the data types of the values in the arrays. Matching keys'
- * values in the second array overwrite those in the first array, as is the
- * case with array_merge.
- *
- * @param array $array1
- * The first array.
- * @param array $array2
- * The second array.
- * @return array
- * The merged array.
- *
- * @see http://php.net/manual/en/function.array-merge-recursive.php#92195
- */
- protected function arrayMergeRecursiveDistinct(array $array1, array $array2) {
- $merged = $array1;
-
- foreach ($array2 as $key => &$value) {
- if (is_array($value) && isset($merged[$key]) && is_array($merged[$key])) {
- $merged[$key] = $this->arrayMergeRecursiveDistinct($merged[$key], $value);
- }
- else {
- $merged[$key] = $value;
- }
- }
-
- return $merged;
- }
-
- /**
- * Attempts to apply a patch with git apply.
- *
- * @param $install_path
- * @param $patch_levels
- * @param $filename
- *
- * @return bool
- * TRUE if patch was applied, FALSE otherwise.
- */
- protected function applyPatchWithGit($install_path, $patch_levels, $filename) {
- // Do not use git apply unless the install path is itself a git repo
- // @see https://stackoverflow.com/a/27283285
- if (!is_dir($install_path . '/.git')) {
- return FALSE;
- }
-
- $patched = FALSE;
- foreach ($patch_levels as $patch_level) {
- if ($this->io->isVerbose()) {
- $comment = 'Testing ability to patch with git apply.';
- $comment .= ' This command may produce errors that can be safely ignored.';
- $this->io->write('' . $comment . ' ');
- }
- $checked = $this->executeCommand('git -C %s apply --check -v %s %s', $install_path, $patch_level, $filename);
- $output = $this->executor->getErrorOutput();
- if (substr($output, 0, 7) == 'Skipped') {
- // Git will indicate success but silently skip patches in some scenarios.
- //
- // @see https://github.com/cweagans/composer-patches/pull/165
- $checked = FALSE;
- }
- if ($checked) {
- // Apply the first successful style.
- $patched = $this->executeCommand('git -C %s apply %s %s', $install_path, $patch_level, $filename);
- break;
- }
- }
- return $patched;
- }
-
-}
diff --git a/vendor/cweagans/composer-patches/tests/PatchEventTest.php b/vendor/cweagans/composer-patches/tests/PatchEventTest.php
deleted file mode 100644
index 0f6adb7a3..000000000
--- a/vendor/cweagans/composer-patches/tests/PatchEventTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-assertEquals($event_name, $patch_event->getName());
- $this->assertEquals($package, $patch_event->getPackage());
- $this->assertEquals($url, $patch_event->getUrl());
- $this->assertEquals($description, $patch_event->getDescription());
- }
-
- public function patchEventDataProvider() {
- $prophecy = $this->prophesize('Composer\Package\PackageInterface');
- $package = $prophecy->reveal();
-
- return array(
- array(PatchEvents::PRE_PATCH_APPLY, $package, 'https://www.drupal.org', 'A test patch'),
- array(PatchEvents::POST_PATCH_APPLY, $package, 'https://www.drupal.org', 'A test patch'),
- );
- }
-
-}
diff --git a/vendor/dflydev/dot-access-configuration/.gitignore b/vendor/dflydev/dot-access-configuration/.gitignore
deleted file mode 100644
index 987e2a253..000000000
--- a/vendor/dflydev/dot-access-configuration/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-composer.lock
-vendor
diff --git a/vendor/dflydev/dot-access-configuration/.travis.yml b/vendor/dflydev/dot-access-configuration/.travis.yml
deleted file mode 100644
index c39d98b13..000000000
--- a/vendor/dflydev/dot-access-configuration/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
-
-before_script:
- - wget -nc http://getcomposer.org/composer.phar
- - php composer.phar install --dev
-
-script: phpunit --coverage-text --verbose
diff --git a/vendor/dflydev/dot-access-configuration/LICENSE b/vendor/dflydev/dot-access-configuration/LICENSE
deleted file mode 100644
index b6880d433..000000000
--- a/vendor/dflydev/dot-access-configuration/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2012 Dragonfly Development Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/vendor/dflydev/dot-access-configuration/README.md b/vendor/dflydev/dot-access-configuration/README.md
deleted file mode 100644
index bf387c68f..000000000
--- a/vendor/dflydev/dot-access-configuration/README.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# Dot Access Configuration
-
-Given a deep data structure representing a configuration, access
-configuration by dot notation.
-
-This library combines [dflydev/dot-access-data](https://github.com/dflydev/dflydev-dot-access-data)
-and [dflydev/placeholder-resolver](https://github.com/dflydev/dflydev-placeholder-resolver)
-to provide a complete configuration solution.
-
-## Requirements
-
- * PHP (5.3+)
- * [dflydev/dot-access-data](https://github.com/dflydev/dflydev-dot-access-data) (1.*)
- * [dflydev/placeholder-resolver](https://github.com/dflydev/dflydev-placeholder-resolver) (1.*)
- * [symfony/yaml](https://github.com/symfony/Yaml) (>2,<2.2) *(suggested)*
-
-## Usage
-
-Generally one will use an implementation of `ConfigurationBuilderInterface`
-to build `ConfigurationInterface` instances. For example, to build a Configuration
-out of a YAML file, one would use the `YamlFileConfigurationBuilder`:
-
-```php
-use Dflydev\DotAccessConfiguration\YamlFileConfigurationBuilder;
-
-$configurationBuilder = new YamlFileConfigurationBuilder('config/config.yml');
-$configuration = $configurationBuilder->build();
-```
-
-Once created, the Configuration instance behaves similarly to a Data
-instance from [dflydev/dot-access-data](https://github.com/dflydev/dflydev-dot-access-data).
-
-```php
-$configuration->set('a.b.c', 'ABC');
-$configuration->get('a.b.c');
-$configuration->set('a.b.e', array('A', 'B', 'C'));
-$configuration->append('a.b.e', 'D');
-```
-
-## Custom Configurations
-
-Configuration Builders use Configuration Factories and Placeholder Resolver
-Factories behind the scenes in order to build a working configuration.
-
-Under normal circumstances one should not need to do anything with the
-Placeholder Resolver Factory. However, one may wish to extend the
-default `Configuration` class or use an entirely different implementation
-altogether.
-
-In order to build instances of custom `ConfigurationInterface` implementations
-with the standard builders, one would need to implement
-`ConfigurationFactoryInterface` and inject it into any
-`ConfigurationBuilderInterface`.
-
-If a Configuration is declared as follows:
-```php
-namespace MyProject;
-
-use Dflydev\DotAccessConfiguration\Configuration;
-
-class MyConf extends Configuration
-{
- public function someSpecialMethod()
- {
- // Whatever you want here.
- }
-}
-```
-
-Create the following factory:
-```php
-namespace MyProject;
-
-use Dflydev\DotAccessConfiguration\ConfigurationFactoryInterface;
-
-class MyConfFactory implements ConfigurationFactoryInterface
-{
- /**
- * {@inheritdocs}
- */
- public function create()
- {
- return new MyConf;
- }
-}
-```
-
-To use the factory with any builder, inject it as follows:
-```php
-use Dflydev\DotAccessConfiguration\YamlFileConfigurationBuilder;
-use MyProject\MyConfFactory;
-
-$configurationBuilder = new YamlFileConfigurationBuilder('config/config.yml');
-
-// Inject your custom Configuration Factory
-$configurationBuilder->setConfigurationFactory(new MyConfFactory);
-
-// Will now build instances of MyConfFactory instead of
-// the standard Configuration implementation.
-$configuration = $configurationBuilder->build();
-```
-
-## License
-
-This library is licensed under the New BSD License - see the LICENSE file
-for details.
-
-## Community
-
-If you have questions or want to help out, join us in the
-[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.
diff --git a/vendor/dflydev/dot-access-configuration/composer.json b/vendor/dflydev/dot-access-configuration/composer.json
deleted file mode 100644
index 3a17157ce..000000000
--- a/vendor/dflydev/dot-access-configuration/composer.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "name": "dflydev/dot-access-configuration",
- "type": "library",
- "description": "Given a deep data structure representing a configuration, access configuration by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-configuration",
- "keywords": ["config", "configuration"],
- "license": "MIT",
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- }
- ],
- "require": {
- "php": ">=5.3.2",
- "dflydev/dot-access-data": "1.*",
- "dflydev/placeholder-resolver": "1.*"
- },
- "require-dev": {
- "symfony/yaml": "~2.1"
- },
- "suggest": {
- "symfony/yaml": "Required for using the YAML Configuration Builders"
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessConfiguration": "src"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/phpunit.xml.dist b/vendor/dflydev/dot-access-configuration/phpunit.xml.dist
deleted file mode 100644
index 10b42365c..000000000
--- a/vendor/dflydev/dot-access-configuration/phpunit.xml.dist
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- ./tests/Dflydev/DotAccessConfiguration
-
-
-
-
-
- ./src/Dflydev/DotAccessConfiguration/
-
-
-
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfiguration.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfiguration.php
deleted file mode 100644
index 1213dcf07..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfiguration.php
+++ /dev/null
@@ -1,188 +0,0 @@
-data()->get($key);
- }
-
- /**
- * {@inheritdocs}
- */
- public function get($key)
- {
- $value = $this->getRaw($key);
- if (is_object($value)) {
- return $value;
- }
- $this->resolveValues($value);
-
- return $value;
- }
-
- /**
- * {@inheritdocs}
- */
- public function set($key, $value = null)
- {
- $this->exportIsDirty = true;
-
- return $this->data()->set($key, $value);
- }
-
- /**
- * {@inheritdocs}
- */
- public function append($key, $value = null)
- {
- $this->exportIsDirty = true;
-
- return $this->data()->append($key, $value);
- }
-
- /**
- * {@inheritdocs}
- */
- public function exportRaw()
- {
- return $this->data()->export();
- }
-
- /**
- * {@inheritdocs}
- */
- public function export()
- {
- if ($this->exportIsDirty) {
- $this->resolvedExport = $this->data()->export();
- $this->resolveValues($this->resolvedExport);
- $this->exportIsDirty = false;
- }
-
- return $this->resolvedExport;
- }
-
- /**
- * {@inheritdocs}
- */
- public function exportData()
- {
- return new Data($this->export());
- }
-
- /**
- * {@inheritdocs}
- */
- public function importRaw($imported = null, $clobber = true)
- {
- $this->exportIsDirty = true;
-
- if (null !== $imported) {
- $this->data()->import($imported, $clobber);
- }
- }
-
- /**
- * {@inheritdocs}
- */
- public function import(ConfigurationInterface $imported, $clobber = true)
- {
- return $this->importRaw($imported->exportRaw(), $clobber);
- }
-
- /**
- * {@inheritdocs}
- */
- public function resolve($value = null)
- {
- if (null === $value) {
- return null;
- }
-
- return $this->placeholderResolver()->resolvePlaceholder($value);
- }
-
- /**
- * {@inheritdocs}
- */
- public function setPlaceholderResolver(PlaceholderResolverInterface $placeholderResolver)
- {
- $this->placeholderResolver = $placeholderResolver;
-
- return $this;
- }
-
- /**
- * Resolve values
- *
- * For objects, do nothing. For strings, resolve placeholder.
- * For arrays, call resolveValues() on each item.
- *
- * @param mixed $input
- */
- protected function resolveValues(&$input = null)
- {
- if (is_array($input)) {
- foreach ($input as $idx => $value) {
- $this->resolveValues($value);
- $input[$idx] = $value;
- }
- } else {
- if (!is_object($input)) {
- $input = $this->placeholderResolver()->resolvePlaceholder($input);
- }
- }
- }
-
- /**
- * Data
- *
- * @return Data
- */
- protected function data()
- {
- if (null === $this->data) {
- $this->data = new Data;
- }
-
- return $this->data;
- }
-
- /**
- * Placeholder Resolver
- *
- * @return PlaceholderResolverInterface
- */
- protected function placeholderResolver()
- {
- if (null === $this->placeholderResolver) {
- $this->placeholderResolver = new RegexPlaceholderResolver(new ConfigurationDataSource($this), '%', '%');
- }
-
- return $this->placeholderResolver;
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfigurationBuilder.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfigurationBuilder.php
deleted file mode 100644
index 4dff1cdd6..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractConfigurationBuilder.php
+++ /dev/null
@@ -1,94 +0,0 @@
-configurationFactory = $configurationFactory;
-
- return $this;
- }
-
- /**
- * Configuration Factory
- *
- * @return ConfigurationFactoryInterface
- */
- protected function configurationFactory()
- {
- if (null === $this->configurationFactory) {
- $this->configurationFactory = new ConfigurationFactory;
- }
-
- return $this->configurationFactory;
- }
-
- /**
- * {@inheritdocs}
- */
- public function build()
- {
- $configuration = $this->configurationFactory()->create();
-
- if (null !== $this->placeholderResolverFactory) {
- $placeholderResolver = $this->placeholderResolverFactory->create($configuration);
- $configuration->setPlaceholderResolver($placeholderResolver);
- }
-
- $this->internalBuild($configuration);
-
- return $configuration;
- }
-
- /**
- * Set Placeholder Resolver Factory
- *
- * @param PlaceholderResolverFactoryInterface $placeholderResolverFactory
- */
- public function setPlaceholderResolverFactory(PlaceholderResolverFactoryInterface $placeholderResolverFactory)
- {
- $this->placeholderResolverFactory = $placeholderResolverFactory;
- }
-
- /**
- * Called to reconfigure the specified Configuration Builder to be similar to this instance
- *
- * @param AbstractConfigurationBuilder $configurationBuilder
- */
- public function reconfigure(AbstractConfigurationBuilder $configurationBuilder)
- {
- if (null !== $this->placeholderResolverFactory) {
- $configurationBuilder->setPlaceholderResolverFactory($this->placeholderResolverFactory);
- }
-
- $configurationBuilder->setConfigurationFactory($this->configurationFactory());
- }
-
- /**
- * Internal build
- *
- * @param ConfigurationInterface $configuration
- */
- abstract protected function internalBuild(ConfigurationInterface $configuration);
-}
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractPlaceholderResolverFactory.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractPlaceholderResolverFactory.php
deleted file mode 100644
index 703d97fa2..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/AbstractPlaceholderResolverFactory.php
+++ /dev/null
@@ -1,35 +0,0 @@
-createInternal($configuration, new ConfigurationDataSource($configuration));
- }
-
- /**
- * Internal create
- *
- * @param ConfigurationInterface $configuration
- * @param DataSourceInterface $dataSource
- *
- * @return PlaceholderResolverInterface
- */
- abstract protected function createInternal(ConfigurationInterface $configuration, DataSourceInterface $dataSource);
-}
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/Configuration.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/Configuration.php
deleted file mode 100644
index 5b590d776..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/Configuration.php
+++ /dev/null
@@ -1,25 +0,0 @@
-importRaw($config);
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/ConfigurationBuilderInterface.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/ConfigurationBuilderInterface.php
deleted file mode 100644
index cd74a3f9a..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/ConfigurationBuilderInterface.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setConfiguration($configuration);
- }
-
- /**
- * {@inheritdoc}
- */
- public function exists($key, $system = false)
- {
- if ($system) {
- return false;
- }
-
- return null !== $this->configuration->getRaw($key);
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($key, $system = false)
- {
- if ($system) {
- return null;
- }
-
- return $this->configuration->getRaw($key);
- }
-
- /**
- * Set Configuration
- *
- * @param ConfigurationInterface $configuration
- *
- * @return ConfigurationDataSource
- */
- public function setConfiguration(ConfigurationInterface $configuration)
- {
- $this->configuration = $configuration;
-
- return $this;
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/ConfigurationFactory.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/ConfigurationFactory.php
deleted file mode 100644
index 1ab61f246..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/ConfigurationFactory.php
+++ /dev/null
@@ -1,23 +0,0 @@
-input = $input;
- }
-
- /**
- * {@inheritdocs}
- */
- public function internalBuild(ConfigurationInterface $configuration)
- {
- if (null !== $this->input) {
- try{
- $yml = Yaml::parse($this->input, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
- } catch (\Exception $e) {
- throw new InvalidArgumentException($e->getMessage(), 0, $e);
- }
- if (is_string($yml))
- {
- throw(new \InvalidArgumentException('Yaml could not be parsed, parser detected a string.'));
- }
- $configuration->importRaw($yml);
- }
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/YamlFileConfigurationBuilder.php b/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/YamlFileConfigurationBuilder.php
deleted file mode 100644
index da839d1f9..000000000
--- a/vendor/dflydev/dot-access-configuration/src/Dflydev/DotAccessConfiguration/YamlFileConfigurationBuilder.php
+++ /dev/null
@@ -1,85 +0,0 @@
-yamlConfigurationFilenames = $yamlConfigurationFilenames;
- }
-
- /**
- * {@inheritdocs}
- */
- public function internalBuild(ConfigurationInterface $configuration)
- {
- $config = array();
- $imports = array();
- foreach ($this->yamlConfigurationFilenames as $yamlConfigurationFilename) {
- if (file_exists($yamlConfigurationFilename)) {
- $config = DotAccessDataUtil::mergeAssocArray($config, Yaml::parse(file_get_contents($yamlConfigurationFilename)));
- if (isset($config['imports'])) {
- foreach ((array) $config['imports'] as $file) {
- if (0 === strpos($file, '/')) {
- // Absolute path
- $imports[] = $file;
- } else {
- if ($realpath = realpath(dirname($yamlConfigurationFilename).'/'.$file)) {
- $imports[] = $realpath;
- }
- }
- }
- }
- }
- }
-
- if ($imports) {
- $importsBuilder = new static($imports);
-
- // We want to reconfigure the imports builder to have the
- // same basic configuration as this instance.
- $this->reconfigure($importsBuilder);
-
- $configuration->import($importsBuilder->build());
-
- $internalImports = $configuration->get('imports');
- } else {
- $internalImports = null;
- }
-
- $configuration->importRaw($config);
-
- if ($internalImports) {
- foreach ((array) $internalImports as $import) {
- $configuration->append('imports', $import);
- }
- }
-
- return $configuration;
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/AbstractConfigurationBuilderTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/AbstractConfigurationBuilderTest.php
deleted file mode 100644
index 93c012b26..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/AbstractConfigurationBuilderTest.php
+++ /dev/null
@@ -1,89 +0,0 @@
-getMock('Dflydev\PlaceholderResolver\PlaceholderResolverInterface');
-
- $placeholderResolverFactory = $this->getMock('Dflydev\DotAccessConfiguration\PlaceholderResolverFactoryInterface');
- $placeholderResolverFactory
- ->expects($this->once())
- ->method('create')
- ->will($this->returnValue($placeholderResolver))
- ;
-
- $configurationBuilder = $this->getMockForAbstractClass('Dflydev\DotAccessConfiguration\AbstractConfigurationBuilder');
- $configurationBuilder
- ->expects($this->once())
- ->method('internalBuild')
- ;
-
- $configurationBuilder->setPlaceholderResolverFactory($placeholderResolverFactory);
- $configurationBuilder->build();
- }
-
- public function testReconfigure()
- {
- $configuration000 = $this->getMock('Dflydev\DotAccessConfiguration\ConfigurationInterface');
-
- $configuration000
- ->expects($this->exactly(2))
- ->method('get')
- ->with($this->equalTo('foo'))
- ->will($this->returnValue('FOO'))
- ;
-
- $configuration001 = $this->getMock('Dflydev\DotAccessConfiguration\ConfigurationInterface');
-
- $configuration001
- ->expects($this->exactly(2))
- ->method('get')
- ->with($this->equalTo('bar'))
- ->will($this->returnValue('BAR'))
- ;
-
- $placeholderResolver = $this->getMock('Dflydev\PlaceholderResolver\PlaceholderResolverInterface');
-
- $placeholderResolverFactory = $this->getMock('Dflydev\DotAccessConfiguration\PlaceholderResolverFactoryInterface');
- $placeholderResolverFactory
- ->expects($this->exactly(2))
- ->method('create')
- ->will($this->returnValue($placeholderResolver))
- ;
-
- $configurationFactory = $this->getMock('Dflydev\DotAccessConfiguration\ConfigurationFactoryInterface');
- $configurationFactory
- ->expects($this->exactly(2))
- ->method('create')
- ->will($this->onConsecutiveCalls($configuration000, $configuration001));
- ;
-
- $configurationBuilder = $this->getMockForAbstractClass('Dflydev\DotAccessConfiguration\AbstractConfigurationBuilder');
-
- $configurationBuilder->setPlaceholderResolverFactory($placeholderResolverFactory);
- $configurationBuilder->setConfigurationFactory($configurationFactory);
-
- $reconfiguredConfigurationBuilder = $this->getMockForAbstractClass('Dflydev\DotAccessConfiguration\AbstractConfigurationBuilder');
- $configurationBuilder->reconfigure($reconfiguredConfigurationBuilder);
-
- $configurationTest000 = $configurationBuilder->build();
- $configurationTest001 = $reconfiguredConfigurationBuilder->build();
-
- $this->assertEquals('FOO', $configuration000->get('foo'));
- $this->assertEquals('FOO', $configurationTest000->get('foo'));
- $this->assertEquals('BAR', $configuration001->get('bar'));
- $this->assertEquals('BAR', $configurationTest001->get('bar'));
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationDataSourceTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationDataSourceTest.php
deleted file mode 100644
index cba5d3545..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationDataSourceTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-getMock('Dflydev\DotAccessConfiguration\Configuration');
-
- $configuration
- ->expects($this->any())
- ->method('getRaw')
- ->will($this->returnValueMap(array(
- array('foo', 'bar'),
- array('foo', null, true),
- array('foo', 'bar', false),
- )))
- ;
-
- $dataSource = new ConfigurationDataSource($configuration);
-
- $this->assertEquals('bar', $dataSource->get('foo'));
- $this->assertTrue($dataSource->exists('foo'));
- $this->assertEquals('bar', $dataSource->get('foo', false));
- $this->assertTrue($dataSource->exists('foo', false));
- $this->assertNull($dataSource->get('foo', true));
- $this->assertFalse($dataSource->exists('foo', true));
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationFactoryTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationFactoryTest.php
deleted file mode 100644
index 0d57e50fa..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationFactoryTest.php
+++ /dev/null
@@ -1,21 +0,0 @@
-create();
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationTest.php
deleted file mode 100644
index 9c7514adb..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/ConfigurationTest.php
+++ /dev/null
@@ -1,175 +0,0 @@
- array(
- 'b' => array(
- 'c' => 'ABC',
- ),
- ),
- 'abc' => '%a.b.c%',
- 'abcd' => '%a.b.c.d%',
- 'some' => array(
- 'object' => new ConfigurationTestObject('some.object'),
- 'other' => array(
- 'object' => new ConfigurationTestObject('some.other.object'),
- ),
- ),
- 'object' => new ConfigurationTestObject('object'),
- 'an_array' => array('hello'),
- );
- }
-
- protected function runBasicTests($configuration)
- {
- $this->assertEquals('ABC', $configuration->get('a.b.c'), 'Direct access by dot notation');
- $this->assertEquals('ABC', $configuration->get('abc'), 'Resolved access');
- $this->assertEquals('%a.b.c.d%', $configuration->get('abcd'), 'Unresolved access');
- $this->assertEquals('object', $configuration->get('object')->key);
- $this->assertEquals('some.object', $configuration->get('some.object')->key);
- $this->assertEquals('some.other.object', $configuration->get('some.other.object')->key);
- $this->assertEquals(array('hello'), $configuration->get('an_array'));
- $this->assertEquals('This is ABC', $configuration->resolve('This is %a.b.c%'));
- $this->assertNull($configuration->resolve());
- }
-
- public function testGet()
- {
- $configuration = new Configuration($this->getTestData());
-
- $this->runBasicTests($configuration);
- }
-
- public function testAppend()
- {
- $configuration = new Configuration($this->getTestData());
-
- $configuration->append('a.b.c', 'abc');
- $configuration->append('an_array', 'world');
-
- $this->assertEquals(array('ABC', 'abc'), $configuration->get('a.b.c'));
- $this->assertEquals(array('hello', 'world'), $configuration->get('an_array'));
- }
-
- public function testExportRaw()
- {
- $configuration = new Configuration($this->getTestData());
-
- // Start with "known" expected value.
- $expected = $this->getTestData();
-
- $this->assertEquals($expected, $configuration->exportRaw());
-
- // Simulate change on an object to ensure that objects
- // are being handled correctly.
- $expected['object']->key = 'object (modified)';
-
- // Make the same change in the object that the
- // configuration is managing.
- $configuration->get('object')->key = 'object (modified)';
-
- $this->assertEquals($expected, $configuration->exportRaw());
- }
-
- public function testExport()
- {
- $configuration = new Configuration($this->getTestData());
-
- // Start with "known" expected value.
- $expected = $this->getTestData();
-
- // We have one replacement that is expected to happen.
- // It should be represented in the export as the
- // resolved value!
- $expected['abc'] = 'ABC';
-
- $this->assertEquals($expected, $configuration->export());
-
- // Simulate change on an object to ensure that objects
- // are being handled correctly.
- $expected['object']->key = 'object (modified)';
-
- // Make the same change in the object that the
- // configuration is managing.
- $configuration->get('object')->key = 'object (modified)';
-
- $this->assertEquals($expected, $configuration->export());
-
- // Test to make sure that set will result in setting
- // a new value and also that export will show this new
- // value. (tests "export is dirty" functionality)
- $configuration->set('abc', 'ABCD');
- $expected['abc'] = 'ABCD';
- $this->assertEquals($expected, $configuration->export());
- }
-
- public function testExportData()
- {
- $configuration = new Configuration($this->getTestData());
-
- $data = $configuration->exportData();
-
- // The exportData call should return data filled with
- // resolved data.
- $this->assertEquals('ABC', $data->get('abc'));
- }
-
- public function testImportRaw()
- {
- $configuration = new Configuration();
-
- $configuration->importRaw($this->getTestData());
-
- $this->runBasicTests($configuration);
- }
-
- public function testImport()
- {
- $configuration = new Configuration();
-
- $configuration->import(new Configuration($this->getTestData()));
-
- $this->runBasicTests($configuration);
- }
-
- public function testSetPlaceholderResolver()
- {
- $placeholderResolver = $this->getMock('Dflydev\PlaceholderResolver\PlaceholderResolverInterface');
-
- $placeholderResolver
- ->expects($this->once())
- ->method('resolvePlaceholder')
- ->with($this->equalTo('foo'))
- ->will($this->returnValue('bar'))
- ;
-
- $configuration = new Configuration;
-
- $configuration->setPlaceholderResolver($placeholderResolver);
-
- $this->assertEquals('bar', $configuration->resolve('foo'));
- }
-}
-
-class ConfigurationTestObject
-{
- public $key;
- public function __construct($key)
- {
- $this->key = $key;
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/PlaceholderResolverFactoryTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/PlaceholderResolverFactoryTest.php
deleted file mode 100644
index 036f0feb1..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/PlaceholderResolverFactoryTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-getMock('Dflydev\DotAccessConfiguration\Configuration');
- $placeholderResolverFactory = new PlaceholderResolverFactory;
- $placeholderResolver = $placeholderResolverFactory->create($configuration);
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/YamlConfigurationBuilderTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/YamlConfigurationBuilderTest.php
deleted file mode 100644
index 05b58b45a..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/YamlConfigurationBuilderTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-markTestSkipped('The Symfony2 YAML library is not available');
- }
- }
-
- public function testBuild()
- {
- $configurationBuilder = new YamlConfigurationBuilder;
- $configuration = $configurationBuilder->build();
- }
-
- public function testBuildWithData()
- {
- $configurationBuilder = new YamlConfigurationBuilder('foo: bar');
- $configuration = $configurationBuilder->build();
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/YamlFileConfigurationBuilderTest.php b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/YamlFileConfigurationBuilderTest.php
deleted file mode 100644
index 4e63b0391..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/YamlFileConfigurationBuilderTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-markTestSkipped('The Symfony2 YAML library is not available');
- }
- }
-
- public function testBuilder()
- {
- $configurationBuilder = new YamlFileConfigurationBuilder(array(__DIR__.'/fixtures/yamlFileConfigurationBuilderTest-testBuilder.yml'));
-
- $configuration = $configurationBuilder->build();
-
- $this->assertEquals('C', $configuration->get('a.b.c'));
- $this->assertEquals('C0', $configuration->get('a0.b0.c0'));
- $this->assertEquals('C1', $configuration->get('a1.b1.c1'));
- $this->assertEquals(array(
- 'yamlFileConfigurationBuilderTest-testBuilder-import-level0.yml',
- '/tmp/testing-this-file-should-not-exist.yml',
- 'yamlFileConfigurationBuilderTest-testBuilder-import-level1.yml',
- ), $configuration->get('imports'));
- }
-}
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder-import-level0.yml b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder-import-level0.yml
deleted file mode 100644
index 0db09420a..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder-import-level0.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-imports:
- - yamlFileConfigurationBuilderTest-testBuilder-import-level1.yml
-
-a0:
- b0:
- c0: C0
\ No newline at end of file
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder-import-level1.yml b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder-import-level1.yml
deleted file mode 100644
index b241e1f47..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder-import-level1.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-a1:
- b1:
- c1: C1
\ No newline at end of file
diff --git a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder.yml b/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder.yml
deleted file mode 100644
index 2e553059b..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/Dflydev/DotAccessConfiguration/fixtures/yamlFileConfigurationBuilderTest-testBuilder.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-imports:
- - yamlFileConfigurationBuilderTest-testBuilder-import-level0.yml
- - /tmp/testing-this-file-should-not-exist.yml
-
-a:
- b:
- c: C
\ No newline at end of file
diff --git a/vendor/dflydev/dot-access-configuration/tests/bootstrap.php b/vendor/dflydev/dot-access-configuration/tests/bootstrap.php
deleted file mode 100644
index 2bdc3ac35..000000000
--- a/vendor/dflydev/dot-access-configuration/tests/bootstrap.php
+++ /dev/null
@@ -1,13 +0,0 @@
-set('a.b.c', 'C');
-$data->set('a.b.d', 'D1');
-$data->append('a.b.d', 'D2');
-$data->set('a.b.e', array('E0', 'E1', 'E2'));
-
-// C
-$data->get('a.b.c');
-
-// array('D1', 'D2')
-$data->get('a.b.d');
-
-// array('E0', 'E1', 'E2')
-$data->get('a.b.e');
-
-// true
-$data->has('a.b.c');
-
-// false
-$data->has('a.b.d.j');
-```
-
-A more concrete example:
-
-```php
-use Dflydev\DotAccessData\Data;
-
-$data = new Data(array(
- 'hosts' => array(
- 'hewey' => array(
- 'username' => 'hman',
- 'password' => 'HPASS',
- 'roles' => array('web'),
- ),
- 'dewey' => array(
- 'username' => 'dman',
- 'password' => 'D---S',
- 'roles' => array('web', 'db'),
- 'nick' => 'dewey dman'
- ),
- 'lewey' => array(
- 'username' => 'lman',
- 'password' => 'LP@$$',
- 'roles' => array('db'),
- ),
- )
-));
-
-// hman
-$username = $data->get('hosts.hewey.username');
-// HPASS
-$password = $data->get('hosts.hewey.password');
-// array('web')
-$roles = $data->get('hosts.hewey.roles');
-// dewey dman
-$nick = $data->get('hosts.dewey.nick');
-// Unknown
-$nick = $data->get('hosts.lewey.nick', 'Unknown');
-
-// DataInterface instance
-$dewey = $data->getData('hosts.dewey');
-// dman
-$username = $dewey->get('username');
-// D---S
-$password = $dewey->get('password');
-// array('web', 'db')
-$roles = $dewey->get('roles');
-
-// No more lewey
-$data->remove('hosts.lewey');
-
-// Add DB to hewey's roles
-$data->append('hosts.hewey.roles', 'db');
-
-$data->set('hosts.april', array(
- 'username' => 'aman',
- 'password' => '@---S',
- 'roles' => array('web'),
-));
-
-// Check if a key exists (true to this case)
-$hasKey = $data->has('hosts.dewey.username');
-```
-
-
-License
--------
-
-This library is licensed under the New BSD License - see the LICENSE file
-for details.
-
-
-Community
----------
-
-If you have questions or want to help out, join us in the
-[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.
diff --git a/vendor/dflydev/dot-access-data/composer.json b/vendor/dflydev/dot-access-data/composer.json
deleted file mode 100644
index b200c9f24..000000000
--- a/vendor/dflydev/dot-access-data/composer.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "dflydev/dot-access-data",
- "type": "library",
- "description": "Given a deep data structure, access data by dot notation.",
- "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
- "keywords": ["dot", "access", "data", "notation"],
- "license": "MIT",
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- },
- {
- "name": "Carlos Frutos",
- "email": "carlos@kiwing.it",
- "homepage": "https://github.com/cfrutos"
- }
- ],
- "require": {
- "php": ">=5.3.2"
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\DotAccessData": "src"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- }
-}
diff --git a/vendor/dflydev/dot-access-data/phpunit.xml.dist b/vendor/dflydev/dot-access-data/phpunit.xml.dist
deleted file mode 100644
index 2b386b3a8..000000000
--- a/vendor/dflydev/dot-access-data/phpunit.xml.dist
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- ./tests/Dflydev/DotAccessData
-
-
-
-
-
- ./src/Dflydev/DotAccessData/
-
-
-
diff --git a/vendor/dflydev/dot-access-data/src/Dflydev/DotAccessData/Data.php b/vendor/dflydev/dot-access-data/src/Dflydev/DotAccessData/Data.php
deleted file mode 100644
index 34bda67e4..000000000
--- a/vendor/dflydev/dot-access-data/src/Dflydev/DotAccessData/Data.php
+++ /dev/null
@@ -1,220 +0,0 @@
-data = $data ?: array();
- }
-
- /**
- * {@inheritdoc}
- */
- public function append($key, $value = null)
- {
- if (0 == strlen($key)) {
- throw new \RuntimeException("Key cannot be an empty string");
- }
-
- $currentValue =& $this->data;
- $keyPath = explode('.', $key);
-
- if (1 == count($keyPath)) {
- if (!isset($currentValue[$key])) {
- $currentValue[$key] = array();
- }
- if (!is_array($currentValue[$key])) {
- // Promote this key to an array.
- // TODO: Is this really what we want to do?
- $currentValue[$key] = array($currentValue[$key]);
- }
- $currentValue[$key][] = $value;
-
- return;
- }
-
- $endKey = array_pop($keyPath);
- for ( $i = 0; $i < count($keyPath); $i++ ) {
- $currentKey =& $keyPath[$i];
- if ( ! isset($currentValue[$currentKey]) ) {
- $currentValue[$currentKey] = array();
- }
- $currentValue =& $currentValue[$currentKey];
- }
-
- if (!isset($currentValue[$endKey])) {
- $currentValue[$endKey] = array();
- }
- if (!is_array($currentValue[$endKey])) {
- $currentValue[$endKey] = array($currentValue[$endKey]);
- }
- // Promote this key to an array.
- // TODO: Is this really what we want to do?
- $currentValue[$endKey][] = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function set($key, $value = null)
- {
- if (0 == strlen($key)) {
- throw new \RuntimeException("Key cannot be an empty string");
- }
-
- $currentValue =& $this->data;
- $keyPath = explode('.', $key);
-
- if (1 == count($keyPath)) {
- $currentValue[$key] = $value;
-
- return;
- }
-
- $endKey = array_pop($keyPath);
- for ( $i = 0; $i < count($keyPath); $i++ ) {
- $currentKey =& $keyPath[$i];
- if (!isset($currentValue[$currentKey])) {
- $currentValue[$currentKey] = array();
- }
- if (!is_array($currentValue[$currentKey])) {
- throw new \RuntimeException("Key path at $currentKey of $key cannot be indexed into (is not an array)");
- }
- $currentValue =& $currentValue[$currentKey];
- }
- $currentValue[$endKey] = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function remove($key)
- {
- if (0 == strlen($key)) {
- throw new \RuntimeException("Key cannot be an empty string");
- }
-
- $currentValue =& $this->data;
- $keyPath = explode('.', $key);
-
- if (1 == count($keyPath)) {
- unset($currentValue[$key]);
-
- return;
- }
-
- $endKey = array_pop($keyPath);
- for ( $i = 0; $i < count($keyPath); $i++ ) {
- $currentKey =& $keyPath[$i];
- if (!isset($currentValue[$currentKey])) {
- return;
- }
- $currentValue =& $currentValue[$currentKey];
- }
- unset($currentValue[$endKey]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($key, $default = null)
- {
- $currentValue = $this->data;
- $keyPath = explode('.', $key);
-
- for ( $i = 0; $i < count($keyPath); $i++ ) {
- $currentKey = $keyPath[$i];
- if (!isset($currentValue[$currentKey]) ) {
- return $default;
- }
- if (!is_array($currentValue)) {
- return $default;
- }
- $currentValue = $currentValue[$currentKey];
- }
-
- return $currentValue === null ? $default : $currentValue;
- }
-
- /**
- * {@inheritdoc}
- */
- public function has($key)
- {
- $currentValue = &$this->data;
- $keyPath = explode('.', $key);
-
- for ( $i = 0; $i < count($keyPath); $i++ ) {
- $currentKey = $keyPath[$i];
- if (
- !is_array($currentValue) ||
- !array_key_exists($currentKey, $currentValue)
- ) {
- return false;
- }
- $currentValue = &$currentValue[$currentKey];
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getData($key)
- {
- $value = $this->get($key);
- if (is_array($value) && Util::isAssoc($value)) {
- return new Data($value);
- }
-
- throw new \RuntimeException("Value at '$key' could not be represented as a DataInterface");
- }
-
- /**
- * {@inheritdoc}
- */
- public function import(array $data, $clobber = true)
- {
- $this->data = Util::mergeAssocArray($this->data, $data, $clobber);
- }
-
- /**
- * {@inheritdoc}
- */
- public function importData(DataInterface $data, $clobber = true)
- {
- $this->import($data->export(), $clobber);
- }
-
- /**
- * {@inheritdoc}
- */
- public function export()
- {
- return $this->data;
- }
-}
diff --git a/vendor/dflydev/dot-access-data/src/Dflydev/DotAccessData/DataInterface.php b/vendor/dflydev/dot-access-data/src/Dflydev/DotAccessData/DataInterface.php
deleted file mode 100644
index 3498f26e5..000000000
--- a/vendor/dflydev/dot-access-data/src/Dflydev/DotAccessData/DataInterface.php
+++ /dev/null
@@ -1,89 +0,0 @@
- $v) {
- if (!isset($to[$k])) {
- $to[$k] = $v;
- } else {
- $to[$k] = self::mergeAssocArray($to[$k], $v, $clobber);
- }
- }
-
- return $to;
- }
-
- return $clobber ? $from : $to;
- }
-}
diff --git a/vendor/dflydev/dot-access-data/tests/Dflydev/DotAccessData/DataTest.php b/vendor/dflydev/dot-access-data/tests/Dflydev/DotAccessData/DataTest.php
deleted file mode 100644
index c75260bec..000000000
--- a/vendor/dflydev/dot-access-data/tests/Dflydev/DotAccessData/DataTest.php
+++ /dev/null
@@ -1,205 +0,0 @@
- 'A',
- 'b' => array(
- 'b' => 'B',
- 'c' => array('C1', 'C2', 'C3'),
- 'd' => array(
- 'd1' => 'D1',
- 'd2' => 'D2',
- 'd3' => 'D3',
- ),
- ),
- 'c' => array('c1', 'c2', 'c3'),
- 'f' => array(
- 'g' => array(
- 'h' => 'FGH',
- ),
- ),
- 'h' => array(
- 'i' => 'I',
- ),
- 'i' => array(
- 'j' => 'J',
- ),
- );
- }
-
- protected function runSampleDataTests(DataInterface $data)
- {
- $this->assertEquals('A', $data->get('a'));
- $this->assertEquals('B', $data->get('b.b'));
- $this->assertEquals(array('C1', 'C2', 'C3'), $data->get('b.c'));
- $this->assertEquals('D3', $data->get('b.d.d3'));
- $this->assertEquals(array('c1', 'c2', 'c3'), $data->get('c'));
- $this->assertNull($data->get('foo'), 'Foo should not exist');
- $this->assertNull($data->get('f.g.h.i'));
- $this->assertEquals($data->get('foo', 'default-value-1'), 'default-value-1', 'Return default value');
- $this->assertEquals($data->get('f.g.h.i', 'default-value-2'), 'default-value-2');
- }
-
- public function testAppend()
- {
- $data = new Data($this->getSampleData());
-
- $data->append('a', 'B');
- $data->append('c', 'c4');
- $data->append('b.c', 'C4');
- $data->append('b.d.d3', 'D3b');
- $data->append('b.d.d4', 'D');
- $data->append('e', 'E');
- $data->append('f.a', 'b');
- $data->append('h.i', 'I2');
- $data->append('i.k.l', 'L');
-
- $this->assertEquals(array('A', 'B'), $data->get('a'));
- $this->assertEquals(array('c1', 'c2', 'c3', 'c4'), $data->get('c'));
- $this->assertEquals(array('C1', 'C2', 'C3', 'C4'), $data->get('b.c'));
- $this->assertEquals(array('D3', 'D3b'), $data->get('b.d.d3'));
- $this->assertEquals(array('D'), $data->get('b.d.d4'));
- $this->assertEquals(array('E'), $data->get('e'));
- $this->assertEquals(array('b'), $data->get('f.a'));
- $this->assertEquals(array('I', 'I2'), $data->get('h.i'));
- $this->assertEquals(array('L'), $data->get('i.k.l'));
-
- $this->setExpectedException('RuntimeException');
-
- $data->append('', 'broken');
- }
-
- public function testSet()
- {
- $data = new Data;
-
- $this->assertNull($data->get('a'));
- $this->assertNull($data->get('b.c'));
- $this->assertNull($data->get('d.e'));
-
- $data->set('a', 'A');
- $data->set('b.c', 'C');
- $data->set('d.e', array('f' => 'F', 'g' => 'G',));
-
- $this->assertEquals('A', $data->get('a'));
- $this->assertEquals(array('c' => 'C'), $data->get('b'));
- $this->assertEquals('C', $data->get('b.c'));
- $this->assertEquals('F', $data->get('d.e.f'));
- $this->assertEquals(array('e' => array('f' => 'F', 'g' => 'G',)), $data->get('d'));
-
- $this->setExpectedException('RuntimeException');
-
- $data->set('', 'broken');
- }
-
- public function testSetClobberStringInPath()
- {
- $data = new Data;
-
- $data->set('a.b.c', 'Should not be able to write to a.b.c.d.e');
-
- $this->setExpectedException('RuntimeException');
-
- $data->set('a.b.c.d.e', 'broken');
- }
-
- public function testRemove()
- {
- $data = new Data($this->getSampleData());
-
- $data->remove('a');
- $data->remove('b.c');
- $data->remove('b.d.d3');
- $data->remove('d');
- $data->remove('d.e.f');
- $data->remove('empty.path');
-
- $this->assertNull($data->get('a'));
- $this->assertNull($data->get('b.c'));
- $this->assertNull($data->get('b.d.d3'));
- $this->assertNull(null);
- $this->assertEquals('D2', $data->get('b.d.d2'));
-
- $this->setExpectedException('RuntimeException');
-
- $data->remove('', 'broken');
- }
-
- public function testGet()
- {
- $data = new Data($this->getSampleData());
-
- $this->runSampleDataTests($data);
- }
-
- public function testHas()
- {
- $data = new Data($this->getSampleData());
-
- foreach (
- array('a', 'i', 'b.d', 'f.g.h', 'h.i', 'b.d.d1') as $existentKey
- ) {
- $this->assertTrue($data->has($existentKey));
- }
-
- foreach (
- array('p', 'b.b1', 'b.c.C1', 'h.i.I', 'b.d.d1.D1') as $notExistentKey
- ) {
- $this->assertFalse($data->has($notExistentKey));
- }
- }
-
- public function testGetData()
- {
- $wrappedData = new Data(array(
- 'wrapped' => array(
- 'sampleData' => $this->getSampleData()
- ),
- ));
-
- $data = $wrappedData->getData('wrapped.sampleData');
-
- $this->runSampleDataTests($data);
-
- $this->setExpectedException('RuntimeException');
-
- $data = $wrappedData->getData('wrapped.sampleData.a');
- }
-
- public function testImport()
- {
- $data = new Data();
- $data->import($this->getSampleData());
-
- $this->runSampleDataTests($data);
- }
-
- public function testImportData()
- {
- $data = new Data();
- $data->importData(new Data($this->getSampleData()));
-
- $this->runSampleDataTests($data);
- }
-
- public function testExport()
- {
- $data = new Data($this->getSampleData());
-
- $this->assertEquals($this->getSampleData(), $data->export());
- }
-}
diff --git a/vendor/dflydev/dot-access-data/tests/Dflydev/DotAccessData/UtilTest.php b/vendor/dflydev/dot-access-data/tests/Dflydev/DotAccessData/UtilTest.php
deleted file mode 100644
index 3a7c9ac59..000000000
--- a/vendor/dflydev/dot-access-data/tests/Dflydev/DotAccessData/UtilTest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-assertTrue(Util::isAssoc(array('a' => 'A',)));
- $this->assertTrue(Util::isAssoc(array()));
- $this->assertFalse(Util::isAssoc(array(1 => 'One',)));
- }
-
- /**
- * @dataProvider mergeAssocArrayProvider
- */
- public function testMergeAssocArray($message, $to, $from, $clobber, $expectedResult)
- {
- $result = Util::mergeAssocArray($to, $from, $clobber);
- $this->assertEquals($expectedResult, $result, $message);
- }
-
- public function mergeAssocArrayProvider()
- {
- return array(
-
- array(
- 'Clobber should replace to value with from value for strings (shallow)',
- // to
- array('a' => 'A'),
- // from
- array('a' => 'B'),
- // clobber
- true,
- // expected result
- array('a' => 'B'),
- ),
-
- array(
- 'Clobber should replace to value with from value for strings (deep)',
- // to
- array('a' => array('b' => 'B',),),
- // from
- array('a' => array('b' => 'C',),),
- // clobber
- true,
- // expected result
- array('a' => array('b' => 'C',),),
- ),
-
- array(
- 'Clobber should NOTreplace to value with from value for strings (shallow)',
- // to
- array('a' => 'A'),
- // from
- array('a' => 'B'),
- // clobber
- false,
- // expected result
- array('a' => 'A'),
- ),
-
- array(
- 'Clobber should NOT replace to value with from value for strings (deep)',
- // to
- array('a' => array('b' => 'B',),),
- // from
- array('a' => array('b' => 'C',),),
- // clobber
- false,
- // expected result
- array('a' => array('b' => 'B',),),
- ),
-
- array(
- 'Associative arrays should be combined',
- // to
- array('a' => array('b' => 'B',),),
- // from
- array('a' => array('c' => 'C',),),
- // clobber
- null,
- // expected result
- array('a' => array('b' => 'B', 'c' => 'C',),),
- ),
-
- array(
- 'Arrays should be replaced (with clobber enabled)',
- // to
- array('a' => array('b', 'c',)),
- // from
- array('a' => array('B', 'C',),),
- // clobber
- true,
- // expected result
- array('a' => array('B', 'C',),),
- ),
-
- array(
- 'Arrays should be NOT replaced (with clobber disabled)',
- // to
- array('a' => array('b', 'c',)),
- // from
- array('a' => array('B', 'C',),),
- // clobber
- false,
- // expected result
- array('a' => array('b', 'c',),),
- ),
- );
- }
-}
diff --git a/vendor/dflydev/dot-access-data/tests/bootstrap.php b/vendor/dflydev/dot-access-data/tests/bootstrap.php
deleted file mode 100644
index a10725e95..000000000
--- a/vendor/dflydev/dot-access-data/tests/bootstrap.php
+++ /dev/null
@@ -1,13 +0,0 @@
- value pairs, resolve placeholders
-like `${foo.bar}` to the value associated with the `foo.bar` key in
-the data source.
-
-Placeholder Resolver is intended to be used at a relatively low level.
-For example, a configuration library could use Placeholder Resolver
-behind the scenes to allow for configuration values to reference
-other configuration values.
-
-
-Example
--------
-
- conn.driver: mysql
- conn.db_name: example
- conn.hostname: 127.0.0.1
- conn.username: root
- conn.password: pa$$word
-
-Given the appropriate `DataSourceInterface` implementation to provide
-the above data as a set of key => value pairs, the Placeholder Resolver
-would resolve the value of `$dsnPattern` to `mysql:dbname=example;host=127.0.0.1`.
-
- $dsnPattern = '${conn.driver}:dbname=${conn.db_name};host=${conn.hostname}';
- $dsn = $placeholderResolver->resolveValue($dsnPattern);
- // mysql:dbname=example;host=127.0.0.1
-
-
-Requirements
-------------
-
- * PHP 5.3+
-
-
-Usage
------
-
- use Dflydev\PlaceholderResolver\RegexPlaceholderResolver;
-
- // YourDataSource implements Dflydev\PlaceholderResolver\DataSource\DataSourceInterface
- $dataSource = new YourDataSource;
-
- // Create the placeholder resolver
- $placeholderResolver = new RegexPlaceholderResolver($dataSource);
-
- // Start resolving placeholders
- $value = $placeholderResolver->resolvePlaceholder('${foo}');
-
-The `RegexPlaceholderResolver` constructor accepts two additional arguments,
-a placeholder prefix and a placeholder suffix. The default placeholder
-prefix is `${` and the default placeholder suffix is `}`.
-
-To handle placeholders that look like `` instead of `${foo.bar}`,
-one would instantiate the class like this:
-
- $placeholderResolver = new RegexPlaceholderResolver($dataSource, '<', '>');
-
-Placeholders can recursively resolve placeholders. For example, given a
-data source with the following:
-
- array(
- 'foo' => 'FOO',
- 'bar' => 'BAR',
- 'FOO.BAR' => 'BAZ!',
- );
-
-The placeholder `${${foo}.${bar}}` would internally be resolved to
-`${FOO.BAR}` before being further resolved to `BAZ!`.
-
-Resolved placeholders are cached using the `CacheInterface`. The default
-`Cache` implementation is used unless it is explicitly set on the
-Placeholder Resolver.
-
- // YourCache implements Dflydev\PlaceholderResolver\Cache\CacheInterface
- $cache = new YourCache;
-
- $placeholderResolver->setCache($cache);
-
-
-License
--------
-
-This library is licensed under the New BSD License - see the LICENSE file
-for details.
-
-
-Community
----------
-
-If you have questions or want to help out, join us in the
-[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.
-
-
-Not Invented Here
------------------
-
-Much of the ideas behind this library came from Spring's Property
-Placeholder Configurer implementation.
\ No newline at end of file
diff --git a/vendor/dflydev/placeholder-resolver/composer.json b/vendor/dflydev/placeholder-resolver/composer.json
deleted file mode 100644
index e9e4c3987..000000000
--- a/vendor/dflydev/placeholder-resolver/composer.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "dflydev/placeholder-resolver",
- "type": "library",
- "description": "Given a data source representing key => value pairs, resolve placeholders like ${foo.bar} to the value associated with the 'foo.bar' key in the data source.",
- "homepage": "https://github.com/dflydev/dflydev-placeholder-resolver",
- "keywords": ["placeholder", "resolver"],
- "license": "MIT",
- "authors": [
- {
- "name": "Dragonfly Development Inc.",
- "email": "info@dflydev.com",
- "homepage": "http://dflydev.com"
- },
- {
- "name": "Beau Simensen",
- "email": "beau@dflydev.com",
- "homepage": "http://beausimensen.com"
- }
- ],
- "require": {
- "php": ">=5.3.2"
- },
- "autoload": {
- "psr-0": {
- "Dflydev\\PlaceholderResolver": "src"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/phpunit.xml.dist b/vendor/dflydev/placeholder-resolver/phpunit.xml.dist
deleted file mode 100644
index 93f29d98f..000000000
--- a/vendor/dflydev/placeholder-resolver/phpunit.xml.dist
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
- ./tests/Dflydev/PlaceholderResolver
-
-
-
-
-
- ./src/Dflydev/PlaceholderResolver/
-
-
-
diff --git a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/AbstractPlaceholderResolver.php b/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/AbstractPlaceholderResolver.php
deleted file mode 100644
index 2abeb8aa2..000000000
--- a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/AbstractPlaceholderResolver.php
+++ /dev/null
@@ -1,59 +0,0 @@
-maxReplacementDepth = $maxReplacementDepth;
-
- return $this;
- }
-
- /**
- * Get cache
- *
- * @return CacheInterface
- */
- public function getCache()
- {
- if (null === $this->cache) {
- $this->cache = new Cache;
- }
-
- return $this->cache;
- }
-
- /**
- * Set cache
- *
- * @param CacheInterface $cache
- */
- public function setCache(CacheInterface $cache)
- {
- $this->cache = $cache;
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/Cache.php b/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/Cache.php
deleted file mode 100644
index 8defa31bf..000000000
--- a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/Cache.php
+++ /dev/null
@@ -1,62 +0,0 @@
-cache);
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($placeholder)
- {
- if (is_array($placeholder)) {
- throw new \RuntimeException('Placeholder is an array');
- }
-
- return array_key_exists((string) $placeholder, $this->cache)
- ? $this->cache[(string) $placeholder]
- : null;
- }
-
- /**
- * {@inheritdoc}
- */
- public function set($placeholder, $value = null)
- {
- if (is_array($placeholder)) {
- throw new \RuntimeException('Placeholder is an array');
- }
- $this->cache[(string) $placeholder] = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function flush()
- {
- $this->cache = array();
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/CacheInterface.php b/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/CacheInterface.php
deleted file mode 100644
index 99f7a38d3..000000000
--- a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/CacheInterface.php
+++ /dev/null
@@ -1,48 +0,0 @@
-
- */
-class ArrayDataSource implements DataSourceInterface
-{
- /**
- * @var array
- */
- protected $array;
-
- /**
- * Constructor
- *
- * @param array $array
- */
- public function __construct(array $array = array())
- {
- $this->array = $array;
- }
-
- /**
- * {@inheritdoc}
- */
- public function exists($key, $system = false)
- {
- if ($system) {
- return false;
- }
-
- return isset($this->array[$key]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($key, $system = false)
- {
- if ($system) {
- return null;
- }
-
- return isset($this->array[$key]) ? $this->array[$key] : null;
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/DataSource/DataSourceInterface.php b/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/DataSource/DataSourceInterface.php
deleted file mode 100644
index a8ffe44a2..000000000
--- a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/DataSource/DataSourceInterface.php
+++ /dev/null
@@ -1,41 +0,0 @@
-placeholderResolverCallback = new RegexPlaceholderResolverCallback($dataSource);
- $placeholderPrefix = preg_quote($placeholderPrefix);
- $placeholderSuffix = preg_quote($placeholderSuffix);
- $this->pattern = "/{$placeholderPrefix}([a-zA-Z0-9\.\(\)_\:]+?){$placeholderSuffix}/";
- }
-
- /**
- * {@inheritdoc}
- */
- public function resolvePlaceholder($placeholder)
- {
- if ($this->getCache()->exists($placeholder)) {
- return $this->getCache()->get($placeholder);
- }
-
- $value = $placeholder;
- $counter = 0;
-
- while ($counter++ < $this->maxReplacementDepth) {
- $newValue = preg_replace_callback(
- $this->pattern,
- array($this->placeholderResolverCallback, 'callback'),
- $value
- );
- if ($newValue === $value) { break; }
- $value = $newValue;
- }
-
- $this->getCache()->set($placeholder, $value);
-
- return $value;
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/RegexPlaceholderResolverCallback.php b/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/RegexPlaceholderResolverCallback.php
deleted file mode 100644
index 35ea2c31c..000000000
--- a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/RegexPlaceholderResolverCallback.php
+++ /dev/null
@@ -1,71 +0,0 @@
-dataSource = $dataSource;
- }
-
- /**
- * Callback for preg_replace_callback() generally called in PlaceholderResolver
- *
- * The expected input will be array($fullMatch, $potentialKey) and the
- * expected output will be either a value from the data source, a special
- * value from SERVER or CONSTANT, or the contents of $fullMatch (the key
- * itself with its wrapped prefix and suffix).
- *
- * @param array $matches
- *
- * @return string|null
- */
- public function callback($matches)
- {
- list ($fullMatch, $potentialKey) = $matches;
- if (preg_match('/^(SYSTEM|SERVER|CONSTANT):(\w+)$/', $potentialKey, $specialMatches)) {
- list ($dummy, $which, $specialKey) = $specialMatches;
- switch ($which) {
- case 'SERVER':
- case 'SYSTEM':
- if ($this->dataSource->exists($specialKey, true)) {
- return $this->dataSource->get($specialKey, true);
- }
- break;
- case 'CONSTANT':
- if (defined($specialKey)) {
- return constant($specialKey);
- }
- break;
- }
- }
-
- if ($this->dataSource->exists($potentialKey)) {
- return $this->dataSource->get($potentialKey);
- }
-
- return $fullMatch;
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/Cache/CacheTest.php b/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/Cache/CacheTest.php
deleted file mode 100644
index 099e6d5af..000000000
--- a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/Cache/CacheTest.php
+++ /dev/null
@@ -1,125 +0,0 @@
-set(1, "one as integer");
- $cache->set("2", "two as string '2'");
- $cache->set("three", "three as string");
- $cache->set($object, "object");
-
- $this->assertEquals("one as integer", $cache->get(1));
- $this->assertEquals("two as string '2'", $cache->get('2'));
- $this->assertEquals("three as string", $cache->get('three'));
- $this->assertEquals("object", $cache->get($object));
-
- $this->assertNull($cache->get(11));
- $this->assertNull($cache->get('12'));
- $this->assertNull($cache->get('thirteen'));
- }
-
- public function testExists()
- {
- $object = new CacheTestToSTring;
-
- $cache = new Cache;
-
- $this->assertFalse($cache->exists(1));
- $this->assertFalse($cache->exists("2"));
- $this->assertFalse($cache->exists("three"));
- $this->assertFalse($cache->exists($object));
- }
-
- public function testExistsArray()
- {
- $array = array();
-
- $cache = new Cache;
-
- $this->setExpectedException('RuntimeException');
-
- $cache->exists($array);
- }
-
- public function testGetArray()
- {
- $array = array();
-
- $cache = new Cache;
-
- $this->setExpectedException('RuntimeException');
-
- $cache->get($array);
- }
-
- public function testSetArray()
- {
- $array = array();
-
- $cache = new Cache;
-
- $this->setExpectedException('RuntimeException');
-
- $cache->set($array, 'broken');
- }
-
- public function testExistsNoToString()
- {
- $object = new CacheTestNoToSTring;
-
- $cache = new Cache;
-
- $this->setExpectedException('PHPUnit_Framework_Error');
-
- $cache->exists($object);
- }
-
- public function testGetNoToString()
- {
- $object = new CacheTestNoToSTring;
-
- $cache = new Cache;
-
- $this->setExpectedException('PHPUnit_Framework_Error');
-
- $cache->get($object);
- }
-
- public function testSetNoToString()
- {
- $object = new CacheTestNoToSTring;
-
- $cache = new Cache;
-
- $this->setExpectedException('PHPUnit_Framework_Error');
-
- $cache->set($object, 'broken');
- }
-}
-
-class CacheTestNoToSTring
-{
-}
-
-class CacheTestToSTring
-{
- public function __toString()
- {
- return 'any string';
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/DataSource/ArrayDataSourceTest.php b/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/DataSource/ArrayDataSourceTest.php
deleted file mode 100644
index 58707baaf..000000000
--- a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/DataSource/ArrayDataSourceTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-
- */
-class ArrayDataSourceTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * Test basic functionality
- */
- public function testBasic()
- {
- $dataSource = new ArrayDataSource(array(
- 'a' => 'A',
- 'b' => 'B',
- 'c' => 'C',
- ));
-
- $this->assertTrue($dataSource->exists('a'));
- $this->assertTrue($dataSource->exists('b'));
- $this->assertTrue($dataSource->exists('c'));
- $this->assertFalse($dataSource->exists('d'));
-
- $this->assertFalse($dataSource->exists('a', true));
- $this->assertFalse($dataSource->exists('d', true));
-
- $this->assertEquals('A', $dataSource->get('a'));
- $this->assertEquals('B', $dataSource->get('b'));
- $this->assertEquals('C', $dataSource->get('c'));
- $this->assertNull($dataSource->get('d'));
-
- $this->assertNull($dataSource->get('a', true));
- $this->assertNull($dataSource->get('d', true));
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/RegexPlaceholderResolverCallbackTest.php b/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/RegexPlaceholderResolverCallbackTest.php
deleted file mode 100644
index b1492d8aa..000000000
--- a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/RegexPlaceholderResolverCallbackTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getMock('Dflydev\PlaceholderResolver\DataSource\DataSourceInterface');
- $dataSource
- ->expects($this->any())
- ->method('exists')
- ->will($this->returnValueMap(array(
- array('foo', false, true),
- array('bar', false, true),
- array('baz', false, true),
- array('bat', false, false),
- array('foo', true, true),
- array('bar', true, false),
- )))
- ;
- $dataSource
- ->expects($this->any())
- ->method('get')
- ->will($this->returnValueMap(array(
- array('foo', false, 'FOO'),
- array('bar', false, 'BAR'),
- array('baz', false, 'BAZ'),
- array('foo', true, 'SYSTEM FOO'),
- )))
- ;
-
- $placeholderResolverCallback = new RegexPlaceholderResolverCallback($dataSource);
-
- define('TEST_CONSTANT_RESOLVE', 'abc123');
-
- $this->assertEquals('FOO', $placeholderResolverCallback->callback(array('${foo}', 'foo')));
- $this->assertEquals('BAR', $placeholderResolverCallback->callback(array('${bar}', 'bar')));
- $this->assertEquals('BAZ', $placeholderResolverCallback->callback(array('${baz}', 'baz')));
- $this->assertEquals('${bat}', $placeholderResolverCallback->callback(array('${bat}', 'bat')));
- $this->assertEquals('SYSTEM FOO', $placeholderResolverCallback->callback(array('${SYSTEM:foo}', 'SYSTEM:foo')));
- $this->assertEquals('${SYSTEM:bar}', $placeholderResolverCallback->callback(array('${SYSTEM:bar}', 'SYSTEM:bar')));
- $this->assertEquals('SYSTEM FOO', $placeholderResolverCallback->callback(array('${SERVER:foo}', 'SERVER:foo')));
- $this->assertEquals('${SERVER:bar}', $placeholderResolverCallback->callback(array('${SERVER:bar}', 'SERVER:bar')));
- $this->assertEquals('abc123', $placeholderResolverCallback->callback(array('${CONSTANT:TEST_CONSTANT_RESOLVE}', 'CONSTANT:TEST_CONSTANT_RESOLVE')));
- $this->assertEquals('${CONSTANT:MISSING_TEST_CONSTANT_RESOLVE}', $placeholderResolverCallback->callback(array('${CONSTANT:MISSING_TEST_CONSTANT_RESOLVE}', 'CONSTANT:MISSING_TEST_CONSTANT_RESOLVE')));
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/RegexPlaceholderResolverTest.php b/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/RegexPlaceholderResolverTest.php
deleted file mode 100644
index 5c71090c7..000000000
--- a/vendor/dflydev/placeholder-resolver/tests/Dflydev/PlaceholderResolver/RegexPlaceholderResolverTest.php
+++ /dev/null
@@ -1,101 +0,0 @@
-getMock('Dflydev\PlaceholderResolver\DataSource\DataSourceInterface');
- $dataSource
- ->expects($this->any())
- ->method('exists')
- ->will($this->returnValueMap(array(
- array('foo', false, true),
- array('bar', false, true),
- array('baz', false, true),
- array('bat', false, false),
- array('composite', false, true),
- array('FOO.BAR', false, true),
- array('FOO.BAR.BAZ', false, false),
- )))
- ;
- $dataSource
- ->expects($this->any())
- ->method('get')
- ->will($this->returnValueMap(array(
- array('foo', false, 'FOO'),
- array('bar', false, 'BAR'),
- array('baz', false, 'BAZ'),
- array('composite', false, '${foo}-${bar}'),
- array('FOO.BAR', false, 'Foo Dot Bar'),
- )))
- ;
-
- $placeholderResolver = new RegexPlaceholderResolver($dataSource);
-
- $this->assertEquals("FOO", $placeholderResolver->resolvePlaceholder('${foo}'));
- $this->assertEquals("BAR", $placeholderResolver->resolvePlaceholder('${bar}'));
- $this->assertEquals("BAZ", $placeholderResolver->resolvePlaceholder('${baz}'));
- $this->assertEquals("FOO-BAR", $placeholderResolver->resolvePlaceholder('${composite}'));
- $this->assertEquals("FOO-BAR-BAZ", $placeholderResolver->resolvePlaceholder('${composite}-${baz}'));
- $this->assertEquals("Foo Dot Bar", $placeholderResolver->resolvePlaceholder('${${foo}.${bar}}'));
- $this->assertEquals('${FOO.BAR.BAZ}', $placeholderResolver->resolvePlaceholder('${FOO.BAR.BAZ}'));
- }
-
- /**
- * @dataProvider resolvePlaceholderPrefixAndSuffixProvider
- */
- public function testResolvePlaceholderPrefixAndSuffix($prefix, $suffix)
- {
- $dataSource = $this->getMock('Dflydev\PlaceholderResolver\DataSource\DataSourceInterface');
- $dataSource
- ->expects($this->any())
- ->method('exists')
- ->will($this->returnValueMap(array(
- array('foo', false, true),
- array('bar', false, true),
- array('baz', false, true),
- array('bat', false, false),
- array('composite', false, true),
- array('FOO.BAR', false, true),
- )))
- ;
- $dataSource
- ->expects($this->any())
- ->method('get')
- ->will($this->returnValueMap(array(
- array('foo', false, 'FOO'),
- array('bar', false, 'BAR'),
- array('baz', false, 'BAZ'),
- array('composite', false, $prefix.'foo'.$suffix.'-'.$prefix.'bar'.$suffix),
- array('FOO.BAR', false, 'Foo Dot Bar'),
- )))
- ;
-
- $placeholderResolver = new RegexPlaceholderResolver($dataSource, $prefix, $suffix);
- $this->assertEquals("FOO", $placeholderResolver->resolvePlaceholder($prefix.'foo'.$suffix));
- $this->assertEquals($prefix.'bat'.$suffix, $placeholderResolver->resolvePlaceholder($prefix.'bat'.$suffix));
- $this->assertEquals("FOO-BAR", $placeholderResolver->resolvePlaceholder($prefix.'composite'.$suffix));
- $this->assertEquals("FOO-BAR-BAZ", $placeholderResolver->resolvePlaceholder($prefix.'composite'.$suffix.'-'.$prefix.'baz'.$suffix));
- $this->assertEquals("Foo Dot Bar", $placeholderResolver->resolvePlaceholder($prefix.$prefix.'foo'.$suffix.'.'.$prefix.'bar'.$suffix.$suffix));
- }
-
- public function resolvePlaceholderPrefixAndSuffixProvider()
- {
- return array(
- array('%', '%'),
- array('<', '>'),
- array('(<)', '(>)'),
- );
- }
-}
diff --git a/vendor/dflydev/placeholder-resolver/tests/bootstrap.php b/vendor/dflydev/placeholder-resolver/tests/bootstrap.php
deleted file mode 100644
index 02d21d3b0..000000000
--- a/vendor/dflydev/placeholder-resolver/tests/bootstrap.php
+++ /dev/null
@@ -1,13 +0,0 @@
-getHomeDir();
-echo $xdg->getHomeConfigDir()
-echo $xdg->getHomeDataDir()
-echo $xdg->getHomeCacheDir()
-echo $xdg->getRuntimeDir()
-
-$xdg->getDataDirs() // returns array
-$xdg->getConfigDirs() // returns array
-```
-
-## Testing
-
-``` bash
-$ phpunit
-```
-
-## License
-
-The MIT License (MIT). Please see [License File](https://github.com/dnoegel/php-xdg-base-dir/blob/master/LICENSE) for more information.
diff --git a/vendor/dnoegel/php-xdg-base-dir/composer.json b/vendor/dnoegel/php-xdg-base-dir/composer.json
deleted file mode 100644
index f6caf31a2..000000000
--- a/vendor/dnoegel/php-xdg-base-dir/composer.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "name": "dnoegel/php-xdg-base-dir",
- "description": "implementation of xdg base directory specification for php",
- "type": "project",
- "license": "MIT",
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "@stable"
- },
- "autoload": {
- "psr-4": {
- "XdgBaseDir\\": "src/"
- }
- }
-}
diff --git a/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist b/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist
deleted file mode 100644
index 4000c012d..000000000
--- a/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
- ./tests/
-
-
-
-
-
- ./src/
-
-
-
diff --git a/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php b/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php
deleted file mode 100644
index e2acda19d..000000000
--- a/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php
+++ /dev/null
@@ -1,121 +0,0 @@
-getHomeDir() . DIRECTORY_SEPARATOR . '.config';
-
- return $path;
- }
-
- /**
- * @return string
- */
- public function getHomeDataDir()
- {
- $path = getenv('XDG_DATA_HOME') ?: $this->getHomeDir() . DIRECTORY_SEPARATOR . '.local' . DIRECTORY_SEPARATOR . 'share';
-
- return $path;
- }
-
- /**
- * @return array
- */
- public function getConfigDirs()
- {
- $configDirs = getenv('XDG_CONFIG_DIRS') ? explode(':', getenv('XDG_CONFIG_DIRS')) : array('/etc/xdg');
-
- $paths = array_merge(array($this->getHomeConfigDir()), $configDirs);
-
- return $paths;
- }
-
- /**
- * @return array
- */
- public function getDataDirs()
- {
- $dataDirs = getenv('XDG_DATA_DIRS') ? explode(':', getenv('XDG_DATA_DIRS')) : array('/usr/local/share', '/usr/share');
-
- $paths = array_merge(array($this->getHomeDataDir()), $dataDirs);
-
- return $paths;
- }
-
- /**
- * @return string
- */
- public function getHomeCacheDir()
- {
- $path = getenv('XDG_CACHE_HOME') ?: $this->getHomeDir() . DIRECTORY_SEPARATOR . '.cache';
-
- return $path;
-
- }
-
- public function getRuntimeDir($strict=true)
- {
- if ($runtimeDir = getenv('XDG_RUNTIME_DIR')) {
- return $runtimeDir;
- }
-
- if ($strict) {
- throw new \RuntimeException('XDG_RUNTIME_DIR was not set');
- }
-
- $fallback = sys_get_temp_dir() . DIRECTORY_SEPARATOR . self::RUNTIME_DIR_FALLBACK . getenv('USER');
-
- $create = false;
-
- if (!is_dir($fallback)) {
- mkdir($fallback, 0700, true);
- }
-
- $st = lstat($fallback);
-
- # The fallback must be a directory
- if (!$st['mode'] & self::S_IFDIR) {
- rmdir($fallback);
- $create = true;
- } elseif ($st['uid'] != getmyuid() ||
- $st['mode'] & (self::S_IRWXG | self::S_IRWXO)
- ) {
- rmdir($fallback);
- $create = true;
- }
-
- if ($create) {
- mkdir($fallback, 0700, true);
- }
-
- return $fallback;
- }
-
-}
diff --git a/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php b/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php
deleted file mode 100644
index 92c2e07ed..000000000
--- a/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-assertEquals('/fake-dir', $this->getXdg()->getHomeDir());
- }
-
- public function testGetFallbackHomeDir()
- {
- putenv('HOME=');
- putenv('HOMEDRIVE=C:');
- putenv('HOMEPATH=fake-dir');
- $this->assertEquals('C:/fake-dir', $this->getXdg()->getHomeDir());
- }
-
- public function testXdgPutCache()
- {
- putenv('XDG_DATA_HOME=tmp/');
- putenv('XDG_CONFIG_HOME=tmp/');
- putenv('XDG_CACHE_HOME=tmp/');
- $this->assertEquals('tmp/', $this->getXdg()->getHomeCacheDir());
- }
-
- public function testXdgPutData()
- {
- putenv('XDG_DATA_HOME=tmp/');
- $this->assertEquals('tmp/', $this->getXdg()->getHomeDataDir());
- }
-
- public function testXdgPutConfig()
- {
- putenv('XDG_CONFIG_HOME=tmp/');
- $this->assertEquals('tmp/', $this->getXdg()->getHomeConfigDir());
- }
-
- public function testXdgDataDirsShouldIncludeHomeDataDir()
- {
- putenv('XDG_DATA_HOME=tmp/');
- putenv('XDG_CONFIG_HOME=tmp/');
-
- $this->assertArrayHasKey('tmp/', array_flip($this->getXdg()->getDataDirs()));
- }
-
- public function testXdgConfigDirsShouldIncludeHomeConfigDir()
- {
- putenv('XDG_CONFIG_HOME=tmp/');
-
- $this->assertArrayHasKey('tmp/', array_flip($this->getXdg()->getConfigDirs()));
- }
-
- /**
- * If XDG_RUNTIME_DIR is set, it should be returned
- */
- public function testGetRuntimeDir()
- {
- putenv('XDG_RUNTIME_DIR=/tmp/');
- $runtimeDir = $this->getXdg()->getRuntimeDir();
-
- $this->assertEquals(is_dir($runtimeDir), true);
- }
-
- /**
- * In strict mode, an exception should be shown if XDG_RUNTIME_DIR does not exist
- *
- * @expectedException \RuntimeException
- */
- public function testGetRuntimeDirShouldThrowException()
- {
- putenv('XDG_RUNTIME_DIR=');
- $this->getXdg()->getRuntimeDir(true);
- }
-
- /**
- * In fallback mode a directory should be created
- */
- public function testGetRuntimeDirShouldCreateDirectory()
- {
- putenv('XDG_RUNTIME_DIR=');
- $dir = $this->getXdg()->getRuntimeDir(false);
- $permission = decoct(fileperms($dir) & 0777);
- $this->assertEquals(700, $permission);
- }
-
- /**
- * Ensure, that the fallback directories are created with correct permission
- */
- public function testGetRuntimeShouldDeleteDirsWithWrongPermission()
- {
- $runtimeDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . XdgBaseDir\Xdg::RUNTIME_DIR_FALLBACK . getenv('USER');
-
- rmdir($runtimeDir);
- mkdir($runtimeDir, 0764, true);
-
- // Permission should be wrong now
- $permission = decoct(fileperms($runtimeDir) & 0777);
- $this->assertEquals(764, $permission);
-
- putenv('XDG_RUNTIME_DIR=');
- $dir = $this->getXdg()->getRuntimeDir(false);
-
- // Permission should be fixed
- $permission = decoct(fileperms($dir) & 0777);
- $this->assertEquals(700, $permission);
- }
-}
diff --git a/vendor/doctrine/annotations/CHANGELOG.md b/vendor/doctrine/annotations/CHANGELOG.md
deleted file mode 100644
index 100b006a3..000000000
--- a/vendor/doctrine/annotations/CHANGELOG.md
+++ /dev/null
@@ -1,130 +0,0 @@
-## Changelog
-
-### 1.5.0
-
-This release increments the minimum supported PHP version to 7.1.0.
-
-Also, HHVM official support has been dropped.
-
-Some noticeable performance improvements to annotation autoloading
-have been applied, making failed annotation autoloading less heavy
-on the filesystem access.
-
-- [133: Add @throws annotation in AnnotationReader#__construct()](https://github.com/doctrine/annotations/issues/133) thanks to @SenseException
-- [134: Require PHP 7.1, drop HHVM support](https://github.com/doctrine/annotations/issues/134) thanks to @lcobucci
-- [135: Prevent the same loader from being registered twice](https://github.com/doctrine/annotations/issues/135) thanks to @jrjohnson
-- [137: #135 optimise multiple class load attempts in AnnotationRegistry](https://github.com/doctrine/annotations/issues/137) thanks to @Ocramius
-
-
-### 1.4.0
-
-This release fix an issue were some annotations could be not loaded if the namespace in the use statement started with a backslash.
-It also update the tests and drop the support for php 5.X
-
-- [115: Missing annotations with the latest composer version](https://github.com/doctrine/annotations/issues/115) thanks to @pascalporedda
-- [120: Missing annotations with the latest composer version](https://github.com/doctrine/annotations/pull/120) thanks to @gnat42
-- [121: Adding a more detailed explanation of the test](https://github.com/doctrine/annotations/pull/121) thanks to @mikeSimonson
-- [101: Test annotation parameters containing space](https://github.com/doctrine/annotations/pull/101) thanks to @mikeSimonson
-- [111: Cleanup: move to correct phpunit assertions](https://github.com/doctrine/annotations/pull/111) thanks to @Ocramius
-- [112: Removes support for PHP 5.x](https://github.com/doctrine/annotations/pull/112) thanks to @railto
-- [113: bumped phpunit version to 5.7](https://github.com/doctrine/annotations/pull/113) thanks to @gabbydgab
-- [114: Enhancement: Use SVG Travis build badge](https://github.com/doctrine/annotations/pull/114) thanks to @localheinz
-- [118: Integrating PHPStan](https://github.com/doctrine/annotations/pull/118) thanks to @ondrejmirtes
-
-### 1.3.1 - 2016-12-30
-
-This release fixes an issue with ignored annotations that were already
-autoloaded, causing the `SimpleAnnotationReader` to pick them up
-anyway. [#110](https://github.com/doctrine/annotations/pull/110)
-
-Additionally, an issue was fixed in the `CachedReader`, which was
-not correctly checking the freshness of cached annotations when
-traits were defined on a class. [#105](https://github.com/doctrine/annotations/pull/105)
-
-Total issues resolved: **2**
-
-- [105: Return single max timestamp](https://github.com/doctrine/annotations/pull/105)
-- [110: setIgnoreNotImportedAnnotations(true) didn’t work for existing classes](https://github.com/doctrine/annotations/pull/110)
-
-### 1.3.0
-
-This release introduces a PHP version bump. `doctrine/annotations` now requires PHP
-5.6 or later to be installed.
-
-A series of additional improvements have been introduced:
-
- * support for PHP 7 "grouped use statements"
- * support for ignoring entire namespace names
- via `Doctrine\Common\Annotations\AnnotationReader::addGlobalIgnoredNamespace()` and
- `Doctrine\Common\Annotations\DocParser::setIgnoredAnnotationNamespaces()`. This will
- allow you to ignore annotations from namespaces that you cannot autoload
- * testing all parent classes and interfaces when checking if the annotation cache
- in the `CachedReader` is fresh
- * simplifying the cache keys used by the `CachedReader`: keys are no longer artificially
- namespaced, since `Doctrine\Common\Cache` already supports that
- * corrected parsing of multibyte strings when `mbstring.func_overload` is enabled
- * corrected parsing of annotations when `"\t"` is put before the first annotation
- in a docblock
- * allow skipping non-imported annotations when a custom `DocParser` is passed to
- the `AnnotationReader` constructor
-
-Total issues resolved: **15**
-
-- [45: DocParser can now ignore whole namespaces](https://github.com/doctrine/annotations/pull/45)
-- [57: Switch to the docker-based infrastructure on Travis](https://github.com/doctrine/annotations/pull/57)
-- [59: opcache.load_comments has been removed from PHP 7](https://github.com/doctrine/annotations/pull/59)
-- [62: [CachedReader\ Test traits and parent class to see if cache is fresh](https://github.com/doctrine/annotations/pull/62)
-- [65: Remove cache salt making key unnecessarily long](https://github.com/doctrine/annotations/pull/65)
-- [66: Fix of incorrect parsing multibyte strings](https://github.com/doctrine/annotations/pull/66)
-- [68: Annotations that are indented by tab are not processed.](https://github.com/doctrine/annotations/issues/68)
-- [69: Support for Group Use Statements](https://github.com/doctrine/annotations/pull/69)
-- [70: Allow tab character before first annotation in DocBlock](https://github.com/doctrine/annotations/pull/70)
-- [74: Ignore not registered annotations fix](https://github.com/doctrine/annotations/pull/74)
-- [92: Added tests for AnnotationRegistry class.](https://github.com/doctrine/annotations/pull/92)
-- [96: Fix/#62 check trait and parent class ttl in annotations](https://github.com/doctrine/annotations/pull/96)
-- [97: Feature - #45 - allow ignoring entire namespaces](https://github.com/doctrine/annotations/pull/97)
-- [98: Enhancement/#65 remove cache salt from cached reader](https://github.com/doctrine/annotations/pull/98)
-- [99: Fix - #70 - allow tab character before first annotation in docblock](https://github.com/doctrine/annotations/pull/99)
-
-### 1.2.4
-
-Total issues resolved: **1**
-
-- [51: FileCacheReader::saveCacheFile::unlink fix](https://github.com/doctrine/annotations/pull/51)
-
-### 1.2.3
-
-Total issues resolved: [**2**](https://github.com/doctrine/annotations/milestones/v1.2.3)
-
-- [49: #46 - applying correct `chmod()` to generated cache file](https://github.com/doctrine/annotations/pull/49)
-- [50: Hotfix: match escaped quotes (revert #44)](https://github.com/doctrine/annotations/pull/50)
-
-### 1.2.2
-
-Total issues resolved: **4**
-
-- [43: Exclude files from distribution with .gitattributes](https://github.com/doctrine/annotations/pull/43)
-- [44: Update DocLexer.php](https://github.com/doctrine/annotations/pull/44)
-- [46: A plain "file_put_contents" can cause havoc](https://github.com/doctrine/annotations/pull/46)
-- [48: Deprecating the `FileCacheReader` in 1.2.2: will be removed in 2.0.0](https://github.com/doctrine/annotations/pull/48)
-
-### 1.2.1
-
-Total issues resolved: **4**
-
-- [38: fixes doctrine/common#326](https://github.com/doctrine/annotations/pull/38)
-- [39: Remove superfluous NS](https://github.com/doctrine/annotations/pull/39)
-- [41: Warn if load_comments is not enabled.](https://github.com/doctrine/annotations/pull/41)
-- [42: Clean up unused uses](https://github.com/doctrine/annotations/pull/42)
-
-### 1.2.0
-
- * HHVM support
- * Allowing dangling comma in annotations
- * Excluded annotations are no longer autoloaded
- * Importing namespaces also in traits
- * Added support for `::class` 5.5-style constant, works also in 5.3 and 5.4
-
-### 1.1.0
-
- * Add Exception when ZendOptimizer+ or Opcache is configured to drop comments
diff --git a/vendor/doctrine/annotations/LICENSE b/vendor/doctrine/annotations/LICENSE
deleted file mode 100644
index 5e781fce4..000000000
--- a/vendor/doctrine/annotations/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2013 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/annotations/README.md b/vendor/doctrine/annotations/README.md
deleted file mode 100644
index 8f89ea545..000000000
--- a/vendor/doctrine/annotations/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# Doctrine Annotations
-
-[![Build Status](https://travis-ci.org/doctrine/annotations.svg?branch=master)](https://travis-ci.org/doctrine/annotations)
-[![Dependency Status](https://www.versioneye.com/package/php--doctrine--annotations/badge.png)](https://www.versioneye.com/package/php--doctrine--annotations)
-[![Reference Status](https://www.versioneye.com/php/doctrine:annotations/reference_badge.svg)](https://www.versioneye.com/php/doctrine:annotations/references)
-[![Total Downloads](https://poser.pugx.org/doctrine/annotations/downloads.png)](https://packagist.org/packages/doctrine/annotations)
-[![Latest Stable Version](https://poser.pugx.org/doctrine/annotations/v/stable.png)](https://packagist.org/packages/doctrine/annotations)
-
-Docblock Annotations Parser library (extracted from [Doctrine Common](https://github.com/doctrine/common)).
-
-## Documentation
-
-See the [doctrine-project website](http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/annotations.html).
-
-## Changelog
-
-See [CHANGELOG.md](CHANGELOG.md).
diff --git a/vendor/doctrine/annotations/composer.json b/vendor/doctrine/annotations/composer.json
deleted file mode 100644
index cd5b63097..000000000
--- a/vendor/doctrine/annotations/composer.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "doctrine/annotations",
- "type": "library",
- "description": "Docblock Annotations Parser",
- "keywords": ["annotations", "docblock", "parser"],
- "homepage": "http://www.doctrine-project.org",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
- ],
- "require": {
- "php": "^7.1",
- "doctrine/lexer": "1.*"
- },
- "require-dev": {
- "doctrine/cache": "1.*",
- "phpunit/phpunit": "^6.4"
- },
- "autoload": {
- "psr-4": { "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" }
- },
- "autoload-dev": {
- "psr-4": { "Doctrine\\Tests\\Common\\Annotations\\": "tests/Doctrine/Tests/Common/Annotations" }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.6.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php
deleted file mode 100644
index a79a0f8f0..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php
+++ /dev/null
@@ -1,79 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * Annotations class.
- *
- * @author Benjamin Eberlei
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- */
-class Annotation
-{
- /**
- * Value property. Common among all derived classes.
- *
- * @var string
- */
- public $value;
-
- /**
- * Constructor.
- *
- * @param array $data Key-value for properties to be defined in this class.
- */
- public final function __construct(array $data)
- {
- foreach ($data as $key => $value) {
- $this->$key = $value;
- }
- }
-
- /**
- * Error handler for unknown property accessor in Annotation class.
- *
- * @param string $name Unknown property name.
- *
- * @throws \BadMethodCallException
- */
- public function __get($name)
- {
- throw new \BadMethodCallException(
- sprintf("Unknown property '%s' on annotation '%s'.", $name, get_class($this))
- );
- }
-
- /**
- * Error handler for unknown property mutator in Annotation class.
- *
- * @param string $name Unknown property name.
- * @param mixed $value Property value.
- *
- * @throws \BadMethodCallException
- */
- public function __set($name, $value)
- {
- throw new \BadMethodCallException(
- sprintf("Unknown property '%s' on annotation '%s'.", $name, get_class($this))
- );
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php
deleted file mode 100644
index dbef6df08..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php
+++ /dev/null
@@ -1,47 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations\Annotation;
-
-/**
- * Annotation that can be used to signal to the parser
- * to check the attribute type during the parsing process.
- *
- * @author Fabio B. Silva
- *
- * @Annotation
- */
-final class Attribute
-{
- /**
- * @var string
- */
- public $name;
-
- /**
- * @var string
- */
- public $type;
-
- /**
- * @var boolean
- */
- public $required = false;
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attributes.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attributes.php
deleted file mode 100644
index 53134e309..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attributes.php
+++ /dev/null
@@ -1,37 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations\Annotation;
-
-/**
- * Annotation that can be used to signal to the parser
- * to check the types of all declared attributes during the parsing process.
- *
- * @author Fabio B. Silva
- *
- * @Annotation
- */
-final class Attributes
-{
- /**
- * @var array
- */
- public $value;
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php
deleted file mode 100644
index e122a7535..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php
+++ /dev/null
@@ -1,84 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations\Annotation;
-
-/**
- * Annotation that can be used to signal to the parser
- * to check the available values during the parsing process.
- *
- * @since 2.4
- * @author Fabio B. Silva
- *
- * @Annotation
- * @Attributes({
- * @Attribute("value", required = true, type = "array"),
- * @Attribute("literal", required = false, type = "array")
- * })
- */
-final class Enum
-{
- /**
- * @var array
- */
- public $value;
-
- /**
- * Literal target declaration.
- *
- * @var array
- */
- public $literal;
-
- /**
- * Annotation constructor.
- *
- * @param array $values
- *
- * @throws \InvalidArgumentException
- */
- public function __construct(array $values)
- {
- if ( ! isset($values['literal'])) {
- $values['literal'] = array();
- }
-
- foreach ($values['value'] as $var) {
- if( ! is_scalar($var)) {
- throw new \InvalidArgumentException(sprintf(
- '@Enum supports only scalar values "%s" given.',
- is_object($var) ? get_class($var) : gettype($var)
- ));
- }
- }
-
- foreach ($values['literal'] as $key => $var) {
- if( ! in_array($key, $values['value'])) {
- throw new \InvalidArgumentException(sprintf(
- 'Undefined enumerator value "%s" for literal "%s".',
- $key , $var
- ));
- }
- }
-
- $this->value = $values['value'];
- $this->literal = $values['literal'];
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php
deleted file mode 100644
index 175226a67..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php
+++ /dev/null
@@ -1,54 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations\Annotation;
-
-/**
- * Annotation that can be used to signal to the parser to ignore specific
- * annotations during the parsing process.
- *
- * @Annotation
- * @author Johannes M. Schmitt
- */
-final class IgnoreAnnotation
-{
- /**
- * @var array
- */
- public $names;
-
- /**
- * Constructor.
- *
- * @param array $values
- *
- * @throws \RuntimeException
- */
- public function __construct(array $values)
- {
- if (is_string($values['value'])) {
- $values['value'] = array($values['value']);
- }
- if (!is_array($values['value'])) {
- throw new \RuntimeException(sprintf('@IgnoreAnnotation expects either a string name, or an array of strings, but got %s.', json_encode($values['value'])));
- }
-
- $this->names = $values['value'];
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Required.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Required.php
deleted file mode 100644
index d67f96068..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Required.php
+++ /dev/null
@@ -1,33 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations\Annotation;
-
-/**
- * Annotation that can be used to signal to the parser
- * to check if that attribute is required during the parsing process.
- *
- * @author Fabio B. Silva
- *
- * @Annotation
- */
-final class Required
-{
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php
deleted file mode 100644
index f6c544535..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php
+++ /dev/null
@@ -1,107 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations\Annotation;
-
-/**
- * Annotation that can be used to signal to the parser
- * to check the annotation target during the parsing process.
- *
- * @author Fabio B. Silva
- *
- * @Annotation
- */
-final class Target
-{
- const TARGET_CLASS = 1;
- const TARGET_METHOD = 2;
- const TARGET_PROPERTY = 4;
- const TARGET_ANNOTATION = 8;
- const TARGET_ALL = 15;
-
- /**
- * @var array
- */
- private static $map = array(
- 'ALL' => self::TARGET_ALL,
- 'CLASS' => self::TARGET_CLASS,
- 'METHOD' => self::TARGET_METHOD,
- 'PROPERTY' => self::TARGET_PROPERTY,
- 'ANNOTATION' => self::TARGET_ANNOTATION,
- );
-
- /**
- * @var array
- */
- public $value;
-
- /**
- * Targets as bitmask.
- *
- * @var integer
- */
- public $targets;
-
- /**
- * Literal target declaration.
- *
- * @var integer
- */
- public $literal;
-
- /**
- * Annotation constructor.
- *
- * @param array $values
- *
- * @throws \InvalidArgumentException
- */
- public function __construct(array $values)
- {
- if (!isset($values['value'])){
- $values['value'] = null;
- }
- if (is_string($values['value'])){
- $values['value'] = array($values['value']);
- }
- if (!is_array($values['value'])){
- throw new \InvalidArgumentException(
- sprintf('@Target expects either a string value, or an array of strings, "%s" given.',
- is_object($values['value']) ? get_class($values['value']) : gettype($values['value'])
- )
- );
- }
-
- $bitmask = 0;
- foreach ($values['value'] as $literal) {
- if(!isset(self::$map[$literal])){
- throw new \InvalidArgumentException(
- sprintf('Invalid Target "%s". Available targets: [%s]',
- $literal, implode(', ', array_keys(self::$map)))
- );
- }
- $bitmask |= self::$map[$literal];
- }
-
- $this->targets = $bitmask;
- $this->value = $values['value'];
- $this->literal = implode(', ', $this->value);
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php
deleted file mode 100644
index d06fe663c..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php
+++ /dev/null
@@ -1,197 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * Description of AnnotationException
- *
- * @since 2.0
- * @author Benjamin Eberlei
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- */
-class AnnotationException extends \Exception
-{
- /**
- * Creates a new AnnotationException describing a Syntax error.
- *
- * @param string $message Exception message
- *
- * @return AnnotationException
- */
- public static function syntaxError($message)
- {
- return new self('[Syntax Error] ' . $message);
- }
-
- /**
- * Creates a new AnnotationException describing a Semantical error.
- *
- * @param string $message Exception message
- *
- * @return AnnotationException
- */
- public static function semanticalError($message)
- {
- return new self('[Semantical Error] ' . $message);
- }
-
- /**
- * Creates a new AnnotationException describing an error which occurred during
- * the creation of the annotation.
- *
- * @since 2.2
- *
- * @param string $message
- *
- * @return AnnotationException
- */
- public static function creationError($message)
- {
- return new self('[Creation Error] ' . $message);
- }
-
- /**
- * Creates a new AnnotationException describing a type error.
- *
- * @since 1.1
- *
- * @param string $message
- *
- * @return AnnotationException
- */
- public static function typeError($message)
- {
- return new self('[Type Error] ' . $message);
- }
-
- /**
- * Creates a new AnnotationException describing a constant semantical error.
- *
- * @since 2.3
- *
- * @param string $identifier
- * @param string $context
- *
- * @return AnnotationException
- */
- public static function semanticalErrorConstants($identifier, $context = null)
- {
- return self::semanticalError(sprintf(
- "Couldn't find constant %s%s.",
- $identifier,
- $context ? ', ' . $context : ''
- ));
- }
-
- /**
- * Creates a new AnnotationException describing an type error of an attribute.
- *
- * @since 2.2
- *
- * @param string $attributeName
- * @param string $annotationName
- * @param string $context
- * @param string $expected
- * @param mixed $actual
- *
- * @return AnnotationException
- */
- public static function attributeTypeError($attributeName, $annotationName, $context, $expected, $actual)
- {
- return self::typeError(sprintf(
- 'Attribute "%s" of @%s declared on %s expects %s, but got %s.',
- $attributeName,
- $annotationName,
- $context,
- $expected,
- is_object($actual) ? 'an instance of ' . get_class($actual) : gettype($actual)
- ));
- }
-
- /**
- * Creates a new AnnotationException describing an required error of an attribute.
- *
- * @since 2.2
- *
- * @param string $attributeName
- * @param string $annotationName
- * @param string $context
- * @param string $expected
- *
- * @return AnnotationException
- */
- public static function requiredError($attributeName, $annotationName, $context, $expected)
- {
- return self::typeError(sprintf(
- 'Attribute "%s" of @%s declared on %s expects %s. This value should not be null.',
- $attributeName,
- $annotationName,
- $context,
- $expected
- ));
- }
-
- /**
- * Creates a new AnnotationException describing a invalid enummerator.
- *
- * @since 2.4
- *
- * @param string $attributeName
- * @param string $annotationName
- * @param string $context
- * @param array $available
- * @param mixed $given
- *
- * @return AnnotationException
- */
- public static function enumeratorError($attributeName, $annotationName, $context, $available, $given)
- {
- return new self(sprintf(
- '[Enum Error] Attribute "%s" of @%s declared on %s accept only [%s], but got %s.',
- $attributeName,
- $annotationName,
- $context,
- implode(', ', $available),
- is_object($given) ? get_class($given) : $given
- ));
- }
-
- /**
- * @return AnnotationException
- */
- public static function optimizerPlusSaveComments()
- {
- return new self(
- "You have to enable opcache.save_comments=1 or zend_optimizerplus.save_comments=1."
- );
- }
-
- /**
- * @return AnnotationException
- */
- public static function optimizerPlusLoadComments()
- {
- return new self(
- "You have to enable opcache.load_comments=1 or zend_optimizerplus.load_comments=1."
- );
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
deleted file mode 100644
index 0c0604965..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
+++ /dev/null
@@ -1,425 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation;
-use Doctrine\Common\Annotations\Annotation\Target;
-use ReflectionClass;
-use ReflectionMethod;
-use ReflectionProperty;
-
-/**
- * A reader for docblock annotations.
- *
- * @author Benjamin Eberlei
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- * @author Johannes M. Schmitt
- */
-class AnnotationReader implements Reader
-{
- /**
- * Global map for imports.
- *
- * @var array
- */
- private static $globalImports = array(
- 'ignoreannotation' => 'Doctrine\Common\Annotations\Annotation\IgnoreAnnotation',
- );
-
- /**
- * A list with annotations that are not causing exceptions when not resolved to an annotation class.
- *
- * The names are case sensitive.
- *
- * @var array
- */
- private static $globalIgnoredNames = array(
- // Annotation tags
- 'Annotation' => true, 'Attribute' => true, 'Attributes' => true,
- /* Can we enable this? 'Enum' => true, */
- 'Required' => true,
- 'Target' => true,
- // Widely used tags (but not existent in phpdoc)
- 'fix' => true , 'fixme' => true,
- 'override' => true,
- // PHPDocumentor 1 tags
- 'abstract'=> true, 'access'=> true,
- 'code' => true,
- 'deprec'=> true,
- 'endcode' => true, 'exception'=> true,
- 'final'=> true,
- 'ingroup' => true, 'inheritdoc'=> true, 'inheritDoc'=> true,
- 'magic' => true,
- 'name'=> true,
- 'toc' => true, 'tutorial'=> true,
- 'private' => true,
- 'static'=> true, 'staticvar'=> true, 'staticVar'=> true,
- 'throw' => true,
- // PHPDocumentor 2 tags.
- 'api' => true, 'author'=> true,
- 'category'=> true, 'copyright'=> true,
- 'deprecated'=> true,
- 'example'=> true,
- 'filesource'=> true,
- 'global'=> true,
- 'ignore'=> true, /* Can we enable this? 'index' => true, */ 'internal'=> true,
- 'license'=> true, 'link'=> true,
- 'method' => true,
- 'package'=> true, 'param'=> true, 'property' => true, 'property-read' => true, 'property-write' => true,
- 'return'=> true,
- 'see'=> true, 'since'=> true, 'source' => true, 'subpackage'=> true,
- 'throws'=> true, 'todo'=> true, 'TODO'=> true,
- 'usedby'=> true, 'uses' => true,
- 'var'=> true, 'version'=> true,
- // PHPUnit tags
- 'codeCoverageIgnore' => true, 'codeCoverageIgnoreStart' => true, 'codeCoverageIgnoreEnd' => true,
- // PHPCheckStyle
- 'SuppressWarnings' => true,
- // PHPStorm
- 'noinspection' => true,
- // PEAR
- 'package_version' => true,
- // PlantUML
- 'startuml' => true, 'enduml' => true,
- // Symfony 3.3 Cache Adapter
- 'experimental' => true
- );
-
- /**
- * A list with annotations that are not causing exceptions when not resolved to an annotation class.
- *
- * The names are case sensitive.
- *
- * @var array
- */
- private static $globalIgnoredNamespaces = array();
-
- /**
- * Add a new annotation to the globally ignored annotation names with regard to exception handling.
- *
- * @param string $name
- */
- static public function addGlobalIgnoredName($name)
- {
- self::$globalIgnoredNames[$name] = true;
- }
-
- /**
- * Add a new annotation to the globally ignored annotation namespaces with regard to exception handling.
- *
- * @param string $namespace
- */
- static public function addGlobalIgnoredNamespace($namespace)
- {
- self::$globalIgnoredNamespaces[$namespace] = true;
- }
-
- /**
- * Annotations parser.
- *
- * @var \Doctrine\Common\Annotations\DocParser
- */
- private $parser;
-
- /**
- * Annotations parser used to collect parsing metadata.
- *
- * @var \Doctrine\Common\Annotations\DocParser
- */
- private $preParser;
-
- /**
- * PHP parser used to collect imports.
- *
- * @var \Doctrine\Common\Annotations\PhpParser
- */
- private $phpParser;
-
- /**
- * In-memory cache mechanism to store imported annotations per class.
- *
- * @var array
- */
- private $imports = array();
-
- /**
- * In-memory cache mechanism to store ignored annotations per class.
- *
- * @var array
- */
- private $ignoredAnnotationNames = array();
-
- /**
- * Constructor.
- *
- * Initializes a new AnnotationReader.
- *
- * @param DocParser $parser
- *
- * @throws AnnotationException
- */
- public function __construct(DocParser $parser = null)
- {
- if (extension_loaded('Zend Optimizer+') && (ini_get('zend_optimizerplus.save_comments') === "0" || ini_get('opcache.save_comments') === "0")) {
- throw AnnotationException::optimizerPlusSaveComments();
- }
-
- if (extension_loaded('Zend OPcache') && ini_get('opcache.save_comments') == 0) {
- throw AnnotationException::optimizerPlusSaveComments();
- }
-
- if (PHP_VERSION_ID < 70000) {
- if (extension_loaded('Zend Optimizer+') && (ini_get('zend_optimizerplus.load_comments') === "0" || ini_get('opcache.load_comments') === "0")) {
- throw AnnotationException::optimizerPlusLoadComments();
- }
-
- if (extension_loaded('Zend OPcache') && ini_get('opcache.load_comments') == 0) {
- throw AnnotationException::optimizerPlusLoadComments();
- }
- }
-
- AnnotationRegistry::registerFile(__DIR__ . '/Annotation/IgnoreAnnotation.php');
-
- $this->parser = $parser ?: new DocParser();
-
- $this->preParser = new DocParser;
-
- $this->preParser->setImports(self::$globalImports);
- $this->preParser->setIgnoreNotImportedAnnotations(true);
-
- $this->phpParser = new PhpParser;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotations(ReflectionClass $class)
- {
- $this->parser->setTarget(Target::TARGET_CLASS);
- $this->parser->setImports($this->getClassImports($class));
- $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
- $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
-
- return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName());
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotation(ReflectionClass $class, $annotationName)
- {
- $annotations = $this->getClassAnnotations($class);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof $annotationName) {
- return $annotation;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotations(ReflectionProperty $property)
- {
- $class = $property->getDeclaringClass();
- $context = 'property ' . $class->getName() . "::\$" . $property->getName();
-
- $this->parser->setTarget(Target::TARGET_PROPERTY);
- $this->parser->setImports($this->getPropertyImports($property));
- $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
- $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
-
- return $this->parser->parse($property->getDocComment(), $context);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotation(ReflectionProperty $property, $annotationName)
- {
- $annotations = $this->getPropertyAnnotations($property);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof $annotationName) {
- return $annotation;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotations(ReflectionMethod $method)
- {
- $class = $method->getDeclaringClass();
- $context = 'method ' . $class->getName() . '::' . $method->getName() . '()';
-
- $this->parser->setTarget(Target::TARGET_METHOD);
- $this->parser->setImports($this->getMethodImports($method));
- $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
- $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
-
- return $this->parser->parse($method->getDocComment(), $context);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotation(ReflectionMethod $method, $annotationName)
- {
- $annotations = $this->getMethodAnnotations($method);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof $annotationName) {
- return $annotation;
- }
- }
-
- return null;
- }
-
- /**
- * Returns the ignored annotations for the given class.
- *
- * @param \ReflectionClass $class
- *
- * @return array
- */
- private function getIgnoredAnnotationNames(ReflectionClass $class)
- {
- $name = $class->getName();
- if (isset($this->ignoredAnnotationNames[$name])) {
- return $this->ignoredAnnotationNames[$name];
- }
-
- $this->collectParsingMetadata($class);
-
- return $this->ignoredAnnotationNames[$name];
- }
-
- /**
- * Retrieves imports.
- *
- * @param \ReflectionClass $class
- *
- * @return array
- */
- private function getClassImports(ReflectionClass $class)
- {
- $name = $class->getName();
- if (isset($this->imports[$name])) {
- return $this->imports[$name];
- }
-
- $this->collectParsingMetadata($class);
-
- return $this->imports[$name];
- }
-
- /**
- * Retrieves imports for methods.
- *
- * @param \ReflectionMethod $method
- *
- * @return array
- */
- private function getMethodImports(ReflectionMethod $method)
- {
- $class = $method->getDeclaringClass();
- $classImports = $this->getClassImports($class);
- if (!method_exists($class, 'getTraits')) {
- return $classImports;
- }
-
- $traitImports = array();
-
- foreach ($class->getTraits() as $trait) {
- if ($trait->hasMethod($method->getName())
- && $trait->getFileName() === $method->getFileName()
- ) {
- $traitImports = array_merge($traitImports, $this->phpParser->parseClass($trait));
- }
- }
-
- return array_merge($classImports, $traitImports);
- }
-
- /**
- * Retrieves imports for properties.
- *
- * @param \ReflectionProperty $property
- *
- * @return array
- */
- private function getPropertyImports(ReflectionProperty $property)
- {
- $class = $property->getDeclaringClass();
- $classImports = $this->getClassImports($class);
- if (!method_exists($class, 'getTraits')) {
- return $classImports;
- }
-
- $traitImports = array();
-
- foreach ($class->getTraits() as $trait) {
- if ($trait->hasProperty($property->getName())) {
- $traitImports = array_merge($traitImports, $this->phpParser->parseClass($trait));
- }
- }
-
- return array_merge($classImports, $traitImports);
- }
-
- /**
- * Collects parsing metadata for a given class.
- *
- * @param \ReflectionClass $class
- */
- private function collectParsingMetadata(ReflectionClass $class)
- {
- $ignoredAnnotationNames = self::$globalIgnoredNames;
- $annotations = $this->preParser->parse($class->getDocComment(), 'class ' . $class->name);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof IgnoreAnnotation) {
- foreach ($annotation->names AS $annot) {
- $ignoredAnnotationNames[$annot] = true;
- }
- }
- }
-
- $name = $class->getName();
-
- $this->imports[$name] = array_merge(
- self::$globalImports,
- $this->phpParser->parseClass($class),
- array('__NAMESPACE__' => $class->getNamespaceName())
- );
-
- $this->ignoredAnnotationNames[$name] = $ignoredAnnotationNames;
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php
deleted file mode 100644
index 13abaf50d..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php
+++ /dev/null
@@ -1,174 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-final class AnnotationRegistry
-{
- /**
- * A map of namespaces to use for autoloading purposes based on a PSR-0 convention.
- *
- * Contains the namespace as key and an array of directories as value. If the value is NULL
- * the include path is used for checking for the corresponding file.
- *
- * This autoloading mechanism does not utilize the PHP autoloading but implements autoloading on its own.
- *
- * @var string[][]|string[]|null[]
- */
- static private $autoloadNamespaces = [];
-
- /**
- * A map of autoloader callables.
- *
- * @var callable[]
- */
- static private $loaders = [];
-
- /**
- * An array of classes which cannot be found
- *
- * @var null[] indexed by class name
- */
- static private $failedToAutoload = [];
-
- public static function reset() : void
- {
- self::$autoloadNamespaces = [];
- self::$loaders = [];
- self::$failedToAutoload = [];
- }
-
- /**
- * Registers file.
- *
- * @deprecated this method is deprecated and will be removed in doctrine/annotations 2.0
- * autoloading should be deferred to the globally registered autoloader by then. For now,
- * use @example AnnotationRegistry::registerLoader('class_exists')
- */
- public static function registerFile(string $file) : void
- {
- require_once $file;
- }
-
- /**
- * Adds a namespace with one or many directories to look for files or null for the include path.
- *
- * Loading of this namespaces will be done with a PSR-0 namespace loading algorithm.
- *
- * @param string $namespace
- * @param string|array|null $dirs
- *
- * @deprecated this method is deprecated and will be removed in doctrine/annotations 2.0
- * autoloading should be deferred to the globally registered autoloader by then. For now,
- * use @example AnnotationRegistry::registerLoader('class_exists')
- */
- public static function registerAutoloadNamespace(string $namespace, $dirs = null) : void
- {
- self::$autoloadNamespaces[$namespace] = $dirs;
- }
-
- /**
- * Registers multiple namespaces.
- *
- * Loading of this namespaces will be done with a PSR-0 namespace loading algorithm.
- *
- * @param string[][]|string[]|null[] $namespaces indexed by namespace name
- *
- * @deprecated this method is deprecated and will be removed in doctrine/annotations 2.0
- * autoloading should be deferred to the globally registered autoloader by then. For now,
- * use @example AnnotationRegistry::registerLoader('class_exists')
- */
- public static function registerAutoloadNamespaces(array $namespaces) : void
- {
- self::$autoloadNamespaces = \array_merge(self::$autoloadNamespaces, $namespaces);
- }
-
- /**
- * Registers an autoloading callable for annotations, much like spl_autoload_register().
- *
- * NOTE: These class loaders HAVE to be silent when a class was not found!
- * IMPORTANT: Loaders have to return true if they loaded a class that could contain the searched annotation class.
- *
- * @deprecated this method is deprecated and will be removed in doctrine/annotations 2.0
- * autoloading should be deferred to the globally registered autoloader by then. For now,
- * use @example AnnotationRegistry::registerLoader('class_exists')
- */
- public static function registerLoader(callable $callable) : void
- {
- // Reset our static cache now that we have a new loader to work with
- self::$failedToAutoload = [];
- self::$loaders[] = $callable;
- }
-
- /**
- * Registers an autoloading callable for annotations, if it is not already registered
- *
- * @deprecated this method is deprecated and will be removed in doctrine/annotations 2.0
- */
- public static function registerUniqueLoader(callable $callable) : void
- {
- if ( ! in_array($callable, self::$loaders, true) ) {
- self::registerLoader($callable);
- }
- }
-
- /**
- * Autoloads an annotation class silently.
- */
- public static function loadAnnotationClass(string $class) : bool
- {
- if (\class_exists($class, false)) {
- return true;
- }
-
- if (\array_key_exists($class, self::$failedToAutoload)) {
- return false;
- }
-
- foreach (self::$autoloadNamespaces AS $namespace => $dirs) {
- if (\strpos($class, $namespace) === 0) {
- $file = \str_replace('\\', \DIRECTORY_SEPARATOR, $class) . '.php';
-
- if ($dirs === null) {
- if ($path = stream_resolve_include_path($file)) {
- require $path;
- return true;
- }
- } else {
- foreach((array) $dirs AS $dir) {
- if (is_file($dir . \DIRECTORY_SEPARATOR . $file)) {
- require $dir . \DIRECTORY_SEPARATOR . $file;
- return true;
- }
- }
- }
- }
- }
-
- foreach (self::$loaders AS $loader) {
- if ($loader($class) === true) {
- return true;
- }
- }
-
- self::$failedToAutoload[$class] = null;
-
- return false;
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
deleted file mode 100644
index 751c1b1b7..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
+++ /dev/null
@@ -1,262 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-use Doctrine\Common\Cache\Cache;
-use ReflectionClass;
-
-/**
- * A cache aware annotation reader.
- *
- * @author Johannes M. Schmitt
- * @author Benjamin Eberlei
- */
-final class CachedReader implements Reader
-{
- /**
- * @var Reader
- */
- private $delegate;
-
- /**
- * @var Cache
- */
- private $cache;
-
- /**
- * @var boolean
- */
- private $debug;
-
- /**
- * @var array
- */
- private $loadedAnnotations = array();
-
- /**
- * Constructor.
- *
- * @param Reader $reader
- * @param Cache $cache
- * @param bool $debug
- */
- public function __construct(Reader $reader, Cache $cache, $debug = false)
- {
- $this->delegate = $reader;
- $this->cache = $cache;
- $this->debug = (boolean) $debug;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotations(ReflectionClass $class)
- {
- $cacheKey = $class->getName();
-
- if (isset($this->loadedAnnotations[$cacheKey])) {
- return $this->loadedAnnotations[$cacheKey];
- }
-
- if (false === ($annots = $this->fetchFromCache($cacheKey, $class))) {
- $annots = $this->delegate->getClassAnnotations($class);
- $this->saveToCache($cacheKey, $annots);
- }
-
- return $this->loadedAnnotations[$cacheKey] = $annots;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotation(ReflectionClass $class, $annotationName)
- {
- foreach ($this->getClassAnnotations($class) as $annot) {
- if ($annot instanceof $annotationName) {
- return $annot;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotations(\ReflectionProperty $property)
- {
- $class = $property->getDeclaringClass();
- $cacheKey = $class->getName().'$'.$property->getName();
-
- if (isset($this->loadedAnnotations[$cacheKey])) {
- return $this->loadedAnnotations[$cacheKey];
- }
-
- if (false === ($annots = $this->fetchFromCache($cacheKey, $class))) {
- $annots = $this->delegate->getPropertyAnnotations($property);
- $this->saveToCache($cacheKey, $annots);
- }
-
- return $this->loadedAnnotations[$cacheKey] = $annots;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName)
- {
- foreach ($this->getPropertyAnnotations($property) as $annot) {
- if ($annot instanceof $annotationName) {
- return $annot;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotations(\ReflectionMethod $method)
- {
- $class = $method->getDeclaringClass();
- $cacheKey = $class->getName().'#'.$method->getName();
-
- if (isset($this->loadedAnnotations[$cacheKey])) {
- return $this->loadedAnnotations[$cacheKey];
- }
-
- if (false === ($annots = $this->fetchFromCache($cacheKey, $class))) {
- $annots = $this->delegate->getMethodAnnotations($method);
- $this->saveToCache($cacheKey, $annots);
- }
-
- return $this->loadedAnnotations[$cacheKey] = $annots;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotation(\ReflectionMethod $method, $annotationName)
- {
- foreach ($this->getMethodAnnotations($method) as $annot) {
- if ($annot instanceof $annotationName) {
- return $annot;
- }
- }
-
- return null;
- }
-
- /**
- * Clears loaded annotations.
- *
- * @return void
- */
- public function clearLoadedAnnotations()
- {
- $this->loadedAnnotations = array();
- }
-
- /**
- * Fetches a value from the cache.
- *
- * @param string $cacheKey The cache key.
- * @param ReflectionClass $class The related class.
- *
- * @return mixed The cached value or false when the value is not in cache.
- */
- private function fetchFromCache($cacheKey, ReflectionClass $class)
- {
- if (($data = $this->cache->fetch($cacheKey)) !== false) {
- if (!$this->debug || $this->isCacheFresh($cacheKey, $class)) {
- return $data;
- }
- }
-
- return false;
- }
-
- /**
- * Saves a value to the cache.
- *
- * @param string $cacheKey The cache key.
- * @param mixed $value The value.
- *
- * @return void
- */
- private function saveToCache($cacheKey, $value)
- {
- $this->cache->save($cacheKey, $value);
- if ($this->debug) {
- $this->cache->save('[C]'.$cacheKey, time());
- }
- }
-
- /**
- * Checks if the cache is fresh.
- *
- * @param string $cacheKey
- * @param ReflectionClass $class
- *
- * @return boolean
- */
- private function isCacheFresh($cacheKey, ReflectionClass $class)
- {
- if (null === $lastModification = $this->getLastModification($class)) {
- return true;
- }
-
- return $this->cache->fetch('[C]'.$cacheKey) >= $lastModification;
- }
-
- /**
- * Returns the time the class was last modified, testing traits and parents
- *
- * @param ReflectionClass $class
- * @return int
- */
- private function getLastModification(ReflectionClass $class)
- {
- $filename = $class->getFileName();
- $parent = $class->getParentClass();
-
- return max(array_merge(
- [$filename ? filemtime($filename) : 0],
- array_map([$this, 'getTraitLastModificationTime'], $class->getTraits()),
- array_map([$this, 'getLastModification'], $class->getInterfaces()),
- $parent ? [$this->getLastModification($parent)] : []
- ));
- }
-
- /**
- * @param ReflectionClass $reflectionTrait
- * @return int
- */
- private function getTraitLastModificationTime(ReflectionClass $reflectionTrait)
- {
- $fileName = $reflectionTrait->getFileName();
-
- return max(array_merge(
- [$fileName ? filemtime($fileName) : 0],
- array_map([$this, 'getTraitLastModificationTime'], $reflectionTrait->getTraits())
- ));
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php
deleted file mode 100644
index d864540e0..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php
+++ /dev/null
@@ -1,134 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-use Doctrine\Common\Lexer\AbstractLexer;
-
-/**
- * Simple lexer for docblock annotations.
- *
- * @author Benjamin Eberlei
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- * @author Johannes M. Schmitt
- */
-final class DocLexer extends AbstractLexer
-{
- const T_NONE = 1;
- const T_INTEGER = 2;
- const T_STRING = 3;
- const T_FLOAT = 4;
-
- // All tokens that are also identifiers should be >= 100
- const T_IDENTIFIER = 100;
- const T_AT = 101;
- const T_CLOSE_CURLY_BRACES = 102;
- const T_CLOSE_PARENTHESIS = 103;
- const T_COMMA = 104;
- const T_EQUALS = 105;
- const T_FALSE = 106;
- const T_NAMESPACE_SEPARATOR = 107;
- const T_OPEN_CURLY_BRACES = 108;
- const T_OPEN_PARENTHESIS = 109;
- const T_TRUE = 110;
- const T_NULL = 111;
- const T_COLON = 112;
-
- /**
- * @var array
- */
- protected $noCase = array(
- '@' => self::T_AT,
- ',' => self::T_COMMA,
- '(' => self::T_OPEN_PARENTHESIS,
- ')' => self::T_CLOSE_PARENTHESIS,
- '{' => self::T_OPEN_CURLY_BRACES,
- '}' => self::T_CLOSE_CURLY_BRACES,
- '=' => self::T_EQUALS,
- ':' => self::T_COLON,
- '\\' => self::T_NAMESPACE_SEPARATOR
- );
-
- /**
- * @var array
- */
- protected $withCase = array(
- 'true' => self::T_TRUE,
- 'false' => self::T_FALSE,
- 'null' => self::T_NULL
- );
-
- /**
- * {@inheritdoc}
- */
- protected function getCatchablePatterns()
- {
- return array(
- '[a-z_\\\][a-z0-9_\:\\\]*[a-z_][a-z0-9_]*',
- '(?:[+-]?[0-9]+(?:[\.][0-9]+)*)(?:[eE][+-]?[0-9]+)?',
- '"(?:""|[^"])*+"',
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getNonCatchablePatterns()
- {
- return array('\s+', '\*+', '(.)');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getType(&$value)
- {
- $type = self::T_NONE;
-
- if ($value[0] === '"') {
- $value = str_replace('""', '"', substr($value, 1, strlen($value) - 2));
-
- return self::T_STRING;
- }
-
- if (isset($this->noCase[$value])) {
- return $this->noCase[$value];
- }
-
- if ($value[0] === '_' || $value[0] === '\\' || ctype_alpha($value[0])) {
- return self::T_IDENTIFIER;
- }
-
- $lowerValue = strtolower($value);
-
- if (isset($this->withCase[$lowerValue])) {
- return $this->withCase[$lowerValue];
- }
-
- // Checking numeric value
- if (is_numeric($value)) {
- return (strpos($value, '.') !== false || stripos($value, 'e') !== false)
- ? self::T_FLOAT : self::T_INTEGER;
- }
-
- return $type;
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
deleted file mode 100644
index eb7a457f5..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
+++ /dev/null
@@ -1,1190 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-use Doctrine\Common\Annotations\Annotation\Attribute;
-use ReflectionClass;
-use Doctrine\Common\Annotations\Annotation\Enum;
-use Doctrine\Common\Annotations\Annotation\Target;
-use Doctrine\Common\Annotations\Annotation\Attributes;
-
-/**
- * A parser for docblock annotations.
- *
- * It is strongly discouraged to change the default annotation parsing process.
- *
- * @author Benjamin Eberlei
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- * @author Johannes M. Schmitt
- * @author Fabio B. Silva
- */
-final class DocParser
-{
- /**
- * An array of all valid tokens for a class name.
- *
- * @var array
- */
- private static $classIdentifiers = array(
- DocLexer::T_IDENTIFIER,
- DocLexer::T_TRUE,
- DocLexer::T_FALSE,
- DocLexer::T_NULL
- );
-
- /**
- * The lexer.
- *
- * @var \Doctrine\Common\Annotations\DocLexer
- */
- private $lexer;
-
- /**
- * Current target context.
- *
- * @var integer
- */
- private $target;
-
- /**
- * Doc parser used to collect annotation target.
- *
- * @var \Doctrine\Common\Annotations\DocParser
- */
- private static $metadataParser;
-
- /**
- * Flag to control if the current annotation is nested or not.
- *
- * @var boolean
- */
- private $isNestedAnnotation = false;
-
- /**
- * Hashmap containing all use-statements that are to be used when parsing
- * the given doc block.
- *
- * @var array
- */
- private $imports = array();
-
- /**
- * This hashmap is used internally to cache results of class_exists()
- * look-ups.
- *
- * @var array
- */
- private $classExists = array();
-
- /**
- * Whether annotations that have not been imported should be ignored.
- *
- * @var boolean
- */
- private $ignoreNotImportedAnnotations = false;
-
- /**
- * An array of default namespaces if operating in simple mode.
- *
- * @var string[]
- */
- private $namespaces = array();
-
- /**
- * A list with annotations that are not causing exceptions when not resolved to an annotation class.
- *
- * The names must be the raw names as used in the class, not the fully qualified
- * class names.
- *
- * @var bool[] indexed by annotation name
- */
- private $ignoredAnnotationNames = array();
-
- /**
- * A list with annotations in namespaced format
- * that are not causing exceptions when not resolved to an annotation class.
- *
- * @var bool[] indexed by namespace name
- */
- private $ignoredAnnotationNamespaces = array();
-
- /**
- * @var string
- */
- private $context = '';
-
- /**
- * Hash-map for caching annotation metadata.
- *
- * @var array
- */
- private static $annotationMetadata = array(
- 'Doctrine\Common\Annotations\Annotation\Target' => array(
- 'is_annotation' => true,
- 'has_constructor' => true,
- 'properties' => array(),
- 'targets_literal' => 'ANNOTATION_CLASS',
- 'targets' => Target::TARGET_CLASS,
- 'default_property' => 'value',
- 'attribute_types' => array(
- 'value' => array(
- 'required' => false,
- 'type' =>'array',
- 'array_type'=>'string',
- 'value' =>'array'
- )
- ),
- ),
- 'Doctrine\Common\Annotations\Annotation\Attribute' => array(
- 'is_annotation' => true,
- 'has_constructor' => false,
- 'targets_literal' => 'ANNOTATION_ANNOTATION',
- 'targets' => Target::TARGET_ANNOTATION,
- 'default_property' => 'name',
- 'properties' => array(
- 'name' => 'name',
- 'type' => 'type',
- 'required' => 'required'
- ),
- 'attribute_types' => array(
- 'value' => array(
- 'required' => true,
- 'type' =>'string',
- 'value' =>'string'
- ),
- 'type' => array(
- 'required' =>true,
- 'type' =>'string',
- 'value' =>'string'
- ),
- 'required' => array(
- 'required' =>false,
- 'type' =>'boolean',
- 'value' =>'boolean'
- )
- ),
- ),
- 'Doctrine\Common\Annotations\Annotation\Attributes' => array(
- 'is_annotation' => true,
- 'has_constructor' => false,
- 'targets_literal' => 'ANNOTATION_CLASS',
- 'targets' => Target::TARGET_CLASS,
- 'default_property' => 'value',
- 'properties' => array(
- 'value' => 'value'
- ),
- 'attribute_types' => array(
- 'value' => array(
- 'type' =>'array',
- 'required' =>true,
- 'array_type'=>'Doctrine\Common\Annotations\Annotation\Attribute',
- 'value' =>'array'
- )
- ),
- ),
- 'Doctrine\Common\Annotations\Annotation\Enum' => array(
- 'is_annotation' => true,
- 'has_constructor' => true,
- 'targets_literal' => 'ANNOTATION_PROPERTY',
- 'targets' => Target::TARGET_PROPERTY,
- 'default_property' => 'value',
- 'properties' => array(
- 'value' => 'value'
- ),
- 'attribute_types' => array(
- 'value' => array(
- 'type' => 'array',
- 'required' => true,
- ),
- 'literal' => array(
- 'type' => 'array',
- 'required' => false,
- ),
- ),
- ),
- );
-
- /**
- * Hash-map for handle types declaration.
- *
- * @var array
- */
- private static $typeMap = array(
- 'float' => 'double',
- 'bool' => 'boolean',
- // allow uppercase Boolean in honor of George Boole
- 'Boolean' => 'boolean',
- 'int' => 'integer',
- );
-
- /**
- * Constructs a new DocParser.
- */
- public function __construct()
- {
- $this->lexer = new DocLexer;
- }
-
- /**
- * Sets the annotation names that are ignored during the parsing process.
- *
- * The names are supposed to be the raw names as used in the class, not the
- * fully qualified class names.
- *
- * @param bool[] $names indexed by annotation name
- *
- * @return void
- */
- public function setIgnoredAnnotationNames(array $names)
- {
- $this->ignoredAnnotationNames = $names;
- }
-
- /**
- * Sets the annotation namespaces that are ignored during the parsing process.
- *
- * @param bool[] $ignoredAnnotationNamespaces indexed by annotation namespace name
- *
- * @return void
- */
- public function setIgnoredAnnotationNamespaces($ignoredAnnotationNamespaces)
- {
- $this->ignoredAnnotationNamespaces = $ignoredAnnotationNamespaces;
- }
-
- /**
- * Sets ignore on not-imported annotations.
- *
- * @param boolean $bool
- *
- * @return void
- */
- public function setIgnoreNotImportedAnnotations($bool)
- {
- $this->ignoreNotImportedAnnotations = (boolean) $bool;
- }
-
- /**
- * Sets the default namespaces.
- *
- * @param string $namespace
- *
- * @return void
- *
- * @throws \RuntimeException
- */
- public function addNamespace($namespace)
- {
- if ($this->imports) {
- throw new \RuntimeException('You must either use addNamespace(), or setImports(), but not both.');
- }
-
- $this->namespaces[] = $namespace;
- }
-
- /**
- * Sets the imports.
- *
- * @param array $imports
- *
- * @return void
- *
- * @throws \RuntimeException
- */
- public function setImports(array $imports)
- {
- if ($this->namespaces) {
- throw new \RuntimeException('You must either use addNamespace(), or setImports(), but not both.');
- }
-
- $this->imports = $imports;
- }
-
- /**
- * Sets current target context as bitmask.
- *
- * @param integer $target
- *
- * @return void
- */
- public function setTarget($target)
- {
- $this->target = $target;
- }
-
- /**
- * Parses the given docblock string for annotations.
- *
- * @param string $input The docblock string to parse.
- * @param string $context The parsing context.
- *
- * @return array Array of annotations. If no annotations are found, an empty array is returned.
- */
- public function parse($input, $context = '')
- {
- $pos = $this->findInitialTokenPosition($input);
- if ($pos === null) {
- return array();
- }
-
- $this->context = $context;
-
- $this->lexer->setInput(trim(substr($input, $pos), '* /'));
- $this->lexer->moveNext();
-
- return $this->Annotations();
- }
-
- /**
- * Finds the first valid annotation
- *
- * @param string $input The docblock string to parse
- *
- * @return int|null
- */
- private function findInitialTokenPosition($input)
- {
- $pos = 0;
-
- // search for first valid annotation
- while (($pos = strpos($input, '@', $pos)) !== false) {
- $preceding = substr($input, $pos - 1, 1);
-
- // if the @ is preceded by a space, a tab or * it is valid
- if ($pos === 0 || $preceding === ' ' || $preceding === '*' || $preceding === "\t") {
- return $pos;
- }
-
- $pos++;
- }
-
- return null;
- }
-
- /**
- * Attempts to match the given token with the current lookahead token.
- * If they match, updates the lookahead token; otherwise raises a syntax error.
- *
- * @param integer $token Type of token.
- *
- * @return boolean True if tokens match; false otherwise.
- */
- private function match($token)
- {
- if ( ! $this->lexer->isNextToken($token) ) {
- $this->syntaxError($this->lexer->getLiteral($token));
- }
-
- return $this->lexer->moveNext();
- }
-
- /**
- * Attempts to match the current lookahead token with any of the given tokens.
- *
- * If any of them matches, this method updates the lookahead token; otherwise
- * a syntax error is raised.
- *
- * @param array $tokens
- *
- * @return boolean
- */
- private function matchAny(array $tokens)
- {
- if ( ! $this->lexer->isNextTokenAny($tokens)) {
- $this->syntaxError(implode(' or ', array_map(array($this->lexer, 'getLiteral'), $tokens)));
- }
-
- return $this->lexer->moveNext();
- }
-
- /**
- * Generates a new syntax error.
- *
- * @param string $expected Expected string.
- * @param array|null $token Optional token.
- *
- * @return void
- *
- * @throws AnnotationException
- */
- private function syntaxError($expected, $token = null)
- {
- if ($token === null) {
- $token = $this->lexer->lookahead;
- }
-
- $message = sprintf('Expected %s, got ', $expected);
- $message .= ($this->lexer->lookahead === null)
- ? 'end of string'
- : sprintf("'%s' at position %s", $token['value'], $token['position']);
-
- if (strlen($this->context)) {
- $message .= ' in ' . $this->context;
- }
-
- $message .= '.';
-
- throw AnnotationException::syntaxError($message);
- }
-
- /**
- * Attempts to check if a class exists or not. This never goes through the PHP autoloading mechanism
- * but uses the {@link AnnotationRegistry} to load classes.
- *
- * @param string $fqcn
- *
- * @return boolean
- */
- private function classExists($fqcn)
- {
- if (isset($this->classExists[$fqcn])) {
- return $this->classExists[$fqcn];
- }
-
- // first check if the class already exists, maybe loaded through another AnnotationReader
- if (class_exists($fqcn, false)) {
- return $this->classExists[$fqcn] = true;
- }
-
- // final check, does this class exist?
- return $this->classExists[$fqcn] = AnnotationRegistry::loadAnnotationClass($fqcn);
- }
-
- /**
- * Collects parsing metadata for a given annotation class
- *
- * @param string $name The annotation name
- *
- * @return void
- */
- private function collectAnnotationMetadata($name)
- {
- if (self::$metadataParser === null) {
- self::$metadataParser = new self();
-
- self::$metadataParser->setIgnoreNotImportedAnnotations(true);
- self::$metadataParser->setIgnoredAnnotationNames($this->ignoredAnnotationNames);
- self::$metadataParser->setImports(array(
- 'enum' => 'Doctrine\Common\Annotations\Annotation\Enum',
- 'target' => 'Doctrine\Common\Annotations\Annotation\Target',
- 'attribute' => 'Doctrine\Common\Annotations\Annotation\Attribute',
- 'attributes' => 'Doctrine\Common\Annotations\Annotation\Attributes'
- ));
-
- AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Enum.php');
- AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Target.php');
- AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Attribute.php');
- AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Attributes.php');
- }
-
- $class = new \ReflectionClass($name);
- $docComment = $class->getDocComment();
-
- // Sets default values for annotation metadata
- $metadata = array(
- 'default_property' => null,
- 'has_constructor' => (null !== $constructor = $class->getConstructor()) && $constructor->getNumberOfParameters() > 0,
- 'properties' => array(),
- 'property_types' => array(),
- 'attribute_types' => array(),
- 'targets_literal' => null,
- 'targets' => Target::TARGET_ALL,
- 'is_annotation' => false !== strpos($docComment, '@Annotation'),
- );
-
- // verify that the class is really meant to be an annotation
- if ($metadata['is_annotation']) {
- self::$metadataParser->setTarget(Target::TARGET_CLASS);
-
- foreach (self::$metadataParser->parse($docComment, 'class @' . $name) as $annotation) {
- if ($annotation instanceof Target) {
- $metadata['targets'] = $annotation->targets;
- $metadata['targets_literal'] = $annotation->literal;
-
- continue;
- }
-
- if ($annotation instanceof Attributes) {
- foreach ($annotation->value as $attribute) {
- $this->collectAttributeTypeMetadata($metadata, $attribute);
- }
- }
- }
-
- // if not has a constructor will inject values into public properties
- if (false === $metadata['has_constructor']) {
- // collect all public properties
- foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
- $metadata['properties'][$property->name] = $property->name;
-
- if (false === ($propertyComment = $property->getDocComment())) {
- continue;
- }
-
- $attribute = new Attribute();
-
- $attribute->required = (false !== strpos($propertyComment, '@Required'));
- $attribute->name = $property->name;
- $attribute->type = (false !== strpos($propertyComment, '@var') && preg_match('/@var\s+([^\s]+)/',$propertyComment, $matches))
- ? $matches[1]
- : 'mixed';
-
- $this->collectAttributeTypeMetadata($metadata, $attribute);
-
- // checks if the property has @Enum
- if (false !== strpos($propertyComment, '@Enum')) {
- $context = 'property ' . $class->name . "::\$" . $property->name;
-
- self::$metadataParser->setTarget(Target::TARGET_PROPERTY);
-
- foreach (self::$metadataParser->parse($propertyComment, $context) as $annotation) {
- if ( ! $annotation instanceof Enum) {
- continue;
- }
-
- $metadata['enum'][$property->name]['value'] = $annotation->value;
- $metadata['enum'][$property->name]['literal'] = ( ! empty($annotation->literal))
- ? $annotation->literal
- : $annotation->value;
- }
- }
- }
-
- // choose the first property as default property
- $metadata['default_property'] = reset($metadata['properties']);
- }
- }
-
- self::$annotationMetadata[$name] = $metadata;
- }
-
- /**
- * Collects parsing metadata for a given attribute.
- *
- * @param array $metadata
- * @param Attribute $attribute
- *
- * @return void
- */
- private function collectAttributeTypeMetadata(&$metadata, Attribute $attribute)
- {
- // handle internal type declaration
- $type = isset(self::$typeMap[$attribute->type])
- ? self::$typeMap[$attribute->type]
- : $attribute->type;
-
- // handle the case if the property type is mixed
- if ('mixed' === $type) {
- return;
- }
-
- // Evaluate type
- switch (true) {
- // Checks if the property has array
- case (false !== $pos = strpos($type, '<')):
- $arrayType = substr($type, $pos + 1, -1);
- $type = 'array';
-
- if (isset(self::$typeMap[$arrayType])) {
- $arrayType = self::$typeMap[$arrayType];
- }
-
- $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
- break;
-
- // Checks if the property has type[]
- case (false !== $pos = strrpos($type, '[')):
- $arrayType = substr($type, 0, $pos);
- $type = 'array';
-
- if (isset(self::$typeMap[$arrayType])) {
- $arrayType = self::$typeMap[$arrayType];
- }
-
- $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
- break;
- }
-
- $metadata['attribute_types'][$attribute->name]['type'] = $type;
- $metadata['attribute_types'][$attribute->name]['value'] = $attribute->type;
- $metadata['attribute_types'][$attribute->name]['required'] = $attribute->required;
- }
-
- /**
- * Annotations ::= Annotation {[ "*" ]* [Annotation]}*
- *
- * @return array
- */
- private function Annotations()
- {
- $annotations = array();
-
- while (null !== $this->lexer->lookahead) {
- if (DocLexer::T_AT !== $this->lexer->lookahead['type']) {
- $this->lexer->moveNext();
- continue;
- }
-
- // make sure the @ is preceded by non-catchable pattern
- if (null !== $this->lexer->token && $this->lexer->lookahead['position'] === $this->lexer->token['position'] + strlen($this->lexer->token['value'])) {
- $this->lexer->moveNext();
- continue;
- }
-
- // make sure the @ is followed by either a namespace separator, or
- // an identifier token
- if ((null === $peek = $this->lexer->glimpse())
- || (DocLexer::T_NAMESPACE_SEPARATOR !== $peek['type'] && !in_array($peek['type'], self::$classIdentifiers, true))
- || $peek['position'] !== $this->lexer->lookahead['position'] + 1) {
- $this->lexer->moveNext();
- continue;
- }
-
- $this->isNestedAnnotation = false;
- if (false !== $annot = $this->Annotation()) {
- $annotations[] = $annot;
- }
- }
-
- return $annotations;
- }
-
- /**
- * Annotation ::= "@" AnnotationName MethodCall
- * AnnotationName ::= QualifiedName | SimpleName
- * QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName
- * NameSpacePart ::= identifier | null | false | true
- * SimpleName ::= identifier | null | false | true
- *
- * @return mixed False if it is not a valid annotation.
- *
- * @throws AnnotationException
- */
- private function Annotation()
- {
- $this->match(DocLexer::T_AT);
-
- // check if we have an annotation
- $name = $this->Identifier();
-
- // only process names which are not fully qualified, yet
- // fully qualified names must start with a \
- $originalName = $name;
-
- if ('\\' !== $name[0]) {
- $pos = strpos($name, '\\');
- $alias = (false === $pos)? $name : substr($name, 0, $pos);
- $found = false;
- $loweredAlias = strtolower($alias);
-
- if ($this->namespaces) {
- foreach ($this->namespaces as $namespace) {
- if ($this->classExists($namespace.'\\'.$name)) {
- $name = $namespace.'\\'.$name;
- $found = true;
- break;
- }
- }
- } elseif (isset($this->imports[$loweredAlias])) {
- $found = true;
- $name = (false !== $pos)
- ? $this->imports[$loweredAlias] . substr($name, $pos)
- : $this->imports[$loweredAlias];
- } elseif ( ! isset($this->ignoredAnnotationNames[$name])
- && isset($this->imports['__NAMESPACE__'])
- && $this->classExists($this->imports['__NAMESPACE__'] . '\\' . $name)
- ) {
- $name = $this->imports['__NAMESPACE__'].'\\'.$name;
- $found = true;
- } elseif (! isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) {
- $found = true;
- }
-
- if ( ! $found) {
- if ($this->isIgnoredAnnotation($name)) {
- return false;
- }
-
- throw AnnotationException::semanticalError(sprintf('The annotation "@%s" in %s was never imported. Did you maybe forget to add a "use" statement for this annotation?', $name, $this->context));
- }
- }
-
- $name = ltrim($name,'\\');
-
- if ( ! $this->classExists($name)) {
- throw AnnotationException::semanticalError(sprintf('The annotation "@%s" in %s does not exist, or could not be auto-loaded.', $name, $this->context));
- }
-
- // at this point, $name contains the fully qualified class name of the
- // annotation, and it is also guaranteed that this class exists, and
- // that it is loaded
-
-
- // collects the metadata annotation only if there is not yet
- if ( ! isset(self::$annotationMetadata[$name])) {
- $this->collectAnnotationMetadata($name);
- }
-
- // verify that the class is really meant to be an annotation and not just any ordinary class
- if (self::$annotationMetadata[$name]['is_annotation'] === false) {
- if ($this->ignoreNotImportedAnnotations || isset($this->ignoredAnnotationNames[$originalName])) {
- return false;
- }
-
- throw AnnotationException::semanticalError(sprintf('The class "%s" is not annotated with @Annotation. Are you sure this class can be used as annotation? If so, then you need to add @Annotation to the _class_ doc comment of "%s". If it is indeed no annotation, then you need to add @IgnoreAnnotation("%s") to the _class_ doc comment of %s.', $name, $name, $originalName, $this->context));
- }
-
- //if target is nested annotation
- $target = $this->isNestedAnnotation ? Target::TARGET_ANNOTATION : $this->target;
-
- // Next will be nested
- $this->isNestedAnnotation = true;
-
- //if annotation does not support current target
- if (0 === (self::$annotationMetadata[$name]['targets'] & $target) && $target) {
- throw AnnotationException::semanticalError(
- sprintf('Annotation @%s is not allowed to be declared on %s. You may only use this annotation on these code elements: %s.',
- $originalName, $this->context, self::$annotationMetadata[$name]['targets_literal'])
- );
- }
-
- $values = $this->MethodCall();
-
- if (isset(self::$annotationMetadata[$name]['enum'])) {
- // checks all declared attributes
- foreach (self::$annotationMetadata[$name]['enum'] as $property => $enum) {
- // checks if the attribute is a valid enumerator
- if (isset($values[$property]) && ! in_array($values[$property], $enum['value'])) {
- throw AnnotationException::enumeratorError($property, $name, $this->context, $enum['literal'], $values[$property]);
- }
- }
- }
-
- // checks all declared attributes
- foreach (self::$annotationMetadata[$name]['attribute_types'] as $property => $type) {
- if ($property === self::$annotationMetadata[$name]['default_property']
- && !isset($values[$property]) && isset($values['value'])) {
- $property = 'value';
- }
-
- // handle a not given attribute or null value
- if (!isset($values[$property])) {
- if ($type['required']) {
- throw AnnotationException::requiredError($property, $originalName, $this->context, 'a(n) '.$type['value']);
- }
-
- continue;
- }
-
- if ($type['type'] === 'array') {
- // handle the case of a single value
- if ( ! is_array($values[$property])) {
- $values[$property] = array($values[$property]);
- }
-
- // checks if the attribute has array type declaration, such as "array"
- if (isset($type['array_type'])) {
- foreach ($values[$property] as $item) {
- if (gettype($item) !== $type['array_type'] && !$item instanceof $type['array_type']) {
- throw AnnotationException::attributeTypeError($property, $originalName, $this->context, 'either a(n) '.$type['array_type'].', or an array of '.$type['array_type'].'s', $item);
- }
- }
- }
- } elseif (gettype($values[$property]) !== $type['type'] && !$values[$property] instanceof $type['type']) {
- throw AnnotationException::attributeTypeError($property, $originalName, $this->context, 'a(n) '.$type['value'], $values[$property]);
- }
- }
-
- // check if the annotation expects values via the constructor,
- // or directly injected into public properties
- if (self::$annotationMetadata[$name]['has_constructor'] === true) {
- return new $name($values);
- }
-
- $instance = new $name();
-
- foreach ($values as $property => $value) {
- if (!isset(self::$annotationMetadata[$name]['properties'][$property])) {
- if ('value' !== $property) {
- throw AnnotationException::creationError(sprintf('The annotation @%s declared on %s does not have a property named "%s". Available properties: %s', $originalName, $this->context, $property, implode(', ', self::$annotationMetadata[$name]['properties'])));
- }
-
- // handle the case if the property has no annotations
- if ( ! $property = self::$annotationMetadata[$name]['default_property']) {
- throw AnnotationException::creationError(sprintf('The annotation @%s declared on %s does not accept any values, but got %s.', $originalName, $this->context, json_encode($values)));
- }
- }
-
- $instance->{$property} = $value;
- }
-
- return $instance;
- }
-
- /**
- * MethodCall ::= ["(" [Values] ")"]
- *
- * @return array
- */
- private function MethodCall()
- {
- $values = array();
-
- if ( ! $this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) {
- return $values;
- }
-
- $this->match(DocLexer::T_OPEN_PARENTHESIS);
-
- if ( ! $this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
- $values = $this->Values();
- }
-
- $this->match(DocLexer::T_CLOSE_PARENTHESIS);
-
- return $values;
- }
-
- /**
- * Values ::= Array | Value {"," Value}* [","]
- *
- * @return array
- */
- private function Values()
- {
- $values = array($this->Value());
-
- while ($this->lexer->isNextToken(DocLexer::T_COMMA)) {
- $this->match(DocLexer::T_COMMA);
-
- if ($this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
- break;
- }
-
- $token = $this->lexer->lookahead;
- $value = $this->Value();
-
- if ( ! is_object($value) && ! is_array($value)) {
- $this->syntaxError('Value', $token);
- }
-
- $values[] = $value;
- }
-
- foreach ($values as $k => $value) {
- if (is_object($value) && $value instanceof \stdClass) {
- $values[$value->name] = $value->value;
- } else if ( ! isset($values['value'])){
- $values['value'] = $value;
- } else {
- if ( ! is_array($values['value'])) {
- $values['value'] = array($values['value']);
- }
-
- $values['value'][] = $value;
- }
-
- unset($values[$k]);
- }
-
- return $values;
- }
-
- /**
- * Constant ::= integer | string | float | boolean
- *
- * @return mixed
- *
- * @throws AnnotationException
- */
- private function Constant()
- {
- $identifier = $this->Identifier();
-
- if ( ! defined($identifier) && false !== strpos($identifier, '::') && '\\' !== $identifier[0]) {
- list($className, $const) = explode('::', $identifier);
-
- $pos = strpos($className, '\\');
- $alias = (false === $pos) ? $className : substr($className, 0, $pos);
- $found = false;
- $loweredAlias = strtolower($alias);
-
- switch (true) {
- case !empty ($this->namespaces):
- foreach ($this->namespaces as $ns) {
- if (class_exists($ns.'\\'.$className) || interface_exists($ns.'\\'.$className)) {
- $className = $ns.'\\'.$className;
- $found = true;
- break;
- }
- }
- break;
-
- case isset($this->imports[$loweredAlias]):
- $found = true;
- $className = (false !== $pos)
- ? $this->imports[$loweredAlias] . substr($className, $pos)
- : $this->imports[$loweredAlias];
- break;
-
- default:
- if(isset($this->imports['__NAMESPACE__'])) {
- $ns = $this->imports['__NAMESPACE__'];
-
- if (class_exists($ns.'\\'.$className) || interface_exists($ns.'\\'.$className)) {
- $className = $ns.'\\'.$className;
- $found = true;
- }
- }
- break;
- }
-
- if ($found) {
- $identifier = $className . '::' . $const;
- }
- }
-
- // checks if identifier ends with ::class, \strlen('::class') === 7
- $classPos = stripos($identifier, '::class');
- if ($classPos === strlen($identifier) - 7) {
- return substr($identifier, 0, $classPos);
- }
-
- if (!defined($identifier)) {
- throw AnnotationException::semanticalErrorConstants($identifier, $this->context);
- }
-
- return constant($identifier);
- }
-
- /**
- * Identifier ::= string
- *
- * @return string
- */
- private function Identifier()
- {
- // check if we have an annotation
- if ( ! $this->lexer->isNextTokenAny(self::$classIdentifiers)) {
- $this->syntaxError('namespace separator or identifier');
- }
-
- $this->lexer->moveNext();
-
- $className = $this->lexer->token['value'];
-
- while ($this->lexer->lookahead['position'] === ($this->lexer->token['position'] + strlen($this->lexer->token['value']))
- && $this->lexer->isNextToken(DocLexer::T_NAMESPACE_SEPARATOR)) {
-
- $this->match(DocLexer::T_NAMESPACE_SEPARATOR);
- $this->matchAny(self::$classIdentifiers);
-
- $className .= '\\' . $this->lexer->token['value'];
- }
-
- return $className;
- }
-
- /**
- * Value ::= PlainValue | FieldAssignment
- *
- * @return mixed
- */
- private function Value()
- {
- $peek = $this->lexer->glimpse();
-
- if (DocLexer::T_EQUALS === $peek['type']) {
- return $this->FieldAssignment();
- }
-
- return $this->PlainValue();
- }
-
- /**
- * PlainValue ::= integer | string | float | boolean | Array | Annotation
- *
- * @return mixed
- */
- private function PlainValue()
- {
- if ($this->lexer->isNextToken(DocLexer::T_OPEN_CURLY_BRACES)) {
- return $this->Arrayx();
- }
-
- if ($this->lexer->isNextToken(DocLexer::T_AT)) {
- return $this->Annotation();
- }
-
- if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
- return $this->Constant();
- }
-
- switch ($this->lexer->lookahead['type']) {
- case DocLexer::T_STRING:
- $this->match(DocLexer::T_STRING);
- return $this->lexer->token['value'];
-
- case DocLexer::T_INTEGER:
- $this->match(DocLexer::T_INTEGER);
- return (int)$this->lexer->token['value'];
-
- case DocLexer::T_FLOAT:
- $this->match(DocLexer::T_FLOAT);
- return (float)$this->lexer->token['value'];
-
- case DocLexer::T_TRUE:
- $this->match(DocLexer::T_TRUE);
- return true;
-
- case DocLexer::T_FALSE:
- $this->match(DocLexer::T_FALSE);
- return false;
-
- case DocLexer::T_NULL:
- $this->match(DocLexer::T_NULL);
- return null;
-
- default:
- $this->syntaxError('PlainValue');
- }
- }
-
- /**
- * FieldAssignment ::= FieldName "=" PlainValue
- * FieldName ::= identifier
- *
- * @return \stdClass
- */
- private function FieldAssignment()
- {
- $this->match(DocLexer::T_IDENTIFIER);
- $fieldName = $this->lexer->token['value'];
-
- $this->match(DocLexer::T_EQUALS);
-
- $item = new \stdClass();
- $item->name = $fieldName;
- $item->value = $this->PlainValue();
-
- return $item;
- }
-
- /**
- * Array ::= "{" ArrayEntry {"," ArrayEntry}* [","] "}"
- *
- * @return array
- */
- private function Arrayx()
- {
- $array = $values = array();
-
- $this->match(DocLexer::T_OPEN_CURLY_BRACES);
-
- // If the array is empty, stop parsing and return.
- if ($this->lexer->isNextToken(DocLexer::T_CLOSE_CURLY_BRACES)) {
- $this->match(DocLexer::T_CLOSE_CURLY_BRACES);
-
- return $array;
- }
-
- $values[] = $this->ArrayEntry();
-
- while ($this->lexer->isNextToken(DocLexer::T_COMMA)) {
- $this->match(DocLexer::T_COMMA);
-
- // optional trailing comma
- if ($this->lexer->isNextToken(DocLexer::T_CLOSE_CURLY_BRACES)) {
- break;
- }
-
- $values[] = $this->ArrayEntry();
- }
-
- $this->match(DocLexer::T_CLOSE_CURLY_BRACES);
-
- foreach ($values as $value) {
- list ($key, $val) = $value;
-
- if ($key !== null) {
- $array[$key] = $val;
- } else {
- $array[] = $val;
- }
- }
-
- return $array;
- }
-
- /**
- * ArrayEntry ::= Value | KeyValuePair
- * KeyValuePair ::= Key ("=" | ":") PlainValue | Constant
- * Key ::= string | integer | Constant
- *
- * @return array
- */
- private function ArrayEntry()
- {
- $peek = $this->lexer->glimpse();
-
- if (DocLexer::T_EQUALS === $peek['type']
- || DocLexer::T_COLON === $peek['type']) {
-
- if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
- $key = $this->Constant();
- } else {
- $this->matchAny(array(DocLexer::T_INTEGER, DocLexer::T_STRING));
- $key = $this->lexer->token['value'];
- }
-
- $this->matchAny(array(DocLexer::T_EQUALS, DocLexer::T_COLON));
-
- return array($key, $this->PlainValue());
- }
-
- return array(null, $this->Value());
- }
-
- /**
- * Checks whether the given $name matches any ignored annotation name or namespace
- *
- * @param string $name
- *
- * @return bool
- */
- private function isIgnoredAnnotation($name)
- {
- if ($this->ignoreNotImportedAnnotations || isset($this->ignoredAnnotationNames[$name])) {
- return true;
- }
-
- foreach (array_keys($this->ignoredAnnotationNamespaces) as $ignoredAnnotationNamespace) {
- $ignoredAnnotationNamespace = rtrim($ignoredAnnotationNamespace, '\\') . '\\';
-
- if (0 === stripos(rtrim($name, '\\') . '\\', $ignoredAnnotationNamespace)) {
- return true;
- }
- }
-
- return false;
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php
deleted file mode 100644
index fd2fedee1..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php
+++ /dev/null
@@ -1,290 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * File cache reader for annotations.
- *
- * @author Johannes M. Schmitt
- * @author Benjamin Eberlei
- *
- * @deprecated the FileCacheReader is deprecated and will be removed
- * in version 2.0.0 of doctrine/annotations. Please use the
- * {@see \Doctrine\Common\Annotations\CachedReader} instead.
- */
-class FileCacheReader implements Reader
-{
- /**
- * @var Reader
- */
- private $reader;
-
- /**
- * @var string
- */
- private $dir;
-
- /**
- * @var bool
- */
- private $debug;
-
- /**
- * @var array
- */
- private $loadedAnnotations = array();
-
- /**
- * @var array
- */
- private $classNameHashes = array();
-
- /**
- * @var int
- */
- private $umask;
-
- /**
- * Constructor.
- *
- * @param Reader $reader
- * @param string $cacheDir
- * @param boolean $debug
- *
- * @throws \InvalidArgumentException
- */
- public function __construct(Reader $reader, $cacheDir, $debug = false, $umask = 0002)
- {
- if ( ! is_int($umask)) {
- throw new \InvalidArgumentException(sprintf(
- 'The parameter umask must be an integer, was: %s',
- gettype($umask)
- ));
- }
-
- $this->reader = $reader;
- $this->umask = $umask;
-
- if (!is_dir($cacheDir) && !@mkdir($cacheDir, 0777 & (~$this->umask), true)) {
- throw new \InvalidArgumentException(sprintf('The directory "%s" does not exist and could not be created.', $cacheDir));
- }
-
- $this->dir = rtrim($cacheDir, '\\/');
- $this->debug = $debug;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotations(\ReflectionClass $class)
- {
- if ( ! isset($this->classNameHashes[$class->name])) {
- $this->classNameHashes[$class->name] = sha1($class->name);
- }
- $key = $this->classNameHashes[$class->name];
-
- if (isset($this->loadedAnnotations[$key])) {
- return $this->loadedAnnotations[$key];
- }
-
- $path = $this->dir.'/'.strtr($key, '\\', '-').'.cache.php';
- if (!is_file($path)) {
- $annot = $this->reader->getClassAnnotations($class);
- $this->saveCacheFile($path, $annot);
- return $this->loadedAnnotations[$key] = $annot;
- }
-
- if ($this->debug
- && (false !== $filename = $class->getFileName())
- && filemtime($path) < filemtime($filename)) {
- @unlink($path);
-
- $annot = $this->reader->getClassAnnotations($class);
- $this->saveCacheFile($path, $annot);
- return $this->loadedAnnotations[$key] = $annot;
- }
-
- return $this->loadedAnnotations[$key] = include $path;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotations(\ReflectionProperty $property)
- {
- $class = $property->getDeclaringClass();
- if ( ! isset($this->classNameHashes[$class->name])) {
- $this->classNameHashes[$class->name] = sha1($class->name);
- }
- $key = $this->classNameHashes[$class->name].'$'.$property->getName();
-
- if (isset($this->loadedAnnotations[$key])) {
- return $this->loadedAnnotations[$key];
- }
-
- $path = $this->dir.'/'.strtr($key, '\\', '-').'.cache.php';
- if (!is_file($path)) {
- $annot = $this->reader->getPropertyAnnotations($property);
- $this->saveCacheFile($path, $annot);
- return $this->loadedAnnotations[$key] = $annot;
- }
-
- if ($this->debug
- && (false !== $filename = $class->getFilename())
- && filemtime($path) < filemtime($filename)) {
- @unlink($path);
-
- $annot = $this->reader->getPropertyAnnotations($property);
- $this->saveCacheFile($path, $annot);
- return $this->loadedAnnotations[$key] = $annot;
- }
-
- return $this->loadedAnnotations[$key] = include $path;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotations(\ReflectionMethod $method)
- {
- $class = $method->getDeclaringClass();
- if ( ! isset($this->classNameHashes[$class->name])) {
- $this->classNameHashes[$class->name] = sha1($class->name);
- }
- $key = $this->classNameHashes[$class->name].'#'.$method->getName();
-
- if (isset($this->loadedAnnotations[$key])) {
- return $this->loadedAnnotations[$key];
- }
-
- $path = $this->dir.'/'.strtr($key, '\\', '-').'.cache.php';
- if (!is_file($path)) {
- $annot = $this->reader->getMethodAnnotations($method);
- $this->saveCacheFile($path, $annot);
- return $this->loadedAnnotations[$key] = $annot;
- }
-
- if ($this->debug
- && (false !== $filename = $class->getFilename())
- && filemtime($path) < filemtime($filename)) {
- @unlink($path);
-
- $annot = $this->reader->getMethodAnnotations($method);
- $this->saveCacheFile($path, $annot);
- return $this->loadedAnnotations[$key] = $annot;
- }
-
- return $this->loadedAnnotations[$key] = include $path;
- }
-
- /**
- * Saves the cache file.
- *
- * @param string $path
- * @param mixed $data
- *
- * @return void
- */
- private function saveCacheFile($path, $data)
- {
- if (!is_writable($this->dir)) {
- throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable. Both, the webserver and the console user need access. You can manage access rights for multiple users with "chmod +a". If your system does not support this, check out the acl package.', $this->dir));
- }
-
- $tempfile = tempnam($this->dir, uniqid('', true));
-
- if (false === $tempfile) {
- throw new \RuntimeException(sprintf('Unable to create tempfile in directory: %s', $this->dir));
- }
-
- @chmod($tempfile, 0666 & (~$this->umask));
-
- $written = file_put_contents($tempfile, 'umask));
-
- if (false === rename($tempfile, $path)) {
- @unlink($tempfile);
- throw new \RuntimeException(sprintf('Unable to rename %s to %s', $tempfile, $path));
- }
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotation(\ReflectionClass $class, $annotationName)
- {
- $annotations = $this->getClassAnnotations($class);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof $annotationName) {
- return $annotation;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotation(\ReflectionMethod $method, $annotationName)
- {
- $annotations = $this->getMethodAnnotations($method);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof $annotationName) {
- return $annotation;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName)
- {
- $annotations = $this->getPropertyAnnotations($property);
-
- foreach ($annotations as $annotation) {
- if ($annotation instanceof $annotationName) {
- return $annotation;
- }
- }
-
- return null;
- }
-
- /**
- * Clears loaded annotations.
- *
- * @return void
- */
- public function clearLoadedAnnotations()
- {
- $this->loadedAnnotations = array();
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
deleted file mode 100644
index bf7fbdcdd..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
+++ /dev/null
@@ -1,119 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * Allows the reader to be used in-place of Doctrine's reader.
- *
- * @author Johannes M. Schmitt
- */
-class IndexedReader implements Reader
-{
- /**
- * @var Reader
- */
- private $delegate;
-
- /**
- * Constructor.
- *
- * @param Reader $reader
- */
- public function __construct(Reader $reader)
- {
- $this->delegate = $reader;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotations(\ReflectionClass $class)
- {
- $annotations = array();
- foreach ($this->delegate->getClassAnnotations($class) as $annot) {
- $annotations[get_class($annot)] = $annot;
- }
-
- return $annotations;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotation(\ReflectionClass $class, $annotation)
- {
- return $this->delegate->getClassAnnotation($class, $annotation);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotations(\ReflectionMethod $method)
- {
- $annotations = array();
- foreach ($this->delegate->getMethodAnnotations($method) as $annot) {
- $annotations[get_class($annot)] = $annot;
- }
-
- return $annotations;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotation(\ReflectionMethod $method, $annotation)
- {
- return $this->delegate->getMethodAnnotation($method, $annotation);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotations(\ReflectionProperty $property)
- {
- $annotations = array();
- foreach ($this->delegate->getPropertyAnnotations($property) as $annot) {
- $annotations[get_class($annot)] = $annot;
- }
-
- return $annotations;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotation(\ReflectionProperty $property, $annotation)
- {
- return $this->delegate->getPropertyAnnotation($property, $annotation);
- }
-
- /**
- * Proxies all methods to the delegate.
- *
- * @param string $method
- * @param array $args
- *
- * @return mixed
- */
- public function __call($method, $args)
- {
- return call_user_func_array(array($this->delegate, $method), $args);
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php
deleted file mode 100644
index c2d477049..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php
+++ /dev/null
@@ -1,91 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-use SplFileObject;
-
-/**
- * Parses a file for namespaces/use/class declarations.
- *
- * @author Fabien Potencier
- * @author Christian Kaps
- */
-final class PhpParser
-{
- /**
- * Parses a class.
- *
- * @param \ReflectionClass $class A ReflectionClass
object.
- *
- * @return array A list with use statements in the form (Alias => FQN).
- */
- public function parseClass(\ReflectionClass $class)
- {
- if (method_exists($class, 'getUseStatements')) {
- return $class->getUseStatements();
- }
-
- if (false === $filename = $class->getFileName()) {
- return array();
- }
-
- $content = $this->getFileContent($filename, $class->getStartLine());
-
- if (null === $content) {
- return array();
- }
-
- $namespace = preg_quote($class->getNamespaceName());
- $content = preg_replace('/^.*?(\bnamespace\s+' . $namespace . '\s*[;{].*)$/s', '\\1', $content);
- $tokenizer = new TokenParser('parseUseStatements($class->getNamespaceName());
-
- return $statements;
- }
-
- /**
- * Gets the content of the file right up to the given line number.
- *
- * @param string $filename The name of the file to load.
- * @param integer $lineNumber The number of lines to read from file.
- *
- * @return string|null The content of the file or null if the file does not exist.
- */
- private function getFileContent($filename, $lineNumber)
- {
- if ( ! is_file($filename)) {
- return null;
- }
-
- $content = '';
- $lineCnt = 0;
- $file = new SplFileObject($filename);
- while (!$file->eof()) {
- if ($lineCnt++ == $lineNumber) {
- break;
- }
-
- $content .= $file->fgets();
- }
-
- return $content;
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php
deleted file mode 100644
index 4774f8731..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php
+++ /dev/null
@@ -1,89 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * Interface for annotation readers.
- *
- * @author Johannes M. Schmitt
- */
-interface Reader
-{
- /**
- * Gets the annotations applied to a class.
- *
- * @param \ReflectionClass $class The ReflectionClass of the class from which
- * the class annotations should be read.
- *
- * @return array An array of Annotations.
- */
- function getClassAnnotations(\ReflectionClass $class);
-
- /**
- * Gets a class annotation.
- *
- * @param \ReflectionClass $class The ReflectionClass of the class from which
- * the class annotations should be read.
- * @param string $annotationName The name of the annotation.
- *
- * @return object|null The Annotation or NULL, if the requested annotation does not exist.
- */
- function getClassAnnotation(\ReflectionClass $class, $annotationName);
-
- /**
- * Gets the annotations applied to a method.
- *
- * @param \ReflectionMethod $method The ReflectionMethod of the method from which
- * the annotations should be read.
- *
- * @return array An array of Annotations.
- */
- function getMethodAnnotations(\ReflectionMethod $method);
-
- /**
- * Gets a method annotation.
- *
- * @param \ReflectionMethod $method The ReflectionMethod to read the annotations from.
- * @param string $annotationName The name of the annotation.
- *
- * @return object|null The Annotation or NULL, if the requested annotation does not exist.
- */
- function getMethodAnnotation(\ReflectionMethod $method, $annotationName);
-
- /**
- * Gets the annotations applied to a property.
- *
- * @param \ReflectionProperty $property The ReflectionProperty of the property
- * from which the annotations should be read.
- *
- * @return array An array of Annotations.
- */
- function getPropertyAnnotations(\ReflectionProperty $property);
-
- /**
- * Gets a property annotation.
- *
- * @param \ReflectionProperty $property The ReflectionProperty to read the annotations from.
- * @param string $annotationName The name of the annotation.
- *
- * @return object|null The Annotation or NULL, if the requested annotation does not exist.
- */
- function getPropertyAnnotation(\ReflectionProperty $property, $annotationName);
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
deleted file mode 100644
index d4757eea2..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
+++ /dev/null
@@ -1,127 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * Simple Annotation Reader.
- *
- * This annotation reader is intended to be used in projects where you have
- * full-control over all annotations that are available.
- *
- * @since 2.2
- * @author Johannes M. Schmitt
- * @author Fabio B. Silva
- */
-class SimpleAnnotationReader implements Reader
-{
- /**
- * @var DocParser
- */
- private $parser;
-
- /**
- * Constructor.
- *
- * Initializes a new SimpleAnnotationReader.
- */
- public function __construct()
- {
- $this->parser = new DocParser();
- $this->parser->setIgnoreNotImportedAnnotations(true);
- }
-
- /**
- * Adds a namespace in which we will look for annotations.
- *
- * @param string $namespace
- *
- * @return void
- */
- public function addNamespace($namespace)
- {
- $this->parser->addNamespace($namespace);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotations(\ReflectionClass $class)
- {
- return $this->parser->parse($class->getDocComment(), 'class '.$class->getName());
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotations(\ReflectionMethod $method)
- {
- return $this->parser->parse($method->getDocComment(), 'method '.$method->getDeclaringClass()->name.'::'.$method->getName().'()');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotations(\ReflectionProperty $property)
- {
- return $this->parser->parse($property->getDocComment(), 'property '.$property->getDeclaringClass()->name.'::$'.$property->getName());
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassAnnotation(\ReflectionClass $class, $annotationName)
- {
- foreach ($this->getClassAnnotations($class) as $annot) {
- if ($annot instanceof $annotationName) {
- return $annot;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethodAnnotation(\ReflectionMethod $method, $annotationName)
- {
- foreach ($this->getMethodAnnotations($method) as $annot) {
- if ($annot instanceof $annotationName) {
- return $annot;
- }
- }
-
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName)
- {
- foreach ($this->getPropertyAnnotations($property) as $annot) {
- if ($annot instanceof $annotationName) {
- return $annot;
- }
- }
-
- return null;
- }
-}
diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php
deleted file mode 100644
index bf1b71339..000000000
--- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php
+++ /dev/null
@@ -1,194 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Annotations;
-
-/**
- * Parses a file for namespaces/use/class declarations.
- *
- * @author Fabien Potencier
- * @author Christian Kaps
- */
-class TokenParser
-{
- /**
- * The token list.
- *
- * @var array
- */
- private $tokens;
-
- /**
- * The number of tokens.
- *
- * @var int
- */
- private $numTokens;
-
- /**
- * The current array pointer.
- *
- * @var int
- */
- private $pointer = 0;
-
- /**
- * @param string $contents
- */
- public function __construct($contents)
- {
- $this->tokens = token_get_all($contents);
-
- // The PHP parser sets internal compiler globals for certain things. Annoyingly, the last docblock comment it
- // saw gets stored in doc_comment. When it comes to compile the next thing to be include()d this stored
- // doc_comment becomes owned by the first thing the compiler sees in the file that it considers might have a
- // docblock. If the first thing in the file is a class without a doc block this would cause calls to
- // getDocBlock() on said class to return our long lost doc_comment. Argh.
- // To workaround, cause the parser to parse an empty docblock. Sure getDocBlock() will return this, but at least
- // it's harmless to us.
- token_get_all("numTokens = count($this->tokens);
- }
-
- /**
- * Gets the next non whitespace and non comment token.
- *
- * @param boolean $docCommentIsComment If TRUE then a doc comment is considered a comment and skipped.
- * If FALSE then only whitespace and normal comments are skipped.
- *
- * @return array|null The token if exists, null otherwise.
- */
- public function next($docCommentIsComment = TRUE)
- {
- for ($i = $this->pointer; $i < $this->numTokens; $i++) {
- $this->pointer++;
- if ($this->tokens[$i][0] === T_WHITESPACE ||
- $this->tokens[$i][0] === T_COMMENT ||
- ($docCommentIsComment && $this->tokens[$i][0] === T_DOC_COMMENT)) {
-
- continue;
- }
-
- return $this->tokens[$i];
- }
-
- return null;
- }
-
- /**
- * Parses a single use statement.
- *
- * @return array A list with all found class names for a use statement.
- */
- public function parseUseStatement()
- {
-
- $groupRoot = '';
- $class = '';
- $alias = '';
- $statements = array();
- $explicitAlias = false;
- while (($token = $this->next())) {
- $isNameToken = $token[0] === T_STRING || $token[0] === T_NS_SEPARATOR;
- if (!$explicitAlias && $isNameToken) {
- $class .= $token[1];
- $alias = $token[1];
- } else if ($explicitAlias && $isNameToken) {
- $alias .= $token[1];
- } else if ($token[0] === T_AS) {
- $explicitAlias = true;
- $alias = '';
- } else if ($token === ',') {
- $statements[strtolower($alias)] = $groupRoot . $class;
- $class = '';
- $alias = '';
- $explicitAlias = false;
- } else if ($token === ';') {
- $statements[strtolower($alias)] = $groupRoot . $class;
- break;
- } else if ($token === '{' ) {
- $groupRoot = $class;
- $class = '';
- } else if ($token === '}' ) {
- continue;
- } else {
- break;
- }
- }
-
- return $statements;
- }
-
- /**
- * Gets all use statements.
- *
- * @param string $namespaceName The namespace name of the reflected class.
- *
- * @return array A list with all found use statements.
- */
- public function parseUseStatements($namespaceName)
- {
- $statements = array();
- while (($token = $this->next())) {
- if ($token[0] === T_USE) {
- $statements = array_merge($statements, $this->parseUseStatement());
- continue;
- }
- if ($token[0] !== T_NAMESPACE || $this->parseNamespace() != $namespaceName) {
- continue;
- }
-
- // Get fresh array for new namespace. This is to prevent the parser to collect the use statements
- // for a previous namespace with the same name. This is the case if a namespace is defined twice
- // or if a namespace with the same name is commented out.
- $statements = array();
- }
-
- return $statements;
- }
-
- /**
- * Gets the namespace.
- *
- * @return string The found namespace.
- */
- public function parseNamespace()
- {
- $name = '';
- while (($token = $this->next()) && ($token[0] === T_STRING || $token[0] === T_NS_SEPARATOR)) {
- $name .= $token[1];
- }
-
- return $name;
- }
-
- /**
- * Gets the class name.
- *
- * @return string The found class name.
- */
- public function parseClass()
- {
- // Namespaces and class names are tokenized the same: T_STRINGs
- // separated by T_NS_SEPARATOR so we can use one function to provide
- // both.
- return $this->parseNamespace();
- }
-}
diff --git a/vendor/doctrine/annotations/phpstan.neon b/vendor/doctrine/annotations/phpstan.neon
deleted file mode 100644
index be267e611..000000000
--- a/vendor/doctrine/annotations/phpstan.neon
+++ /dev/null
@@ -1,17 +0,0 @@
-parameters:
- autoload_files:
- - %currentWorkingDirectory%/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php
- excludes_analyse:
- - %currentWorkingDirectory%/tests/*/Fixtures/*
- - %currentWorkingDirectory%/tests/Doctrine/Tests/Common/Annotations/ReservedKeywordsClasses.php
- - %currentWorkingDirectory%/tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php
- - %currentWorkingDirectory%/tests/Doctrine/Tests/DoctrineTestCase.php
- polluteScopeWithLoopInitialAssignments: true
- ignoreErrors:
- - '#Class Doctrine_Tests_Common_Annotations_Fixtures_ClassNoNamespaceNoComment not found#'
- - '#Instantiated class Doctrine_Tests_Common_Annotations_Fixtures_ClassNoNamespaceNoComment not found#'
- - '#Property Doctrine\\Tests\\Common\\Annotations\\DummyClassNonAnnotationProblem::\$foo has unknown class#'
- - '#Class Doctrine\\Tests\\Common\\Annotations\\True not found#'
- - '#Class Doctrine\\Tests\\Common\\Annotations\\False not found#'
- - '#Class Doctrine\\Tests\\Common\\Annotations\\Null not found#'
- - '#Call to an undefined method ReflectionClass::getUseStatements\(\)#'
diff --git a/vendor/doctrine/cache/LICENSE b/vendor/doctrine/cache/LICENSE
deleted file mode 100644
index 8c38cc1bc..000000000
--- a/vendor/doctrine/cache/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2015 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/cache/README.md b/vendor/doctrine/cache/README.md
deleted file mode 100644
index 9d35e9348..000000000
--- a/vendor/doctrine/cache/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Doctrine Cache
-
-[![Build Status](https://img.shields.io/travis/doctrine/cache/master.svg?style=flat-square)](http://travis-ci.org/doctrine/cache)
-[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/doctrine/cache/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/doctrine/cache/?branch=master)
-[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/doctrine/cache/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/doctrine/cache/?branch=master)
-
-[![Latest Stable Version](https://img.shields.io/packagist/v/doctrine/cache.svg?style=flat-square)](https://packagist.org/packages/doctrine/cache)
-[![Total Downloads](https://img.shields.io/packagist/dt/doctrine/cache.svg?style=flat-square)](https://packagist.org/packages/doctrine/cache)
-
-Cache component extracted from the Doctrine Common project. [Documentation](http://doctrine-orm.readthedocs.io/projects/doctrine-orm/en/latest/reference/caching.html)
diff --git a/vendor/doctrine/cache/UPGRADE.md b/vendor/doctrine/cache/UPGRADE.md
deleted file mode 100644
index e1f8a503e..000000000
--- a/vendor/doctrine/cache/UPGRADE.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Upgrade to 1.4
-
-## Minor BC Break: `Doctrine\Common\Cache\FileCache#$extension` is now `private`.
-
-If you need to override the value of `Doctrine\Common\Cache\FileCache#$extension`, then use the
-second parameter of `Doctrine\Common\Cache\FileCache#__construct()` instead of overriding
-the property in your own implementation.
-
-## Minor BC Break: file based caches paths changed
-
-`Doctrine\Common\Cache\FileCache`, `Doctrine\Common\Cache\PhpFileCache` and
-`Doctrine\Common\Cache\FilesystemCache` are using a different cache paths structure.
-
-If you rely on warmed up caches for deployments, consider that caches generated
-with `doctrine/cache` `<1.4` are not compatible with the new directory structure,
-and will be ignored.
diff --git a/vendor/doctrine/cache/composer.json b/vendor/doctrine/cache/composer.json
deleted file mode 100644
index 2ee5d25bf..000000000
--- a/vendor/doctrine/cache/composer.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "doctrine/cache",
- "type": "library",
- "description": "Caching library offering an object-oriented API for many cache backends",
- "keywords": ["cache", "caching"],
- "homepage": "https://www.doctrine-project.org",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
- ],
- "require": {
- "php": "~7.1"
- },
- "require-dev": {
- "alcaeus/mongo-php-adapter": "^1.1",
- "mongodb/mongodb": "^1.1",
- "phpunit/phpunit": "^7.0",
- "predis/predis": "~1.0",
- "doctrine/coding-standard": "^4.0"
- },
- "suggest": {
- "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver"
- },
- "conflict": {
- "doctrine/common": ">2.2,<2.4"
- },
- "autoload": {
- "psr-4": { "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" }
- },
- "autoload-dev": {
- "psr-4": { "Doctrine\\Tests\\": "tests/Doctrine/Tests" }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/cache/docs/en/index.rst b/vendor/doctrine/cache/docs/en/index.rst
deleted file mode 100644
index f08ab41ef..000000000
--- a/vendor/doctrine/cache/docs/en/index.rst
+++ /dev/null
@@ -1,274 +0,0 @@
-Introduction
-============
-
-Doctrine Cache is a library that provides an interface for caching data.
-It comes with implementations for some of the most popular caching data
-stores. Here is what the ``Cache`` interface looks like.
-
-.. code-block:: php
- namespace Doctrine\Common\Cache;
-
- interface Cache
- {
- public function fetch($id);
- public function contains($id);
- public function save($id, $data, $lifeTime = 0);
- public function delete($id);
- public function getStats();
- }
-
-Here is an example that uses Memcache.
-
-.. code-block:: php
- use Doctrine\Common\Cache\MemcacheCache;
-
- $memcache = new Memcache();
- $cache = new MemcacheCache();
- $cache->setMemcache($memcache);
-
- $cache->set('key', 'value');
-
- echo $cache->get('key') // prints "value"
-
-Drivers
-=======
-
-Doctrine ships with several common drivers that you can easily use.
-Below you can find information about all the available drivers.
-
-ApcCache
---------
-
-The ``ApcCache`` driver uses the ``apc_fetch``, ``apc_exists``, etc. functions that come
-with PHP so no additional setup is required in order to use it.
-
-.. code-block:: php
- $cache = new ApcCache();
-
-ApcuCache
----------
-
-The ``ApcuCache`` driver uses the ``apcu_fetch``, ``apcu_exists``, etc. functions that come
-with PHP so no additional setup is required in order to use it.
-
-.. code-block:: php
- $cache = new ApcuCache();
-
-ArrayCache
-----------
-
-The ``ArrayCache`` driver stores the cache data in PHPs memory and is not persisted anywhere.
-This can be useful for caching things in memory for a single process when you don't need
-the cache to be persistent across processes.
-
-.. code-block:: php
- $cache = new ArrayCache();
-
-ChainCache
-----------
-
-The ``ChainCache`` driver lets you chain multiple other drivers together easily.
-
-.. code-block:: php
- $arrayCache = new ArrayCache();
- $apcuCache = new ApcuCache();
-
- $cache = new ChainCache([$arrayCache, $apcuCache]);
-
-CouchbaseBucketCache
---------------------
-
-The ``CouchbaseBucketCache`` driver uses Couchbase to store the cache data.
-
-.. code-block:: php
- $bucketName = 'bucket-name';
-
- $authenticator = new Couchbase\PasswordAuthenticator();
- $authenticator->username('username')->password('password');
-
- $cluster = new CouchbaseCluster('couchbase://127.0.0.1');
-
- $cluster->authenticate($authenticator);
- $bucket = $cluster->openBucket($bucketName);
-
- $cache = new CouchbaseBucketCache($bucket);
-
-FilesystemCache
----------------
-
-The ``FilesystemCache`` driver stores the cache data on the local filesystem.
-
-.. code-block:: php
- $cache = new FilesystemCache('/path/to/cache/directory');
-
-MemecacheCache
---------------
-
-The ``MemcacheCache`` drivers stores the cache data in Memcache.
-
-.. code-block:: php
- $memcache = new Memcache();
- $memcache->connect('localhost', 11211);
-
- $cache = new MemcacheCache();
- $cache->setMemcache($memcache);
-
-MemcachedCache
---------------
-
-The ``MemcachedCache`` drivers stores the cache data in Memcached.
-
-.. code-block:: php
- $memcached = new Memcached();
-
- $cache = new MemcachedCache();
- $cache->setMemcached($memcached);
-
-MongoDBCache
-------------
-
-The ``MongoDBCache`` drivers stores the cache data in a MongoDB collection.
-
-.. code-block:: php
- $manager = new MongoDB\Driver\Manager("mongodb://localhost:27017");
-
- $collection = new MongoDB\Collection($manager, 'database_name', 'collection_name');
-
- $cache = new MongoDBCache($collection);
-
-PhpFileCache
-------------
-
-The ``PhpFileCache`` driver stores the cache data on the local filesystem like the
-``FilesystemCache`` driver except the data is serialized using the ``serialize()``
-and ``unserialize()`` functions available in PHP. The files are included so this means
-that the data can be cached in PHPs opcache.
-
-.. code-block:: php
- $cache = new PhpFileCache('/path/to/cache/directory');
-
-PredisCache
------------
-
-The ``PredisCache`` driver stores the cache data in Redis
-and depends on the ``predis/predis`` package which can be installed with composer.
-
-.. code-block:: bash
- $ composer require predis/predis
-
-Then you can use the ``Predis\Client`` class to pass to the ``PredisCache`` class.
-
-.. code-block:: php
- $client = new Predis\Client();
-
- $cache = new PredisCache($client);
-
-RedisCache
-----------
-
-The ``RedisCache`` driver stores the cache data in Redis and depends on the
-``phpredis`` extension which can be found `here `_.
-
-.. code-block:: php
- $redis = new Redis();
-
- $cache = new RedisCache($redis);
-
-RiakCache
----------
-
-The ``RiakCache`` driver stores the cache data in Riak and depends on the
-``riak`` extension which can be found `here `_.
-
-.. code-block:: php
- $connection = new Riak\Connection('localhost', 8087);
-
- $bucket = new Riak\Bucket($connection, 'bucket_name');
-
- $cache = new RiakCache($bucket);
-
-SQLite3Cache
-------------
-
-The ``SQLite3Cache`` driver stores the cache data in a SQLite database and depends on the
-``sqlite3`` extension which can be found `here `_.
-
-.. code-block:: php
- $db = new SQLite3('mydatabase.db');
-
- $cache = new SQLite3Cache($db, 'table_name');
-
-VoidCache
----------
-
-The ``VoidCache`` driver does not store the cache data anywhere. This can
-be useful for test environments where you don't want to cache the data
-anywhere but need to satisfy the dependency for the ``Doctrine\Common\Cache\Cache``
-interface.
-
-.. code-block:: php
- $cache = new VoidCache();
-
-WinCacheCache
--------------
-
-The ``WinCacheCache`` driver uses the ``wincache_ucache_get``, ``wincache_ucache_exists``, etc. functions that come
-with the ``wincache`` extension which can be found `here `_.
-
-.. code-block:: php
- $cache = new WinCacheCache();
-
-XcacheCache
------------
-
-The ``XcacheCache`` driver uses functions that come with the ``xcache``
-extension which can be found `here `_.
-
-.. code-block:: php
- $cache = new XcacheCache();
-
-ZendDataCache
--------------
-
-The ``ZendDataCache`` driver uses the Zend Data Cache API available in the Zend Platform.
-
-.. code-block:: php
- $cache = new ZendDataCache();
-
-Custom Drivers
-==============
-
-If you want to implement your own cache driver, you just need to implement
-the ``Doctrine\Common\Cache\Cache`` interface. Here is an example implementation
-skeleton.
-
-.. code-block:: php
- use Doctrine\Common\Cache\Cache;
-
- class MyCacheDriver implements Cache
- {
- public function fetch($id)
- {
- // fetch $id from the cache
- }
-
- public function contains($id)
- {
- // check if $id exists in the cache
- }
-
- public function save($id, $data, $lifeTime = 0)
- {
- // save $data under $id in the cache for $lifetime
- }
-
- public function delete($id)
- {
- // delete $id from the cache
- }
-
- public function getStats()
- {
- // get cache stats
- }
- }
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php
deleted file mode 100644
index 451865e3b..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php
+++ /dev/null
@@ -1,104 +0,0 @@
-= 50500) {
- $info['num_hits'] = $info['num_hits'] ?? $info['nhits'];
- $info['num_misses'] = $info['num_misses'] ?? $info['nmisses'];
- $info['start_time'] = $info['start_time'] ?? $info['stime'];
- }
-
- return [
- Cache::STATS_HITS => $info['num_hits'],
- Cache::STATS_MISSES => $info['num_misses'],
- Cache::STATS_UPTIME => $info['start_time'],
- Cache::STATS_MEMORY_USAGE => $info['mem_size'],
- Cache::STATS_MEMORY_AVAILABLE => $sma['avail_mem'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php
deleted file mode 100644
index a72521361..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php
+++ /dev/null
@@ -1,106 +0,0 @@
- $info['num_hits'],
- Cache::STATS_MISSES => $info['num_misses'],
- Cache::STATS_UPTIME => $info['start_time'],
- Cache::STATS_MEMORY_USAGE => $info['mem_size'],
- Cache::STATS_MEMORY_AVAILABLE => $sma['avail_mem'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php
deleted file mode 100644
index 1beb7098f..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php
+++ /dev/null
@@ -1,113 +0,0 @@
-upTime = time();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- if (! $this->doContains($id)) {
- $this->missesCount += 1;
-
- return false;
- }
-
- $this->hitsCount += 1;
-
- return $this->data[$id][0];
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- if (! isset($this->data[$id])) {
- return false;
- }
-
- $expiration = $this->data[$id][1];
-
- if ($expiration && $expiration < time()) {
- $this->doDelete($id);
-
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- $this->data[$id] = [$data, $lifeTime ? time() + $lifeTime : false];
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- unset($this->data[$id]);
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- $this->data = [];
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- return [
- Cache::STATS_HITS => $this->hitsCount,
- Cache::STATS_MISSES => $this->missesCount,
- Cache::STATS_UPTIME => $this->upTime,
- Cache::STATS_MEMORY_USAGE => null,
- Cache::STATS_MEMORY_AVAILABLE => null,
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php
deleted file mode 100644
index 456974427..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php
+++ /dev/null
@@ -1,90 +0,0 @@
-hits
- * Number of keys that have been requested and found present.
- *
- * - misses
- * Number of items that have been requested and not found.
- *
- * - uptime
- * Time that the server is running.
- *
- * - memory_usage
- * Memory used by this server to store items.
- *
- * - memory_available
- * Memory allowed to use for storage.
- *
- * @return array|null An associative array with server's statistics if available, NULL otherwise.
- */
- public function getStats();
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
deleted file mode 100644
index 3be5454fe..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
+++ /dev/null
@@ -1,325 +0,0 @@
-namespace = (string) $namespace;
- $this->namespaceVersion = null;
- }
-
- /**
- * Retrieves the namespace that prefixes all cache ids.
- *
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * {@inheritdoc}
- */
- public function fetch($id)
- {
- return $this->doFetch($this->getNamespacedId($id));
- }
-
- /**
- * {@inheritdoc}
- */
- public function fetchMultiple(array $keys)
- {
- if (empty($keys)) {
- return [];
- }
-
- // note: the array_combine() is in place to keep an association between our $keys and the $namespacedKeys
- $namespacedKeys = array_combine($keys, array_map([$this, 'getNamespacedId'], $keys));
- $items = $this->doFetchMultiple($namespacedKeys);
- $foundItems = [];
-
- // no internal array function supports this sort of mapping: needs to be iterative
- // this filters and combines keys in one pass
- foreach ($namespacedKeys as $requestedKey => $namespacedKey) {
- if (! isset($items[$namespacedKey]) && ! array_key_exists($namespacedKey, $items)) {
- continue;
- }
-
- $foundItems[$requestedKey] = $items[$namespacedKey];
- }
-
- return $foundItems;
- }
-
- /**
- * {@inheritdoc}
- */
- public function saveMultiple(array $keysAndValues, $lifetime = 0)
- {
- $namespacedKeysAndValues = [];
- foreach ($keysAndValues as $key => $value) {
- $namespacedKeysAndValues[$this->getNamespacedId($key)] = $value;
- }
-
- return $this->doSaveMultiple($namespacedKeysAndValues, $lifetime);
- }
-
- /**
- * {@inheritdoc}
- */
- public function contains($id)
- {
- return $this->doContains($this->getNamespacedId($id));
- }
-
- /**
- * {@inheritdoc}
- */
- public function save($id, $data, $lifeTime = 0)
- {
- return $this->doSave($this->getNamespacedId($id), $data, $lifeTime);
- }
-
- /**
- * {@inheritdoc}
- */
- public function deleteMultiple(array $keys)
- {
- return $this->doDeleteMultiple(array_map([$this, 'getNamespacedId'], $keys));
- }
-
- /**
- * {@inheritdoc}
- */
- public function delete($id)
- {
- return $this->doDelete($this->getNamespacedId($id));
- }
-
- /**
- * {@inheritdoc}
- */
- public function getStats()
- {
- return $this->doGetStats();
- }
-
- /**
- * {@inheritDoc}
- */
- public function flushAll()
- {
- return $this->doFlush();
- }
-
- /**
- * {@inheritDoc}
- */
- public function deleteAll()
- {
- $namespaceCacheKey = $this->getNamespaceCacheKey();
- $namespaceVersion = $this->getNamespaceVersion() + 1;
-
- if ($this->doSave($namespaceCacheKey, $namespaceVersion)) {
- $this->namespaceVersion = $namespaceVersion;
-
- return true;
- }
-
- return false;
- }
-
- /**
- * Prefixes the passed id with the configured namespace value.
- *
- * @param string $id The id to namespace.
- *
- * @return string The namespaced id.
- */
- private function getNamespacedId(string $id) : string
- {
- $namespaceVersion = $this->getNamespaceVersion();
-
- return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion);
- }
-
- /**
- * Returns the namespace cache key.
- */
- private function getNamespaceCacheKey() : string
- {
- return sprintf(self::DOCTRINE_NAMESPACE_CACHEKEY, $this->namespace);
- }
-
- /**
- * Returns the namespace version.
- */
- private function getNamespaceVersion() : int
- {
- if ($this->namespaceVersion !== null) {
- return $this->namespaceVersion;
- }
-
- $namespaceCacheKey = $this->getNamespaceCacheKey();
- $this->namespaceVersion = (int) $this->doFetch($namespaceCacheKey) ?: 1;
-
- return $this->namespaceVersion;
- }
-
- /**
- * Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- *
- * @param array $keys Array of keys to retrieve from cache
- * @return array Array of values retrieved for the given keys.
- */
- protected function doFetchMultiple(array $keys)
- {
- $returnValues = [];
-
- foreach ($keys as $key) {
- $item = $this->doFetch($key);
- if ($item === false && ! $this->doContains($key)) {
- continue;
- }
-
- $returnValues[$key] = $item;
- }
-
- return $returnValues;
- }
-
- /**
- * Fetches an entry from the cache.
- *
- * @param string $id The id of the cache entry to fetch.
- *
- * @return mixed|false The cached data or FALSE, if no cache entry exists for the given id.
- */
- abstract protected function doFetch($id);
-
- /**
- * Tests if an entry exists in the cache.
- *
- * @param string $id The cache id of the entry to check for.
- *
- * @return bool TRUE if a cache entry exists for the given cache id, FALSE otherwise.
- */
- abstract protected function doContains($id);
-
- /**
- * Default implementation of doSaveMultiple. Each driver that supports multi-put should override it.
- *
- * @param array $keysAndValues Array of keys and values to save in cache
- * @param int $lifetime The lifetime. If != 0, sets a specific lifetime for these
- * cache entries (0 => infinite lifeTime).
- *
- * @return bool TRUE if the operation was successful, FALSE if it wasn't.
- */
- protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
- {
- $success = true;
-
- foreach ($keysAndValues as $key => $value) {
- if ($this->doSave($key, $value, $lifetime)) {
- continue;
- }
-
- $success = false;
- }
-
- return $success;
- }
-
- /**
- * Puts data into the cache.
- *
- * @param string $id The cache id.
- * @param string $data The cache entry/data.
- * @param int $lifeTime The lifetime. If != 0, sets a specific lifetime for this
- * cache entry (0 => infinite lifeTime).
- *
- * @return bool TRUE if the entry was successfully stored in the cache, FALSE otherwise.
- */
- abstract protected function doSave($id, $data, $lifeTime = 0);
-
- /**
- * Default implementation of doDeleteMultiple. Each driver that supports multi-delete should override it.
- *
- * @param array $keys Array of keys to delete from cache
- *
- * @return bool TRUE if the operation was successful, FALSE if it wasn't
- */
- protected function doDeleteMultiple(array $keys)
- {
- $success = true;
-
- foreach ($keys as $key) {
- if ($this->doDelete($key)) {
- continue;
- }
-
- $success = false;
- }
-
- return $success;
- }
-
- /**
- * Deletes a cache entry.
- *
- * @param string $id The cache id.
- *
- * @return bool TRUE if the cache entry was successfully deleted, FALSE otherwise.
- */
- abstract protected function doDelete($id);
-
- /**
- * Flushes all cache entries.
- *
- * @return bool TRUE if the cache entries were successfully flushed, FALSE otherwise.
- */
- abstract protected function doFlush();
-
- /**
- * Retrieves cached information from the data store.
- *
- * @return array|null An associative array with server's statistics if available, NULL otherwise.
- */
- abstract protected function doGetStats();
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php
deleted file mode 100644
index 1307fae7d..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php
+++ /dev/null
@@ -1,186 +0,0 @@
-cacheProviders = $cacheProviders instanceof \Traversable
- ? iterator_to_array($cacheProviders, false)
- : array_values($cacheProviders);
- }
-
- /**
- * {@inheritDoc}
- */
- public function setNamespace($namespace)
- {
- parent::setNamespace($namespace);
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $cacheProvider->setNamespace($namespace);
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function doFetch($id)
- {
- foreach ($this->cacheProviders as $key => $cacheProvider) {
- if ($cacheProvider->doContains($id)) {
- $value = $cacheProvider->doFetch($id);
-
- // We populate all the previous cache layers (that are assumed to be faster)
- for ($subKey = $key - 1; $subKey >= 0; $subKey--) {
- $this->cacheProviders[$subKey]->doSave($id, $value);
- }
-
- return $value;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetchMultiple(array $keys)
- {
- /** @var CacheProvider[] $traversedProviders */
- $traversedProviders = [];
- $keysCount = count($keys);
- $fetchedValues = [];
-
- foreach ($this->cacheProviders as $key => $cacheProvider) {
- $fetchedValues = $cacheProvider->doFetchMultiple($keys);
-
- // We populate all the previous cache layers (that are assumed to be faster)
- if (count($fetchedValues) === $keysCount) {
- foreach ($traversedProviders as $previousCacheProvider) {
- $previousCacheProvider->doSaveMultiple($fetchedValues);
- }
-
- return $fetchedValues;
- }
-
- $traversedProviders[] = $cacheProvider;
- }
-
- return $fetchedValues;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function doContains($id)
- {
- foreach ($this->cacheProviders as $cacheProvider) {
- if ($cacheProvider->doContains($id)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- $stored = true;
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $stored = $cacheProvider->doSave($id, $data, $lifeTime) && $stored;
- }
-
- return $stored;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
- {
- $stored = true;
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $stored = $cacheProvider->doSaveMultiple($keysAndValues, $lifetime) && $stored;
- }
-
- return $stored;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function doDelete($id)
- {
- $deleted = true;
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $deleted = $cacheProvider->doDelete($id) && $deleted;
- }
-
- return $deleted;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDeleteMultiple(array $keys)
- {
- $deleted = true;
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $deleted = $cacheProvider->doDeleteMultiple($keys) && $deleted;
- }
-
- return $deleted;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function doFlush()
- {
- $flushed = true;
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $flushed = $cacheProvider->doFlush() && $flushed;
- }
-
- return $flushed;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function doGetStats()
- {
- // We return all the stats from all adapters
- $stats = [];
-
- foreach ($this->cacheProviders as $cacheProvider) {
- $stats[] = $cacheProvider->doGetStats();
- }
-
- return $stats;
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ClearableCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ClearableCache.php
deleted file mode 100644
index b94618e46..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ClearableCache.php
+++ /dev/null
@@ -1,21 +0,0 @@
-bucket = $bucket;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- $id = $this->normalizeKey($id);
-
- try {
- $document = $this->bucket->get($id);
- } catch (Exception $e) {
- return false;
- }
-
- if ($document instanceof Document && $document->value !== false) {
- return unserialize($document->value);
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $id = $this->normalizeKey($id);
-
- try {
- $document = $this->bucket->get($id);
- } catch (Exception $e) {
- return false;
- }
-
- if ($document instanceof Document) {
- return ! $document->error;
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- $id = $this->normalizeKey($id);
-
- $lifeTime = $this->normalizeExpiry($lifeTime);
-
- try {
- $encoded = serialize($data);
-
- $document = $this->bucket->upsert($id, $encoded, [
- 'expiry' => (int) $lifeTime,
- ]);
- } catch (Exception $e) {
- return false;
- }
-
- if ($document instanceof Document) {
- return ! $document->error;
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- $id = $this->normalizeKey($id);
-
- try {
- $document = $this->bucket->remove($id);
- } catch (Exception $e) {
- return $e->getCode() === self::KEY_NOT_FOUND;
- }
-
- if ($document instanceof Document) {
- return ! $document->error;
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- $manager = $this->bucket->manager();
-
- // Flush does not return with success or failure, and must be enabled per bucket on the server.
- // Store a marker item so that we will know if it was successful.
- $this->doSave(__METHOD__, true, 60);
-
- $manager->flush();
-
- if ($this->doContains(__METHOD__)) {
- $this->doDelete(__METHOD__);
-
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $manager = $this->bucket->manager();
- $stats = $manager->info();
- $nodes = $stats['nodes'];
- $node = $nodes[0];
- $interestingStats = $node['interestingStats'];
-
- return [
- Cache::STATS_HITS => $interestingStats['get_hits'],
- Cache::STATS_MISSES => $interestingStats['cmd_get'] - $interestingStats['get_hits'],
- Cache::STATS_UPTIME => $node['uptime'],
- Cache::STATS_MEMORY_USAGE => $interestingStats['mem_used'],
- Cache::STATS_MEMORY_AVAILABLE => $node['memoryFree'],
- ];
- }
-
- private function normalizeKey(string $id) : string
- {
- $normalized = substr($id, 0, self::MAX_KEY_LENGTH);
-
- if ($normalized === false) {
- return $id;
- }
-
- return $normalized;
- }
-
- /**
- * Expiry treated as a unix timestamp instead of an offset if expiry is greater than 30 days.
- * @src https://developer.couchbase.com/documentation/server/4.1/developer-guide/expiry.html
- */
- private function normalizeExpiry(int $expiry) : int
- {
- if ($expiry > self::THIRTY_DAYS_IN_SECONDS) {
- return time() + $expiry;
- }
-
- return $expiry;
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CouchbaseCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CouchbaseCache.php
deleted file mode 100644
index 4c2b9bd2c..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CouchbaseCache.php
+++ /dev/null
@@ -1,102 +0,0 @@
-couchbase = $couchbase;
- }
-
- /**
- * Gets the Couchbase instance used by the cache.
- *
- * @return Couchbase|null
- */
- public function getCouchbase()
- {
- return $this->couchbase;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- return $this->couchbase->get($id) ?: false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- return $this->couchbase->get($id) !== null;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- if ($lifeTime > 30 * 24 * 3600) {
- $lifeTime = time() + $lifeTime;
- }
- return $this->couchbase->set($id, $data, (int) $lifeTime);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- return $this->couchbase->delete($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- return $this->couchbase->flush();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $stats = $this->couchbase->getStats();
- $servers = $this->couchbase->getServers();
- $server = explode(':', $servers[0]);
- $key = $server[0] . ':11210';
- $stats = $stats[$key];
- return [
- Cache::STATS_HITS => $stats['get_hits'],
- Cache::STATS_MISSES => $stats['get_misses'],
- Cache::STATS_UPTIME => $stats['uptime'],
- Cache::STATS_MEMORY_USAGE => $stats['bytes'],
- Cache::STATS_MEMORY_AVAILABLE => $stats['limit_maxbytes'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ExtMongoDBCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ExtMongoDBCache.php
deleted file mode 100644
index 95ab5be1a..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ExtMongoDBCache.php
+++ /dev/null
@@ -1,196 +0,0 @@
-collection = $collection->withOptions(['typeMap' => null]);
- $this->database = new Database($collection->getManager(), $collection->getDatabaseName());
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- $document = $this->collection->findOne(['_id' => $id], [MongoDBCache::DATA_FIELD, MongoDBCache::EXPIRATION_FIELD]);
-
- if ($document === null) {
- return false;
- }
-
- if ($this->isExpired($document)) {
- $this->createExpirationIndex();
- $this->doDelete($id);
- return false;
- }
-
- return unserialize($document[MongoDBCache::DATA_FIELD]->getData());
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $document = $this->collection->findOne(['_id' => $id], [MongoDBCache::EXPIRATION_FIELD]);
-
- if ($document === null) {
- return false;
- }
-
- if ($this->isExpired($document)) {
- $this->createExpirationIndex();
- $this->doDelete($id);
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- try {
- $this->collection->updateOne(
- ['_id' => $id],
- [
- '$set' => [
- MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000): null),
- MongoDBCache::DATA_FIELD => new Binary(serialize($data), Binary::TYPE_GENERIC),
- ],
- ],
- ['upsert' => true]
- );
- } catch (Exception $e) {
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- try {
- $this->collection->deleteOne(['_id' => $id]);
- } catch (Exception $e) {
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- try {
- // Use remove() in lieu of drop() to maintain any collection indexes
- $this->collection->deleteMany([]);
- } catch (Exception $e) {
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $uptime = null;
- $memoryUsage = null;
-
- try {
- $serverStatus = $this->database->command([
- 'serverStatus' => 1,
- 'locks' => 0,
- 'metrics' => 0,
- 'recordStats' => 0,
- 'repl' => 0,
- ])->toArray()[0];
- $uptime = $serverStatus['uptime'] ?? null;
- } catch (Exception $e) {
- }
-
- try {
- $collStats = $this->database->command(['collStats' => $this->collection->getCollectionName()])->toArray()[0];
- $memoryUsage = $collStats['size'] ?? null;
- } catch (Exception $e) {
- }
-
- return [
- Cache::STATS_HITS => null,
- Cache::STATS_MISSES => null,
- Cache::STATS_UPTIME => $uptime,
- Cache::STATS_MEMORY_USAGE => $memoryUsage,
- Cache::STATS_MEMORY_AVAILABLE => null,
- ];
- }
-
- /**
- * Check if the document is expired.
- */
- private function isExpired(BSONDocument $document) : bool
- {
- return isset($document[MongoDBCache::EXPIRATION_FIELD]) &&
- $document[MongoDBCache::EXPIRATION_FIELD] instanceof UTCDateTime &&
- $document[MongoDBCache::EXPIRATION_FIELD]->toDateTime() < new \DateTime();
- }
-
- private function createExpirationIndex() : void
- {
- if ($this->expirationIndexCreated) {
- return;
- }
-
- $this->collection->createIndex([MongoDBCache::EXPIRATION_FIELD => 1], ['background' => true, 'expireAfterSeconds' => 0]);
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php
deleted file mode 100644
index 184680c0c..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php
+++ /dev/null
@@ -1,276 +0,0 @@
-umask = $umask;
-
- if (! $this->createPathIfNeeded($directory)) {
- throw new \InvalidArgumentException(sprintf(
- 'The directory "%s" does not exist and could not be created.',
- $directory
- ));
- }
-
- if (! is_writable($directory)) {
- throw new \InvalidArgumentException(sprintf(
- 'The directory "%s" is not writable.',
- $directory
- ));
- }
-
- // YES, this needs to be *after* createPathIfNeeded()
- $this->directory = realpath($directory);
- $this->extension = (string) $extension;
-
- $this->directoryStringLength = strlen($this->directory);
- $this->extensionStringLength = strlen($this->extension);
- $this->isRunningOnWindows = defined('PHP_WINDOWS_VERSION_BUILD');
- }
-
- /**
- * Gets the cache directory.
- *
- * @return string
- */
- public function getDirectory()
- {
- return $this->directory;
- }
-
- /**
- * Gets the cache file extension.
- *
- * @return string
- */
- public function getExtension()
- {
- return $this->extension;
- }
-
- /**
- * @param string $id
- *
- * @return string
- */
- protected function getFilename($id)
- {
- $hash = hash('sha256', $id);
-
- // This ensures that the filename is unique and that there are no invalid chars in it.
- if ($id === ''
- || ((strlen($id) * 2 + $this->extensionStringLength) > 255)
- || ($this->isRunningOnWindows && ($this->directoryStringLength + 4 + strlen($id) * 2 + $this->extensionStringLength) > 258)
- ) {
- // Most filesystems have a limit of 255 chars for each path component. On Windows the the whole path is limited
- // to 260 chars (including terminating null char). Using long UNC ("\\?\" prefix) does not work with the PHP API.
- // And there is a bug in PHP (https://bugs.php.net/bug.php?id=70943) with path lengths of 259.
- // So if the id in hex representation would surpass the limit, we use the hash instead. The prefix prevents
- // collisions between the hash and bin2hex.
- $filename = '_' . $hash;
- } else {
- $filename = bin2hex($id);
- }
-
- return $this->directory
- . DIRECTORY_SEPARATOR
- . substr($hash, 0, 2)
- . DIRECTORY_SEPARATOR
- . $filename
- . $this->extension;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- $filename = $this->getFilename($id);
-
- return @unlink($filename) || ! file_exists($filename);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- foreach ($this->getIterator() as $name => $file) {
- if ($file->isDir()) {
- // Remove the intermediate directories which have been created to balance the tree. It only takes effect
- // if the directory is empty. If several caches share the same directory but with different file extensions,
- // the other ones are not removed.
- @rmdir($name);
- } elseif ($this->isFilenameEndingWithExtension($name)) {
- // If an extension is set, only remove files which end with the given extension.
- // If no extension is set, we have no other choice than removing everything.
- @unlink($name);
- }
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $usage = 0;
- foreach ($this->getIterator() as $name => $file) {
- if ($file->isDir() || ! $this->isFilenameEndingWithExtension($name)) {
- continue;
- }
-
- $usage += $file->getSize();
- }
-
- $free = disk_free_space($this->directory);
-
- return [
- Cache::STATS_HITS => null,
- Cache::STATS_MISSES => null,
- Cache::STATS_UPTIME => null,
- Cache::STATS_MEMORY_USAGE => $usage,
- Cache::STATS_MEMORY_AVAILABLE => $free,
- ];
- }
-
- /**
- * Create path if needed.
- *
- * @return bool TRUE on success or if path already exists, FALSE if path cannot be created.
- */
- private function createPathIfNeeded(string $path) : bool
- {
- if (! is_dir($path)) {
- if (@mkdir($path, 0777 & (~$this->umask), true) === false && ! is_dir($path)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * Writes a string content to file in an atomic way.
- *
- * @param string $filename Path to the file where to write the data.
- * @param string $content The content to write
- *
- * @return bool TRUE on success, FALSE if path cannot be created, if path is not writable or an any other error.
- */
- protected function writeFile(string $filename, string $content) : bool
- {
- $filepath = pathinfo($filename, PATHINFO_DIRNAME);
-
- if (! $this->createPathIfNeeded($filepath)) {
- return false;
- }
-
- if (! is_writable($filepath)) {
- return false;
- }
-
- $tmpFile = tempnam($filepath, 'swap');
- @chmod($tmpFile, 0666 & (~$this->umask));
-
- if (file_put_contents($tmpFile, $content) !== false) {
- @chmod($tmpFile, 0666 & (~$this->umask));
- if (@rename($tmpFile, $filename)) {
- return true;
- }
-
- @unlink($tmpFile);
- }
-
- return false;
- }
-
- private function getIterator() : \Iterator
- {
- return new \RecursiveIteratorIterator(
- new \RecursiveDirectoryIterator($this->directory, \FilesystemIterator::SKIP_DOTS),
- \RecursiveIteratorIterator::CHILD_FIRST
- );
- }
-
- /**
- * @param string $name The filename
- */
- private function isFilenameEndingWithExtension(string $name) : bool
- {
- return $this->extension === ''
- || strrpos($name, $this->extension) === (strlen($name) - $this->extensionStringLength);
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
deleted file mode 100644
index 8f34c9cb4..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
+++ /dev/null
@@ -1,102 +0,0 @@
-getFilename($id);
-
- if (! is_file($filename)) {
- return false;
- }
-
- $resource = fopen($filename, 'r');
- $line = fgets($resource);
-
- if ($line !== false) {
- $lifetime = (int) $line;
- }
-
- if ($lifetime !== 0 && $lifetime < time()) {
- fclose($resource);
-
- return false;
- }
-
- while (($line = fgets($resource)) !== false) {
- $data .= $line;
- }
-
- fclose($resource);
-
- return unserialize($data);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $lifetime = -1;
- $filename = $this->getFilename($id);
-
- if (! is_file($filename)) {
- return false;
- }
-
- $resource = fopen($filename, 'r');
- $line = fgets($resource);
-
- if ($line !== false) {
- $lifetime = (int) $line;
- }
-
- fclose($resource);
-
- return $lifetime === 0 || $lifetime > time();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- if ($lifeTime > 0) {
- $lifeTime = time() + $lifeTime;
- }
-
- $data = serialize($data);
- $filename = $this->getFilename($id);
-
- return $this->writeFile($filename, $lifeTime . PHP_EOL . $data);
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FlushableCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FlushableCache.php
deleted file mode 100644
index ee7ce984e..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FlushableCache.php
+++ /dev/null
@@ -1,18 +0,0 @@
-collection = $collection;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- $document = $this->collection->findOne(['_id' => $id], [MongoDBCache::DATA_FIELD, MongoDBCache::EXPIRATION_FIELD]);
-
- if ($document === null) {
- return false;
- }
-
- if ($this->isExpired($document)) {
- $this->createExpirationIndex();
- $this->doDelete($id);
- return false;
- }
-
- return unserialize($document[MongoDBCache::DATA_FIELD]->bin);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $document = $this->collection->findOne(['_id' => $id], [MongoDBCache::EXPIRATION_FIELD]);
-
- if ($document === null) {
- return false;
- }
-
- if ($this->isExpired($document)) {
- $this->createExpirationIndex();
- $this->doDelete($id);
- return false;
- }
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- try {
- $result = $this->collection->update(
- ['_id' => $id],
- [
- '$set' => [
- MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new MongoDate(time() + $lifeTime) : null),
- MongoDBCache::DATA_FIELD => new MongoBinData(serialize($data), MongoBinData::BYTE_ARRAY),
- ],
- ],
- ['upsert' => true, 'multiple' => false]
- );
- } catch (MongoCursorException $e) {
- return false;
- }
-
- return ($result['ok'] ?? 1) == 1;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- $result = $this->collection->remove(['_id' => $id]);
-
- return ($result['ok'] ?? 1) == 1;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- // Use remove() in lieu of drop() to maintain any collection indexes
- $result = $this->collection->remove();
-
- return ($result['ok'] ?? 1) == 1;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $serverStatus = $this->collection->db->command([
- 'serverStatus' => 1,
- 'locks' => 0,
- 'metrics' => 0,
- 'recordStats' => 0,
- 'repl' => 0,
- ]);
-
- $collStats = $this->collection->db->command(['collStats' => 1]);
-
- return [
- Cache::STATS_HITS => null,
- Cache::STATS_MISSES => null,
- Cache::STATS_UPTIME => $serverStatus['uptime'] ?? null,
- Cache::STATS_MEMORY_USAGE => $collStats['size'] ?? null,
- Cache::STATS_MEMORY_AVAILABLE => null,
- ];
- }
-
- /**
- * Check if the document is expired.
- *
- * @param array $document
- */
- private function isExpired(array $document) : bool
- {
- return isset($document[MongoDBCache::EXPIRATION_FIELD]) &&
- $document[MongoDBCache::EXPIRATION_FIELD] instanceof MongoDate &&
- $document[MongoDBCache::EXPIRATION_FIELD]->sec < time();
- }
-
-
- private function createExpirationIndex() : void
- {
- if ($this->expirationIndexCreated) {
- return;
- }
-
- $this->expirationIndexCreated = true;
- $this->collection->createIndex([MongoDBCache::EXPIRATION_FIELD => 1], ['background' => true, 'expireAfterSeconds' => 0]);
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcacheCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcacheCache.php
deleted file mode 100644
index 1597ff7b1..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcacheCache.php
+++ /dev/null
@@ -1,102 +0,0 @@
-memcache = $memcache;
- }
-
- /**
- * Gets the memcache instance used by the cache.
- *
- * @return Memcache|null
- */
- public function getMemcache()
- {
- return $this->memcache;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- return $this->memcache->get($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $flags = null;
- $this->memcache->get($id, $flags);
-
- //if memcache has changed the value of "flags", it means the value exists
- return $flags !== null;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- if ($lifeTime > 30 * 24 * 3600) {
- $lifeTime = time() + $lifeTime;
- }
- return $this->memcache->set($id, $data, 0, (int) $lifeTime);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- // Memcache::delete() returns false if entry does not exist
- return $this->memcache->delete($id) || ! $this->doContains($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- return $this->memcache->flush();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $stats = $this->memcache->getStats();
- return [
- Cache::STATS_HITS => $stats['get_hits'],
- Cache::STATS_MISSES => $stats['get_misses'],
- Cache::STATS_UPTIME => $stats['uptime'],
- Cache::STATS_MEMORY_USAGE => $stats['bytes'],
- Cache::STATS_MEMORY_AVAILABLE => $stats['limit_maxbytes'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcachedCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcachedCache.php
deleted file mode 100644
index 6591b926d..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcachedCache.php
+++ /dev/null
@@ -1,130 +0,0 @@
-memcached = $memcached;
- }
-
- /**
- * Gets the memcached instance used by the cache.
- *
- * @return Memcached|null
- */
- public function getMemcached()
- {
- return $this->memcached;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- return $this->memcached->get($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetchMultiple(array $keys)
- {
- return $this->memcached->getMulti($keys) ?: [];
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
- {
- if ($lifetime > 30 * 24 * 3600) {
- $lifetime = time() + $lifetime;
- }
-
- return $this->memcached->setMulti($keysAndValues, $lifetime);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $this->memcached->get($id);
-
- return $this->memcached->getResultCode() === Memcached::RES_SUCCESS;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- if ($lifeTime > 30 * 24 * 3600) {
- $lifeTime = time() + $lifeTime;
- }
- return $this->memcached->set($id, $data, (int) $lifeTime);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDeleteMultiple(array $keys)
- {
- return $this->memcached->deleteMulti($keys)
- || $this->memcached->getResultCode() === Memcached::RES_NOTFOUND;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- return $this->memcached->delete($id)
- || $this->memcached->getResultCode() === Memcached::RES_NOTFOUND;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- return $this->memcached->flush();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $stats = $this->memcached->getStats();
- $servers = $this->memcached->getServerList();
- $key = $servers[0]['host'] . ':' . $servers[0]['port'];
- $stats = $stats[$key];
- return [
- Cache::STATS_HITS => $stats['get_hits'],
- Cache::STATS_MISSES => $stats['get_misses'],
- Cache::STATS_UPTIME => $stats['uptime'],
- Cache::STATS_MEMORY_USAGE => $stats['bytes'],
- Cache::STATS_MEMORY_AVAILABLE => $stats['limit_maxbytes'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MongoDBCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MongoDBCache.php
deleted file mode 100644
index 05ac4f875..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MongoDBCache.php
+++ /dev/null
@@ -1,110 +0,0 @@
-provider = new LegacyMongoDBCache($collection);
- } elseif ($collection instanceof Collection) {
- $this->provider = new ExtMongoDBCache($collection);
- } else {
- throw new \InvalidArgumentException('Invalid collection given - expected a MongoCollection or MongoDB\Collection instance');
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- return $this->provider->doFetch($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- return $this->provider->doContains($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- return $this->provider->doSave($id, $data, $lifeTime);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- return $this->provider->doDelete($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- return $this->provider->doFlush();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- return $this->provider->doGetStats();
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiDeleteCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiDeleteCache.php
deleted file mode 100644
index b4faa41f9..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiDeleteCache.php
+++ /dev/null
@@ -1,21 +0,0 @@
- infinite lifeTime).
- *
- * @return bool TRUE if the operation was successful, FALSE if it wasn't.
- */
- public function saveMultiple(array $keysAndValues, $lifetime = 0);
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PhpFileCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PhpFileCache.php
deleted file mode 100644
index 132b15426..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PhpFileCache.php
+++ /dev/null
@@ -1,118 +0,0 @@
-includeFileForId($id);
-
- if ($value === null) {
- return false;
- }
-
- if ($value['lifetime'] !== 0 && $value['lifetime'] < time()) {
- return false;
- }
-
- return $value['data'];
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $value = $this->includeFileForId($id);
-
- if ($value === null) {
- return false;
- }
-
- return $value['lifetime'] === 0 || $value['lifetime'] > time();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- if ($lifeTime > 0) {
- $lifeTime = time() + $lifeTime;
- }
-
- $filename = $this->getFilename($id);
-
- $value = [
- 'lifetime' => $lifeTime,
- 'data' => $data,
- ];
-
- if (is_object($data) && method_exists($data, '__set_state')) {
- $value = var_export($value, true);
- $code = sprintf('writeFile($filename, $code);
- }
-
- /**
- * @return array|null
- */
- private function includeFileForId(string $id) : ?array
- {
- $fileName = $this->getFilename($id);
-
- // note: error suppression is still faster than `file_exists`, `is_file` and `is_readable`
- set_error_handler(self::$emptyErrorHandler);
-
- $value = include $fileName;
-
- restore_error_handler();
-
- if (! isset($value['lifetime'])) {
- return null;
- }
-
- return $value;
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php
deleted file mode 100644
index 40803de16..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php
+++ /dev/null
@@ -1,143 +0,0 @@
-client = $client;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- $result = $this->client->get($id);
- if ($result === null) {
- return false;
- }
-
- return unserialize($result);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetchMultiple(array $keys)
- {
- $fetchedItems = call_user_func_array([$this->client, 'mget'], $keys);
-
- return array_map('unserialize', array_filter(array_combine($keys, $fetchedItems)));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
- {
- if ($lifetime) {
- $success = true;
-
- // Keys have lifetime, use SETEX for each of them
- foreach ($keysAndValues as $key => $value) {
- $response = (string) $this->client->setex($key, $lifetime, serialize($value));
-
- if ($response == 'OK') {
- continue;
- }
-
- $success = false;
- }
-
- return $success;
- }
-
- // No lifetime, use MSET
- $response = $this->client->mset(array_map(function ($value) {
- return serialize($value);
- }, $keysAndValues));
-
- return (string) $response == 'OK';
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- return (bool) $this->client->exists($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- $data = serialize($data);
- if ($lifeTime > 0) {
- $response = $this->client->setex($id, $lifeTime, $data);
- } else {
- $response = $this->client->set($id, $data);
- }
-
- return $response === true || $response == 'OK';
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- return $this->client->del($id) >= 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDeleteMultiple(array $keys)
- {
- return $this->client->del($keys) >= 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- $response = $this->client->flushdb();
-
- return $response === true || $response == 'OK';
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $info = $this->client->info();
-
- return [
- Cache::STATS_HITS => $info['Stats']['keyspace_hits'],
- Cache::STATS_MISSES => $info['Stats']['keyspace_misses'],
- Cache::STATS_UPTIME => $info['Server']['uptime_in_seconds'],
- Cache::STATS_MEMORY_USAGE => $info['Memory']['used_memory'],
- Cache::STATS_MEMORY_AVAILABLE => false,
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php
deleted file mode 100644
index 463886042..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php
+++ /dev/null
@@ -1,175 +0,0 @@
-setOption(Redis::OPT_SERIALIZER, $this->getSerializerValue());
- $this->redis = $redis;
- }
-
- /**
- * Gets the redis instance used by the cache.
- *
- * @return Redis|null
- */
- public function getRedis()
- {
- return $this->redis;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- return $this->redis->get($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetchMultiple(array $keys)
- {
- $fetchedItems = array_combine($keys, $this->redis->mget($keys));
-
- // Redis mget returns false for keys that do not exist. So we need to filter those out unless it's the real data.
- $foundItems = [];
-
- foreach ($fetchedItems as $key => $value) {
- if ($value === false && ! $this->redis->exists($key)) {
- continue;
- }
-
- $foundItems[$key] = $value;
- }
-
- return $foundItems;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
- {
- if ($lifetime) {
- $success = true;
-
- // Keys have lifetime, use SETEX for each of them
- foreach ($keysAndValues as $key => $value) {
- if ($this->redis->setex($key, $lifetime, $value)) {
- continue;
- }
-
- $success = false;
- }
-
- return $success;
- }
-
- // No lifetime, use MSET
- return (bool) $this->redis->mset($keysAndValues);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- $exists = $this->redis->exists($id);
-
- if (is_bool($exists)) {
- return $exists;
- }
-
- return $exists > 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- if ($lifeTime > 0) {
- return $this->redis->setex($id, $lifeTime, $data);
- }
-
- return $this->redis->set($id, $data);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- return $this->redis->delete($id) >= 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDeleteMultiple(array $keys)
- {
- return $this->redis->delete($keys) >= 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- return $this->redis->flushDB();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $info = $this->redis->info();
- return [
- Cache::STATS_HITS => $info['keyspace_hits'],
- Cache::STATS_MISSES => $info['keyspace_misses'],
- Cache::STATS_UPTIME => $info['uptime_in_seconds'],
- Cache::STATS_MEMORY_USAGE => $info['used_memory'],
- Cache::STATS_MEMORY_AVAILABLE => false,
- ];
- }
-
- /**
- * Returns the serializer constant to use. If Redis is compiled with
- * igbinary support, that is used. Otherwise the default PHP serializer is
- * used.
- *
- * @return int One of the Redis::SERIALIZER_* constants
- */
- protected function getSerializerValue()
- {
- if (defined('Redis::SERIALIZER_IGBINARY') && extension_loaded('igbinary')) {
- return Redis::SERIALIZER_IGBINARY;
- }
-
- return Redis::SERIALIZER_PHP;
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php
deleted file mode 100644
index 0ae220688..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php
+++ /dev/null
@@ -1,228 +0,0 @@
-bucket = $bucket;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- try {
- $response = $this->bucket->get($id);
-
- // No objects found
- if (! $response->hasObject()) {
- return false;
- }
-
- // Check for attempted siblings
- $object = ($response->hasSiblings())
- ? $this->resolveConflict($id, $response->getVClock(), $response->getObjectList())
- : $response->getFirstObject();
-
- // Check for expired object
- if ($this->isExpired($object)) {
- $this->bucket->delete($object);
-
- return false;
- }
-
- return unserialize($object->getContent());
- } catch (Exception\RiakException $e) {
- // Covers:
- // - Riak\ConnectionException
- // - Riak\CommunicationException
- // - Riak\UnexpectedResponseException
- // - Riak\NotFoundException
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- try {
- // We only need the HEAD, not the entire object
- $input = new Input\GetInput();
-
- $input->setReturnHead(true);
-
- $response = $this->bucket->get($id, $input);
-
- // No objects found
- if (! $response->hasObject()) {
- return false;
- }
-
- $object = $response->getFirstObject();
-
- // Check for expired object
- if ($this->isExpired($object)) {
- $this->bucket->delete($object);
-
- return false;
- }
-
- return true;
- } catch (Exception\RiakException $e) {
- // Do nothing
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- try {
- $object = new Object($id);
-
- $object->setContent(serialize($data));
-
- if ($lifeTime > 0) {
- $object->addMetadata(self::EXPIRES_HEADER, (string) (time() + $lifeTime));
- }
-
- $this->bucket->put($object);
-
- return true;
- } catch (Exception\RiakException $e) {
- // Do nothing
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- try {
- $this->bucket->delete($id);
-
- return true;
- } catch (Exception\BadArgumentsException $e) {
- // Key did not exist on cluster already
- } catch (Exception\RiakException $e) {
- // Covers:
- // - Riak\Exception\ConnectionException
- // - Riak\Exception\CommunicationException
- // - Riak\Exception\UnexpectedResponseException
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- try {
- $keyList = $this->bucket->getKeyList();
-
- foreach ($keyList as $key) {
- $this->bucket->delete($key);
- }
-
- return true;
- } catch (Exception\RiakException $e) {
- // Do nothing
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- // Only exposed through HTTP stats API, not Protocol Buffers API
- return null;
- }
-
- /**
- * Check if a given Riak Object have expired.
- */
- private function isExpired(Object $object) : bool
- {
- $metadataMap = $object->getMetadataMap();
-
- return isset($metadataMap[self::EXPIRES_HEADER])
- && $metadataMap[self::EXPIRES_HEADER] < time();
- }
-
- /**
- * On-read conflict resolution. Applied approach here is last write wins.
- * Specific needs may override this method to apply alternate conflict resolutions.
- *
- * {@internal Riak does not attempt to resolve a write conflict, and store
- * it as sibling of conflicted one. By following this approach, it is up to
- * the next read to resolve the conflict. When this happens, your fetched
- * object will have a list of siblings (read as a list of objects).
- * In our specific case, we do not care about the intermediate ones since
- * they are all the same read from storage, and we do apply a last sibling
- * (last write) wins logic.
- * If by any means our resolution generates another conflict, it'll up to
- * next read to properly solve it.}
- *
- * @param string $id
- * @param string $vClock
- * @param array $objectList
- *
- * @return Object
- */
- protected function resolveConflict($id, $vClock, array $objectList)
- {
- // Our approach here is last-write wins
- $winner = $objectList[count($objectList) - 1];
-
- $putInput = new Input\PutInput();
- $putInput->setVClock($vClock);
-
- $mergedObject = new Object($id);
- $mergedObject->setContent($winner->getContent());
-
- $this->bucket->put($mergedObject, $putInput);
-
- return $mergedObject;
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/SQLite3Cache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/SQLite3Cache.php
deleted file mode 100644
index 8b3111f4a..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/SQLite3Cache.php
+++ /dev/null
@@ -1,206 +0,0 @@
-sqlite = $sqlite;
- $this->table = (string) $table;
-
- $this->ensureTableExists();
- }
-
- private function ensureTableExists() : void
- {
- $this->sqlite->exec(
- sprintf(
- 'CREATE TABLE IF NOT EXISTS %s(%s TEXT PRIMARY KEY NOT NULL, %s BLOB, %s INTEGER)',
- $this->table,
- static::ID_FIELD,
- static::DATA_FIELD,
- static::EXPIRATION_FIELD
- )
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFetch($id)
- {
- $item = $this->findById($id);
-
- if (! $item) {
- return false;
- }
-
- return unserialize($item[self::DATA_FIELD]);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- return $this->findById($id, false) !== null;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- $statement = $this->sqlite->prepare(sprintf(
- 'INSERT OR REPLACE INTO %s (%s) VALUES (:id, :data, :expire)',
- $this->table,
- implode(',', $this->getFields())
- ));
-
- $statement->bindValue(':id', $id);
- $statement->bindValue(':data', serialize($data), SQLITE3_BLOB);
- $statement->bindValue(':expire', $lifeTime > 0 ? time() + $lifeTime : null);
-
- return $statement->execute() instanceof SQLite3Result;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- list($idField) = $this->getFields();
-
- $statement = $this->sqlite->prepare(sprintf(
- 'DELETE FROM %s WHERE %s = :id',
- $this->table,
- $idField
- ));
-
- $statement->bindValue(':id', $id);
-
- return $statement->execute() instanceof SQLite3Result;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- return $this->sqlite->exec(sprintf('DELETE FROM %s', $this->table));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- // no-op.
- }
-
- /**
- * Find a single row by ID.
- *
- * @param mixed $id
- *
- * @return array|null
- */
- private function findById($id, bool $includeData = true) : ?array
- {
- list($idField) = $fields = $this->getFields();
-
- if (! $includeData) {
- $key = array_search(static::DATA_FIELD, $fields);
- unset($fields[$key]);
- }
-
- $statement = $this->sqlite->prepare(sprintf(
- 'SELECT %s FROM %s WHERE %s = :id LIMIT 1',
- implode(',', $fields),
- $this->table,
- $idField
- ));
-
- $statement->bindValue(':id', $id, SQLITE3_TEXT);
-
- $item = $statement->execute()->fetchArray(SQLITE3_ASSOC);
-
- if ($item === false) {
- return null;
- }
-
- if ($this->isExpired($item)) {
- $this->doDelete($id);
-
- return null;
- }
-
- return $item;
- }
-
- /**
- * Gets an array of the fields in our table.
- *
- * @return array
- */
- private function getFields() : array
- {
- return [static::ID_FIELD, static::DATA_FIELD, static::EXPIRATION_FIELD];
- }
-
- /**
- * Check if the item is expired.
- *
- * @param array $item
- */
- private function isExpired(array $item) : bool
- {
- return isset($item[static::EXPIRATION_FIELD]) &&
- $item[self::EXPIRATION_FIELD] !== null &&
- $item[self::EXPIRATION_FIELD] < time();
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Version.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Version.php
deleted file mode 100644
index dbf55f42b..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Version.php
+++ /dev/null
@@ -1,8 +0,0 @@
- $info['total_hit_count'],
- Cache::STATS_MISSES => $info['total_miss_count'],
- Cache::STATS_UPTIME => $info['total_cache_uptime'],
- Cache::STATS_MEMORY_USAGE => $meminfo['memory_total'],
- Cache::STATS_MEMORY_AVAILABLE => $meminfo['memory_free'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php
deleted file mode 100644
index 2d5c10abe..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/XcacheCache.php
+++ /dev/null
@@ -1,102 +0,0 @@
-doContains($id) ? unserialize(xcache_get($id)) : false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doContains($id)
- {
- return xcache_isset($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- return xcache_set($id, serialize($data), (int) $lifeTime);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doDelete($id)
- {
- return xcache_unset($id);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doFlush()
- {
- $this->checkAuthorization();
-
- xcache_clear_cache(XC_TYPE_VAR);
-
- return true;
- }
-
- /**
- * Checks that xcache.admin.enable_auth is Off.
- *
- * @return void
- *
- * @throws \BadMethodCallException When xcache.admin.enable_auth is On.
- */
- protected function checkAuthorization()
- {
- if (ini_get('xcache.admin.enable_auth')) {
- throw new \BadMethodCallException(
- 'To use all features of \Doctrine\Common\Cache\XcacheCache, '
- . 'you must set "xcache.admin.enable_auth" to "Off" in your php.ini.'
- );
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- $this->checkAuthorization();
-
- $info = xcache_info(XC_TYPE_VAR, 0);
- return [
- Cache::STATS_HITS => $info['hits'],
- Cache::STATS_MISSES => $info['misses'],
- Cache::STATS_UPTIME => null,
- Cache::STATS_MEMORY_USAGE => $info['size'],
- Cache::STATS_MEMORY_AVAILABLE => $info['avail'],
- ];
- }
-}
diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ZendDataCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ZendDataCache.php
deleted file mode 100644
index 275f3c497..000000000
--- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ZendDataCache.php
+++ /dev/null
@@ -1,68 +0,0 @@
-getNamespace();
- if (empty($namespace)) {
- return zend_shm_cache_clear();
- }
- return zend_shm_cache_clear($namespace);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doGetStats()
- {
- return null;
- }
-}
diff --git a/vendor/doctrine/collections/CONTRIBUTING.md b/vendor/doctrine/collections/CONTRIBUTING.md
deleted file mode 100644
index 407a66521..000000000
--- a/vendor/doctrine/collections/CONTRIBUTING.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# Contribute to Doctrine
-
-Thank you for contributing to Doctrine!
-
-Before we can merge your Pull-Request here are some guidelines that you need to follow.
-These guidelines exist not to annoy you, but to keep the code base clean,
-unified and future proof.
-
-## We only accept PRs to "master"
-
-Our branching strategy is "everything to master first", even
-bugfixes and we then merge them into the stable branches. You should only
-open pull requests against the master branch. Otherwise we cannot accept the PR.
-
-There is one exception to the rule, when we merged a bug into some stable branches
-we do occasionally accept pull requests that merge the same bug fix into earlier
-branches.
-
-## Coding Standard
-
-We use [doctrine coding standard](https://github.com/doctrine/coding-standard) which is PSR-1 and PSR-2:
-
-* https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
-* https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
-
-with some exceptions/differences:
-
-* Keep the nesting of control structures per method as small as possible
-* Align equals (=) signs
-* Add spaces between assignment, control and return statements
-* Prefer early exit over nesting conditions
-* Add spaces around a negation if condition ``if ( ! $cond)``
-* Add legal information at the beginning of each source file
-* Add ``@author`` [phpDoc](https://www.phpdoc.org/docs/latest/references/phpdoc/tags/author.html) comment at DockBlock of class/interface/trait that you create.
-
-## Unit-Tests
-
-Please try to add a test for your pull-request.
-
-* If you want to contribute new functionality add unit- or functional tests
- depending on the scope of the feature.
-
-You can run the unit-tests by calling ``vendor/bin/phpunit`` from the root of the project.
-It will run all the project tests.
-
-In order to do that, you will need a fresh copy of doctrine/collections, and you
-will have to run a composer installation in the project:
-
-```sh
-git clone git@github.com:doctrine/collections.git
-cd collections
-curl -sS https://getcomposer.org/installer | php --
-./composer.phar install
-```
-
-## Travis
-
-We automatically run your pull request through [Travis CI](https://www.travis-ci.org)
-against supported PHP versions. If you break the tests, we cannot merge your code,
-so please make sure that your code is working before opening up a Pull-Request.
-
-## Getting merged
-
-Please allow us time to review your pull requests. We will give our best to review
-everything as fast as possible, but cannot always live up to our own expectations.
-
-Thank you very much again for your contribution!
diff --git a/vendor/doctrine/collections/LICENSE b/vendor/doctrine/collections/LICENSE
deleted file mode 100644
index 5e781fce4..000000000
--- a/vendor/doctrine/collections/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2013 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/collections/README.md b/vendor/doctrine/collections/README.md
deleted file mode 100644
index 81e06d0ce..000000000
--- a/vendor/doctrine/collections/README.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Doctrine Collections
-
-[![Build Status](https://travis-ci.org/doctrine/collections.svg?branch=master)](https://travis-ci.org/doctrine/collections)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doctrine/collections/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doctrine/collections/?branch=master)
-[![Code Coverage](https://scrutinizer-ci.com/g/doctrine/collections/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/doctrine/collections/?branch=master)
-
-Collections Abstraction library
-
-## Changelog
-
-### v1.3.0
-
-* [Explicit casting of first and max results in criteria API](https://github.com/doctrine/collections/pull/26)
-* [Keep keys when using `ArrayCollection#matching()` with sorting](https://github.com/doctrine/collections/pull/49)
-* [Made `AbstractLazyCollection#$initialized` protected for extensibility](https://github.com/doctrine/collections/pull/52)
-
-### v1.2.0
-
-* Add a new ``AbstractLazyCollection``
-
-### v1.1.0
-
-* Deprecated ``Comparison::IS``, because it's only there for SQL semantics.
- These are fixed in the ORM instead.
-* Add ``Comparison::CONTAINS`` to perform partial string matches:
-
- $criteria->andWhere($criteria->expr()->contains('property', 'Foo'));
diff --git a/vendor/doctrine/collections/composer.json b/vendor/doctrine/collections/composer.json
deleted file mode 100644
index b42dbb9b1..000000000
--- a/vendor/doctrine/collections/composer.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "doctrine/collections",
- "type": "library",
- "description": "Collections Abstraction library",
- "keywords": ["collections", "array", "iterator"],
- "homepage": "http://www.doctrine-project.org",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
- ],
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7",
- "doctrine/coding-standard": "~0.1@dev"
- },
- "autoload": {
- "psr-0": { "Doctrine\\Common\\Collections\\": "lib/" }
- },
- "autoload-dev": {
- "psr-4": {
- "Doctrine\\Tests\\": "tests/Doctrine/Tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
deleted file mode 100644
index 746ae7105..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
+++ /dev/null
@@ -1,343 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections;
-
-use Closure;
-
-/**
- * Lazy collection that is backed by a concrete collection
- *
- * @author Michaël Gallego
- * @since 1.2
- */
-abstract class AbstractLazyCollection implements Collection
-{
- /**
- * The backed collection to use
- *
- * @var Collection
- */
- protected $collection;
-
- /**
- * @var bool
- */
- protected $initialized = false;
-
- /**
- * {@inheritDoc}
- */
- public function count()
- {
- $this->initialize();
- return $this->collection->count();
- }
-
- /**
- * {@inheritDoc}
- */
- public function add($element)
- {
- $this->initialize();
- return $this->collection->add($element);
- }
-
- /**
- * {@inheritDoc}
- */
- public function clear()
- {
- $this->initialize();
- $this->collection->clear();
- }
-
- /**
- * {@inheritDoc}
- */
- public function contains($element)
- {
- $this->initialize();
- return $this->collection->contains($element);
- }
-
- /**
- * {@inheritDoc}
- */
- public function isEmpty()
- {
- $this->initialize();
- return $this->collection->isEmpty();
- }
-
- /**
- * {@inheritDoc}
- */
- public function remove($key)
- {
- $this->initialize();
- return $this->collection->remove($key);
- }
-
- /**
- * {@inheritDoc}
- */
- public function removeElement($element)
- {
- $this->initialize();
- return $this->collection->removeElement($element);
- }
-
- /**
- * {@inheritDoc}
- */
- public function containsKey($key)
- {
- $this->initialize();
- return $this->collection->containsKey($key);
- }
-
- /**
- * {@inheritDoc}
- */
- public function get($key)
- {
- $this->initialize();
- return $this->collection->get($key);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getKeys()
- {
- $this->initialize();
- return $this->collection->getKeys();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getValues()
- {
- $this->initialize();
- return $this->collection->getValues();
- }
-
- /**
- * {@inheritDoc}
- */
- public function set($key, $value)
- {
- $this->initialize();
- $this->collection->set($key, $value);
- }
-
- /**
- * {@inheritDoc}
- */
- public function toArray()
- {
- $this->initialize();
- return $this->collection->toArray();
- }
-
- /**
- * {@inheritDoc}
- */
- public function first()
- {
- $this->initialize();
- return $this->collection->first();
- }
-
- /**
- * {@inheritDoc}
- */
- public function last()
- {
- $this->initialize();
- return $this->collection->last();
- }
-
- /**
- * {@inheritDoc}
- */
- public function key()
- {
- $this->initialize();
- return $this->collection->key();
- }
-
- /**
- * {@inheritDoc}
- */
- public function current()
- {
- $this->initialize();
- return $this->collection->current();
- }
-
- /**
- * {@inheritDoc}
- */
- public function next()
- {
- $this->initialize();
- return $this->collection->next();
- }
-
- /**
- * {@inheritDoc}
- */
- public function exists(Closure $p)
- {
- $this->initialize();
- return $this->collection->exists($p);
- }
-
- /**
- * {@inheritDoc}
- */
- public function filter(Closure $p)
- {
- $this->initialize();
- return $this->collection->filter($p);
- }
-
- /**
- * {@inheritDoc}
- */
- public function forAll(Closure $p)
- {
- $this->initialize();
- return $this->collection->forAll($p);
- }
-
- /**
- * {@inheritDoc}
- */
- public function map(Closure $func)
- {
- $this->initialize();
- return $this->collection->map($func);
- }
-
- /**
- * {@inheritDoc}
- */
- public function partition(Closure $p)
- {
- $this->initialize();
- return $this->collection->partition($p);
- }
-
- /**
- * {@inheritDoc}
- */
- public function indexOf($element)
- {
- $this->initialize();
- return $this->collection->indexOf($element);
- }
-
- /**
- * {@inheritDoc}
- */
- public function slice($offset, $length = null)
- {
- $this->initialize();
- return $this->collection->slice($offset, $length);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getIterator()
- {
- $this->initialize();
- return $this->collection->getIterator();
- }
-
- /**
- * {@inheritDoc}
- */
- public function offsetExists($offset)
- {
- $this->initialize();
- return $this->collection->offsetExists($offset);
- }
-
- /**
- * {@inheritDoc}
- */
- public function offsetGet($offset)
- {
- $this->initialize();
- return $this->collection->offsetGet($offset);
- }
-
- /**
- * {@inheritDoc}
- */
- public function offsetSet($offset, $value)
- {
- $this->initialize();
- $this->collection->offsetSet($offset, $value);
- }
-
- /**
- * {@inheritDoc}
- */
- public function offsetUnset($offset)
- {
- $this->initialize();
- $this->collection->offsetUnset($offset);
- }
-
- /**
- * Is the lazy collection already initialized?
- *
- * @return bool
- */
- public function isInitialized()
- {
- return $this->initialized;
- }
-
- /**
- * Initialize the collection
- *
- * @return void
- */
- protected function initialize()
- {
- if ( ! $this->initialized) {
- $this->doInitialize();
- $this->initialized = true;
- }
- }
-
- /**
- * Do the initialization logic
- *
- * @return void
- */
- abstract protected function doInitialize();
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
deleted file mode 100644
index 0bebce200..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
+++ /dev/null
@@ -1,413 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections;
-
-use ArrayIterator;
-use Closure;
-use Doctrine\Common\Collections\Expr\ClosureExpressionVisitor;
-
-/**
- * An ArrayCollection is a Collection implementation that wraps a regular PHP array.
- *
- * Warning: Using (un-)serialize() on a collection is not a supported use-case
- * and may break when we change the internals in the future. If you need to
- * serialize a collection use {@link toArray()} and reconstruct the collection
- * manually.
- *
- * @since 2.0
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- */
-class ArrayCollection implements Collection, Selectable
-{
- /**
- * An array containing the entries of this collection.
- *
- * @var array
- */
- private $elements;
-
- /**
- * Initializes a new ArrayCollection.
- *
- * @param array $elements
- */
- public function __construct(array $elements = [])
- {
- $this->elements = $elements;
- }
-
- /**
- * Creates a new instance from the specified elements.
- *
- * This method is provided for derived classes to specify how a new
- * instance should be created when constructor semantics have changed.
- *
- * @param array $elements Elements.
- *
- * @return static
- */
- protected function createFrom(array $elements)
- {
- return new static($elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function toArray()
- {
- return $this->elements;
- }
-
- /**
- * {@inheritDoc}
- */
- public function first()
- {
- return reset($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function last()
- {
- return end($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function key()
- {
- return key($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function next()
- {
- return next($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function current()
- {
- return current($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function remove($key)
- {
- if ( ! isset($this->elements[$key]) && ! array_key_exists($key, $this->elements)) {
- return null;
- }
-
- $removed = $this->elements[$key];
- unset($this->elements[$key]);
-
- return $removed;
- }
-
- /**
- * {@inheritDoc}
- */
- public function removeElement($element)
- {
- $key = array_search($element, $this->elements, true);
-
- if ($key === false) {
- return false;
- }
-
- unset($this->elements[$key]);
-
- return true;
- }
-
- /**
- * Required by interface ArrayAccess.
- *
- * {@inheritDoc}
- */
- public function offsetExists($offset)
- {
- return $this->containsKey($offset);
- }
-
- /**
- * Required by interface ArrayAccess.
- *
- * {@inheritDoc}
- */
- public function offsetGet($offset)
- {
- return $this->get($offset);
- }
-
- /**
- * Required by interface ArrayAccess.
- *
- * {@inheritDoc}
- */
- public function offsetSet($offset, $value)
- {
- if ( ! isset($offset)) {
- $this->add($value);
- return;
- }
-
- $this->set($offset, $value);
- }
-
- /**
- * Required by interface ArrayAccess.
- *
- * {@inheritDoc}
- */
- public function offsetUnset($offset)
- {
- $this->remove($offset);
- }
-
- /**
- * {@inheritDoc}
- */
- public function containsKey($key)
- {
- return isset($this->elements[$key]) || array_key_exists($key, $this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function contains($element)
- {
- return in_array($element, $this->elements, true);
- }
-
- /**
- * {@inheritDoc}
- */
- public function exists(Closure $p)
- {
- foreach ($this->elements as $key => $element) {
- if ($p($key, $element)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritDoc}
- */
- public function indexOf($element)
- {
- return array_search($element, $this->elements, true);
- }
-
- /**
- * {@inheritDoc}
- */
- public function get($key)
- {
- return $this->elements[$key] ?? null;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getKeys()
- {
- return array_keys($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getValues()
- {
- return array_values($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function count()
- {
- return count($this->elements);
- }
-
- /**
- * {@inheritDoc}
- */
- public function set($key, $value)
- {
- $this->elements[$key] = $value;
- }
-
- /**
- * {@inheritDoc}
- */
- public function add($element)
- {
- $this->elements[] = $element;
-
- return true;
- }
-
- /**
- * {@inheritDoc}
- */
- public function isEmpty()
- {
- return empty($this->elements);
- }
-
- /**
- * Required by interface IteratorAggregate.
- *
- * {@inheritDoc}
- */
- public function getIterator()
- {
- return new ArrayIterator($this->elements);
- }
-
- /**
- * {@inheritDoc}
- *
- * @return static
- */
- public function map(Closure $func)
- {
- return $this->createFrom(array_map($func, $this->elements));
- }
-
- /**
- * {@inheritDoc}
- *
- * @return static
- */
- public function filter(Closure $p)
- {
- return $this->createFrom(array_filter($this->elements, $p));
- }
-
- /**
- * {@inheritDoc}
- */
- public function forAll(Closure $p)
- {
- foreach ($this->elements as $key => $element) {
- if ( ! $p($key, $element)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * {@inheritDoc}
- */
- public function partition(Closure $p)
- {
- $matches = $noMatches = [];
-
- foreach ($this->elements as $key => $element) {
- if ($p($key, $element)) {
- $matches[$key] = $element;
- } else {
- $noMatches[$key] = $element;
- }
- }
-
- return [$this->createFrom($matches), $this->createFrom($noMatches)];
- }
-
- /**
- * Returns a string representation of this object.
- *
- * @return string
- */
- public function __toString()
- {
- return __CLASS__ . '@' . spl_object_hash($this);
- }
-
- /**
- * {@inheritDoc}
- */
- public function clear()
- {
- $this->elements = [];
- }
-
- /**
- * {@inheritDoc}
- */
- public function slice($offset, $length = null)
- {
- return array_slice($this->elements, $offset, $length, true);
- }
-
- /**
- * {@inheritDoc}
- */
- public function matching(Criteria $criteria)
- {
- $expr = $criteria->getWhereExpression();
- $filtered = $this->elements;
-
- if ($expr) {
- $visitor = new ClosureExpressionVisitor();
- $filter = $visitor->dispatch($expr);
- $filtered = array_filter($filtered, $filter);
- }
-
- if ($orderings = $criteria->getOrderings()) {
- $next = null;
- foreach (array_reverse($orderings) as $field => $ordering) {
- $next = ClosureExpressionVisitor::sortByField($field, $ordering == Criteria::DESC ? -1 : 1, $next);
- }
-
- uasort($filtered, $next);
- }
-
- $offset = $criteria->getFirstResult();
- $length = $criteria->getMaxResults();
-
- if ($offset || $length) {
- $filtered = array_slice($filtered, (int)$offset, $length);
- }
-
- return $this->createFrom($filtered);
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php
deleted file mode 100644
index d4777fccc..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php
+++ /dev/null
@@ -1,263 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections;
-
-use ArrayAccess;
-use Closure;
-use Countable;
-use IteratorAggregate;
-
-/**
- * The missing (SPL) Collection/Array/OrderedMap interface.
- *
- * A Collection resembles the nature of a regular PHP array. That is,
- * it is essentially an ordered map that can also be used
- * like a list.
- *
- * A Collection has an internal iterator just like a PHP array. In addition,
- * a Collection can be iterated with external iterators, which is preferable.
- * To use an external iterator simply use the foreach language construct to
- * iterate over the collection (which calls {@link getIterator()} internally) or
- * explicitly retrieve an iterator though {@link getIterator()} which can then be
- * used to iterate over the collection.
- * You can not rely on the internal iterator of the collection being at a certain
- * position unless you explicitly positioned it before. Prefer iteration with
- * external iterators.
- *
- * @since 2.0
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- */
-interface Collection extends Countable, IteratorAggregate, ArrayAccess
-{
- /**
- * Adds an element at the end of the collection.
- *
- * @param mixed $element The element to add.
- *
- * @return bool Always TRUE.
- */
- public function add($element);
-
- /**
- * Clears the collection, removing all elements.
- *
- * @return void
- */
- public function clear();
-
- /**
- * Checks whether an element is contained in the collection.
- * This is an O(n) operation, where n is the size of the collection.
- *
- * @param mixed $element The element to search for.
- *
- * @return bool TRUE if the collection contains the element, FALSE otherwise.
- */
- public function contains($element);
-
- /**
- * Checks whether the collection is empty (contains no elements).
- *
- * @return bool TRUE if the collection is empty, FALSE otherwise.
- */
- public function isEmpty();
-
- /**
- * Removes the element at the specified index from the collection.
- *
- * @param string|int $key The kex/index of the element to remove.
- *
- * @return mixed The removed element or NULL, if the collection did not contain the element.
- */
- public function remove($key);
-
- /**
- * Removes the specified element from the collection, if it is found.
- *
- * @param mixed $element The element to remove.
- *
- * @return bool TRUE if this collection contained the specified element, FALSE otherwise.
- */
- public function removeElement($element);
-
- /**
- * Checks whether the collection contains an element with the specified key/index.
- *
- * @param string|int $key The key/index to check for.
- *
- * @return bool TRUE if the collection contains an element with the specified key/index,
- * FALSE otherwise.
- */
- public function containsKey($key);
-
- /**
- * Gets the element at the specified key/index.
- *
- * @param string|int $key The key/index of the element to retrieve.
- *
- * @return mixed
- */
- public function get($key);
-
- /**
- * Gets all keys/indices of the collection.
- *
- * @return array The keys/indices of the collection, in the order of the corresponding
- * elements in the collection.
- */
- public function getKeys();
-
- /**
- * Gets all values of the collection.
- *
- * @return array The values of all elements in the collection, in the order they
- * appear in the collection.
- */
- public function getValues();
-
- /**
- * Sets an element in the collection at the specified key/index.
- *
- * @param string|int $key The key/index of the element to set.
- * @param mixed $value The element to set.
- *
- * @return void
- */
- public function set($key, $value);
-
- /**
- * Gets a native PHP array representation of the collection.
- *
- * @return array
- */
- public function toArray();
-
- /**
- * Sets the internal iterator to the first element in the collection and returns this element.
- *
- * @return mixed
- */
- public function first();
-
- /**
- * Sets the internal iterator to the last element in the collection and returns this element.
- *
- * @return mixed
- */
- public function last();
-
- /**
- * Gets the key/index of the element at the current iterator position.
- *
- * @return int|string
- */
- public function key();
-
- /**
- * Gets the element of the collection at the current iterator position.
- *
- * @return mixed
- */
- public function current();
-
- /**
- * Moves the internal iterator position to the next element and returns this element.
- *
- * @return mixed
- */
- public function next();
-
- /**
- * Tests for the existence of an element that satisfies the given predicate.
- *
- * @param Closure $p The predicate.
- *
- * @return bool TRUE if the predicate is TRUE for at least one element, FALSE otherwise.
- */
- public function exists(Closure $p);
-
- /**
- * Returns all the elements of this collection that satisfy the predicate p.
- * The order of the elements is preserved.
- *
- * @param Closure $p The predicate used for filtering.
- *
- * @return Collection A collection with the results of the filter operation.
- */
- public function filter(Closure $p);
-
- /**
- * Tests whether the given predicate p holds for all elements of this collection.
- *
- * @param Closure $p The predicate.
- *
- * @return bool TRUE, if the predicate yields TRUE for all elements, FALSE otherwise.
- */
- public function forAll(Closure $p);
-
- /**
- * Applies the given function to each element in the collection and returns
- * a new collection with the elements returned by the function.
- *
- * @param Closure $func
- *
- * @return Collection
- */
- public function map(Closure $func);
-
- /**
- * Partitions this collection in two collections according to a predicate.
- * Keys are preserved in the resulting collections.
- *
- * @param Closure $p The predicate on which to partition.
- *
- * @return Collection[] An array with two elements. The first element contains the collection
- * of elements where the predicate returned TRUE, the second element
- * contains the collection of elements where the predicate returned FALSE.
- */
- public function partition(Closure $p);
-
- /**
- * Gets the index/key of a given element. The comparison of two elements is strict,
- * that means not only the value but also the type must match.
- * For objects this means reference equality.
- *
- * @param mixed $element The element to search for.
- *
- * @return int|string|bool The key/index of the element or FALSE if the element was not found.
- */
- public function indexOf($element);
-
- /**
- * Extracts a slice of $length elements starting at position $offset from the Collection.
- *
- * If $length is null it returns all elements from $offset to the end of the Collection.
- * Keys have to be preserved by this method. Calling this method will only return the
- * selected slice and NOT change the elements contained in the collection slice is called on.
- *
- * @param int $offset The offset to start from.
- * @param int|null $length The maximum number of elements to return, or null for no limit.
- *
- * @return array
- */
- public function slice($offset, $length = null);
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php
deleted file mode 100644
index 748a08474..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php
+++ /dev/null
@@ -1,261 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections;
-
-use Doctrine\Common\Collections\Expr\Expression;
-use Doctrine\Common\Collections\Expr\CompositeExpression;
-
-/**
- * Criteria for filtering Selectable collections.
- *
- * @author Benjamin Eberlei
- * @since 2.3
- */
-class Criteria
-{
- /**
- * @var string
- */
- const ASC = 'ASC';
-
- /**
- * @var string
- */
- const DESC = 'DESC';
-
- /**
- * @var \Doctrine\Common\Collections\ExpressionBuilder|null
- */
- private static $expressionBuilder;
-
- /**
- * @var \Doctrine\Common\Collections\Expr\Expression|null
- */
- private $expression;
-
- /**
- * @var string[]
- */
- private $orderings = [];
-
- /**
- * @var int|null
- */
- private $firstResult;
-
- /**
- * @var int|null
- */
- private $maxResults;
-
- /**
- * Creates an instance of the class.
- *
- * @return Criteria
- */
- public static function create()
- {
- return new static();
- }
-
- /**
- * Returns the expression builder.
- *
- * @return \Doctrine\Common\Collections\ExpressionBuilder
- */
- public static function expr()
- {
- if (self::$expressionBuilder === null) {
- self::$expressionBuilder = new ExpressionBuilder();
- }
-
- return self::$expressionBuilder;
- }
-
- /**
- * Construct a new Criteria.
- *
- * @param Expression $expression
- * @param string[]|null $orderings
- * @param int|null $firstResult
- * @param int|null $maxResults
- */
- public function __construct(Expression $expression = null, array $orderings = null, $firstResult = null, $maxResults = null)
- {
- $this->expression = $expression;
-
- $this->setFirstResult($firstResult);
- $this->setMaxResults($maxResults);
-
- if (null !== $orderings) {
- $this->orderBy($orderings);
- }
- }
-
- /**
- * Sets the where expression to evaluate when this Criteria is searched for.
- *
- * @param Expression $expression
- *
- * @return Criteria
- */
- public function where(Expression $expression)
- {
- $this->expression = $expression;
-
- return $this;
- }
-
- /**
- * Appends the where expression to evaluate when this Criteria is searched for
- * using an AND with previous expression.
- *
- * @param Expression $expression
- *
- * @return Criteria
- */
- public function andWhere(Expression $expression)
- {
- if ($this->expression === null) {
- return $this->where($expression);
- }
-
- $this->expression = new CompositeExpression(
- CompositeExpression::TYPE_AND,
- [$this->expression, $expression]
- );
-
- return $this;
- }
-
- /**
- * Appends the where expression to evaluate when this Criteria is searched for
- * using an OR with previous expression.
- *
- * @param Expression $expression
- *
- * @return Criteria
- */
- public function orWhere(Expression $expression)
- {
- if ($this->expression === null) {
- return $this->where($expression);
- }
-
- $this->expression = new CompositeExpression(
- CompositeExpression::TYPE_OR,
- [$this->expression, $expression]
- );
-
- return $this;
- }
-
- /**
- * Gets the expression attached to this Criteria.
- *
- * @return Expression|null
- */
- public function getWhereExpression()
- {
- return $this->expression;
- }
-
- /**
- * Gets the current orderings of this Criteria.
- *
- * @return string[]
- */
- public function getOrderings()
- {
- return $this->orderings;
- }
-
- /**
- * Sets the ordering of the result of this Criteria.
- *
- * Keys are field and values are the order, being either ASC or DESC.
- *
- * @see Criteria::ASC
- * @see Criteria::DESC
- *
- * @param string[] $orderings
- *
- * @return Criteria
- */
- public function orderBy(array $orderings)
- {
- $this->orderings = array_map(
- function (string $ordering) : string {
- return strtoupper($ordering) === Criteria::ASC ? Criteria::ASC : Criteria::DESC;
- },
- $orderings
- );
-
- return $this;
- }
-
- /**
- * Gets the current first result option of this Criteria.
- *
- * @return int|null
- */
- public function getFirstResult()
- {
- return $this->firstResult;
- }
-
- /**
- * Set the number of first result that this Criteria should return.
- *
- * @param int|null $firstResult The value to set.
- *
- * @return Criteria
- */
- public function setFirstResult($firstResult)
- {
- $this->firstResult = null === $firstResult ? null : (int) $firstResult;
-
- return $this;
- }
-
- /**
- * Gets maxResults.
- *
- * @return int|null
- */
- public function getMaxResults()
- {
- return $this->maxResults;
- }
-
- /**
- * Sets maxResults.
- *
- * @param int|null $maxResults The value to set.
- *
- * @return Criteria
- */
- public function setMaxResults($maxResults)
- {
- $this->maxResults = null === $maxResults ? null : (int) $maxResults;
-
- return $this;
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/ClosureExpressionVisitor.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/ClosureExpressionVisitor.php
deleted file mode 100644
index 70b6b7ef7..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/ClosureExpressionVisitor.php
+++ /dev/null
@@ -1,267 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections\Expr;
-
-/**
- * Walks an expression graph and turns it into a PHP closure.
- *
- * This closure can be used with {@Collection#filter()} and is used internally
- * by {@ArrayCollection#select()}.
- *
- * @author Benjamin Eberlei
- * @since 2.3
- */
-class ClosureExpressionVisitor extends ExpressionVisitor
-{
- /**
- * Accesses the field of a given object. This field has to be public
- * directly or indirectly (through an accessor get*, is*, or a magic
- * method, __get, __call).
- *
- * @param object|array $object
- * @param string $field
- *
- * @return mixed
- */
- public static function getObjectFieldValue($object, $field)
- {
- if (is_array($object)) {
- return $object[$field];
- }
-
- $accessors = ['get', 'is'];
-
- foreach ($accessors as $accessor) {
- $accessor .= $field;
-
- if ( ! method_exists($object, $accessor)) {
- continue;
- }
-
- return $object->$accessor();
- }
-
- // __call should be triggered for get.
- $accessor = $accessors[0] . $field;
-
- if (method_exists($object, '__call')) {
- return $object->$accessor();
- }
-
- if ($object instanceof \ArrayAccess) {
- return $object[$field];
- }
-
- if (isset($object->$field)) {
- return $object->$field;
- }
-
- // camelcase field name to support different variable naming conventions
- $ccField = preg_replace_callback('/_(.?)/', function($matches) { return strtoupper($matches[1]); }, $field);
-
- foreach ($accessors as $accessor) {
- $accessor .= $ccField;
-
-
- if ( ! method_exists($object, $accessor)) {
- continue;
- }
-
- return $object->$accessor();
- }
-
- return $object->$field;
- }
-
- /**
- * Helper for sorting arrays of objects based on multiple fields + orientations.
- *
- * @param string $name
- * @param int $orientation
- * @param \Closure $next
- *
- * @return \Closure
- */
- public static function sortByField($name, $orientation = 1, \Closure $next = null)
- {
- if ( ! $next) {
- $next = function() : int {
- return 0;
- };
- }
-
- return function ($a, $b) use ($name, $next, $orientation) : int {
- $aValue = ClosureExpressionVisitor::getObjectFieldValue($a, $name);
- $bValue = ClosureExpressionVisitor::getObjectFieldValue($b, $name);
-
- if ($aValue === $bValue) {
- return $next($a, $b);
- }
-
- return (($aValue > $bValue) ? 1 : -1) * $orientation;
- };
- }
-
- /**
- * {@inheritDoc}
- */
- public function walkComparison(Comparison $comparison)
- {
- $field = $comparison->getField();
- $value = $comparison->getValue()->getValue(); // shortcut for walkValue()
-
- switch ($comparison->getOperator()) {
- case Comparison::EQ:
- return function ($object) use ($field, $value) : bool {
- return ClosureExpressionVisitor::getObjectFieldValue($object, $field) === $value;
- };
-
- case Comparison::NEQ:
- return function ($object) use ($field, $value) : bool {
- return ClosureExpressionVisitor::getObjectFieldValue($object, $field) !== $value;
- };
-
- case Comparison::LT:
- return function ($object) use ($field, $value) : bool {
- return ClosureExpressionVisitor::getObjectFieldValue($object, $field) < $value;
- };
-
- case Comparison::LTE:
- return function ($object) use ($field, $value) : bool {
- return ClosureExpressionVisitor::getObjectFieldValue($object, $field) <= $value;
- };
-
- case Comparison::GT:
- return function ($object) use ($field, $value) : bool {
- return ClosureExpressionVisitor::getObjectFieldValue($object, $field) > $value;
- };
-
- case Comparison::GTE:
- return function ($object) use ($field, $value) : bool {
- return ClosureExpressionVisitor::getObjectFieldValue($object, $field) >= $value;
- };
-
- case Comparison::IN:
- return function ($object) use ($field, $value) : bool {
- return in_array(ClosureExpressionVisitor::getObjectFieldValue($object, $field), $value, true);
- };
-
- case Comparison::NIN:
- return function ($object) use ($field, $value) : bool {
- return ! in_array(ClosureExpressionVisitor::getObjectFieldValue($object, $field), $value, true);
- };
-
- case Comparison::CONTAINS:
- return function ($object) use ($field, $value) {
- return false !== strpos(ClosureExpressionVisitor::getObjectFieldValue($object, $field), $value);
- };
-
- case Comparison::MEMBER_OF:
- return function ($object) use ($field, $value) : bool {
- $fieldValues = ClosureExpressionVisitor::getObjectFieldValue($object, $field);
- if (!is_array($fieldValues)) {
- $fieldValues = iterator_to_array($fieldValues);
- }
- return in_array($value, $fieldValues, true);
- };
-
- case Comparison::STARTS_WITH:
- return function ($object) use ($field, $value) : bool {
- return 0 === strpos(ClosureExpressionVisitor::getObjectFieldValue($object, $field), $value);
- };
-
- case Comparison::ENDS_WITH:
- return function ($object) use ($field, $value) : bool {
- return $value === substr(ClosureExpressionVisitor::getObjectFieldValue($object, $field), -strlen($value));
- };
-
-
- default:
- throw new \RuntimeException("Unknown comparison operator: " . $comparison->getOperator());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- public function walkValue(Value $value)
- {
- return $value->getValue();
- }
-
- /**
- * {@inheritDoc}
- */
- public function walkCompositeExpression(CompositeExpression $expr)
- {
- $expressionList = [];
-
- foreach ($expr->getExpressionList() as $child) {
- $expressionList[] = $this->dispatch($child);
- }
-
- switch($expr->getType()) {
- case CompositeExpression::TYPE_AND:
- return $this->andExpressions($expressionList);
-
- case CompositeExpression::TYPE_OR:
- return $this->orExpressions($expressionList);
-
- default:
- throw new \RuntimeException("Unknown composite " . $expr->getType());
- }
- }
-
- /**
- * @param array $expressions
- *
- * @return callable
- */
- private function andExpressions(array $expressions) : callable
- {
- return function ($object) use ($expressions) : bool {
- foreach ($expressions as $expression) {
- if ( ! $expression($object)) {
- return false;
- }
- }
-
- return true;
- };
- }
-
- /**
- * @param array $expressions
- *
- * @return callable
- */
- private function orExpressions(array $expressions) : callable
- {
- return function ($object) use ($expressions) : bool {
- foreach ($expressions as $expression) {
- if ($expression($object)) {
- return true;
- }
- }
-
- return false;
- };
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Comparison.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Comparison.php
deleted file mode 100644
index 72fa5eb75..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Comparison.php
+++ /dev/null
@@ -1,106 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections\Expr;
-
-/**
- * Comparison of a field with a value by the given operator.
- *
- * @author Benjamin Eberlei
- * @since 2.3
- */
-class Comparison implements Expression
-{
- const EQ = '=';
- const NEQ = '<>';
- const LT = '<';
- const LTE = '<=';
- const GT = '>';
- const GTE = '>=';
- const IS = '='; // no difference with EQ
- const IN = 'IN';
- const NIN = 'NIN';
- const CONTAINS = 'CONTAINS';
- const MEMBER_OF = 'MEMBER_OF';
- const STARTS_WITH = 'STARTS_WITH';
- const ENDS_WITH = 'ENDS_WITH';
-
- /**
- * @var string
- */
- private $field;
-
- /**
- * @var string
- */
- private $op;
-
- /**
- * @var Value
- */
- private $value;
-
- /**
- * @param string $field
- * @param string $operator
- * @param mixed $value
- */
- public function __construct($field, $operator, $value)
- {
- if ( ! ($value instanceof Value)) {
- $value = new Value($value);
- }
-
- $this->field = $field;
- $this->op = $operator;
- $this->value = $value;
- }
-
- /**
- * @return string
- */
- public function getField()
- {
- return $this->field;
- }
-
- /**
- * @return Value
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * @return string
- */
- public function getOperator()
- {
- return $this->op;
- }
-
- /**
- * {@inheritDoc}
- */
- public function visit(ExpressionVisitor $visitor)
- {
- return $visitor->walkComparison($this);
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/CompositeExpression.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/CompositeExpression.php
deleted file mode 100644
index 2879754ec..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/CompositeExpression.php
+++ /dev/null
@@ -1,90 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections\Expr;
-
-/**
- * Expression of Expressions combined by AND or OR operation.
- *
- * @author Benjamin Eberlei
- * @since 2.3
- */
-class CompositeExpression implements Expression
-{
- const TYPE_AND = 'AND';
- const TYPE_OR = 'OR';
-
- /**
- * @var string
- */
- private $type;
-
- /**
- * @var Expression[]
- */
- private $expressions = [];
-
- /**
- * @param string $type
- * @param array $expressions
- *
- * @throws \RuntimeException
- */
- public function __construct($type, array $expressions)
- {
- $this->type = $type;
-
- foreach ($expressions as $expr) {
- if ($expr instanceof Value) {
- throw new \RuntimeException("Values are not supported expressions as children of and/or expressions.");
- }
- if ( ! ($expr instanceof Expression)) {
- throw new \RuntimeException("No expression given to CompositeExpression.");
- }
-
- $this->expressions[] = $expr;
- }
- }
-
- /**
- * Returns the list of expressions nested in this composite.
- *
- * @return Expression[]
- */
- public function getExpressionList()
- {
- return $this->expressions;
- }
-
- /**
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * {@inheritDoc}
- */
- public function visit(ExpressionVisitor $visitor)
- {
- return $visitor->walkCompositeExpression($this);
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Expression.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Expression.php
deleted file mode 100644
index 68db767c0..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Expression.php
+++ /dev/null
@@ -1,35 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections\Expr;
-
-/**
- * Expression for the {@link Selectable} interface.
- *
- * @author Benjamin Eberlei
- */
-interface Expression
-{
- /**
- * @param ExpressionVisitor $visitor
- *
- * @return mixed
- */
- public function visit(ExpressionVisitor $visitor);
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/ExpressionVisitor.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/ExpressionVisitor.php
deleted file mode 100644
index 080afdc6d..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/ExpressionVisitor.php
+++ /dev/null
@@ -1,82 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections\Expr;
-
-/**
- * An Expression visitor walks a graph of expressions and turns them into a
- * query for the underlying implementation.
- *
- * @author Benjamin Eberlei
- */
-abstract class ExpressionVisitor
-{
- /**
- * Converts a comparison expression into the target query language output.
- *
- * @param Comparison $comparison
- *
- * @return mixed
- */
- abstract public function walkComparison(Comparison $comparison);
-
- /**
- * Converts a value expression into the target query language part.
- *
- * @param Value $value
- *
- * @return mixed
- */
- abstract public function walkValue(Value $value);
-
- /**
- * Converts a composite expression into the target query language output.
- *
- * @param CompositeExpression $expr
- *
- * @return mixed
- */
- abstract public function walkCompositeExpression(CompositeExpression $expr);
-
- /**
- * Dispatches walking an expression to the appropriate handler.
- *
- * @param Expression $expr
- *
- * @return mixed
- *
- * @throws \RuntimeException
- */
- public function dispatch(Expression $expr)
- {
- switch (true) {
- case ($expr instanceof Comparison):
- return $this->walkComparison($expr);
-
- case ($expr instanceof Value):
- return $this->walkValue($expr);
-
- case ($expr instanceof CompositeExpression):
- return $this->walkCompositeExpression($expr);
-
- default:
- throw new \RuntimeException("Unknown Expression " . get_class($expr));
- }
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Value.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Value.php
deleted file mode 100644
index 7f6e83143..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Expr/Value.php
+++ /dev/null
@@ -1,52 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections\Expr;
-
-class Value implements Expression
-{
- /**
- * @var mixed
- */
- private $value;
-
- /**
- * @param mixed $value
- */
- public function __construct($value)
- {
- $this->value = $value;
- }
-
- /**
- * @return mixed
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * {@inheritDoc}
- */
- public function visit(ExpressionVisitor $visitor)
- {
- return $visitor->walkValue($this);
- }
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ExpressionBuilder.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ExpressionBuilder.php
deleted file mode 100644
index 1a44a7ba8..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ExpressionBuilder.php
+++ /dev/null
@@ -1,200 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections;
-
-use Doctrine\Common\Collections\Expr\Comparison;
-use Doctrine\Common\Collections\Expr\CompositeExpression;
-use Doctrine\Common\Collections\Expr\Value;
-
-/**
- * Builder for Expressions in the {@link Selectable} interface.
- *
- * Important Notice for interoperable code: You have to use scalar
- * values only for comparisons, otherwise the behavior of the comparison
- * may be different between implementations (Array vs ORM vs ODM).
- *
- * @author Benjamin Eberlei
- * @since 2.3
- */
-class ExpressionBuilder
-{
- /**
- * @param mixed $x
- *
- * @return CompositeExpression
- */
- public function andX($x = null)
- {
- return new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
- }
-
- /**
- * @param mixed $x
- *
- * @return CompositeExpression
- */
- public function orX($x = null)
- {
- return new CompositeExpression(CompositeExpression::TYPE_OR, func_get_args());
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function eq($field, $value)
- {
- return new Comparison($field, Comparison::EQ, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function gt($field, $value)
- {
- return new Comparison($field, Comparison::GT, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function lt($field, $value)
- {
- return new Comparison($field, Comparison::LT, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function gte($field, $value)
- {
- return new Comparison($field, Comparison::GTE, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function lte($field, $value)
- {
- return new Comparison($field, Comparison::LTE, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function neq($field, $value)
- {
- return new Comparison($field, Comparison::NEQ, new Value($value));
- }
-
- /**
- * @param string $field
- *
- * @return Comparison
- */
- public function isNull($field)
- {
- return new Comparison($field, Comparison::EQ, new Value(null));
- }
-
- /**
- * @param string $field
- * @param mixed $values
- *
- * @return Comparison
- */
- public function in($field, array $values)
- {
- return new Comparison($field, Comparison::IN, new Value($values));
- }
-
- /**
- * @param string $field
- * @param mixed $values
- *
- * @return Comparison
- */
- public function notIn($field, array $values)
- {
- return new Comparison($field, Comparison::NIN, new Value($values));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function contains($field, $value)
- {
- return new Comparison($field, Comparison::CONTAINS, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function memberOf ($field, $value)
- {
- return new Comparison($field, Comparison::MEMBER_OF, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function startsWith($field, $value)
- {
- return new Comparison($field, Comparison::STARTS_WITH, new Value($value));
- }
-
- /**
- * @param string $field
- * @param mixed $value
- *
- * @return Comparison
- */
- public function endsWith($field, $value)
- {
- return new Comparison($field, Comparison::ENDS_WITH, new Value($value));
- }
-
-}
diff --git a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Selectable.php b/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Selectable.php
deleted file mode 100644
index 57660ed7f..000000000
--- a/vendor/doctrine/collections/lib/Doctrine/Common/Collections/Selectable.php
+++ /dev/null
@@ -1,48 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Collections;
-
-/**
- * Interface for collections that allow efficient filtering with an expression API.
- *
- * Goal of this interface is a backend independent method to fetch elements
- * from a collections. {@link Expression} is crafted in a way that you can
- * implement queries from both in-memory and database-backed collections.
- *
- * For database backed collections this allows very efficient access by
- * utilizing the query APIs, for example SQL in the ORM. Applications using
- * this API can implement efficient database access without having to ask the
- * EntityManager or Repositories.
- *
- * @author Benjamin Eberlei
- * @since 2.3
- */
-interface Selectable
-{
- /**
- * Selects all elements from a selectable that match the expression and
- * returns a new collection containing these elements.
- *
- * @param Criteria $criteria
- *
- * @return Collection
- */
- public function matching(Criteria $criteria);
-}
diff --git a/vendor/doctrine/common/.doctrine-project.json b/vendor/doctrine/common/.doctrine-project.json
deleted file mode 100644
index 976252842..000000000
--- a/vendor/doctrine/common/.doctrine-project.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "active": true,
- "name": "Common",
- "slug": "common",
- "docsSlug": "doctrine-common",
- "versions": [
- {
- "name": "master",
- "branchName": "master",
- "slug": "latest",
- "aliases": [
- "current",
- "stable"
- ]
- }
- ]
-}
diff --git a/vendor/doctrine/common/LICENSE b/vendor/doctrine/common/LICENSE
deleted file mode 100644
index 8c38cc1bc..000000000
--- a/vendor/doctrine/common/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2015 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/common/README.md b/vendor/doctrine/common/README.md
deleted file mode 100644
index 5cffb1abc..000000000
--- a/vendor/doctrine/common/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Doctrine Common
-
-[![Build Status](https://secure.travis-ci.org/doctrine/common.png)](https://travis-ci.org/doctrine/common)
-
-The Doctrine Common project is a library that provides extensions to core PHP functionality.
-
-## More resources:
-
-* [Website](https://www.doctrine-project.org/)
-* [Documentation](https://www.doctrine-project.org/projects/doctrine-common/en/latest/)
-* [Downloads](https://github.com/doctrine/common/releases)
diff --git a/vendor/doctrine/common/UPGRADE_TO_2_1 b/vendor/doctrine/common/UPGRADE_TO_2_1
deleted file mode 100644
index 891a2e5c2..000000000
--- a/vendor/doctrine/common/UPGRADE_TO_2_1
+++ /dev/null
@@ -1,39 +0,0 @@
-This document details all the possible changes that you should investigate when updating
-your project from Doctrine Common 2.0.x to 2.1
-
-## AnnotationReader changes
-
-The annotation reader was heavily refactored between 2.0 and 2.1-RC1. In theory the operation of the new reader should be backwards compatible, but it has to be setup differently to work that way:
-
- $reader = new \Doctrine\Common\Annotations\AnnotationReader();
- $reader->setDefaultAnnotationNamespace('Doctrine\ORM\Mapping\\');
- // new code necessary starting here
- $reader->setIgnoreNotImportedAnnotations(true);
- $reader->setEnableParsePhpImports(false);
- $reader = new \Doctrine\Common\Annotations\CachedReader(
- new \Doctrine\Common\Annotations\IndexedReader($reader), new ArrayCache()
- );
-
-## Annotation Base class or @Annotation
-
-Beginning after 2.1-RC2 you have to either extend ``Doctrine\Common\Annotations\Annotation`` or add @Annotation to your annotations class-level docblock, otherwise the class will simply be ignored.
-
-## Removed methods on AnnotationReader
-
-* AnnotationReader::setAutoloadAnnotations()
-* AnnotationReader::getAutoloadAnnotations()
-* AnnotationReader::isAutoloadAnnotations()
-
-## AnnotationRegistry
-
-Autoloading through the PHP autoloader is removed from the 2.1 AnnotationReader. Instead you have to use the global AnnotationRegistry for loading purposes:
-
- \Doctrine\Common\Annotations\AnnotationRegistry::registerFile($fileWithAnnotations);
- \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace($namespace, $dirs = null);
- \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespaces($namespaces);
- \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader($callable);
-
-The $callable for registering a loader accepts a class as first and only parameter and must try to silently autoload it. On success true has to be returned.
-The registerAutoloadNamespace function registers a PSR-0 compatible silent autoloader for all classes with the given namespace in the given directories.
-If null is passed as directory the include path will be used.
-
diff --git a/vendor/doctrine/common/UPGRADE_TO_2_2 b/vendor/doctrine/common/UPGRADE_TO_2_2
deleted file mode 100644
index 1d93a131e..000000000
--- a/vendor/doctrine/common/UPGRADE_TO_2_2
+++ /dev/null
@@ -1,61 +0,0 @@
-This document details all the possible changes that you should investigate when
-updating your project from Doctrine Common 2.1 to 2.2:
-
-## Annotation Changes
-
-- AnnotationReader::setIgnoreNotImportedAnnotations has been removed, you need to
- add ignore annotation names which are supposed to be ignored via
- AnnotationReader::addGlobalIgnoredName
-
-- AnnotationReader::setAutoloadAnnotations was deprecated by the AnnotationRegistry
- in 2.1 and has been removed in 2.2
-
-- AnnotationReader::setEnableParsePhpImports was added to ease transition to the new
- annotation mechanism in 2.1 and is removed in 2.2
-
-- AnnotationReader::isParsePhpImportsEnabled is removed (see above)
-
-- AnnotationReader::setDefaultAnnotationNamespace was deprecated in favor of explicit
- configuration in 2.1 and will be removed in 2.2 (for isolated projects where you
- have full-control over _all_ available annotations, we offer a dedicated reader
- class ``SimpleAnnotationReader``)
-
-- AnnotationReader::setAnnotationCreationFunction was deprecated in 2.1 and will be
- removed in 2.2. We only offer two creation mechanisms which cannot be changed
- anymore to allow the same reader instance to work with all annotations regardless
- of which library they are coming from.
-
-- AnnotationReader::setAnnotationNamespaceAlias was deprecated in 2.1 and will be
- removed in 2.2 (see setDefaultAnnotationNamespace)
-
-- If you use a class as annotation which has not the @Annotation marker in it's
- class block, we will now throw an exception instead of silently ignoring it. You
- can however still achieve the previous behavior using the @IgnoreAnnotation, or
- AnnotationReader::addGlobalIgnoredName (the exception message will contain detailed
- instructions when you run into this problem).
-
-## Cache Changes
-
-- Renamed old AbstractCache to CacheProvider
-
-- Dropped the support to the following functions of all cache providers:
-
- - CacheProvider::deleteByWildcard
-
- - CacheProvider::deleteByRegEx
-
- - CacheProvider::deleteByPrefix
-
- - CacheProvider::deleteBySuffix
-
-- CacheProvider::deleteAll will not remove ALL entries, it will only mark them as invalid
-
-- CacheProvider::flushAll will remove ALL entries, namespaced or not
-
-- Added support to MemcachedCache
-
-- Added support to WincacheCache
-
-## ClassLoader Changes
-
-- ClassLoader::fileExistsInIncludePath() no longer exists. Use the native stream_resolve_include_path() PHP function
\ No newline at end of file
diff --git a/vendor/doctrine/common/composer.json b/vendor/doctrine/common/composer.json
deleted file mode 100644
index ee0f15a13..000000000
--- a/vendor/doctrine/common/composer.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "name": "doctrine/common",
- "type": "library",
- "description": "PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.",
- "keywords": [
- "php",
- "common",
- "doctrine"
- ],
- "homepage": "https://www.doctrine-project.org/projects/common.html",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"},
- {"name": "Marco Pivetta", "email": "ocramius@gmail.com"}
- ],
- "require": {
- "php": "^7.1",
- "doctrine/inflector": "^1.0",
- "doctrine/cache": "^1.0",
- "doctrine/collections": "^1.0",
- "doctrine/lexer": "^1.0",
- "doctrine/annotations": "^1.0",
- "doctrine/event-manager": "^1.0",
- "doctrine/reflection": "^1.0",
- "doctrine/persistence": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.3",
- "doctrine/coding-standard": "^1.0",
- "squizlabs/php_codesniffer": "^3.0",
- "symfony/phpunit-bridge": "^4.0.5"
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Doctrine\\Tests\\": "tests/Doctrine/Tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.10.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/common/docs/en/index.rst b/vendor/doctrine/common/docs/en/index.rst
deleted file mode 100644
index 7550d8b97..000000000
--- a/vendor/doctrine/common/docs/en/index.rst
+++ /dev/null
@@ -1,10 +0,0 @@
-Common Documentation
-====================
-
-Welcome to the Doctrine Common Library documentation.
-
-.. toctree::
- :depth: 2
- :glob:
-
- *
diff --git a/vendor/doctrine/common/docs/en/reference/class-loading.rst b/vendor/doctrine/common/docs/en/reference/class-loading.rst
deleted file mode 100644
index e193b460e..000000000
--- a/vendor/doctrine/common/docs/en/reference/class-loading.rst
+++ /dev/null
@@ -1,242 +0,0 @@
-Class Loading
-=============
-
-Class loading is an essential part of any PHP application that
-makes heavy use of classes and interfaces. Unfortunately, a lot of
-people and projects spend a lot of time and effort on custom and
-specialized class loading strategies. It can quickly become a pain
-to understand what is going on when using multiple libraries and/or
-frameworks, each with its own way to do class loading. Class
-loading should be simple and it is an ideal candidate for
-convention over configuration.
-
-Overview
---------
-
-The Doctrine Common ClassLoader implements a simple and efficient
-approach to class loading that is easy to understand and use. The
-implementation is based on the widely used and accepted convention
-of mapping namespace and class names to a directory structure. This
-approach is used for example by Symfony2, the Zend Framework and of
-course, Doctrine.
-
-For example, the following class:
-
-.. code-block:: php
-
- register();
- $dbalLoader->register();
- $ormLoader->register();
-
-Do not be afraid of using multiple class loaders. Due to the
-efficient class loading design you will not incur much overhead
-from using many class loaders. Take a look at the implementation of
-``ClassLoader#loadClass`` to see how simple and efficient the class
-loading is. The iteration over the installed class loaders happens
-in C (with the exception of using ``ClassLoader::classExists``).
-
-A ClassLoader can be used in the following other variations,
-however, these are rarely used/needed:
-
-
-- If only the second argument is not supplied, the class loader
- will be responsible for the namespace prefix given in the first
- argument and it will rely on the PHP include_path.
-
-- If only the first argument is not supplied, the class loader
- will be responsible for *all* classes and it will try to look up
- *all* classes starting at the directory given as the second
- argument.
-
-- If both arguments are not supplied, the class loader will be
- responsible for *all* classes and it will rely on the PHP
- include_path.
-
-
-File Extension
---------------
-
-By default, a ClassLoader uses the ``.php`` file extension for all
-class files. You can change this behavior, for example to use a
-ClassLoader to load classes from a library that uses the
-".class.php" convention (but it must nevertheless adhere to the
-directory structure convention!):
-
-.. code-block:: php
-
- setFileExtension('.class.php');
- $customLoader->register();
-
-Namespace Separator
--------------------
-
-By default, a ClassLoader uses the ``\`` namespace separator. You
-can change this behavior, for example to use a ClassLoader to load
-legacy Zend Framework classes that still use the underscore "_"
-separator:
-
-.. code-block:: php
-
- setNamespaceSeparator('_');
- $zend1Loader->register();
-
-Failing Silently and class_exists
-----------------------------------
-
-A lot of class/autoloaders these days try to fail silently when a
-class file is not found. For the most part this is necessary in
-order to support using ``class_exists('ClassName', true)`` which is
-supposed to return a boolean value but triggers autoloading. This
-is a bad thing as it basically forces class loaders to fail
-silently, which in turn requires costly file_exists or fopen calls
-for each class being loaded, even though in at least 99% of the
-cases this is not necessary (compare the number of
-class_exists(..., true) invocations to the total number of classes
-being loaded in a request).
-
-The Doctrine Common ClassLoader does not fail silently, by design.
-It therefore does not need any costly checks for file existence. A
-ClassLoader is always responsible for all classes with a certain
-namespace prefix and if a class is requested to be loaded and can
-not be found this is considered to be a fatal error. This also
-means that using class_exists(..., true) to check for class
-existence when using a Doctrine Common ClassLoader is not possible
-but this is not a bad thing. What class\_exists(..., true) actually
-means is two things: 1) Check whether the class is already
-defined/exists (i.e. class_exists(..., false)) and if not 2) check
-whether a class file can be loaded for that class. In the Doctrine
-Common ClassLoader the two responsibilities of loading a class and
-checking for its existence are separated, which can be observed by
-the existence of the two methods ``loadClass`` and
-``canLoadClass``. Thereby ``loadClass`` does not invoke
-``canLoadClass`` internally, by design. However, you are free to
-use it yourself to check whether a class can be loaded and the
-following code snippet is thus equivalent to class\_exists(...,
-true):
-
-.. code-block:: php
-
- canLoadClass('Foo')) {
- // ...
- }
-
-The only problem with this is that it is inconvenient as you need
-to have a reference to the class loaders around (and there are
-often multiple class loaders in use). Therefore, a simpler
-alternative exists for the cases in which you really want to ask
-all installed class loaders whether they can load the class:
-``ClassLoader::classExists($className)``:
-
-.. code-block:: php
-
- ClassLoader is an autoloader for class files that can be
- * installed on the SPL autoload stack. It is a class loader that either loads only classes
- * of a specific namespace or all namespaces and it is suitable for working together
- * with other autoloaders in the SPL autoload stack.
- *
- * If no include path is configured through the constructor or {@link setIncludePath}, a ClassLoader
- * relies on the PHP include_path
.
- *
- * @author Roman Borschel
- * @since 2.0
- *
- * @deprecated The ClassLoader is deprecated and will be removed in version 3.0 of doctrine/common.
- */
-class ClassLoader
-{
- /**
- * PHP file extension.
- *
- * @var string
- */
- protected $fileExtension = '.php';
-
- /**
- * Current namespace.
- *
- * @var string|null
- */
- protected $namespace;
-
- /**
- * Current include path.
- *
- * @var string|null
- */
- protected $includePath;
-
- /**
- * PHP namespace separator.
- *
- * @var string
- */
- protected $namespaceSeparator = '\\';
-
- /**
- * Creates a new ClassLoader that loads classes of the
- * specified namespace from the specified include path.
- *
- * If no include path is given, the ClassLoader relies on the PHP include_path.
- * If neither a namespace nor an include path is given, the ClassLoader will
- * be responsible for loading all classes, thereby relying on the PHP include_path.
- *
- * @param string|null $ns The namespace of the classes to load.
- * @param string|null $includePath The base include path to use.
- */
- public function __construct($ns = null, $includePath = null)
- {
- $this->namespace = $ns;
- $this->includePath = $includePath;
- }
-
- /**
- * Sets the namespace separator used by classes in the namespace of this ClassLoader.
- *
- * @param string $sep The separator to use.
- *
- * @return void
- */
- public function setNamespaceSeparator($sep)
- {
- $this->namespaceSeparator = $sep;
- }
-
- /**
- * Gets the namespace separator used by classes in the namespace of this ClassLoader.
- *
- * @return string
- */
- public function getNamespaceSeparator()
- {
- return $this->namespaceSeparator;
- }
-
- /**
- * Sets the base include path for all class files in the namespace of this ClassLoader.
- *
- * @param string|null $includePath
- *
- * @return void
- */
- public function setIncludePath($includePath)
- {
- $this->includePath = $includePath;
- }
-
- /**
- * Gets the base include path for all class files in the namespace of this ClassLoader.
- *
- * @return string|null
- */
- public function getIncludePath()
- {
- return $this->includePath;
- }
-
- /**
- * Sets the file extension of class files in the namespace of this ClassLoader.
- *
- * @param string $fileExtension
- *
- * @return void
- */
- public function setFileExtension($fileExtension)
- {
- $this->fileExtension = $fileExtension;
- }
-
- /**
- * Gets the file extension of class files in the namespace of this ClassLoader.
- *
- * @return string
- */
- public function getFileExtension()
- {
- return $this->fileExtension;
- }
-
- /**
- * Registers this ClassLoader on the SPL autoload stack.
- *
- * @return void
- */
- public function register()
- {
- spl_autoload_register([$this, 'loadClass']);
- }
-
- /**
- * Removes this ClassLoader from the SPL autoload stack.
- *
- * @return void
- */
- public function unregister()
- {
- spl_autoload_unregister([$this, 'loadClass']);
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $className The name of the class to load.
- *
- * @return boolean TRUE if the class has been successfully loaded, FALSE otherwise.
- */
- public function loadClass($className)
- {
- if (self::typeExists($className)) {
- return true;
- }
-
- if ( ! $this->canLoadClass($className)) {
- return false;
- }
-
- require($this->includePath !== null ? $this->includePath . DIRECTORY_SEPARATOR : '')
- . str_replace($this->namespaceSeparator, DIRECTORY_SEPARATOR, $className)
- . $this->fileExtension;
-
- return self::typeExists($className);
- }
-
- /**
- * Asks this ClassLoader whether it can potentially load the class (file) with
- * the given name.
- *
- * @param string $className The fully-qualified name of the class.
- *
- * @return boolean TRUE if this ClassLoader can load the class, FALSE otherwise.
- */
- public function canLoadClass($className)
- {
- if ($this->namespace !== null && strpos($className, $this->namespace . $this->namespaceSeparator) !== 0) {
- return false;
- }
-
- $file = str_replace($this->namespaceSeparator, DIRECTORY_SEPARATOR, $className) . $this->fileExtension;
-
- if ($this->includePath !== null) {
- return is_file($this->includePath . DIRECTORY_SEPARATOR . $file);
- }
-
- return (false !== stream_resolve_include_path($file));
- }
-
- /**
- * Checks whether a class with a given name exists. A class "exists" if it is either
- * already defined in the current request or if there is an autoloader on the SPL
- * autoload stack that is a) responsible for the class in question and b) is able to
- * load a class file in which the class definition resides.
- *
- * If the class is not already defined, each autoloader in the SPL autoload stack
- * is asked whether it is able to tell if the class exists. If the autoloader is
- * a ClassLoader, {@link canLoadClass} is used, otherwise the autoload
- * function of the autoloader is invoked and expected to return a value that
- * evaluates to TRUE if the class (file) exists. As soon as one autoloader reports
- * that the class exists, TRUE is returned.
- *
- * Note that, depending on what kinds of autoloaders are installed on the SPL
- * autoload stack, the class (file) might already be loaded as a result of checking
- * for its existence. This is not the case with a ClassLoader, who separates
- * these responsibilities.
- *
- * @param string $className The fully-qualified name of the class.
- *
- * @return boolean TRUE if the class exists as per the definition given above, FALSE otherwise.
- */
- public static function classExists($className)
- {
- return self::typeExists($className, true);
- }
-
- /**
- * Gets the ClassLoader from the SPL autoload stack that is responsible
- * for (and is able to load) the class with the given name.
- *
- * @param string $className The name of the class.
- *
- * @return ClassLoader|null The ClassLoader for the class or NULL if no such ClassLoader exists.
- */
- public static function getClassLoader($className)
- {
- foreach (spl_autoload_functions() as $loader) {
- if (is_array($loader)
- && ($classLoader = reset($loader))
- && $classLoader instanceof ClassLoader
- && $classLoader->canLoadClass($className)
- ) {
- return $classLoader;
- }
- }
-
- return null;
- }
-
- /**
- * Checks whether a given type exists
- *
- * @param string $type
- * @param bool $autoload
- *
- * @return bool
- */
- private static function typeExists($type, $autoload = false)
- {
- return class_exists($type, $autoload)
- || interface_exists($type, $autoload)
- || trait_exists($type, $autoload);
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/CommonException.php b/vendor/doctrine/common/lib/Doctrine/Common/CommonException.php
deleted file mode 100644
index bf60621d5..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/CommonException.php
+++ /dev/null
@@ -1,13 +0,0 @@
-
- * @author Guilherme Blanco
- */
-interface Comparable
-{
- /**
- * Compares the current object to the passed $other.
- *
- * Returns 0 if they are semantically equal, 1 if the other object
- * is less than the current one, or -1 if its more than the current one.
- *
- * This method should not check for identity using ===, only for semantical equality for example
- * when two different DateTime instances point to the exact same Date + TZ.
- *
- * @param mixed $other
- *
- * @return int
- */
- public function compareTo($other);
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php b/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php
deleted file mode 100644
index 8f92c2652..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Lexer.php
+++ /dev/null
@@ -1,25 +0,0 @@
-
- * @author Jonathan Wage
- * @author Roman Borschel
- *
- * @deprecated Use Doctrine\Common\Lexer\AbstractLexer from doctrine/lexer package instead.
- */
-abstract class Lexer extends AbstractLexer
-{
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php
deleted file mode 100644
index 00879fc4b..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php
+++ /dev/null
@@ -1,245 +0,0 @@
-
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-abstract class AbstractProxyFactory
-{
- /**
- * Never autogenerate a proxy and rely that it was generated by some
- * process before deployment.
- *
- * @var integer
- */
- const AUTOGENERATE_NEVER = 0;
-
- /**
- * Always generates a new proxy in every request.
- *
- * This is only sane during development.
- *
- * @var integer
- */
- const AUTOGENERATE_ALWAYS = 1;
-
- /**
- * Autogenerate the proxy class when the proxy file does not exist.
- *
- * This strategy causes a file exists call whenever any proxy is used the
- * first time in a request.
- *
- * @var integer
- */
- const AUTOGENERATE_FILE_NOT_EXISTS = 2;
-
- /**
- * Generate the proxy classes using eval().
- *
- * This strategy is only sane for development, and even then it gives me
- * the creeps a little.
- *
- * @var integer
- */
- const AUTOGENERATE_EVAL = 3;
-
- private const AUTOGENERATE_MODES = [
- self::AUTOGENERATE_NEVER,
- self::AUTOGENERATE_ALWAYS,
- self::AUTOGENERATE_FILE_NOT_EXISTS,
- self::AUTOGENERATE_EVAL,
- ];
-
- /**
- * @var \Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
- */
- private $metadataFactory;
-
- /**
- * @var \Doctrine\Common\Proxy\ProxyGenerator the proxy generator responsible for creating the proxy classes/files.
- */
- private $proxyGenerator;
-
- /**
- * @var int Whether to automatically (re)generate proxy classes.
- */
- private $autoGenerate;
-
- /**
- * @var \Doctrine\Common\Proxy\ProxyDefinition[]
- */
- private $definitions = [];
-
- /**
- * @param \Doctrine\Common\Proxy\ProxyGenerator $proxyGenerator
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadataFactory $metadataFactory
- * @param bool|int $autoGenerate
- *
- * @throws \Doctrine\Common\Proxy\Exception\InvalidArgumentException When auto generate mode is not valid.
- */
- public function __construct(ProxyGenerator $proxyGenerator, ClassMetadataFactory $metadataFactory, $autoGenerate)
- {
- $this->proxyGenerator = $proxyGenerator;
- $this->metadataFactory = $metadataFactory;
- $this->autoGenerate = (int) $autoGenerate;
-
- if ( ! in_array($this->autoGenerate, self::AUTOGENERATE_MODES, true)) {
- throw InvalidArgumentException::invalidAutoGenerateMode($autoGenerate);
- }
- }
-
- /**
- * Gets a reference proxy instance for the entity of the given type and identified by
- * the given identifier.
- *
- * @param string $className
- * @param array $identifier
- *
- * @return \Doctrine\Common\Proxy\Proxy
- *
- * @throws \Doctrine\Common\Proxy\Exception\OutOfBoundsException
- */
- public function getProxy($className, array $identifier)
- {
- $definition = isset($this->definitions[$className])
- ? $this->definitions[$className]
- : $this->getProxyDefinition($className);
- $fqcn = $definition->proxyClassName;
- $proxy = new $fqcn($definition->initializer, $definition->cloner);
-
- foreach ($definition->identifierFields as $idField) {
- if ( ! isset($identifier[$idField])) {
- throw OutOfBoundsException::missingPrimaryKeyValue($className, $idField);
- }
-
- $definition->reflectionFields[$idField]->setValue($proxy, $identifier[$idField]);
- }
-
- return $proxy;
- }
-
- /**
- * Generates proxy classes for all given classes.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata[] $classes The classes (ClassMetadata instances)
- * for which to generate proxies.
- * @param string $proxyDir The target directory of the proxy classes. If not specified, the
- * directory configured on the Configuration of the EntityManager used
- * by this factory is used.
- * @return int Number of generated proxies.
- */
- public function generateProxyClasses(array $classes, $proxyDir = null)
- {
- $generated = 0;
-
- foreach ($classes as $class) {
- if ($this->skipClass($class)) {
- continue;
- }
-
- $proxyFileName = $this->proxyGenerator->getProxyFileName($class->getName(), $proxyDir);
-
- $this->proxyGenerator->generateProxyClass($class, $proxyFileName);
-
- $generated += 1;
- }
-
- return $generated;
- }
-
- /**
- * Reset initialization/cloning logic for an un-initialized proxy
- *
- * @param \Doctrine\Common\Proxy\Proxy $proxy
- *
- * @return \Doctrine\Common\Proxy\Proxy
- *
- * @throws \Doctrine\Common\Proxy\Exception\InvalidArgumentException
- */
- public function resetUninitializedProxy(Proxy $proxy)
- {
- if ($proxy->__isInitialized()) {
- throw InvalidArgumentException::unitializedProxyExpected($proxy);
- }
-
- $className = ClassUtils::getClass($proxy);
- $definition = isset($this->definitions[$className])
- ? $this->definitions[$className]
- : $this->getProxyDefinition($className);
-
- $proxy->__setInitializer($definition->initializer);
- $proxy->__setCloner($definition->cloner);
-
- return $proxy;
- }
-
- /**
- * Get a proxy definition for the given class name.
- *
- * @param string $className
- *
- * @return ProxyDefinition
- */
- private function getProxyDefinition($className)
- {
- $classMetadata = $this->metadataFactory->getMetadataFor($className);
- $className = $classMetadata->getName(); // aliases and case sensitivity
-
- $this->definitions[$className] = $this->createProxyDefinition($className);
- $proxyClassName = $this->definitions[$className]->proxyClassName;
-
- if ( ! class_exists($proxyClassName, false)) {
- $fileName = $this->proxyGenerator->getProxyFileName($className);
-
- switch ($this->autoGenerate) {
- case self::AUTOGENERATE_NEVER:
- require $fileName;
- break;
-
- case self::AUTOGENERATE_FILE_NOT_EXISTS:
- if ( ! file_exists($fileName)) {
- $this->proxyGenerator->generateProxyClass($classMetadata, $fileName);
- }
- require $fileName;
- break;
-
- case self::AUTOGENERATE_ALWAYS:
- $this->proxyGenerator->generateProxyClass($classMetadata, $fileName);
- require $fileName;
- break;
-
- case self::AUTOGENERATE_EVAL:
- $this->proxyGenerator->generateProxyClass($classMetadata, false);
- break;
- }
- }
-
- return $this->definitions[$className];
- }
-
- /**
- * Determine if this class should be skipped during proxy generation.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata
- *
- * @return bool
- */
- abstract protected function skipClass(ClassMetadata $metadata);
-
- /**
- * @param string $className
- *
- * @return ProxyDefinition
- */
- abstract protected function createProxyDefinition($className);
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Autoloader.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Autoloader.php
deleted file mode 100644
index f5a08d74b..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Autoloader.php
+++ /dev/null
@@ -1,82 +0,0 @@
-
- *
- * @internal
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-class Autoloader
-{
- /**
- * Resolves proxy class name to a filename based on the following pattern.
- *
- * 1. Remove Proxy namespace from class name.
- * 2. Remove namespace separators from remaining class name.
- * 3. Return PHP filename from proxy-dir with the result from 2.
- *
- * @param string $proxyDir
- * @param string $proxyNamespace
- * @param string $className
- *
- * @return string
- *
- * @throws InvalidArgumentException
- */
- public static function resolveFile($proxyDir, $proxyNamespace, $className)
- {
- if (0 !== strpos($className, $proxyNamespace)) {
- throw InvalidArgumentException::notProxyClass($className, $proxyNamespace);
- }
-
- // remove proxy namespace from class name
- $classNameRelativeToProxyNamespace = substr($className, strlen($proxyNamespace));
-
- // remove namespace separators from remaining class name
- $fileName = str_replace('\\', '', $classNameRelativeToProxyNamespace);
-
- return $proxyDir . DIRECTORY_SEPARATOR . $fileName . '.php';
- }
-
- /**
- * Registers and returns autoloader callback for the given proxy dir and namespace.
- *
- * @param string $proxyDir
- * @param string $proxyNamespace
- * @param callable|null $notFoundCallback Invoked when the proxy file is not found.
- *
- * @return \Closure
- *
- * @throws InvalidArgumentException
- */
- public static function register($proxyDir, $proxyNamespace, $notFoundCallback = null)
- {
- $proxyNamespace = ltrim($proxyNamespace, '\\');
-
- if ( ! (null === $notFoundCallback || is_callable($notFoundCallback))) {
- throw InvalidArgumentException::invalidClassNotFoundCallback($notFoundCallback);
- }
-
- $autoloader = function ($className) use ($proxyDir, $proxyNamespace, $notFoundCallback) {
- if (0 === strpos($className, $proxyNamespace)) {
- $file = Autoloader::resolveFile($proxyDir, $proxyNamespace, $className);
-
- if ($notFoundCallback && ! file_exists($file)) {
- call_user_func($notFoundCallback, $proxyDir, $proxyNamespace, $className);
- }
-
- require $file;
- }
- };
-
- spl_autoload_register($autoloader);
-
- return $autoloader;
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php
deleted file mode 100644
index bab3d70f3..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,106 +0,0 @@
-
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-class InvalidArgumentException extends BaseInvalidArgumentException implements ProxyException
-{
- /**
- * @return self
- */
- public static function proxyDirectoryRequired()
- {
- return new self('You must configure a proxy directory. See docs for details');
- }
-
- /**
- * @param string $className
- * @param string $proxyNamespace
- *
- * @return self
- */
- public static function notProxyClass($className, $proxyNamespace)
- {
- return new self(sprintf('The class "%s" is not part of the proxy namespace "%s"', $className, $proxyNamespace));
- }
-
- /**
- * @param string $name
- *
- * @return self
- */
- public static function invalidPlaceholder($name)
- {
- return new self(sprintf('Provided placeholder for "%s" must be either a string or a valid callable', $name));
- }
-
- /**
- * @return self
- */
- public static function proxyNamespaceRequired()
- {
- return new self('You must configure a proxy namespace');
- }
-
- /**
- * @param Proxy $proxy
- *
- * @return self
- */
- public static function unitializedProxyExpected(Proxy $proxy)
- {
- return new self(sprintf('Provided proxy of type "%s" must not be initialized.', get_class($proxy)));
- }
-
- /**
- * @param mixed $callback
- *
- * @return self
- */
- public static function invalidClassNotFoundCallback($callback)
- {
- $type = is_object($callback) ? get_class($callback) : gettype($callback);
-
- return new self(sprintf('Invalid \$notFoundCallback given: must be a callable, "%s" given', $type));
- }
-
- /**
- * @param string $className
- *
- * @return self
- */
- public static function classMustNotBeAbstract($className)
- {
- return new self(sprintf('Unable to create a proxy for an abstract class "%s".', $className));
- }
-
- /**
- * @param string $className
- *
- * @return self
- */
- public static function classMustNotBeFinal($className)
- {
- return new self(sprintf('Unable to create a proxy for a final class "%s".', $className));
- }
-
- /**
- * @param mixed $value
- *
- * @return self
- */
- public static function invalidAutoGenerateMode($value) : self
- {
- return new self(sprintf('Invalid auto generate mode "%s" given.', $value));
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/OutOfBoundsException.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/OutOfBoundsException.php
deleted file mode 100644
index df402688d..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/OutOfBoundsException.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-class OutOfBoundsException extends BaseOutOfBoundsException implements ProxyException
-{
- /**
- * @param string $className
- * @param string $idField
- *
- * @return self
- */
- public static function missingPrimaryKeyValue($className, $idField)
- {
- return new self(sprintf("Missing value for primary key %s on %s", $idField, $className));
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/ProxyException.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/ProxyException.php
deleted file mode 100644
index 751f9a91f..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/ProxyException.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-interface ProxyException
-{
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php
deleted file mode 100644
index cbe6d7ef7..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php
+++ /dev/null
@@ -1,72 +0,0 @@
-
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-class UnexpectedValueException extends BaseUnexpectedValueException implements ProxyException
-{
- /**
- * @param string $proxyDirectory
- *
- * @return self
- */
- public static function proxyDirectoryNotWritable($proxyDirectory)
- {
- return new self(sprintf('Your proxy directory "%s" must be writable', $proxyDirectory));
- }
-
- /**
- * @param string $className
- * @param string $methodName
- * @param string $parameterName
- * @param \Exception|null $previous
- *
- * @return self
- */
- public static function invalidParameterTypeHint(
- $className,
- $methodName,
- $parameterName,
- \Exception $previous = null
- ) {
- return new self(
- sprintf(
- 'The type hint of parameter "%s" in method "%s" in class "%s" is invalid.',
- $parameterName,
- $methodName,
- $className
- ),
- 0,
- $previous
- );
- }
-
- /**
- * @param $className
- * @param $methodName
- * @param \Exception|null $previous
- *
- * @return self
- */
- public static function invalidReturnTypeHint($className, $methodName, \Exception $previous = null)
- {
- return new self(
- sprintf(
- 'The return type of method "%s" in class "%s" is invalid.',
- $methodName,
- $className
- ),
- 0,
- $previous
- );
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php
deleted file mode 100644
index 1e76b714d..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php
+++ /dev/null
@@ -1,74 +0,0 @@
-
- * @author Marco Pivetta
- * @since 2.4
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-interface Proxy extends BaseProxy
-{
- /**
- * Marks the proxy as initialized or not.
- *
- * @param boolean $initialized
- *
- * @return void
- */
- public function __setInitialized($initialized);
-
- /**
- * Sets the initializer callback to be used when initializing the proxy. That
- * initializer should accept 3 parameters: $proxy, $method and $params. Those
- * are respectively the proxy object that is being initialized, the method name
- * that triggered initialization and the parameters passed to that method.
- *
- * @param Closure|null $initializer
- *
- * @return void
- */
- public function __setInitializer(Closure $initializer = null);
-
- /**
- * Retrieves the initializer callback used to initialize the proxy.
- *
- * @see __setInitializer
- *
- * @return Closure|null
- */
- public function __getInitializer();
-
- /**
- * Sets the callback to be used when cloning the proxy. That initializer should accept
- * a single parameter, which is the cloned proxy instance itself.
- *
- * @param Closure|null $cloner
- *
- * @return void
- */
- public function __setCloner(Closure $cloner = null);
-
- /**
- * Retrieves the callback to be used when cloning the proxy.
- *
- * @see __setCloner
- *
- * @return Closure|null
- */
- public function __getCloner();
-
- /**
- * Retrieves the list of lazy loaded properties for a given proxy
- *
- * @return array Keys are the property names, and values are the default values
- * for those properties.
- */
- public function __getLazyProperties();
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyDefinition.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyDefinition.php
deleted file mode 100644
index cb13cec9b..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyDefinition.php
+++ /dev/null
@@ -1,53 +0,0 @@
-
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-class ProxyDefinition
-{
- /**
- * @var string
- */
- public $proxyClassName;
-
- /**
- * @var array
- */
- public $identifierFields;
-
- /**
- * @var \ReflectionProperty[]
- */
- public $reflectionFields;
-
- /**
- * @var callable
- */
- public $initializer;
-
- /**
- * @var callable
- */
- public $cloner;
-
- /**
- * @param string $proxyClassName
- * @param array $identifierFields
- * @param array $reflectionFields
- * @param callable $initializer
- * @param callable $cloner
- */
- public function __construct($proxyClassName, array $identifierFields, array $reflectionFields, $initializer, $cloner)
- {
- $this->proxyClassName = $proxyClassName;
- $this->identifierFields = $identifierFields;
- $this->reflectionFields = $reflectionFields;
- $this->initializer = $initializer;
- $this->cloner = $cloner;
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php b/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
deleted file mode 100644
index 791c30423..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
+++ /dev/null
@@ -1,1064 +0,0 @@
-
- * @since 2.4
- *
- * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
- */
-class ProxyGenerator
-{
- /**
- * Used to match very simple id methods that don't need
- * to be decorated since the identifier is known.
- */
- const PATTERN_MATCH_ID_METHOD = '((public\s+)?(function\s+%s\s*\(\)\s*)\s*(?::\s*\??\s*\\\\?[a-z_\x7f-\xff][\w\x7f-\xff]*(?:\\\\[a-z_\x7f-\xff][\w\x7f-\xff]*)*\s*)?{\s*return\s*\$this->%s;\s*})i';
-
- /**
- * The namespace that contains all proxy classes.
- *
- * @var string
- */
- private $proxyNamespace;
-
- /**
- * The directory that contains all proxy classes.
- *
- * @var string
- */
- private $proxyDirectory;
-
- /**
- * Map of callables used to fill in placeholders set in the template.
- *
- * @var string[]|callable[]
- */
- protected $placeholders = [
- 'baseProxyInterface' => Proxy::class,
- 'additionalProperties' => '',
- ];
-
- /**
- * Template used as a blueprint to generate proxies.
- *
- * @var string
- */
- protected $proxyClassTemplate = ';
-
-/**
- * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE\'S PROXY GENERATOR
- */
-class extends \ implements \
-{
- /**
- * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
- * three parameters, being respectively the proxy object to be initialized, the method that triggered the
- * initialization process and an array of ordered parameters that were passed to that method.
- *
- * @see \Doctrine\Common\Persistence\Proxy::__setInitializer
- */
- public $__initializer__;
-
- /**
- * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
- *
- * @see \Doctrine\Common\Persistence\Proxy::__setCloner
- */
- public $__cloner__;
-
- /**
- * @var boolean flag indicating if this object was already initialized
- *
- * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
- */
- public $__isInitialized__ = false;
-
- /**
- * @var array properties to be lazy loaded, with keys being the property
- * names and values being their default values
- *
- * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
- */
- public static $lazyPropertiesDefaults = [];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /**
- * Forces initialization of the proxy
- */
- public function __load()
- {
- $this->__initializer__ && $this->__initializer__->__invoke($this, \'__load\', []);
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific loading logic
- */
- public function __isInitialized()
- {
- return $this->__isInitialized__;
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific loading logic
- */
- public function __setInitialized($initialized)
- {
- $this->__isInitialized__ = $initialized;
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific loading logic
- */
- public function __setInitializer(\Closure $initializer = null)
- {
- $this->__initializer__ = $initializer;
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific loading logic
- */
- public function __getInitializer()
- {
- return $this->__initializer__;
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific loading logic
- */
- public function __setCloner(\Closure $cloner = null)
- {
- $this->__cloner__ = $cloner;
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific cloning logic
- */
- public function __getCloner()
- {
- return $this->__cloner__;
- }
-
- /**
- * {@inheritDoc}
- * @internal generated method: use only when explicitly handling proxy specific loading logic
- * @static
- */
- public function __getLazyProperties()
- {
- return self::$lazyPropertiesDefaults;
- }
-
-
-}
-';
-
- /**
- * Initializes a new instance of the ProxyFactory class that is
- * connected to the given EntityManager.
- *
- * @param string $proxyDirectory The directory to use for the proxy classes. It must exist.
- * @param string $proxyNamespace The namespace to use for the proxy classes.
- *
- * @throws InvalidArgumentException
- */
- public function __construct($proxyDirectory, $proxyNamespace)
- {
- if ( ! $proxyDirectory) {
- throw InvalidArgumentException::proxyDirectoryRequired();
- }
-
- if ( ! $proxyNamespace) {
- throw InvalidArgumentException::proxyNamespaceRequired();
- }
-
- $this->proxyDirectory = $proxyDirectory;
- $this->proxyNamespace = $proxyNamespace;
- }
-
- /**
- * Sets a placeholder to be replaced in the template.
- *
- * @param string $name
- * @param string|callable $placeholder
- *
- * @throws InvalidArgumentException
- */
- public function setPlaceholder($name, $placeholder)
- {
- if ( ! is_string($placeholder) && ! is_callable($placeholder)) {
- throw InvalidArgumentException::invalidPlaceholder($name);
- }
-
- $this->placeholders[$name] = $placeholder;
- }
-
- /**
- * Sets the base template used to create proxy classes.
- *
- * @param string $proxyClassTemplate
- */
- public function setProxyClassTemplate($proxyClassTemplate)
- {
- $this->proxyClassTemplate = (string) $proxyClassTemplate;
- }
-
- /**
- * Generates a proxy class file.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class Metadata for the original class.
- * @param string|bool $fileName Filename (full path) for the generated class. If none is given, eval() is used.
- *
- * @throws InvalidArgumentException
- * @throws UnexpectedValueException
- */
- public function generateProxyClass(ClassMetadata $class, $fileName = false)
- {
- $this->verifyClassCanBeProxied($class);
-
- preg_match_all('(<([a-zA-Z]+)>)', $this->proxyClassTemplate, $placeholderMatches);
-
- $placeholderMatches = array_combine($placeholderMatches[0], $placeholderMatches[1]);
- $placeholders = [];
-
- foreach ($placeholderMatches as $placeholder => $name) {
- $placeholders[$placeholder] = isset($this->placeholders[$name])
- ? $this->placeholders[$name]
- : [$this, 'generate' . $name];
- }
-
- foreach ($placeholders as & $placeholder) {
- if (is_callable($placeholder)) {
- $placeholder = call_user_func($placeholder, $class);
- }
- }
-
- $proxyCode = strtr($this->proxyClassTemplate, $placeholders);
-
- if ( ! $fileName) {
- $proxyClassName = $this->generateNamespace($class) . '\\' . $this->generateProxyShortClassName($class);
-
- if ( ! class_exists($proxyClassName)) {
- eval(substr($proxyCode, 5));
- }
-
- return;
- }
-
- $parentDirectory = dirname($fileName);
-
- if ( ! is_dir($parentDirectory) && (false === @mkdir($parentDirectory, 0775, true))) {
- throw UnexpectedValueException::proxyDirectoryNotWritable($this->proxyDirectory);
- }
-
- if ( ! is_writable($parentDirectory)) {
- throw UnexpectedValueException::proxyDirectoryNotWritable($this->proxyDirectory);
- }
-
- $tmpFileName = $fileName . '.' . uniqid('', true);
-
- file_put_contents($tmpFileName, $proxyCode);
- @chmod($tmpFileName, 0664);
- rename($tmpFileName, $fileName);
- }
-
- /**
- * @param ClassMetadata $class
- *
- * @throws InvalidArgumentException
- */
- private function verifyClassCanBeProxied(ClassMetadata $class)
- {
- if ($class->getReflectionClass()->isFinal()) {
- throw InvalidArgumentException::classMustNotBeFinal($class->getName());
- }
-
- if ($class->getReflectionClass()->isAbstract()) {
- throw InvalidArgumentException::classMustNotBeAbstract($class->getName());
- }
- }
-
- /**
- * Generates the proxy short class name to be used in the template.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateProxyShortClassName(ClassMetadata $class)
- {
- $proxyClassName = ClassUtils::generateProxyClassName($class->getName(), $this->proxyNamespace);
- $parts = explode('\\', strrev($proxyClassName), 2);
-
- return strrev($parts[0]);
- }
-
- /**
- * Generates the proxy namespace.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateNamespace(ClassMetadata $class)
- {
- $proxyClassName = ClassUtils::generateProxyClassName($class->getName(), $this->proxyNamespace);
- $parts = explode('\\', strrev($proxyClassName), 2);
-
- return strrev($parts[1]);
- }
-
- /**
- * Generates the original class name.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateClassName(ClassMetadata $class)
- {
- return ltrim($class->getName(), '\\');
- }
-
- /**
- * Generates the array representation of lazy loaded public properties and their default values.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateLazyPropertiesDefaults(ClassMetadata $class)
- {
- $lazyPublicProperties = $this->getLazyLoadedPublicProperties($class);
- $values = [];
-
- foreach ($lazyPublicProperties as $key => $value) {
- $values[] = var_export($key, true) . ' => ' . var_export($value, true);
- }
-
- return implode(', ', $values);
- }
-
- /**
- * Generates the constructor code (un-setting public lazy loaded properties, setting identifier field values).
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateConstructorImpl(ClassMetadata $class)
- {
- $constructorImpl = <<<'EOT'
- /**
- * @param \Closure $initializer
- * @param \Closure $cloner
- */
- public function __construct($initializer = null, $cloner = null)
- {
-
-EOT;
- $toUnset = [];
-
- foreach ($this->getLazyLoadedPublicProperties($class) as $lazyPublicProperty => $unused) {
- $toUnset[] = '$this->' . $lazyPublicProperty;
- }
-
- $constructorImpl .= (empty($toUnset) ? '' : ' unset(' . implode(', ', $toUnset) . ");\n")
- . <<<'EOT'
-
- $this->__initializer__ = $initializer;
- $this->__cloner__ = $cloner;
- }
-EOT;
-
- return $constructorImpl;
- }
-
- /**
- * Generates the magic getter invoked when lazy loaded public properties are requested.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateMagicGet(ClassMetadata $class)
- {
- $lazyPublicProperties = array_keys($this->getLazyLoadedPublicProperties($class));
- $reflectionClass = $class->getReflectionClass();
- $hasParentGet = false;
- $returnReference = '';
- $inheritDoc = '';
-
- if ($reflectionClass->hasMethod('__get')) {
- $hasParentGet = true;
- $inheritDoc = '{@inheritDoc}';
-
- if ($reflectionClass->getMethod('__get')->returnsReference()) {
- $returnReference = '& ';
- }
- }
-
- if (empty($lazyPublicProperties) && ! $hasParentGet) {
- return '';
- }
-
- $magicGet = <<__getLazyProperties())) {
- $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', [$name]);
-
- return $this->$name;
- }
-
-
-EOT;
- }
-
- if ($hasParentGet) {
- $magicGet .= <<<'EOT'
- $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', [$name]);
-
- return parent::__get($name);
-
-EOT;
- } else {
- $magicGet .= <<<'EOT'
- trigger_error(sprintf('Undefined property: %s::$%s', __CLASS__, $name), E_USER_NOTICE);
-
-EOT;
- }
-
- $magicGet .= " }";
-
- return $magicGet;
- }
-
- /**
- * Generates the magic setter (currently unused).
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateMagicSet(ClassMetadata $class)
- {
- $lazyPublicProperties = $this->getLazyLoadedPublicProperties($class);
- $hasParentSet = $class->getReflectionClass()->hasMethod('__set');
-
- if (empty($lazyPublicProperties) && ! $hasParentSet) {
- return '';
- }
-
- $inheritDoc = $hasParentSet ? '{@inheritDoc}' : '';
- $magicSet = <<__getLazyProperties())) {
- $this->__initializer__ && $this->__initializer__->__invoke($this, '__set', [$name, $value]);
-
- $this->$name = $value;
-
- return;
- }
-
-
-EOT;
- }
-
- if ($hasParentSet) {
- $magicSet .= <<<'EOT'
- $this->__initializer__ && $this->__initializer__->__invoke($this, '__set', [$name, $value]);
-
- return parent::__set($name, $value);
-EOT;
- } else {
- $magicSet .= " \$this->\$name = \$value;";
- }
-
- $magicSet .= "\n }";
-
- return $magicSet;
- }
-
- /**
- * Generates the magic issetter invoked when lazy loaded public properties are checked against isset().
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateMagicIsset(ClassMetadata $class)
- {
- $lazyPublicProperties = array_keys($this->getLazyLoadedPublicProperties($class));
- $hasParentIsset = $class->getReflectionClass()->hasMethod('__isset');
-
- if (empty($lazyPublicProperties) && ! $hasParentIsset) {
- return '';
- }
-
- $inheritDoc = $hasParentIsset ? '{@inheritDoc}' : '';
- $magicIsset = <<__getLazyProperties())) {
- $this->__initializer__ && $this->__initializer__->__invoke($this, '__isset', [$name]);
-
- return isset($this->$name);
- }
-
-
-EOT;
- }
-
- if ($hasParentIsset) {
- $magicIsset .= <<<'EOT'
- $this->__initializer__ && $this->__initializer__->__invoke($this, '__isset', [$name]);
-
- return parent::__isset($name);
-
-EOT;
- } else {
- $magicIsset .= " return false;";
- }
-
- return $magicIsset . "\n }";
- }
-
- /**
- * Generates implementation for the `__sleep` method of proxies.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateSleepImpl(ClassMetadata $class)
- {
- $hasParentSleep = $class->getReflectionClass()->hasMethod('__sleep');
- $inheritDoc = $hasParentSleep ? '{@inheritDoc}' : '';
- $sleepImpl = <<__isInitialized__) {
- $properties = array_diff($properties, array_keys($this->__getLazyProperties()));
- }
-
- return $properties;
- }
-EOT;
- }
-
- $allProperties = ['__isInitialized__'];
-
- /* @var $prop \ReflectionProperty */
- foreach ($class->getReflectionClass()->getProperties() as $prop) {
- if ($prop->isStatic()) {
- continue;
- }
-
- $allProperties[] = $prop->isPrivate()
- ? "\0" . $prop->getDeclaringClass()->getName() . "\0" . $prop->getName()
- : $prop->getName();
- }
-
- $lazyPublicProperties = array_keys($this->getLazyLoadedPublicProperties($class));
- $protectedProperties = array_diff($allProperties, $lazyPublicProperties);
-
- foreach ($allProperties as &$property) {
- $property = var_export($property, true);
- }
-
- foreach ($protectedProperties as &$property) {
- $property = var_export($property, true);
- }
-
- $allProperties = implode(', ', $allProperties);
- $protectedProperties = implode(', ', $protectedProperties);
-
- return $sleepImpl . <<__isInitialized__) {
- return [$allProperties];
- }
-
- return [$protectedProperties];
- }
-EOT;
- }
-
- /**
- * Generates implementation for the `__wakeup` method of proxies.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateWakeupImpl(ClassMetadata $class)
- {
- $unsetPublicProperties = [];
- $hasWakeup = $class->getReflectionClass()->hasMethod('__wakeup');
-
- foreach (array_keys($this->getLazyLoadedPublicProperties($class)) as $lazyPublicProperty) {
- $unsetPublicProperties[] = '$this->' . $lazyPublicProperty;
- }
-
- $shortName = $this->generateProxyShortClassName($class);
- $inheritDoc = $hasWakeup ? '{@inheritDoc}' : '';
- $wakeupImpl = <<__isInitialized__) {
- \$this->__initializer__ = function ($shortName \$proxy) {
- \$proxy->__setInitializer(null);
- \$proxy->__setCloner(null);
-
- \$existingProperties = get_object_vars(\$proxy);
-
- foreach (\$proxy->__getLazyProperties() as \$property => \$defaultValue) {
- if ( ! array_key_exists(\$property, \$existingProperties)) {
- \$proxy->\$property = \$defaultValue;
- }
- }
- };
-
-EOT;
-
- if ( ! empty($unsetPublicProperties)) {
- $wakeupImpl .= "\n unset(" . implode(', ', $unsetPublicProperties) . ");";
- }
-
- $wakeupImpl .= "\n }";
-
- if ($hasWakeup) {
- $wakeupImpl .= "\n parent::__wakeup();";
- }
-
- $wakeupImpl .= "\n }";
-
- return $wakeupImpl;
- }
-
- /**
- * Generates implementation for the `__clone` method of proxies.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateCloneImpl(ClassMetadata $class)
- {
- $hasParentClone = $class->getReflectionClass()->hasMethod('__clone');
- $inheritDoc = $hasParentClone ? '{@inheritDoc}' : '';
- $callParentClone = $hasParentClone ? "\n parent::__clone();\n" : '';
-
- return <<__cloner__ && \$this->__cloner__->__invoke(\$this, '__clone', []);
-$callParentClone }
-EOT;
- }
-
- /**
- * Generates decorated methods by picking those available in the parent class.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return string
- */
- private function generateMethods(ClassMetadata $class)
- {
- $methods = '';
- $methodNames = [];
- $reflectionMethods = $class->getReflectionClass()->getMethods(\ReflectionMethod::IS_PUBLIC);
- $skippedMethods = [
- '__sleep' => true,
- '__clone' => true,
- '__wakeup' => true,
- '__get' => true,
- '__set' => true,
- '__isset' => true,
- ];
-
- foreach ($reflectionMethods as $method) {
- $name = $method->getName();
-
- if ($method->isConstructor() ||
- isset($skippedMethods[strtolower($name)]) ||
- isset($methodNames[$name]) ||
- $method->isFinal() ||
- $method->isStatic() ||
- ( ! $method->isPublic())
- ) {
- continue;
- }
-
- $methodNames[$name] = true;
- $methods .= "\n /**\n"
- . " * {@inheritDoc}\n"
- . " */\n"
- . ' public function ';
-
- if ($method->returnsReference()) {
- $methods .= '&';
- }
-
- $methods .= $name . '(' . $this->buildParametersString($method->getParameters()) . ')';
- $methods .= $this->getMethodReturnType($method);
- $methods .= "\n" . ' {' . "\n";
-
- if ($this->isShortIdentifierGetter($method, $class)) {
- $identifier = lcfirst(substr($name, 3));
- $fieldType = $class->getTypeOfField($identifier);
- $cast = in_array($fieldType, ['integer', 'smallint']) ? '(int) ' : '';
-
- $methods .= ' if ($this->__isInitialized__ === false) {' . "\n";
- $methods .= ' ';
- $methods .= $this->shouldProxiedMethodReturn($method) ? 'return ' : '';
- $methods .= $cast . ' parent::' . $method->getName() . "();\n";
- $methods .= ' }' . "\n\n";
- }
-
- $invokeParamsString = implode(', ', $this->getParameterNamesForInvoke($method->getParameters()));
- $callParamsString = implode(', ', $this->getParameterNamesForParentCall($method->getParameters()));
-
- $methods .= "\n \$this->__initializer__ "
- . "&& \$this->__initializer__->__invoke(\$this, " . var_export($name, true)
- . ", [" . $invokeParamsString . "]);"
- . "\n\n "
- . ($this->shouldProxiedMethodReturn($method) ? 'return ' : '')
- . "parent::" . $name . '(' . $callParamsString . ');'
- . "\n" . ' }' . "\n";
- }
-
- return $methods;
- }
-
- /**
- * Generates the Proxy file name.
- *
- * @param string $className
- * @param string $baseDirectory Optional base directory for proxy file name generation.
- * If not specified, the directory configured on the Configuration of the
- * EntityManager will be used by this factory.
- *
- * @return string
- */
- public function getProxyFileName($className, $baseDirectory = null)
- {
- $baseDirectory = $baseDirectory ?: $this->proxyDirectory;
-
- return rtrim($baseDirectory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . Proxy::MARKER
- . str_replace('\\', '', $className) . '.php';
- }
-
- /**
- * Checks if the method is a short identifier getter.
- *
- * What does this mean? For proxy objects the identifier is already known,
- * however accessing the getter for this identifier usually triggers the
- * lazy loading, leading to a query that may not be necessary if only the
- * ID is interesting for the userland code (for example in views that
- * generate links to the entity, but do not display anything else).
- *
- * @param \ReflectionMethod $method
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return boolean
- */
- private function isShortIdentifierGetter($method, ClassMetadata $class)
- {
- $identifier = lcfirst(substr($method->getName(), 3));
- $startLine = $method->getStartLine();
- $endLine = $method->getEndLine();
- $cheapCheck = (
- $method->getNumberOfParameters() == 0
- && substr($method->getName(), 0, 3) == 'get'
- && in_array($identifier, $class->getIdentifier(), true)
- && $class->hasField($identifier)
- && (($endLine - $startLine) <= 4)
- );
-
- if ($cheapCheck) {
- $code = file($method->getDeclaringClass()->getFileName());
- $code = trim(implode(' ', array_slice($code, $startLine - 1, $endLine - $startLine + 1)));
-
- $pattern = sprintf(self::PATTERN_MATCH_ID_METHOD, $method->getName(), $identifier);
-
- if (preg_match($pattern, $code)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * Generates the list of public properties to be lazy loaded, with their default values.
- *
- * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $class
- *
- * @return mixed[]
- */
- private function getLazyLoadedPublicProperties(ClassMetadata $class)
- {
- $defaultProperties = $class->getReflectionClass()->getDefaultProperties();
- $properties = [];
-
- foreach ($class->getReflectionClass()->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
- $name = $property->getName();
-
- if (($class->hasField($name) || $class->hasAssociation($name)) && ! $class->isIdentifier($name)) {
- $properties[$name] = $defaultProperties[$name];
- }
- }
-
- return $properties;
- }
-
- /**
- * @param \ReflectionParameter[] $parameters
- *
- * @return string
- */
- private function buildParametersString(array $parameters)
- {
- $parameterDefinitions = [];
-
- /* @var $param \ReflectionParameter */
- foreach ($parameters as $param) {
- $parameterDefinition = '';
-
- if ($parameterType = $this->getParameterType($param)) {
- $parameterDefinition .= $parameterType . ' ';
- }
-
- if ($param->isPassedByReference()) {
- $parameterDefinition .= '&';
- }
-
- if ($param->isVariadic()) {
- $parameterDefinition .= '...';
- }
-
- $parameterDefinition .= '$' . $param->getName();
-
- if ($param->isDefaultValueAvailable()) {
- $parameterDefinition .= ' = ' . var_export($param->getDefaultValue(), true);
- }
-
- $parameterDefinitions[] = $parameterDefinition;
- }
-
- return implode(', ', $parameterDefinitions);
- }
-
- /**
- * @param ClassMetadata $class
- * @param \ReflectionMethod $method
- * @param \ReflectionParameter $parameter
- *
- * @return string|null
- */
- private function getParameterType(\ReflectionParameter $parameter)
- {
- if ( ! $parameter->hasType()) {
- return null;
- }
-
- return $this->formatType($parameter->getType(), $parameter->getDeclaringFunction(), $parameter);
- }
-
- /**
- * @param \ReflectionParameter[] $parameters
- *
- * @return string[]
- */
- private function getParameterNamesForInvoke(array $parameters)
- {
- return array_map(
- function (\ReflectionParameter $parameter) {
- return '$' . $parameter->getName();
- },
- $parameters
- );
- }
-
- /**
- * @param \ReflectionParameter[] $parameters
- *
- * @return string[]
- */
- private function getParameterNamesForParentCall(array $parameters)
- {
- return array_map(
- function (\ReflectionParameter $parameter) {
- $name = '';
-
- if ($parameter->isVariadic()) {
- $name .= '...';
- }
-
- $name .= '$' . $parameter->getName();
-
- return $name;
- },
- $parameters
- );
- }
-
- /**
- * @param \ReflectionMethod $method
- *
- * @return string
- */
- private function getMethodReturnType(\ReflectionMethod $method)
- {
- if ( ! $method->hasReturnType()) {
- return '';
- }
-
- return ': ' . $this->formatType($method->getReturnType(), $method);
- }
-
- /**
- * @param \ReflectionMethod $method
- *
- * @return bool
- */
- private function shouldProxiedMethodReturn(\ReflectionMethod $method)
- {
- if ( ! $method->hasReturnType()) {
- return true;
- }
-
- return 'void' !== strtolower($this->formatType($method->getReturnType(), $method));
- }
-
- /**
- * @param \ReflectionType $type
- * @param \ReflectionMethod $method
- * @param \ReflectionParameter|null $parameter
- *
- * @return string
- */
- private function formatType(
- \ReflectionType $type,
- \ReflectionMethod $method,
- \ReflectionParameter $parameter = null
- ) {
- $name = (string) $type;
- $nameLower = strtolower($name);
-
- if ('self' === $nameLower) {
- $name = $method->getDeclaringClass()->getName();
- }
-
- if ('parent' === $nameLower) {
- $name = $method->getDeclaringClass()->getParentClass()->getName();
- }
-
- if ( ! $type->isBuiltin() && ! class_exists($name) && ! interface_exists($name)) {
- if (null !== $parameter) {
- throw UnexpectedValueException::invalidParameterTypeHint(
- $method->getDeclaringClass()->getName(),
- $method->getName(),
- $parameter->getName()
- );
- }
-
- throw UnexpectedValueException::invalidReturnTypeHint(
- $method->getDeclaringClass()->getName(),
- $method->getName()
- );
- }
-
- if ( ! $type->isBuiltin()) {
- $name = '\\' . $name;
- }
-
- if ($type->allowsNull()
- && (null === $parameter || ! $parameter->isDefaultValueAvailable() || null !== $parameter->getDefaultValue())
- ) {
- $name = '?' . $name;
- }
-
- return $name;
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php b/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
deleted file mode 100644
index e3d24cf7f..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
+++ /dev/null
@@ -1,93 +0,0 @@
-
- * @author Johannes Schmitt
- *
- * @deprecated The ClassUtils class is deprecated.
- */
-class ClassUtils
-{
- /**
- * Gets the real class name of a class name that could be a proxy.
- *
- * @param string $class
- *
- * @return string
- */
- public static function getRealClass($class)
- {
- if (false === $pos = strrpos($class, '\\' . Proxy::MARKER . '\\')) {
- return $class;
- }
-
- return substr($class, $pos + Proxy::MARKER_LENGTH + 2);
- }
-
- /**
- * Gets the real class name of an object (even if its a proxy).
- *
- * @param object $object
- *
- * @return string
- */
- public static function getClass($object)
- {
- return self::getRealClass(get_class($object));
- }
-
- /**
- * Gets the real parent class name of a class or object.
- *
- * @param string $className
- *
- * @return string
- */
- public static function getParentClass($className)
- {
- return get_parent_class(self::getRealClass($className));
- }
-
- /**
- * Creates a new reflection class.
- *
- * @param string $class
- *
- * @return \ReflectionClass
- */
- public static function newReflectionClass($class)
- {
- return new \ReflectionClass(self::getRealClass($class));
- }
-
- /**
- * Creates a new reflection object.
- *
- * @param object $object
- *
- * @return \ReflectionClass
- */
- public static function newReflectionObject($object)
- {
- return self::newReflectionClass(self::getClass($object));
- }
-
- /**
- * Given a class name and a proxy namespace returns the proxy name.
- *
- * @param string $className
- * @param string $proxyNamespace
- *
- * @return string
- */
- public static function generateProxyClassName($className, $proxyNamespace)
- {
- return rtrim($proxyNamespace, '\\') . '\\' . Proxy::MARKER . '\\' . ltrim($className, '\\');
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php b/vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php
deleted file mode 100644
index 950a23902..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php
+++ /dev/null
@@ -1,167 +0,0 @@
-
- * @author Jonathan Wage
- * @author Roman Borschel
- * @author Giorgio Sironi
- *
- * @deprecated The Debug class is deprecated, please use symfony/var-dumper instead.
- */
-final class Debug
-{
- /**
- * Private constructor (prevents instantiation).
- */
- private function __construct()
- {
- }
-
- /**
- * Prints a dump of the public, protected and private properties of $var.
- *
- * @link https://xdebug.org/
- *
- * @param mixed $var The variable to dump.
- * @param integer $maxDepth The maximum nesting level for object properties.
- * @param boolean $stripTags Whether output should strip HTML tags.
- * @param boolean $echo Send the dumped value to the output buffer
- *
- * @return string
- */
- public static function dump($var, $maxDepth = 2, $stripTags = true, $echo = true)
- {
- $html = ini_get('html_errors');
-
- if ($html !== true) {
- ini_set('html_errors', true);
- }
-
- if (extension_loaded('xdebug')) {
- ini_set('xdebug.var_display_max_depth', $maxDepth);
- }
-
- $var = self::export($var, $maxDepth);
-
- ob_start();
- var_dump($var);
-
- $dump = ob_get_contents();
-
- ob_end_clean();
-
- $dumpText = ($stripTags ? strip_tags(html_entity_decode($dump)) : $dump);
-
- ini_set('html_errors', $html);
-
- if ($echo) {
- echo $dumpText;
- }
-
- return $dumpText;
- }
-
- /**
- * @param mixed $var
- * @param int $maxDepth
- *
- * @return mixed
- */
- public static function export($var, $maxDepth)
- {
- $return = null;
- $isObj = is_object($var);
-
- if ($var instanceof Collection) {
- $var = $var->toArray();
- }
-
- if ( ! $maxDepth) {
- return is_object($var) ? get_class($var)
- : (is_array($var) ? 'Array(' . count($var) . ')' : $var);
- }
-
- if (is_array($var)) {
- $return = [];
-
- foreach ($var as $k => $v) {
- $return[$k] = self::export($v, $maxDepth - 1);
- }
-
- return $return;
- }
-
- if ( ! $isObj) {
- return $var;
- }
-
- $return = new \stdclass();
- if ($var instanceof \DateTimeInterface) {
- $return->__CLASS__ = get_class($var);
- $return->date = $var->format('c');
- $return->timezone = $var->getTimezone()->getName();
-
- return $return;
- }
-
- $return->__CLASS__ = ClassUtils::getClass($var);
-
- if ($var instanceof Proxy) {
- $return->__IS_PROXY__ = true;
- $return->__PROXY_INITIALIZED__ = $var->__isInitialized();
- }
-
- if ($var instanceof \ArrayObject || $var instanceof \ArrayIterator) {
- $return->__STORAGE__ = self::export($var->getArrayCopy(), $maxDepth - 1);
- }
-
- return self::fillReturnWithClassAttributes($var, $return, $maxDepth);
- }
-
- /**
- * Fill the $return variable with class attributes
- * Based on obj2array function from {@see https://secure.php.net/manual/en/function.get-object-vars.php#47075}
- *
- * @param object $var
- * @param \stdClass $return
- * @param int $maxDepth
- *
- * @return mixed
- */
- private static function fillReturnWithClassAttributes($var, \stdClass $return, $maxDepth)
- {
- $clone = (array) $var;
-
- foreach (array_keys($clone) as $key) {
- $aux = explode("\0", $key);
- $name = end($aux);
- if ($aux[0] === '') {
- $name .= ':' . ($aux[1] === '*' ? 'protected' : $aux[1] . ':private');
- }
- $return->$name = self::export($clone[$key], $maxDepth - 1);
- ;
- }
-
- return $return;
- }
-
- /**
- * Returns a string representation of an object.
- *
- * @param object $obj
- *
- * @return string
- */
- public static function toString($obj)
- {
- return method_exists($obj, '__toString') ? (string) $obj : get_class($obj) . '@' . spl_object_hash($obj);
- }
-}
diff --git a/vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php b/vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php
deleted file mode 100644
index f41c54aa8..000000000
--- a/vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php
+++ /dev/null
@@ -1,19 +0,0 @@
-
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- *
- * @deprecated The Version class is deprecated, please refrain from checking the version of doctrine/common.
- */
-class Version
-{
- /**
- * Current Doctrine Version.
- */
- const VERSION = '2.10.0';
-
- /**
- * Compares a Doctrine version with the current one.
- *
- * @param string $version Doctrine version to compare.
- *
- * @return int -1 if older, 0 if it is the same, 1 if version passed as argument is newer.
- */
- public static function compare($version)
- {
- $currentVersion = str_replace(' ', '', strtolower(self::VERSION));
- $version = str_replace(' ', '', $version);
-
- return version_compare($version, $currentVersion);
- }
-}
diff --git a/vendor/doctrine/common/phpstan.neon b/vendor/doctrine/common/phpstan.neon
deleted file mode 100644
index ab1c7fa4b..000000000
--- a/vendor/doctrine/common/phpstan.neon
+++ /dev/null
@@ -1,10 +0,0 @@
-parameters:
- autoload_directories:
- - %currentWorkingDirectory%/tests/Doctrine/Tests/Common/ClassLoaderTest
- excludes_analyse:
- - %currentWorkingDirectory%/lib/vendor/doctrine-build-common
- - %currentWorkingDirectory%/tests/Doctrine/Tests/Common/Proxy/InvalidReturnTypeClass.php
- - %currentWorkingDirectory%/tests/Doctrine/Tests/Common/Proxy/InvalidTypeHintClass.php
- ignoreErrors:
- - '#Access to an undefined property Doctrine\\Common\\Proxy\\Proxy::\$publicField#'
- - '#Access to an undefined property Doctrine\\Tests\\Common\\Proxy\\MagicGetByRefClass::\$nonExisting#'
diff --git a/vendor/doctrine/event-manager/.scrutinizer.yml b/vendor/doctrine/event-manager/.scrutinizer.yml
deleted file mode 100644
index 626a47895..000000000
--- a/vendor/doctrine/event-manager/.scrutinizer.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-build:
- nodes:
- analysis:
- environment:
- php:
- version: 7.1
- cache:
- disabled: false
- directories:
- - ~/.composer/cache
- project_setup:
- override: true
- tests:
- override:
- - php-scrutinizer-run
- - phpcs-run
- dependencies:
- override:
- - composer install -noa
-
-tools:
- external_code_coverage:
- timeout: 600
-
-build_failure_conditions:
- - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
- - 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
diff --git a/vendor/doctrine/event-manager/LICENSE b/vendor/doctrine/event-manager/LICENSE
deleted file mode 100644
index 8c38cc1bc..000000000
--- a/vendor/doctrine/event-manager/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2015 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/event-manager/README.md b/vendor/doctrine/event-manager/README.md
deleted file mode 100644
index 3aee6b6f0..000000000
--- a/vendor/doctrine/event-manager/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Doctrine Event Manager
-
-[![Build Status](https://travis-ci.org/doctrine/event-manager.svg)](https://travis-ci.org/doctrine/event-manager)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doctrine/event-manager/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doctrine/event-manager/?branch=master)
-[![Code Coverage](https://scrutinizer-ci.com/g/doctrine/event-manager/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/doctrine/event-manager/?branch=master)
-
-The Doctrine Event Manager is a library that provides a simple event system.
-
-## More resources:
-
-* [Website](https://www.doctrine-project.org/)
-* [Documentation](https://www.doctrine-project.org/projects/doctrine-event-manager/en/latest/)
-* [Downloads](https://github.com/doctrine/event-manager/releases)
diff --git a/vendor/doctrine/event-manager/composer.json b/vendor/doctrine/event-manager/composer.json
deleted file mode 100644
index b86855453..000000000
--- a/vendor/doctrine/event-manager/composer.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "name": "doctrine/event-manager",
- "type": "library",
- "description": "Doctrine Event Manager component",
- "keywords": ["eventmanager", "eventdispatcher", "event"],
- "homepage": "https://www.doctrine-project.org/projects/event-manager.html",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"},
- {"name": "Marco Pivetta", "email": "ocramius@gmail.com"}
- ],
- "require": {
- "php": "^7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^7.0",
- "doctrine/coding-standard": "^4.0"
- },
- "conflict": {
- "doctrine/common": "<2.9@dev"
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Doctrine\\Tests\\": "tests/Doctrine/Tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/event-manager/docs/en/index.rst b/vendor/doctrine/event-manager/docs/en/index.rst
deleted file mode 100644
index 4872d3347..000000000
--- a/vendor/doctrine/event-manager/docs/en/index.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-Event Manager Documentation
-===========================
-
-The Doctrine Event Manager documentation is a reference guide to everything you need
-to know about the project.
-
-Getting Help
-------------
-
-If this documentation is not helping to answer questions you have about the
-Doctrine DBAL, don't panic. You can get help from different sources:
-
-- Gitter chat room `#doctrine/event-manager `_
-- On `Stack Overflow `_
-- The `Doctrine Mailing List `_
-- Report a bug on `GitHub `_.
-
-Getting Started
----------------
-
-The best way to get started is with the :doc:`Introduction ` section
-in the documentation. Use the sidebar to browse other documentation for the Doctrine Event Manager.
diff --git a/vendor/doctrine/event-manager/docs/en/reference/index.rst b/vendor/doctrine/event-manager/docs/en/reference/index.rst
deleted file mode 100644
index 2b092859c..000000000
--- a/vendor/doctrine/event-manager/docs/en/reference/index.rst
+++ /dev/null
@@ -1,133 +0,0 @@
-Introduction
-============
-
-The Doctrine Event Manager is a simple event system used by the various Doctrine projects. It was originally built
-for the DBAL and ORM but over time other projects adopted it and now it is available as a standalone library.
-
-Installation
-============
-
-The library can easily be installed with composer.
-
-.. code-block:: sh
-
- $ composer require doctrine/event-manager
-
-Setup
-=====
-
-The event system is controlled by the ``Doctrine\Common\EventManager`` class.
-
-.. code-block:: php
-
- use Doctrine\Common\EventManager;
-
- $eventManager = new EventManager();
-
-Listeners
-=========
-
-Now you are ready to listen for events. Here is an example of a custom event listener named ``TestEvent``.
-
-.. code-block:: php
-
- use Doctrine\Common\EventArgs;
- use Doctrine\Common\EventManager;
-
- final class TestEvent
- {
- public const preFoo = 'preFoo';
- public const postFoo = 'postFoo';
-
- /** @var EventManager */
- private $eventManager;
-
- /** @var bool */
- public $preFooInvoked = false;
-
- /** @var bool */
- public $postFooInvoked = false;
-
- public function __construct(EventManager $eventManager)
- {
- $eventManager->addEventListener([self::preFoo, self::postFoo], $this);
- }
-
- public function preFoo(EventArgs $eventArgs) : void
- {
- $this->preFooInvoked = true;
- }
-
- public function postFoo(EventArgs $eventArgs) : void
- {
- $this->postFooInvoked = true;
- }
- }
-
- // Create a new instance
- $testEvent = new TestEvent($eventManager);
-
-Dispatching Events
-==================
-
-Now you can dispatch events with the ``dispatchEvent()`` method.
-
-.. code-block:: php
-
- $eventManager->dispatchEvent(TestEvent::preFoo);
- $eventManager->dispatchEvent(TestEvent::postFoo);
-
-Removing Event Listeners
-========================
-
-You can easily remove a listener with the ``removeEventListener()`` method.
-
-.. code-block:: php
-
- $eventManager->removeEventListener([TestEvent::preFoo, TestEvent::postFoo], $testEvent);
-
-Event Subscribers
-=================
-
-The Doctrine event system also has a simple concept of event subscribers. We can define a simple ``TestEventSubscriber`` class which implements the ``Doctrine\Common\EventSubscriber`` interface with a ``getSubscribedEvents()`` method which returns an array of events it should be subscribed to.
-
-.. code-block:: php
-
- use Doctrine\Common\EventSubscriber;
-
- final class TestEventSubscriber implements EventSubscriber
- {
- /** @var bool */
- public $preFooInvoked = false;
-
- public function preFoo() : void
- {
- $this->preFooInvoked = true;
- }
-
- public function getSubscribedEvents() : array
- {
- return [TestEvent::preFoo];
- }
- }
-
- $eventSubscriber = new TestEventSubscriber();
- $eventManager->addEventSubscriber($eventSubscriber);
-
-.. note::
-
- The array returned by the ``getSubscribedEvents()`` method is a simple array with the values being the event names. The subscriber must have a method that is named exactly like the event.
-
-Now when you dispatch an event, any event subscribers will be notified of that event.
-
-.. code-block:: php
-
- $eventManager->dispatchEvent(TestEvent::preFoo);
-
-Now you can check the ``preFooInvoked`` property to see if the event subscriber was notified of the event:
-
-.. code-block:: php
-
- if ($eventSubscriber->preFooInvoked) {
- // the preFoo method was invoked
- }
diff --git a/vendor/doctrine/event-manager/docs/en/sidebar.rst b/vendor/doctrine/event-manager/docs/en/sidebar.rst
deleted file mode 100644
index 0672d8d3e..000000000
--- a/vendor/doctrine/event-manager/docs/en/sidebar.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-.. toctree::
- :depth: 3
-
- reference/index
diff --git a/vendor/doctrine/event-manager/lib/Doctrine/Common/EventArgs.php b/vendor/doctrine/event-manager/lib/Doctrine/Common/EventArgs.php
deleted file mode 100644
index 12e6256db..000000000
--- a/vendor/doctrine/event-manager/lib/Doctrine/Common/EventArgs.php
+++ /dev/null
@@ -1,46 +0,0 @@
- =>
- *
- * @var object[][]
- */
- private $_listeners = [];
-
- /**
- * Dispatches an event to all registered listeners.
- *
- * @param string $eventName The name of the event to dispatch. The name of the event is
- * the name of the method that is invoked on listeners.
- * @param EventArgs|null $eventArgs The event arguments to pass to the event handlers/listeners.
- * If not supplied, the single empty EventArgs instance is used.
- *
- * @return void
- */
- public function dispatchEvent($eventName, ?EventArgs $eventArgs = null)
- {
- if (! isset($this->_listeners[$eventName])) {
- return;
- }
-
- $eventArgs = $eventArgs ?? EventArgs::getEmptyInstance();
-
- foreach ($this->_listeners[$eventName] as $listener) {
- $listener->$eventName($eventArgs);
- }
- }
-
- /**
- * Gets the listeners of a specific event or all listeners.
- *
- * @param string|null $event The name of the event.
- *
- * @return object[]|object[][] The event listeners for the specified event, or all event listeners.
- */
- public function getListeners($event = null)
- {
- return $event ? $this->_listeners[$event] : $this->_listeners;
- }
-
- /**
- * Checks whether an event has any registered listeners.
- *
- * @param string $event
- *
- * @return bool TRUE if the specified event has any listeners, FALSE otherwise.
- */
- public function hasListeners($event)
- {
- return ! empty($this->_listeners[$event]);
- }
-
- /**
- * Adds an event listener that listens on the specified events.
- *
- * @param string|string[] $events The event(s) to listen on.
- * @param object $listener The listener object.
- *
- * @return void
- */
- public function addEventListener($events, $listener)
- {
- // Picks the hash code related to that listener
- $hash = spl_object_hash($listener);
-
- foreach ((array) $events as $event) {
- // Overrides listener if a previous one was associated already
- // Prevents duplicate listeners on same event (same instance only)
- $this->_listeners[$event][$hash] = $listener;
- }
- }
-
- /**
- * Removes an event listener from the specified events.
- *
- * @param string|string[] $events
- * @param object $listener
- *
- * @return void
- */
- public function removeEventListener($events, $listener)
- {
- // Picks the hash code related to that listener
- $hash = spl_object_hash($listener);
-
- foreach ((array) $events as $event) {
- unset($this->_listeners[$event][$hash]);
- }
- }
-
- /**
- * Adds an EventSubscriber. The subscriber is asked for all the events it is
- * interested in and added as a listener for these events.
- *
- * @param EventSubscriber $subscriber The subscriber.
- *
- * @return void
- */
- public function addEventSubscriber(EventSubscriber $subscriber)
- {
- $this->addEventListener($subscriber->getSubscribedEvents(), $subscriber);
- }
-
- /**
- * Removes an EventSubscriber. The subscriber is asked for all the events it is
- * interested in and removed as a listener for these events.
- *
- * @param EventSubscriber $subscriber The subscriber.
- *
- * @return void
- */
- public function removeEventSubscriber(EventSubscriber $subscriber)
- {
- $this->removeEventListener($subscriber->getSubscribedEvents(), $subscriber);
- }
-}
diff --git a/vendor/doctrine/event-manager/lib/Doctrine/Common/EventSubscriber.php b/vendor/doctrine/event-manager/lib/Doctrine/Common/EventSubscriber.php
deleted file mode 100644
index 7d5e2ea3f..000000000
--- a/vendor/doctrine/event-manager/lib/Doctrine/Common/EventSubscriber.php
+++ /dev/null
@@ -1,21 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Inflector;
-
-/**
- * Doctrine inflector has static methods for inflecting text.
- *
- * The methods in these classes are from several different sources collected
- * across several different php projects and several different authors. The
- * original author names and emails are not known.
- *
- * Pluralize & Singularize implementation are borrowed from CakePHP with some modifications.
- *
- * @link www.doctrine-project.org
- * @since 1.0
- * @author Konsta Vesterinen
- * @author Jonathan H. Wage
- */
-class Inflector
-{
- /**
- * Plural inflector rules.
- *
- * @var string[][]
- */
- private static $plural = array(
- 'rules' => array(
- '/(s)tatus$/i' => '\1\2tatuses',
- '/(quiz)$/i' => '\1zes',
- '/^(ox)$/i' => '\1\2en',
- '/([m|l])ouse$/i' => '\1ice',
- '/(matr|vert|ind)(ix|ex)$/i' => '\1ices',
- '/(x|ch|ss|sh)$/i' => '\1es',
- '/([^aeiouy]|qu)y$/i' => '\1ies',
- '/(hive|gulf)$/i' => '\1s',
- '/(?:([^f])fe|([lr])f)$/i' => '\1\2ves',
- '/sis$/i' => 'ses',
- '/([ti])um$/i' => '\1a',
- '/(c)riterion$/i' => '\1riteria',
- '/(p)erson$/i' => '\1eople',
- '/(m)an$/i' => '\1en',
- '/(c)hild$/i' => '\1hildren',
- '/(f)oot$/i' => '\1eet',
- '/(buffal|her|potat|tomat|volcan)o$/i' => '\1\2oes',
- '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|vir)us$/i' => '\1i',
- '/us$/i' => 'uses',
- '/(alias)$/i' => '\1es',
- '/(analys|ax|cris|test|thes)is$/i' => '\1es',
- '/s$/' => 's',
- '/^$/' => '',
- '/$/' => 's',
- ),
- 'uninflected' => array(
- '.*[nrlm]ese',
- '.*deer',
- '.*fish',
- '.*measles',
- '.*ois',
- '.*pox',
- '.*sheep',
- 'people',
- 'cookie',
- 'police',
- ),
- 'irregular' => array(
- 'atlas' => 'atlases',
- 'axe' => 'axes',
- 'beef' => 'beefs',
- 'brother' => 'brothers',
- 'cafe' => 'cafes',
- 'chateau' => 'chateaux',
- 'niveau' => 'niveaux',
- 'child' => 'children',
- 'cookie' => 'cookies',
- 'corpus' => 'corpuses',
- 'cow' => 'cows',
- 'criterion' => 'criteria',
- 'curriculum' => 'curricula',
- 'demo' => 'demos',
- 'domino' => 'dominoes',
- 'echo' => 'echoes',
- 'foot' => 'feet',
- 'fungus' => 'fungi',
- 'ganglion' => 'ganglions',
- 'genie' => 'genies',
- 'genus' => 'genera',
- 'goose' => 'geese',
- 'graffito' => 'graffiti',
- 'hippopotamus' => 'hippopotami',
- 'hoof' => 'hoofs',
- 'human' => 'humans',
- 'iris' => 'irises',
- 'larva' => 'larvae',
- 'leaf' => 'leaves',
- 'loaf' => 'loaves',
- 'man' => 'men',
- 'medium' => 'media',
- 'memorandum' => 'memoranda',
- 'money' => 'monies',
- 'mongoose' => 'mongooses',
- 'motto' => 'mottoes',
- 'move' => 'moves',
- 'mythos' => 'mythoi',
- 'niche' => 'niches',
- 'nucleus' => 'nuclei',
- 'numen' => 'numina',
- 'occiput' => 'occiputs',
- 'octopus' => 'octopuses',
- 'opus' => 'opuses',
- 'ox' => 'oxen',
- 'passerby' => 'passersby',
- 'penis' => 'penises',
- 'person' => 'people',
- 'plateau' => 'plateaux',
- 'runner-up' => 'runners-up',
- 'sex' => 'sexes',
- 'soliloquy' => 'soliloquies',
- 'son-in-law' => 'sons-in-law',
- 'syllabus' => 'syllabi',
- 'testis' => 'testes',
- 'thief' => 'thieves',
- 'tooth' => 'teeth',
- 'tornado' => 'tornadoes',
- 'trilby' => 'trilbys',
- 'turf' => 'turfs',
- 'valve' => 'valves',
- 'volcano' => 'volcanoes',
- )
- );
-
- /**
- * Singular inflector rules.
- *
- * @var string[][]
- */
- private static $singular = array(
- 'rules' => array(
- '/(s)tatuses$/i' => '\1\2tatus',
- '/^(.*)(menu)s$/i' => '\1\2',
- '/(quiz)zes$/i' => '\\1',
- '/(matr)ices$/i' => '\1ix',
- '/(vert|ind)ices$/i' => '\1ex',
- '/^(ox)en/i' => '\1',
- '/(alias)(es)*$/i' => '\1',
- '/(buffal|her|potat|tomat|volcan)oes$/i' => '\1o',
- '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|viri?)i$/i' => '\1us',
- '/([ftw]ax)es/i' => '\1',
- '/(analys|ax|cris|test|thes)es$/i' => '\1is',
- '/(shoe|slave)s$/i' => '\1',
- '/(o)es$/i' => '\1',
- '/ouses$/' => 'ouse',
- '/([^a])uses$/' => '\1us',
- '/([m|l])ice$/i' => '\1ouse',
- '/(x|ch|ss|sh)es$/i' => '\1',
- '/(m)ovies$/i' => '\1\2ovie',
- '/(s)eries$/i' => '\1\2eries',
- '/([^aeiouy]|qu)ies$/i' => '\1y',
- '/([lr])ves$/i' => '\1f',
- '/(tive)s$/i' => '\1',
- '/(hive)s$/i' => '\1',
- '/(drive)s$/i' => '\1',
- '/(dive)s$/i' => '\1',
- '/(olive)s$/i' => '\1',
- '/([^fo])ves$/i' => '\1fe',
- '/(^analy)ses$/i' => '\1sis',
- '/(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => '\1\2sis',
- '/(c)riteria$/i' => '\1riterion',
- '/([ti])a$/i' => '\1um',
- '/(p)eople$/i' => '\1\2erson',
- '/(m)en$/i' => '\1an',
- '/(c)hildren$/i' => '\1\2hild',
- '/(f)eet$/i' => '\1oot',
- '/(n)ews$/i' => '\1\2ews',
- '/eaus$/' => 'eau',
- '/^(.*us)$/' => '\\1',
- '/s$/i' => '',
- ),
- 'uninflected' => array(
- '.*[nrlm]ese',
- '.*deer',
- '.*fish',
- '.*measles',
- '.*ois',
- '.*pox',
- '.*sheep',
- '.*ss',
- 'data',
- 'police',
- 'pants',
- 'clothes',
- ),
- 'irregular' => array(
- 'abuses' => 'abuse',
- 'avalanches' => 'avalanche',
- 'caches' => 'cache',
- 'criteria' => 'criterion',
- 'curves' => 'curve',
- 'emphases' => 'emphasis',
- 'foes' => 'foe',
- 'geese' => 'goose',
- 'graves' => 'grave',
- 'hoaxes' => 'hoax',
- 'media' => 'medium',
- 'neuroses' => 'neurosis',
- 'waves' => 'wave',
- 'oases' => 'oasis',
- 'valves' => 'valve',
- )
- );
-
- /**
- * Words that should not be inflected.
- *
- * @var array
- */
- private static $uninflected = array(
- '.*?media', 'Amoyese', 'audio', 'bison', 'Borghese', 'bream', 'breeches',
- 'britches', 'buffalo', 'cantus', 'carp', 'chassis', 'clippers', 'cod', 'coitus', 'compensation', 'Congoese',
- 'contretemps', 'coreopsis', 'corps', 'data', 'debris', 'deer', 'diabetes', 'djinn', 'education', 'eland',
- 'elk', 'emoji', 'equipment', 'evidence', 'Faroese', 'feedback', 'fish', 'flounder', 'Foochowese',
- 'Furniture', 'furniture', 'gallows', 'Genevese', 'Genoese', 'Gilbertese', 'gold',
- 'headquarters', 'herpes', 'hijinks', 'Hottentotese', 'information', 'innings', 'jackanapes', 'jedi',
- 'Kiplingese', 'knowledge', 'Kongoese', 'love', 'Lucchese', 'Luggage', 'mackerel', 'Maltese', 'metadata',
- 'mews', 'moose', 'mumps', 'Nankingese', 'news', 'nexus', 'Niasese', 'nutrition', 'offspring',
- 'Pekingese', 'Piedmontese', 'pincers', 'Pistoiese', 'plankton', 'pliers', 'pokemon', 'police', 'Portuguese',
- 'proceedings', 'rabies', 'rain', 'rhinoceros', 'rice', 'salmon', 'Sarawakese', 'scissors', 'sea[- ]bass',
- 'series', 'Shavese', 'shears', 'sheep', 'siemens', 'species', 'staff', 'swine', 'traffic',
- 'trousers', 'trout', 'tuna', 'us', 'Vermontese', 'Wenchowese', 'wheat', 'whiting', 'wildebeest', 'Yengeese'
- );
-
- /**
- * Method cache array.
- *
- * @var array
- */
- private static $cache = array();
-
- /**
- * The initial state of Inflector so reset() works.
- *
- * @var array
- */
- private static $initialState = array();
-
- /**
- * Converts a word into the format for a Doctrine table name. Converts 'ModelName' to 'model_name'.
- */
- public static function tableize(string $word) : string
- {
- return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '_$1', $word));
- }
-
- /**
- * Converts a word into the format for a Doctrine class name. Converts 'table_name' to 'TableName'.
- */
- public static function classify(string $word) : string
- {
- return str_replace([' ', '_', '-'], '', ucwords($word, ' _-'));
- }
-
- /**
- * Camelizes a word. This uses the classify() method and turns the first character to lowercase.
- */
- public static function camelize(string $word) : string
- {
- return lcfirst(self::classify($word));
- }
-
- /**
- * Uppercases words with configurable delimeters between words.
- *
- * Takes a string and capitalizes all of the words, like PHP's built-in
- * ucwords function. This extends that behavior, however, by allowing the
- * word delimeters to be configured, rather than only separating on
- * whitespace.
- *
- * Here is an example:
- *
- *
- *
- *
- * @param string $string The string to operate on.
- * @param string $delimiters A list of word separators.
- *
- * @return string The string with all delimeter-separated words capitalized.
- */
- public static function ucwords(string $string, string $delimiters = " \n\t\r\0\x0B-") : string
- {
- return ucwords($string, $delimiters);
- }
-
- /**
- * Clears Inflectors inflected value caches, and resets the inflection
- * rules to the initial values.
- */
- public static function reset() : void
- {
- if (empty(self::$initialState)) {
- self::$initialState = get_class_vars('Inflector');
-
- return;
- }
-
- foreach (self::$initialState as $key => $val) {
- if ($key !== 'initialState') {
- self::${$key} = $val;
- }
- }
- }
-
- /**
- * Adds custom inflection $rules, of either 'plural' or 'singular' $type.
- *
- * ### Usage:
- *
- * {{{
- * Inflector::rules('plural', array('/^(inflect)or$/i' => '\1ables'));
- * Inflector::rules('plural', array(
- * 'rules' => array('/^(inflect)ors$/i' => '\1ables'),
- * 'uninflected' => array('dontinflectme'),
- * 'irregular' => array('red' => 'redlings')
- * ));
- * }}}
- *
- * @param string $type The type of inflection, either 'plural' or 'singular'
- * @param array|iterable $rules An array of rules to be added.
- * @param boolean $reset If true, will unset default inflections for all
- * new rules that are being defined in $rules.
- *
- * @return void
- */
- public static function rules(string $type, iterable $rules, bool $reset = false) : void
- {
- foreach ($rules as $rule => $pattern) {
- if ( ! is_array($pattern)) {
- continue;
- }
-
- if ($reset) {
- self::${$type}[$rule] = $pattern;
- } else {
- self::${$type}[$rule] = ($rule === 'uninflected')
- ? array_merge($pattern, self::${$type}[$rule])
- : $pattern + self::${$type}[$rule];
- }
-
- unset($rules[$rule], self::${$type}['cache' . ucfirst($rule)]);
-
- if (isset(self::${$type}['merged'][$rule])) {
- unset(self::${$type}['merged'][$rule]);
- }
-
- if ($type === 'plural') {
- self::$cache['pluralize'] = self::$cache['tableize'] = array();
- } elseif ($type === 'singular') {
- self::$cache['singularize'] = array();
- }
- }
-
- self::${$type}['rules'] = $rules + self::${$type}['rules'];
- }
-
- /**
- * Returns a word in plural form.
- *
- * @param string $word The word in singular form.
- *
- * @return string The word in plural form.
- */
- public static function pluralize(string $word) : string
- {
- if (isset(self::$cache['pluralize'][$word])) {
- return self::$cache['pluralize'][$word];
- }
-
- if (!isset(self::$plural['merged']['irregular'])) {
- self::$plural['merged']['irregular'] = self::$plural['irregular'];
- }
-
- if (!isset(self::$plural['merged']['uninflected'])) {
- self::$plural['merged']['uninflected'] = array_merge(self::$plural['uninflected'], self::$uninflected);
- }
-
- if (!isset(self::$plural['cacheUninflected']) || !isset(self::$plural['cacheIrregular'])) {
- self::$plural['cacheUninflected'] = '(?:' . implode('|', self::$plural['merged']['uninflected']) . ')';
- self::$plural['cacheIrregular'] = '(?:' . implode('|', array_keys(self::$plural['merged']['irregular'])) . ')';
- }
-
- if (preg_match('/(.*)\\b(' . self::$plural['cacheIrregular'] . ')$/i', $word, $regs)) {
- self::$cache['pluralize'][$word] = $regs[1] . $word[0] . substr(self::$plural['merged']['irregular'][strtolower($regs[2])], 1);
-
- return self::$cache['pluralize'][$word];
- }
-
- if (preg_match('/^(' . self::$plural['cacheUninflected'] . ')$/i', $word, $regs)) {
- self::$cache['pluralize'][$word] = $word;
-
- return $word;
- }
-
- foreach (self::$plural['rules'] as $rule => $replacement) {
- if (preg_match($rule, $word)) {
- self::$cache['pluralize'][$word] = preg_replace($rule, $replacement, $word);
-
- return self::$cache['pluralize'][$word];
- }
- }
- }
-
- /**
- * Returns a word in singular form.
- *
- * @param string $word The word in plural form.
- *
- * @return string The word in singular form.
- */
- public static function singularize(string $word) : string
- {
- if (isset(self::$cache['singularize'][$word])) {
- return self::$cache['singularize'][$word];
- }
-
- if (!isset(self::$singular['merged']['uninflected'])) {
- self::$singular['merged']['uninflected'] = array_merge(
- self::$singular['uninflected'],
- self::$uninflected
- );
- }
-
- if (!isset(self::$singular['merged']['irregular'])) {
- self::$singular['merged']['irregular'] = array_merge(
- self::$singular['irregular'],
- array_flip(self::$plural['irregular'])
- );
- }
-
- if (!isset(self::$singular['cacheUninflected']) || !isset(self::$singular['cacheIrregular'])) {
- self::$singular['cacheUninflected'] = '(?:' . implode('|', self::$singular['merged']['uninflected']) . ')';
- self::$singular['cacheIrregular'] = '(?:' . implode('|', array_keys(self::$singular['merged']['irregular'])) . ')';
- }
-
- if (preg_match('/(.*)\\b(' . self::$singular['cacheIrregular'] . ')$/i', $word, $regs)) {
- self::$cache['singularize'][$word] = $regs[1] . $word[0] . substr(self::$singular['merged']['irregular'][strtolower($regs[2])], 1);
-
- return self::$cache['singularize'][$word];
- }
-
- if (preg_match('/^(' . self::$singular['cacheUninflected'] . ')$/i', $word, $regs)) {
- self::$cache['singularize'][$word] = $word;
-
- return $word;
- }
-
- foreach (self::$singular['rules'] as $rule => $replacement) {
- if (preg_match($rule, $word)) {
- self::$cache['singularize'][$word] = preg_replace($rule, $replacement, $word);
-
- return self::$cache['singularize'][$word];
- }
- }
-
- self::$cache['singularize'][$word] = $word;
-
- return $word;
- }
-}
diff --git a/vendor/doctrine/lexer/LICENSE b/vendor/doctrine/lexer/LICENSE
deleted file mode 100644
index 5e781fce4..000000000
--- a/vendor/doctrine/lexer/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2013 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/lexer/README.md b/vendor/doctrine/lexer/README.md
deleted file mode 100644
index 66f443089..000000000
--- a/vendor/doctrine/lexer/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Doctrine Lexer
-
-Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
-
-This lexer is used in Doctrine Annotations and in Doctrine ORM (DQL).
diff --git a/vendor/doctrine/lexer/composer.json b/vendor/doctrine/lexer/composer.json
deleted file mode 100644
index 8cd694c65..000000000
--- a/vendor/doctrine/lexer/composer.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "doctrine/lexer",
- "type": "library",
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "keywords": ["lexer", "parser"],
- "homepage": "http://www.doctrine-project.org",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
- ],
- "require": {
- "php": ">=5.3.2"
- },
- "autoload": {
- "psr-0": { "Doctrine\\Common\\Lexer\\": "lib/" }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php b/vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
deleted file mode 100644
index 399a55230..000000000
--- a/vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
+++ /dev/null
@@ -1,327 +0,0 @@
-.
- */
-
-namespace Doctrine\Common\Lexer;
-
-/**
- * Base class for writing simple lexers, i.e. for creating small DSLs.
- *
- * @since 2.0
- * @author Guilherme Blanco
- * @author Jonathan Wage
- * @author Roman Borschel
- */
-abstract class AbstractLexer
-{
- /**
- * Lexer original input string.
- *
- * @var string
- */
- private $input;
-
- /**
- * Array of scanned tokens.
- *
- * Each token is an associative array containing three items:
- * - 'value' : the string value of the token in the input string
- * - 'type' : the type of the token (identifier, numeric, string, input
- * parameter, none)
- * - 'position' : the position of the token in the input string
- *
- * @var array
- */
- private $tokens = array();
-
- /**
- * Current lexer position in input string.
- *
- * @var integer
- */
- private $position = 0;
-
- /**
- * Current peek of current lexer position.
- *
- * @var integer
- */
- private $peek = 0;
-
- /**
- * The next token in the input.
- *
- * @var array
- */
- public $lookahead;
-
- /**
- * The last matched/seen token.
- *
- * @var array
- */
- public $token;
-
- /**
- * Sets the input data to be tokenized.
- *
- * The Lexer is immediately reset and the new input tokenized.
- * Any unprocessed tokens from any previous input are lost.
- *
- * @param string $input The input to be tokenized.
- *
- * @return void
- */
- public function setInput($input)
- {
- $this->input = $input;
- $this->tokens = array();
-
- $this->reset();
- $this->scan($input);
- }
-
- /**
- * Resets the lexer.
- *
- * @return void
- */
- public function reset()
- {
- $this->lookahead = null;
- $this->token = null;
- $this->peek = 0;
- $this->position = 0;
- }
-
- /**
- * Resets the peek pointer to 0.
- *
- * @return void
- */
- public function resetPeek()
- {
- $this->peek = 0;
- }
-
- /**
- * Resets the lexer position on the input to the given position.
- *
- * @param integer $position Position to place the lexical scanner.
- *
- * @return void
- */
- public function resetPosition($position = 0)
- {
- $this->position = $position;
- }
-
- /**
- * Retrieve the original lexer's input until a given position.
- *
- * @param integer $position
- *
- * @return string
- */
- public function getInputUntilPosition($position)
- {
- return substr($this->input, 0, $position);
- }
-
- /**
- * Checks whether a given token matches the current lookahead.
- *
- * @param integer|string $token
- *
- * @return boolean
- */
- public function isNextToken($token)
- {
- return null !== $this->lookahead && $this->lookahead['type'] === $token;
- }
-
- /**
- * Checks whether any of the given tokens matches the current lookahead.
- *
- * @param array $tokens
- *
- * @return boolean
- */
- public function isNextTokenAny(array $tokens)
- {
- return null !== $this->lookahead && in_array($this->lookahead['type'], $tokens, true);
- }
-
- /**
- * Moves to the next token in the input string.
- *
- * @return boolean
- */
- public function moveNext()
- {
- $this->peek = 0;
- $this->token = $this->lookahead;
- $this->lookahead = (isset($this->tokens[$this->position]))
- ? $this->tokens[$this->position++] : null;
-
- return $this->lookahead !== null;
- }
-
- /**
- * Tells the lexer to skip input tokens until it sees a token with the given value.
- *
- * @param string $type The token type to skip until.
- *
- * @return void
- */
- public function skipUntil($type)
- {
- while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
- $this->moveNext();
- }
- }
-
- /**
- * Checks if given value is identical to the given token.
- *
- * @param mixed $value
- * @param integer $token
- *
- * @return boolean
- */
- public function isA($value, $token)
- {
- return $this->getType($value) === $token;
- }
-
- /**
- * Moves the lookahead token forward.
- *
- * @return array|null The next token or NULL if there are no more tokens ahead.
- */
- public function peek()
- {
- if (isset($this->tokens[$this->position + $this->peek])) {
- return $this->tokens[$this->position + $this->peek++];
- } else {
- return null;
- }
- }
-
- /**
- * Peeks at the next token, returns it and immediately resets the peek.
- *
- * @return array|null The next token or NULL if there are no more tokens ahead.
- */
- public function glimpse()
- {
- $peek = $this->peek();
- $this->peek = 0;
- return $peek;
- }
-
- /**
- * Scans the input string for tokens.
- *
- * @param string $input A query string.
- *
- * @return void
- */
- protected function scan($input)
- {
- static $regex;
-
- if ( ! isset($regex)) {
- $regex = sprintf(
- '/(%s)|%s/%s',
- implode(')|(', $this->getCatchablePatterns()),
- implode('|', $this->getNonCatchablePatterns()),
- $this->getModifiers()
- );
- }
-
- $flags = PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE;
- $matches = preg_split($regex, $input, -1, $flags);
-
- foreach ($matches as $match) {
- // Must remain before 'value' assignment since it can change content
- $type = $this->getType($match[0]);
-
- $this->tokens[] = array(
- 'value' => $match[0],
- 'type' => $type,
- 'position' => $match[1],
- );
- }
- }
-
- /**
- * Gets the literal for a given token.
- *
- * @param integer $token
- *
- * @return string
- */
- public function getLiteral($token)
- {
- $className = get_class($this);
- $reflClass = new \ReflectionClass($className);
- $constants = $reflClass->getConstants();
-
- foreach ($constants as $name => $value) {
- if ($value === $token) {
- return $className . '::' . $name;
- }
- }
-
- return $token;
- }
-
- /**
- * Regex modifiers
- *
- * @return string
- */
- protected function getModifiers()
- {
- return 'i';
- }
-
- /**
- * Lexical catchable patterns.
- *
- * @return array
- */
- abstract protected function getCatchablePatterns();
-
- /**
- * Lexical non-catchable patterns.
- *
- * @return array
- */
- abstract protected function getNonCatchablePatterns();
-
- /**
- * Retrieve token type. Also processes the token value if necessary.
- *
- * @param string $value
- *
- * @return integer
- */
- abstract protected function getType(&$value);
-}
diff --git a/vendor/doctrine/persistence/.doctrine-project.json b/vendor/doctrine/persistence/.doctrine-project.json
deleted file mode 100644
index cfeefa423..000000000
--- a/vendor/doctrine/persistence/.doctrine-project.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "active": true,
- "name": "Persistence",
- "slug": "persistence",
- "docsSlug": "doctrine-persistence",
- "versions": [
- {
- "name": "1.1",
- "branchName": "1.1.x",
- "slug": "latest",
- "current": true,
- "aliases": [
- "current",
- "stable"
- ]
- },
- {
- "name": "1.0",
- "branchName": "1.0.x",
- "slug": "1.0",
- "maintained": false
- }
- ]
-}
diff --git a/vendor/doctrine/persistence/LICENSE b/vendor/doctrine/persistence/LICENSE
deleted file mode 100644
index 8c38cc1bc..000000000
--- a/vendor/doctrine/persistence/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2015 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/persistence/README.md b/vendor/doctrine/persistence/README.md
deleted file mode 100644
index b5d32d534..000000000
--- a/vendor/doctrine/persistence/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Doctrine Persistence
-
-[![Build Status](https://travis-ci.org/doctrine/persistence.svg)](https://travis-ci.org/doctrine/persistence)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doctrine/persistence/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doctrine/persistence/?branch=master)
-[![Code Coverage](https://scrutinizer-ci.com/g/doctrine/persistence/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/doctrine/persistence/?branch=master)
-
-The Doctrine Persistence project is a library that provides common abstractions for object mapper persistence.
-
-## More resources:
-
-* [Website](https://www.doctrine-project.org/)
-* [Documentation](https://www.doctrine-project.org/projects/doctrine-persistence/en/latest/index.html)
-* [Downloads](https://github.com/doctrine/persistence/releases)
diff --git a/vendor/doctrine/persistence/composer.json b/vendor/doctrine/persistence/composer.json
deleted file mode 100644
index 529d40bdc..000000000
--- a/vendor/doctrine/persistence/composer.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "name": "doctrine/persistence",
- "type": "library",
- "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.",
- "keywords": [
- "persistence",
- "object",
- "mapper",
- "orm",
- "odm"
- ],
- "homepage": "https://doctrine-project.org/projects/persistence.html",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"},
- {"name": "Marco Pivetta", "email": "ocramius@gmail.com"}
- ],
- "require": {
- "php": "^7.1",
- "doctrine/annotations": "^1.0",
- "doctrine/cache": "^1.0",
- "doctrine/collections": "^1.0",
- "doctrine/event-manager": "^1.0",
- "doctrine/reflection": "^1.0"
- },
- "require-dev": {
- "phpstan/phpstan": "^0.8",
- "doctrine/coding-standard": "^5.0",
- "phpunit/phpunit": "^7.0"
- },
- "conflict": {
- "doctrine/common": "<2.10@dev"
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Doctrine\\Tests\\": "tests/Doctrine/Tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/NotifyPropertyChanged.php b/vendor/doctrine/persistence/lib/Doctrine/Common/NotifyPropertyChanged.php
deleted file mode 100644
index 5ebcda38f..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/NotifyPropertyChanged.php
+++ /dev/null
@@ -1,20 +0,0 @@
-name = $name;
- $this->connections = $connections;
- $this->managers = $managers;
- $this->defaultConnection = $defaultConnection;
- $this->defaultManager = $defaultManager;
- $this->proxyInterfaceName = $proxyInterfaceName;
- }
-
- /**
- * Fetches/creates the given services.
- *
- * A service in this context is connection or a manager instance.
- *
- * @param string $name The name of the service.
- *
- * @return object The instance of the given service.
- */
- abstract protected function getService($name);
-
- /**
- * Resets the given services.
- *
- * A service in this context is connection or a manager instance.
- *
- * @param string $name The name of the service.
- *
- * @return void
- */
- abstract protected function resetService($name);
-
- /**
- * Gets the name of the registry.
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConnection($name = null)
- {
- if ($name === null) {
- $name = $this->defaultConnection;
- }
-
- if (! isset($this->connections[$name])) {
- throw new InvalidArgumentException(sprintf('Doctrine %s Connection named "%s" does not exist.', $this->name, $name));
- }
-
- return $this->getService($this->connections[$name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConnectionNames()
- {
- return $this->connections;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConnections()
- {
- $connections = [];
- foreach ($this->connections as $name => $id) {
- $connections[$name] = $this->getService($id);
- }
-
- return $connections;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getDefaultConnectionName()
- {
- return $this->defaultConnection;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getDefaultManagerName()
- {
- return $this->defaultManager;
- }
-
- /**
- * {@inheritdoc}
- *
- * @throws InvalidArgumentException
- */
- public function getManager($name = null)
- {
- if ($name === null) {
- $name = $this->defaultManager;
- }
-
- if (! isset($this->managers[$name])) {
- throw new InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name));
- }
-
- return $this->getService($this->managers[$name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getManagerForClass($class)
- {
- // Check for namespace alias
- if (strpos($class, ':') !== false) {
- [$namespaceAlias, $simpleClassName] = explode(':', $class, 2);
- $class = $this->getAliasNamespace($namespaceAlias) . '\\' . $simpleClassName;
- }
-
- $proxyClass = new ReflectionClass($class);
-
- if ($proxyClass->implementsInterface($this->proxyInterfaceName)) {
- $parentClass = $proxyClass->getParentClass();
-
- if (! $parentClass) {
- return null;
- }
-
- $class = $parentClass->getName();
- }
-
- foreach ($this->managers as $id) {
- $manager = $this->getService($id);
-
- if (! $manager->getMetadataFactory()->isTransient($class)) {
- return $manager;
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function getManagerNames()
- {
- return $this->managers;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getManagers()
- {
- $dms = [];
- foreach ($this->managers as $name => $id) {
- $dms[$name] = $this->getService($id);
- }
-
- return $dms;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getRepository($persistentObjectName, $persistentManagerName = null)
- {
- return $this->getManager($persistentManagerName)->getRepository($persistentObjectName);
- }
-
- /**
- * {@inheritdoc}
- */
- public function resetManager($name = null)
- {
- if ($name === null) {
- $name = $this->defaultManager;
- }
-
- if (! isset($this->managers[$name])) {
- throw new InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name));
- }
-
- // force the creation of a new document manager
- // if the current one is closed
- $this->resetService($this->managers[$name]);
-
- return $this->getManager($name);
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ConnectionRegistry.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ConnectionRegistry.php
deleted file mode 100644
index 59046d440..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ConnectionRegistry.php
+++ /dev/null
@@ -1,39 +0,0 @@
-object = $object;
- $this->objectManager = $objectManager;
- }
-
- /**
- * Retrieves the associated entity.
- *
- * @deprecated
- *
- * @return object
- */
- public function getEntity()
- {
- return $this->object;
- }
-
- /**
- * Retrieves the associated object.
- *
- * @return object
- */
- public function getObject()
- {
- return $this->object;
- }
-
- /**
- * Retrieves the associated ObjectManager.
- *
- * @return ObjectManager
- */
- public function getObjectManager()
- {
- return $this->objectManager;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/LoadClassMetadataEventArgs.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/LoadClassMetadataEventArgs.php
deleted file mode 100644
index 3fcf1b805..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/LoadClassMetadataEventArgs.php
+++ /dev/null
@@ -1,45 +0,0 @@
-classMetadata = $classMetadata;
- $this->objectManager = $objectManager;
- }
-
- /**
- * Retrieves the associated ClassMetadata.
- *
- * @return ClassMetadata
- */
- public function getClassMetadata()
- {
- return $this->classMetadata;
- }
-
- /**
- * Retrieves the associated ObjectManager.
- *
- * @return ObjectManager
- */
- public function getObjectManager()
- {
- return $this->objectManager;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php
deleted file mode 100644
index 4ade9916a..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php
+++ /dev/null
@@ -1,30 +0,0 @@
-objectManager = $objectManager;
- }
-
- /**
- * Retrieves the associated ObjectManager.
- *
- * @return ObjectManager
- */
- public function getObjectManager()
- {
- return $this->objectManager;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/OnClearEventArgs.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/OnClearEventArgs.php
deleted file mode 100644
index a32e35bdc..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/OnClearEventArgs.php
+++ /dev/null
@@ -1,58 +0,0 @@
-objectManager = $objectManager;
- $this->entityClass = $entityClass;
- }
-
- /**
- * Retrieves the associated ObjectManager.
- *
- * @return ObjectManager
- */
- public function getObjectManager()
- {
- return $this->objectManager;
- }
-
- /**
- * Returns the name of the entity class that is cleared, or null if all are cleared.
- *
- * @return string|null
- */
- public function getEntityClass()
- {
- return $this->entityClass;
- }
-
- /**
- * Returns whether this event clears all entities.
- *
- * @return bool
- */
- public function clearsAllEntities()
- {
- return $this->entityClass === null;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php
deleted file mode 100644
index 40a4782cd..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php
+++ /dev/null
@@ -1,113 +0,0 @@
-entityChangeSet = &$changeSet;
- }
-
- /**
- * Retrieves the entity changeset.
- *
- * @return mixed[][]
- */
- public function getEntityChangeSet()
- {
- return $this->entityChangeSet;
- }
-
- /**
- * Checks if field has a changeset.
- *
- * @param string $field
- *
- * @return bool
- */
- public function hasChangedField($field)
- {
- return isset($this->entityChangeSet[$field]);
- }
-
- /**
- * Gets the old value of the changeset of the changed field.
- *
- * @param string $field
- *
- * @return mixed
- */
- public function getOldValue($field)
- {
- $this->assertValidField($field);
-
- return $this->entityChangeSet[$field][0];
- }
-
- /**
- * Gets the new value of the changeset of the changed field.
- *
- * @param string $field
- *
- * @return mixed
- */
- public function getNewValue($field)
- {
- $this->assertValidField($field);
-
- return $this->entityChangeSet[$field][1];
- }
-
- /**
- * Sets the new value of this field.
- *
- * @param string $field
- * @param mixed $value
- *
- * @return void
- */
- public function setNewValue($field, $value)
- {
- $this->assertValidField($field);
-
- $this->entityChangeSet[$field][1] = $value;
- }
-
- /**
- * Asserts the field exists in changeset.
- *
- * @param string $field
- *
- * @return void
- *
- * @throws InvalidArgumentException
- */
- private function assertValidField($field)
- {
- if (! isset($this->entityChangeSet[$field])) {
- throw new InvalidArgumentException(sprintf(
- 'Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.',
- $field,
- get_class($this->getObject())
- ));
- }
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ManagerRegistry.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ManagerRegistry.php
deleted file mode 100644
index fdfdf916d..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ManagerRegistry.php
+++ /dev/null
@@ -1,88 +0,0 @@
-cacheDriver = $cacheDriver;
- }
-
- /**
- * Gets the cache driver used by the factory to cache ClassMetadata instances.
- *
- * @return Cache|null
- */
- public function getCacheDriver()
- {
- return $this->cacheDriver;
- }
-
- /**
- * Returns an array of all the loaded metadata currently in memory.
- *
- * @return ClassMetadata[]
- */
- public function getLoadedMetadata()
- {
- return $this->loadedMetadata;
- }
-
- /**
- * Forces the factory to load the metadata of all classes known to the underlying
- * mapping driver.
- *
- * @return ClassMetadata[] The ClassMetadata instances of all mapped classes.
- */
- public function getAllMetadata()
- {
- if (! $this->initialized) {
- $this->initialize();
- }
-
- $driver = $this->getDriver();
- $metadata = [];
- foreach ($driver->getAllClassNames() as $className) {
- $metadata[] = $this->getMetadataFor($className);
- }
-
- return $metadata;
- }
-
- /**
- * Lazy initialization of this stuff, especially the metadata driver,
- * since these are not needed at all when a metadata cache is active.
- *
- * @return void
- */
- abstract protected function initialize();
-
- /**
- * Gets the fully qualified class-name from the namespace alias.
- *
- * @param string $namespaceAlias
- * @param string $simpleClassName
- *
- * @return string
- */
- abstract protected function getFqcnFromAlias($namespaceAlias, $simpleClassName);
-
- /**
- * Returns the mapping driver implementation.
- *
- * @return MappingDriver
- */
- abstract protected function getDriver();
-
- /**
- * Wakes up reflection after ClassMetadata gets unserialized from cache.
- *
- * @return void
- */
- abstract protected function wakeupReflection(ClassMetadata $class, ReflectionService $reflService);
-
- /**
- * Initializes Reflection after ClassMetadata was constructed.
- *
- * @return void
- */
- abstract protected function initializeReflection(ClassMetadata $class, ReflectionService $reflService);
-
- /**
- * Checks whether the class metadata is an entity.
- *
- * This method should return false for mapped superclasses or embedded classes.
- *
- * @return bool
- */
- abstract protected function isEntity(ClassMetadata $class);
-
- /**
- * Gets the class metadata descriptor for a class.
- *
- * @param string $className The name of the class.
- *
- * @return ClassMetadata
- *
- * @throws ReflectionException
- * @throws MappingException
- */
- public function getMetadataFor($className)
- {
- if (isset($this->loadedMetadata[$className])) {
- return $this->loadedMetadata[$className];
- }
-
- // Check for namespace alias
- if (strpos($className, ':') !== false) {
- [$namespaceAlias, $simpleClassName] = explode(':', $className, 2);
-
- $realClassName = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName);
- } else {
- $realClassName = $this->getRealClass($className);
- }
-
- if (isset($this->loadedMetadata[$realClassName])) {
- // We do not have the alias name in the map, include it
- return $this->loadedMetadata[$className] = $this->loadedMetadata[$realClassName];
- }
-
- $loadingException = null;
-
- try {
- if ($this->cacheDriver) {
- $cached = $this->cacheDriver->fetch($realClassName . $this->cacheSalt);
- if ($cached instanceof ClassMetadata) {
- $this->loadedMetadata[$realClassName] = $cached;
-
- $this->wakeupReflection($cached, $this->getReflectionService());
- } else {
- foreach ($this->loadMetadata($realClassName) as $loadedClassName) {
- $this->cacheDriver->save(
- $loadedClassName . $this->cacheSalt,
- $this->loadedMetadata[$loadedClassName],
- null
- );
- }
- }
- } else {
- $this->loadMetadata($realClassName);
- }
- } catch (MappingException $loadingException) {
- $fallbackMetadataResponse = $this->onNotFoundMetadata($realClassName);
-
- if (! $fallbackMetadataResponse) {
- throw $loadingException;
- }
-
- $this->loadedMetadata[$realClassName] = $fallbackMetadataResponse;
- }
-
- if ($className !== $realClassName) {
- // We do not have the alias name in the map, include it
- $this->loadedMetadata[$className] = $this->loadedMetadata[$realClassName];
- }
-
- return $this->loadedMetadata[$className];
- }
-
- /**
- * Checks whether the factory has the metadata for a class loaded already.
- *
- * @param string $className
- *
- * @return bool TRUE if the metadata of the class in question is already loaded, FALSE otherwise.
- */
- public function hasMetadataFor($className)
- {
- return isset($this->loadedMetadata[$className]);
- }
-
- /**
- * Sets the metadata descriptor for a specific class.
- *
- * NOTE: This is only useful in very special cases, like when generating proxy classes.
- *
- * @param string $className
- * @param ClassMetadata $class
- *
- * @return void
- */
- public function setMetadataFor($className, $class)
- {
- $this->loadedMetadata[$className] = $class;
- }
-
- /**
- * Gets an array of parent classes for the given entity class.
- *
- * @param string $name
- *
- * @return string[]
- */
- protected function getParentClasses($name)
- {
- // Collect parent classes, ignoring transient (not-mapped) classes.
- $parentClasses = [];
-
- foreach (array_reverse($this->getReflectionService()->getParentClasses($name)) as $parentClass) {
- if ($this->getDriver()->isTransient($parentClass)) {
- continue;
- }
-
- $parentClasses[] = $parentClass;
- }
-
- return $parentClasses;
- }
-
- /**
- * Loads the metadata of the class in question and all it's ancestors whose metadata
- * is still not loaded.
- *
- * Important: The class $name does not necessarily exist at this point here.
- * Scenarios in a code-generation setup might have access to XML/YAML
- * Mapping files without the actual PHP code existing here. That is why the
- * {@see Doctrine\Common\Persistence\Mapping\ReflectionService} interface
- * should be used for reflection.
- *
- * @param string $name The name of the class for which the metadata should get loaded.
- *
- * @return string[]
- */
- protected function loadMetadata($name)
- {
- if (! $this->initialized) {
- $this->initialize();
- }
-
- $loaded = [];
-
- $parentClasses = $this->getParentClasses($name);
- $parentClasses[] = $name;
-
- // Move down the hierarchy of parent classes, starting from the topmost class
- $parent = null;
- $rootEntityFound = false;
- $visited = [];
- $reflService = $this->getReflectionService();
- foreach ($parentClasses as $className) {
- if (isset($this->loadedMetadata[$className])) {
- $parent = $this->loadedMetadata[$className];
- if ($this->isEntity($parent)) {
- $rootEntityFound = true;
- array_unshift($visited, $className);
- }
- continue;
- }
-
- $class = $this->newClassMetadataInstance($className);
- $this->initializeReflection($class, $reflService);
-
- $this->doLoadMetadata($class, $parent, $rootEntityFound, $visited);
-
- $this->loadedMetadata[$className] = $class;
-
- $parent = $class;
-
- if ($this->isEntity($class)) {
- $rootEntityFound = true;
- array_unshift($visited, $className);
- }
-
- $this->wakeupReflection($class, $reflService);
-
- $loaded[] = $className;
- }
-
- return $loaded;
- }
-
- /**
- * Provides a fallback hook for loading metadata when loading failed due to reflection/mapping exceptions
- *
- * Override this method to implement a fallback strategy for failed metadata loading
- *
- * @param string $className
- *
- * @return ClassMetadata|null
- */
- protected function onNotFoundMetadata($className)
- {
- return null;
- }
-
- /**
- * Actually loads the metadata from the underlying metadata.
- *
- * @param ClassMetadata $class
- * @param ClassMetadata|null $parent
- * @param bool $rootEntityFound
- * @param string[] $nonSuperclassParents All parent class names
- * that are not marked as mapped superclasses.
- *
- * @return void
- */
- abstract protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonSuperclassParents);
-
- /**
- * Creates a new ClassMetadata instance for the given class name.
- *
- * @param string $className
- *
- * @return ClassMetadata
- */
- abstract protected function newClassMetadataInstance($className);
-
- /**
- * {@inheritDoc}
- */
- public function isTransient($class)
- {
- if (! $this->initialized) {
- $this->initialize();
- }
-
- // Check for namespace alias
- if (strpos($class, ':') !== false) {
- [$namespaceAlias, $simpleClassName] = explode(':', $class, 2);
- $class = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName);
- }
-
- return $this->getDriver()->isTransient($class);
- }
-
- /**
- * Sets the reflectionService.
- *
- * @return void
- */
- public function setReflectionService(ReflectionService $reflectionService)
- {
- $this->reflectionService = $reflectionService;
- }
-
- /**
- * Gets the reflection service associated with this metadata factory.
- *
- * @return ReflectionService
- */
- public function getReflectionService()
- {
- if ($this->reflectionService === null) {
- $this->reflectionService = new RuntimeReflectionService();
- }
- return $this->reflectionService;
- }
-
- /**
- * Gets the real class name of a class name that could be a proxy.
- */
- private function getRealClass(string $class) : string
- {
- $pos = strrpos($class, '\\' . Proxy::MARKER . '\\');
-
- if ($pos === false) {
- return $class;
- }
-
- return substr($class, $pos + Proxy::MARKER_LENGTH + 2);
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php
deleted file mode 100644
index 5b3fe0ba6..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php
+++ /dev/null
@@ -1,154 +0,0 @@
-reader = $reader;
- if (! $paths) {
- return;
- }
-
- $this->addPaths((array) $paths);
- }
-
- /**
- * Appends lookup paths to metadata driver.
- *
- * @param string[] $paths
- *
- * @return void
- */
- public function addPaths(array $paths)
- {
- $this->paths = array_unique(array_merge($this->paths, $paths));
- }
-
- /**
- * Retrieves the defined metadata lookup paths.
- *
- * @return string[]
- */
- public function getPaths()
- {
- return $this->paths;
- }
-
- /**
- * Append exclude lookup paths to metadata driver.
- *
- * @param string[] $paths
- */
- public function addExcludePaths(array $paths)
- {
- $this->excludePaths = array_unique(array_merge($this->excludePaths, $paths));
- }
-
- /**
- * Retrieve the defined metadata lookup exclude paths.
- *
- * @return string[]
- */
- public function getExcludePaths()
- {
- return $this->excludePaths;
- }
-
- /**
- * Retrieve the current annotation reader
- *
- * @return Reader
- */
- public function getReader()
- {
- return $this->reader;
- }
-
- /**
- * Gets the file extension used to look for mapping files under.
- *
- * @return string
- */
- public function getFileExtension()
- {
- return $this->fileExtension;
- }
-
- /**
- * Sets the file extension used to look for mapping files under.
- *
- * @param string $fileExtension The file extension to set.
- *
- * @return void
- */
- public function setFileExtension($fileExtension)
- {
- $this->fileExtension = $fileExtension;
- }
-
- /**
- * Returns whether the class with the specified name is transient. Only non-transient
- * classes, that is entities and mapped superclasses, should have their metadata loaded.
- *
- * A class is non-transient if it is annotated with an annotation
- * from the {@see AnnotationDriver::entityAnnotationClasses}.
- *
- * @param string $className
- *
- * @return bool
- */
- public function isTransient($className)
- {
- $classAnnotations = $this->reader->getClassAnnotations(new ReflectionClass($className));
-
- foreach ($classAnnotations as $annot) {
- if (isset($this->entityAnnotationClasses[get_class($annot)])) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAllClassNames()
- {
- if ($this->classNames !== null) {
- return $this->classNames;
- }
-
- if (! $this->paths) {
- throw MappingException::pathRequired();
- }
-
- $classes = [];
- $includedFiles = [];
-
- foreach ($this->paths as $path) {
- if (! is_dir($path)) {
- throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
- }
-
- $iterator = new RegexIterator(
- new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS),
- RecursiveIteratorIterator::LEAVES_ONLY
- ),
- '/^.+' . preg_quote($this->fileExtension) . '$/i',
- RecursiveRegexIterator::GET_MATCH
- );
-
- foreach ($iterator as $file) {
- $sourceFile = $file[0];
-
- if (! preg_match('(^phar:)i', $sourceFile)) {
- $sourceFile = realpath($sourceFile);
- }
-
- foreach ($this->excludePaths as $excludePath) {
- $exclude = str_replace('\\', '/', realpath($excludePath));
- $current = str_replace('\\', '/', $sourceFile);
-
- if (strpos($current, $exclude) !== false) {
- continue 2;
- }
- }
-
- require_once $sourceFile;
-
- $includedFiles[] = $sourceFile;
- }
- }
-
- $declared = get_declared_classes();
-
- foreach ($declared as $className) {
- $rc = new ReflectionClass($className);
- $sourceFile = $rc->getFileName();
- if (! in_array($sourceFile, $includedFiles) || $this->isTransient($className)) {
- continue;
- }
-
- $classes[] = $className;
- }
-
- $this->classNames = $classes;
-
- return $classes;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php
deleted file mode 100644
index 7cc68e75f..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php
+++ /dev/null
@@ -1,161 +0,0 @@
-addPaths((array) $paths);
- $this->fileExtension = $fileExtension;
- }
-
- /**
- * Appends lookup paths to metadata driver.
- *
- * @param string[] $paths
- *
- * @return void
- */
- public function addPaths(array $paths)
- {
- $this->paths = array_unique(array_merge($this->paths, $paths));
- }
-
- /**
- * Retrieves the defined metadata lookup paths.
- *
- * @return string[]
- */
- public function getPaths()
- {
- return $this->paths;
- }
-
- /**
- * Gets the file extension used to look for mapping files under.
- *
- * @return string|null
- */
- public function getFileExtension()
- {
- return $this->fileExtension;
- }
-
- /**
- * Sets the file extension used to look for mapping files under.
- *
- * @param string|null $fileExtension The file extension to set.
- *
- * @return void
- */
- public function setFileExtension($fileExtension)
- {
- $this->fileExtension = $fileExtension;
- }
-
- /**
- * {@inheritDoc}
- */
- public function findMappingFile($className)
- {
- $fileName = str_replace('\\', '.', $className) . $this->fileExtension;
-
- // Check whether file exists
- foreach ($this->paths as $path) {
- if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) {
- return $path . DIRECTORY_SEPARATOR . $fileName;
- }
- }
-
- throw MappingException::mappingFileNotFound($className, $fileName);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAllClassNames($globalBasename)
- {
- $classes = [];
-
- if ($this->paths) {
- foreach ($this->paths as $path) {
- if (! is_dir($path)) {
- throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
- }
-
- $iterator = new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($path),
- RecursiveIteratorIterator::LEAVES_ONLY
- );
-
- foreach ($iterator as $file) {
- $fileName = $file->getBasename($this->fileExtension);
-
- if ($fileName === $file->getBasename() || $fileName === $globalBasename) {
- continue;
- }
-
- // NOTE: All files found here means classes are not transient!
- $classes[] = str_replace('.', '\\', $fileName);
- }
- }
- }
-
- return $classes;
- }
-
- /**
- * {@inheritDoc}
- */
- public function fileExists($className)
- {
- $fileName = str_replace('\\', '.', $className) . $this->fileExtension;
-
- // Check whether file exists
- foreach ((array) $this->paths as $path) {
- if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) {
- return true;
- }
- }
-
- return false;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php
deleted file mode 100644
index 85b437e91..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php
+++ /dev/null
@@ -1,193 +0,0 @@
-locator = $locator;
- } else {
- $this->locator = new DefaultFileLocator((array) $locator, $fileExtension);
- }
- }
-
- /**
- * Sets the global basename.
- *
- * @param string $file
- *
- * @return void
- */
- public function setGlobalBasename($file)
- {
- $this->globalBasename = $file;
- }
-
- /**
- * Retrieves the global basename.
- *
- * @return string|null
- */
- public function getGlobalBasename()
- {
- return $this->globalBasename;
- }
-
- /**
- * Gets the element of schema meta data for the class from the mapping file.
- * This will lazily load the mapping file if it is not loaded yet.
- *
- * @param string $className
- *
- * @return ClassMetadata The element of schema meta data.
- *
- * @throws MappingException
- */
- public function getElement($className)
- {
- if ($this->classCache === null) {
- $this->initialize();
- }
-
- if (isset($this->classCache[$className])) {
- return $this->classCache[$className];
- }
-
- $result = $this->loadMappingFile($this->locator->findMappingFile($className));
- if (! isset($result[$className])) {
- throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className) . $this->locator->getFileExtension());
- }
-
- $this->classCache[$className] = $result[$className];
-
- return $result[$className];
- }
-
- /**
- * {@inheritDoc}
- */
- public function isTransient($className)
- {
- if ($this->classCache === null) {
- $this->initialize();
- }
-
- if (isset($this->classCache[$className])) {
- return false;
- }
-
- return ! $this->locator->fileExists($className);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAllClassNames()
- {
- if ($this->classCache === null) {
- $this->initialize();
- }
-
- if (! $this->classCache) {
- return (array) $this->locator->getAllClassNames($this->globalBasename);
- }
-
- return array_merge(
- array_keys($this->classCache),
- (array) $this->locator->getAllClassNames($this->globalBasename)
- );
- }
-
- /**
- * Loads a mapping file with the given name and returns a map
- * from class/entity names to their corresponding file driver elements.
- *
- * @param string $file The mapping file to load.
- *
- * @return ClassMetadata[]
- */
- abstract protected function loadMappingFile($file);
-
- /**
- * Initializes the class cache from all the global files.
- *
- * Using this feature adds a substantial performance hit to file drivers as
- * more metadata has to be loaded into memory than might actually be
- * necessary. This may not be relevant to scenarios where caching of
- * metadata is in place, however hits very hard in scenarios where no
- * caching is used.
- *
- * @return void
- */
- protected function initialize()
- {
- $this->classCache = [];
- if ($this->globalBasename === null) {
- return;
- }
-
- foreach ($this->locator->getPaths() as $path) {
- $file = $path . '/' . $this->globalBasename . $this->locator->getFileExtension();
- if (! is_file($file)) {
- continue;
- }
-
- $this->classCache = array_merge(
- $this->classCache,
- $this->loadMappingFile($file)
- );
- }
- }
-
- /**
- * Retrieves the locator used to discover mapping files by className.
- *
- * @return FileLocator
- */
- public function getLocator()
- {
- return $this->locator;
- }
-
- /**
- * Sets the locator used to discover mapping files by className.
- */
- public function setLocator(FileLocator $locator)
- {
- $this->locator = $locator;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileLocator.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileLocator.php
deleted file mode 100644
index 3b367419b..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileLocator.php
+++ /dev/null
@@ -1,53 +0,0 @@
-defaultDriver;
- }
-
- /**
- * Set the default driver.
- *
- * @return void
- */
- public function setDefaultDriver(MappingDriver $driver)
- {
- $this->defaultDriver = $driver;
- }
-
- /**
- * Adds a nested driver.
- *
- * @param string $namespace
- *
- * @return void
- */
- public function addDriver(MappingDriver $nestedDriver, $namespace)
- {
- $this->drivers[$namespace] = $nestedDriver;
- }
-
- /**
- * Gets the array of nested drivers.
- *
- * @return MappingDriver[] $drivers
- */
- public function getDrivers()
- {
- return $this->drivers;
- }
-
- /**
- * {@inheritDoc}
- */
- public function loadMetadataForClass($className, ClassMetadata $metadata)
- {
- /** @var MappingDriver $driver */
- foreach ($this->drivers as $namespace => $driver) {
- if (strpos($className, $namespace) === 0) {
- $driver->loadMetadataForClass($className, $metadata);
- return;
- }
- }
-
- if ($this->defaultDriver !== null) {
- $this->defaultDriver->loadMetadataForClass($className, $metadata);
- return;
- }
-
- throw MappingException::classNotFoundInNamespaces($className, array_keys($this->drivers));
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAllClassNames()
- {
- $classNames = [];
- $driverClasses = [];
-
- /** @var MappingDriver $driver */
- foreach ($this->drivers as $namespace => $driver) {
- $oid = spl_object_hash($driver);
-
- if (! isset($driverClasses[$oid])) {
- $driverClasses[$oid] = $driver->getAllClassNames();
- }
-
- foreach ($driverClasses[$oid] as $className) {
- if (strpos($className, $namespace) !== 0) {
- continue;
- }
-
- $classNames[$className] = true;
- }
- }
-
- if ($this->defaultDriver !== null) {
- foreach ($this->defaultDriver->getAllClassNames() as $className) {
- $classNames[$className] = true;
- }
- }
-
- return array_keys($classNames);
- }
-
- /**
- * {@inheritDoc}
- */
- public function isTransient($className)
- {
- /** @var MappingDriver $driver */
- foreach ($this->drivers as $namespace => $driver) {
- if (strpos($className, $namespace) === 0) {
- return $driver->isTransient($className);
- }
- }
-
- if ($this->defaultDriver !== null) {
- return $this->defaultDriver->isTransient($className);
- }
-
- return true;
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php
deleted file mode 100644
index 03e1746c6..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php
+++ /dev/null
@@ -1,44 +0,0 @@
-metadata = $metadata;
-
- $this->loadMappingFile($this->locator->findMappingFile($className));
- }
-
- /**
- * {@inheritDoc}
- */
- protected function loadMappingFile($file)
- {
- $metadata = $this->metadata;
- include $file;
-
- return [$metadata->getName() => $metadata];
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php
deleted file mode 100644
index f309fa9d2..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php
+++ /dev/null
@@ -1,129 +0,0 @@
-addPaths((array) $paths);
- }
-
- /**
- * Adds paths.
- *
- * @param string[] $paths
- *
- * @return void
- */
- public function addPaths(array $paths)
- {
- $this->paths = array_unique(array_merge($this->paths, $paths));
- }
-
- /**
- * {@inheritdoc}
- */
- public function loadMetadataForClass($className, ClassMetadata $metadata)
- {
- $className::loadMetadata($metadata);
- }
-
- /**
- * {@inheritDoc}
- *
- * @todo Same code exists in AnnotationDriver, should we re-use it somehow or not worry about it?
- */
- public function getAllClassNames()
- {
- if ($this->classNames !== null) {
- return $this->classNames;
- }
-
- if (! $this->paths) {
- throw MappingException::pathRequired();
- }
-
- $classes = [];
- $includedFiles = [];
-
- foreach ($this->paths as $path) {
- if (! is_dir($path)) {
- throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
- }
-
- $iterator = new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($path),
- RecursiveIteratorIterator::LEAVES_ONLY
- );
-
- foreach ($iterator as $file) {
- if ($file->getBasename('.php') === $file->getBasename()) {
- continue;
- }
-
- $sourceFile = realpath($file->getPathName());
- require_once $sourceFile;
- $includedFiles[] = $sourceFile;
- }
- }
-
- $declared = get_declared_classes();
-
- foreach ($declared as $className) {
- $rc = new ReflectionClass($className);
- $sourceFile = $rc->getFileName();
- if (! in_array($sourceFile, $includedFiles) || $this->isTransient($className)) {
- continue;
- }
-
- $classes[] = $className;
- }
-
- $this->classNames = $classes;
-
- return $classes;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isTransient($className)
- {
- return ! method_exists($className, 'loadMetadata');
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php
deleted file mode 100644
index a151790bb..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php
+++ /dev/null
@@ -1,230 +0,0 @@
-addNamespacePrefixes($prefixes);
- $this->fileExtension = $fileExtension;
-
- if (empty($nsSeparator)) {
- throw new InvalidArgumentException('Namespace separator should not be empty');
- }
-
- $this->nsSeparator = (string) $nsSeparator;
- }
-
- /**
- * Adds Namespace Prefixes.
- *
- * @param string[] $prefixes
- *
- * @return void
- */
- public function addNamespacePrefixes(array $prefixes)
- {
- $this->prefixes = array_merge($this->prefixes, $prefixes);
- $this->paths = array_merge($this->paths, array_keys($prefixes));
- }
-
- /**
- * Gets Namespace Prefixes.
- *
- * @return string[]
- */
- public function getNamespacePrefixes()
- {
- return $this->prefixes;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPaths()
- {
- return $this->paths;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getFileExtension()
- {
- return $this->fileExtension;
- }
-
- /**
- * Sets the file extension used to look for mapping files under.
- *
- * @param string $fileExtension The file extension to set.
- *
- * @return void
- */
- public function setFileExtension($fileExtension)
- {
- $this->fileExtension = $fileExtension;
- }
-
- /**
- * {@inheritDoc}
- */
- public function fileExists($className)
- {
- $defaultFileName = str_replace('\\', $this->nsSeparator, $className) . $this->fileExtension;
- foreach ($this->paths as $path) {
- if (! isset($this->prefixes[$path])) {
- // global namespace class
- if (is_file($path . DIRECTORY_SEPARATOR . $defaultFileName)) {
- return true;
- }
-
- continue;
- }
-
- $prefix = $this->prefixes[$path];
-
- if (strpos($className, $prefix . '\\') !== 0) {
- continue;
- }
-
- $filename = $path . '/' . strtr(substr($className, strlen($prefix) + 1), '\\', $this->nsSeparator) . $this->fileExtension;
- if (is_file($filename)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAllClassNames($globalBasename = null)
- {
- $classes = [];
-
- if ($this->paths) {
- foreach ((array) $this->paths as $path) {
- if (! is_dir($path)) {
- throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
- }
-
- $iterator = new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($path),
- RecursiveIteratorIterator::LEAVES_ONLY
- );
-
- foreach ($iterator as $file) {
- $fileName = $file->getBasename($this->fileExtension);
-
- if ($fileName === $file->getBasename() || $fileName === $globalBasename) {
- continue;
- }
-
- // NOTE: All files found here means classes are not transient!
- if (isset($this->prefixes[$path])) {
- // Calculate namespace suffix for given prefix as a relative path from basepath to file path
- $nsSuffix = strtr(
- substr(realpath($file->getPath()), strlen(realpath($path))),
- $this->nsSeparator,
- '\\'
- );
-
- $classes[] = $this->prefixes[$path] . str_replace(DIRECTORY_SEPARATOR, '\\', $nsSuffix) . '\\' . str_replace($this->nsSeparator, '\\', $fileName);
- } else {
- $classes[] = str_replace($this->nsSeparator, '\\', $fileName);
- }
- }
- }
- }
-
- return $classes;
- }
-
- /**
- * {@inheritDoc}
- */
- public function findMappingFile($className)
- {
- $defaultFileName = str_replace('\\', $this->nsSeparator, $className) . $this->fileExtension;
- foreach ($this->paths as $path) {
- if (! isset($this->prefixes[$path])) {
- if (is_file($path . DIRECTORY_SEPARATOR . $defaultFileName)) {
- return $path . DIRECTORY_SEPARATOR . $defaultFileName;
- }
-
- continue;
- }
-
- $prefix = $this->prefixes[$path];
-
- if (strpos($className, $prefix . '\\') !== 0) {
- continue;
- }
-
- $filename = $path . '/' . strtr(substr($className, strlen($prefix) + 1), '\\', $this->nsSeparator) . $this->fileExtension;
- if (is_file($filename)) {
- return $filename;
- }
- }
-
- throw MappingException::mappingFileNotFound($className, substr($className, strrpos($className, '\\') + 1) . $this->fileExtension);
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/MappingException.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/MappingException.php
deleted file mode 100644
index bae8ac5a5..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/MappingException.php
+++ /dev/null
@@ -1,95 +0,0 @@
-getShortName();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClassNamespace($class)
- {
- $reflectionClass = new ReflectionClass($class);
-
- return $reflectionClass->getNamespaceName();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClass($class)
- {
- return new ReflectionClass($class);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAccessibleProperty($class, $property)
- {
- $reflectionProperty = new ReflectionProperty($class, $property);
-
- if ($reflectionProperty->isPublic()) {
- $reflectionProperty = new RuntimePublicReflectionProperty($class, $property);
- }
-
- $reflectionProperty->setAccessible(true);
-
- return $reflectionProperty;
- }
-
- /**
- * {@inheritDoc}
- */
- public function hasPublicMethod($class, $method)
- {
- try {
- $reflectionMethod = new ReflectionMethod($class, $method);
- } catch (ReflectionException $e) {
- return false;
- }
-
- return $reflectionMethod->isPublic();
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php
deleted file mode 100644
index a866aecb2..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php
+++ /dev/null
@@ -1,69 +0,0 @@
-find($id).
- *
- * @param string $className The class name of the object to find.
- * @param mixed $id The identity of the object to find.
- *
- * @return object|null The found object.
- */
- public function find($className, $id);
-
- /**
- * Tells the ObjectManager to make an instance managed and persistent.
- *
- * The object will be entered into the database as a result of the flush operation.
- *
- * NOTE: The persist operation always considers objects that are not yet known to
- * this ObjectManager as NEW. Do not pass detached objects to the persist operation.
- *
- * @param object $object The instance to make managed and persistent.
- *
- * @return void
- */
- public function persist($object);
-
- /**
- * Removes an object instance.
- *
- * A removed object will be removed from the database as a result of the flush operation.
- *
- * @param object $object The object instance to remove.
- *
- * @return void
- */
- public function remove($object);
-
- /**
- * Merges the state of a detached object into the persistence context
- * of this ObjectManager and returns the managed copy of the object.
- * The object passed to merge will not become associated/managed with this ObjectManager.
- *
- * @param object $object
- *
- * @return object
- */
- public function merge($object);
-
- /**
- * Clears the ObjectManager. All objects that are currently managed
- * by this ObjectManager become detached.
- *
- * @param string|null $objectName if given, only objects of this type will get detached.
- *
- * @return void
- */
- public function clear($objectName = null);
-
- /**
- * Detaches an object from the ObjectManager, causing a managed object to
- * become detached. Unflushed changes made to the object if any
- * (including removal of the object), will not be synchronized to the database.
- * Objects which previously referenced the detached object will continue to
- * reference it.
- *
- * @param object $object The object to detach.
- *
- * @return void
- */
- public function detach($object);
-
- /**
- * Refreshes the persistent state of an object from the database,
- * overriding any local changes that have not yet been persisted.
- *
- * @param object $object The object to refresh.
- *
- * @return void
- */
- public function refresh($object);
-
- /**
- * Flushes all changes to objects that have been queued up to now to the database.
- * This effectively synchronizes the in-memory state of managed objects with the
- * database.
- *
- * @return void
- */
- public function flush();
-
- /**
- * Gets the repository for a class.
- *
- * @param string $className
- *
- * @return ObjectRepository
- */
- public function getRepository($className);
-
- /**
- * Returns the ClassMetadata descriptor for a class.
- *
- * The class name must be the fully-qualified class name without a leading backslash
- * (as it is returned by get_class($obj)).
- *
- * @param string $className
- *
- * @return ClassMetadata
- */
- public function getClassMetadata($className);
-
- /**
- * Gets the metadata factory used to gather the metadata of classes.
- *
- * @return ClassMetadataFactory
- */
- public function getMetadataFactory();
-
- /**
- * Helper method to initialize a lazy loading proxy or persistent collection.
- *
- * This method is a no-op for other objects.
- *
- * @param object $obj
- *
- * @return void
- */
- public function initializeObject($obj);
-
- /**
- * Checks if the object is part of the current UnitOfWork and therefore managed.
- *
- * @param object $object
- *
- * @return bool
- */
- public function contains($object);
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManagerAware.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManagerAware.php
deleted file mode 100644
index 7d3aaf02a..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManagerAware.php
+++ /dev/null
@@ -1,29 +0,0 @@
-wrapped->find($className, $id);
- }
-
- /**
- * {@inheritdoc}
- */
- public function persist($object)
- {
- $this->wrapped->persist($object);
- }
-
- /**
- * {@inheritdoc}
- */
- public function remove($object)
- {
- $this->wrapped->remove($object);
- }
-
- /**
- * {@inheritdoc}
- */
- public function merge($object)
- {
- return $this->wrapped->merge($object);
- }
-
- /**
- * {@inheritdoc}
- */
- public function clear($objectName = null)
- {
- $this->wrapped->clear($objectName);
- }
-
- /**
- * {@inheritdoc}
- */
- public function detach($object)
- {
- $this->wrapped->detach($object);
- }
-
- /**
- * {@inheritdoc}
- */
- public function refresh($object)
- {
- $this->wrapped->refresh($object);
- }
-
- /**
- * {@inheritdoc}
- */
- public function flush()
- {
- $this->wrapped->flush();
- }
-
- /**
- * {@inheritdoc}
- */
- public function getRepository($className)
- {
- return $this->wrapped->getRepository($className);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getClassMetadata($className)
- {
- return $this->wrapped->getClassMetadata($className);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getMetadataFactory()
- {
- return $this->wrapped->getMetadataFactory();
- }
-
- /**
- * {@inheritdoc}
- */
- public function initializeObject($obj)
- {
- $this->wrapped->initializeObject($obj);
- }
-
- /**
- * {@inheritdoc}
- */
- public function contains($object)
- {
- return $this->wrapped->contains($object);
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectRepository.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectRepository.php
deleted file mode 100644
index aa6f9f5b5..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectRepository.php
+++ /dev/null
@@ -1,61 +0,0 @@
-getId(); // method exists through __call
- */
-abstract class PersistentObject implements ObjectManagerAware
-{
- /** @var ObjectManager|null */
- private static $objectManager = null;
-
- /** @var ClassMetadata|null */
- private $cm = null;
-
- /**
- * Sets the object manager responsible for all persistent object base classes.
- *
- * @return void
- */
- public static function setObjectManager(?ObjectManager $objectManager = null)
- {
- self::$objectManager = $objectManager;
- }
-
- /**
- * @return ObjectManager|null
- */
- public static function getObjectManager()
- {
- return self::$objectManager;
- }
-
- /**
- * Injects the Doctrine Object Manager.
- *
- * @return void
- *
- * @throws RuntimeException
- */
- public function injectObjectManager(ObjectManager $objectManager, ClassMetadata $classMetadata)
- {
- if ($objectManager !== self::$objectManager) {
- throw new RuntimeException('Trying to use PersistentObject with different ObjectManager instances. ' .
- 'Was PersistentObject::setObjectManager() called?');
- }
-
- $this->cm = $classMetadata;
- }
-
- /**
- * Sets a persistent fields value.
- *
- * @param string $field
- * @param mixed[] $args
- *
- * @return void
- *
- * @throws BadMethodCallException When no persistent field exists by that name.
- * @throws InvalidArgumentException When the wrong target object type is passed to an association.
- */
- private function set($field, $args)
- {
- if ($this->cm->hasField($field) && ! $this->cm->isIdentifier($field)) {
- $this->$field = $args[0];
- } elseif ($this->cm->hasAssociation($field) && $this->cm->isSingleValuedAssociation($field)) {
- $targetClass = $this->cm->getAssociationTargetClass($field);
- if (! ($args[0] instanceof $targetClass) && $args[0] !== null) {
- throw new InvalidArgumentException("Expected persistent object of type '" . $targetClass . "'");
- }
- $this->$field = $args[0];
- $this->completeOwningSide($field, $targetClass, $args[0]);
- } else {
- throw new BadMethodCallException("no field with name '" . $field . "' exists on '" . $this->cm->getName() . "'");
- }
- }
-
- /**
- * Gets a persistent field value.
- *
- * @param string $field
- *
- * @return mixed
- *
- * @throws BadMethodCallException When no persistent field exists by that name.
- */
- private function get($field)
- {
- if ($this->cm->hasField($field) || $this->cm->hasAssociation($field)) {
- return $this->$field;
- }
-
- throw new BadMethodCallException("no field with name '" . $field . "' exists on '" . $this->cm->getName() . "'");
- }
-
- /**
- * If this is an inverse side association, completes the owning side.
- *
- * @param string $field
- * @param ClassMetadata $targetClass
- * @param object $targetObject
- *
- * @return void
- */
- private function completeOwningSide($field, $targetClass, $targetObject)
- {
- // add this object on the owning side as well, for obvious infinite recursion
- // reasons this is only done when called on the inverse side.
- if (! $this->cm->isAssociationInverseSide($field)) {
- return;
- }
-
- $mappedByField = $this->cm->getAssociationMappedByTargetField($field);
- $targetMetadata = self::$objectManager->getClassMetadata($targetClass);
-
- $setter = ($targetMetadata->isCollectionValuedAssociation($mappedByField) ? 'add' : 'set') . $mappedByField;
- $targetObject->$setter($this);
- }
-
- /**
- * Adds an object to a collection.
- *
- * @param string $field
- * @param mixed[] $args
- *
- * @return void
- *
- * @throws BadMethodCallException
- * @throws InvalidArgumentException
- */
- private function add($field, $args)
- {
- if (! $this->cm->hasAssociation($field) || ! $this->cm->isCollectionValuedAssociation($field)) {
- throw new BadMethodCallException('There is no method add' . $field . '() on ' . $this->cm->getName());
- }
-
- $targetClass = $this->cm->getAssociationTargetClass($field);
- if (! ($args[0] instanceof $targetClass)) {
- throw new InvalidArgumentException("Expected persistent object of type '" . $targetClass . "'");
- }
- if (! ($this->$field instanceof Collection)) {
- $this->$field = new ArrayCollection($this->$field ?: []);
- }
- $this->$field->add($args[0]);
- $this->completeOwningSide($field, $targetClass, $args[0]);
- }
-
- /**
- * Initializes Doctrine Metadata for this class.
- *
- * @return void
- *
- * @throws RuntimeException
- */
- private function initializeDoctrine()
- {
- if ($this->cm !== null) {
- return;
- }
-
- if (! self::$objectManager) {
- throw new RuntimeException('No runtime object manager set. Call PersistentObject#setObjectManager().');
- }
-
- $this->cm = self::$objectManager->getClassMetadata(static::class);
- }
-
- /**
- * Magic methods.
- *
- * @param string $method
- * @param mixed[] $args
- *
- * @return mixed
- *
- * @throws BadMethodCallException
- */
- public function __call($method, $args)
- {
- $this->initializeDoctrine();
-
- $command = substr($method, 0, 3);
- $field = lcfirst(substr($method, 3));
- if ($command === 'set') {
- $this->set($field, $args);
- } elseif ($command === 'get') {
- return $this->get($field);
- } elseif ($command === 'add') {
- $this->add($field, $args);
- } else {
- throw new BadMethodCallException('There is no method ' . $method . ' on ' . $this->cm->getName());
- }
- }
-}
diff --git a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Proxy.php b/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Proxy.php
deleted file mode 100644
index 31220f733..000000000
--- a/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Proxy.php
+++ /dev/null
@@ -1,35 +0,0 @@
-= MAJOR).new.exists' # New issues of major or higher severity
- - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
diff --git a/vendor/doctrine/reflection/LICENSE b/vendor/doctrine/reflection/LICENSE
deleted file mode 100644
index 8c38cc1bc..000000000
--- a/vendor/doctrine/reflection/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2006-2015 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/vendor/doctrine/reflection/README.md b/vendor/doctrine/reflection/README.md
deleted file mode 100644
index 756c55b4d..000000000
--- a/vendor/doctrine/reflection/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Doctrine Reflection
-
-[![Build Status](https://travis-ci.org/doctrine/reflection.svg)](https://travis-ci.org/doctrine/reflection)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doctrine/reflection/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doctrine/reflection/?branch=master)
-[![Code Coverage](https://scrutinizer-ci.com/g/doctrine/reflection/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/doctrine/reflection/?branch=master)
-
-The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional functionality on top of the reflection functionality that comes with PHP. It allows you to get the reflection information about classes, methods and properties statically.
-
-## More resources:
-
-* [Website](https://www.doctrine-project.org/)
-* [Documentation](https://www.doctrine-project.org/projects/doctrine-reflection/en/latest/)
-* [Downloads](https://github.com/doctrine/reflection/releases)
diff --git a/vendor/doctrine/reflection/composer.json b/vendor/doctrine/reflection/composer.json
deleted file mode 100644
index ad319695c..000000000
--- a/vendor/doctrine/reflection/composer.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "name": "doctrine/reflection",
- "type": "library",
- "description": "Doctrine Reflection component",
- "keywords": ["reflection"],
- "homepage": "https://www.doctrine-project.org/projects/reflection.html",
- "license": "MIT",
- "authors": [
- {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"},
- {"name": "Roman Borschel", "email": "roman@code-factory.org"},
- {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"},
- {"name": "Jonathan Wage", "email": "jonwage@gmail.com"},
- {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"},
- {"name": "Marco Pivetta", "email": "ocramius@gmail.com"}
- ],
- "require": {
- "php": "^7.1",
- "ext-tokenizer": "*",
- "doctrine/annotations": "^1.0"
- },
- "require-dev": {
- "phpstan/phpstan": "^0.9.2",
- "phpstan/phpstan-phpunit": "^0.9.4",
- "phpunit/phpunit": "^7.0",
- "doctrine/coding-standard": "^4.0",
- "doctrine/common": "^2.8",
- "squizlabs/php_codesniffer": "^3.0"
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\": "lib/Doctrine/Common"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Doctrine\\Tests\\": "tests/Doctrine/Tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/vendor/doctrine/reflection/docs/en/index.rst b/vendor/doctrine/reflection/docs/en/index.rst
deleted file mode 100644
index ae85870fd..000000000
--- a/vendor/doctrine/reflection/docs/en/index.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-Reflection Documentation
-=================
-
-The Doctrine Reflection documentation is a reference guide to everything you need
-to know about the reflection project.
-
-Getting Help
-------------
-
-If this documentation is not helping to answer questions you have about
-Doctrine Reflection don't panic. You can get help from different sources:
-
-- The `Doctrine Mailing List `_
-- Gitter chat room `#doctrine/reflection `_
-- Report a bug on `GitHub `_.
-- On `StackOverflow `_
-
-Getting Started
----------------
-
-The best way to get started is with the :doc:`Introduction ` section.
-Use the sidebar to browse other documentation for the Doctrine PHP Reflection project.
diff --git a/vendor/doctrine/reflection/docs/en/reference/index.rst b/vendor/doctrine/reflection/docs/en/reference/index.rst
deleted file mode 100644
index e383a17d9..000000000
--- a/vendor/doctrine/reflection/docs/en/reference/index.rst
+++ /dev/null
@@ -1,85 +0,0 @@
-Introduction
-============
-
-The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional
-functionality on top of the reflection functionality that comes with PHP. It allows you to get the reflection information
-about classes, methods and properties statically.
-
-Installation
-============
-
-The library can easily be installed with composer.
-
-.. code-block:: sh
-
- $ composer require doctrine/reflection
-
-Setup
-=====
-
-.. code-block:: php
-
- use Doctrine\Common\Reflection\Psr0FindFile;
- use Doctrine\Common\Reflection\StaticReflectionParser;
- use App\Model\User;
-
- $finder = new Psr0FindFile(['App' => [
- '/path/to/project/src/App'
- ]]);
-
- $staticReflectionParser = new StaticReflectionParser(User::class, $finder);
-
-Usage
-=====
-
-.. code-block:: php
-
- echo $staticReflectionParser->getClassName();
- echo $staticReflectionParser->getNamespaceName();
-
-StaticReflectionClass
-=====================
-
-.. code-block:: php
-
- $staticReflectionClass = $staticReflectionParser->getReflectionClass();
-
- echo $staticReflectionClass->getName();
-
- echo $staticReflectionClass->getDocComment();
-
- echo $staticReflectionClass->getNamespaceName();
-
- print_r($staticReflectionClass->getUseStatements());
-
-StaticReflectionMethod
-======================
-
-.. code-block:: php
-
- $staticReflectionMethod = $staticReflectionParser->getReflectionMethod('getSomething');
-
- echo $staticReflectionMethod->getName();
-
- echo $staticReflectionMethod->getDeclaringClass();
-
- echo $staticReflectionMethod->getNamespaceName();
-
- echo $staticReflectionMethod->getDocComment();
-
- print_r($staticReflectionMethod->getUseStatements());
-
-StaticReflectionProperty
-========================
-
-.. code-block:: php
-
- $staticReflectionProperty = $staticReflectionParser->getReflectionProperty('something');
-
- echo $staticReflectionProperty->getName();
-
- echo $staticReflectionProperty->getDeclaringClass();
-
- echo $staticReflectionProperty->getDocComment();
-
- print_r($staticReflectionProperty->getUseStatements());
diff --git a/vendor/doctrine/reflection/docs/en/sidebar.rst b/vendor/doctrine/reflection/docs/en/sidebar.rst
deleted file mode 100644
index 0672d8d3e..000000000
--- a/vendor/doctrine/reflection/docs/en/sidebar.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-.. toctree::
- :depth: 3
-
- reference/index
diff --git a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/ClassFinderInterface.php b/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/ClassFinderInterface.php
deleted file mode 100644
index 8f4ed002f..000000000
--- a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/ClassFinderInterface.php
+++ /dev/null
@@ -1,18 +0,0 @@
-prefixes = $prefixes;
- }
-
- /**
- * {@inheritDoc}
- */
- public function findFile($class)
- {
- if ($class[0] === '\\') {
- $class = substr($class, 1);
- }
-
- $lastNsPos = strrpos($class, '\\');
-
- if ($lastNsPos !== false) {
- // namespaced class name
- $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $lastNsPos)) . DIRECTORY_SEPARATOR;
- $className = substr($class, $lastNsPos + 1);
- } else {
- // PEAR-like class name
- $classPath = null;
- $className = $class;
- }
-
- $classPath .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
-
- foreach ($this->prefixes as $prefix => $dirs) {
- if (strpos($class, $prefix) !== 0) {
- continue;
- }
-
- foreach ($dirs as $dir) {
- if (is_file($dir . DIRECTORY_SEPARATOR . $classPath)) {
- return $dir . DIRECTORY_SEPARATOR . $classPath;
- }
- }
- }
-
- return null;
- }
-}
diff --git a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/ReflectionProviderInterface.php b/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/ReflectionProviderInterface.php
deleted file mode 100644
index 473325b59..000000000
--- a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/ReflectionProviderInterface.php
+++ /dev/null
@@ -1,31 +0,0 @@
-getName();
-
- if ($object instanceof Proxy && ! $object->__isInitialized()) {
- $originalInitializer = $object->__getInitializer();
- $object->__setInitializer(null);
- $val = $object->$name ?? null;
- $object->__setInitializer($originalInitializer);
-
- return $val;
- }
-
- return isset($object->$name) ? parent::getValue($object) : null;
- }
-
- /**
- * {@inheritDoc}
- *
- * Avoids triggering lazy loading via `__set` if the provided object
- * is a {@see \Doctrine\Common\Proxy\Proxy}.
- * @link https://bugs.php.net/bug.php?id=63463
- */
- public function setValue($object, $value = null)
- {
- if (! ($object instanceof Proxy && ! $object->__isInitialized())) {
- parent::setValue($object, $value);
-
- return;
- }
-
- $originalInitializer = $object->__getInitializer();
- $object->__setInitializer(null);
- parent::setValue($object, $value);
- $object->__setInitializer($originalInitializer);
- }
-}
diff --git a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionClass.php b/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionClass.php
deleted file mode 100644
index 180f5a6ac..000000000
--- a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionClass.php
+++ /dev/null
@@ -1,413 +0,0 @@
-staticReflectionParser = $staticReflectionParser;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getName()
- {
- return $this->staticReflectionParser->getClassName();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getDocComment()
- {
- return $this->staticReflectionParser->getDocComment();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getNamespaceName()
- {
- return $this->staticReflectionParser->getNamespaceName();
- }
-
- /**
- * @return string[]
- */
- public function getUseStatements()
- {
- return $this->staticReflectionParser->getUseStatements();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethod($name)
- {
- return $this->staticReflectionParser->getReflectionMethod($name);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getProperty($name)
- {
- return $this->staticReflectionParser->getReflectionProperty($name);
- }
-
- /**
- * {@inheritDoc}
- */
- public static function export($argument, $return = false)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getConstant($name)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getConstants()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getConstructor()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getDefaultProperties()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getEndLine()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getExtension()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getExtensionName()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getFileName()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getInterfaceNames()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getInterfaces()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getMethods($filter = null)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getModifiers()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getParentClass()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getProperties($filter = null)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getShortName()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getStartLine()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getStaticProperties()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getStaticPropertyValue($name, $default = '')
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getTraitAliases()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getTraitNames()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getTraits()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function hasConstant($name)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function hasMethod($name)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function hasProperty($name)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function implementsInterface($interface)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function inNamespace()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isAbstract()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isCloneable()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isFinal()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isInstance($object)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isInstantiable()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isInterface()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isInternal()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isIterateable()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isSubclassOf($class)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isTrait()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isUserDefined()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function newInstance($args)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function newInstanceArgs(array $args = [])
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function newInstanceWithoutConstructor()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function setStaticPropertyValue($name, $value)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function __toString()
- {
- throw new ReflectionException('Method not implemented');
- }
-}
diff --git a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionMethod.php b/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionMethod.php
deleted file mode 100644
index 67bd99847..000000000
--- a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionMethod.php
+++ /dev/null
@@ -1,344 +0,0 @@
-staticReflectionParser = $staticReflectionParser;
- $this->methodName = $methodName;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getName()
- {
- return $this->methodName;
- }
-
- /**
- * @return StaticReflectionParser
- */
- protected function getStaticReflectionParser()
- {
- return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('method', $this->methodName);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getDeclaringClass()
- {
- return $this->getStaticReflectionParser()->getReflectionClass();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getNamespaceName()
- {
- return $this->getStaticReflectionParser()->getNamespaceName();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getDocComment()
- {
- return $this->getStaticReflectionParser()->getDocComment('method', $this->methodName);
- }
-
- /**
- * @return string[]
- */
- public function getUseStatements()
- {
- return $this->getStaticReflectionParser()->getUseStatements();
- }
-
- /**
- * {@inheritDoc}
- */
- public static function export($class, $name, $return = false)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClosure($object)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getModifiers()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getPrototype()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function invoke($object, $parameter = null)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function invokeArgs($object, array $args)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isAbstract()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isConstructor()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isDestructor()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isFinal()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isPrivate()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isProtected()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isPublic()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isStatic()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function setAccessible($accessible)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function __toString()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getClosureThis()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getEndLine()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getExtension()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getExtensionName()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getFileName()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getNumberOfParameters()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getNumberOfRequiredParameters()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getParameters()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getShortName()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getStartLine()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getStaticVariables()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function inNamespace()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isClosure()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isDeprecated()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isInternal()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isUserDefined()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function returnsReference()
- {
- throw new ReflectionException('Method not implemented');
- }
-}
diff --git a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionParser.php b/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionParser.php
deleted file mode 100644
index 94e0b07ba..000000000
--- a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionParser.php
+++ /dev/null
@@ -1,328 +0,0 @@
- '',
- 'property' => [],
- 'method' => [],
- ];
-
- /**
- * The name of the class this class extends, if any.
- *
- * @var string
- */
- protected $parentClassName = '';
-
- /**
- * The parent PSR-0 Parser.
- *
- * @var \Doctrine\Common\Reflection\StaticReflectionParser
- */
- protected $parentStaticReflectionParser;
-
- /**
- * Parses a class residing in a PSR-0 hierarchy.
- *
- * @param string $className The full, namespaced class name.
- * @param ClassFinderInterface $finder A ClassFinder object which finds the class.
- * @param bool $classAnnotationOptimize Only retrieve the class docComment.
- * Presumes there is only one statement per line.
- */
- public function __construct($className, $finder, $classAnnotationOptimize = false)
- {
- $this->className = ltrim($className, '\\');
- $lastNsPos = strrpos($this->className, '\\');
-
- if ($lastNsPos !== false) {
- $this->namespace = substr($this->className, 0, $lastNsPos);
- $this->shortClassName = substr($this->className, $lastNsPos + 1);
- } else {
- $this->shortClassName = $this->className;
- }
-
- $this->finder = $finder;
- $this->classAnnotationOptimize = $classAnnotationOptimize;
- }
-
- /**
- * @return void
- */
- protected function parse()
- {
- $fileName = $this->finder->findFile($this->className);
-
- if ($this->parsed || ! $fileName) {
- return;
- }
- $this->parsed = true;
- $contents = file_get_contents($fileName);
- if ($this->classAnnotationOptimize) {
- $regex = sprintf('/\A.*^\s*((abstract|final)\s+)?class\s+%s\s+/sm', $this->shortClassName);
-
- if (preg_match($regex, $contents, $matches)) {
- $contents = $matches[0];
- }
- }
- $tokenParser = new TokenParser($contents);
- $docComment = '';
- $last_token = false;
-
- while ($token = $tokenParser->next(false)) {
- switch ($token[0]) {
- case T_USE:
- $this->useStatements = array_merge($this->useStatements, $tokenParser->parseUseStatement());
- break;
- case T_DOC_COMMENT:
- $docComment = $token[1];
- break;
- case T_CLASS:
- if ($last_token !== T_PAAMAYIM_NEKUDOTAYIM) {
- $this->docComment['class'] = $docComment;
- $docComment = '';
- }
- break;
- case T_VAR:
- case T_PRIVATE:
- case T_PROTECTED:
- case T_PUBLIC:
- $token = $tokenParser->next();
- if ($token[0] === T_VARIABLE) {
- $propertyName = substr($token[1], 1);
- $this->docComment['property'][$propertyName] = $docComment;
- continue 2;
- }
- if ($token[0] !== T_FUNCTION) {
- // For example, it can be T_FINAL.
- continue 2;
- }
- // No break.
- case T_FUNCTION:
- // The next string after function is the name, but
- // there can be & before the function name so find the
- // string.
- while (($token = $tokenParser->next()) && $token[0] !== T_STRING) {
- continue;
- }
- $methodName = $token[1];
- $this->docComment['method'][$methodName] = $docComment;
- $docComment = '';
- break;
- case T_EXTENDS:
- $this->parentClassName = $tokenParser->parseClass();
- $nsPos = strpos($this->parentClassName, '\\');
- $fullySpecified = false;
- if ($nsPos === 0) {
- $fullySpecified = true;
- } else {
- if ($nsPos) {
- $prefix = strtolower(substr($this->parentClassName, 0, $nsPos));
- $postfix = substr($this->parentClassName, $nsPos);
- } else {
- $prefix = strtolower($this->parentClassName);
- $postfix = '';
- }
- foreach ($this->useStatements as $alias => $use) {
- if ($alias !== $prefix) {
- continue;
- }
-
- $this->parentClassName = '\\' . $use . $postfix;
- $fullySpecified = true;
- }
- }
- if (! $fullySpecified) {
- $this->parentClassName = '\\' . $this->namespace . '\\' . $this->parentClassName;
- }
- break;
- }
-
- $last_token = $token[0];
- }
- }
-
- /**
- * @return StaticReflectionParser
- */
- protected function getParentStaticReflectionParser()
- {
- if (empty($this->parentStaticReflectionParser)) {
- $this->parentStaticReflectionParser = new static($this->parentClassName, $this->finder);
- }
-
- return $this->parentStaticReflectionParser;
- }
-
- /**
- * @return string
- */
- public function getClassName()
- {
- return $this->className;
- }
-
- /**
- * @return string
- */
- public function getNamespaceName()
- {
- return $this->namespace;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getReflectionClass()
- {
- return new StaticReflectionClass($this);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getReflectionMethod($methodName)
- {
- return new StaticReflectionMethod($this, $methodName);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getReflectionProperty($propertyName)
- {
- return new StaticReflectionProperty($this, $propertyName);
- }
-
- /**
- * Gets the use statements from this file.
- *
- * @return string[]
- */
- public function getUseStatements()
- {
- $this->parse();
-
- return $this->useStatements;
- }
-
- /**
- * Gets the doc comment.
- *
- * @param string $type The type: 'class', 'property' or 'method'.
- * @param string $name The name of the property or method, not needed for 'class'.
- *
- * @return string The doc comment, empty string if none.
- */
- public function getDocComment($type = 'class', $name = '')
- {
- $this->parse();
-
- return $name ? $this->docComment[$type][$name] : $this->docComment[$type];
- }
-
- /**
- * Gets the PSR-0 parser for the declaring class.
- *
- * @param string $type The type: 'property' or 'method'.
- * @param string $name The name of the property or method.
- *
- * @return StaticReflectionParser A static reflection parser for the declaring class.
- *
- * @throws ReflectionException
- */
- public function getStaticReflectionParserForDeclaringClass($type, $name)
- {
- $this->parse();
- if (isset($this->docComment[$type][$name])) {
- return $this;
- }
- if (! empty($this->parentClassName)) {
- return $this->getParentStaticReflectionParser()->getStaticReflectionParserForDeclaringClass($type, $name);
- }
- throw new ReflectionException('Invalid ' . $type . ' "' . $name . '"');
- }
-}
diff --git a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionProperty.php b/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionProperty.php
deleted file mode 100644
index b94fda3ee..000000000
--- a/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionProperty.php
+++ /dev/null
@@ -1,160 +0,0 @@
-staticReflectionParser = $staticReflectionParser;
- $this->propertyName = $propertyName;
- }
-
- /**
- * {@inheritDoc}
- */
- public function getName()
- {
- return $this->propertyName;
- }
-
- /**
- * @return StaticReflectionParser
- */
- protected function getStaticReflectionParser()
- {
- return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', $this->propertyName);
- }
-
- /**
- * {@inheritDoc}
- */
- public function getDeclaringClass()
- {
- return $this->getStaticReflectionParser()->getReflectionClass();
- }
-
- /**
- * {@inheritDoc}
- */
- public function getDocComment()
- {
- return $this->getStaticReflectionParser()->getDocComment('property', $this->propertyName);
- }
-
- /**
- * @return string[]
- */
- public function getUseStatements()
- {
- return $this->getStaticReflectionParser()->getUseStatements();
- }
-
- /**
- * {@inheritDoc}
- */
- public static function export($class, $name, $return = false)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getModifiers()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function getValue($object = null)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isDefault()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isPrivate()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isProtected()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isPublic()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function isStatic()
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function setAccessible($accessible)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function setValue($object, $value = null)
- {
- throw new ReflectionException('Method not implemented');
- }
-
- /**
- * {@inheritDoc}
- */
- public function __toString()
- {
- throw new ReflectionException('Method not implemented');
- }
-}
diff --git a/vendor/doctrine/reflection/phpstan.neon b/vendor/doctrine/reflection/phpstan.neon
deleted file mode 100644
index 4c8102b8e..000000000
--- a/vendor/doctrine/reflection/phpstan.neon
+++ /dev/null
@@ -1,6 +0,0 @@
-includes:
- - vendor/phpstan/phpstan-phpunit/extension.neon
-
-parameters:
- ignoreErrors:
- - '#Doctrine\\Common\\Reflection\\StaticReflection[a-zA-Z0-9_]+::__construct\(\) does not call parent constructor from Reflection[a-zA-Z0-9_]+#'
diff --git a/vendor/drupal-composer/drupal-scaffold/.editorconfig b/vendor/drupal-composer/drupal-scaffold/.editorconfig
deleted file mode 100644
index 12bcb27e4..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.editorconfig
+++ /dev/null
@@ -1,17 +0,0 @@
-# Drupal editor configuration normalization
-# @see http://editorconfig.org/
-
-# This is the top-most .editorconfig file; do not search in parent directories.
-root = true
-
-# All files.
-[*]
-end_of_line = LF
-indent_style = space
-indent_size = 2
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[{composer.json,composer.lock}]
-indent_size = 4
diff --git a/vendor/drupal-composer/drupal-scaffold/.gitignore b/vendor/drupal-composer/drupal-scaffold/.gitignore
deleted file mode 100644
index 22d0d82f8..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
diff --git a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/install b/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/install
deleted file mode 100755
index 8e691b0c1..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/install
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-SCENARIO=$1
-DEPENDENCIES=${2-install}
-
-# Convert the aliases 'highest', 'lowest' and 'lock' to
-# the corresponding composer command to run.
-case $DEPENDENCIES in
- highest)
- DEPENDENCIES=update
- ;;
- lowest)
- DEPENDENCIES='update --prefer-lowest'
- ;;
- lock|default|"")
- DEPENDENCIES=install
- ;;
-esac
-
-original_name=scenarios
-recommended_name=".scenarios.lock"
-
-base="$original_name"
-if [ -d "$recommended_name" ] ; then
- base="$recommended_name"
-fi
-
-# If scenario is not specified, install the lockfile at
-# the root of the project.
-dir="$base/${SCENARIO}"
-if [ -z "$SCENARIO" ] || [ "$SCENARIO" == "default" ] ; then
- SCENARIO=default
- dir=.
-fi
-
-# Test to make sure that the selected scenario exists.
-if [ ! -d "$dir" ] ; then
- echo "Requested scenario '${SCENARIO}' does not exist."
- exit 1
-fi
-
-echo
-echo "::"
-echo ":: Switch to ${SCENARIO} scenario"
-echo "::"
-echo
-
-set -ex
-
-composer -n validate --working-dir=$dir --no-check-all --ansi
-composer -n --working-dir=$dir ${DEPENDENCIES} --prefer-dist --no-scripts
-composer -n --working-dir=$dir info
diff --git a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/.gitignore b/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/.gitignore
deleted file mode 100644
index 22d0d82f8..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
diff --git a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/composer.json b/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/composer.json
deleted file mode 100644
index 52d5a59b1..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/composer.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "name": "drupal-composer/drupal-scaffold",
- "description": "Composer Plugin for updating the Drupal scaffold files when using drupal/core",
- "type": "composer-plugin",
- "license": "GPL-2.0-or-later",
- "require": {
- "php": ">=5.4.5",
- "composer-plugin-api": "^1.0.0",
- "composer/semver": "^1.4"
- },
- "autoload": {
- "psr-4": {
- "DrupalComposer\\DrupalScaffold\\": "src/"
- }
- },
- "extra": {
- "class": "DrupalComposer\\DrupalScaffold\\Plugin",
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit"
- ],
- "scenario": ".scenarios.lock/install",
- "post-update-cmd": [
- "create-scenario phpunit4 'phpunit/phpunit:^4.8.36' --platform-php '5.5.27'"
- ]
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "5.5.27"
- },
- "vendor-dir": "../../vendor"
- },
- "require-dev": {
- "composer/composer": "dev-master",
- "g1a/composer-test-scenarios": "^2.1.0",
- "phpunit/phpunit": "^4.8.36",
- "squizlabs/php_codesniffer": "^2.8"
- },
- "minimum-stability": "stable"
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/composer.lock b/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/composer.lock
deleted file mode 100644
index 084a62b1e..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/composer.lock
+++ /dev/null
@@ -1,2153 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "445ab29fa63d93c2f4ff7da62f90de16",
- "packages": [
- {
- "name": "composer/semver",
- "version": "1.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/semver.git",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.5 || ^5.0.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\Semver\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "Semver library that offers utilities, version constraint parsing and validation.",
- "keywords": [
- "semantic",
- "semver",
- "validation",
- "versioning"
- ],
- "time": "2016-08-30T16:08:34+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "composer/ca-bundle",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/ca-bundle.git",
- "reference": "d2c0a83b7533d6912e8d516756ebd34f893e9169"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/ca-bundle/zipball/d2c0a83b7533d6912e8d516756ebd34f893e9169",
- "reference": "d2c0a83b7533d6912e8d516756ebd34f893e9169",
- "shasum": ""
- },
- "require": {
- "ext-openssl": "*",
- "ext-pcre": "*",
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
- "psr/log": "^1.0",
- "symfony/process": "^2.5 || ^3.0 || ^4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\CaBundle\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
- "keywords": [
- "cabundle",
- "cacert",
- "certificate",
- "ssl",
- "tls"
- ],
- "time": "2018-03-29T19:57:20+00:00"
- },
- {
- "name": "composer/composer",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/composer.git",
- "reference": "837ad7c14e8ce364296e0d0600d04c415b6e359d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/composer/zipball/837ad7c14e8ce364296e0d0600d04c415b6e359d",
- "reference": "837ad7c14e8ce364296e0d0600d04c415b6e359d",
- "shasum": ""
- },
- "require": {
- "composer/ca-bundle": "^1.0",
- "composer/semver": "^1.0",
- "composer/spdx-licenses": "^1.2",
- "composer/xdebug-handler": "^1.1",
- "justinrainbow/json-schema": "^3.0 || ^4.0 || ^5.0",
- "php": "^5.3.2 || ^7.0",
- "psr/log": "^1.0",
- "seld/jsonlint": "^1.4",
- "seld/phar-utils": "^1.0",
- "symfony/console": "^2.7 || ^3.0 || ^4.0",
- "symfony/filesystem": "^2.7 || ^3.0 || ^4.0",
- "symfony/finder": "^2.7 || ^3.0 || ^4.0",
- "symfony/process": "^2.7 || ^3.0 || ^4.0"
- },
- "conflict": {
- "symfony/console": "2.8.38"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7",
- "phpunit/phpunit-mock-objects": "^2.3 || ^3.0"
- },
- "suggest": {
- "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
- "ext-zip": "Enabling the zip extension allows you to unzip archives",
- "ext-zlib": "Allow gzip compression of HTTP requests"
- },
- "bin": [
- "bin/composer"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.7-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\": "src/Composer"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.",
- "homepage": "https://getcomposer.org/",
- "keywords": [
- "autoload",
- "dependency",
- "package"
- ],
- "time": "2018-06-07T09:15:18+00:00"
- },
- {
- "name": "composer/spdx-licenses",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/spdx-licenses.git",
- "reference": "cb17687e9f936acd7e7245ad3890f953770dec1b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/cb17687e9f936acd7e7245ad3890f953770dec1b",
- "reference": "cb17687e9f936acd7e7245ad3890f953770dec1b",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\Spdx\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "SPDX licenses list and validation library.",
- "keywords": [
- "license",
- "spdx",
- "validator"
- ],
- "time": "2018-04-30T10:33:04+00:00"
- },
- {
- "name": "composer/xdebug-handler",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/xdebug-handler.git",
- "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/c919dc6c62e221fc6406f861ea13433c0aa24f08",
- "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0",
- "psr/log": "^1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Composer\\XdebugHandler\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "John Stevenson",
- "email": "john-stevenson@blueyonder.co.uk"
- }
- ],
- "description": "Restarts a process without xdebug.",
- "keywords": [
- "Xdebug",
- "performance"
- ],
- "time": "2018-04-11T15:42:36+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "4c2b990712dbcb87a0ab618e46f908c731c3a0bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/4c2b990712dbcb87a0ab618e46f908c731c3a0bb",
- "reference": "4c2b990712dbcb87a0ab618e46f908c731c3a0bb",
- "shasum": ""
- },
- "bin": [
- "scripts/create-scenario",
- "scripts/dependency-licenses",
- "scripts/install-scenario"
- ],
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-06-10T21:56:28+00:00"
- },
- {
- "name": "justinrainbow/json-schema",
- "version": "5.2.7",
- "source": {
- "type": "git",
- "url": "https://github.com/justinrainbow/json-schema.git",
- "reference": "8560d4314577199ba51bf2032f02cd1315587c23"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/8560d4314577199ba51bf2032f02cd1315587c23",
- "reference": "8560d4314577199ba51bf2032f02cd1315587c23",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "^2.1",
- "json-schema/json-schema-test-suite": "1.2.0",
- "phpunit/phpunit": "^4.8.35"
- },
- "bin": [
- "bin/validate-json"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "JsonSchema\\": "src/JsonSchema/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bruno Prieto Reis",
- "email": "bruno.p.reis@gmail.com"
- },
- {
- "name": "Justin Rainbow",
- "email": "justin.rainbow@gmail.com"
- },
- {
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
- },
- {
- "name": "Robert Schönthal",
- "email": "seroscho@googlemail.com"
- }
- ],
- "description": "A library to validate a json schema.",
- "homepage": "https://github.com/justinrainbow/json-schema",
- "keywords": [
- "json",
- "schema"
- ],
- "time": "2018-02-14T22:26:30+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "3.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/4aada1f93c72c35e22fb1383b47fee43b8f1d157",
- "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5",
- "phpdocumentor/reflection-common": "^1.0@dev",
- "phpdocumentor/type-resolver": "^0.3.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-08-08T06:39:58+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/fb3933512008d8162b3cdf9e18dba9309b7c3773",
- "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-06-03T08:32:36+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.7.6",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
- "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.7.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-04-18T13:57:24+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2015-10-06T15:47:00+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-12-04T08:55:13+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.8.36",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.2.2",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.1|~3.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2017-06-21T08:07:12+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2015-10-02T06:51:40+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2017-01-29T09:50:25+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-05-22T07:24:03+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2016-08-18T05:49:44+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2016-06-17T09:04:28+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12T03:26:01+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2016-10-03T07:41:43+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-06-21T13:59:46+00:00"
- },
- {
- "name": "seld/jsonlint",
- "version": "1.7.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/jsonlint.git",
- "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/d15f59a67ff805a44c50ea0516d2341740f81a38",
- "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38",
- "shasum": ""
- },
- "require": {
- "php": "^5.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "bin": [
- "bin/jsonlint"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Seld\\JsonLint\\": "src/Seld/JsonLint/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "JSON Linter",
- "keywords": [
- "json",
- "linter",
- "parser",
- "validator"
- ],
- "time": "2018-01-24T12:46:19+00:00"
- },
- {
- "name": "seld/phar-utils",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/phar-utils.git",
- "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/7009b5139491975ef6486545a39f3e6dad5ac30a",
- "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Seld\\PharUtils\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be"
- }
- ],
- "description": "PHAR file format utilities, for when PHP phars you up",
- "keywords": [
- "phra"
- ],
- "time": "2015-10-13T18:44:15+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2017-05-22T02:43:20+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "36f83f642443c46f3cf751d4d2ee5d047d757a27"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/36f83f642443c46f3cf751d4d2ee5d047d757a27",
- "reference": "36f83f642443c46f3cf751d4d2ee5d047d757a27",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "b28fd73fefbac341f673f5efd707d539d6a19f68"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/b28fd73fefbac341f673f5efd707d539d6a19f68",
- "reference": "b28fd73fefbac341f673f5efd707d539d6a19f68",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T14:03:39+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "8e03ca3fa52a0f56b87506f38cf7bd3f9442b3a0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/8e03ca3fa52a0f56b87506f38cf7bd3f9442b3a0",
- "reference": "8e03ca3fa52a0f56b87506f38cf7bd3f9442b3a0",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "472a92f3df8b247b49ae364275fb32943b9656c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/472a92f3df8b247b49ae364275fb32943b9656c6",
- "reference": "472a92f3df8b247b49ae364275fb32943b9656c6",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "7cc359f1b7b80fc25ed7796be7d96adc9b354bae"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7cc359f1b7b80fc25ed7796be7d96adc9b354bae",
- "reference": "7cc359f1b7b80fc25ed7796be7d96adc9b354bae",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-04-30T19:57:29+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "3296adf6a6454a050679cde90f95350ad604b171"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171",
- "reference": "3296adf6a6454a050679cde90f95350ad604b171",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-04-26T10:06:28+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "4cbf2db9abcb01486a21b7a059e03a62fae63187"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/4cbf2db9abcb01486a21b7a059e03a62fae63187",
- "reference": "4cbf2db9abcb01486a21b7a059e03a62fae63187",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c5010cc1692ce1fa328b1fb666961eb3d4a85bb0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c5010cc1692ce1fa328b1fb666961eb3d4a85bb0",
- "reference": "c5010cc1692ce1fa328b1fb666961eb3d4a85bb0",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-03T23:18:14+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": {
- "composer/composer": 20
- },
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.5"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "5.5.27"
- }
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/src b/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/src
deleted file mode 120000
index 929cb3dc9..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/src
+++ /dev/null
@@ -1 +0,0 @@
-../../src
\ No newline at end of file
diff --git a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/tests b/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/tests
deleted file mode 120000
index c2ebfe530..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.scenarios.lock/phpunit4/tests
+++ /dev/null
@@ -1 +0,0 @@
-../../tests
\ No newline at end of file
diff --git a/vendor/drupal-composer/drupal-scaffold/.travis.yml b/vendor/drupal-composer/drupal-scaffold/.travis.yml
deleted file mode 100644
index ba2f61edd..000000000
--- a/vendor/drupal-composer/drupal-scaffold/.travis.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-language: php
-
-branches:
- # Only test the master branch and SemVer tags.
- only:
- - master
- - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
-
-matrix:
- fast_finish: true
- include:
- - php: 7.2
- env: 'DEPENCENCIES=highest'
- - php: 7.2
- - php: 7.1
- - php: 7.0.11
- - php: 5.6
- env: 'SCENARIO=phpunit4'
- - php: 5.5
- env: 'SCENARIO=phpunit4'
- - php: 5.5
- env: 'SCENARIO=phpunit4 DEPENDENCIES=lowest'
-
-sudo: false
-
-git:
- depth: 10000
-
-before_install:
- - phpenv config-rm xdebug.ini
- - composer --verbose self-update
- - composer --version
-
-install:
- - 'composer scenario "${SCENARIO}" "${DEPENDENCIES}"'
-
-before_script:
- - git config --global user.email "travisci@example.com"
- - git config --global user.name "Travis CI Test"
-
-script:
- - composer test
diff --git a/vendor/drupal-composer/drupal-scaffold/README.md b/vendor/drupal-composer/drupal-scaffold/README.md
deleted file mode 100644
index 03e14933c..000000000
--- a/vendor/drupal-composer/drupal-scaffold/README.md
+++ /dev/null
@@ -1,121 +0,0 @@
-# drupal-scaffold
-
-[![Build Status](https://travis-ci.org/drupal-composer/drupal-scaffold.svg?branch=master)](https://travis-ci.org/drupal-composer/drupal-scaffold)
-
-Composer plugin for automatically downloading Drupal scaffold files (like
-`index.php`, `update.php`, …) when using `drupal/core` via Composer.
-
-It is recommended that the vendor directory be placed in its standard location
-at the project root, outside of the Drupal root; however, the location of the
-vendor directory and the name of the Drupal root may be placed in whatever
-location suits the project. Drupal-scaffold will generate the autoload.php
-file at the Drupal root to require the Composer-generated autoload file in the
-vendor directory.
-
-## Usage
-
-Run `composer require drupal-composer/drupal-scaffold:dev-master` in your composer
-project before installing or updating `drupal/core`.
-
-Once drupal-scaffold is required by your project, it will automatically update
-your scaffold files whenever `composer update` changes the version of
-`drupal/core` installed.
-
-## Configuration
-
-You can configure the plugin with providing some settings in the `extra` section
-of your root `composer.json`.
-
-```json
-{
- "extra": {
- "drupal-scaffold": {
- "source": "https://cgit.drupalcode.org/drupal/plain/{path}?h={version}",
- "excludes": [
- "google123.html",
- "robots.txt"
- ],
- "includes": [
- "sites/default/example.settings.my.php"
- ],
- "initial": {
- "sites/default/default.services.yml": "sites/default/services.yml",
- "sites/default/default.settings.php": "sites/default/settings.php"
- },
- "omit-defaults": false
- }
- }
-}
-```
-The `source` option may be used to specify the URL to download the
-scaffold files from; the default source is drupal.org. The literal string
-`{version}` in the `source` option is replaced with the current version of
-Drupal core being updated prior to download.
-
-With the `drupal-scaffold` option `excludes`, you can provide additional paths
-that should not be copied or overwritten. The plugin provides no excludes by
-default.
-
-Default includes are provided by the plugin:
-```
-.csslintrc
-.editorconfig
-.eslintignore
-.eslintrc (Drupal <= 8.2.x)
-.eslintrc.json (Drupal >= 8.3.x)
-.gitattributes
-.ht.router.php (Drupal >= 8.5.x)
-.htaccess
-index.php
-robots.txt
-sites/default/default.settings.php
-sites/default/default.services.yml
-sites/development.services.yml
-sites/example.settings.local.php
-sites/example.sites.php
-update.php
-web.config
-```
-
-When setting `omit-defaults` to `true`, neither the default excludes nor the
-default includes will be provided; in this instance, only those files explicitly
-listed in the `excludes` and `includes` options will be considered. If
-`omit-defaults` is `false` (the default), then any items listed in `excludes`
-or `includes` will be in addition to the usual defaults.
-
-The `initial` hash lists files that should be copied over only if they do not
-exist in the destination. The key specifies the path to the source file, and
-the value indicates the path to the destination file.
-
-## Limitation
-
-When using Composer to install or update the Drupal development branch, the
-scaffold files are always taken from the HEAD of the branch (or, more
-specifically, from the most recent development .tar.gz archive). This might
-not be what you want when using an old development version (e.g. when the
-version is fixed via composer.lock). To avoid problems, always commit your
-scaffold files to the repository any time that composer.lock is committed.
-Note that the correct scaffold files are retrieved when using a tagged release
-of `drupal/core` (recommended).
-
-## Custom command
-
-The plugin by default is only downloading the scaffold files when installing or
-updating `drupal/core`. If you want to call it manually, you have to add the
-command callback to the `scripts`-section of your root `composer.json`, like this:
-
-```json
-{
- "scripts": {
- "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold"
- }
-}
-```
-
-After that you can manually download the scaffold files according to your
-configuration by using `composer drupal-scaffold`.
-
-It is assumed that the scaffold files will be committed to the repository, to
-ensure that the correct files are used on the CI server (see **Limitation**,
-above). After running `composer install` for the first time commit the scaffold
-files to your repository.
diff --git a/vendor/drupal-composer/drupal-scaffold/composer.json b/vendor/drupal-composer/drupal-scaffold/composer.json
deleted file mode 100644
index b08ff80fc..000000000
--- a/vendor/drupal-composer/drupal-scaffold/composer.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "name": "drupal-composer/drupal-scaffold",
- "description": "Composer Plugin for updating the Drupal scaffold files when using drupal/core",
- "type": "composer-plugin",
- "license": "GPL-2.0-or-later",
- "require": {
- "php": ">=5.4.5",
- "composer-plugin-api": "^1.0.0",
- "composer/semver": "^1.4"
- },
- "autoload": {
- "psr-4": {
- "DrupalComposer\\DrupalScaffold\\": "src/"
- }
- },
- "extra": {
- "class": "DrupalComposer\\DrupalScaffold\\Plugin",
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "scripts": {
- "cs": "phpcs --standard=PSR2 -n src",
- "cbf": "phpcbf --standard=PSR2 -n src",
- "unit": "phpunit --colors=always",
- "lint": [
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit"
- ],
- "scenario": ".scenarios.lock/install",
- "post-update-cmd": [
- "create-scenario phpunit4 'phpunit/phpunit:^4.8.36' --platform-php '5.5.27'"
- ]
- },
- "config": {
- "optimize-autoloader": true,
- "sort-packages": true,
- "platform": {
- "php": "7.0.8"
- }
- },
- "require-dev": {
- "composer/composer": "dev-master",
- "g1a/composer-test-scenarios": "^2.1.0",
- "phpunit/phpunit": "^6",
- "squizlabs/php_codesniffer": "^2.8"
- }
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/composer.lock b/vendor/drupal-composer/drupal-scaffold/composer.lock
deleted file mode 100644
index 707e50460..000000000
--- a/vendor/drupal-composer/drupal-scaffold/composer.lock
+++ /dev/null
@@ -1,2490 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "cc2cd84cd41c52965cd00f2e515bb6d3",
- "packages": [
- {
- "name": "composer/semver",
- "version": "1.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/semver.git",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.5 || ^5.0.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\Semver\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "Semver library that offers utilities, version constraint parsing and validation.",
- "keywords": [
- "semantic",
- "semver",
- "validation",
- "versioning"
- ],
- "time": "2016-08-30T16:08:34+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "composer/ca-bundle",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/ca-bundle.git",
- "reference": "d2c0a83b7533d6912e8d516756ebd34f893e9169"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/ca-bundle/zipball/d2c0a83b7533d6912e8d516756ebd34f893e9169",
- "reference": "d2c0a83b7533d6912e8d516756ebd34f893e9169",
- "shasum": ""
- },
- "require": {
- "ext-openssl": "*",
- "ext-pcre": "*",
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
- "psr/log": "^1.0",
- "symfony/process": "^2.5 || ^3.0 || ^4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\CaBundle\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
- "keywords": [
- "cabundle",
- "cacert",
- "certificate",
- "ssl",
- "tls"
- ],
- "time": "2018-03-29T19:57:20+00:00"
- },
- {
- "name": "composer/composer",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/composer.git",
- "reference": "837ad7c14e8ce364296e0d0600d04c415b6e359d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/composer/zipball/837ad7c14e8ce364296e0d0600d04c415b6e359d",
- "reference": "837ad7c14e8ce364296e0d0600d04c415b6e359d",
- "shasum": ""
- },
- "require": {
- "composer/ca-bundle": "^1.0",
- "composer/semver": "^1.0",
- "composer/spdx-licenses": "^1.2",
- "composer/xdebug-handler": "^1.1",
- "justinrainbow/json-schema": "^3.0 || ^4.0 || ^5.0",
- "php": "^5.3.2 || ^7.0",
- "psr/log": "^1.0",
- "seld/jsonlint": "^1.4",
- "seld/phar-utils": "^1.0",
- "symfony/console": "^2.7 || ^3.0 || ^4.0",
- "symfony/filesystem": "^2.7 || ^3.0 || ^4.0",
- "symfony/finder": "^2.7 || ^3.0 || ^4.0",
- "symfony/process": "^2.7 || ^3.0 || ^4.0"
- },
- "conflict": {
- "symfony/console": "2.8.38"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7",
- "phpunit/phpunit-mock-objects": "^2.3 || ^3.0"
- },
- "suggest": {
- "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
- "ext-zip": "Enabling the zip extension allows you to unzip archives",
- "ext-zlib": "Allow gzip compression of HTTP requests"
- },
- "bin": [
- "bin/composer"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.7-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\": "src/Composer"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.",
- "homepage": "https://getcomposer.org/",
- "keywords": [
- "autoload",
- "dependency",
- "package"
- ],
- "time": "2018-06-07T09:15:18+00:00"
- },
- {
- "name": "composer/spdx-licenses",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/spdx-licenses.git",
- "reference": "cb17687e9f936acd7e7245ad3890f953770dec1b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/cb17687e9f936acd7e7245ad3890f953770dec1b",
- "reference": "cb17687e9f936acd7e7245ad3890f953770dec1b",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Composer\\Spdx\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "SPDX licenses list and validation library.",
- "keywords": [
- "license",
- "spdx",
- "validator"
- ],
- "time": "2018-04-30T10:33:04+00:00"
- },
- {
- "name": "composer/xdebug-handler",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/composer/xdebug-handler.git",
- "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/c919dc6c62e221fc6406f861ea13433c0aa24f08",
- "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.2 || ^7.0",
- "psr/log": "^1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Composer\\XdebugHandler\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "John Stevenson",
- "email": "john-stevenson@blueyonder.co.uk"
- }
- ],
- "description": "Restarts a process without xdebug.",
- "keywords": [
- "Xdebug",
- "performance"
- ],
- "time": "2018-04-11T15:42:36+00:00"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14T21:17:01+00:00"
- },
- {
- "name": "g1a/composer-test-scenarios",
- "version": "2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/g1a/composer-test-scenarios.git",
- "reference": "4c2b990712dbcb87a0ab618e46f908c731c3a0bb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/g1a/composer-test-scenarios/zipball/4c2b990712dbcb87a0ab618e46f908c731c3a0bb",
- "reference": "4c2b990712dbcb87a0ab618e46f908c731c3a0bb",
- "shasum": ""
- },
- "bin": [
- "scripts/create-scenario",
- "scripts/dependency-licenses",
- "scripts/install-scenario"
- ],
- "type": "library",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Greg Anderson",
- "email": "greg.1.anderson@greenknowe.org"
- }
- ],
- "description": "Useful scripts for testing multiple sets of Composer dependencies.",
- "time": "2018-06-10T21:56:28+00:00"
- },
- {
- "name": "justinrainbow/json-schema",
- "version": "5.2.7",
- "source": {
- "type": "git",
- "url": "https://github.com/justinrainbow/json-schema.git",
- "reference": "8560d4314577199ba51bf2032f02cd1315587c23"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/8560d4314577199ba51bf2032f02cd1315587c23",
- "reference": "8560d4314577199ba51bf2032f02cd1315587c23",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "^2.1",
- "json-schema/json-schema-test-suite": "1.2.0",
- "phpunit/phpunit": "^4.8.35"
- },
- "bin": [
- "bin/validate-json"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "JsonSchema\\": "src/JsonSchema/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bruno Prieto Reis",
- "email": "bruno.p.reis@gmail.com"
- },
- {
- "name": "Justin Rainbow",
- "email": "justin.rainbow@gmail.com"
- },
- {
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
- },
- {
- "name": "Robert Schönthal",
- "email": "seroscho@googlemail.com"
- }
- ],
- "description": "A library to validate a json schema.",
- "homepage": "https://github.com/justinrainbow/json-schema",
- "keywords": [
- "json",
- "schema"
- ],
- "time": "2018-02-14T22:26:30+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "doctrine/collections": "^1.0",
- "doctrine/common": "^2.6",
- "phpunit/phpunit": "^4.1"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "DeepCopy\\": "src/DeepCopy/"
- },
- "files": [
- "src/DeepCopy/deep_copy.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "Create deep copies (clones) of your objects",
- "keywords": [
- "clone",
- "copy",
- "duplicate",
- "object",
- "object graph"
- ],
- "time": "2017-10-19T19:58:43+00:00"
- },
- {
- "name": "phar-io/manifest",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/manifest.git",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-phar": "*",
- "phar-io/version": "^1.0.1",
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2017-03-05T18:14:27+00:00"
- },
- {
- "name": "phar-io/version",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phar-io/version.git",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
- "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Heuer",
- "email": "sebastian@phpeople.de",
- "role": "Developer"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "Developer"
- }
- ],
- "description": "Library for handling version information and constraints",
- "time": "2017-03-05T17:38:23+00:00"
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ],
- "time": "2017-09-11T18:02:19+00:00"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08",
- "reference": "94fd0001232e47129dd3504189fa1c7225010d08",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "doctrine/instantiator": "~1.0.5",
- "mockery/mockery": "^1.0",
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-11-30T07:14:17+00:00"
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "time": "2017-07-14T14:27:02+00:00"
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.7.6",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
- "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.7.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2018-04-18T13:57:24+00:00"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "5.3.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
- "reference": "c89677919c5dd6d3b3852f230a663118762218ac",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0",
- "phpunit/php-file-iterator": "^1.4.2",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^2.0.1",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-xdebug": "^2.5.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2018-04-06T15:36:58+00:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2017-11-27T13:52:08+00:00"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21T13:50:34+00:00"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2017-02-26T11:10:40+00:00"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "2.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "791198a2c6254db10131eecfe8c06670700904db"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
- "reference": "791198a2c6254db10131eecfe8c06670700904db",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2017-11-27T05:48:46+00:00"
- },
- {
- "name": "phpunit/phpunit",
- "version": "6.5.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "4f21a3c6b97c42952fd5c2837bb354ec0199b97b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/4f21a3c6b97c42952fd5c2837bb354ec0199b97b",
- "reference": "4f21a3c6b97c42952fd5c2837bb354ec0199b97b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "^1.6.1",
- "phar-io/manifest": "^1.0.1",
- "phar-io/version": "^1.0",
- "php": "^7.0",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^5.3",
- "phpunit/php-file-iterator": "^1.4.3",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^1.0.9",
- "phpunit/phpunit-mock-objects": "^5.0.5",
- "sebastian/comparator": "^2.1",
- "sebastian/diff": "^2.0",
- "sebastian/environment": "^3.1",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^1.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2",
- "phpunit/dbunit": "<3.0"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
- "suggest": {
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "6.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2018-04-10T11:38:34+00:00"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "5.0.7",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "3eaf040f20154d27d6da59ca2c6e28ac8fd56dce"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/3eaf040f20154d27d6da59ca2c6e28ac8fd56dce",
- "reference": "3eaf040f20154d27d6da59ca2c6e28ac8fd56dce",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.5",
- "php": "^7.0",
- "phpunit/php-text-template": "^1.2.1",
- "sebastian/exporter": "^3.1"
- },
- "conflict": {
- "phpunit/phpunit": "<6.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.5"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2018-05-29T13:50:43+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Looks up which function or method a line of code belongs to",
- "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
- },
- {
- "name": "sebastian/comparator",
- "version": "2.1.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
- "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/diff": "^2.0 || ^3.0",
- "sebastian/exporter": "^3.1"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "https://github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2018-02-01T13:46:46+00:00"
- },
- {
- "name": "sebastian/diff",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2017-08-03T08:09:46+00:00"
- },
- {
- "name": "sebastian/environment",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2017-07-01T08:51:00+00:00"
- },
- {
- "name": "sebastian/exporter",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937",
- "reference": "234199f4528de6d12aaa58b612e98f7d36adb937",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2017-04-03T13:19:02+00:00"
- },
- {
- "name": "sebastian/global-state",
- "version": "2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2017-04-27T15:39:26+00:00"
- },
- {
- "name": "sebastian/object-enumerator",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "shasum": ""
- },
- "require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
- },
- {
- "name": "sebastian/object-reflector",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Allows reflection of object attributes, including inherited and non-public ones",
- "homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "shasum": ""
- },
- "require": {
- "php": "^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
- },
- {
- "name": "sebastian/resource-operations",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides a list of PHP built-in functions that operate on resources",
- "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
- },
- {
- "name": "sebastian/version",
- "version": "2.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
- },
- {
- "name": "seld/jsonlint",
- "version": "1.7.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/jsonlint.git",
- "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/d15f59a67ff805a44c50ea0516d2341740f81a38",
- "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38",
- "shasum": ""
- },
- "require": {
- "php": "^5.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "bin": [
- "bin/jsonlint"
- ],
- "type": "library",
- "autoload": {
- "psr-4": {
- "Seld\\JsonLint\\": "src/Seld/JsonLint/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "JSON Linter",
- "keywords": [
- "json",
- "linter",
- "parser",
- "validator"
- ],
- "time": "2018-01-24T12:46:19+00:00"
- },
- {
- "name": "seld/phar-utils",
- "version": "1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/phar-utils.git",
- "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/7009b5139491975ef6486545a39f3e6dad5ac30a",
- "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Seld\\PharUtils\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be"
- }
- ],
- "description": "PHAR file format utilities, for when PHP phars you up",
- "keywords": [
- "phra"
- ],
- "time": "2015-10-13T18:44:15+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "2.9.1",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62",
- "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "time": "2017-05-22T02:43:20+00:00"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "36f83f642443c46f3cf751d4d2ee5d047d757a27"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/36f83f642443c46f3cf751d4d2ee5d047d757a27",
- "reference": "36f83f642443c46f3cf751d4d2ee5d047d757a27",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "b28fd73fefbac341f673f5efd707d539d6a19f68"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/b28fd73fefbac341f673f5efd707d539d6a19f68",
- "reference": "b28fd73fefbac341f673f5efd707d539d6a19f68",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T14:03:39+00:00"
- },
- {
- "name": "symfony/filesystem",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "8e03ca3fa52a0f56b87506f38cf7bd3f9442b3a0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/8e03ca3fa52a0f56b87506f38cf7bd3f9442b3a0",
- "reference": "8e03ca3fa52a0f56b87506f38cf7bd3f9442b3a0",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/finder",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "472a92f3df8b247b49ae364275fb32943b9656c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/472a92f3df8b247b49ae364275fb32943b9656c6",
- "reference": "472a92f3df8b247b49ae364275fb32943b9656c6",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "7cc359f1b7b80fc25ed7796be7d96adc9b354bae"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7cc359f1b7b80fc25ed7796be7d96adc9b354bae",
- "reference": "7cc359f1b7b80fc25ed7796be7d96adc9b354bae",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "time": "2018-04-30T19:57:29+00:00"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "3296adf6a6454a050679cde90f95350ad604b171"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171",
- "reference": "3296adf6a6454a050679cde90f95350ad604b171",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2018-04-26T10:06:28+00:00"
- },
- {
- "name": "symfony/process",
- "version": "v3.4.11",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "4cbf2db9abcb01486a21b7a059e03a62fae63187"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/4cbf2db9abcb01486a21b7a059e03a62fae63187",
- "reference": "4cbf2db9abcb01486a21b7a059e03a62fae63187",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Process Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-16T08:49:21+00:00"
- },
- {
- "name": "theseer/tokenizer",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/theseer/tokenizer.git",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": "^7.0"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Arne Blankerts",
- "email": "arne@blankerts.de",
- "role": "Developer"
- }
- ],
- "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
- "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "time": "2018-01-29T19:49:41+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": {
- "composer/composer": 20
- },
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.4.5"
- },
- "platform-dev": [],
- "platform-overrides": {
- "php": "7.0.8"
- }
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/phpunit.xml.dist b/vendor/drupal-composer/drupal-scaffold/phpunit.xml.dist
deleted file mode 100644
index ac16a3eaf..000000000
--- a/vendor/drupal-composer/drupal-scaffold/phpunit.xml.dist
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
- ./tests/
-
-
-
diff --git a/vendor/drupal-composer/drupal-scaffold/src/CommandProvider.php b/vendor/drupal-composer/drupal-scaffold/src/CommandProvider.php
deleted file mode 100644
index 327a7f229..000000000
--- a/vendor/drupal-composer/drupal-scaffold/src/CommandProvider.php
+++ /dev/null
@@ -1,21 +0,0 @@
-setName('drupal:scaffold')
- ->setDescription('Update the Drupal scaffold files.');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output) {
- $handler = new Handler($this->getComposer(), $this->getIO());
- $handler->downloadScaffold();
- // Generate the autoload.php file after generating the scaffold files.
- $handler->generateAutoload();
- }
-
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/src/FileFetcher.php b/vendor/drupal-composer/drupal-scaffold/src/FileFetcher.php
deleted file mode 100644
index 653e7f22f..000000000
--- a/vendor/drupal-composer/drupal-scaffold/src/FileFetcher.php
+++ /dev/null
@@ -1,87 +0,0 @@
-remoteFilesystem = $remoteFilesystem;
- $this->io = $io;
- $this->source = $source;
- $this->fs = new Filesystem();
- $this->progress = $progress;
- }
-
- /**
- * Downloads all required files and writes it to the file system.
- */
- public function fetch($version, $destination, $override) {
- foreach ($this->filenames as $sourceFilename => $filename) {
- $target = "$destination/$filename";
- if ($override || !file_exists($target)) {
- $url = $this->getUri($sourceFilename, $version);
- $this->fs->ensureDirectoryExists($destination . '/' . dirname($filename));
- if ($this->progress) {
- $this->io->writeError(" - $filename ($url ): ", FALSE);
- $this->remoteFilesystem->copy($url, $url, $target, $this->progress);
- // Used to put a new line because the remote file system does not put
- // one.
- $this->io->writeError('');
- }
- else {
- $this->remoteFilesystem->copy($url, $url, $target, $this->progress);
- }
- }
- }
- }
-
- /**
- * Set filenames.
- */
- public function setFilenames(array $filenames) {
- $this->filenames = $filenames;
- }
-
- /**
- * Replace filename and version in the source pattern with their values.
- */
- protected function getUri($filename, $version) {
- $map = [
- '{path}' => $filename,
- '{version}' => $version,
- ];
- return str_replace(array_keys($map), array_values($map), $this->source);
- }
-
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/src/Handler.php b/vendor/drupal-composer/drupal-scaffold/src/Handler.php
deleted file mode 100644
index 1bdefe0f6..000000000
--- a/vendor/drupal-composer/drupal-scaffold/src/Handler.php
+++ /dev/null
@@ -1,411 +0,0 @@
-composer = $composer;
- $this->io = $io;
- $this->progress = TRUE;
-
- // Pre-load all of our sources so that we do not run up
- // against problems in `composer update` operations.
- $this->manualLoad();
- }
-
- protected function manualLoad() {
- $src_dir = __DIR__;
-
- $classes = [
- 'CommandProvider',
- 'DrupalScaffoldCommand',
- 'FileFetcher',
- 'PrestissimoFileFetcher',
- ];
-
- foreach ($classes as $src) {
- if (!class_exists('\\DrupalComposer\\DrupalScaffold\\' . $src)) {
- include "{$src_dir}/{$src}.php";
- }
- }
- }
-
- /**
- * @param $operation
- * @return mixed
- */
- protected function getCorePackage($operation) {
- if ($operation instanceof InstallOperation) {
- $package = $operation->getPackage();
- }
- elseif ($operation instanceof UpdateOperation) {
- $package = $operation->getTargetPackage();
- }
- if (isset($package) && $package instanceof PackageInterface && $package->getName() == 'drupal/core') {
- return $package;
- }
- return NULL;
- }
-
- /**
- * Get the command options.
- *
- * @param \Composer\Plugin\CommandEvent $event
- */
- public function onCmdBeginsEvent(CommandEvent $event) {
- if ($event->getInput()->hasOption('no-progress')) {
- $this->progress = !($event->getInput()->getOption('no-progress'));
- }
- else {
- $this->progress = TRUE;
- }
- }
-
- /**
- * Marks scaffolding to be processed after an install or update command.
- *
- * @param \Composer\Installer\PackageEvent $event
- */
- public function onPostPackageEvent(PackageEvent $event) {
- $package = $this->getCorePackage($event->getOperation());
- if ($package) {
- // By explicitly setting the core package, the onPostCmdEvent() will
- // process the scaffolding automatically.
- $this->drupalCorePackage = $package;
- }
- }
-
- /**
- * Post install command event to execute the scaffolding.
- *
- * @param \Composer\Script\Event $event
- */
- public function onPostCmdEvent(Event $event) {
- // Only install the scaffolding if drupal/core was installed,
- // AND there are no scaffolding files present.
- if (isset($this->drupalCorePackage)) {
- $this->downloadScaffold();
- // Generate the autoload.php file after generating the scaffold files.
- $this->generateAutoload();
- }
- }
-
- /**
- * Downloads drupal scaffold files for the current process.
- */
- public function downloadScaffold() {
- $drupalCorePackage = $this->getDrupalCorePackage();
- $webroot = realpath($this->getWebRoot());
-
- // Collect options, excludes and settings files.
- $options = $this->getOptions();
- $files = array_diff($this->getIncludes(), $this->getExcludes());
-
- // Call any pre-scaffold scripts that may be defined.
- $dispatcher = new EventDispatcher($this->composer, $this->io);
- $dispatcher->dispatch(self::PRE_DRUPAL_SCAFFOLD_CMD);
-
- $version = $this->getDrupalCoreVersion($drupalCorePackage);
-
- $remoteFs = new RemoteFilesystem($this->io);
-
- $fetcher = new PrestissimoFileFetcher($remoteFs, $options['source'], $this->io, $this->progress, $this->composer->getConfig());
- $fetcher->setFilenames(array_combine($files, $files));
- $fetcher->fetch($version, $webroot, TRUE);
-
- $fetcher->setFilenames($this->getInitial());
- $fetcher->fetch($version, $webroot, FALSE);
-
- // Call post-scaffold scripts.
- $dispatcher->dispatch(self::POST_DRUPAL_SCAFFOLD_CMD);
- }
-
- /**
- * Generate the autoload file at the project root. Include the
- * autoload file that Composer generated.
- */
- public function generateAutoload() {
- $vendorPath = $this->getVendorPath();
- $webroot = $this->getWebRoot();
-
- // Calculate the relative path from the webroot (location of the
- // project autoload.php) to the vendor directory.
- $fs = new SymfonyFilesystem();
- $relativeVendorPath = $fs->makePathRelative($vendorPath, realpath($webroot));
-
- $fs->dumpFile($webroot . "/autoload.php", $this->autoLoadContents($relativeVendorPath));
- }
-
- /**
- * Build the contents of the autoload file.
- *
- * @return string
- */
- protected function autoLoadContents($relativeVendorPath) {
- $relativeVendorPath = rtrim($relativeVendorPath, '/');
-
- $autoloadContents = <<composer->getConfig();
- $filesystem = new Filesystem();
- $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
- $vendorPath = $filesystem->normalizePath(realpath($config->get('vendor-dir')));
-
- return $vendorPath;
- }
-
- /**
- * Look up the Drupal core package object, or return it from where we cached
- * it in the $drupalCorePackage field.
- *
- * @return \Composer\Package\PackageInterface
- */
- public function getDrupalCorePackage() {
- if (!isset($this->drupalCorePackage)) {
- $this->drupalCorePackage = $this->getPackage('drupal/core');
- }
- return $this->drupalCorePackage;
- }
-
- /**
- * Returns the Drupal core version for the given package.
- *
- * @param \Composer\Package\PackageInterface $drupalCorePackage
- *
- * @return string
- */
- protected function getDrupalCoreVersion(PackageInterface $drupalCorePackage) {
- $version = $drupalCorePackage->getPrettyVersion();
- if ($drupalCorePackage->getStability() == 'dev' && substr($version, -4) == '-dev') {
- $version = substr($version, 0, -4);
- return $version;
- }
- return $version;
- }
-
- /**
- * Retrieve the path to the web root.
- *
- * @return string
- */
- public function getWebRoot() {
- $drupalCorePackage = $this->getDrupalCorePackage();
- $installationManager = $this->composer->getInstallationManager();
- $corePath = $installationManager->getInstallPath($drupalCorePackage);
- // Webroot is the parent path of the drupal core installation path.
- $webroot = dirname($corePath);
-
- return $webroot;
- }
-
- /**
- * Retrieve a package from the current composer process.
- *
- * @param string $name
- * Name of the package to get from the current composer installation.
- *
- * @return \Composer\Package\PackageInterface
- */
- protected function getPackage($name) {
- return $this->composer->getRepositoryManager()->getLocalRepository()->findPackage($name, '*');
- }
-
- /**
- * Retrieve excludes from optional "extra" configuration.
- *
- * @return array
- */
- protected function getExcludes() {
- return $this->getNamedOptionList('excludes', 'getExcludesDefault');
- }
-
- /**
- * Retrieve list of additional settings files from optional "extra" configuration.
- *
- * @return array
- */
- protected function getIncludes() {
- return $this->getNamedOptionList('includes', 'getIncludesDefault');
- }
-
- /**
- * Retrieve list of initial files from optional "extra" configuration.
- *
- * @return array
- */
- protected function getInitial() {
- return $this->getNamedOptionList('initial', 'getInitialDefault');
- }
-
- /**
- * Retrieve a named list of options from optional "extra" configuration.
- * Respects 'omit-defaults', and either includes or does not include the
- * default values, as requested.
- *
- * @return array
- */
- protected function getNamedOptionList($optionName, $defaultFn) {
- $options = $this->getOptions($this->composer);
- $result = array();
- if (empty($options['omit-defaults'])) {
- $result = $this->$defaultFn();
- }
- $result = array_merge($result, (array) $options[$optionName]);
-
- return $result;
- }
-
- /**
- * Retrieve excludes from optional "extra" configuration.
- *
- * @return array
- */
- protected function getOptions() {
- $extra = $this->composer->getPackage()->getExtra() + ['drupal-scaffold' => []];
- $options = $extra['drupal-scaffold'] + [
- 'omit-defaults' => FALSE,
- 'excludes' => [],
- 'includes' => [],
- 'initial' => [],
- 'source' => 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}',
- // Github: https://raw.githubusercontent.com/drupal/drupal/{version}/{path}
- ];
- return $options;
- }
-
- /**
- * Holds default excludes.
- */
- protected function getExcludesDefault() {
- return [];
- }
-
- /**
- * Holds default settings files list.
- */
- protected function getIncludesDefault() {
- $version = $this->getDrupalCoreVersion($this->getDrupalCorePackage());
- list($major, $minor) = explode('.', $version, 3);
- $version = "$major.$minor";
-
- /**
- * Files from 8.3.x
- *
- * @see https://cgit.drupalcode.org/drupal/tree/?h=8.3.x
- */
- $common = [
- '.csslintrc',
- '.editorconfig',
- '.eslintignore',
- '.gitattributes',
- '.htaccess',
- 'index.php',
- 'robots.txt',
- 'sites/default/default.settings.php',
- 'sites/default/default.services.yml',
- 'sites/development.services.yml',
- 'sites/example.settings.local.php',
- 'sites/example.sites.php',
- 'update.php',
- 'web.config',
- ];
-
- // Version specific variations.
- if (Semver::satisfies($version, '<8.3')) {
- $common[] = '.eslintrc';
- }
- if (Semver::satisfies($version, '>=8.3')) {
- $common[] = '.eslintrc.json';
- }
- if (Semver::satisfies($version, '>=8.5')) {
- $common[] = '.ht.router.php';
- }
-
- sort($common);
- return $common;
- }
-
- /**
- * Holds default initial files.
- */
- protected function getInitialDefault() {
- return [];
- }
-
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/src/Plugin.php b/vendor/drupal-composer/drupal-scaffold/src/Plugin.php
deleted file mode 100644
index 7833903f5..000000000
--- a/vendor/drupal-composer/drupal-scaffold/src/Plugin.php
+++ /dev/null
@@ -1,103 +0,0 @@
-handler = new Handler($composer, $io);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCapabilities() {
- return array(
- 'Composer\Plugin\Capability\CommandProvider' => 'DrupalComposer\DrupalScaffold\CommandProvider',
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public static function getSubscribedEvents() {
- return array(
- PackageEvents::POST_PACKAGE_INSTALL => 'postPackage',
- PackageEvents::POST_PACKAGE_UPDATE => 'postPackage',
- ScriptEvents::POST_UPDATE_CMD => 'postCmd',
- PluginEvents::COMMAND => 'cmdBegins',
- );
- }
-
- /**
- * Command begins event callback.
- *
- * @param \Composer\Plugin\CommandEvent $event
- */
- public function cmdBegins(CommandEvent $event) {
- $this->handler->onCmdBeginsEvent($event);
- }
-
- /**
- * Post package event behaviour.
- *
- * @param \Composer\Installer\PackageEvent $event
- */
- public function postPackage(PackageEvent $event) {
- $this->handler->onPostPackageEvent($event);
- }
-
- /**
- * Post command event callback.
- *
- * @param \Composer\Script\Event $event
- */
- public function postCmd(Event $event) {
- $this->handler->onPostCmdEvent($event);
- }
-
- /**
- * Script callback for putting in composer scripts to download the
- * scaffold files.
- *
- * @param \Composer\Script\Event $event
- *
- * @deprecated since version 2.5.0, to be removed in 3.0. Use the command
- * "composer drupal:scaffold" instead.
- */
- public static function scaffold(Event $event) {
- @trigger_error('\DrupalComposer\DrupalScaffold\Plugin::scaffold is deprecated since version 2.5.0 and will be removed in 3.0. Use "composer drupal:scaffold" instead.', E_USER_DEPRECATED);
- $handler = new Handler($event->getComposer(), $event->getIO());
- $handler->downloadScaffold();
- // Generate the autoload.php file after generating the scaffold files.
- $handler->generateAutoload();
- }
-
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/src/PrestissimoFileFetcher.php b/vendor/drupal-composer/drupal-scaffold/src/PrestissimoFileFetcher.php
deleted file mode 100644
index 30b7c233c..000000000
--- a/vendor/drupal-composer/drupal-scaffold/src/PrestissimoFileFetcher.php
+++ /dev/null
@@ -1,87 +0,0 @@
-config = $config;
- }
-
- /**
- * {@inheritdoc}
- */
- public function fetch($version, $destination, $override) {
- if (class_exists(CurlMulti::class)) {
- $this->fetchWithPrestissimo($version, $destination, $override);
- return;
- }
- parent::fetch($version, $destination, $override);
- }
-
- /**
- * Fetch files in parallel.
- */
- protected function fetchWithPrestissimo($version, $destination, $override) {
- $requests = [];
-
- foreach ($this->filenames as $sourceFilename => $filename) {
- $target = "$destination/$filename";
- if ($override || !file_exists($target)) {
- $url = $this->getUri($sourceFilename, $version);
- $this->fs->ensureDirectoryExists($destination . '/' . dirname($filename));
- $requests[] = new CopyRequest($url, $target, FALSE, $this->io, $this->config);
- }
- }
-
- $successCnt = $failureCnt = 0;
- $errors = [];
- $totalCnt = count($requests);
- if ($totalCnt == 0) {
- return;
- }
-
- $multi = new CurlMulti();
- $multi->setRequests($requests);
- do {
- $multi->setupEventLoop();
- $multi->wait();
- $result = $multi->getFinishedResults();
- $successCnt += $result['successCnt'];
- $failureCnt += $result['failureCnt'];
- if (isset($result['errors'])) {
- $errors += $result['errors'];
- }
- if ($this->progress) {
- foreach ($result['urls'] as $url) {
- $this->io->writeError(" - Downloading $successCnt /$totalCnt : $url ", TRUE);
- }
- }
- } while ($multi->remain());
-
- $urls = array_keys($errors);
- if ($urls) {
- throw new \Exception('Failed to download ' . implode(", ", $urls));
- }
- }
-
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/tests/FetcherTest.php b/vendor/drupal-composer/drupal-scaffold/tests/FetcherTest.php
deleted file mode 100644
index ea822f928..000000000
--- a/vendor/drupal-composer/drupal-scaffold/tests/FetcherTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-rootDir = realpath(realpath(__DIR__ . '/..'));
-
- // Prepare temp directory.
- $this->fs = new Filesystem();
- $this->tmpDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'drupal-scaffold';
- $this->ensureDirectoryExistsAndClear($this->tmpDir);
-
- chdir($this->tmpDir);
- }
-
- /**
- * Makes sure the given directory exists and has no content.
- *
- * @param string $directory
- */
- protected function ensureDirectoryExistsAndClear($directory) {
- if (is_dir($directory)) {
- $this->fs->removeDirectory($directory);
- }
- mkdir($directory, 0777, TRUE);
- }
-
- public function testFetch() {
- $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO());
- $fetcher->setFilenames([
- '.htaccess' => '.htaccess',
- 'sites/default/default.settings.php' => 'sites/default/default.settings.php',
- ]);
- $fetcher->fetch('8.1.1', $this->tmpDir, TRUE);
- $this->assertFileExists($this->tmpDir . '/.htaccess');
- $this->assertFileExists($this->tmpDir . '/sites/default/default.settings.php');
- }
-
- public function testInitialFetch() {
- $fetcher = new FileFetcher(new RemoteFilesystem(new NullIO()), 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}', new NullIO());
- $fetcher->setFilenames([
- 'sites/default/default.settings.php' => 'sites/default/settings.php',
- ]);
- $fetcher->fetch('8.1.1', $this->tmpDir, FALSE);
- $this->assertFileExists($this->tmpDir . '/sites/default/settings.php');
- }
-
-}
diff --git a/vendor/drupal-composer/drupal-scaffold/tests/PluginTest.php b/vendor/drupal-composer/drupal-scaffold/tests/PluginTest.php
deleted file mode 100644
index a392e060d..000000000
--- a/vendor/drupal-composer/drupal-scaffold/tests/PluginTest.php
+++ /dev/null
@@ -1,195 +0,0 @@
-rootDir = realpath(realpath(__DIR__ . '/..'));
-
- // Prepare temp directory.
- $this->fs = new Filesystem();
- $this->tmpDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'drupal-scaffold';
- $this->ensureDirectoryExistsAndClear($this->tmpDir);
-
- $this->writeTestReleaseTag();
- $this->writeComposerJSON();
-
- chdir($this->tmpDir);
- }
-
- /**
- * TearDown.
- *
- * @return void
- */
- public function tearDown() {
- $this->fs->removeDirectory($this->tmpDir);
- $this->git(sprintf('tag -d "%s"', $this->tmpReleaseTag));
- }
-
- /**
- * Tests a simple composer install without core, but adding core later.
- */
- public function testComposerInstallAndUpdate() {
- $exampleScaffoldFile = $this->tmpDir . DIRECTORY_SEPARATOR . 'index.php';
- $this->assertFileNotExists($exampleScaffoldFile, 'Scaffold file should not be exist.');
- $this->composer('install --no-dev --prefer-dist');
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . 'core', 'Drupal core is installed.');
- $this->assertFileExists($exampleScaffoldFile, 'Scaffold file should be automatically installed.');
- $this->fs->remove($exampleScaffoldFile);
- $this->assertFileNotExists($exampleScaffoldFile, 'Scaffold file should not be exist.');
- $this->composer('drupal:scaffold');
- $this->assertFileExists($exampleScaffoldFile, 'Scaffold file should be installed by "drupal:scaffold" command.');
-
- foreach (['8.0.1', '8.1.x-dev', '8.3.0', '8.5.x-dev'] as $version) {
- // We touch a scaffold file, so we can check the file was modified after
- // the scaffold update.
- touch($exampleScaffoldFile);
- $mtime_touched = filemtime($exampleScaffoldFile);
- // Requiring a newer version triggers "composer update".
- $this->composer('require --update-with-dependencies --prefer-dist --update-no-dev drupal/core:"' . $version . '"');
- clearstatcache();
- $mtime_after = filemtime($exampleScaffoldFile);
- $this->assertNotEquals($mtime_after, $mtime_touched, 'Scaffold file was modified by composer update. (' . $version . ')');
- switch ($version) {
- case '8.0.1':
- case '8.1.x-dev':
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . '.eslintrc');
- $this->assertFileNotExists($this->tmpDir . DIRECTORY_SEPARATOR . '.eslintrc.json');
- $this->assertFileNotExists($this->tmpDir . DIRECTORY_SEPARATOR . '.ht.router.php');
- break;
-
- case '8.3.0':
- // Note we don't clean up .eslintrc file.
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . '.eslintrc');
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . '.eslintrc.json');
- $this->assertFileNotExists($this->tmpDir . DIRECTORY_SEPARATOR . '.ht.router.php');
- break;
-
- case '8.5.x-dev':
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . '.eslintrc');
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . '.eslintrc.json');
- $this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . '.ht.router.php');
- break;
- }
- }
-
- // We touch a scaffold file, so we can check the file was modified by the
- // custom command.
- file_put_contents($exampleScaffoldFile, 1);
- $this->composer('drupal:scaffold');
- $this->assertNotEquals(file_get_contents($exampleScaffoldFile), 1, 'Scaffold file was modified by custom command.');
- }
-
- /**
- * Writes the default composer json to the temp direcoty.
- */
- protected function writeComposerJSON() {
- $json = json_encode($this->composerJSONDefaults(), JSON_PRETTY_PRINT);
- // Write composer.json.
- file_put_contents($this->tmpDir . '/composer.json', $json);
- }
-
- /**
- * Writes a tag for the current commit, so we can reference it directly in the
- * composer.json.
- */
- protected function writeTestReleaseTag() {
- // Tag the current state.
- $this->tmpReleaseTag = '999.0.' . time();
- $this->git(sprintf('tag -a "%s" -m "%s"', $this->tmpReleaseTag, 'Tag for testing this exact commit'));
- }
-
- /**
- * Provides the default composer.json data.
- *
- * @return array
- */
- protected function composerJSONDefaults() {
- return array(
- 'repositories' => array(
- array(
- 'type' => 'vcs',
- 'url' => $this->rootDir,
- ),
- ),
- 'require' => array(
- 'drupal-composer/drupal-scaffold' => $this->tmpReleaseTag,
- 'composer/installers' => '^1.0.20',
- 'drupal/core' => '8.0.0',
- ),
- 'minimum-stability' => 'dev',
- );
- }
-
- /**
- * Wrapper for the composer command.
- *
- * @param string $command
- * Composer command name, arguments and/or options.
- */
- protected function composer($command) {
- chdir($this->tmpDir);
- passthru(escapeshellcmd($this->rootDir . '/vendor/bin/composer ' . $command), $exit_code);
- if ($exit_code !== 0) {
- throw new \Exception('Composer returned a non-zero exit code');
- }
- }
-
- /**
- * Wrapper for git command in the root directory.
- *
- * @param $command
- * Git command name, arguments and/or options.
- */
- protected function git($command) {
- chdir($this->rootDir);
- passthru(escapeshellcmd('git ' . $command), $exit_code);
- if ($exit_code !== 0) {
- throw new \Exception('Git returned a non-zero exit code');
- }
- }
-
- /**
- * Makes sure the given directory exists and has no content.
- *
- * @param string $directory
- */
- protected function ensureDirectoryExistsAndClear($directory) {
- if (is_dir($directory)) {
- $this->fs->removeDirectory($directory);
- }
- mkdir($directory, 0777, TRUE);
- }
-
-}
diff --git a/vendor/drupal/console-core/.gitignore b/vendor/drupal/console-core/.gitignore
deleted file mode 100644
index 8d6d87dd1..000000000
--- a/vendor/drupal/console-core/.gitignore
+++ /dev/null
@@ -1,26 +0,0 @@
-# deprecation-detector
-/.rules
-
-# Composer
-composer.lock
-/vendor
-/bin/phpunit
-/bin/jsonlint
-/bin/phpcbf
-/bin/phpcs
-/bin/validate-json
-/bin/pdepend
-/bin/php-cs-fixer
-/bin/phpmd
-
-# Binaries
-/box.phar
-/console.phar
-/drupal.phar
-/drupal.phar.version
-
-# Test
-/phpunit.xml
-
-# Drupal
-/core
diff --git a/vendor/drupal/console-core/.php_cs b/vendor/drupal/console-core/.php_cs
deleted file mode 100644
index f396a6704..000000000
--- a/vendor/drupal/console-core/.php_cs
+++ /dev/null
@@ -1,10 +0,0 @@
-setRules(
- [
- '@PSR2' => true,
- 'array_syntax' => ['syntax' => 'short'],
- ]
- )
- ->setUsingCache(false);
diff --git a/vendor/drupal/console-core/README.md b/vendor/drupal/console-core/README.md
deleted file mode 100644
index cf51adf30..000000000
--- a/vendor/drupal/console-core/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Drupal Console Core
-
-Drupal Console Core, this project contains commands and features to be shared across DrupalConsole projects.
diff --git a/vendor/drupal/console-core/composer.json b/vendor/drupal/console-core/composer.json
deleted file mode 100644
index 6007ef485..000000000
--- a/vendor/drupal/console-core/composer.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "name": "drupal/console-core",
- "description": "Drupal Console Core",
- "keywords": ["Drupal", "Console", "Development", "Symfony"],
- "homepage": "http://drupalconsole.com/",
- "type": "library",
- "license": "GPL-2.0-or-later",
- "authors": [
- {
- "name": "David Flores",
- "email": "dmousex@gmail.com",
- "homepage": "http://dmouse.net"
- },
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com",
- "homepage": "http://jmolivas.com"
- },
- {
- "name": "Eduardo Garcia",
- "email": "enzo@enzolutions.com",
- "homepage": "http://enzolutions.com/"
- },
- {
- "name": "Omar Aguirre",
- "email": "omersguchigu@gmail.com"
- },
- {
- "name": "Drupal Console Contributors",
- "homepage": "https://github.com/hechoendrupal/DrupalConsole/graphs/contributors"
- }
- ],
- "support": {
- "issues": "https://github.com/hechoendrupal/DrupalConsole/issues",
- "forum": "https://gitter.im/hechoendrupal/DrupalConsole",
- "docs": "http://docs.drupalconsole.com/"
- },
- "require": {
- "php": "^5.5.9 || ^7.0",
- "dflydev/dot-access-configuration": "^1.0",
- "drupal/console-en": "1.8.0",
- "stecman/symfony-console-completion": "~0.7",
- "symfony/config": "~2.8|~3.0",
- "symfony/console": "~2.8|~3.0",
- "symfony/debug": "~2.8|~3.0",
- "symfony/dependency-injection": "~2.8|~3.0",
- "symfony/event-dispatcher": "~2.8|~3.0",
- "symfony/filesystem": "~2.8|~3.0",
- "symfony/finder": "~2.8|~3.0",
- "symfony/process": "~2.8|~3.0",
- "symfony/translation": "~2.8|~3.0",
- "symfony/yaml": "~2.8|~3.0",
- "twig/twig": "^1.23.1",
- "webflo/drupal-finder": "^1.0",
- "webmozart/path-util": "^2.3"
- },
- "minimum-stability": "dev",
- "prefer-stable": true,
- "autoload": {
- "files": [
- "src/functions.php"
- ],
- "psr-4": {"Drupal\\Console\\Core\\": "src"}
- }
-}
diff --git a/vendor/drupal/console-core/config/aliases.yml b/vendor/drupal/console-core/config/aliases.yml
deleted file mode 100644
index dcf3096c4..000000000
--- a/vendor/drupal/console-core/config/aliases.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-aliases:
- debug:container:
- - cod
- config:edit:
- - cdit
- cron:execute:
- - cre
- database:connect:
- - sqlc
- database:query:
- - sqlq
- debug:database:log:
- - ws
- debug:multisite:
- - msd
- debug:router:
- - rod
- debug:theme:
- - tde
- debug:update:
- - upd
- multisite:new:
- - sn
- router:rebuild:
- - ror
- site:status:
- - st
- user:login:clear:attempts:
- - uslca
- user:login:url:
- - usli
- - uli
- user:password:hash:
- - usph
- user:password:reset:
- - upsr
- views:disable:
- - vdi
- cache:rebuild:
- - cc
- update:execute:
- - updb
- server:
- - rs
diff --git a/vendor/drupal/console-core/config/chain/develop-contribute.yml b/vendor/drupal/console-core/config/chain/develop-contribute.yml
deleted file mode 100644
index ae3070a7a..000000000
--- a/vendor/drupal/console-core/config/chain/develop-contribute.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# How to use
-# develop:contribute --drupal=/path/to/drupal-directory --code=/path/to/code-directory
-command:
- name: develop:contribute
- description: 'Download Drupal + Drupal Console to contribute.'
-vars:
- repository: drupal-composer/drupal-project:8.x-dev
-commands:
- - command: exec
- arguments:
- bin: composer create-project {{repository}} {{drupal}} --prefer-dist --no-progress --no-interaction --no-install
- - command: exec
- arguments:
- bin: composer require drupal/console-develop --dev --working-dir={{drupal}} --no-update
- - command: exec
- arguments:
- bin: composer install --working-dir={{drupal}}
- - command: exec
- arguments:
- bin: drupal site:install standard --root={{drupal}} --db-type="sqlite" --no-interaction
- - command: exec
- arguments:
- bin: drupal develop:create:symlinks --code-directory={{code}} --root={{drupal}}
diff --git a/vendor/drupal/console-core/config/chain/quick-start.yml b/vendor/drupal/console-core/config/chain/quick-start.yml
deleted file mode 100644
index 7c82076a8..000000000
--- a/vendor/drupal/console-core/config/chain/quick-start.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-# How to use
-# quick:start --directory=/path/to/drupal-project/
-# quick:start --directory=/path/to/drupal-project/ --profile=minimal
-# quick:start --repository=weknowinc/drupal-project --directory=/path/to/drupal-project/ --profile=standard
-command:
- name: quick:start
- description: 'Download, install and serve a new Drupal project'
-vars:
- repository:
- - weknowinc/drupal-project
- - drupal-composer/drupal-project:8.x-dev
- - acquia/lightning-project
- - acquia/reservoir-project
- profile: standard
-commands:
- # Create Drupal project using DrupalComposer
- - command: exec
- arguments:
- bin: composer create-project {{repository}} {{directory}} --prefer-dist --no-progress --no-interaction
- # Install Drupal
- - command: exec
- arguments:
- bin: drupal site:install {{profile}} --root={{directory}} --db-type="sqlite" --no-interaction
- # Start PHP built-in server
- - command: exec
- arguments:
- bin: drupal server --root={{directory}}
diff --git a/vendor/drupal/console-core/config/chain/site-new.yml b/vendor/drupal/console-core/config/chain/site-new.yml
deleted file mode 100644
index a0e354259..000000000
--- a/vendor/drupal/console-core/config/chain/site-new.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# How to use
-# site:new --directory=/path/to/drupal-project/
-# site:new --repository=weknowinc/drupal-project --directory=/path/to/drupal-project/
-command:
- name: site:new
- description: 'Download a new Drupal project'
-vars:
- repository:
- - weknowinc/drupal-project
- - drupal-composer/drupal-project:8.x-dev
- - acquia/lightning-project
- - acquia/reservoir-project
- - drupal/drupal
-commands:
- # Create Drupal project using Composer
- - command: exec
- arguments:
- bin: composer create-project {{repository}} {{directory}} --prefer-dist --no-progress --no-interaction
diff --git a/vendor/drupal/console-core/config/config.yml b/vendor/drupal/console-core/config/config.yml
deleted file mode 100644
index 8c56fa1b4..000000000
--- a/vendor/drupal/console-core/config/config.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-application:
- language: 'en'
- autowire:
- commands:
- forced:
- _completion:
- class: '\Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand'
- name:
- elephpant:
- class: '\Drupal\Console\Core\Command\Exclude\ElephpantCommand'
- arguments: ['@app.root', '@console.renderer', '@console.configuration_manager']
- druplicon:
- class: '\Drupal\Console\Core\Command\Exclude\DrupliconCommand'
- arguments: ['@app.root', '@console.renderer', '@console.configuration_manager']
- commands:
- aliases: ~
- defaults: ~
- mappings: ~
- languages:
- en: 'English'
- es: 'Español'
- ca: 'Català'
- fr: 'Français'
- ko: '한국어'
- hi: 'हिन्दी'
- hu: 'Magyar'
- id: 'Bahasa Indonesia'
- ja: '日本語'
- mr: 'मराठी'
- pa: 'ਪੰਜਾਬੀ'
- pt-br: 'Português'
- ro: 'Romanian'
- ru: 'pусский язык'
- tl: 'Tagalog'
- vn: 'Tiếng Việt'
- zh-hans: '简体中文'
- zh-hant: '繁體中文'
diff --git a/vendor/drupal/console-core/config/drush.yml b/vendor/drupal/console-core/config/drush.yml
deleted file mode 100644
index d78ad3cbc..000000000
--- a/vendor/drupal/console-core/config/drush.yml
+++ /dev/null
@@ -1,116 +0,0 @@
-commands:
- config:
- config-delete: 'config:delete'
- config-edit: 'config:edit'
- config-export: 'config:export'
- config-get: 'debug:config CONFIG_NAME'
- config-import: 'config:import'
- config-list: 'debug:config'
- config-pull: ~
- config-set: 'config:override'
- core:
- archive-dump: ~
- archive-restore: ~
- core-cli: 'shell'
- core-config: ~
- core-cron: 'cron:execute'
- core-execute: 'exec'
- core-init: 'init'
- core-quick-drupal: 'quick:start'
- core-requirements: 'site:status'
- core-rsync: ~
- core-status: 'site:status'
- core-topic: ~
- drupal-directory: ~
- entity-updates: 'update:entities'
- help: 'help'
- image-derive: ~
- image-flush: 'image:styles:flush'
- php-eval: ~
- php-script: ~
- queue-list: 'debug:queue'
- queue-run: 'queue:run'
- shell-alias: ~
- site-alias: 'debug:site'
- site-install: 'site:install'
- site-set: ~
- site-ssh: ~
- twig-compile: ~
- updatedb: 'update:execute'
- updatedb-status: 'debug:update'
- version: '--version'
- field:
- field-clone: ~
- field-create: ~
- field-delete: ~
- field-info: 'field:info'
- field-update: ~
- language:
- language-add: 'locale:language:add'
- language-disable: 'locale:language:delete'
- make:
- make: ~
- make-convert: ~
- make-generate: ~
- make-lock: ~
- make-update: ~
- other:
- registry-rebuild: 'cache:rebuild all'
- pm:
- pm-disable: 'module:uninstall, theme:uninstall'
- pm-download: 'module:download, theme:download'
- pm-enable: 'module:install, theme:install'
- pm-info: ~
- pm-list: 'debug:module, debug:theme'
- pm-projectinfo: ~
- pm-refresh: ~
- pm-releasenotes: ~
- pm-releases: ~
- pm-uninstall: 'module:uninstall, theme:uninstall'
- pm-update: 'module:update, theme:update'
- pm-updatecode: ~
- pm-updatestatus: ~
- role:
- role-add-perm: ~
- role-create: ~
- role-delete: ~
- role-list: ~
- role-remove-perm: ~
- runserver:
- runserver: 'server'
- sql:
- sql-cli: 'database:client'
- sql-connect: 'database:connect'
- sql-create: ~
- sql-drop: 'database:drop'
- sql-dump: 'database:dump'
- sql-query: 'database:query'
- sql-sanitize: ~
- sql-sync: ~
- search:
- search-index: ~
- search-reindex: ~
- search-status: ~
- site_audit:
- cache-clear: 'cache:rebuild'
- cache-get: ~
- cache-rebuild: 'cache:rebuild'
- cache-set: ~
- state:
- state-delete: 'state:delete'
- state-get: 'debug:state'
- state-set: 'state:override'
- user:
- user-add-role: 'user:role'
- user-block: ~
- user-cancel: ~
- user-create: 'user:create'
- user-information: ~
- user-login: 'user:login:url'
- user-password: 'user:password:reset'
- user-remove-role: 'user:role'
- user-unblock: ~
- watchdog:
- watchdog-delete: 'database:log:clear'
- watchdog-list: 'database:log:poll'
- watchdog-show: 'debug:database:log'
diff --git a/vendor/drupal/console-core/config/mappings.yml b/vendor/drupal/console-core/config/mappings.yml
deleted file mode 100644
index 11b9fd62b..000000000
--- a/vendor/drupal/console-core/config/mappings.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-mappings:
- breakpoints:debug: debug:breakpoints
- cache:context:debug: debug:cache:context
- chain:debug: debug:chain
- config:debug: debug:config
- config:settings:debug: debug:config:settings
- config:validate:debug: debug:config:validate
- container:debug: debug:container
- cron:debug: debug:cron
- database:log:debug: debug:database:log
- database:table:debug: debug:database:table
- entity:debug: debug:entity
- event:debug: debug:event
- image:styles:debug: debug:image:styles
- libraries:debug: debug:libraries
- module:debug: debug:module
- multisite:debug: debug:multisite
- permission:debug: debug:permission
- plugin:debug: debug:plugin
- queue:debug: debug:queue
- router:debug: debug:router
- settings:debug: debug:settings
- site:debug: debug:site
- state:debug: debug:state
- theme:debug: debug:theme
- update:debug: debug:update
- user:debug: debug:user
- views:debug: debug:views
- views:plugins:debug: debug:views:plugins
diff --git a/vendor/drupal/console-core/config/phpcheck.yml b/vendor/drupal/console-core/config/phpcheck.yml
deleted file mode 100644
index 69cde8042..000000000
--- a/vendor/drupal/console-core/config/phpcheck.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-requirements:
- php:
- required: 5.5.9
- configurations:
- required:
- - date.timezone: 'America/Tijuana'
- - memory_limit: 1024M
- recomended: {}
- extensions:
- required:
- - date
- - dom
- - filter
- - gd
- - hash
- - json
- - pcre
- - pdo
- - session
- - SimpleXML
- - SPL
- - tokenizer
- - xml
- - curl
- recommended: {}
diff --git a/vendor/drupal/console-core/config/router.php b/vendor/drupal/console-core/config/router.php
deleted file mode 100644
index e00397fd3..000000000
--- a/vendor/drupal/console-core/config/router.php
+++ /dev/null
@@ -1,38 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-/*
- * This file implements rewrite rules for PHP built-in web server.
- *
- * See: http://www.php.net/manual/en/features.commandline.webserver.php
- *
- * If you have custom directory layout, then you have to write your own router
- * and pass it as a value to 'router' option of server:run command.
- *
- * @author: Michał Pipa
- * @author: Albert Jessurum
- */
-
-// Workaround https://bugs.php.net/64566
-if (ini_get('auto_prepend_file') && !in_array(realpath(ini_get('auto_prepend_file')), get_included_files(), true)) {
- include ini_get('auto_prepend_file');
-}
-
-if (is_file($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_SERVER['SCRIPT_NAME'])) {
- return false;
-}
-
-$_SERVER = array_merge($_SERVER, $_ENV);
-$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'index.php';
-
-// Since we are rewriting to index.php, adjust SCRIPT_NAME and PHP_SELF accordingly
-$_SERVER['SCRIPT_NAME'] = DIRECTORY_SEPARATOR.'index.php';
-$_SERVER['PHP_SELF'] = DIRECTORY_SEPARATOR.'index.php';
-
-require 'index.php';
diff --git a/vendor/drupal/console-core/config/site.mode.yml b/vendor/drupal/console-core/config/site.mode.yml
deleted file mode 100644
index dceecf436..000000000
--- a/vendor/drupal/console-core/config/site.mode.yml
+++ /dev/null
@@ -1,45 +0,0 @@
-configurations:
- system.performance:
- cache.page.use_internal:
- dev: false
- prod: true
- css.preprocess:
- dev: false
- prod: true
- css.gzip:
- dev: false
- prod: true
- js.preprocess:
- dev: false
- prod: true
- js.gzip:
- dev: false
- prod: true
- response.gzip:
- dev: false
- prod: true
- views.settings:
- ui.show.sql_query.enabled:
- dev: true
- prod: false
- ui.show.performance_statistics:
- dev: true
- prod: false
- system.logging:
- error_level:
- dev: all
- prod: none
-services:
- http.response.debug_cacheability_headers:
- dev: true
- prod: false
- twig.config:
- debug:
- dev: true
- prod: false
- auto_reload:
- dev: true
- prod: false
- cache:
- dev: true
- prod: true
diff --git a/vendor/drupal/console-core/dist/chain/build-install.yml b/vendor/drupal/console-core/dist/chain/build-install.yml
deleted file mode 100644
index 162cee795..000000000
--- a/vendor/drupal/console-core/dist/chain/build-install.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-command:
- name: build:install
- description: 'Build site by installing and importing configuration'
-commands:
- # Install site
- - command: site:install
- options:
- force: true
- no-interaction: true
- arguments:
- profile: standard
- # Import configuration
- - command: build
diff --git a/vendor/drupal/console-core/dist/chain/build.yml b/vendor/drupal/console-core/dist/chain/build.yml
deleted file mode 100644
index 0647d7610..000000000
--- a/vendor/drupal/console-core/dist/chain/build.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-command:
- name: build
- description: 'Build site'
-commands:
- # Import configuration
- - command: config:import
- # Rebuild caches.
- - command: cache:rebuild
- arguments:
- cache: all
diff --git a/vendor/drupal/console-core/dist/chain/create-data.yml b/vendor/drupal/console-core/dist/chain/create-data.yml
deleted file mode 100644
index c2941aca7..000000000
--- a/vendor/drupal/console-core/dist/chain/create-data.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-command:
- name: create:data
- description: 'Create dummy data'
-commands:
- # Create dummy data
- - command: create:users
- options:
- limit: 5
- - command: create:vocabularies
- options:
- limit: 5
- name-words: 5
- learning: true
- - command: create:terms
- - command: create:nodes
- options:
- limit: 50
diff --git a/vendor/drupal/console-core/dist/chain/form-sample.yml b/vendor/drupal/console-core/dist/chain/form-sample.yml
deleted file mode 100644
index b0fb9ec49..000000000
--- a/vendor/drupal/console-core/dist/chain/form-sample.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-command:
- name: generate:example:form
- description: 'Generate form example'
-commands:
- - command: generate:form:config
- options:
- module: example
- class: ConfigForm
- form-id: config_form
- services:
- - state
- inputs:
- - name: email
- type: email
- label: Email
- description: 'Enter a valid email.'
- fieldset: ''
- - name: api_key
- type: textfield
- label: 'API Key'
- description: 'Enter API Key'
- maxlength: '64'
- size: '64'
- - name: number_field
- type: number
- label: 'Number field'
- description: 'Enter a valid number.'
- - name: big_text
- type: textarea
- label: 'Big text'
- description: 'Enter a big text, you can user key'
- path: '/admin/config/form'
- menu_link_gen: true
- menu_link_title: 'Example Config Form'
- menu_parent: system.admin_config_system
- menu_link_desc: 'A Example Config Form.'
- # Rebuild routes
- - command: router:rebuild
diff --git a/vendor/drupal/console-core/dist/chain/sample.yml b/vendor/drupal/console-core/dist/chain/sample.yml
deleted file mode 100644
index d962f524b..000000000
--- a/vendor/drupal/console-core/dist/chain/sample.yml
+++ /dev/null
@@ -1,113 +0,0 @@
-command:
- name: generate:example:module
- description: 'Generate example module'
-commands:
- - command: generate:module
- options:
- module: Example module
- machine-name: example
- module-path: /modules/custom/
- description: My example module
- core: 8.x
- package: Custom
- dependencies:
- - command: generate:controller
- options:
- module: example
- class: HelloWorldController
- routes:
- - title: 'Hello World'
- name: 'example.hello_name'
- method: hello
- path: '/example/hello/{name}'
- services:
- - entity_field.manager
- - theme_handler
- - config.factory
- test: true
- - command: generate:form:config
- options:
- module: example
- class: SettingsForm
- form-id: settings_form
- inputs:
- - name: foo_field
- type: textfield
- label: 'Foo field'
- options: ''
- description: ''
- maxlength: '64'
- size: '64'
- default_value: ''
- weight: '0'
- fieldset: ''
- - name: bar_number
- type: number
- label: 'Bar number'
- options: ''
- description: ''
- maxlength: null
- size: null
- default_value: ''
- weight: '0'
- fieldset: ''
- path: '/admin/setting/form'
- menu_link_gen: true
- menu_link_title: SettingsForm
- menu_parent: system.admin_config_system
- menu_link_desc: 'A description for the menu entry'
- - command: generate:entity:content
- options:
- module: example
- entity-class: Foo
- entity-name: foo
- label: Foo
- - command: generate:entity:config
- options:
- module: example
- entity-class: Bar
- entity-name: bar
- label: Bar
- - command: generate:command
- options:
- module: example
- class: ExampleCommand
- name: example:command
- container-aware: false
- - command: generate:authentication:provider
- options:
- module: example
- class: ExampleAuthenticationProvider
- - command: generate:plugin:block
- options:
- module: example
- class: ExampleBlock
- label: Example plugin block
- plugin-id: example_block
- - command: generate:plugin:imageeffect
- options:
- module: example
- class: ExampleImageEffect
- plugin-id: example_image_effect
- label: Example image effect
- description: Example image effect
- - command: generate:plugin:rest:resource
- options:
- module: example
- class: ExampleRestResource
- plugin-id: example_rest_resource
- plugin-label: Example Rest Resource
- plugin-url: example_rest_resource
- plugin-states:
- - GET
- - PUT
- - POST
- - command: generate:service
- options:
- module: example
- class: ExampleService
- name: example.service
- interface: yes
- - command: module:install
- arguments:
- module: [example]
diff --git a/vendor/drupal/console-core/dist/chain/site-install-placeholers-env.yml b/vendor/drupal/console-core/dist/chain/site-install-placeholers-env.yml
deleted file mode 100644
index 6dccbde68..000000000
--- a/vendor/drupal/console-core/dist/chain/site-install-placeholers-env.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-command:
- name: site:install:env
- description: 'Install site using environment placeholders'
-commands:
- # Install Drupal
- - command: site:install
- options:
- langcode: en
- db-type: '{{ env("DATABASE_TYPE") }}'
- db-host: '{{ env("DATABASE_HOST") }}'
- db-name: '{{ env("DATABASE_NAME") }}'
- db-user: '{{ env("DATABASE_USER") }}'
- db-pass: '{{ env("DATABASE_PASSWORD") }}'
- db-port: '{{ env("DATABASE_PORT") }}'
- site-name: 'Drupal 8 site'
- site-mail: admin@example.org # default email
- account-name: admin # default account
- account-mail: admin@example.org # default email
- account-pass: admin # default pass
- arguments:
- profile: 'standard'
diff --git a/vendor/drupal/console-core/dist/chain/site-install-placeholers.yml b/vendor/drupal/console-core/dist/chain/site-install-placeholers.yml
deleted file mode 100644
index 954205706..000000000
--- a/vendor/drupal/console-core/dist/chain/site-install-placeholers.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-command:
- name: site:install:inline
- description: 'Install site using inline placeholders'
-vars:
- db_type: mysql
- db_host: 127.0.0.1
- db_name: drupal
- db_port: 3306
-commands:
- # Install Drupal
- - command: site:install
- options:
- langcode: 'en'
- db-type: '{{db_type}}'
- db-host: '{{db_host}}'
- db-name: '{{db_name}}'
- db-user: '{{db_user}}'
- db-pass: '{{db_pass}}'
- db-port: '{{db_port}}'
- site-name: 'Drupal 8 site'
- site-mail: 'admin@example.org' # default email
- account-name: 'admin' # default account
- account-mail: 'admin@example.org' # default email
- account-pass: 'admin' # default pass
- arguments:
- profile: 'standard'
diff --git a/vendor/drupal/console-core/dist/chain/site-install.yml b/vendor/drupal/console-core/dist/chain/site-install.yml
deleted file mode 100644
index 818038125..000000000
--- a/vendor/drupal/console-core/dist/chain/site-install.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-command:
- name: site:install:sqlite
- description: 'Install site using sqlite'
-commands:
- # Install Drupal
- - command: site:install
- options:
- langcode: en
- db-type: sqlite
- db-file: sites/default/files/.ht.sqlite
- site-name: 'Drupal 8 Quick Start'
- site-mail: admin@example.com
- account-name: admin
- account-mail: admin@example.com
- account-pass: admin
- arguments:
- profile: standard
diff --git a/vendor/drupal/console-core/dist/chain/site-update.yml b/vendor/drupal/console-core/dist/chain/site-update.yml
deleted file mode 100644
index faff04297..000000000
--- a/vendor/drupal/console-core/dist/chain/site-update.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-command:
- name: site:update
- description: 'Execute update commands'
-commands:
- # Backup current database
- - command: database:dump
- arguments:
- database: 'default'
- # Import configurations
- - command: config:import
- # Run pending update hooks
- - command: update:execute
- arguments:
- module: 'all'
- # Run pending update entities
- - command: update:entities
- # Rebuild caches
- - command: cache:rebuild
- arguments:
- cache: 'all'
diff --git a/vendor/drupal/console-core/dist/chain/update-command-data.yml b/vendor/drupal/console-core/dist/chain/update-command-data.yml
deleted file mode 100644
index c45f68373..000000000
--- a/vendor/drupal/console-core/dist/chain/update-command-data.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-# How to use
-# update:command:data --directory="/path/to/drupal-project/"
-command:
- name: update:command:data
- description: 'Update gitbook'
-commands:
-{% set languages = ['en', 'es', 'hi', 'hu', 'pt_br', 'ro', 'vn', 'zh_hans'] %}
-{% for language in languages %}
- - command: settings:set
- arguments:
- name: language
- value: {{ language }}
- - command: generate:doc:data
- options:
- file: '{{ directory }}/{{ language }}.json'
-{% endfor %}
- - command: settings:set
- arguments:
- name: language
- value: en
diff --git a/vendor/drupal/console-core/dist/chain/update-gitbook.yml b/vendor/drupal/console-core/dist/chain/update-gitbook.yml
deleted file mode 100644
index 9cdd4c240..000000000
--- a/vendor/drupal/console-core/dist/chain/update-gitbook.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-# How to use
-# update:gitbook --directory="/path/to/drupal-project/"
-command:
- name: update:gitbook
- description: 'Update gitbook'
-commands:
- - command: 'module:install'
- arguments:
- module:
- - rest
- - taxonomy
- - locale
- - migrate
- - simpletest
- - breakpoint
- - node
- - views
- - features
-{% set languages = ['en', 'es', 'hi', 'hu', 'pt_br', 'ro', 'vn', 'zh_hans'] %}
-{% for language in languages %}
- - command: settings:set
- arguments:
- name: language
- value: {{ language }}
- - command: develop:doc:gitbook
- options:
- path: '{{ directory }}/{{ language }}'
-{% endfor %}
- - command: settings:set
- arguments:
- name: language
- value: en
diff --git a/vendor/drupal/console-core/dist/defaults.yml b/vendor/drupal/console-core/dist/defaults.yml
deleted file mode 100644
index d669cfe9d..000000000
--- a/vendor/drupal/console-core/dist/defaults.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-#defaults:
-# cache:
-# rebuild:
-# arguments:
-# cache: all
-# config:
-# export:
-# options:
-# remove-uuid: true
-# remove-config-hash: true
-# generate:
-# controller:
-# options:
-# module: example
diff --git a/vendor/drupal/console-core/dist/sites/docker.yml b/vendor/drupal/console-core/dist/sites/docker.yml
deleted file mode 100644
index 9cd63e52c..000000000
--- a/vendor/drupal/console-core/dist/sites/docker.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Drupal4Docker example
-dev:
- root: /var/www/html
- extra-options: docker-compose exec --user=82 php
- type: container
diff --git a/vendor/drupal/console-core/dist/sites/local.yml b/vendor/drupal/console-core/dist/sites/local.yml
deleted file mode 100644
index d5a58ab54..000000000
--- a/vendor/drupal/console-core/dist/sites/local.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-local:
- root: /var/www/drupal8.dev
- type: local
diff --git a/vendor/drupal/console-core/dist/sites/ssh.yml b/vendor/drupal/console-core/dist/sites/ssh.yml
deleted file mode 100644
index bc4f5b0d3..000000000
--- a/vendor/drupal/console-core/dist/sites/ssh.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-dev:
- root: /var/www/html/drupal
- host: drupal.org
- user: drupal
- type: ssh
diff --git a/vendor/drupal/console-core/dist/sites/vagrant.yml b/vendor/drupal/console-core/dist/sites/vagrant.yml
deleted file mode 100644
index 0305c2b81..000000000
--- a/vendor/drupal/console-core/dist/sites/vagrant.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# DrupalVM Example
-dev:
- root: /var/www/drupalvm/drupal
- host: 192.168.88.88
- user: vagrant
- extra-options: '-o PasswordAuthentication=no -i ~/.vagrant.d/insecure_private_key'
- type: ssh
diff --git a/vendor/drupal/console-core/phpqa.yml b/vendor/drupal/console-core/phpqa.yml
deleted file mode 100644
index 5998ec92a..000000000
--- a/vendor/drupal/console-core/phpqa.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-application:
- method:
- git:
- enabled: true
- exception: false
- composer:
- enabled: true
- exception: false
- analyzer:
- parallel-lint:
- enabled: true
- exception: true
- options:
- e: 'php'
- exclude: vendor/
- arguments:
- php-cs-fixer:
- enabled: true
- exception: false
- options:
- level: psr2
- arguments:
- prefixes:
- - fix
- postfixes:
- phpcbf:
- enabled: true
- exception: false
- options:
- standard: PSR2
- severity: 0
- ignore: /vendor
- arguments:
- - '-n'
- phpcs:
- enabled: false
- exception: false
- options:
- standard: PSR2
- severity: 0
- ignore: /vendor
- arguments:
- - '-n'
- phpmd:
- enabled: false
- exception: false
- options:
- arguments:
- prefixes:
- postfixes:
- - 'text'
- - 'cleancode'
- phploc:
- enabled: false
- exception: false
- phpcpd:
- enabled: false
- exception: false
- phpdcd:
- enabled: false
- exception: false
- phpunit:
- enabled: false
- exception: true
- file:
- configuration: phpunit.xml.dist
- single-execution: true
- options:
- arguments:
diff --git a/vendor/drupal/console-core/services.yml b/vendor/drupal/console-core/services.yml
deleted file mode 100644
index 27bc47ff0..000000000
--- a/vendor/drupal/console-core/services.yml
+++ /dev/null
@@ -1,113 +0,0 @@
-services:
- # DrupalConsoleCore Services
- console.translator_manager:
- class: Drupal\Console\Core\Utils\TranslatorManager
- console.configuration_manager:
- class: Drupal\Console\Core\Utils\ConfigurationManager
- console.requirement_checker:
- class: Drupal\Console\Core\Utils\RequirementChecker
- console.chain_queue:
- class: Drupal\Console\Core\Utils\ChainQueue
- console.nested_array:
- class: Drupal\Console\Core\Utils\NestedArray
- console.show_file:
- class: Drupal\Console\Core\Utils\ShowFile
- arguments: ['@app.root', '@console.translator_manager']
- console.renderer:
- class: Drupal\Console\Core\Utils\TwigRenderer
- arguments: ['@console.translator_manager', '@console.string_converter']
- console.file_queue:
- class: Drupal\Console\Core\Utils\FileQueue
- arguments: ['@app.root']
- console.shell_process:
- class: Drupal\Console\Core\Utils\ShellProcess
- arguments: ['@app.root', '@console.translator_manager']
- console.string_converter:
- class: Drupal\Console\Core\Utils\StringConverter
- console.chain_discovery:
- class: Drupal\Console\Core\Utils\ChainDiscovery
- arguments: ['@console.root', '@console.configuration_manager', '@console.message_manager', '@console.translator_manager']
- console.count_code_lines:
- class: Drupal\Console\Core\Utils\CountCodeLines
- console.message_manager:
- class: Drupal\Console\Core\Utils\MessageManager
- console.drupal_finder:
- class: Drupal\Console\Core\Utils\DrupalFinder
- console.key_value_storage:
- class: Drupal\Console\Core\Utils\KeyValueStorage
- # DrupalConsoleCore Commands
- console.about:
- class: Drupal\Console\Core\Command\AboutCommand
- tags:
- - { name: drupal.command }
- console.list:
- class: Drupal\Console\Core\Command\ListCommand
- tags:
- - { name: drupal.command }
- console.help:
- class: Drupal\Console\Core\Command\HelpCommand
- tags:
- - { name: drupal.command }
- console.complete:
- class: Drupal\Console\Core\Command\CompleteCommand
- tags:
- - { name: drupal.command }
- console.check:
- class: Drupal\Console\Core\Command\CheckCommand
- arguments: ['@console.requirement_checker', '@console.chain_queue', '@console.configuration_manager']
- tags:
- - { name: drupal.command }
- console.init:
- class: Drupal\Console\Core\Command\InitCommand
- arguments: ['@console.show_file', '@console.configuration_manager', '@console.init_generator', '@app.root', '@?console.root']
- tags:
- - { name: drupal.command }
- console.settings_debug:
- class: Drupal\Console\Core\Command\Debug\SettingsCommand
- arguments: ['@console.configuration_manager']
- tags:
- - { name: drupal.command }
- console.settings_set:
- class: Drupal\Console\Core\Command\Settings\SetCommand
- arguments: ['@console.configuration_manager', '@console.nested_array']
- tags:
- - { name: drupal.command }
- console.exec:
- class: Drupal\Console\Core\Command\Exec\ExecCommand
- arguments: ['@console.shell_process']
- tags:
- - { name: drupal.command }
- console.chain:
- class: Drupal\Console\Core\Command\Chain\ChainCommand
- arguments: ['@console.chain_queue', '@console.chain_discovery']
- tags:
- - { name: drupal.command }
- console.chain_debug:
- class: Drupal\Console\Core\Command\Debug\ChainCommand
- arguments: ['@console.chain_discovery']
- tags:
- - { name: drupal.command }
- console.site_debug:
- class: Drupal\Console\Core\Command\Debug\SiteCommand
- arguments: ['@console.configuration_manager']
- tags:
- - { name: drupal.command }
- console.drush:
- class: Drupal\Console\Core\Command\DrushCommand
- arguments: ['@console.configuration_manager', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_site_alias:
- class: Drupal\Console\Core\Command\Generate\SiteAliasCommand
- arguments: ['@console.site_alias_generator', '@console.configuration_manager', '@console.drupal_finder']
- tags:
- - { name: drupal.command }
- # DrupalConsoleCore Generators
- console.init_generator:
- class: Drupal\Console\Core\Generator\InitGenerator
- tags:
- - { name: drupal.generator }
- console.site_alias_generator:
- class: Drupal\Console\Core\Generator\SiteAliasGenerator
- tags:
- - { name: drupal.generator }
diff --git a/vendor/drupal/console-core/src/Application.php b/vendor/drupal/console-core/src/Application.php
deleted file mode 100644
index 9ee20032d..000000000
--- a/vendor/drupal/console-core/src/Application.php
+++ /dev/null
@@ -1,911 +0,0 @@
-container = $container;
- $this->eventRegistered = false;
- parent::__construct($name, $version);
- $this->addOptions();
- }
-
- /**
- * @return TranslatorManagerInterface
- */
- public function getTranslator()
- {
- if ($this->container) {
- return $this->container->get('console.translator_manager');
- }
-
- return null;
- }
-
- /**
- * @param $key string
- *
- * @return string
- */
- public function trans($key)
- {
- if ($this->getTranslator()) {
- return $this->getTranslator()->trans($key);
- }
-
- return null;
- }
-
- /**
- * {@inheritdoc}
- */
- public function doRun(InputInterface $input, OutputInterface $output)
- {
- $io = new DrupalStyle($input, $output);
- $messageManager = $this->container->get('console.message_manager');
- $this->commandName = $this->getCommandName($input)?:'list';
-
- $clear = $this->container->get('console.configuration_manager')
- ->getConfiguration()
- ->get('application.clear')?:false;
- if ($clear === true || $clear === 'true') {
- $output->write(sprintf("\033\143"));
- }
-
- $this->loadCommands();
-
- /**
- * @var ConfigurationManager $configurationManager
- */
- $configurationManager = $this->container
- ->get('console.configuration_manager');
-
- if (!$this->has($this->commandName)) {
- $isValidCommand = false;
- $config = $configurationManager->getConfiguration();
- $mappings = $config->get('application.commands.mappings');
-
- if (array_key_exists($this->commandName, $mappings)) {
- $commandNameMap = $mappings[$this->commandName];
- $messageManager->warning(
- sprintf(
- $this->trans('application.errors.renamed-command'),
- $this->commandName,
- $commandNameMap
- )
- );
- $this->add(
- $this->find($commandNameMap)->setAliases([$this->commandName])
- );
- $isValidCommand = true;
- }
-
- $drushCommand = $configurationManager->readDrushEquivalents($this->commandName);
- if ($drushCommand) {
- $this->add(
- $this->find($drushCommand)->setAliases([$this->commandName])
- );
- $isValidCommand = true;
- $messageManager->warning(
- sprintf(
- $this->trans('application.errors.drush-command'),
- $this->commandName,
- $drushCommand
- )
- );
- }
-
- $namespaces = $this->getNamespaces();
- if (in_array($this->commandName, $namespaces)) {
- $input = new ArrayInput(
- [
- 'command' => 'list',
- 'namespace' => $this->commandName
- ]
- );
- $this->commandName = 'list';
- $isValidCommand = true;
- }
-
- if (!$isValidCommand) {
- $io->error(
- sprintf(
- $this->trans('application.errors.invalid-command'),
- $this->commandName
- )
- );
-
- return 1;
- }
- }
-
- $code = parent::doRun(
- $input,
- $output
- );
-
- // Propagate Drupal messages.
- $this->addDrupalMessages($messageManager);
-
- if ($this->showMessages($input)) {
- $messages = $messageManager->getMessages();
-
- foreach ($messages as $message) {
- $showBy = $message['showBy'];
- if ($showBy!=='all' && $showBy!==$this->commandName) {
- continue;
- }
- $type = $message['type'];
- $io->$type($message['message']);
- }
- }
-
-
- return $code;
- }
-
- public function loadCommands()
- {
- $this->registerGenerators();
- $this->registerCommands();
- $this->registerEvents();
- $this->registerExtendCommands();
-
- /**
- * @var ConfigurationManager $configurationManager
- */
- $configurationManager = $this->container
- ->get('console.configuration_manager');
-
- $config = $configurationManager->getConfiguration()
- ->get('application.extras.config')?:'true';
- if ($config === 'true') {
- $this->registerCommandsFromAutoWireConfiguration();
- }
-
- $chains = $configurationManager->getConfiguration()
- ->get('application.extras.chains')?:'true';
- if ($chains === 'true') {
- $this->registerChainCommands();
- }
- }
-
- /**
- * @param InputInterface $input
- *
- * @return bool
- */
- private function showMessages(InputInterface $input)
- {
- $format = $input->hasOption('format')?$input->getOption('format'):'txt';
-
- if ($format !== 'txt') {
- return false;
- }
-
- return true;
- }
-
- /**
- * registerEvents
- */
- private function registerEvents()
- {
- if (!$this->eventRegistered) {
- $dispatcher = new EventDispatcher();
- $dispatcher->addSubscriber(
- new ValidateExecutionListener(
- $this->container->get('console.translator_manager'),
- $this->container->get('console.configuration_manager')
- )
- );
- $dispatcher->addSubscriber(
- new ShowWelcomeMessageListener(
- $this->container->get('console.translator_manager')
- )
- );
- $dispatcher->addSubscriber(
- new DefaultValueEventListener(
- $this->container->get('console.configuration_manager')
- )
- );
- $dispatcher->addSubscriber(
- new ShowTipsListener(
- $this->container->get('console.translator_manager')
- )
- );
- $dispatcher->addSubscriber(
- new CallCommandListener(
- $this->container->get('console.chain_queue')
- )
- );
- $dispatcher->addSubscriber(
- new ShowGeneratedFilesListener(
- $this->container->get('console.file_queue'),
- $this->container->get('console.show_file')
- )
- );
- $dispatcher->addSubscriber(
- new ShowGenerateInlineListener(
- $this->container->get('console.translator_manager')
- )
- );
- $dispatcher->addSubscriber(
- new ShowGenerateChainListener(
- $this->container->get('console.translator_manager')
- )
- );
-
- $dispatcher->addSubscriber(
- new ShowGenerateCountCodeLinesListener(
- $this->container->get('console.translator_manager'),
- $this->container->get('console.count_code_lines')
- )
- );
-
- $dispatcher->addSubscriber(
- new RemoveMessagesListener(
- $this->container->get('console.message_manager')
- )
- );
-
- $this->setDispatcher($dispatcher);
- $this->eventRegistered = true;
- }
- }
-
- /**
- * addOptions
- */
- private function addOptions()
- {
- // Get the configuration from config.yml.
- $env = $this->container
- ->get('console.configuration_manager')
- ->getConfiguration()
- ->get('application.environment');
-
- $this->getDefinition()->addOption(
- new InputOption(
- '--env',
- '-e',
- InputOption::VALUE_OPTIONAL,
- $this->trans('application.options.env'),
- !empty($env) ? $env : 'prod'
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--root',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('application.options.root')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--debug',
- null,
- InputOption::VALUE_NONE,
- $this->trans('application.options.debug')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--learning',
- null,
- InputOption::VALUE_NONE,
- $this->trans('application.options.learning')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--generate-chain',
- '-c',
- InputOption::VALUE_NONE,
- $this->trans('application.options.generate-chain')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--generate-inline',
- '-i',
- InputOption::VALUE_NONE,
- $this->trans('application.options.generate-inline')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--generate-doc',
- '-d',
- InputOption::VALUE_NONE,
- $this->trans('application.options.generate-doc')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--target',
- '-t',
- InputOption::VALUE_OPTIONAL,
- $this->trans('application.options.target')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--uri',
- '-l',
- InputOption::VALUE_REQUIRED,
- $this->trans('application.options.uri')
- )
- );
- $this->getDefinition()->addOption(
- new InputOption(
- '--yes',
- '-y',
- InputOption::VALUE_NONE,
- $this->trans('application.options.yes')
- )
- );
- }
-
- /**
- * registerCommands
- */
- private function registerCommands()
- {
- $consoleCommands = $this->container
- ->findTaggedServiceIds('drupal.command');
-
- $aliases = $this->container->get('console.configuration_manager')
- ->getConfiguration()
- ->get('application.commands.aliases')?:[];
-
- $invalidCommands = [];
- if ($this->container->has('console.key_value_storage')) {
- $invalidCommands = $this->container
- ->get('console.key_value_storage')
- ->get('invalid_commands', []);
- }
-
- foreach ($consoleCommands as $name => $tags) {
- if (in_array($name, $invalidCommands)) {
- continue;
- }
-
- if (!$this->container->has($name)) {
- continue;
- }
-
- try {
- $command = $this->container->get($name);
- } catch (\Exception $e) {
- echo $name . ' - ' . $e->getMessage() . PHP_EOL;
-
- continue;
- }
-
- if (!$command) {
- continue;
- }
-
- if (method_exists($command, 'setTranslator')) {
- $command->setTranslator(
- $this->container->get('console.translator_manager')
- );
- }
-
- if (method_exists($command, 'setContainer')) {
- $command->setContainer(
- $this->container->get('service_container')
- );
- }
-
- if (method_exists($command, 'setDrupalFinder')) {
- $command->setDrupalFinder(
- $this->container->get('console.drupal_finder')
- );
- }
-
- if (array_key_exists($command->getName(), $aliases)) {
- $commandAliases = $aliases[$command->getName()];
- if (!is_array($commandAliases)) {
- $commandAliases = [$commandAliases];
- }
- $commandAliases = array_merge(
- $command->getAliases(),
- $commandAliases
- );
- $command->setAliases($commandAliases);
- }
-
- $this->add($command);
- }
- }
-
- /**
- * registerGenerators
- */
- private function registerGenerators()
- {
- $consoleGenerators = $this->container
- ->findTaggedServiceIds('drupal.generator');
-
- foreach ($consoleGenerators as $name => $tags) {
- if (!$this->container->has($name)) {
- continue;
- }
-
- try {
- $generator = $this->container->get($name);
- } catch (\Exception $e) {
- echo $name . ' - ' . $e->getMessage() . PHP_EOL;
-
- continue;
- }
-
- if (!$generator) {
- continue;
- }
-
- if (method_exists($generator, 'setRenderer')) {
- $generator->setRenderer(
- $this->container->get('console.renderer')
- );
- }
-
- if (method_exists($generator, 'setFileQueue')) {
- $generator->setFileQueue(
- $this->container->get('console.file_queue')
- );
- }
-
- if (method_exists($generator, 'setCountCodeLines')) {
- $generator->setCountCodeLines(
- $this->container->get('console.count_code_lines')
- );
- }
-
- if (method_exists($generator, 'setDrupalFinder')) {
- $generator->setDrupalFinder(
- $this->container->get('console.drupal_finder')
- );
- }
- }
- }
-
- /**
- * registerCommandsFromAutoWireConfiguration
- */
- private function registerCommandsFromAutoWireConfiguration()
- {
- $configuration = $this->container->get('console.configuration_manager')
- ->getConfiguration();
-
- $autoWireForcedCommands = $configuration
- ->get('application.autowire.commands.forced');
-
- if (!is_array($autoWireForcedCommands)) {
- return;
- }
-
- foreach ($autoWireForcedCommands as $autoWireForcedCommand) {
- try {
- if (!$autoWireForcedCommand['class']) {
- continue;
- }
-
- $reflectionClass = new \ReflectionClass(
- $autoWireForcedCommand['class']
- );
-
- $arguments = [];
- if (array_key_exists('arguments', $autoWireForcedCommand)) {
- foreach ($autoWireForcedCommand['arguments'] as $argument) {
- $argument = substr($argument, 1);
- $arguments[] = $this->container->get($argument);
- }
- }
-
- $command = $reflectionClass->newInstanceArgs($arguments);
-
- if (method_exists($command, 'setTranslator')) {
- $command->setTranslator(
- $this->container->get('console.translator_manager')
- );
- }
- if (method_exists($command, 'setContainer')) {
- $command->setContainer(
- $this->container->get('service_container')
- );
- }
-
- $this->add($command);
- } catch (\Exception $e) {
- echo $e->getMessage() . PHP_EOL;
- continue;
- }
- }
-
- $autoWireNameCommand = $configuration->get(
- sprintf(
- 'application.autowire.commands.name.%s',
- $this->commandName
- )
- );
-
- if ($autoWireNameCommand) {
- try {
- $arguments = [];
- if (array_key_exists('arguments', $autoWireNameCommand)) {
- foreach ($autoWireNameCommand['arguments'] as $argument) {
- $argument = substr($argument, 1);
- $arguments[] = $this->container->get($argument);
- }
- }
-
- $reflectionClass = new \ReflectionClass(
- $autoWireNameCommand['class']
- );
- $command = $reflectionClass->newInstanceArgs($arguments);
-
- if (method_exists($command, 'setTranslator')) {
- $command->setTranslator(
- $this->container->get('console.translator_manager')
- );
- }
- if (method_exists($command, 'setContainer')) {
- $command->setContainer(
- $this->container->get('service_container')
- );
- }
-
- $this->add($command);
- } catch (\Exception $e) {
- echo $e->getMessage() . PHP_EOL;
- }
- }
- }
-
- /**
- * registerChainCommands
- */
- public function registerChainCommands()
- {
- /**
- * @var ChainDiscovery $chainDiscovery
- */
- $chainDiscovery = $this->container->get('console.chain_discovery');
- $chainCommands = $chainDiscovery->getChainCommands();
-
- foreach ($chainCommands as $name => $chainCommand) {
- try {
- $file = $chainCommand['file'];
- $description = $chainCommand['description'];
- $command = new ChainCustomCommand(
- $name,
- $description,
- $file,
- $chainDiscovery
- );
- $this->add($command);
- } catch (\Exception $e) {
- echo $e->getMessage() . PHP_EOL;
- }
- }
- }
-
- /**
- * registerExtendCommands
- */
- private function registerExtendCommands()
- {
- $this->container->get('console.configuration_manager')
- ->loadExtendConfiguration();
- }
-
- public function getData()
- {
- $singleCommands = [
- 'about',
- 'chain',
- 'check',
- 'composerize',
- 'exec',
- 'help',
- 'init',
- 'list',
- 'shell',
- 'server'
- ];
-
- $languages = $this->container->get('console.configuration_manager')
- ->getConfiguration()
- ->get('application.languages');
-
- $data = [];
- foreach ($singleCommands as $singleCommand) {
- $data['commands']['misc'][] = $this->commandData($singleCommand);
- }
-
- $namespaces = array_filter(
- $this->getNamespaces(), function ($item) {
- return (strpos($item, ':')<=0);
- }
- );
- sort($namespaces);
- array_unshift($namespaces, 'misc');
-
- foreach ($namespaces as $namespace) {
- $commands = $this->all($namespace);
- usort(
- $commands, function ($cmd1, $cmd2) {
- return strcmp($cmd1->getName(), $cmd2->getName());
- }
- );
-
- foreach ($commands as $command) {
- if (method_exists($command, 'getModule')) {
- if ($command->getModule() == 'Console') {
- $data['commands'][$namespace][] = $this->commandData(
- $command->getName()
- );
- }
- } else {
- $data['commands'][$namespace][] = $this->commandData(
- $command->getName()
- );
- }
- }
- }
-
- $input = $this->getDefinition();
- $options = [];
- foreach ($input->getOptions() as $option) {
- $options[] = [
- 'name' => $option->getName(),
- 'description' => $this->trans('application.options.'.$option->getName())
- ];
- }
- $arguments = [];
- foreach ($input->getArguments() as $argument) {
- $arguments[] = [
- 'name' => $argument->getName(),
- 'description' => $this->trans('application.arguments.'.$argument->getName())
- ];
- }
-
- $data['application'] = [
- 'namespaces' => $namespaces,
- 'options' => $options,
- 'arguments' => $arguments,
- 'languages' => $languages,
- 'messages' => [
- 'title' => $this->trans('application.gitbook.messages.title'),
- 'note' => $this->trans('application.gitbook.messages.note'),
- 'note_description' => $this->trans('application.gitbook.messages.note-description'),
- 'command' => $this->trans('application.gitbook.messages.command'),
- 'options' => $this->trans('application.gitbook.messages.options'),
- 'option' => $this->trans('application.gitbook.messages.option'),
- 'details' => $this->trans('application.gitbook.messages.details'),
- 'arguments' => $this->trans('application.gitbook.messages.arguments'),
- 'argument' => $this->trans('application.gitbook.messages.argument'),
- 'examples' => $this->trans('application.gitbook.messages.examples')
- ],
- 'examples' => []
- ];
-
- return $data;
- }
-
- private function commandData($commandName)
- {
- if (!$this->has($commandName)) {
- return [];
- }
-
- $command = $this->find($commandName);
-
- $input = $command->getDefinition();
- $options = [];
- foreach ($input->getOptions() as $option) {
- $options[$option->getName()] = [
- 'name' => $option->getName(),
- 'description' => $this->trans($option->getDescription()),
- ];
- }
-
- $arguments = [];
- foreach ($input->getArguments() as $argument) {
- $arguments[$argument->getName()] = [
- 'name' => $argument->getName(),
- 'description' => $this->trans($argument->getDescription()),
- ];
- }
-
- $commandKey = str_replace(':', '.', $command->getName());
-
- $examples = [];
- for ($i = 0; $i < 5; $i++) {
- $description = sprintf(
- 'commands.%s.examples.%s.description',
- $commandKey,
- $i
- );
- $execution = sprintf(
- 'commands.%s.examples.%s.execution',
- $commandKey,
- $i
- );
-
- if ($description != $this->trans($description)) {
- $examples[] = [
- 'description' => $this->trans($description),
- 'execution' => $this->trans($execution)
- ];
- } else {
- break;
- }
- }
-
- $data = [
- 'name' => $command->getName(),
- 'description' => $command->getDescription(),
- 'options' => $options,
- 'arguments' => $arguments,
- 'examples' => $examples,
- 'aliases' => $command->getAliases(),
- 'key' => $commandKey,
- 'dashed' => str_replace(':', '-', $command->getName()),
- 'messages' => [
- 'usage' => $this->trans('application.gitbook.messages.usage'),
- 'options' => $this->trans('application.gitbook.messages.options'),
- 'option' => $this->trans('application.gitbook.messages.option'),
- 'details' => $this->trans('application.gitbook.messages.details'),
- 'arguments' => $this->trans('application.gitbook.messages.arguments'),
- 'argument' => $this->trans('application.gitbook.messages.argument'),
- 'examples' => $this->trans('application.gitbook.messages.examples')
- ],
- ];
-
- return $data;
- }
-
- /**
- * @return DrupalInterface
- */
- public function getDrupal()
- {
- return $this->drupal;
- }
-
- /**
- * @param DrupalInterface $drupal
- */
- public function setDrupal($drupal)
- {
- $this->drupal = $drupal;
- }
-
- public function setContainer($container)
- {
- $this->container = $container;
- }
-
- public function getContainer()
- {
- return $this->container;
- }
-
- /**
- * Add Drupal system messages.
- */
- protected function addDrupalMessages($messageManager) {
- if (function_exists('drupal_get_messages')) {
- $drupalMessages = drupal_get_messages();
- foreach ($drupalMessages as $type => $messages) {
- foreach ($messages as $message) {
- $method = $this->getMessageMethod($type);
- $messageManager->{$method}((string)$message);
- }
- }
- }
- }
-
- /**
- * Gets method name for MessageManager.
- *
- * @param string $type
- * Type of the message.
- *
- * @return string
- * Name of the method
- */
- protected function getMessageMethod($type) {
- $methodName = 'info';
- switch ($type) {
- case 'error':
- case 'warning':
- $methodName = $type;
- break;
- }
-
- return $methodName;
- }
-
- /**
- * Finds a command by name or alias.
- *
- * @param string $name A command name or a command alias
- *
- * @return mixed A Command instance
- *
- * Override parent find method to avoid name collisions with automatically
- * generated command abbreviations.
- * Command name validation was previously done at doRun method.
- */
- public function find($name)
- {
- return $this->get($name);
- }
-}
diff --git a/vendor/drupal/console-core/src/Bootstrap/DrupalConsoleCore.php b/vendor/drupal/console-core/src/Bootstrap/DrupalConsoleCore.php
deleted file mode 100644
index 6bd718677..000000000
--- a/vendor/drupal/console-core/src/Bootstrap/DrupalConsoleCore.php
+++ /dev/null
@@ -1,126 +0,0 @@
-root = $root;
- $this->appRoot = $appRoot;
- $this->drupalFinder = $drupalFinder;
- }
-
- /**
- * @return ContainerBuilder
- */
- public function boot()
- {
- $container = new ContainerBuilder();
- $loader = new YamlFileLoader($container, new FileLocator($this->root));
-
- if (substr($this->root, -1) === DIRECTORY_SEPARATOR) {
- $this->root = substr($this->root, 0, -1);
- }
-
- $servicesFiles = [
- $this->root.DRUPAL_CONSOLE_CORE.'services.yml',
- $this->root.'/services.yml',
- $this->root.DRUPAL_CONSOLE.'uninstall.services.yml',
- $this->root.DRUPAL_CONSOLE.'extend.console.uninstall.services.yml'
- ];
-
- foreach ($servicesFiles as $servicesFile) {
- if (file_exists($servicesFile)) {
- $loader->load($servicesFile);
- }
- }
-
- $container->get('console.configuration_manager')
- ->loadConfiguration($this->root)
- ->getConfiguration();
-
- $container->get('console.translator_manager')
- ->loadCoreLanguage('en', $this->root);
-
- $appRoot = $this->appRoot?$this->appRoot:$this->root;
- $container->set(
- 'app.root',
- $appRoot
- );
- $consoleRoot = $appRoot;
- if (stripos($this->root, '/bin/') <= 0) {
- $consoleRoot = $this->root;
- }
- $container->set(
- 'console.root',
- $consoleRoot
- );
-
- $container->set(
- 'console.drupal_finder',
- $this->drupalFinder
- );
-
- $configurationManager = $container->get('console.configuration_manager');
- $directory = $configurationManager->getConsoleDirectory() . 'extend/';
- $autoloadFile = $directory . 'vendor/autoload.php';
- if (is_file($autoloadFile)) {
- include_once $autoloadFile;
- $extendServicesFile = $directory . 'extend.console.uninstall.services.yml';
- if (is_file($extendServicesFile)) {
- $loader->load($extendServicesFile);
- }
- }
-
- $container->get('console.renderer')
- ->setSkeletonDirs(
- [
- $this->root.'/templates/',
- $this->root.DRUPAL_CONSOLE_CORE.'/templates/'
- ]
- );
-
- return $container;
- }
-}
diff --git a/vendor/drupal/console-core/src/Bootstrap/DrupalInterface.php b/vendor/drupal/console-core/src/Bootstrap/DrupalInterface.php
deleted file mode 100644
index c83b2a569..000000000
--- a/vendor/drupal/console-core/src/Bootstrap/DrupalInterface.php
+++ /dev/null
@@ -1,17 +0,0 @@
-setName('about')
- ->setDescription($this->trans('commands.about.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $application = $this->getApplication();
-
- $aboutTitle = sprintf(
- '%s (%s)',
- $application->getName(),
- $application->getVersion()
- );
-
- $this->getIo()->setDecorated(false);
- $this->getIo()->title($aboutTitle);
- $this->getIo()->setDecorated(true);
-
- $commands = [
- 'init' => [
- $this->trans('commands.init.description'),
- 'drupal init'
- ],
- 'quick-start' => [
- $this->trans('commands.common.messages.quick-start'),
- 'drupal quick:start'
- ],
- 'site-new' => [
- $this->trans('commands.site.new.description'),
- 'drupal site:new'
- ],
- 'site-install' => [
- $this->trans('commands.site.install.description'),
- sprintf(
- 'drupal site:install'
- )
- ],
- 'list' => [
- $this->trans('commands.list.description'),
- 'drupal list',
- ]
- ];
-
- foreach ($commands as $command => $commandInfo) {
- $this->getIo()->writeln($commandInfo[0]);
- $this->getIo()->comment(sprintf(' %s', $commandInfo[1]));
- $this->getIo()->newLine();
- }
-
- $this->getIo()->writeln($this->trans('commands.self-update.description'));
- $this->getIo()->comment(' drupal self-update');
- $this->getIo()->newLine();
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Chain/BaseCommand.php b/vendor/drupal/console-core/src/Command/Chain/BaseCommand.php
deleted file mode 100644
index 1c64fda4f..000000000
--- a/vendor/drupal/console-core/src/Command/Chain/BaseCommand.php
+++ /dev/null
@@ -1,121 +0,0 @@
-chainDiscovery = $chainDiscovery;
- parent::__construct();
- $this->ignoreValidationErrors();
- }
-
- protected function initialize(
- InputInterface $input,
- OutputInterface $output
- ) {
- parent::initialize($input, $output);
-
- $options = [];
- foreach ($_SERVER['argv'] as $index => $element) {
- if ($index<2) {
- continue;
- }
-
- if (substr($element, 0, 2) !== "--") {
- continue;
- }
-
- $element = substr($element, 2);
- $exploded = explode("=", $element);
-
- if (!$exploded) {
- $exploded = explode(" ", $element);
- }
-
- if (count($exploded)>1) {
- $options[trim($exploded[0])] = trim($exploded[1]);
- }
- }
-
- $file = $input->getOption('file');
- $file = calculateRealPath($file);
- $content = $this->chainDiscovery->getFileContents($file);
- $variables = $this->chainDiscovery->extractInlinePlaceHolderNames($content);
-
- foreach ($variables as $variable) {
- if (!array_key_exists($variable, $options)) {
- $options[$variable] = null;
- }
- }
-
- foreach ($options as $optionName => $optionValue) {
- if ($input->hasOption($optionName)) {
- continue;
- }
-
- $this->addOption(
- $optionName,
- null,
- InputOption::VALUE_OPTIONAL,
- $optionName,
- $optionValue
- );
- }
- }
-
- protected function getFileOption()
- {
- $input = $this->getIo()->getInput();
- $file = $input->getOption('file');
-
- if (!$file) {
- $files = array_keys($this->chainDiscovery->getFiles());
-
- $file = $this->getIo()->choice(
- $this->trans('commands.chain.questions.chain-file'),
- $files
- );
- }
-
- $file = calculateRealPath($file);
- $input->setOption('file', $file);
-
- return $file;
- }
-
- protected function getOptionsAsArray()
- {
- $input = $this->getIo()->getInput();
- $options = [];
- foreach ($input->getOptions() as $option => $value) {
- $options[$option] = $value;
- }
-
- return $options;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Chain/ChainCommand.php b/vendor/drupal/console-core/src/Command/Chain/ChainCommand.php
deleted file mode 100644
index 6625327c1..000000000
--- a/vendor/drupal/console-core/src/Command/Chain/ChainCommand.php
+++ /dev/null
@@ -1,284 +0,0 @@
-chainQueue = $chainQueue;
-
- parent::__construct($chainDiscovery);
- $this->ignoreValidationErrors();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('chain')
- ->setDescription($this->trans('commands.chain.description'))
- ->addOption(
- 'file',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.chain.options.file')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $file = $this->getFileOption();
-
- $chainContent = $this->chainDiscovery
- ->parseContent(
- $file,
- $this->getOptionsAsArray()
- );
-
- $inlinePlaceHolders = $this->chainDiscovery
- ->extractInlinePlaceHolders($chainContent);
-
- foreach ($inlinePlaceHolders as $inlinePlaceHolder => $inlinePlaceHolderValue) {
- if (is_array($inlinePlaceHolderValue)) {
- $placeHolderValue = $this->getIo()->choice(
- sprintf(
- $this->trans('commands.chain.messages.select-value-for-placeholder'),
- $inlinePlaceHolder
- ),
- $inlinePlaceHolderValue,
- current($inlinePlaceHolderValue)
- );
- } else {
- $placeHolderValue = $this->getIo()->ask(
- sprintf(
- $this->trans(
- 'commands.chain.messages.enter-value-for-placeholder'
- ),
- $inlinePlaceHolder
- ),
- $inlinePlaceHolderValue
- );
- }
-
- if (!$input->hasOption($inlinePlaceHolder)) {
- $this->addOption(
- $inlinePlaceHolder,
- null,
- InputOption::VALUE_OPTIONAL,
- null,
- null
- );
- }
-
- $input->setOption($inlinePlaceHolder, $placeHolderValue);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $interactive = false;
-
- $file = $input->getOption('file');
- if (!$file) {
- $this->getIo()->error($this->trans('commands.chain.messages.missing-file'));
-
- return 1;
- }
-
- $fileSystem = new Filesystem();
- $file = calculateRealPath($file);
-
- if (!$fileSystem->exists($file)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.chain.messages.invalid-file'),
- $file
- )
- );
-
- return 1;
- }
-
- $chainContent = $this->chainDiscovery
- ->parseContent(
- $file,
- $this->getOptionsAsArray()
- );
-
- // Resolve inlinePlaceHolders
- $inlinePlaceHolders = $this->chainDiscovery
- ->extractInlinePlaceHolders($chainContent);
-
- if ($inlinePlaceHolders) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.chain.messages.missing-inline-placeholders'),
- implode(', ', array_keys($inlinePlaceHolders))
- )
- );
-
- $this->getIo()->info(
- $this->trans(
- 'commands.chain.messages.set-inline-placeholders'
- )
- );
-
- foreach ($inlinePlaceHolders as $inlinePlaceHolder => $inlinePlaceHolderValue) {
- $missingInlinePlaceHoldersMessage = sprintf(
- '--%s="%s_VALUE"',
- $inlinePlaceHolder,
- strtoupper($inlinePlaceHolder)
- );
-
- $this->getIo()->block($missingInlinePlaceHoldersMessage);
- }
-
- return 1;
- }
-
- // Resolve environmentPlaceHolders
- $environmentPlaceHolders = $this->chainDiscovery
- ->extractEnvironmentPlaceHolders($chainContent);
- if ($environmentPlaceHolders) {
- $this->getIo()->error(
- sprintf(
- $this->trans(
- 'commands.chain.messages.missing-environment-placeholders'
- ),
- implode(
- ', ',
- array_values($environmentPlaceHolders)
- )
- )
- );
-
- $this->getIo()->info(
- $this->trans(
- 'commands.chain.messages.set-environment-placeholders'
- )
- );
-
- foreach ($environmentPlaceHolders as $envPlaceHolder) {
- $missingEnvironmentPlaceHoldersMessage = sprintf(
- 'export %s=%s_VALUE',
- $envPlaceHolder,
- strtoupper($envPlaceHolder)
- );
-
- $this->getIo()->block($missingEnvironmentPlaceHoldersMessage);
- }
-
- return 1;
- }
-
- $parser = new Parser();
- $chainData = $parser->parse($chainContent);
-
- $commands = [];
- if (array_key_exists('commands', $chainData)) {
- $commands = $chainData['commands'];
- }
-
- $chainInlineOptions = $input->getOptions();
- unset($chainInlineOptions['file']);
-
- foreach ($commands as $command) {
- $moduleInputs = [];
- $arguments = !empty($command['arguments']) ? $command['arguments'] : [];
- $options = !empty($command['options']) ? $command['options'] : [];
-
- foreach ($arguments as $key => $value) {
- $moduleInputs[$key] = is_null($value) ? '' : $value;
- }
-
- foreach ($options as $key => $value) {
- $moduleInputs['--'.$key] = is_null($value) ? '' : $value;
- }
-
- // Get application global options
- foreach ($this->getApplication()->getDefinition()->getOptions() as $option) {
- $optionName = $option->getName();
- if (array_key_exists($optionName, $chainInlineOptions)) {
- $optionValue = $chainInlineOptions[$optionName];
- // Set global option only if is not available in command options
- if (!isset($moduleInputs['--' . $optionName]) && $optionValue) {
- $moduleInputs['--' . $optionName] = $optionValue;
- }
- }
- }
-
- $application = $this->getApplication();
- $callCommand = $application->find($command['command']);
-
- if (!$callCommand) {
- continue;
- }
-
- $this->getIo()->text($command['command']);
- $this->getIo()->newLine();
-
- $input = new ArrayInput($moduleInputs);
- if (!is_null($interactive)) {
- $input->setInteractive($interactive);
- }
-
- $allowFailure = array_key_exists('allow_failure', $command)?$command['allow_failure']:false;
- try {
- $callCommand->run($input, $this->getIo());
- } catch (\Exception $e) {
- if (!$allowFailure) {
- $this->getIo()->error($e->getMessage());
- return 1;
- }
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Chain/ChainCustomCommand.php b/vendor/drupal/console-core/src/Command/Chain/ChainCustomCommand.php
deleted file mode 100644
index 0306ff7a2..000000000
--- a/vendor/drupal/console-core/src/Command/Chain/ChainCustomCommand.php
+++ /dev/null
@@ -1,103 +0,0 @@
-name = $name;
- $this->description = $description;
- $this->file = $file;
-
- parent::__construct($chainDiscovery);
- $this->ignoreValidationErrors();
-
- $this->addOption(
- 'file',
- null,
- InputOption::VALUE_OPTIONAL,
- null,
- $file
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName($this->name)
- ->setDescription($this->description);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $command = $this->getApplication()->find('chain');
-
- $arguments = [
- 'command' => 'chain',
- '--file' => $this->file,
- ];
-
- foreach ($input->getOptions() as $option => $value) {
- if ($value) {
- $arguments['--' . $option] = $value;
- }
- }
-
- $commandInput = new ArrayInput($arguments);
- $commandInput->setInteractive(true);
-
- return $command->run($commandInput, $output);
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/CheckCommand.php b/vendor/drupal/console-core/src/Command/CheckCommand.php
deleted file mode 100644
index 1eb0f90b3..000000000
--- a/vendor/drupal/console-core/src/Command/CheckCommand.php
+++ /dev/null
@@ -1,149 +0,0 @@
-requirementChecker = $requirementChecker;
- $this->chainQueue = $chainQueue;
- $this->configurationManager = $configurationManager;
-
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('check')
- ->setDescription($this->trans('commands.check.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $checks = $this->requirementChecker->getCheckResult();
- if (!$checks) {
- $phpCheckFile = $this->configurationManager
- ->getVendorCoreDirectory() . 'phpcheck.yml';
-
- $checks = $this->requirementChecker->validate($phpCheckFile);
- }
-
- if (!$checks['php']['valid']) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.check.messages.php-invalid'),
- $checks['php']['current'],
- $checks['php']['required']
- )
- );
-
- return 1;
- }
-
- if ($extensions = $checks['extensions']['required']['missing']) {
- foreach ($extensions as $extension) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.check.messages.extension-missing'),
- $extension
- )
- );
- }
- }
-
- if ($extensions = $checks['extensions']['recommended']['missing']) {
- foreach ($extensions as $extension) {
- $this->getIo()->commentBlock(
- sprintf(
- $this->trans(
- 'commands.check.messages.extension-recommended'
- ),
- $extension
- )
- );
- }
- }
-
- if ($configurations = $checks['configurations']['required']['missing']) {
- foreach ($configurations as $configuration) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.check.messages.configuration-missing'),
- $configuration
- )
- );
- }
- }
-
- if ($configurations = $checks['configurations']['required']['overwritten']) {
- foreach ($configurations as $configuration => $overwritten) {
- $this->getIo()->commentBlock(
- sprintf(
- $this->trans(
- 'commands.check.messages.configuration-overwritten'
- ),
- $configuration,
- $overwritten
- )
- );
- }
- }
-
- if ($this->requirementChecker->isValid() && !$this->requirementChecker->isOverwritten()) {
- $this->getIo()->success(
- $this->trans('commands.check.messages.success')
- );
- }
-
- return $this->requirementChecker->isValid();
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Command.php b/vendor/drupal/console-core/src/Command/Command.php
deleted file mode 100644
index 509a68c40..000000000
--- a/vendor/drupal/console-core/src/Command/Command.php
+++ /dev/null
@@ -1,63 +0,0 @@
-io = new DrupalStyle($input, $output);
- }
-
- /**
- * @return \Drupal\Console\Core\Style\DrupalStyle
- */
- public function getIo()
- {
- return $this->io;
- }
-
- public function createException($message) {
- $this->getIo()->error($message);
- exit(1);
- }
-
- /**
- * @param \Drupal\Console\Core\Utils\DrupalFinder $drupalFinder
- */
- public function setDrupalFinder($drupalFinder) {
- $this->drupalFinder = $drupalFinder;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/CompleteCommand.php b/vendor/drupal/console-core/src/Command/CompleteCommand.php
deleted file mode 100644
index 44bf36eef..000000000
--- a/vendor/drupal/console-core/src/Command/CompleteCommand.php
+++ /dev/null
@@ -1,36 +0,0 @@
-setName('complete')
- ->setDescription($this->trans('commands.complete.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $commands = array_keys($this->getApplication()->all());
- asort($commands);
- $output->writeln($commands);
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/ContainerAwareCommand.php b/vendor/drupal/console-core/src/Command/ContainerAwareCommand.php
deleted file mode 100644
index fc51c8d5d..000000000
--- a/vendor/drupal/console-core/src/Command/ContainerAwareCommand.php
+++ /dev/null
@@ -1,20 +0,0 @@
-chainDiscovery = $chainDiscovery;
-
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:chain')
- ->setDescription($this->trans('commands.debug.chain.description'))
- ->setAliases(['dch']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $files = $this->chainDiscovery->getFiles();
- $filesPerDirectory = $this->chainDiscovery->getFilesPerDirectory();
-
- if (!$files || !$filesPerDirectory) {
- $this->getIo()->warning($this->trans('commands.debug.chain.messages.no-files'));
-
- return 0;
- }
-
- foreach ($filesPerDirectory as $directory => $fileNames) {
- $this->getIo()->info(' ' . $this->trans('commands.debug.chain.messages.directory'), false);
- $this->getIo()->comment($directory);
-
- $tableHeader = [
- $this->trans('commands.debug.chain.messages.file'),
- $this->trans('commands.debug.chain.messages.command')
- ];
-
- $tableRows = [];
- foreach ($fileNames as $file) {
- $commandName = '';
- if (array_key_exists('command', $files[$directory.$file])) {
- $commandName = $files[$directory.$file]['command'];
- }
- $tableRows[] = [
- 'file' => $file,
- 'command' => $commandName
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Debug/SettingsCommand.php b/vendor/drupal/console-core/src/Command/Debug/SettingsCommand.php
deleted file mode 100644
index 224bd63f5..000000000
--- a/vendor/drupal/console-core/src/Command/Debug/SettingsCommand.php
+++ /dev/null
@@ -1,68 +0,0 @@
-configurationManager = $configurationManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:settings')
- ->setDescription($this->trans('commands.debug.settings.description'))
- ->setAliases(['dse']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $configuration = $this->configurationManager->getConfiguration();
- $configApplication['application'] = $configuration->getRaw('application');
-
- unset($configApplication['application']['autowire']);
- unset($configApplication['application']['languages']);
-
- $this->getIo()->write(Yaml::dump($configApplication, 6, 2));
- $this->getIo()->newLine();
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Debug/SiteCommand.php b/vendor/drupal/console-core/src/Command/Debug/SiteCommand.php
deleted file mode 100644
index b496b2aa3..000000000
--- a/vendor/drupal/console-core/src/Command/Debug/SiteCommand.php
+++ /dev/null
@@ -1,125 +0,0 @@
-configurationManager = $configurationManager;
- parent::__construct();
- }
-
- /**
- * @{@inheritdoc}
- */
- public function configure()
- {
- $this
- ->setName('debug:site')
- ->setDescription($this->trans('commands.debug.site.description'))
- ->addArgument(
- 'target',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.site.options.target'),
- null
- )
- ->addArgument(
- 'property',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.site.options.property'),
- null
- )
- ->setHelp($this->trans('commands.debug.site.help'))
- ->setAliases(['dsi']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $sites = $this->configurationManager->getSites();
-
- if (!$sites) {
- $this->getIo()->warning($this->trans('commands.debug.site.messages.invalid-sites'));
-
- return 0;
- }
-
- $target = $input->getArgument('target');
- if (!$target) {
- foreach ($sites as $key => $site) {
- $environments = array_keys($site);
- unset($environments[0]);
-
- $environments = array_map(
- function ($element) use ($key) {
- return $key . '.' . $element;
- },
- $environments
- );
-
- $this->getIo()->info($key);
- $this->getIo()->listing($environments);
- }
-
- return 0;
- }
-
- $targetConfig = $this->configurationManager->readTarget($target);
- if (!$targetConfig) {
- $this->getIo()->error($this->trans('commands.debug.site.messages.invalid-site'));
-
- return 1;
- }
-
- // --property argument, allows the user to fetch specific properties of the selected site
- $property = $input->getArgument('property');
- if ($property) {
- $property_keys = explode('.', $property);
-
- $val = $targetConfig;
- foreach ($property_keys as $property_key) {
- $val = &$val[$property_key];
- }
-
- $this->getIo()->writeln($val);
- return 0;
- }
-
- $this->getIo()->info($target);
- $dumper = new Dumper();
- $this->getIo()->writeln($dumper->dump($targetConfig, 4, 2));
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/DrushCommand.php b/vendor/drupal/console-core/src/Command/DrushCommand.php
deleted file mode 100644
index 56e3b503e..000000000
--- a/vendor/drupal/console-core/src/Command/DrushCommand.php
+++ /dev/null
@@ -1,109 +0,0 @@
-configurationManager = $configurationManager;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('drush')
- ->setDescription($this->trans('commands.drush.description'))
- ->addArgument(
- 'command-name',
- InputArgument::OPTIONAL,
- $this->trans('commands.drush.arguments.command-name'),
- null
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $commandName = $input->getArgument('command-name');
-
- $alternative = $this->configurationManager->readDrushEquivalents($commandName);
-
- $this->getIo()->newLine();
- $this->getIo()->info($this->trans('commands.drush.description'));
- $this->getIo()->newLine();
-
- if (!$alternative) {
- $this->getIo()->error($this->trans('commands.drush.messages.not-found'));
-
- return 1;
- }
-
- $tableHeader = ['drush','drupal console'];
- if (is_array($alternative)) {
- $this->getIo()->table(
- $tableHeader,
- $alternative
- );
-
- return 0;
- }
-
- $this->getIo()->table(
- $tableHeader,
- [[$commandName, $alternative]]
- );
-
- if ($this->getApplication()->has($alternative)) {
- $this->chainQueue->addCommand(
- 'help',
- ['command_name' => $alternative]
- );
-
- return 0;
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Exclude/DrupliconCommand.php b/vendor/drupal/console-core/src/Command/Exclude/DrupliconCommand.php
deleted file mode 100644
index aa05fab8d..000000000
--- a/vendor/drupal/console-core/src/Command/Exclude/DrupliconCommand.php
+++ /dev/null
@@ -1,97 +0,0 @@
-appRoot = $appRoot;
- $this->renderer = $renderer;
- $this->configurationManager = $configurationManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('druplicon')
- ->setDescription($this->trans('application.commands.druplicon.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $directory = sprintf(
- '%s/templates/core/druplicon/',
- $this->configurationManager->getVendorCoreRoot()
- );
-
- $finder = new Finder();
- $finder->files()
- ->name('*.twig')
- ->in($directory);
-
- $templates = [];
- foreach ($finder as $template) {
- $templates[] = $template->getRelativePathname();
- }
-
- $druplicon = $this->renderer->render(
- sprintf(
- 'core/druplicon/%s',
- $templates[array_rand($templates)]
- )
- );
-
- $this->getIo()->writeln($druplicon);
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Exclude/ElephpantCommand.php b/vendor/drupal/console-core/src/Command/Exclude/ElephpantCommand.php
deleted file mode 100644
index 127ac36a9..000000000
--- a/vendor/drupal/console-core/src/Command/Exclude/ElephpantCommand.php
+++ /dev/null
@@ -1,99 +0,0 @@
-appRoot = $appRoot;
- $this->renderer = $renderer;
- $this->configurationManager = $configurationManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('elephpant')
- ->setDescription($this->trans('application.commands.elephpant.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $directory = sprintf(
- '%stemplates/core/elephpant/',
- $this->configurationManager->getVendorCoreRoot()
- );
-
- $finder = new Finder();
- $finder->files()
- ->name('*.twig')
- ->in($directory);
-
- $templates = [];
-
- foreach ($finder as $template) {
- $templates[] = $template->getRelativePathname();
- }
-
- $elephpant = $this->renderer->render(
- sprintf(
- 'core/elephpant/%s',
- $templates[array_rand($templates)]
- )
- );
-
- $this->getIo()->writeln($elephpant);
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Exec/ExecCommand.php b/vendor/drupal/console-core/src/Command/Exec/ExecCommand.php
deleted file mode 100644
index 958b4474d..000000000
--- a/vendor/drupal/console-core/src/Command/Exec/ExecCommand.php
+++ /dev/null
@@ -1,115 +0,0 @@
-shellProcess = $shellProcess;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('exec')
- ->setDescription($this->trans('commands.exec.description'))
- ->addArgument(
- 'bin',
- InputArgument::REQUIRED,
- $this->trans('commands.exec.arguments.bin')
- )->addOption(
- 'working-directory',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.exec.options.working-directory')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $bin = $input->getArgument('bin');
- $workingDirectory = $input->getOption('working-directory');
-
- if (!$bin) {
- $this->getIo()->error(
- $this->trans('commands.exec.messages.missing-bin')
- );
-
- return 1;
- }
-
- $name = $bin;
- if ($index = stripos($name, " ")) {
- $name = substr($name, 0, $index);
- }
-
- $finder = new ExecutableFinder();
- if (!$finder->find($name)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.exec.messages.binary-not-found'),
- $name
- )
- );
-
- return 1;
- }
-
- if (!$this->shellProcess->exec($bin, $workingDirectory)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.exec.messages.invalid-bin')
- )
- );
-
- $this->getIo()->writeln($this->shellProcess->getOutput());
-
- return 1;
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.exec.messages.success'),
- $bin
- )
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Generate/SiteAliasCommand.php b/vendor/drupal/console-core/src/Command/Generate/SiteAliasCommand.php
deleted file mode 100644
index 835afe165..000000000
--- a/vendor/drupal/console-core/src/Command/Generate/SiteAliasCommand.php
+++ /dev/null
@@ -1,320 +0,0 @@
- [
- 'none' => '',
- 'vagrant' => '-o PasswordAuthentication=no -i ~/.vagrant.d/insecure_private_key',
- ],
- 'container' => [
- 'none' => '',
- 'drupal4docker' => 'docker-compose exec --user=82 php'
- ]
- ];
-
- public function __construct(
- SiteAliasGenerator $generator,
- ConfigurationManager $configurationManager,
- DrupalFinder $drupalFinder
- ) {
- $this->generator = $generator;
- $this->configurationManager = $configurationManager;
- $this->drupalFinder = $drupalFinder;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:site:alias')
- ->setDescription(
- $this->trans('commands.generate.site.alias.description')
- )
- ->setHelp($this->trans('commands.generate.site.alias.help'))
- ->addOption(
- 'site',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.site.alias.options.site')
- )
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.site.alias.options.name')
- )
- ->addOption(
- 'environment',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.site.alias.options.environment')
- )
- ->addOption(
- 'type',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.site.alias.options.type')
- )
- ->addOption(
- 'composer-root',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.site.alias.options.composer-root')
- )
- ->addOption(
- 'site-uri',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.site.alias.options.site-uri')
- )
- ->addOption(
- 'host',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.site.alias.options.host')
- )
- ->addOption(
- 'user',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.site.alias.options.user')
- )
- ->addOption(
- 'port',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.site.alias.options.port')
- )
- ->addOption(
- 'extra-options',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.site.alias.options.extra-options')
- )
- ->addOption(
- 'directory',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.site.alias.options.directory')
- )
- ->setAliases(['gsa']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(
- InputInterface $input,
- OutputInterface $output
- ) {
- $site = $input->getOption('site');
- $name = $input->getOption('name');
- if (!$name) {
- $sites = $this->configurationManager->getSites();
- if (!empty($sites)) {
- $sites = array_keys($this->configurationManager->getSites());
- $name = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.site.alias.questions.name'),
- $sites,
- current($sites),
- TRUE
- );
-
- if (is_numeric($name)) {
- $name = $sites[$name];
- }
- } else {
- $name = $this->getIo()->ask(
- $this->trans('commands.generate.site.alias.questions.name')
- );
- }
-
- $input->setOption('name', $name);
- }
-
- $environment = $input->getOption('environment');
- if (!$environment) {
- $environment = $this->getIo()->ask(
- $this->trans('commands.generate.site.alias.questions.environment'),
- null
- );
-
- $input->setOption('environment', $environment);
- }
-
- $type = $input->getOption('type');
- if (!$type) {
- $type = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.site.alias.questions.type'),
- $this->types
- );
-
- $input->setOption('type', $type);
- }
-
- $composerRoot = $input->getOption('composer-root');
- if (!$composerRoot) {
- $root = $this->drupalFinder->getComposerRoot();
- if ($type === 'container') {
- $root = '/var/www/html';
- }
- if ($type === 'ssh') {
- $root = '/var/www/'.$name;
- }
- $composerRoot = $this->getIo()->ask(
- $this->trans('commands.generate.site.alias.questions.composer-root'),
- $root
- );
-
- $input->setOption('composer-root', $composerRoot);
- }
-
- $siteUri = $input->getOption('site-uri');
- if (!$siteUri) {
- $uri = explode('.', $environment);
- if (count($uri)>1) {
- $uri = $uri[1];
- } else {
- $uri = 'default';
- }
- $siteUri = $this->getIo()->askEmpty(
- $this->trans('commands.generate.site.alias.questions.site-uri'),
- $uri
- );
-
- $input->setOption('site-uri', $siteUri);
- }
-
- if ($type !== 'local') {
- $extraOptions = $input->getOption('extra-options');
- if (!$extraOptions) {
- $options = array_values($this->extraOptions[$type]);
-
- $extraOptions = $this->getIo()->choiceNoList(
- $this->trans(
- 'commands.generate.site.alias.questions.extra-options'
- ),
- $options,
- current($options)
- );
-
- $input->setOption('extra-options', $extraOptions);
- }
-
- $host = $input->getOption('host');
- if (!$host) {
- $host = $this->getIo()->askEmpty(
- $this->trans('commands.generate.site.alias.questions.host')
- );
-
- $input->setOption('host', $host);
- }
-
- $user = $input->getOption('user');
- if (!$user) {
- $user = $this->getIo()->askEmpty(
- $this->trans('commands.generate.site.alias.questions.user')
- );
-
- $input->setOption('user', $user);
- }
-
- $port = $input->getOption('port');
- if (!$port) {
- $port = $this->getIo()->askEmpty(
- $this->trans('commands.generate.site.alias.questions.port')
- );
-
- $input->setOption('port', $port);
- }
- }
-
- $directory = $input->getOption('directory');
- if ($site && $this->drupalFinder->getComposerRoot()) {
- $directory = $this->drupalFinder->getComposerRoot() . '/console/';
- }
-
- if (!$directory) {
- $directory = $this->getIo()->choice(
- $this->trans('commands.generate.site.alias.questions.directory'),
- $this->configurationManager->getConfigurationDirectories()
- );
-
- $input->setOption('directory', $directory);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(
- InputInterface $input,
- OutputInterface $output
- ) {
- $site = $input->getOption('site');
- $directory = $input->getOption('directory');
- if ($site && $this->drupalFinder->isValidDrupal()) {
- $directory = $this->drupalFinder->getComposerRoot() . '/console/';
- }
- $this->generator->generate(
- [
- 'name' => $input->getOption('name'),
- 'environment' => $input->getOption('environment'),
- 'type' => $input->getOption('type'),
- 'extra_options' => $input->getOption('extra-options'),
- 'root' => $input->getOption('composer-root'),
- 'uri' => $input->getOption('site-uri'),
- 'port' => $input->getOption('port'),
- 'user' => $input->getOption('user'),
- 'host' => $input->getOption('host'),
- 'directory' => $directory
- ]
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/GenerateCommand.php b/vendor/drupal/console-core/src/Command/GenerateCommand.php
deleted file mode 100644
index 846dc56cc..000000000
--- a/vendor/drupal/console-core/src/Command/GenerateCommand.php
+++ /dev/null
@@ -1,84 +0,0 @@
-exists($sourceFile)) {
- return $sourceFile;
- }
-
- $notFound[] = Path::makeRelative(
- $sourceFile,
- $this->drupalFinder->getComposerRoot()
- );
- }
-
- if ($stopOnException) {
- $this->createException(
- 'File(s): ' . implode(', ', $notFound) . ' not found.'
- );
- }
-
- return null;
- }
-
- protected function backUpFile(Filesystem $fs, $fileName)
- {
- $fileNameBackup = $fileName.'.original';
- if ($fs->exists($fileName)) {
- if ($fs->exists($fileNameBackup)) {
- $fs->remove($fileName);
- return;
- }
-
- $fs->rename(
- $fileName,
- $fileNameBackup,
- TRUE
- );
-
- $fileNameBackup = Path::makeRelative(
- $fileNameBackup,
- $this->drupalFinder->getComposerRoot()
- );
-
- $this->getIo()->success(
- 'File ' . $fileNameBackup . ' created.'
- );
-
- }
- }
-
- protected function showFileCreatedMessage($fileName) {
- $fileName = Path::makeRelative(
- $fileName,
- $this->drupalFinder->getComposerRoot()
- );
-
- $this->getIo()->success('File: ' . $fileName . ' created.');
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/HelpCommand.php b/vendor/drupal/console-core/src/Command/HelpCommand.php
deleted file mode 100644
index a79fbd2e8..000000000
--- a/vendor/drupal/console-core/src/Command/HelpCommand.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
- */
-class HelpCommand extends Command
-{
- private $command;
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this->ignoreValidationErrors();
-
- $this
- ->setName('help')
- ->setDefinition($this->createDefinition())
- ->setDescription($this->trans('commands.help.description'))
- ->setHelp($this->trans('commands.help.help'));
- }
-
- /**
- * Sets the command.
- *
- * @param $command
- * The command to set
- */
- public function setCommand($command)
- {
- $this->command = $command;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if (null === $this->command) {
- $this->command = $this->getApplication()->find($input->getArgument('command_name'));
- }
-
- if ($input->getOption('xml')) {
- $this->getIo()->info($this->trans('commands.help.messages.deprecated'), E_USER_DEPRECATED);
- $input->setOption('format', 'xml');
- }
-
- $helper = new DescriptorHelper();
- $helper->describe(
- $this->getIo(),
- $this->command,
- [
- 'format' => $input->getOption('format'),
- 'raw_text' => $input->getOption('raw'),
- 'command_name' => $input->getArgument('command_name'),
- 'translator' => $this->getApplication()->getTranslator()
- ]
- );
-
- $this->command = null;
- $this->getIo()->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- private function createDefinition()
- {
- return new InputDefinition(
- [
- new InputArgument('command_name', InputArgument::OPTIONAL, $this->trans('commands.help.arguments.command-name'), 'help'),
- new InputOption('xml', null, InputOption::VALUE_NONE, $this->trans('commands.help.options.xml')),
- new InputOption('raw', null, InputOption::VALUE_NONE, $this->trans('commands.help.options.raw')),
- new InputOption('format', null, InputOption::VALUE_REQUIRED, $this->trans('commands.help.options.format'), 'txt'),
- ]
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/InitCommand.php b/vendor/drupal/console-core/src/Command/InitCommand.php
deleted file mode 100644
index 9ecc6f916..000000000
--- a/vendor/drupal/console-core/src/Command/InitCommand.php
+++ /dev/null
@@ -1,314 +0,0 @@
- 'en',
- 'temp' => '/tmp',
- 'chain' => false,
- 'sites' => false,
- 'learning' => false,
- 'generate_inline' => false,
- 'generate_chain' => false
- ];
-
- private $directories = [
- 'chain',
- 'sites',
- ];
-
- /**
- * InitCommand constructor.
- *
- * @param ShowFile $showFile
- * @param ConfigurationManager $configurationManager
- * @param InitGenerator $generator
- * @param string $appRoot
- * @param string $consoleRoot
- */
- public function __construct(
- ShowFile $showFile,
- ConfigurationManager $configurationManager,
- InitGenerator $generator,
- $appRoot,
- $consoleRoot = null
- ) {
- $this->showFile = $showFile;
- $this->configurationManager = $configurationManager;
- $this->generator = $generator;
- $this->appRoot = $appRoot;
- $this->consoleRoot = $consoleRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('init')
- ->setDescription($this->trans('commands.init.description'))
- ->addOption(
- 'destination',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.init.options.destination')
- )
- ->addOption(
- 'site',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.init.options.site')
- )
- ->addOption(
- 'override',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.init.options.override')
- )
- ->addOption(
- 'autocomplete',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.init.options.autocomplete')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $destination = $input->getOption('destination');
- $site = $input->getOption('site');
- $autocomplete = $input->getOption('autocomplete');
- $configuration = $this->configurationManager->getConfiguration();
-
- if ($site && $this->appRoot && $this->consoleRoot) {
- $destination = $this->consoleRoot . '/console/';
- }
-
- if (!$destination) {
- if ($this->appRoot && $this->consoleRoot) {
- $destination = $this->getIo()->choice(
- $this->trans('commands.init.questions.destination'),
- $this->configurationManager->getConfigurationDirectories()
- );
- } else {
- $destination = $this->configurationManager
- ->getConsoleDirectory();
- }
-
- $input->setOption('destination', $destination);
- }
-
- $this->configParameters['language'] = $this->getIo()->choiceNoList(
- $this->trans('commands.init.questions.language'),
- array_keys($configuration->get('application.languages'))
- );
-
- $this->configParameters['temp'] = $this->getIo()->ask(
- $this->trans('commands.init.questions.temp'),
- '/tmp'
- );
-
- $this->configParameters['chain'] = $this->getIo()->confirm(
- $this->trans('commands.init.questions.chain'),
- false
- );
-
- $this->configParameters['sites'] = $this->getIo()->confirm(
- $this->trans('commands.init.questions.sites'),
- false
- );
-
- $this->configParameters['learning'] = $this->getIo()->confirm(
- $this->trans('commands.init.questions.learning'),
- false
- );
-
- $this->configParameters['generate_inline'] = $this->getIo()->confirm(
- $this->trans('commands.init.questions.generate-inline'),
- false
- );
-
- $this->configParameters['generate_chain'] = $this->getIo()->confirm(
- $this->trans('commands.init.questions.generate-chain'),
- false
- );
-
- if (!$autocomplete) {
- $autocomplete = $this->getIo()->confirm(
- $this->trans('commands.init.questions.autocomplete'),
- false
- );
- $input->setOption('autocomplete', $autocomplete);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $copiedFiles = [];
- $destination = $input->getOption('destination');
- $site = $input->getOption('site');
- $autocomplete = $input->getOption('autocomplete');
- $override = $input->getOption('override');
-
- if ($site && $this->appRoot && $this->consoleRoot) {
- $destination = $this->consoleRoot . '/console/';
- }
-
- if (!$destination) {
- $destination = $this->configurationManager->getConsoleDirectory();
- }
-
- $finder = new Finder();
- $finder->in(
- sprintf(
- '%sdist/',
- $this->configurationManager->getVendorCoreRoot()
- )
- );
- if (!$this->configParameters['chain']) {
- $finder->exclude('chain');
- }
- if (!$this->configParameters['sites']) {
- $finder->exclude('sites');
- }
- $finder->files();
-
- foreach ($finder as $configFile) {
- $sourceFile = sprintf(
- '%sdist/%s',
- $this->configurationManager->getVendorCoreRoot(),
- $configFile->getRelativePathname()
- );
-
- $destinationFile = sprintf(
- '%s%s',
- $destination,
- $configFile->getRelativePathname()
- );
-
- $fs = new Filesystem();
- foreach ($this->directories as $directory) {
- if (!$fs->exists($destination.$directory)) {
- $fs->mkdir($destination.$directory);
- }
- }
-
- if ($this->copyFile($sourceFile, $destinationFile, $override)) {
- $copiedFiles[] = $destinationFile;
- }
- }
-
- if ($copiedFiles) {
- $this->showFile->copiedFiles($this->getIo(), $copiedFiles, false);
- $this->getIo()->newLine();
- }
-
- $executableName = null;
- if ($autocomplete) {
- $processBuilder = new ProcessBuilder(['bash']);
- $process = $processBuilder->getProcess();
- $process->setCommandLine('echo $_');
- $process->run();
- $fullPathExecutable = explode('/', $process->getOutput());
- $executableName = trim(end($fullPathExecutable));
- $process->stop();
- }
-
- $this->generator->generate([
- 'user_home' => $this->configurationManager->getConsoleDirectory(),
- 'executable_name' => $executableName,
- 'override' => $override,
- 'destination' => $destination,
- 'config_parameters' => $this->configParameters,
- ]);
-
- $this->getIo()->writeln($this->trans('application.messages.autocomplete'));
-
- return 0;
- }
-
- /**
- * @param string $source
- * @param string $destination
- * @param string $override
- * @return bool
- */
- private function copyFile($source, $destination, $override)
- {
- if (file_exists($destination)) {
- if ($override) {
- copy(
- $destination,
- $destination . '.old'
- );
- } else {
- return false;
- }
- }
-
- $filePath = dirname($destination);
- if (!is_dir($filePath)) {
- mkdir($filePath, 0777, true);
- }
-
- return copy(
- $source,
- $destination
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/ListCommand.php b/vendor/drupal/console-core/src/Command/ListCommand.php
deleted file mode 100644
index 1b3e39e1a..000000000
--- a/vendor/drupal/console-core/src/Command/ListCommand.php
+++ /dev/null
@@ -1,85 +0,0 @@
-setName('list')
- ->setDefinition($this->createDefinition())
- ->setDescription($this->trans('commands.list.description'))
- ->setHelp($this->trans('commands.list.help'));
- }
-
- /**
- * {@inheritdoc}
- */
- public function getNativeDefinition()
- {
- return $this->createDefinition();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if ($input->getOption('xml')) {
- $this->getIo()->info(
- 'The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead',
- E_USER_DEPRECATED
- );
- $input->setOption('format', 'xml');
- }
- $commandName = $input->getFirstArgument()?$input->getFirstArgument():'help';
- $helper = new DescriptorHelper();
- $helper->describe(
- $this->getIo(),
- $this->getApplication(),
- [
- 'format' => $input->getOption('format'),
- 'raw_text' => $input->getOption('raw'),
- 'namespace' => $input->getArgument('namespace'),
- 'translator' => $this->getApplication()->getTranslator(),
- 'command' => $this->getApplication()->find($commandName)
- ]
- );
-
- $this->getIo()->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- private function createDefinition()
- {
- return new InputDefinition(
- [
- new InputArgument('namespace', InputArgument::OPTIONAL, $this->trans('commands.list.arguments.namespace')),
- new InputOption('xml', null, InputOption::VALUE_NONE, $this->trans('commands.list.options.xml')),
- new InputOption('raw', null, InputOption::VALUE_NONE, $this->trans('commands.list.options.raw')),
- new InputOption('format', null, InputOption::VALUE_REQUIRED, $this->trans('commands.list.options.format'), 'txt'),
- ]
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Settings/SetCommand.php b/vendor/drupal/console-core/src/Command/Settings/SetCommand.php
deleted file mode 100644
index ce10b7986..000000000
--- a/vendor/drupal/console-core/src/Command/Settings/SetCommand.php
+++ /dev/null
@@ -1,176 +0,0 @@
-configurationManager = $configurationManager;
- $this->nestedArray = $nestedArray;
-
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('settings:set')
- ->addArgument(
- 'name',
- InputArgument::REQUIRED,
- $this->trans('commands.settings.set.arguments.name'),
- null
- )
- ->addArgument(
- 'value',
- InputArgument::REQUIRED,
- $this->trans('commands.settings.set.arguments.value'),
- null
- )
- ->setDescription($this->trans('commands.settings.set.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $parser = new Parser();
- $dumper = new Dumper();
-
- $settingName = $input->getArgument('name');
- $settingValue = $input->getArgument('value');
-
- $userConfigFile = sprintf(
- '%s/.console/config.yml',
- $this->configurationManager->getHomeDirectory()
- );
-
- if (!file_exists($userConfigFile)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.settings.set.messages.missing-file'),
- $userConfigFile
- )
- );
- return 1;
- }
-
- try {
- $userConfigFileParsed = $parser->parse(
- file_get_contents($userConfigFile)
- );
- } catch (\Exception $e) {
- $this->getIo()->error(
- $this->trans(
- 'commands.settings.set.messages.error-parsing'
- ) . ': ' . $e->getMessage()
- );
- return 1;
- }
-
- $parents = array_merge(['application'], explode(".", $settingName));
-
- $this->nestedArray->setValue(
- $userConfigFileParsed,
- $parents,
- $settingValue,
- true
- );
-
- try {
- $userConfigFileDump = $dumper->dump($userConfigFileParsed, 10);
- } catch (\Exception $e) {
- $this->getIo()->error(
- [
- $this->trans('commands.settings.set.messages.error-generating'),
- $e->getMessage()
- ]
- );
-
- return 1;
- }
-
- if ($settingName == 'language') {
- $this->getApplication()
- ->getTranslator()
- ->changeCoreLanguage($settingValue);
-
- $translatorLanguage = $this->getApplication()->getTranslator()->getLanguage();
- if ($translatorLanguage != $settingValue) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.settings.set.messages.missing-language'),
- $settingValue
- )
- );
-
- return 1;
- }
- }
-
- try {
- file_put_contents($userConfigFile, $userConfigFileDump);
- } catch (\Exception $e) {
- $this->getIo()->error(
- [
- $this->trans('commands.settings.set.messages.error-writing'),
- $e->getMessage()
- ]
- );
-
- return 1;
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.settings.set.messages.success'),
- $settingName,
- $settingValue
- )
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Shared/CommandTrait.php b/vendor/drupal/console-core/src/Command/Shared/CommandTrait.php
deleted file mode 100644
index b09beca5a..000000000
--- a/vendor/drupal/console-core/src/Command/Shared/CommandTrait.php
+++ /dev/null
@@ -1,79 +0,0 @@
-translator = $translator;
- }
-
- /**
- * @param $key string
- *
- * @return string
- */
- public function trans($key)
- {
- if (!$this->translator) {
- return $key;
- }
-
- return $this->translator->trans($key);
- }
-
- /**
- * @inheritdoc
- */
- public function getDescription()
- {
- $description = sprintf(
- 'commands.%s.description',
- str_replace(':', '.', $this->getName())
- );
-
- if (parent::getDescription()==$description) {
- return $this->trans($description);
- }
-
- return parent::getDescription();
- }
-
- /**
- * @inheritdoc
- */
- public function getHelp()
- {
- $help = sprintf(
- 'commands.%s.help',
- str_replace(':', '.', $this->getName())
- );
-
- if (parent::getHelp()==$help) {
- return $this->trans($help);
- }
-
- return parent::getHelp();
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Shared/ContainerAwareCommandTrait.php b/vendor/drupal/console-core/src/Command/Shared/ContainerAwareCommandTrait.php
deleted file mode 100644
index 321e1ea3b..000000000
--- a/vendor/drupal/console-core/src/Command/Shared/ContainerAwareCommandTrait.php
+++ /dev/null
@@ -1,58 +0,0 @@
-container = $container;
- }
-
- /**
- * @param $key
- * @return null|object
- */
- public function has($key)
- {
- if (!$key) {
- return null;
- }
-
- return $this->container->has($key);
- }
-
- /**
- * @param $key
- * @return null|object
- */
- public function get($key)
- {
- if (!$key) {
- return null;
- }
-
- if ($this->has($key)) {
- return $this->container->get($key);
- }
-
- return null;
- }
-}
diff --git a/vendor/drupal/console-core/src/Command/Shared/InputTrait.php b/vendor/drupal/console-core/src/Command/Shared/InputTrait.php
deleted file mode 100644
index 81773dbf7..000000000
--- a/vendor/drupal/console-core/src/Command/Shared/InputTrait.php
+++ /dev/null
@@ -1,56 +0,0 @@
- $value) {
- if (!is_array($value)) {
- try {
- $inputAsArray[] = json_decode('[{'.$value.'}]', true)[0];
- } catch (\Exception $e) {
- continue;
- }
- }
- }
-
- return $inputAsArray?$inputAsArray:$inputValue;
- }
-
- /**
- * @return array
- */
- private function placeHolderInlineValueAsArray($inputValue)
- {
- $inputArrayValue = [];
- foreach ($inputValue as $key => $value) {
- if (!is_array($value)) {
- $separatorIndex = strpos($value, ':');
- if (!$separatorIndex) {
- continue;
- }
- $inputKeyItem = substr($value, 0, $separatorIndex);
- $inputValueItem = substr($value, $separatorIndex+1);
- $inputArrayValue[$inputKeyItem] = $inputValueItem;
- }
- }
-
- return $inputArrayValue?$inputArrayValue:$inputValue;
- }
-}
diff --git a/vendor/drupal/console-core/src/Descriptor/TextDescriptor.php b/vendor/drupal/console-core/src/Descriptor/TextDescriptor.php
deleted file mode 100644
index 54f980820..000000000
--- a/vendor/drupal/console-core/src/Descriptor/TextDescriptor.php
+++ /dev/null
@@ -1,378 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-namespace Drupal\Console\Core\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Descriptor\Descriptor;
-use Symfony\Component\Console\Descriptor\ApplicationDescription;
-
-/**
- * Text descriptor.
- *
- * @author Jean-François Simon
- *
- * @internal
- */
-class TextDescriptor extends Descriptor
-{
- /**
- * {@inheritdoc}
- */
- protected function describeInputArgument(InputArgument $argument, array $options = [])
- {
- if (null !== $argument->getDefault() && (!is_array($argument->getDefault()) || count($argument->getDefault()))) {
- $default = sprintf(' [default: %s] ', $this->formatDefaultValue($argument->getDefault()));
- } else {
- $default = '';
- }
- $totalWidth = isset($options['total_width']) ? $options['total_width'] : strlen($argument->getName());
- $spacingWidth = $totalWidth - strlen($argument->getName()) + 2;
- $this->writeText(
- sprintf(
- ' %s %s%s%s',
- $argument->getName(),
- str_repeat(' ', $spacingWidth),
- // + 17 = 2 spaces + + + 2 spaces
- preg_replace(
- '/\s*\R\s*/',
- PHP_EOL.str_repeat(' ', $totalWidth + 17),
- $options['translator']->trans($argument->getDescription())
- ),
- $default
- ), $options
- );
- }
- /**
- * {@inheritdoc}
- */
- protected function describeInputOption(InputOption $option, array $options = [])
- {
- if ($option->acceptValue() && null !== $option->getDefault() && (!is_array($option->getDefault()) || count($option->getDefault()))) {
- $default = sprintf(' [default: %s] ', $this->formatDefaultValue($option->getDefault()));
- } else {
- $default = '';
- }
- $value = '';
- if ($option->acceptValue()) {
- $value = '='.strtoupper($option->getName());
- if ($option->isValueOptional()) {
- $value = '['.$value.']';
- }
- }
- $totalWidth = isset($options['total_width']) ? $options['total_width'] : $this->calculateTotalWidthForOptions([$option]);
- $synopsis = sprintf(
- '%s%s',
- $option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : ' ',
- sprintf('--%s%s', $option->getName(), $value)
- );
- $spacingWidth = $totalWidth - strlen($synopsis) + 2;
- $this->writeText(
- sprintf(
- ' %s %s%s%s%s',
- $synopsis,
- str_repeat(' ', $spacingWidth),
- // + 17 = 2 spaces + + + 2 spaces
- preg_replace(
- '/\s*\R\s*/',
- "\n".str_repeat(' ', $totalWidth + 17),
- $options['translator']->trans($option->getDescription())
- ),
- $default,
- $option->isArray() ? ' (multiple values allowed) ' : ''
- ), $options
- );
- }
- /**
- * {@inheritdoc}
- */
- protected function describeInputDefinition(InputDefinition $definition, array $options = [])
- {
- $command_name = null;
- if (array_key_exists('command', $options)) {
- $command_name = $options['command']->getName();
- }
-
- $totalWidth = $this->calculateTotalWidthForOptions($definition->getOptions());
- foreach ($definition->getArguments() as $argument) {
- $totalWidth = max($totalWidth, strlen($argument->getName()));
- }
-
- if ($definition->getArguments()) {
- $this->writeText($options['translator']->trans('commands.list.messages.arguments'), $options);
- $this->writeText("\n");
- foreach ($definition->getArguments() as $argument) {
- $this->describeInputArgument($argument, array_merge($options, ['total_width' => $totalWidth]));
- $this->writeText("\n");
- }
- }
- if ($definition->getArguments() && $definition->getOptions()) {
- $this->writeText("\n");
- }
- if ($definition->getOptions()) {
- $laterOptions = [];
- $this->writeText($options['translator']->trans('commands.list.messages.options'), $options);
-
- $exitOptionName = 'help';
- if ($command_name === $exitOptionName) {
- $exitOptionName = '';
- }
-
- foreach ($definition->getOptions() as $option) {
- if ($option->getName() === $exitOptionName) {
- break;
- }
-
- if (strlen($option->getShortcut()) > 1) {
- $laterOptions[] = $option;
- continue;
- }
- $this->writeText("\n");
- $this->describeInputOption($option, array_merge($options, ['total_width' => $totalWidth]));
- }
- foreach ($laterOptions as $option) {
- $this->writeText("\n");
- $this->describeInputOption($option, array_merge($options, ['total_width' => $totalWidth]));
- }
- }
- }
- /**
- * {@inheritdoc}
- */
- protected function describeCommand(Command $command, array $options = [])
- {
- $namespace = substr(
- $command->getName(),
- 0,
- (strpos($command->getName(), ':')?:0)
- );
- $commandData = $command->getApplication()->getData();
- $examples = [];
- if (array_key_exists($namespace, $commandData['commands'])) {
- $commands = $commandData['commands'][$namespace];
- foreach ($commands as $item) {
- if ($item['name'] == $command->getName()) {
- $examples = $item['examples'];
- break;
- }
- }
- }
-
- $command->getSynopsis(true);
- $command->getSynopsis(false);
- $command->mergeApplicationDefinition(false);
-
- $this->writeText($command->trans('commands.list.messages.usage'), $options);
- foreach (array_merge([$command->getSynopsis(true)], $command->getAliases(), $command->getUsages()) as $key => $usage) {
- if ($key > 0) {
- $this->writeText("\n");
- }
- $this->writeText(' '.$usage, $options);
- }
-
- $this->writeText("\n");
- $definition = $command->getNativeDefinition();
- if ($definition->getOptions() || $definition->getArguments()) {
- $this->writeText("\n");
- $options =
- array_merge(
- $options,
- [ 'command' => $command ]
- );
- $this->describeInputDefinition($definition, $options);
- $this->writeText("\n");
- }
-
- if ($examples) {
- $this->writeText("\n");
- $this->writeText("Examples: ", $options);
- foreach ($examples as $key => $example) {
- $this->writeText("\n");
- if ($key != 0) {
- $this->writeText("\n");
- }
- $this->writeText(' '.$example['description'].' ');
- $this->writeText("\n");
- $this->writeText(' '.$example['execution']);
- }
- }
-
- if ($help = $command->getProcessedHelp()) {
- $this->writeText("\n");
- $this->writeText($command->trans('commands.list.messages.help'), $options);
- $this->writeText("\n");
- $this->writeText(' '.str_replace("\n", "\n ", $help), $options);
- $this->writeText("\n");
- }
- }
- /**
- * {@inheritdoc}
- */
- protected function describeApplication(Application $application, array $options = [])
- {
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
- $description = new ApplicationDescription($application, $describedNamespace);
- if (isset($options['raw_text']) && $options['raw_text']) {
- $width = $this->getColumnWidth($description->getCommands());
- foreach ($description->getCommands() as $command) {
- $this->writeText(sprintf("%-${width}s %s", $command->getName(), $command->getDescription()), $options);
- $this->writeText("\n");
- }
- } else {
- if ('' != $help = $application->getHelp()) {
- $this->writeText("$help\n\n", $options);
- }
- if (empty($describedNamespace)) {
- $this->writeText(
- $application->trans('commands.list.messages.usage'),
- $options
- );
- $this->writeText(
- $application->trans(
- 'commands.list.messages.usage-details'
- ),
- $options
- );
- $options['application'] = $application;
-
- $this->describeInputDefinition(
- new InputDefinition(
- $application->getDefinition()->getOptions()
- ),
- $options
- );
- $this->writeText("\n");
- $this->writeText("\n");
- }
-
- $width = $this->getColumnWidth($description->getCommands()) + 4;
- if ($describedNamespace) {
- $this->writeText(sprintf($application->trans('commands.list.messages.comment'), $describedNamespace), $options);
- } else {
- $this->writeText($application->trans('commands.list.messages.available-commands'), $options);
- }
-
- $singleCommands = [
- 'about',
- 'chain',
- 'check',
- 'composerize',
- 'exec',
- 'help',
- 'init',
- 'list',
- 'shell',
- 'server'
- ];
-
- // add commands by namespace
- foreach ($description->getNamespaces() as $namespace) {
- if (!$describedNamespace && ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
- $this->writeText("\n");
- $this->writeText(' '.$namespace['id'].' ', $options);
- }
- foreach ($namespace['commands'] as $name) {
- if (ApplicationDescription::GLOBAL_NAMESPACE == $namespace['id']) {
- if (!in_array($name, $singleCommands)) {
- continue;
- }
- }
-
- $this->writeText("\n");
- $alias = '';
- if ($description->getCommand($name)->getAliases()) {
- $alias = sprintf(
- '(%s)',
- implode(',', $description->getCommand($name)->getAliases())
- );
- }
-
- $spacingWidth = $width - strlen($name.$alias);
- if ($spacingWidth < 0) {
- $spacingWidth = 0;
- }
-
- $this->writeText(
- sprintf(
- ' %s %s %s%s',
- $name,
- $alias,
- str_repeat(' ', $spacingWidth),
- $description->getCommand($name)->getDescription(
- )
- ),
- $options
- );
- }
- }
- $this->writeText("\n");
- }
- }
- /**
- * {@inheritdoc}
- */
- private function writeText($content, array $options = [])
- {
- $this->write(
- isset($options['raw_text']) && $options['raw_text'] ? strip_tags($content) : $content,
- isset($options['raw_output']) ? !$options['raw_output'] : true
- );
- }
- /**
- * Formats input option/argument default value.
- *
- * @param mixed $default
- *
- * @return string
- */
- private function formatDefaultValue($default)
- {
- if (PHP_VERSION_ID < 50400) {
- return str_replace('\/', '/', json_encode($default));
- }
- return json_encode($default, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- }
- /**
- * @param Command[] $commands
- *
- * @return int
- */
- private function getColumnWidth(array $commands)
- {
- $width = 0;
- foreach ($commands as $command) {
- $width = strlen($command->getName()) > $width ? strlen($command->getName()) : $width;
- }
- return $width + 2;
- }
- /**
- * @param InputOption[] $options
- *
- * @return int
- */
- private function calculateTotalWidthForOptions($options)
- {
- $totalWidth = 0;
- foreach ($options as $option) {
- // "-" + shortcut + ", --" + name
- $nameLength = 1 + max(strlen($option->getShortcut()), 1) + 4 + strlen($option->getName());
- if ($option->acceptValue()) {
- $valueLength = 1 + strlen($option->getName()); // = + value
- $valueLength += $option->isValueOptional() ? 2 : 0; // [ + ]
- $nameLength += $valueLength;
- }
- $totalWidth = max($totalWidth, $nameLength);
- }
- return $totalWidth;
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/CallCommandListener.php b/vendor/drupal/console-core/src/EventSubscriber/CallCommandListener.php
deleted file mode 100644
index fe7c07543..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/CallCommandListener.php
+++ /dev/null
@@ -1,93 +0,0 @@
-chainQueue = $chainQueue;
- }
-
- /**
- * @param ConsoleTerminateEvent $event
- */
- public function callCommands(ConsoleTerminateEvent $event)
- {
- $command = $event->getCommand();
-
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- if (!$command instanceof Command) {
- return 0;
- }
-
- $application = $command->getApplication();
- $commands = $this->chainQueue->getCommands();
-
- if (!$commands) {
- return 0;
- }
-
- foreach ($commands as $chainedCommand) {
- $callCommand = $application->find($chainedCommand['name']);
-
- if (!$callCommand) {
- continue;
- }
-
- $input = new ArrayInput($chainedCommand['inputs']);
- if (!is_null($chainedCommand['interactive'])) {
- $input->setInteractive($chainedCommand['interactive']);
- }
-
- $io->text($chainedCommand['name']);
- $allowFailure = array_key_exists('allow_failure', $chainedCommand)?$chainedCommand['allow_failure']:false;
- try {
- $callCommand->run($input, $io);
- } catch (\Exception $e) {
- if (!$allowFailure) {
- $io->error($e->getMessage());
- return 1;
- }
- }
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::TERMINATE => 'callCommands'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/DefaultValueEventListener.php b/vendor/drupal/console-core/src/EventSubscriber/DefaultValueEventListener.php
deleted file mode 100644
index 25d427396..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/DefaultValueEventListener.php
+++ /dev/null
@@ -1,146 +0,0 @@
-configurationManager = $configurationManager;
- }
-
- /**
- * @param ConsoleCommandEvent $event
- */
- public function setDefaultValues(ConsoleCommandEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
- $configuration = $this->configurationManager
- ->getConfiguration();
-
- if (in_array($command->getName(), $this->skipCommands)) {
- return;
- }
-
- $inputDefinition = $command->getDefinition();
- $input = $event->getInput();
- $commandConfigKey = sprintf(
- 'application.commands.defaults.%s',
- str_replace(':', '.', $command->getName())
- );
- $defaults = $configuration->get($commandConfigKey);
-
- $this->setOptions($defaults, $input, $inputDefinition);
- $this->setArguments($defaults, $input, $inputDefinition);
- }
-
- private function setOptions($defaults, $input, $inputDefinition)
- {
- $defaultOptions = $this->extractKey($defaults, 'options');
- $defaultValues = [];
- if ($defaultOptions) {
- $reflection = new \ReflectionObject($input);
- $prop = $reflection->getProperty('tokens');
- $prop->setAccessible(true);
- $tokens = $prop->getValue($input);
- foreach ($defaultOptions as $key => $defaultValue) {
- $option = $inputDefinition->getOption($key);
- if ($input->getOption($key)) {
- continue;
- }
- if ($option->acceptValue()) {
- $defaultValues[] = sprintf(
- '--%s=%s',
- $key,
- $defaultValue
- );
- continue;
- }
- $defaultValues[] = sprintf(
- '--%s',
- $key
- );
- }
- $prop->setValue(
- $input,
- array_unique(array_merge($tokens, $defaultValues))
- );
- }
- }
-
- private function setArguments($defaults, $input, $inputDefinition)
- {
- $defaultArguments = $this->extractKey($defaults, 'arguments');
-
- foreach ($defaultArguments as $key => $defaultValue) {
- if ($input->getArgument($key)) {
- continue;
- }
-
- if ($argument = $inputDefinition->getArgument($key)) {
- $argument->setDefault($defaultValue);
- }
- }
- }
-
- private function extractKey($defaults, $key)
- {
- if (!$defaults || !is_array($defaults)) {
- return [];
- }
-
- $defaults = array_key_exists($key, $defaults)?$defaults[$key]:[];
- if (!is_array($defaults)) {
- return [];
- }
-
- return $defaults;
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'setDefaultValues'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/RemoveMessagesListener.php b/vendor/drupal/console-core/src/EventSubscriber/RemoveMessagesListener.php
deleted file mode 100644
index 8bffea906..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/RemoveMessagesListener.php
+++ /dev/null
@@ -1,64 +0,0 @@
-messageManager = $messageManager;
- }
-
- /**
- * @param ConsoleTerminateEvent $event
- */
- public function removeMessages(ConsoleTerminateEvent $event)
- {
- if ($event->getExitCode() != 0) {
- return;
- }
-
- /* @var Command $command */
- $command = $event->getCommand();
-
- $commandName = $command->getName();
-
- $this->messageManager->remove($commandName);
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::TERMINATE => 'removeMessages'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateChainListener.php b/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateChainListener.php
deleted file mode 100644
index 5e636ba75..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateChainListener.php
+++ /dev/null
@@ -1,136 +0,0 @@
-translator = $translator;
- }
-
- /**
- * @param ConsoleTerminateEvent $event
- */
- public function showGenerateChain(ConsoleTerminateEvent $event)
- {
- if ($event->getExitCode() != 0) {
- return;
- }
-
- /* @var Command $command */
- $command = $event->getCommand();
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- $command_name = $command->getName();
-
- $this->skipArguments[] = $command_name;
-
- if (in_array($command->getName(), $this->skipCommands)) {
- return;
- }
-
- $input = $event->getInput();
-
- if ($input->getOption('generate-chain')) {
- $options = array_filter($input->getOptions());
- foreach ($this->skipOptions as $remove_option) {
- unset($options[$remove_option]);
- }
-
- $arguments = array_filter($input->getArguments());
- foreach ($this->skipArguments as $remove_argument) {
- unset($arguments[$remove_argument]);
- }
-
- $commandData['command'] = $command_name;
-
- if ($options) {
- $commandData['options'] = $options;
- }
-
- if ($arguments) {
- $commandData['arguments'] = $arguments;
- }
-
- $io->commentBlock(
- $this->translator->trans('application.messages.chain.generated')
- );
-
- $dumper = new Dumper();
- $tableRows = [
- ' -',
- $dumper->dump($commandData, 4)
- ];
-
- $io->writeln('commands:');
- $io->table([], [$tableRows], 'compact');
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::TERMINATE => 'showGenerateChain'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateCountCodeLinesListener.php b/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateCountCodeLinesListener.php
deleted file mode 100644
index a8650e2d6..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateCountCodeLinesListener.php
+++ /dev/null
@@ -1,81 +0,0 @@
-translator = $translator;
- $this->countCodeLines = $countCodeLines;
- }
-
- /**
- * @param ConsoleTerminateEvent $event
- */
- public function showGenerateCountCodeLines(ConsoleTerminateEvent $event)
- {
- if ($event->getExitCode() != 0) {
- return;
- }
-
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- $countCodeLines = $this->countCodeLines->getCountCodeLines();
- if ($countCodeLines > 0) {
- $io->commentBlock(
- sprintf(
- $this->translator->trans('application.messages.lines-code'),
- $countCodeLines
- )
- );
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::TERMINATE => 'showGenerateCountCodeLines'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateInlineListener.php b/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateInlineListener.php
deleted file mode 100644
index f4a716274..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ShowGenerateInlineListener.php
+++ /dev/null
@@ -1,163 +0,0 @@
-translator = $translator;
- }
-
- /**
- * @param ConsoleTerminateEvent $event
- */
- public function showGenerateInline(ConsoleTerminateEvent $event)
- {
- if ($event->getExitCode() != 0) {
- return;
- }
-
- /* @var Command $command */
- $command = $event->getCommand();
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- $command_name = $command->getName();
-
- $this->skipArguments[] = $command_name;
-
- if (in_array($command->getName(), $this->skipCommands)) {
- return;
- }
-
- $input = $event->getInput();
- if ($input->getOption('generate-inline')) {
- $options = array_filter($input->getOptions());
- foreach ($this->skipOptions as $remove_option) {
- unset($options[$remove_option]);
- }
-
- $arguments = array_filter($input->getArguments());
- foreach ($this->skipArguments as $remove_argument) {
- unset($arguments[$remove_argument]);
- }
-
- $inline = '';
- foreach ($arguments as $argument_id => $argument) {
- if (is_array($argument)) {
- $argument = implode(" ", $argument);
- } elseif (strstr($argument, ' ')) {
- $argument = '"' . $argument . '"';
- }
-
- $inline .= " $argument";
- }
-
- // Refactor and remove nested levels. Then apply to arguments.
- foreach ($options as $optionName => $optionValue) {
- if (is_array($optionValue)) {
- foreach ($optionValue as $optionItem) {
- if (is_array($optionItem)) {
- $inlineValue = implode(
- ', ', array_map(
- function ($v, $k) {
- return '"'.$k . '":"' . $v . '"';
- },
- $optionItem,
- array_keys($optionItem)
- )
- );
- } else {
- $inlineValue = $optionItem;
- }
- $inline .= ' --' . $optionName . '=\'' . $inlineValue . '\'';
- }
- } else {
- if (is_bool($optionValue)) {
- $inline.= ' --' . $optionName;
- } else {
- $inline.= ' --' . $optionName . '="' . $optionValue . '"';
- }
- }
- }
-
- // Print YML output and message
- $io->commentBlock(
- $this->translator->trans('application.messages.inline.generated')
- );
-
- $io->writeln(
- sprintf(
- '$ drupal %s %s --no-interaction',
- $command_name,
- $inline
- )
- );
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::TERMINATE => 'showGenerateInline'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ShowGeneratedFilesListener.php b/vendor/drupal/console-core/src/EventSubscriber/ShowGeneratedFilesListener.php
deleted file mode 100644
index 78b601e3f..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ShowGeneratedFilesListener.php
+++ /dev/null
@@ -1,78 +0,0 @@
-fileQueue = $fileQueue;
- $this->showFile = $showFile;
- }
-
- /**
- * @param ConsoleTerminateEvent $event
- */
- public function showGeneratedFiles(ConsoleTerminateEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- if ($event->getExitCode() != 0) {
- return;
- }
-
- if ('self-update' == $command->getName()) {
- return;
- }
-
- $files = $this->fileQueue->getFiles();
- if ($files) {
- $this->showFile->generatedFiles($io, $files, true);
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::TERMINATE => 'showGeneratedFiles'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ShowTipsListener.php b/vendor/drupal/console-core/src/EventSubscriber/ShowTipsListener.php
deleted file mode 100644
index 3ad8c3aca..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ShowTipsListener.php
+++ /dev/null
@@ -1,93 +0,0 @@
-translator = $translator;
- }
-
- /**
- * @param ConsoleCommandEvent $event
- */
- public function showTips(ConsoleCommandEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
- $input = $command->getDefinition();
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- $learning = $input->getOption('learning');
-
- // pick randomly one of the tips (5 tips as maximum).
- $tips = $this->getTip($command->getName());
-
- if ($learning && $tips) {
- $io->commentBlock($tips);
- }
- }
-
- /**
- * @param $commandName
- * @return bool|string
- */
- private function getTip($commandName)
- {
- $get_tip = $this->translator
- ->trans('commands.'.str_replace(':', '.', $commandName).'.tips.0.tip');
- preg_match("/^commands./", $get_tip, $matches, null, 0);
- if (!empty($matches)) {
- return false;
- }
-
- $n = rand(0, 5);
- $get_tip = $this->translator
- ->trans('commands.'.str_replace(':', '.', $commandName).'.tips.' . $n . '.tip');
- preg_match("/^commands./", $get_tip, $matches, null, 0);
-
- if (empty($matches)) {
- return $get_tip;
- } else {
- return $this->getTip($commandName);
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'showTips'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ShowWelcomeMessageListener.php b/vendor/drupal/console-core/src/EventSubscriber/ShowWelcomeMessageListener.php
deleted file mode 100644
index a7ab76c99..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ShowWelcomeMessageListener.php
+++ /dev/null
@@ -1,66 +0,0 @@
-translator = $translator;
- }
-
- /**
- * @param ConsoleCommandEvent $event
- */
- public function showWelcomeMessage(ConsoleCommandEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
-
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- $welcomeMessageKey = 'commands.'.str_replace(':', '.', $command->getName()).'.welcome';
- $welcomeMessage = $this->translator->trans($welcomeMessageKey);
-
- if ($welcomeMessage != $welcomeMessageKey) {
- $io->text($welcomeMessage);
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'showWelcomeMessage'];
- }
-}
diff --git a/vendor/drupal/console-core/src/EventSubscriber/ValidateExecutionListener.php b/vendor/drupal/console-core/src/EventSubscriber/ValidateExecutionListener.php
deleted file mode 100644
index 6f6e14dd7..000000000
--- a/vendor/drupal/console-core/src/EventSubscriber/ValidateExecutionListener.php
+++ /dev/null
@@ -1,85 +0,0 @@
-translator = $translator;
- $this->configurationManager = $configurationManager;
- }
-
- /**
- * @param ConsoleCommandEvent $event
- */
- public function validateExecution(ConsoleCommandEvent $event)
- {
- /* @var Command $command */
- $command = $event->getCommand();
- /* @var DrupalStyle $io */
- $io = new DrupalStyle($event->getInput(), $event->getOutput());
-
- $configuration = $this->configurationManager->getConfiguration();
-
- $mapping = $configuration->get('application.disable.commands')?:[];
- if (array_key_exists($command->getName(), $mapping)) {
- $extra = $mapping[$command->getName()];
- $message[] = sprintf(
- $this->translator->trans('application.messages.disable.command.error'),
- $command->getName()
- );
- if ($extra) {
- $message[] = sprintf(
- $this->translator->trans('application.messages.disable.command.extra'),
- $extra
- );
- }
- $io->commentBlock($message);
- }
- }
-
- /**
- * @{@inheritdoc}
- */
- public static function getSubscribedEvents()
- {
- return [ConsoleEvents::COMMAND => 'validateExecution'];
- }
-}
diff --git a/vendor/drupal/console-core/src/Generator/Generator.php b/vendor/drupal/console-core/src/Generator/Generator.php
deleted file mode 100644
index 4957a9a1c..000000000
--- a/vendor/drupal/console-core/src/Generator/Generator.php
+++ /dev/null
@@ -1,146 +0,0 @@
-renderer = $renderer;
- }
-
- /**
- * @param $fileQueue
- */
- public function setFileQueue(FileQueue $fileQueue)
- {
- $this->fileQueue = $fileQueue;
- }
-
- /**
- * @param $countCodeLines
- */
- public function setCountCodeLines(CountCodeLines $countCodeLines)
- {
- $this->countCodeLines = $countCodeLines;
- }
-
- /**
- * @param DrupalFinder $drupalFinder
- */
- public function setDrupalFinder($drupalFinder)
- {
- $this->drupalFinder = $drupalFinder;
- }
-
- /**
- * @return \Drupal\Console\Core\Style\DrupalStyle
- */
- public function getIo() {
- return $this->io;
- }
-
- /**
- * @param \Drupal\Console\Core\Style\DrupalStyle $io
- */
- public function setIo($io) {
- $this->io = $io;
- }
-
- /**
- * @param string $template
- * @param string $target
- * @param array $parameters
- * @param null $flag
- *
- * @return bool
- */
- protected function renderFile(
- $template,
- $target,
- $parameters = [],
- $flag = null
- ) {
- if (!is_dir(dirname($target))) {
- if (!mkdir(dirname($target), 0777, true)) {
- throw new \InvalidArgumentException(
- sprintf(
- 'Path "%s" is invalid. You need to provide a valid path.',
- dirname($target)
- )
- );
- }
- }
-
- $currentLine = 0;
- if (!empty($flag) && file_exists($target)) {
- $currentLine = count(file($target));
- }
- $content = $this->renderer->render($template, $parameters);
-
- if (file_put_contents($target, $content, $flag)) {
- $this->fileQueue->addFile($target);
-
- $newCodeLine = count(file($target));
-
- if ($currentLine > 0) {
- $newCodeLine = ($newCodeLine-$currentLine);
- }
-
- $this->countCodeLines->addCountCodeLines($newCodeLine);
-
- return true;
- }
-
- return false;
- }
-
- public function addSkeletonDir($skeletonDir)
- {
- $this->renderer->addSkeletonDir($skeletonDir);
- }
-}
diff --git a/vendor/drupal/console-core/src/Generator/GeneratorInterface.php b/vendor/drupal/console-core/src/Generator/GeneratorInterface.php
deleted file mode 100644
index 907f356d6..000000000
--- a/vendor/drupal/console-core/src/Generator/GeneratorInterface.php
+++ /dev/null
@@ -1,23 +0,0 @@
-renderFile(
- 'core/init/config.yml.twig',
- $configFile,
- $configParameters
- );
-
- if ($executableName) {
- $parameters = [
- 'executable' => $executableName,
- ];
-
- $this->renderFile(
- 'core/autocomplete/console.rc.twig',
- $userHome . 'console.rc',
- $parameters
- );
-
- $this->renderFile(
- 'core/autocomplete/console.fish.twig',
- $userHome . 'drupal.fish',
- $parameters
- );
- }
- }
-}
diff --git a/vendor/drupal/console-core/src/Generator/SiteAliasGenerator.php b/vendor/drupal/console-core/src/Generator/SiteAliasGenerator.php
deleted file mode 100644
index 367476dfe..000000000
--- a/vendor/drupal/console-core/src/Generator/SiteAliasGenerator.php
+++ /dev/null
@@ -1,24 +0,0 @@
-renderFile(
- 'core/sites/alias.yml.twig',
- $parameters['directory'] . '/sites/' . $parameters['name'] . '.yml',
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/Helper/DescriptorHelper.php b/vendor/drupal/console-core/src/Helper/DescriptorHelper.php
deleted file mode 100644
index a77510f64..000000000
--- a/vendor/drupal/console-core/src/Helper/DescriptorHelper.php
+++ /dev/null
@@ -1,84 +0,0 @@
-
- */
-class DescriptorHelper extends BaseHelper
-{
- /**
- * @var DescriptorInterface[]
- */
- private $descriptors = [];
- /**
- * Constructor.
- */
- public function __construct()
- {
- $this
- ->register('txt', new TextDescriptor())
- ->register('xml', new XmlDescriptor())
- ->register('json', new JsonDescriptor())
- ->register('md', new MarkdownDescriptor());
- }
- /**
- * Describes an object if supported.
- *
- * Available options are:
- * * format: string, the output format name
- * * raw_text: boolean, sets output type as raw
- *
- * @param OutputInterface $output
- * @param object $object
- * @param array $options
- *
- * @throws \InvalidArgumentException when the given format is not supported
- */
- public function describe(OutputInterface $output, $object, array $options = [])
- {
- $options = array_merge(
- [
- 'raw_text' => false,
- 'format' => 'txt',
- ], $options
- );
- if (!isset($this->descriptors[$options['format']])) {
- throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
- }
- $descriptor = $this->descriptors[$options['format']];
- $descriptor->describe($output, $object, $options);
- }
- /**
- * Registers a descriptor.
- *
- * @param string $format
- * @param DescriptorInterface $descriptor
- *
- * @return DescriptorHelper
- */
- public function register($format, DescriptorInterface $descriptor)
- {
- $this->descriptors[$format] = $descriptor;
- return $this;
- }
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'descriptor';
- }
-}
diff --git a/vendor/drupal/console-core/src/Helper/DrupalChoiceQuestionHelper.php b/vendor/drupal/console-core/src/Helper/DrupalChoiceQuestionHelper.php
deleted file mode 100644
index 8e8edfe9c..000000000
--- a/vendor/drupal/console-core/src/Helper/DrupalChoiceQuestionHelper.php
+++ /dev/null
@@ -1,35 +0,0 @@
-getQuestion();
- $default = $question->getDefault();
- $choices = $question->getChoices();
-
- $text = sprintf(' %s [%s ]:', $text, $choices[$default]);
-
- $output->writeln($text);
-
- $output->write(' > ');
- }
-}
diff --git a/vendor/drupal/console-core/src/Style/DrupalStyle.php b/vendor/drupal/console-core/src/Style/DrupalStyle.php
deleted file mode 100644
index 60edb99f6..000000000
--- a/vendor/drupal/console-core/src/Style/DrupalStyle.php
+++ /dev/null
@@ -1,309 +0,0 @@
-input = $input;
- parent::__construct($input, $output);
- }
-
- /**
- * @param string $question
- * @param array $choices
- * @param mixed $default
- * @param bool $skipValidation
- *
- * @return string
- */
- public function choiceNoList(
- $question,
- array $choices,
- $default = null,
- $skipValidation = false
- ) {
- if (is_null($default)) {
- $default = current($choices);
- }
-
- if (!in_array($default, $choices)) {
- $choices[] = $default;
- }
-
- if (null !== $default) {
- $values = array_flip($choices);
- $default = $values[$default];
- }
-
- $choiceQuestion = new ChoiceQuestion($question, $choices, $default);
- if ($skipValidation) {
- $choiceQuestion->setValidator(
- function ($answer) {
- return $answer;
- }
- );
- }
-
- return trim($this->askChoiceQuestion($choiceQuestion));
- }
-
- /**
- * @param string $question
- * @param array $choices
- * @param null $default
- * @param bool $multiple
- *
- * @return string
- */
- public function choice($question, array $choices, $default = null, $multiple = false)
- {
- if (null !== $default) {
- $values = array_flip($choices);
- $default = $values[$default];
- }
-
- $choiceQuestion = new ChoiceQuestion($question, $choices, $default);
- $choiceQuestion->setMultiselect($multiple);
-
- return $this->askQuestion($choiceQuestion);
- }
-
- /**
- * @param ChoiceQuestion $question
- *
- * @return string
- */
- public function askChoiceQuestion(ChoiceQuestion $question)
- {
- $questionHelper = new DrupalChoiceQuestionHelper();
- $answer = $questionHelper->ask($this->input, $this, $question);
- return $answer;
- }
-
- /**
- * @param $question
- *
- * @return string
- */
- public function askHiddenEmpty($question)
- {
- $question = new Question($question, '');
- $question->setHidden(true);
- $question->setValidator(
- function ($answer) {
- return $answer;
- }
- );
-
- return trim($this->askQuestion($question));
- }
-
- /**
- * @param string $question
- * @param string $default
- * @param null|callable $validator
- *
- * @return string
- */
- public function askEmpty($question, $default = '', $validator = null)
- {
- $question = new Question($question, $default);
- if (!$validator) {
- $validator = function ($answer) {
- return $answer;
- };
- }
- $question->setValidator($validator);
-
- return trim($this->askQuestion($question));
- }
-
- /**
- * @param $message
- * @param bool $newLine
- */
- public function info($message, $newLine = true)
- {
- $message = sprintf(' %s ', $message);
- if ($newLine) {
- $this->writeln($message);
- } else {
- $this->write($message);
- }
- }
-
- /**
- * @param array|string $message
- * @param bool $newLine
- */
- public function comment($message, $newLine = true)
- {
- $message = sprintf(' %s ', $message);
- if ($newLine) {
- $this->writeln($message);
- } else {
- $this->write($message);
- }
- }
-
- /**
- * @param $message
- */
- public function commentBlock($message)
- {
- $this->block(
- $message, null,
- 'bg=yellow;fg=black',
- ' ',
- true
- );
- }
-
- /**
- * @param array $headers
- * @param array $rows
- * @param string $style
- */
- public function table(array $headers, array $rows, $style = 'symfony-style-guide')
- {
- $headers = array_map(
- function ($value) {
- return sprintf('%s ', $value);
- }, $headers
- );
-
- if (!is_array(current($rows))) {
- $rows = array_map(
- function ($row) {
- return [$row];
- },
- $rows
- );
- }
-
- $table = new Table($this);
- $table->setHeaders($headers);
- $table->setRows($rows);
- $table->setStyle($style);
-
- $table->render();
- $this->newLine();
- }
-
- /**
- * @param $message
- * @param bool $newLine
- */
- public function simple($message, $newLine = true)
- {
- $message = sprintf(' %s', $message);
- if ($newLine) {
- $this->writeln($message);
- } else {
- $this->write($message);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function warning($message)
- {
- $this->block($message, 'WARNING', 'fg=white;bg=yellow', ' ', true);
- }
-
- /**
- * @param array|string $message
- */
- public function text($message)
- {
- $message = sprintf('// %s', $message);
- parent::text($message);
- }
-
- public function successLite($message, $newLine = false)
- {
- $message = sprintf('✔ %s', $message);
- parent::text($message);
- if ($newLine) {
- parent::newLine();
- }
- }
-
- public function errorLite($message, $newLine = false)
- {
- $message = sprintf('✘> %s', $message);
- parent::text($message);
- if ($newLine) {
- parent::newLine();
- }
- }
-
- public function warningLite($message, $newLine = false)
- {
- $message = sprintf('! %s', $message);
- parent::text($message);
- if ($newLine) {
- parent::newLine();
- }
- }
-
- public function customLite($message, $prefix = '*', $style = '', $newLine = false)
- {
- if ($style) {
- $message = sprintf(
- '<%s>%s%s> %s',
- $style,
- $prefix,
- $style,
- $message
- );
- } else {
- $message = sprintf(
- '%s %s',
- $prefix,
- $message
- );
- }
- parent::text($message);
- if ($newLine) {
- parent::newLine();
- }
- }
-
- /**
- * @return InputInterface
- */
- public function getInput()
- {
- return $this->input;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/ArgvInputReader.php b/vendor/drupal/console-core/src/Utils/ArgvInputReader.php
deleted file mode 100644
index 3a612febb..000000000
--- a/vendor/drupal/console-core/src/Utils/ArgvInputReader.php
+++ /dev/null
@@ -1,238 +0,0 @@
-originalArgvValues = $_SERVER['argv'];
- $this->options = [];
- $this->setOptionsFromPlaceHolders();
- $this->readArgvInputValues();
- }
-
- /**
- * @param array $targetConfig
- */
- public function setOptionsFromTargetConfiguration($targetConfig)
- {
- $options = [];
- if (array_key_exists('root', $targetConfig)) {
- $options['root'] = $targetConfig['root'];
- }
- if (array_key_exists('uri', $targetConfig)) {
- $options['uri'] = $targetConfig['uri'];
- }
-
- if (array_key_exists('remote', $targetConfig)) {
- $this->set('remote', true);
- }
-
- $this->setArgvOptions($options);
- }
-
- /**
- * @param array $options
- */
- public function setOptionsFromConfiguration($options)
- {
- $this->setArgvOptions($options);
- }
-
- /**
- * @param $options
- */
- private function setArgvOptions($options)
- {
- $argvInput = new ArgvInput();
- foreach ($options as $key => $option) {
- if (!$option) {
- continue;
- }
-
- if (!$argvInput->hasParameterOption($key)) {
- if ($option == 1) {
- $_SERVER['argv'][] = sprintf('--%s', $key);
- } else {
- $_SERVER['argv'][] = sprintf('--%s=%s', $key, $option);
- }
- continue;
- }
- if ($key === 'root') {
- $option = sprintf(
- '%s%s',
- $argvInput->getParameterOption(['--root'], null),
- $option
- );
- }
- foreach ($_SERVER['argv'] as $argvKey => $argv) {
- if (strpos($argv, '--'.$key) === 0) {
- if ($option == 1) {
- $_SERVER['argv'][$argvKey] = sprintf('--%s', $key);
- } else {
- $_SERVER['argv'][$argvKey] = sprintf(
- '--%s=%s',
- $key,
- $option
- );
- }
- continue;
- }
- }
- }
- $this->readArgvInputValues();
- }
-
- /**
- * setOptionsFromPlaceHolders.
- */
- private function setOptionsFromPlaceHolders()
- {
- if (count($_SERVER['argv']) > 2
- && stripos($_SERVER['argv'][1], '@') === 0
- && stripos($_SERVER['argv'][2], '@') === 0
- ) {
- $_SERVER['argv'][1] = sprintf(
- '--source=%s',
- substr($_SERVER['argv'][1], 1)
- );
-
- $_SERVER['argv'][2] = sprintf(
- '--target=%s',
- substr($_SERVER['argv'][2], 1)
- );
-
- return;
- }
-
- if (count($_SERVER['argv']) > 1 && stripos($_SERVER['argv'][1], '@') === 0) {
- $_SERVER['argv'][1] = sprintf(
- '--target=%s',
- substr($_SERVER['argv'][1], 1)
- );
- }
- }
-
- /**
- * ReadArgvInputValues.
- */
- private function readArgvInputValues()
- {
- $input = new ArgvInput();
-
- $source = $input->getParameterOption(['--source', '-s'], null);
- $target = $input->getParameterOption(['--target', '-t'], null);
- $root = $input->getParameterOption(['--root'], null);
- $debug = $input->hasParameterOption(['--debug']);
- $uri = $input->getParameterOption(['--uri', '-l']) ?: 'default';
- if ($uri && !preg_match('/^(http|https):\/\//', $uri)) {
- $uri = sprintf('http://%s', $uri);
- }
-
- $this->set('command', $input->getFirstArgument());
- $this->set('root', $root);
- $this->set('uri', $uri);
- $this->set('debug', $debug);
- $this->set('source', $source);
- $this->set('target', $target);
- }
-
- /**
- * @param $option
- * @param $value
- */
- public function set($option, $value)
- {
- if ($value) {
- $this->options[$option] = $value;
-
- return;
- }
-
- if (!array_key_exists($option, $this->options)) {
- unset($this->options[$option]);
- }
- }
-
- /**
- * @param $option
- * @param null $value
- *
- * @return string
- */
- public function get($option, $value = null)
- {
- if (!array_key_exists($option, $this->options)) {
- return $value;
- }
-
- return $this->options[$option];
- }
-
- /**
- * @return array
- */
- public function getAll()
- {
- return $this->options;
- }
-
- /**
- * setOptionsAsArgv
- */
- public function setOptionsAsArgv()
- {
- foreach ($this->options as $optionName => $optionValue) {
- if ($optionName == 'command') {
- continue;
- }
- $optionFound = false;
- foreach ($_SERVER['argv'] as $key => $argv) {
- if (strpos($argv, '--'.$optionName) === 0) {
- $_SERVER['argv'][$key] = '--'.$optionName.'='.$optionValue;
- $optionFound = true;
- break;
- }
- }
- if (!$optionFound) {
- $_SERVER['argv'][] = '--'.$optionName.'='.$optionValue;
- }
- }
- }
-
- /**
- * @return array
- */
- public function restoreOriginalArgvValues()
- {
- return $_SERVER['argv'] = $this->originalArgvValues;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/ChainDiscovery.php b/vendor/drupal/console-core/src/Utils/ChainDiscovery.php
deleted file mode 100644
index 6116474d8..000000000
--- a/vendor/drupal/console-core/src/Utils/ChainDiscovery.php
+++ /dev/null
@@ -1,479 +0,0 @@
-appRoot = $appRoot;
- $this->configurationManager = $configurationManager;
- $this->messageManager = $messageManager;
- $this->translatorManager = $translatorManager;
-
- $directories = array_map(
- function ($item) {
- return $item . 'chain/';
- },
- $configurationManager->getConfigurationDirectories(true)
- );
-
- $this->addDirectories($directories);
- }
-
- /**
- * @param array $directories
- */
- public function addDirectories(array $directories)
- {
- $this->directories = array_merge($this->directories, $directories);
- }
-
- /**
- * @deprecated
- *
- * @return array
- */
- public function getChainFiles()
- {
- return $this->getFiles();
- }
-
- /**
- * @return array
- */
- public function getFiles()
- {
- if ($this->files) {
- return $this->files;
- }
-
- foreach ($this->directories as $directory) {
- if (!is_dir($directory)) {
- continue;
- }
- $finder = new Finder();
- $finder->files()
- ->name('*.yml')
- ->in($directory);
- foreach ($finder as $file) {
-
- $filePath = $file->getRealPath();
- if (empty($filePath)) {
- $filePath = $directory . $file->getBasename();
- }
-
- if (!is_file($filePath)) {
- continue;
- }
- $this->files[$filePath] = [
- 'directory' => $directory,
- 'file_name' => $file->getBasename(),
- 'messages' => []
- ];
-
- $this->getFileContents($filePath);
- $this->getFileMetadata($filePath);
-
- if ($this->files[$filePath]['messages']) {
- $this->messageManager->comment(
- $filePath,
- 0,
- 'list'
- );
- $this->messageManager->listing(
- $this->files[$filePath]['messages'],
- 0,
- 'list'
- );
- }
-
- $this->filesPerDirectory[$directory][] = $file->getBasename();
- }
- }
-
- return $this->files;
- }
-
- /**
- * @return array
- */
- public function getFilesPerDirectory()
- {
- return $this->filesPerDirectory;
- }
-
- /**
- * @return array
- */
- public function getChainCommands()
- {
- $chainCommands = [];
- $files = array_keys($this->getFiles());
- foreach ($files as $file) {
- $chainMetadata = $this->getFileMetadata($file);
-
- if (!$chainMetadata) {
- continue;
- }
-
- $name = $chainMetadata['command']['name'];
- $description = $chainMetadata['command']['description'];
-
- $chainCommands[$name] = [
- 'description' => $description,
- 'file' => $file,
- ];
-
- $this->files[$file]['command'] = $name;
- $this->files[$file]['description'] = $description;
- }
-
- return $chainCommands;
- }
-
- public function parseContent($file, $placeholders)
- {
- $placeholders = array_filter(
- $placeholders,
- function ($element) {
- return $element !== null;
- }
- );
-
- unset($placeholders['file']);
- unset($placeholders['placeholder']);
-
- $contents = $this->getFileContents($file);
-
- $loader = new \Twig_Loader_Array(
- [
- 'chain' => $contents,
- ]
- );
-
- $twig = new \Twig_Environment($loader);
- $envFunction = new \Twig_SimpleFunction(
- 'env',
- function ($variableName) {
- $variableValue = getenv($variableName);
- if (!empty($variableValue)) {
- return $variableValue;
- }
-
- return '%env('.$variableName.')%';
- }
- );
- $twig->addFunction($envFunction);
-
- $variables = $this->extractInlinePlaceHolderNames($contents);
-
- foreach ($variables as $variable) {
- if (!array_key_exists($variable, $placeholders)) {
- $placeholders[$variable] = '{{ ' . $variable . ' }}';
- }
- }
-
- return $twig->render('chain', $placeholders);
- }
-
- public function getFileMetadata($file)
- {
- if ($metadata = $this->getCacheMetadata($file)) {
- return $metadata;
- }
-
- $contents = $this->getFileContents($file);
-
- $line = strtok($contents, PHP_EOL);
- $index = 0;
- while ($line !== false) {
- $index++;
-
- if ($index === 1 && $line !== 'command:') {
- break;
- }
-
- if ($index > 1 && substr($line, 0, 2) !== " ") {
- break;
- }
-
- $metadata .= $line . PHP_EOL;
- $line = strtok(PHP_EOL);
- }
-
- $chainMetadata = $this->processMetadata($metadata);
-
- if (!$chainMetadata) {
- $this->files[$file]['messages'][] = $this->translatorManager
- ->trans('commands.chain.messages.metadata-registration');
- return [];
- }
-
- $this->files[$file]['metadata'] = $chainMetadata;
-
- return $chainMetadata;
- }
-
- private function processMetadata($metadata) {
- if (!$metadata) {
- return [];
- }
-
- $chainMetadata = Yaml::parse($metadata);
-
- if (!$chainMetadata || !is_array($chainMetadata)) {
- return [];
- }
-
- if (!array_key_exists('command', $chainMetadata) || !is_array($chainMetadata['command'])) {
- return [];
- }
-
- if (!array_key_exists('name', $chainMetadata['command'])) {
- return [];
- }
-
- if (!array_key_exists('description', $chainMetadata['command'])) {
- $chainMetadata['command']['description'] = '';
- }
-
- return $chainMetadata;
- }
-
- /**
- * Helper to load and clean up the chain file.
- *
- * @param string $file The file name
- *
- * @return string $contents The contents of the file
- */
- public function getFileContents($file)
- {
- if (empty($file)) {
- return '';
- }
-
- if ($contents = $this->getCacheContent($file)) {
- return $contents;
- }
-
- $contents = file_get_contents($file);
-
- // Support BC for legacy inline variables.
- $inlineLegacyContent = preg_replace(
- $this->inlineRegexLegacy,
- '{{ $1 }}',
- $contents
- );
-
- if ($contents !== $inlineLegacyContent) {
- $this->files[$file]['messages'][] = $this->translatorManager
- ->trans('commands.chain.messages.legacy-inline');
- $contents = $inlineLegacyContent;
- }
-
- // Support BC for legacy environment variables.
- $envLegacyContent = preg_replace(
- $this->envRegexLegacy,
- '{{ env("$1") }}',
- $contents
- );
-
- if ($contents !== $envLegacyContent) {
- $this->files[$file]['messages'][] = $this->translatorManager
- ->trans('commands.chain.messages.legacy-environment');
- $contents = $envLegacyContent;
- }
-
- // Remove lines with comments.
- $contents = preg_replace(
- '![ \t]*#.*[ \t]*[\r|\r\n|\n]!',
- PHP_EOL,
- $contents
- );
-
- // Strip blank lines
- $contents = preg_replace(
- "/(^[\r\n]*|[\r\n]+)[\t]*[\r\n]+/",
- PHP_EOL,
- $contents
- );
-
- $this->files[$file]['content'] = $contents;
-
- return $contents;
- }
-
- private function getCacheContent($file)
- {
- if (!array_key_exists($file, $this->files)) {
- return null;
- }
-
- if (!array_key_exists('content', $this->files[$file])) {
- return null;
- }
-
- return $this->files[$file]['content'];
- }
-
- private function getCacheMetadata($file)
- {
- if (!array_key_exists($file, $this->files)) {
- return null;
- }
-
- if (!array_key_exists('metadata', $this->files[$file])) {
- return null;
- }
-
- return $this->files[$file]['metadata'];
- }
-
- private function extractPlaceHolders(
- $chainContent,
- $regex
- ) {
- $placeHoldersExtracted = [];
- preg_match_all(
- $regex,
- $chainContent,
- $placeHoldersExtracted
- );
-
- if (!$placeHoldersExtracted) {
- return [];
- }
-
- return array_unique($placeHoldersExtracted[1]);
- }
-
- public function extractInlinePlaceHolderNames($content)
- {
- preg_match_all($this::INLINE_REGEX, $content, $matches);
-
- return array_map(
- function ($item) {
- return trim($item);
- },
- $matches[1]
- );
- }
-
- public function extractInlinePlaceHolders($chainContent)
- {
- $extractedInlinePlaceHolders = $this->extractPlaceHolders(
- $chainContent,
- $this::INLINE_REGEX
- );
- $extractedVars = $this->extractVars($chainContent);
-
- $inlinePlaceHolders = [];
- foreach ($extractedInlinePlaceHolders as $key => $inlinePlaceHolder) {
- $inlinePlaceHolder = trim($inlinePlaceHolder);
- $placeholderValue = null;
- if (array_key_exists($inlinePlaceHolder, $extractedVars)) {
- $placeholderValue = $extractedVars[$inlinePlaceHolder];
- }
- $inlinePlaceHolders[$inlinePlaceHolder] = $placeholderValue;
- }
-
- return $inlinePlaceHolders;
- }
-
- public function extractEnvironmentPlaceHolders($chainContent)
- {
- return $this->extractPlaceHolders($chainContent, $this::ENV_REGEX);
- }
-
- public function extractVars($chainContent)
- {
- $chain = Yaml::parse($chainContent);
- if (!array_key_exists('vars', $chain)) {
- return [];
- }
-
- return $chain['vars'];
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/ChainQueue.php b/vendor/drupal/console-core/src/Utils/ChainQueue.php
deleted file mode 100644
index 86e9f0567..000000000
--- a/vendor/drupal/console-core/src/Utils/ChainQueue.php
+++ /dev/null
@@ -1,53 +0,0 @@
-commands[] =
- [
- 'name' => $name,
- 'inputs' => $inputs,
- 'interactive' => $interactive
- ];
- }
-
- /**
- * @return array
- */
- public function getCommands()
- {
- return $this->commands;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/ConfigurationManager.php b/vendor/drupal/console-core/src/Utils/ConfigurationManager.php
deleted file mode 100644
index da7f775a9..000000000
--- a/vendor/drupal/console-core/src/Utils/ConfigurationManager.php
+++ /dev/null
@@ -1,454 +0,0 @@
-locateConfigurationFiles();
-
- $this->applicationDirectory = $directory;
- if ($directory && is_dir($directory) && strpos($directory, 'phar:')!==0) {
- $this->addConfigurationFilesByDirectory(
- $directory . '/console/',
- true
- );
- }
- $input = new ArgvInput();
- $root = $input->getParameterOption(['--root']);
- if ($root && is_dir($root)) {
- $this->addConfigurationFilesByDirectory(
- $root. '/console/',
- true
- );
- }
-
- $builder = new YamlFileConfigurationBuilder(
- $this->configurationFiles['config']
- );
-
- $this->configuration = $builder->build();
-
- $extras = [
- 'aliases',
- 'mappings',
- 'defaults'
- ];
-
- foreach ($extras as $extra) {
- $extraKey = 'application.extras.'.$extra;
- $extraFlag = $this->configuration->get($extraKey)?:'true';
- if ($extraFlag === 'true') {
- $this->appendExtraConfiguration($extra);
- }
- }
-
- return $this;
- }
-
- /**
- * @return ConfigurationInterface
- */
- public function getConfiguration()
- {
- return $this->configuration;
- }
-
- private function readSite($siteFile)
- {
- if (!file_exists($siteFile)) {
- return [];
- }
-
- return Yaml::parse(file_get_contents($siteFile));
- }
-
- /**
- * @param $target
- *
- * @return array
- */
- public function readTarget($target)
- {
- $site = $target;
- $environment = null;
- $exploded = explode('.', $target, 2);
-
- if (count($exploded)>1) {
- $site = $exploded[0];
- $environment = $exploded[1];
- }
-
- $sites = $this->getSites();
- if (!array_key_exists($site, $sites)) {
- return [];
- }
-
- $targetInformation = $sites[$site];
-
- if ($environment) {
- if (!array_key_exists($environment, $sites[$site])) {
- return [];
- }
-
- $targetInformation = $sites[$site][$environment];
- }
-
- return $targetInformation;
- }
-
- /**
- * @return string
- */
- public function getApplicationDirectory()
- {
- return $this->applicationDirectory;
- }
-
- /**
- * Return the sites config directory.
- *
- * @return array
- */
- private function getSitesDirectories()
- {
- $sitesDirectories = array_map(
- function ($directory) {
- return $directory . 'sites';
- },
- $this->getConfigurationDirectories()
- );
-
- $sitesDirectories = array_filter(
- $sitesDirectories,
- function ($directory) {
- return is_dir($directory);
- }
- );
-
- $sitesDirectories = array_unique($sitesDirectories);
-
- return $sitesDirectories;
- }
-
- /**
- * @param string $commandName
- * @return mixed
- */
- public function readDrushEquivalents($commandName)
- {
- $equivalents = [];
- $drushMappings = Yaml::parse(
- file_get_contents(
- $this->applicationDirectory . DRUPAL_CONSOLE_CORE . 'config/drush.yml'
- )
- );
-
- foreach ($drushMappings['commands'] as $key => $commands) {
- foreach ($commands as $namespace => $command) {
- if ($command) {
- $equivalents[$namespace] = $command;
- }
- }
- }
-
- if (!$commandName) {
- $drushMappings = [];
- foreach ($equivalents as $key => $alternative) {
- $drushMappings[] = [$key, $alternative];
- }
-
- return $drushMappings;
- }
-
- if (array_key_exists($commandName, $equivalents)) {
- return $equivalents[$commandName] ?: ' ';
- }
-
- return [];
- }
-
- public function getVendorCoreRoot()
- {
- $consoleCoreDirectory = dirname(dirname(dirname(__FILE__))) . '/';
-
- if (is_dir($consoleCoreDirectory)) {
- return $consoleCoreDirectory;
- }
-
- return null;
- }
-
- public function getVendorCoreDirectory()
- {
- $consoleCoreDirectory = dirname(dirname(dirname(__FILE__))) . '/config/';
-
- if (is_dir($consoleCoreDirectory)) {
- return $consoleCoreDirectory;
- }
-
- return null;
- }
-
- public function getSystemDirectory()
- {
- $systemDirectory = '/etc/console/';
-
- if (is_dir($systemDirectory)) {
- return $systemDirectory;
- }
-
- return null;
- }
-
- /**
- * @return string
- */
- public function getConsoleDirectory()
- {
- $consoleDirectory = sprintf(
- '%s/.console/',
- $this->getHomeDirectory()
- );
-
- if (is_dir($consoleDirectory)) {
- return $consoleDirectory;
- }
-
- try {
- mkdir($consoleDirectory, 0777, true);
- } catch (\Exception $exception) {
- return null;
- }
-
- return $consoleDirectory;
- }
-
- /**
- * @param $includeVendorCore
- *
- * @return array
- */
- public function getConfigurationDirectories($includeVendorCore = false)
- {
- if ($this->configurationDirectories) {
- if ($includeVendorCore) {
- return array_merge(
- [$this->getVendorCoreDirectory()],
- $this->configurationDirectories
- );
- }
-
- return $this->configurationDirectories;
- }
-
- return [];
- }
-
- private function addConfigurationFilesByDirectory(
- $directory,
- $addDirectory = false
- ) {
- if ($addDirectory) {
- $this->configurationDirectories[] = $directory;
- }
- $configurationFiles = [
- 'config' => 'config.yml',
- 'drush' => 'drush.yml',
- 'aliases' => 'aliases.yml',
- 'mappings' => 'mappings.yml',
- 'defaults' => 'defaults.yml',
- ];
- foreach ($configurationFiles as $key => $file) {
- $configFile = $directory.$file;
- if (is_file($configFile)) {
- $this->configurationFiles[$key][] = $configFile;
- }
- }
- }
-
- private function locateConfigurationFiles()
- {
- if ($this->getVendorCoreDirectory()) {
- $this->addConfigurationFilesByDirectory(
- $this->getVendorCoreDirectory()
- );
- }
- if ($this->getSystemDirectory()) {
- $this->addConfigurationFilesByDirectory(
- $this->getSystemDirectory(),
- true
- );
- }
- if ($this->getConsoleDirectory()) {
- $this->addConfigurationFilesByDirectory(
- $this->getConsoleDirectory(),
- true
- );
- }
- }
-
- /**
- * @return void
- */
- private function appendExtraConfiguration($type)
- {
- if (!array_key_exists($type, $this->configurationFiles)) {
- return;
- }
-
- $configData = [];
- foreach ($this->configurationFiles[$type] as $configFile) {
- if (file_get_contents($configFile)==='') {
- continue;
- }
- $parsed = Yaml::parse(file_get_contents($configFile));
- $configData = array_merge(
- $configData,
- is_array($parsed)?$parsed:[]
- );
- }
-
- if ($configData && array_key_exists($type, $configData)) {
- $this->configuration->set(
- 'application.commands.'.$type,
- $configData[$type]
- );
- }
- }
-
- public function loadExtendConfiguration()
- {
- $directory = $this->getConsoleDirectory() . '/extend/';
- if (!is_dir($directory)) {
- return null;
- }
-
- $autoloadFile = $directory . 'vendor/autoload.php';
- if (!is_file($autoloadFile)) {
- return null;
- }
- include_once $autoloadFile;
- $extendFile = $directory . 'extend.console.config.yml';
-
- $this->importConfigurationFromFile($extendFile);
- }
-
- private function importConfigurationFromFile($configFile)
- {
- if (is_file($configFile) && file_get_contents($configFile)!='') {
- $builder = new YamlFileConfigurationBuilder([$configFile]);
- if ($this->configuration) {
- $this->configuration->import($builder->build());
- } else {
- $this->configuration = $builder->build();
- }
- }
- }
-
- /**
- * @return array
- */
- public function getSites()
- {
- if ($this->sites) {
- return $this->sites;
- }
-
- $sitesDirectories = $this->getSitesDirectories();
-
- if (!$sitesDirectories) {
- return [];
- }
-
- $finder = new Finder();
- $finder->in($sitesDirectories);
- $finder->name("*.yml");
-
- foreach ($finder as $site) {
- $siteName = $site->getBasename('.yml');
- $environments = $this->readSite($site->getRealPath());
-
- if (!$environments || !is_array($environments)) {
- continue;
- }
-
- $this->sites[$siteName] = [
- 'file' => $site->getRealPath()
- ];
-
- foreach ($environments as $environment => $config) {
- if (!array_key_exists('type', $config)) {
- throw new \UnexpectedValueException("The 'type' parameter is required in sites configuration.");
- }
- if ($config['type'] !== 'local') {
- if (array_key_exists('host', $config)) {
- $targetInformation['remote'] = true;
- }
-
- $config = array_merge(
- $this->configuration->get('application.remote')?:[],
- $config
- );
- }
-
- $this->sites[$siteName][$environment] = $config;
- }
- }
-
- return $this->sites;
- }
-
- /**
- * @return array
- */
- public function getConfigurationFiles()
- {
- return $this->configurationFiles;
- }
-
- public function getHomeDirectory()
- {
- return Path::getHomeDirectory();
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/CountCodeLines.php b/vendor/drupal/console-core/src/Utils/CountCodeLines.php
deleted file mode 100644
index 6467a087c..000000000
--- a/vendor/drupal/console-core/src/Utils/CountCodeLines.php
+++ /dev/null
@@ -1,37 +0,0 @@
-countCodeLine = $this->countCodeLine + $countCodeLine;
- }
-
- /**
- * @return integer
- */
- public function getCountCodeLines()
- {
- return $this->countCodeLine;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/DrupalFinder.php b/vendor/drupal/console-core/src/Utils/DrupalFinder.php
deleted file mode 100644
index 2aa7af27c..000000000
--- a/vendor/drupal/console-core/src/Utils/DrupalFinder.php
+++ /dev/null
@@ -1,117 +0,0 @@
-getVendorDir(),
- $this->getComposerRoot()
- );
-
- $this->definePaths($vendorDir);
- $this->defineConstants($vendorDir);
-
- return true;
- }
-
- $this->definePaths($vendorDir);
- $this->defineConstants($vendorDir);
-
- return false;
- }
-
- protected function definePaths($vendorDir)
- {
- $this->consoleCorePath = "/{$vendorDir}/drupal/console-core/";
- $this->consolePath = "/{$vendorDir}/drupal/console/";
- $this->consoleLanguagePath = "/{$vendorDir}/drupal/console-%s/translations/";
- }
-
- protected function defineConstants($vendorDir)
- {
- if (!defined("DRUPAL_CONSOLE_CORE")) {
- define(
- "DRUPAL_CONSOLE_CORE",
- "/{$vendorDir}/drupal/console-core/"
- );
- }
- if (!defined("DRUPAL_CONSOLE")) {
- define("DRUPAL_CONSOLE", "/{$vendorDir}/drupal/console/");
- }
- if (!defined("DRUPAL_CONSOLE_LANGUAGE")) {
- define(
- "DRUPAL_CONSOLE_LANGUAGE",
- "/{$vendorDir}/drupal/console-%s/translations/"
- );
- }
-
- if (!defined("DRUPAL_CONSOLE_LIBRARY")) {
- define(
- "DRUPAL_CONSOLE_LIBRARY",
- "/{$vendorDir}/drupal/%s/console/translations/%s"
- );
- }
- }
-
- /**
- * @return string
- */
- public function getConsoleCorePath()
- {
- return $this->consoleCorePath;
- }
-
- /**
- * @return string
- */
- public function getConsolePath()
- {
- return $this->consolePath;
- }
-
- /**
- * @return string
- */
- public function getConsoleLanguagePath()
- {
- return $this->consoleLanguagePath;
- }
-
- public function isValidDrupal() {
- return ($this->getComposerRoot() && $this->getDrupalRoot());
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/FileQueue.php b/vendor/drupal/console-core/src/Utils/FileQueue.php
deleted file mode 100644
index 445052cc8..000000000
--- a/vendor/drupal/console-core/src/Utils/FileQueue.php
+++ /dev/null
@@ -1,53 +0,0 @@
-appRoot = $appRoot;
- }
-
- /**
- * @param $file string
- */
- public function addFile($file)
- {
- $file = str_replace($this->appRoot, '', $file);
- $this->files[] = $file;
- }
-
- /**
- * @return array
- */
- public function getFiles()
- {
- return $this->files;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/KeyValueStorage.php b/vendor/drupal/console-core/src/Utils/KeyValueStorage.php
deleted file mode 100644
index d8ef7a3a2..000000000
--- a/vendor/drupal/console-core/src/Utils/KeyValueStorage.php
+++ /dev/null
@@ -1,69 +0,0 @@
-data);
- }
-
- /**
- * Gets the given key from the container, or returns the default if it does
- * not exist.
- *
- * @param string $key
- * The key to get.
- * @param mixed $default
- * Default value to return.
- *
- * @return mixed
- */
- public function get($key, $default = null)
- {
- return $this->has($key) ? $this->data[$key] : $default;
- }
-
- /**
- * Sets the given key in the container.
- *
- * @param mixed $key
- * The key to set
- * @param mixed $value
- * The value.
- */
- public function set($key, $value = null)
- {
- $this->data[$key] = $value;
- }
-
- /**
- * Removes the given key from the container.
- *
- * @param string $key The key to forget.
- *
- * @return void
- */
- public function remove($key)
- {
- unset($this->data[$key]);
- }
-
-}
diff --git a/vendor/drupal/console-core/src/Utils/MessageManager.php b/vendor/drupal/console-core/src/Utils/MessageManager.php
deleted file mode 100644
index 094535639..000000000
--- a/vendor/drupal/console-core/src/Utils/MessageManager.php
+++ /dev/null
@@ -1,112 +0,0 @@
-messages[] = [
- 'type' =>$type,
- 'message' => $message,
- 'code' => $code,
- 'showBy' => $showBy,
- 'removeBy' => $removeBy,
- ];
- }
-
- /**
- * @param $message
- * @param $code
- * @param $showBy
- * @param $removeBy
- */
- public function error($message, $code = 0, $showBy = 'all', $removeBy = null)
- {
- $this->add('error', $message, $code, $showBy, $removeBy);
- }
-
- /**
- * @param $message
- * @param $code
- * @param $showBy
- * @param $removeBy
- */
- public function warning($message, $code = 0, $showBy = 'all', $removeBy = null)
- {
- $this->add('warning', $message, $code, $showBy, $removeBy);
- }
-
- /**
- * @param $message
- * @param $code
- * @param $showBy
- * @param $removeBy
- */
- public function info($message, $code = 0, $showBy = 'all', $removeBy = null)
- {
- $this->add('info', $message, $code, $showBy, $removeBy);
- }
-
- /**
- * @param $message
- * @param $code
- * @param $showBy
- * @param $removeBy
- */
- public function listing(array $message, $code = 0, $showBy = 'all', $removeBy = null)
- {
- $this->add('listing', $message, $code, $showBy, $removeBy);
- }
-
- /**
- * @param $message
- * @param $code
- * @param $showBy
- * @param $removeBy
- */
- public function comment($message, $code = 0, $showBy = 'all', $removeBy = null)
- {
- $this->add('comment', $message, $code, $showBy, $removeBy);
- }
-
- /**
- * @return array
- */
- public function getMessages()
- {
- return $this->messages;
- }
-
- public function remove($removeBy = null)
- {
- $this->messages = array_filter(
- $this->messages,
- function ($message) use ($removeBy) {
- if (is_null($message['removeBy'])) {
- return true;
- }
-
- return !($message['removeBy'] == $removeBy);
- }
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/NestedArray.php b/vendor/drupal/console-core/src/Utils/NestedArray.php
deleted file mode 100644
index ef3917fe5..000000000
--- a/vendor/drupal/console-core/src/Utils/NestedArray.php
+++ /dev/null
@@ -1,504 +0,0 @@
- 'text_format',
- * '#title' => t('Signature'),
- * );
- * // Or, it might be further nested:
- * $form['signature_settings']['user']['signature'] = array(
- * '#type' => 'text_format',
- * '#title' => t('Signature'),
- * );
- * @endcode
- *
- * To deal with the situation, the code needs to figure out the route to the
- * element, given an array of parents that is either
- * @code array('signature_settings', 'signature') @endcode
- * in the first case or
- * @code array('signature_settings', 'user', 'signature') @endcode
- * in the second case.
- *
- * Without this helper function the only way to set the signature element in
- * one line would be using eval(), which should be avoided:
- * @code
- * // Do not do this! Avoid eval().
- * eval('$form[\'' . implode("']['", $parents) . '\'] = $element;');
- * @endcode
- *
- * Instead, use this helper function:
- * @code
- * NestedArray::setValue($form, $parents, $element);
- * @endcode
- *
- * However if the number of array parent keys is static, the value should
- * always be set directly rather than calling this function. For instance,
- * for the first example we could just do:
- * @code
- * $form['signature_settings']['signature'] = $element;
- * @endcode
- *
- * @param array $array
- * A reference to the array to modify.
- * @param array $parents
- * An array of parent keys, starting with the outermost key.
- * @param mixed $value
- * The value to set.
- * @param bool $force
- * (optional) If TRUE, the value is forced into the structure even if it
- * requires the deletion of an already existing non-array parent value. If
- * FALSE, PHP throws an error if trying to add into a value that is not an
- * array. Defaults to FALSE.
- *
- * @see NestedArray::unsetValue()
- * @see NestedArray::getValue()
- */
- public static function setValue(array &$array, array $parents, $value, $force = false)
- {
- $ref = &$array;
- foreach ($parents as $parent) {
- // PHP auto-creates container arrays and NULL entries without error if $ref
- // is NULL, but throws an error if $ref is set, but not an array.
- if ($force && isset($ref) && !is_array($ref)) {
- $ref = [];
- }
- $ref = &$ref[$parent];
- }
- $ref = $value;
- }
-
- /**
- * Replace a YAML key maintaining values
- *
- * @param array $array
- * @param array $parents
- * @param $new_key
- */
- public static function replaceKey(array &$array, array $parents, $new_key)
- {
- $ref = &$array;
- foreach ($parents as $parent) {
- $father = &$ref;
- $key = $parent;
- $ref = &$ref[$parent];
- }
-
- $father[$new_key] = $father[$key];
- unset($father[$key]);
- }
-
- /**
- * @param $array1
- * @param $array2
- * @param bool $negate if Negate is true only if values are equal are returned.
- * @param $statistics mixed array
- * @return array
- */
- public function arrayDiff($array1, $array2, $negate = false, &$statistics)
- {
- $result = [];
- foreach ($array1 as $key => $val) {
- if (isset($array2[$key])) {
- if (is_array($val) && $array2[$key]) {
- $result[$key] = $this->arrayDiff($val, $array2[$key], $negate, $statistics);
- if (empty($result[$key])) {
- unset($result[$key]);
- }
- } else {
- $statistics['total'] += 1;
- if ($val == $array2[$key] && $negate) {
- $result[$key] = $array2[$key];
- $statistics['equal'] += 1;
- } elseif ($val != $array2[$key] && $negate) {
- $statistics['diff'] += 1;
- } elseif ($val != $array2[$key] && !$negate) {
- $result[$key] = $array2[$key];
- $statistics['diff'] += 1;
- } elseif ($val == $array2[$key] && !$negate) {
- $result[$key] = $array2[$key];
- $statistics['equal'] += 1;
- }
- }
- } else {
- if (is_array($val)) {
- $statistics['diff'] += count($val, COUNT_RECURSIVE);
- $statistics['total'] += count($val, COUNT_RECURSIVE);
- } else {
- $statistics['diff'] +=1;
- $statistics['total'] += 1;
- }
- }
- }
-
- return $result;
- }
-
- /**
- * Flat a yaml file
- *
- * @param array $array
- * @param array $flatten_array
- * @param string $key_flatten
- */
- public function yamlFlattenArray(array &$array, &$flatten_array, &$key_flatten = '')
- {
- foreach ($array as $key => $value) {
- if (!empty($key_flatten)) {
- $key_flatten.= '.';
- }
- $key_flatten.= $key;
-
- if (is_array($value)) {
- $this->yamlFlattenArray($value, $flatten_array, $key_flatten);
- } else {
- if (!empty($value)) {
- $flatten_array[$key_flatten] = $value;
- $key_flatten = substr($key_flatten, 0, strrpos($key_flatten, "."));
- } else {
- // Return to previous key
- $key_flatten = substr($key_flatten, 0, strrpos($key_flatten, "."));
- }
- }
- }
-
- // Start again with flatten key after recursive call
- $key_flatten = substr($key_flatten, 0, strrpos($key_flatten, "."));
- }
-
- /**
- * @param array $array
- * @param array $split_array
- * @param int $indent_level
- * @param array $key_flatten
- * @param int $key_level
- * @param bool $exclude_parents_key
- */
- public function yamlSplitArray(array &$array, array &$split_array, $indent_level = '', &$key_flatten, &$key_level, $exclude_parents_key)
- {
- foreach ($array as $key => $value) {
- if (!$exclude_parents_key && !empty($key_flatten)) {
- $key_flatten.= '.';
- }
-
- if ($exclude_parents_key) {
- $key_flatten = $key;
- } else {
- $key_flatten .= $key;
- }
-
- if ($key_level == $indent_level) {
- if (!empty($value)) {
- $split_array[$key_flatten] = $value;
-
- if (!$exclude_parents_key) {
- $key_flatten = substr($key_flatten, 0, strrpos($key_flatten, "."));
- }
- }
- } else {
- if (is_array($value)) {
- $key_level++;
- $this->yamlSplitArray($value, $split_array, $indent_level, $key_flatten, $key_level, $exclude_parents_key);
- }
- }
- }
-
- // Start again with flatten key after recursive call
- if (!$exclude_parents_key) {
- $key_flatten = substr($key_flatten, 0, strrpos($key_flatten, "."));
- }
-
- $key_level--;
- }
- /**
- * Unsets a value in a nested array with variable depth.
- *
- * This helper function should be used when the depth of the array element you
- * are changing may vary (that is, the number of parent keys is variable). It
- * is primarily used for form structures and renderable arrays.
- *
- * Example:
- *
- * @code
- * // Assume you have a 'signature' element somewhere in a form. It might be:
- * $form['signature_settings']['signature'] = array(
- * '#type' => 'text_format',
- * '#title' => t('Signature'),
- * );
- * // Or, it might be further nested:
- * $form['signature_settings']['user']['signature'] = array(
- * '#type' => 'text_format',
- * '#title' => t('Signature'),
- * );
- * @endcode
- *
- * To deal with the situation, the code needs to figure out the route to the
- * element, given an array of parents that is either
- * @code array('signature_settings', 'signature') @endcode
- * in the first case or
- * @code array('signature_settings', 'user', 'signature') @endcode
- * in the second case.
- *
- * Without this helper function the only way to unset the signature element in
- * one line would be using eval(), which should be avoided:
- * @code
- * // Do not do this! Avoid eval().
- * eval('unset($form[\'' . implode("']['", $parents) . '\']);');
- * @endcode
- *
- * Instead, use this helper function:
- * @code
- * NestedArray::unset_nested_value($form, $parents, $element);
- * @endcode
- *
- * However if the number of array parent keys is static, the value should
- * always be set directly rather than calling this function. For instance, for
- * the first example we could just do:
- * @code
- * unset($form['signature_settings']['signature']);
- * @endcode
- *
- * @param array $array
- * A reference to the array to modify.
- * @param array $parents
- * An array of parent keys, starting with the outermost key and including
- * the key to be unset.
- * @param bool $key_existed
- * (optional) If given, an already defined variable that is altered by
- * reference.
- *
- * @see NestedArray::setValue()
- * @see NestedArray::getValue()
- */
- public static function unsetValue(array &$array, array $parents, &$key_existed = null)
- {
- $unset_key = array_pop($parents);
- $ref = &self::getValue($array, $parents, $key_existed);
- if ($key_existed && is_array($ref) && array_key_exists($unset_key, $ref)) {
- $key_existed = true;
- unset($ref[$unset_key]);
- } else {
- $key_existed = false;
- }
- }
-
- /**
- * Determines whether a nested array contains the requested keys.
- *
- * This helper function should be used when the depth of the array element to
- * be checked may vary (that is, the number of parent keys is variable). See
- * NestedArray::setValue() for details. It is primarily used for form
- * structures and renderable arrays.
- *
- * If it is required to also get the value of the checked nested key, use
- * NestedArray::getValue() instead.
- *
- * If the number of array parent keys is static, this helper function is
- * unnecessary and the following code can be used instead:
- *
- * @code
- * $value_exists = isset($form['signature_settings']['signature']);
- * $key_exists = array_key_exists('signature', $form['signature_settings']);
- * @endcode
- *
- * @param array $array
- * The array with the value to check for.
- * @param array $parents
- * An array of parent keys of the value, starting with the outermost key.
- *
- * @return bool
- * TRUE if all the parent keys exist, FALSE otherwise.
- *
- * @see NestedArray::getValue()
- */
- public static function keyExists(array $array, array $parents)
- {
- // Although this function is similar to PHP's array_key_exists(), its
- // arguments should be consistent with getValue().
- $key_exists = null;
- self::getValue($array, $parents, $key_exists);
- return $key_exists;
- }
-
- /**
- * Merges multiple arrays, recursively, and returns the merged array.
- *
- * This function is similar to PHP's array_merge_recursive() function, but it
- * handles non-array values differently. When merging values that are not both
- * arrays, the latter value replaces the former rather than merging with it.
- *
- * Example:
- *
- * @code
- * $link_options_1 = array('fragment' => 'x', 'attributes' => array('title' => t('X'), 'class' => array('a', 'b')));
- * $link_options_2 = array('fragment' => 'y', 'attributes' => array('title' => t('Y'), 'class' => array('c', 'd')));
- *
- * // This results in array('fragment' => array('x', 'y'), 'attributes' => array('title' => array(t('X'), t('Y')), 'class' => array('a', 'b', 'c', 'd'))).
- * $incorrect = array_merge_recursive($link_options_1, $link_options_2);
- *
- * // This results in array('fragment' => 'y', 'attributes' => array('title' => t('Y'), 'class' => array('a', 'b', 'c', 'd'))).
- * $correct = NestedArray::mergeDeep($link_options_1, $link_options_2);
- * @endcode
- *
- * @param array ...
- * Arrays to merge.
- *
- * @return array
- * The merged array.
- *
- * @see NestedArray::mergeDeepArray()
- */
- public static function mergeDeep()
- {
- return self::mergeDeepArray(func_get_args());
- }
-
- /**
- * Merges multiple arrays, recursively, and returns the merged array.
- *
- * This function is equivalent to NestedArray::mergeDeep(), except the
- * input arrays are passed as a single array parameter rather than a variable
- * parameter list.
- *
- * The following are equivalent:
- * - NestedArray::mergeDeep($a, $b);
- * - NestedArray::mergeDeepArray(array($a, $b));
- *
- * The following are also equivalent:
- * - call_user_func_array('NestedArray::mergeDeep', $arrays_to_merge);
- * - NestedArray::mergeDeepArray($arrays_to_merge);
- *
- * @param array $arrays
- * An arrays of arrays to merge.
- * @param bool $preserve_integer_keys
- * (optional) If given, integer keys will be preserved and merged instead of
- * appended. Defaults to FALSE.
- *
- * @return array
- * The merged array.
- *
- * @see NestedArray::mergeDeep()
- */
- public static function mergeDeepArray(array $arrays, $preserve_integer_keys = false)
- {
- $result = [];
- foreach ($arrays as $array) {
- foreach ($array as $key => $value) {
- // Renumber integer keys as array_merge_recursive() does unless
- // $preserve_integer_keys is set to TRUE. Note that PHP automatically
- // converts array keys that are integer strings (e.g., '1') to integers.
- if (is_integer($key) && !$preserve_integer_keys) {
- $result[] = $value;
- }
- // Recurse when both values are arrays.
- elseif (isset($result[$key]) && is_array($result[$key]) && is_array($value)) {
- $result[$key] = self::mergeDeepArray([$result[$key], $value], $preserve_integer_keys);
- }
- // Otherwise, use the latter value, overriding any previous value.
- else {
- $result[$key] = $value;
- }
- }
- }
- return $result;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/RequirementChecker.php b/vendor/drupal/console-core/src/Utils/RequirementChecker.php
deleted file mode 100644
index 98795bba7..000000000
--- a/vendor/drupal/console-core/src/Utils/RequirementChecker.php
+++ /dev/null
@@ -1,170 +0,0 @@
-parser = new Parser();
- }
-
- /**
- *
- */
- private function checkPHPVersion()
- {
- $requiredPHP = $this->requirements['requirements']['php']['required'];
- $currentPHP = phpversion();
- $this->checkResult['php']['required'] = $requiredPHP;
- $this->checkResult['php']['current'] = $currentPHP;
- $this->valid = (version_compare($currentPHP, $requiredPHP) >= 0);
- $this->checkResult['php']['valid'] = $this->valid;
- }
-
- /**
- * checkRequiredExtensions
- */
- private function checkRequiredExtensions()
- {
- $this->checkResult['extensions']['required']['missing'] = [];
- foreach ($this->requirements['requirements']['extensions']['required'] as $extension) {
- if (!extension_loaded($extension)) {
- $this->checkResult['extensions']['required']['missing'][] = $extension;
- $this->valid = false;
- }
- }
- }
-
- /**
- * checkRecommendedExtensions
- */
- private function checkRecommendedExtensions()
- {
- $this->checkResult['extensions']['recommended']['missing'] = [];
- foreach ($this->requirements['requirements']['extensions']['recommended'] as $extension) {
- if (!extension_loaded($extension)) {
- $this->checkResult['extensions']['recommended']['missing'][] = $extension;
- }
- }
- }
-
- /**
- * checkRequiredConfigurations
- */
- private function checkRequiredConfigurations()
- {
- $this->checkResult['configurations']['required']['overwritten'] = [];
- $this->checkResult['configurations']['required']['missing'] = [];
- foreach ($this->requirements['requirements']['configurations']['required'] as $configuration) {
- $defaultValue = null;
- if (is_array($configuration)) {
- $defaultValue = current($configuration);
- $configuration = key($configuration);
- }
-
- if (!ini_get($configuration)) {
- if ($defaultValue) {
- ini_set($configuration, $defaultValue);
- $this->checkResult['configurations']['required']['overwritten'] = [
- $configuration => $defaultValue
- ];
- $this->overwritten = true;
- continue;
- }
- $this->valid = false;
- $this->checkResult['configurations']['required']['missing'][] = $configuration;
- }
- }
- }
-
- /**
- * @param $files
- * @return array
- */
- public function validate($files)
- {
- if (!is_array($files)) {
- $files = [$files];
- }
-
- foreach ($files as $file) {
- if (file_exists($file)) {
- $this->requirements = array_merge(
- $this->requirements,
- $this->parser->parse(
- file_get_contents($file)
- )
- );
- }
- }
-
- if (!$this->checkResult) {
- $this->checkPHPVersion();
- $this->checkRequiredExtensions();
- $this->checkRecommendedExtensions();
- $this->checkRequiredConfigurations();
- }
-
- return $this->checkResult;
- }
-
- /**
- * @return array
- */
- public function getCheckResult()
- {
- return $this->checkResult;
- }
-
- /**
- * @return boolean
- */
- public function isOverwritten()
- {
- return $this->overwritten;
- }
-
- /**
- * @return bool
- */
- public function isValid()
- {
- return $this->valid;
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/ShellProcess.php b/vendor/drupal/console-core/src/Utils/ShellProcess.php
deleted file mode 100644
index 43f57d783..000000000
--- a/vendor/drupal/console-core/src/Utils/ShellProcess.php
+++ /dev/null
@@ -1,105 +0,0 @@
-appRoot = $appRoot;
- $this->translator = $translator;
-
- $output = new ConsoleOutput();
- $input = new ArrayInput([]);
- $this->io = new DrupalStyle($input, $output);
- }
-
- /**
- * @param string $command
- * @param string $workingDirectory
- *
- * @throws ProcessFailedException
- *
- * @return Process
- */
- public function exec($command, $workingDirectory=null)
- {
- if (!$workingDirectory || $workingDirectory==='') {
- $workingDirectory = $this->appRoot;
- }
-
- if (realpath($workingDirectory)) {
- $this->io->comment(
- $this->translator->trans('commands.exec.messages.working-directory') .': ',
- false
- );
- $this->io->writeln(realpath($workingDirectory));
- }
-
- $this->io->comment(
- $this->translator->trans('commands.exec.messages.executing-command') .': ',
- false
- );
- $this->io->writeln($command);
-
- $this->process = new Process($command);
- $this->process->setWorkingDirectory($workingDirectory);
- $this->process->enableOutput();
- $this->process->setTimeout(null);
- $this->process->run(
- function ($type, $buffer) {
- $this->io->write($buffer);
- }
- );
-
- if (!$this->process->isSuccessful()) {
- throw new ProcessFailedException($this->process);
- }
-
- return $this->process->isSuccessful();
- }
-
- /**
- * @return string
- */
- public function getOutput()
- {
- return $this->process->getOutput();
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/ShowFile.php b/vendor/drupal/console-core/src/Utils/ShowFile.php
deleted file mode 100644
index 7c9bca37d..000000000
--- a/vendor/drupal/console-core/src/Utils/ShowFile.php
+++ /dev/null
@@ -1,134 +0,0 @@
-root = $root;
- $this->translator = $translator;
- }
-
- /**
- * @param DrupalStyle $io
- * @param string $files
- * @param boolean $showPath
- */
- public function generatedFiles($io, $files, $showPath = true)
- {
- $pathKey = null;
- $path = null;
- if ($showPath) {
- $pathKey = 'application.messages.path';
- $path = $this->root;
- }
- $this->showMMultiple(
- $io,
- $files,
- 'application.messages.files.generated',
- $pathKey,
- $path
- );
- }
-
- /**
- * @param DrupalStyle $io
- * @param array $files
- * @param boolean $showPath
- */
- public function copiedFiles($io, $files, $showPath = true)
- {
- $pathKey = null;
- $path = null;
- if ($showPath) {
- $pathKey = 'application.user.messages.path';
- $path = rtrim(getenv('HOME') ?: getenv('USERPROFILE'), '/\\').'/.console/';
- }
- $this->showMMultiple(
- $io,
- $files,
- 'application.messages.files.copied',
- $pathKey,
- $path
- );
- }
-
- /**
- * @param DrupalStyle $io
- * @param array $files
- * @param string $headerKey
- * @param string $pathKey
- * @param string $path
- */
- private function showMMultiple($io, $files, $headerKey, $pathKey, $path)
- {
- if (!$files) {
- return;
- }
-
- $io->writeln($this->translator->trans($headerKey));
-
- if ($pathKey) {
- $io->info(
- sprintf('%s:', $this->translator->trans($pathKey)),
- false
- );
- }
- if ($path) {
- $io->comment($path, false);
- }
- $io->newLine();
-
- $index = 1;
- foreach ($files as $file) {
- $this->showSingle($io, $file, $index);
- ++$index;
- }
- }
-
- /**
- * @param DrupalStyle $io
- * @param string $file
- * @param int $index
- */
- private function showSingle(DrupalStyle $io, $file, $index)
- {
- $io->info(
- sprintf('%s -', $index),
- false
- );
- $io->comment($file, false);
- $io->newLine();
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/StringConverter.php b/vendor/drupal/console-core/src/Utils/StringConverter.php
deleted file mode 100644
index c1c71763a..000000000
--- a/vendor/drupal/console-core/src/Utils/StringConverter.php
+++ /dev/null
@@ -1,159 +0,0 @@
- self::MAX_MACHINE_NAME) {
- $machine_name = substr($machine_name, 0, self::MAX_MACHINE_NAME);
- }
-
- return $machine_name;
- }
-
- /**
- * Converts camel-case strings to machine-name format.
- *
- * @param String $name User input
- *
- * @return String $machine_name User input in machine-name format
- */
- public function camelCaseToMachineName($name)
- {
- $machine_name = preg_replace(self::REGEX_UPPER_CASE_LETTERS, '_$1', $name);
- $machine_name = preg_replace(self::REGEX_MACHINE_NAME_CHARS, '_', strtolower($machine_name));
- $machine_name = trim($machine_name, '_');
-
- return $machine_name;
- }
-
- /**
- * Converts camel-case strings to under-score format.
- *
- * @param String $camel_case User input
- *
- * @return String
- */
- public function camelCaseToUnderscore($camel_case)
- {
- return strtolower(preg_replace(self::REGEX_CAMEL_CASE_UNDER, '$1_$2', $camel_case));
- }
-
- /**
- * Converts camel-case strings to human readable format.
- *
- * @param String $camel_case User input
- *
- * @return String
- */
- public function camelCaseToHuman($camel_case)
- {
- return ucfirst(strtolower(preg_replace(self::REGEX_CAMEL_CASE_UNDER, '$1 $2', $camel_case)));
- }
-
- /**
- * @param $human
- * @return mixed
- */
- public function humanToCamelCase($human)
- {
- return str_replace(' ', '', ucwords($human));
- }
-
- /**
- * Converts My Name to my name. For permissions.
- *
- * @param String $permission User input
- *
- * @return String
- */
- public function camelCaseToLowerCase($permission)
- {
- return strtolower(preg_replace(self::REGEX_SPACES, ' ', $permission));
- }
-
- /**
- * Convert the first character of upper case. For permissions.
- *
- * @param String $permission_title User input
- *
- * @return String
- */
- public function anyCaseToUcFirst($permission_title)
- {
- return ucfirst(preg_replace(self::REGEX_SPACES, ' ', $permission_title));
- }
-
- /**
- * @param $className
- * @return string
- */
- public function removeSuffix($className)
- {
- $suffixes = [
- 'Form',
- 'Controller',
- 'Service',
- 'Command'
- ];
-
- if (strlen($className) == 0) {
- return $className;
- }
-
- foreach ($suffixes as $suffix) {
- $length = strlen($suffix);
- if (strlen($className) <= $length) {
- continue;
- }
-
- if (substr($className, -$length) === $suffix) {
- return substr($className, 0, -$length);
- }
- }
-
- return $className;
- }
-
- /**
- * @param $input
- * @return string
- */
- public function underscoreToCamelCase($input)
- {
- return lcfirst(str_replace('_', '', ucwords($input, '_')));
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/TranslatorManager.php b/vendor/drupal/console-core/src/Utils/TranslatorManager.php
deleted file mode 100644
index 60f2b86ed..000000000
--- a/vendor/drupal/console-core/src/Utils/TranslatorManager.php
+++ /dev/null
@@ -1,247 +0,0 @@
-parser = new Parser();
- $this->filesystem = new Filesystem();
- }
-
- /**
- * @param $resource
- * @param string $name
- */
- private function addResource($resource, $name = 'yaml')
- {
- $this->translator->addResource(
- $name,
- $resource,
- $this->language
- );
- }
-
- /**
- * @param $loader
- * @param string $name
- */
- private function addLoader($loader, $name = 'yaml')
- {
- $this->translator->addLoader(
- $name,
- $loader
- );
- }
-
- /**
- * @param $language
- * @param $directoryRoot
- *
- * @return array
- */
- private function buildCoreLanguageDirectory(
- $language,
- $directoryRoot
- ) {
- $coreLanguageDirectory =
- $directoryRoot .
- sprintf(
- DRUPAL_CONSOLE_LANGUAGE,
- $language
- );
-
- if (!is_dir($coreLanguageDirectory)) {
- return $this->buildCoreLanguageDirectory('en', $directoryRoot);
- }
-
- if (!$this->coreLanguageRoot) {
- $this->coreLanguageRoot = $directoryRoot;
- }
-
- return [$language, $coreLanguageDirectory];
- }
-
- /**
- * {@inheritdoc}
- */
- public function loadCoreLanguage($language, $directoryRoot)
- {
- $coreLanguageDirectory = $this->buildCoreLanguageDirectory(
- $language,
- $directoryRoot
- );
-
- $this->loadResource(
- $coreLanguageDirectory[0],
- $coreLanguageDirectory[1]
- );
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function changeCoreLanguage($language)
- {
- return $this->loadCoreLanguage($language, $this->coreLanguageRoot);
- }
-
- /**
- * {@inheritdoc}
- */
- public function loadResource($language, $directoryRoot)
- {
- if (!is_dir($directoryRoot)) {
- return;
- }
-
- $this->language = $language;
- $this->translator = new Translator($this->language);
- $this->addLoader(new ArrayLoader(), 'array');
- $this->addLoader(new YamlFileLoader(), 'yaml');
-
- /* @TODO fallback to en */
- $finder = new Finder();
- $finder->files()
- ->name('*.yml')
- ->in($directoryRoot);
-
- foreach ($finder as $file) {
- $resource = $directoryRoot.'/'.$file->getBasename();
- $filename = $file->getBasename('.yml');
-
- // Handle application file different than commands
- if ($filename == 'application') {
- try {
- $this->loadTranslationByFile($resource, 'application');
- } catch (ParseException $e) {
- echo 'application.yml'.' '.$e->getMessage();
- }
-
- continue;
- }
- $key = 'commands.'.$filename;
- try {
- $this->loadTranslationByFile($resource, $key);
- } catch (ParseException $e) {
- echo $key.'.yml '.$e->getMessage();
- }
- }
-
- return;
- }
-
- /**
- * Load yml translation where filename is part of translation key.
- *
- * @param $resource
- * @param $resourceKey
- */
- protected function loadTranslationByFile($resource, $resourceKey = null)
- {
- $resourceParsed = $this->parser->parse(file_get_contents($resource));
-
- if ($resourceKey) {
- $parents = explode('.', $resourceKey);
- $resourceArray = [];
- $this->setResourceArray($parents, $resourceArray, $resourceParsed);
- $resourceParsed = $resourceArray;
- }
-
- $this->addResource($resourceParsed, 'array');
- }
-
- /**
- * @param $parents
- * @param $parentsArray
- * @param $resource
- *
- * @return mixed
- */
- private function setResourceArray($parents, &$parentsArray, $resource)
- {
- $ref = &$parentsArray;
- foreach ($parents as $parent) {
- $ref[$parent] = [];
- $previous = &$ref;
- $ref = &$ref[$parent];
- }
-
- $previous[$parent] = $resource;
-
- return $parentsArray;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getTranslator()
- {
- return $this->translator;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getLanguage()
- {
- return $this->language;
- }
-
- /**
- * {@inheritdoc}
- */
- public function trans($key)
- {
- return $this->translator->trans($key);
- }
-}
diff --git a/vendor/drupal/console-core/src/Utils/TranslatorManagerInterface.php b/vendor/drupal/console-core/src/Utils/TranslatorManagerInterface.php
deleted file mode 100644
index 21fdfe6f8..000000000
--- a/vendor/drupal/console-core/src/Utils/TranslatorManagerInterface.php
+++ /dev/null
@@ -1,52 +0,0 @@
-translator = $translator;
- $this->stringConverter = $stringConverter;
- }
-
- /**
- * @param array $skeletonDirs
- */
- public function setSkeletonDirs(array $skeletonDirs)
- {
- foreach ($skeletonDirs as $skeletonDir) {
- $this->addSkeletonDir($skeletonDir);
- }
- }
-
- /**
- * @param $skeletonDir
- */
- public function addSkeletonDir($skeletonDir)
- {
- if (is_dir($skeletonDir)) {
- $this->skeletonDirs[] = $skeletonDir;
- }
- }
-
- /**
- * @return array
- */
- public function getSkeletonDirs()
- {
- if (!$this->skeletonDirs) {
- $this->skeletonDirs[] = __DIR__ . '/../../templates';
- }
-
- return $this->skeletonDirs;
- }
-
- /**
- * @param string $template
- * @param array $parameters
- *
- * @return string
- */
- public function render($template, $parameters = [])
- {
- if (!$this->engine) {
- $this->engine = new \Twig_Environment(
- new \Twig_Loader_Filesystem($this->getSkeletonDirs()), [
- 'debug' => true,
- 'cache' => false,
- 'strict_variables' => true,
- 'autoescape' => false,
- ]
- );
-
- $this->engine->addFunction($this->getServicesAsParameters());
- $this->engine->addFunction($this->getServicesAsParametersKeys());
- $this->engine->addFunction($this->getArgumentsFromRoute());
- $this->engine->addFunction($this->getServicesClassInitialization());
- $this->engine->addFunction($this->getServicesClassInjection());
- $this->engine->addFunction($this->getTagsAsArray());
- $this->engine->addFunction($this->getTranslationAsYamlComment());
- $this->engine->addFilter($this->createMachineName());
- }
-
- return $this->engine->render($template, $parameters);
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getServicesAsParameters()
- {
- $servicesAsParameters = new \Twig_SimpleFunction(
- 'servicesAsParameters', function ($services) {
- $returnValues = [];
- foreach ($services as $service) {
- $returnValues[] = sprintf('%s $%s', $service['short'], $service['machine_name']);
- }
-
- return $returnValues;
- }
- );
-
- return $servicesAsParameters;
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getServicesAsParametersKeys()
- {
- $servicesAsParametersKeys = new \Twig_SimpleFunction(
- 'servicesAsParametersKeys', function ($services) {
- $returnValues = [];
- foreach ($services as $service) {
- $returnValues[] = sprintf('\'@%s\'', $service['name']);
- }
-
- return $returnValues;
- }
- );
-
- return $servicesAsParametersKeys;
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getArgumentsFromRoute()
- {
- $argumentsFromRoute = new \Twig_SimpleFunction(
- 'argumentsFromRoute', function ($route) {
- $returnValues = '';
- preg_match_all('/{(.*?)}/', $route, $returnValues);
-
- $returnValues = array_map(
- function ($value) {
- return sprintf('$%s', $value);
- }, $returnValues[1]
- );
-
- return $returnValues;
- }
- );
-
- return $argumentsFromRoute;
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getServicesClassInitialization()
- {
- $returnValue = new \Twig_SimpleFunction(
- 'serviceClassInitialization', function ($services) {
- $returnValues = [];
- foreach ($services as $service) {
- $returnValues[] = sprintf(' $this->%s = $%s;', $service['camel_case_name'], $service['machine_name']);
- }
-
- return implode(PHP_EOL, $returnValues);
- }
- );
-
- return $returnValue;
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getServicesClassInjection()
- {
- $returnValue = new \Twig_SimpleFunction(
- 'serviceClassInjection', function ($services) {
- $returnValues = [];
- foreach ($services as $service) {
- $returnValues[] = sprintf(' $container->get(\'%s\')', $service['name']);
- }
-
- return implode(','.PHP_EOL, $returnValues);
- }
- );
-
- return $returnValue;
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getTagsAsArray()
- {
- $returnValue = new \Twig_SimpleFunction(
- 'tagsAsArray', function ($tags) {
- $returnValues = [];
- foreach ($tags as $key => $value) {
- $returnValues[] = sprintf('%s: %s', $key, $value);
- }
-
- return $returnValues;
- }
- );
-
- return $returnValue;
- }
-
- /**
- * @return \Twig_SimpleFunction
- */
- public function getTranslationAsYamlComment()
- {
- $returnValue = new \Twig_SimpleFunction(
- 'yaml_comment', function (\Twig_Environment $environment, $context, $key) {
- $message = $this->translator->trans($key);
- $messages = explode("\n", $message);
- $returnValues = [];
- foreach ($messages as $message) {
- $returnValues[] = '# '.$message;
- }
-
- $message = implode("\n", $returnValues);
- $template = $environment->createTemplate($message);
-
- return $template->render($context);
- }, [
- 'needs_environment' => true,
- 'needs_context' => true,
- ]
- );
-
- return $returnValue;
- }
-
- /**
- * @return \Twig_SimpleFilter
- */
- public function createMachineName()
- {
- return new \Twig_SimpleFilter(
- 'machine_name', function ($var) {
- return $this->stringConverter->createMachineName($var);
- }
- );
- }
-}
diff --git a/vendor/drupal/console-core/src/functions.php b/vendor/drupal/console-core/src/functions.php
deleted file mode 100644
index fc44e158a..000000000
--- a/vendor/drupal/console-core/src/functions.php
+++ /dev/null
@@ -1,24 +0,0 @@
-/dev/null
-fi
diff --git a/vendor/drupal/console-core/templates/core/druplicon/1.twig b/vendor/drupal/console-core/templates/core/druplicon/1.twig
deleted file mode 100644
index 98b320c70..000000000
--- a/vendor/drupal/console-core/templates/core/druplicon/1.twig
+++ /dev/null
@@ -1,25 +0,0 @@
- /`
- +o/`
- -oooo/.
- .+oooooo/-
- ./oooooo+//::`
- `.:+ooooo/-`
- .:+ooooooo+. `...`
- ./+ooooooooo/ ./oooooo+-
- -+ooooooooooo+` -oooooooooo/ `
- `/ooooooooooooo/ +ooooooooooo. .+.
- `+oooooooooooooo+ /ooooooooooo. -oo/`
- +oooooooooooooooo- `/oooooooo+. +ooo+`
-:oooooooooooooooo+/` `-////:. `+ooooo+`
-+oooooooooooo+:.` `:+ooooooo:
-ooooooooooo/` .:+oooooooooo+
-ooooooooo+` `.-::--` :oooooooooooo
-/ooooooo/ -+oooooooo+:` -oooooooooo+
-.oooooo+` `+oooooooooooo+. /ooooooooo-
- :ooooo: /oooooooooooooo+` .oooooooo/
- /oooo- +ooooooooooooooo. `ooooooo/
- :ooo: :oooooooooooooo+ .oooooo:
- `/oo` :oooooooooooo+` /oooo/.
- ./+` .:+ooooooo/- :ooo/.
- `-` `..... `/o/-`
- `-:.`
diff --git a/vendor/drupal/console-core/templates/core/druplicon/2.twig b/vendor/drupal/console-core/templates/core/druplicon/2.twig
deleted file mode 100644
index 0f63d2a93..000000000
--- a/vendor/drupal/console-core/templates/core/druplicon/2.twig
+++ /dev/null
@@ -1,52 +0,0 @@
- .,.
- .cd:..
- .xXd,,'..
- .lXWx;;;,,..
- .,dXWXo;;;;;,,..
- .;dKWWKx:;;;;;;;,,'..
- .;oOXNXKOo;;;;;;;;;;;;,,,'..
- .:dOXWMMN0Okl;;;;;;;;;;;;;;;;,,,'..
- .,lk0NMMMMMMNKOxc;;;;;;;;;;;;;;;;;;;;,,,'..
- .'cx0XWMMMMMMMWX0kd:;;;;;;;;;;;;;;;;;;;;;;;;;,,,..
- .'cx0NMMMMMMMMMWX0Oxl;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,'..
- .;d0NMMMMMMMMMMWX0Oxl:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,...
- .:kXWMMMMMMMMMWNK0kdl:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'..
- .cONMMMMMMMMMWNX0Okoc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'.
- .;kNMMMMMMMMWNX0Okdl:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'..
- .oXMMMMMMWWXK0Oxdl:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'..
- ,oKWWWWNXKK0kxoc:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'..
- 'lOO0000OOxdlc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'''.
- .,lxkxxdolc:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,''''..
- .,;;;::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,'''''..
- .,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,'''''''.
- .';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,'''''''..
-.',;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,'''''''''..
-.,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,''''''''''..
-',;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,''''''''''''.
-,,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,''''''''''''''.
-,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,'''''''''''''''.
-,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,''''''''''''''''''
-,;;;;;;;;;;;;;;;;;;;;;;;;;;;cldxkkOkkxxdlc;;;;;;;;;;;;;;;;;;;;;;;;,,''''''''''',''''''''
-,;;;;;;;;;;;;;;;;;;;;;;;:ox0XWMMMMMMMMMWNX0kxdc;;;;;;;;;;;;;;;;,,,'''''''';cdk00Okl,''''
-,;;;;;;;;;;;;;;;;;;;;;cxKWMMMMMMMMMMMMMMMMMMMWN0xl;;;;;;;;;;,,,'''''''';lkKWMMMMMMW0c'''
-',;;;;;;;;;;;;;;;;;;:dKWMMMMMMMMMMMMMMMMMMMMMMMMMN0xl;;;;;,,'''''''';okXWMMMMMMMMMMM0:'.
-.,;;;;;;;;;;;;;;;;;:kNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0xl;''''''',:oOXWMMMMMMMMMMMMMMNd'.
-.',;;;;;;;;;;;;;;;;xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0xolccoxONMMMMMMMMMMMMMMMMMMWd'.
- .,;;;;;;;;;;;;;;;oXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNWMMMMMMMMMMMMMMMMMMMMMMXl..
- .',;;;;;;;;;;;;;;xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX0OOOKNMMMMMMMMMMMMMMMMMMMM0;.
- .',;;;;;;;;;;;;;dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWN0xl:,''',cxXWMMMMMMMMMMMMMMMMWd.
- .',;;;;;;;;;;;;lKMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKko:,'''''''''':dKWMMMMMMMMMMMMMWk,
- .',;;;;;;;;;;;;dXMMMMMMMMMMMMMMMMMMMMMMMMWX0xl;'''',;:::;,''''';oKWMMMMMMMMMMWO,
- ..',,;;;;;;;;;;o0NMMMMMMMMMMMMMMMMMMN0xdo:,''',cdO0XXXXK0kl,'''';o0WMMMMMMMNd,
- .''',,,,,,,,,,;lk0XWMMMMMMMMWNX0ko:,'''''';oONN0xdoodx0NNx,''''';lOXWWWXkc.
- ..'''''''''''''',:lloodddoolc;'''''''''',xN0dc,'''''',oK0:''''''',:clc;..
- ...''''''''''''''''''''''''''''''''''''':c,''''''''''';;''''''''''''..
- ..''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''...
- ...'''''''''''''''''''''',lxdc,'''''''''''''''''',:oxkl''''''..
- ...''''''''''''''''''':kNMNK0OxdollcccclllodxO0XX0d;'''..
- ..'''''''''''''''''',cxOKXXNWMMWWWWWWWWNXKOxo:'''..
- ...'.'''''''''''''''',;:clooodddoollc:,'''...
- ....'''''''''''''''''''''''''''.....
- ....'..''''''''''''........
-
-Originally from: https://gist.github.com/ericjsilva/aef0808c61c213a2e578
diff --git a/vendor/drupal/console-core/templates/core/elephpant/1.twig b/vendor/drupal/console-core/templates/core/elephpant/1.twig
deleted file mode 100644
index 3da143382..000000000
--- a/vendor/drupal/console-core/templates/core/elephpant/1.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-Art by Morfina
- __
-'. \
- '- \
- / /_ .---.
- / | \\,.\/--.// )
- | \// )/ /
- \ ' ^ ^ / )____.----.. 6
- '.____. .___/ \._)
- .\/. )
- '\ /
- _/ \/ ). ) (
- /# .! | /\ /
- \ C// # /'-----''/ # /
- . 'C/ | | | | |mrf ,
- \), .. .'OOO-'. ..'OOO'OOO-'. ..\(,
diff --git a/vendor/drupal/console-core/templates/core/elephpant/2.twig b/vendor/drupal/console-core/templates/core/elephpant/2.twig
deleted file mode 100644
index ed5a982c3..000000000
--- a/vendor/drupal/console-core/templates/core/elephpant/2.twig
+++ /dev/null
@@ -1,14 +0,0 @@
- Baby Elephant by Shanaka Dias
-
- _.-- ,.--.
- .' .' /
- | @ |'..--------._
- / \._/ '.
- / .-.- \
-( / \ \
- \\ '. | #
- \\ \ -. /
- :\ | )._____.' \
- " | / \ | \ )
- snd | |./' :__ \.-'
- '--'
diff --git a/vendor/drupal/console-core/templates/core/elephpant/3.twig b/vendor/drupal/console-core/templates/core/elephpant/3.twig
deleted file mode 100644
index 2c05cae81..000000000
--- a/vendor/drupal/console-core/templates/core/elephpant/3.twig
+++ /dev/null
@@ -1,12 +0,0 @@
- .-~ ~--"~-. ._ "-.
- / ./_ Y "-. \
- Y :~ ! Y
- lq p | / .|
- _ \. .-, l / |j
- ()\___) |/ \_/"; !
- \._____.-~\ . ~\. ./
- Y_ Y_. "vr"~ T
- ( ( |L j -Row
- [nn[nn..][nn..]
- ~~~~~~~~~~~~~~~~~~~~~~~
- "Bob The Elephant"
diff --git a/vendor/drupal/console-core/templates/core/elephpant/4.twig b/vendor/drupal/console-core/templates/core/elephpant/4.twig
deleted file mode 100644
index 29900abc5..000000000
--- a/vendor/drupal/console-core/templates/core/elephpant/4.twig
+++ /dev/null
@@ -1,15 +0,0 @@
- ___.-~"~-._ __....__
- .' ` \ ~"~ ``-.
- /` _ ) `\ `\
- /` a) / | P H P `\
- :` / | \
- |` ( / . `;\\
- { _.'-.;\___/' . . | \\
- { }` | / / .' \\
- { } | ' ' / :`;
- { } .\ /`~`=-.: / ``
- [ ] /`\ | `\ /(
- `.´ / /\ | `\ / \
- J / Y | | /`\ \
- / | | | | | | |
- "---" /___| /___| /__|
diff --git a/vendor/drupal/console-core/templates/core/init/config.yml.twig b/vendor/drupal/console-core/templates/core/init/config.yml.twig
deleted file mode 100644
index 19fe6fc41..000000000
--- a/vendor/drupal/console-core/templates/core/init/config.yml.twig
+++ /dev/null
@@ -1,28 +0,0 @@
-application:
- environment: 'prod'
- language: '{{language}}'
-# editor: 'vim'
- temp: '{{temp}}'
- develop: 'false'
- command: 'list'
- checked: 'false'
- clear: 'false'
- extras:
- alias: 'true'
- extend: 'true'
- config: 'true'
- chains: 'true'
- mappings: 'true'
- overrides:
- config:
- skip-validate-site-uuid: true
- remote:
- port: '22'
- user: 'drupal'
- type: 'ssh'
- options:
- learning: {{learning}}
-# target: 'site-alias.dev'
-# uri: 'multi-site.dev'
- generate-inline: {{generate_inline}}
- generate-chain: {{generate_chain}}
diff --git a/vendor/drupal/console-core/templates/core/sites/alias.yml.twig b/vendor/drupal/console-core/templates/core/sites/alias.yml.twig
deleted file mode 100644
index b17302b89..000000000
--- a/vendor/drupal/console-core/templates/core/sites/alias.yml.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{{ environment }}:
- type: {{ type }}
- root: {{ root }}
-{% if host %}
- host: {{ host }}
-{% endif %}
-{% if port %}
- port: {{ port }}
-{% endif %}
-{% if user %}
- user: {{ user }}
-{% endif %}
-{% if uri %}
- options:
- uri: {{ uri }}
-{% else %}
-# options:
-{% endif %}
-# arguments:
-{% if extra_options %}
- extra-options: '{{ extra_options }}'
-{% endif %}
diff --git a/vendor/drupal/console-en/.gitignore b/vendor/drupal/console-en/.gitignore
deleted file mode 100644
index e336886a9..000000000
--- a/vendor/drupal/console-en/.gitignore
+++ /dev/null
@@ -1,35 +0,0 @@
-# deprecation-detector
-/.rules
-
-# Composer
-/vendor
-/bin/phpunit
-/bin/jsonlint
-/bin/phpcbf
-/bin/phpcs
-/bin/validate-json
-/bin/pdepend
-/bin/php-cs-fixer
-/bin/phpmd
-PATCHES.txt
-
-# Develop
-autoload.local.php
-
-# Binaries
-/box.phar
-/console.phar
-/drupal.phar
-/drupal.phar.version
-
-# Test
-/phpunit.xml
-
-# Drupal
-/core
-/nbproject/
-
-# Splitsh
-/config/
-/PATCHES.txt
-
diff --git a/vendor/drupal/console-en/README.md b/vendor/drupal/console-en/README.md
deleted file mode 100644
index 4e0ddb433..000000000
--- a/vendor/drupal/console-en/README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# drupal-console-en
-
-## Usage
-
-Drupal Console project it's installed per each Drupal 8 website with English language by default.
-
-To install Drupal Console package in other languages check the packages available at [https://packagist.org](https://packagist.org)
-
-
-### Install Drupal Console
-
-To install the appropriate version of Drupal Console project for your drupal installation, run the following composer command
-
-```
-$ composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
-```
-
-### Install Drupal Console launcher
-
-Drupal Console launcher was created to avoid conflicts between major and minor releases. Drupal Console binary commands are available to every Drupal 8 instance on the machine.
-
-To install Drupal Console launcher globally follow the instruction below.
-
-```
-$ curl https://drupalconsole.com/installer -L -o drupal.phar
-# Or
-$ php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
-
-$mv drupal.phar /usr/local/bin/drupal
-$ chmod +x /usr/local/bin/drupal
-```
-
-### Contribute
-
-Follow these steps to contribute to the current translation:
-
-- [Project requirements](https://docs.drupalconsole.com/en/contributing/project-requirements.html)
-- [Getting the project](https://docs.drupalconsole.com/en/contributing/getting-the-project.html)
-- [Running the project](https://docs.drupalconsole.com/en/contributing/running-the-project.html)
-
-N.B: Push your changes to your forked repository in order to create PR per day to avoid any conflicts with other contributors.
diff --git a/vendor/drupal/console-en/composer.json b/vendor/drupal/console-en/composer.json
deleted file mode 100644
index 05abf4488..000000000
--- a/vendor/drupal/console-en/composer.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "drupal/console-en",
- "description": "Drupal Console English Language",
- "keywords": ["Drupal", "Console", "Development", "Symfony"],
- "homepage": "http://drupalconsole.com/",
- "type": "drupal-console-language",
- "license": "GPL-2.0-or-later",
- "authors": [
- {
- "name": "David Flores",
- "email": "dmousex@gmail.com",
- "homepage": "http://dmouse.net"
- },
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com",
- "homepage": "http://jmolivas.com"
- },
- {
- "name": "Eduardo Garcia",
- "email": "enzo@enzolutions.com",
- "homepage": "http://enzolutions.com/"
- },
- {
- "name": "Omar Aguirre",
- "email": "omersguchigu@gmail.com"
- },
- {
- "name": "Drupal Console Contributors",
- "homepage": "https://github.com/hechoendrupal/DrupalConsole/graphs/contributors"
- }
- ],
- "support": {
- "issues": "https://github.com/hechoendrupal/DrupalConsole/issues",
- "forum": "https://gitter.im/hechoendrupal/DrupalConsole",
- "docs": "https://docs.drupalconsole.com"
- }
-}
diff --git a/vendor/drupal/console-en/translations/about.yml b/vendor/drupal/console-en/translations/about.yml
deleted file mode 100644
index a23c1a418..000000000
--- a/vendor/drupal/console-en/translations/about.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-description: 'Displays basic information about Drupal Console project'
-messages:
- welcome: 'The Drupal Console is a suite of tools that you run on the CLI to:'
- welcome-feature-generate: 'Generate boilerplate code.'
- welcome-feature-interact: 'Interact with a Drupal 8 installation.'
- welcome-feature-learn: 'Learn Drupal 8.'
- links: 'Project links'
- landing: 'Landing page - "%s"'
- change-log: 'Change log at - "%s"'
- documentation: 'Documentation at - "%s"'
- support: 'Support chat room - "%s"'
- supporting-organizations: 'Supporting organizations'
- version-supported: 'Drupal supported version "%s" '
diff --git a/vendor/drupal/console-en/translations/application.yml b/vendor/drupal/console-en/translations/application.yml
deleted file mode 100644
index cf1979811..000000000
--- a/vendor/drupal/console-en/translations/application.yml
+++ /dev/null
@@ -1,93 +0,0 @@
-options:
- env: 'The Environment name'
- debug: 'Switches on debug mode'
- learning: 'Generate a verbose code output'
- generate-chain: 'Shows command options and arguments as yaml output to be used in chain command'
- generate-inline: 'Shows command options and arguments as inline command'
- generate-doc: 'Shows command options and arguments as markdown'
- root: 'Define the Drupal root to be used in command execution'
- uri: 'URI of the Drupal site to use (for multi-site environments or when running on an alternate port)'
- yes: 'Skip confirmation and proceed'
- target: 'Site name you want to interact with (for local or remote sites)'
- help: 'Display this help message'
- quiet: 'Suppress all output from the command'
- verbose: 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output, and 3 for debug'
- version: 'Display this application version'
- ansi: 'Force ANSI output'
- no-ansi: 'Disable ANSI output'
- no-interaction: 'Do not ask any interactive question'
- check-fix: 'Attempt to fix any missing configuration.'
-arguments:
- command: 'The command to execute'
-messages:
- completed: 'The command was executed successfully!'
- chain:
- generated: 'Yaml representation of this command, usage copy in i.e. `~/.console/chain/sample.yml` to execute using `chain` command, make sure your yaml file start with a `commands` root key:'
- inline:
- generated: 'Inline representation of this command:'
- generated: 'You can now start using the generated code!'
- files:
- generated: 'Generated or updated files'
- copied: 'Copied files'
- lines-code: 'Generated lines: "%s"'
- path: 'Generation path'
- learning:
- route: "In order to to create pages it is necessary to define routes for them.\nA route maps a URL path to a controller. It defines what function\nor method will be called when a URL is accessed.\nIf the user accesses http://drupal8.dev/{{ route.path }}, the routing\nsystem will look for a route with that path. In this case it will find a\nmatch, and execute the _controller callback. In this case the callback is\ndefined as a classname\n(\"\\Drupal\\{{ module }}\\Controller\\{{ class_name }}\")\nand a method (\"{{ route.method }}\")."
- autocomplete: |
- Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
- project which can be installed with your package manager of choice. Then add
- this line to your shell configuration file.
- source "$HOME/.console/console.rc" 2>/dev/null
-
- Bash or Zsh: Add this line to your shell configuration file:
- source "$HOME/.console/console.rc" 2>/dev/null
-
- Fish: Create a symbolic link
- ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish
- version: '"%s" version "%s" '
- disable:
- command:
- error: 'Command: "%s" is deprecated.'
- extra: 'You must execute: "%s" instead'
-errors:
- invalid-command: 'Command "%s", is not a valid command name.'
- renamed-command: 'Command "%s" was renamed, use "%s" instead.'
- drush-command: 'Command "%s" is a Drush command (deprecated). Drupal Console equivalent "%s" was executed instead.'
-site:
- messages:
- path: 'Site path'
- errors:
- settings: 'In order to list all of the available commands you should install drupal first.'
- directory: 'In order to list all of the available commands, you should run this against a drupal root directory.'
- not-installed: 'Drupal Console is not installed at: "%s"'
- execute-composer: 'You must execute the following composer commands:'
- missing-config-file: 'Missing configuration file, possible paths:'
- missing-config-file-command: 'Execute "drupal init" command to generate one'
-user:
- messages:
- path: 'User home path'
-
-remote:
- errors:
- passphrase-missing: 'Passphrase file is missing'
- passphrase-empty: 'Passphrase file is empty'
- private-missing: 'Private file is missing'
- private-empty: 'Private file is empty'
- private-invalid: 'Private file is invalid'
- invalid-root: 'Invalid root directory'
- console-not-found: 'Drupal Console not found on this site'
-
-gitbook:
- messages:
- title: 'Available Drupal Console Commands'
- note: 'Note'
- note-description: 'Drupal Console commands *must* be run from the root of a Drupal 8 installation'
- command: 'Drupal Console Command'
- command_description: 'The **"%s"** command "%s"'
- usage: 'Usage'
- options: 'Available options'
- option: 'Option'
- details: 'Details'
- arguments: 'Available arguments'
- argument: 'Argument'
- examples: 'Examples'
diff --git a/vendor/drupal/console-en/translations/cache.rebuild.yml b/vendor/drupal/console-en/translations/cache.rebuild.yml
deleted file mode 100644
index 3e1b5ff1d..000000000
--- a/vendor/drupal/console-en/translations/cache.rebuild.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Rebuild and clear all site caches.'
-options:
- cache: 'Only clear a specific cache.'
-messages:
- welcome: 'Welcome to the cache:rebuild command'
- rebuild: 'Rebuilding cache(s), wait a moment please.'
- completed: 'Done clearing cache(s).'
- invalid-cache: 'Cache "%s" is invalid.'
-questions:
- cache: 'Select cache.'
-examples:
- - description: Rebuild all caches
- execution: drupal cr all
- - description: Rebuild discovery cache
- execution: drupal cr discovery
diff --git a/vendor/drupal/console-en/translations/cache.tag.invalidate.yml b/vendor/drupal/console-en/translations/cache.tag.invalidate.yml
deleted file mode 100644
index dbe22a246..000000000
--- a/vendor/drupal/console-en/translations/cache.tag.invalidate.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'Invalidate cache tags.'
-options:
- tag: 'One or more tags to invalidate.'
-messages:
- start: 'Invalidating tag(s) "%s".'
- completed: 'Done invalidating tag(s).'
-examples:
- - description: Invalidate routes
- execution: drupal cti routes
- - description: Invalidate a specific node
- execution: drupal cti node:1 node_list
diff --git a/vendor/drupal/console-en/translations/chain.yml b/vendor/drupal/console-en/translations/chain.yml
deleted file mode 100644
index f292475a4..000000000
--- a/vendor/drupal/console-en/translations/chain.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Chain command execution'
-options:
- file: 'User defined file containing commands to get executed.'
-questions:
- chain-file: 'Select chain file to execute'
-messages:
- missing-file: 'You must provide a valid file path and name.'
- invalid-file: 'The file "%s" does not exist.'
- module-install: 'module:install command is not runnable inside a chain queue and must be run independently.'
- missing-environment-placeholders: 'Missing environment placeholder(s) "%s"'
- set-environment-placeholders: 'Set environment placeholders as:'
- missing-inline-placeholders: 'Missing inline placeholder(s) "%s"'
- set-inline-placeholders: 'Pass inline placeholders as:'
- select-value-for-placeholder: 'Select value for "%s" placeholder'
- enter-value-for-placeholder: 'Enter value for "%s" placeholder'
- legacy-inline: 'Update inline legacy placeholders from %{{name}} to {{name}}.'
- legacy-environment: 'Update environment legacy placeholders from ${{(NAME}} or %env(NAME)% to {{env("NAME")}}.'
- metadata-registration: |
- You should register your chain file as command by providing metadata, more info at:
- https://docs.drupalconsole.com/en/chains/registering.html
-examples:
- - description: 'Providing a file option using full path. (DEPRECATED'
- execution: |
- drupal chain \
- --file="/path/to/file/chain-file.yml"
diff --git a/vendor/drupal/console-en/translations/check.yml b/vendor/drupal/console-en/translations/check.yml
deleted file mode 100644
index b98c5bc52..000000000
--- a/vendor/drupal/console-en/translations/check.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'System requirement checker'
-messages:
- file: 'Checking requirements using file at:'
- php-invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher'
- configuration-missing: 'The configuration "%s" is missing.'
- configuration-overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".'
- extension-missing: 'The extension "%s" is missing.'
- extension-recommended: 'The extension "%s" is recommended to install.'
- success: 'Checks passed.'
diff --git a/vendor/drupal/console-en/translations/common.yml b/vendor/drupal/console-en/translations/common.yml
deleted file mode 100644
index abc9c4c1c..000000000
--- a/vendor/drupal/console-en/translations/common.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-options:
- class: 'Class name'
- events: 'Load events from the container'
- module: 'The Module name.'
- extension: 'The extension name.'
- extension-type: 'The extension type.'
- services: 'Load services from the container.'
- tags: 'Set service tags from the container.'
- inputs: 'Create inputs in a form.'
- permissions: 'Create permissions.'
-questions:
- class: 'Enter the Class name'
- module: 'Enter the module name'
- extension: 'Enter the extension name'
- extension-type: 'Enter the extension type'
- confirm: 'Do you want proceed with the operation?'
- canceled: 'The operation was cancelled.'
- events:
- message: "\nType the event name or use keyup or keydown.\nThis is optional, press enter to continue \n"
- name: 'Enter event name'
- services:
- confirm: 'Do you want to load services from the container?'
- message: "\nType the service name or use keyup or keydown.\nThis is optional, press enter to continue \n"
- name: 'Enter your service'
- roles:
- message: "\nType the role name or use keyup or keydown.\nThis is optional, press enter to continue \n"
- name: 'Enter your role'
- inputs:
- confirm: 'Do you want to generate a form structure?'
- label: 'Input label'
- machine-name: 'Input machine name'
- permission: 'Do you want to generate permissions?'
- type: 'New field type (press to stop adding fields)'
- invalid: 'Field Type "%s" is invalid.'
- description: Description
- default-value:
- default-value: 'Default value'
- checkboxes: 'Default value(s) separated by commas'
- weight: 'Weight for input item'
- title: 'Title'
- fieldset: 'Fieldset'
- new-field: 'Enter a new field properties'
-errors:
- module-dependency: 'Missing module dependency "%s" is not installed. Try module:install to install it.'
- class-name-empty: 'The Class name can not be empty'
- invalid-file-path: 'You must provide a valid file path'
- module-exist: 'Module "%s" already exist.'
- machine-name-duplicated: 'Machine name "%s" is duplicated.'
-status:
- enabled: Enabled
- disabled: Disabled
-messages:
- canceled: 'The generation was cancelled'
- drupal-core: 'Drupal Core'
- move-phar: 'Accessing console from anywhere on your system'
- quick-start: 'Download, install and serve Drupal 8'
- available-field-types: 'Available types: %s '
diff --git a/vendor/drupal/console-en/translations/complete.yml b/vendor/drupal/console-en/translations/complete.yml
deleted file mode 100644
index f36c53018..000000000
--- a/vendor/drupal/console-en/translations/complete.yml
+++ /dev/null
@@ -1 +0,0 @@
-description: 'Shell completion command list'
diff --git a/vendor/drupal/console-en/translations/composerize.yml b/vendor/drupal/console-en/translations/composerize.yml
deleted file mode 100644
index babb4c108..000000000
--- a/vendor/drupal/console-en/translations/composerize.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Converts Drupal codebase to composer.'
-options:
- show-packages: 'Show list of packages.'
- include-version: 'Include version on suggested result command.'
-messages:
- name: 'Name'
- version: 'Version'
- dependencies: 'Dependencies'
- profile: 'Profile(s) detected'
- module: 'Module(s) detected'
- theme: 'Theme(s) detected'
- from: 'From your project root:'
- execute: 'Execute this command:'
- ignore: 'To ignore third party libraries, profiles, modules and themes add to your .gitignore file:'
diff --git a/vendor/drupal/console-en/translations/config.delete.yml b/vendor/drupal/console-en/translations/config.delete.yml
deleted file mode 100644
index 08e4e3774..000000000
--- a/vendor/drupal/console-en/translations/config.delete.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Delete configuration'
-arguments:
- type: 'Configuration type.'
- name: 'Configuration name.'
-messages:
- all: 'All configuration sucessfully deleted.'
- deleted: 'Configuration "%s" sucessfully deleted.'
-errors:
- config-storage: 'Configuration type would not be loaded.'
- name: 'Configuration name must contain a value.'
- type: 'Configuration type is missing.'
- not-exists: 'The configuration "%s" does not exist.'
-warnings:
- undo: 'This action will delete all configuration permanently.'
-questions:
- sure: 'Are you sure to delete all configuration'
-examples:
- - description: 'Provide a config type and a config name'
- execution: drupal config:delete active all
-
diff --git a/vendor/drupal/console-en/translations/config.diff.yml b/vendor/drupal/console-en/translations/config.diff.yml
deleted file mode 100644
index 7b3b81ff7..000000000
--- a/vendor/drupal/console-en/translations/config.diff.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Output configuration items that are different in active configuration compared with a directory.'
-arguments:
- directory: 'The directory to diff against. If omitted, choose from Drupal config directories.'
-options:
- reverse: 'See the changes in reverse (i.e diff a directory to the active configuration).'
-questions:
- directories: 'Config directory:'
-table:
- headers:
- collection: 'Collection'
- config-name: 'Configuration item'
- operation: 'Operation'
-messages:
- no-changes: 'There are no changes.'
-examples:
- - description: 'Provide a config directory'
- execution: drupal config:diff ../config/path
-
diff --git a/vendor/drupal/console-en/translations/config.edit.yml b/vendor/drupal/console-en/translations/config.edit.yml
deleted file mode 100644
index 282e4f278..000000000
--- a/vendor/drupal/console-en/translations/config.edit.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Change a configuration object with a text editor.'
-arguments:
- config-name: 'Configuration object name, for example "user.settings".'
- editor: 'Editor, for example "vim" or "gedit".'
-questions:
- config-name: 'Choose a configuration Object'
-messages:
- no-directory: 'An error occurred while creating your directory at: "%s"'
- choose-configuration: 'Choose a configuration'
-examples:
- - description: 'Edit system cron configurations with "vim" (default editor).'
- execution: 'drupal config:edit system.cron'
- - description: 'Edit system cron configurations with "gedit".'
- execution: 'drupal config:edit system.cron gedit'
-
diff --git a/vendor/drupal/console-en/translations/config.export.content.type.yml b/vendor/drupal/console-en/translations/config.export.content.type.yml
deleted file mode 100644
index 488f2f961..000000000
--- a/vendor/drupal/console-en/translations/config.export.content.type.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-description: 'Export a specific content type and their fields.'
-arguments:
- content-type: 'Content Type to be exported'
-questions:
- content-type: 'Content Type to be exported'
- optional-config: 'Export content type in module as an optional configuration'
-messages:
- content-type-exported: 'Exporting content type'
-options:
- optional-config: 'Export content type as an optional YAML configuration in your module'
- remove-uuid: 'If set, the configuration will be exported without uuid key.'
- remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
-examples:
- - description: 'Provide a content type and module name'
- execution: |
- drupal config:export:content:type page \
- --module="demo"
- - description: 'If you want export content type provide the optional config'
- execution: |
- drupal config:export:content:type page \
- --module="demo" \
- --optional-config
-
diff --git a/vendor/drupal/console-en/translations/config.export.single.yml b/vendor/drupal/console-en/translations/config.export.single.yml
deleted file mode 100644
index 102cffe07..000000000
--- a/vendor/drupal/console-en/translations/config.export.single.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-description: 'Export a single configuration or a list of configurations as yml file(s).'
-arguments:
- name: 'Configuration name.'
-options:
- include-dependencies: 'Export dependencies of the configuration as well.'
- simple-configuration: 'Simple configuration'
- optional: 'Export config as an optional YAML configuration in your module'
- remove-uuid: 'If set, the configuration will be exported without uuid key.'
- remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
-questions:
- config-type: 'Configuration type'
- name: 'Configuration name'
- optional: 'Export config in module as an optional configuration'
- remove-uuid: 'Do you want to remove the uuid from this export?'
- remove-config-hash: 'Do you want to remove the default site hash from this export?'
-messages:
- config-not-found: 'Configuration name not found.'
- export: 'Configuration was exported at file "%s".'
- invalid-config-type: 'Invalid config type, please select one of the list'
- invalid-config-name: 'Invalid config name, please select one of the list'
- config-exported: 'Configuration(s) exported successfully'
-examples:
- - description: 'Provide config settings name to be exported'
- execution: |
- drupal config:export:single \
- --name=config.settings.name
- - description: 'if uuid and/or config hashes will be removed.'
- execution: |
- drupal config:export:single \
- --name=config.settings.name \
- --remove-uuid \
- --remove-config-hash
diff --git a/vendor/drupal/console-en/translations/config.export.view.yml b/vendor/drupal/console-en/translations/config.export.view.yml
deleted file mode 100644
index ede701833..000000000
--- a/vendor/drupal/console-en/translations/config.export.view.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-description: 'Export a view in YAML format inside a provided module to reuse in other website.'
-messages:
- view_exported: 'View exported sucessfully'
- depencies-included: 'The following module dependencies were included at "%s"'
-questions:
- view: 'View to be exported'
- optional-config: 'Export view in module as an optional configuration'
- include-module-dependencies: 'Include view module dependencies in module info YAML file'
-arguments:
- view-id: 'View ID'
-options:
- optional-config: 'Export view as an optional YAML configuration in your module'
- include-module-dependencies: 'Include module dependencies in module info YAML file'
-examples:
- - description: 'Provide a view id'
- execution: drupal config:export:view viewid
- - description: 'You can provide the interactive values like parameter.'
- execution: |
- drupal config:export:view viewid \
- --module="modulename" \
- --optional-config \
- --include-module-dependencies
-
diff --git a/vendor/drupal/console-en/translations/config.export.yml b/vendor/drupal/console-en/translations/config.export.yml
deleted file mode 100644
index 66f83289d..000000000
--- a/vendor/drupal/console-en/translations/config.export.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Export current application configuration.'
-options:
- directory: 'Define the export directory to save the configuration output.'
- tar: 'If set, the configuration will be exported to an archive file.'
- remove-uuid: 'If set, the configuration will be exported without uuid key.'
- remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
-messages:
- directory: 'The configuration was exported at "%s"'
- error: 'An error occurred while creating your directory at "%s"'
-examples:
- - description: 'Optional you can add the path to export'
- execution: |
- drupal config:export \
- --directory="path/to/export"
- - description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.'
- execution: |
- drupal config:export \
- --directory="path/to/export" \
- --tar \
- --remove-uuid \
- --remove-config-hash
-
diff --git a/vendor/drupal/console-en/translations/config.import.single.yml b/vendor/drupal/console-en/translations/config.import.single.yml
deleted file mode 100644
index 02e9569fe..000000000
--- a/vendor/drupal/console-en/translations/config.import.single.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Import a single configuration or a list of configurations.'
-options:
- file: 'The file(s) name or file(s) absolute path to import'
- directory: 'The path from where to import file(s).'
-questions:
- file: 'Enter file name or file absolute path to import'
- directory: 'Enter path from where to import files.'
-messages:
- missing-file: 'File option is missing.'
- empty-value: 'Value can not be empty'
- success: 'Configuration(s) "%s", has been imported successfully.'
-examples:
- - description: 'Providing a file option using full path.'
- execution: |
- drupal config:import:single \
- --file="/path/to/file/block.block.default_block.yml"
- - description: 'Providing file and directory options'
- execution: |
- drupal config:import:single \
- --file="block.block.default_block.yml" \
- --directory="/path/to/directory"
diff --git a/vendor/drupal/console-en/translations/config.import.yml b/vendor/drupal/console-en/translations/config.import.yml
deleted file mode 100644
index 30e1a8848..000000000
--- a/vendor/drupal/console-en/translations/config.import.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Import configuration to current application.'
-options:
- file: 'Path to an archive file of configuration to import.'
- directory: 'Path to a directory of configuration to import.'
- remove-files: 'Remove files after synchronization.'
-messages:
- config_files_imported: 'List of config files.'
- imported: 'Configuration imported successfully.'
- importing: 'Importing configuration.'
- already-imported: 'Another request may be synchronizing configuration already.'
- nothing-to-do: 'There are no changes to import.'
-examples:
- - description: 'Provide a configuration file'
- execution: |
- drupal config:import \
- --file=/path/to/config/file
- - description: 'Provide a configuration directory'
- execution: |
- drupal config:import \
- --directory=/path/to/config/dir
-
diff --git a/vendor/drupal/console-en/translations/config.override.yml b/vendor/drupal/console-en/translations/config.override.yml
deleted file mode 100644
index 94d0e37d5..000000000
--- a/vendor/drupal/console-en/translations/config.override.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Override config value in active configuration.'
-questions:
- name: 'Enter configuration name'
- key: 'Enter the configuration key'
- value: 'Enter the configuration value'
-arguments:
- name: 'Configuration name'
- key: 'Key'
- value: 'Value'
-messages:
- configuration: 'Configuration name'
- configuration-key: 'Configuration key'
- original: 'Original Value'
- updated: 'Override Value'
- invalid-name: 'Config object "%s" does not exist.'
-examples:
- - description: 'Set the Contact module flood limit to 10.'
- execution: 'drupal config:override contact.settings flood.limit 10'
-
diff --git a/vendor/drupal/console-en/translations/config.validate.yml b/vendor/drupal/console-en/translations/config.validate.yml
deleted file mode 100644
index b34ac21be..000000000
--- a/vendor/drupal/console-en/translations/config.validate.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Validate a drupal config against its schema'
-options: {}
-arguments: {}
-messages:
- success: 'Config was successfully validated'
- no-conf: 'Config with this name does not exist'
-examples:
- - description: 'Provide the configuration name.'
- execution: 'drupal config:validate configuration.name'
-
diff --git a/vendor/drupal/console-en/translations/create.comments.yml b/vendor/drupal/console-en/translations/create.comments.yml
deleted file mode 100644
index f3a7a6539..000000000
--- a/vendor/drupal/console-en/translations/create.comments.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-description: 'Create dummy comments for your Drupal 8 application.'
-help: 'The create:comments command helps you create dummy comments.'
-welcome: 'Welcome to the Drupal comments generator'
-arguments:
- node-id: 'Node ID where the comments will be created'
-options:
- limit: 'How many comments would you like to create'
- title-words: 'Maximum number of words in comment titles'
- time-range: 'How far back in time should the comments be dated'
-questions:
- node-id: 'Node ID where the comments will be created'
- content-type: 'Select content type(s) to be used on comment creation'
- limit: 'Enter how many comments would you like to generate'
- title-words: 'Enter the maximum number of words in titles'
- time-range: 'How far back in time should the comments be dated?'
- time-ranges:
- - 'Now'
- - '1 hour ago'
- - '1 day ago'
- - '1 week ago'
- - '1 month ago'
- - '1 year ago'
-messages:
- node-id: 'Node Id'
- comment-id: 'Comment Id'
- content-type: 'Content type'
- title: 'Title'
- created: 'Created Time'
- invalid-content-types: 'Content types "%s" are invalid'
- created-comments: 'Created "%s" comments successfully'
- error: 'Error creating comments: "%s"'
-examples:
- - description: 'Provide the node id where the comments will be generated.'
- execution: drupal create:comments node-id
- - description: 'Provide number of comments to generate, max title words and time range.'
- execution: |
- drupal create:comments node-id \
- --limit="2" \
- --title-words="5" \
- --time-range="1"
-
diff --git a/vendor/drupal/console-en/translations/create.nodes.yml b/vendor/drupal/console-en/translations/create.nodes.yml
deleted file mode 100644
index 34cdc2666..000000000
--- a/vendor/drupal/console-en/translations/create.nodes.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-description: 'Create dummy nodes for your Drupal 8 application.'
-help: 'The create:nodes command helps you create dummy nodes.'
-welcome: 'Welcome to the Drupal nodes generator'
-arguments:
- content-types: 'Content type(s) to be used in node creation'
-options:
- limit: 'How many nodes would you like to create'
- title-words: 'Maximum number of words in node titles'
- time-range: 'How far back in time should the nodes be dated'
-questions:
- content-type: 'Select content type(s) to be used on node creation'
- limit: 'Enter how many nodes would you like to generate'
- title-words: 'Enter the maximum number of words in titles'
- time-range: 'How far back in time should the nodes be dated?'
- time-ranges:
- - 'Now'
- - '1 hour ago'
- - '1 day ago'
- - '1 week ago'
- - '1 month ago'
- - '1 year ago'
-messages:
- node-id: 'Node Id'
- content-type: 'Content type'
- title: 'Title'
- created: 'Created Time'
- invalid-content-types: 'Content types "%s" are invalid'
- created-nodes: 'Created "%s" nodes successfully'
- error: 'Error creating nodes: "%s"'
-examples:
- - description: 'Provide the content type name.'
- execution: drupal create:nodes content-name
- - description: 'Provide the limit of publications, limit of title words, time range and language.'
- execution: |
- drupal create:nodes content-name \
- --limit="5" \
- --title-words="5" \
- --time-range="1" \
- --language="und"
-
diff --git a/vendor/drupal/console-en/translations/create.roles.yml b/vendor/drupal/console-en/translations/create.roles.yml
deleted file mode 100644
index 7584c5d9e..000000000
--- a/vendor/drupal/console-en/translations/create.roles.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Create dummy roles for your Drupal 8 application.'
-help: 'The create:roles command helps you create dummy roles.'
-welcome: 'Welcome to the Drupal roles generator'
-options:
- limit: 'How many roles would you like to create'
-questions:
- limit: 'Enter how many roles would you like to create'
-messages:
- role-id: 'Role Id'
- role-name: 'Rolename'
- created-roles: 'Created "%s" roles successfully'
- error: 'Error creating roles: "%s"'
-examples:
- - description: 'Provide roles.'
- execution: drupal create:roles
- - description: 'Provide the number of roles to create'
- execution: |
- drupal create:roles
-
diff --git a/vendor/drupal/console-en/translations/create.terms.yml b/vendor/drupal/console-en/translations/create.terms.yml
deleted file mode 100644
index be26f06cc..000000000
--- a/vendor/drupal/console-en/translations/create.terms.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-description: 'Create dummy terms for your Drupal 8 application.'
-help: 'The create:terms command helps you create dummy terms.'
-welcome: 'Welcome to the Drupal terms creator'
-arguments:
- vocabularies: 'Vocabulary(s) to be used in terms creation'
-options:
- limit: 'How many terms would you like to create'
- name-words: 'Maximum number of words in term names'
-questions:
- vocabularies: 'Select vocabulary(s) to be used on terms creation'
- limit: 'Enter how many terms would you like to create'
- name-words: 'Enter the maximum number of words in term names'
-messages:
- term-id: 'Term Id'
- vocabulary: 'Vocabulary'
- name: 'Name'
- invalid-vocabularies: 'Vocabulary(s) "%s" are invalid'
- created-terms: 'Created "%s" terms successfully'
- error: 'Error creating terms: "%s"'
-examples:
- - description: 'Provide the vocabulary term name.'
- execution: drupal create:terms vocabulary
- - description: 'Provide the limit of terms to add and limit of title words.'
- execution: |
- drupal create:terms tags \
- --limit="10" \
- --name-words="5"
-
diff --git a/vendor/drupal/console-en/translations/create.users.yml b/vendor/drupal/console-en/translations/create.users.yml
deleted file mode 100644
index 3225da4ba..000000000
--- a/vendor/drupal/console-en/translations/create.users.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-description: 'Create dummy users for your Drupal 8 application.'
-help: 'The create:users command helps you create dummy users.'
-welcome: 'Welcome to the Drupal users generator'
-arguments:
- roles: 'Role(s) to be used in user creation'
-options:
- limit: 'How many users would you like to create'
- password: 'Password to be set to users created'
- time-range: 'How far back in time should the users be dated'
-questions:
- roles: 'Select role(s) to be used on user creation'
- limit: 'Enter how many users would you like to generate'
- password: 'Enter the password to be set to users created'
- time-range: 'How far back in time should the users be dated?'
- time-ranges:
- - 'Now'
- - '1 hour ago'
- - '1 day ago'
- - '1 week ago'
- - '1 month ago'
- - '1 year ago'
-messages:
- user-id: 'User Id'
- roles: 'Roles'
- username: 'Username'
- created: 'Created Time'
- created-users: 'Created "%s" users successfully'
- error: 'Error creating users: "%s"'
-examples:
- - description: 'Provide the user role.'
- execution: drupal create:users role
- - description: 'Provide the number of users to create, password and time range to create.'
- execution: |
- drupal create:users role \
- --limit="5" \
- --password="usersnewpassword" \
- --time-range="1"
-
diff --git a/vendor/drupal/console-en/translations/create.vocabularies.yml b/vendor/drupal/console-en/translations/create.vocabularies.yml
deleted file mode 100644
index ca70cf4dc..000000000
--- a/vendor/drupal/console-en/translations/create.vocabularies.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Create dummy vocabularies for your Drupal 8 application.'
-help: 'The create:vocabularies command helps you create dummy vocabularies.'
-welcome: 'Welcome to the Drupal vocabularies creator'
-options:
- limit: 'How many vocabularies would you like to create'
- name-words: 'Maximum number of words in vocabulary names'
-questions:
- limit: 'Enter how many vocabularies would you like to create'
- name-words: 'Enter the maximum number of words in vocabulary names'
-messages:
- vocabulary-id: 'Vocabulary Id'
- name: 'Name'
- created-terms: 'Created "%s" vocabularies successfully'
- error: 'Error creating vocabularies: "%s"'
-examples:
- - description: 'Provide the number of vocabularies to create and maximum number of words in vocabulary names'
- execution: |
- drupal create:vocabularies \
- --limit="5" \
- --name-words="5"
-
diff --git a/vendor/drupal/console-en/translations/cron.execute.yml b/vendor/drupal/console-en/translations/cron.execute.yml
deleted file mode 100644
index a4f2b78be..000000000
--- a/vendor/drupal/console-en/translations/cron.execute.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Execute cron implementations by module or execute all crons'
-messages:
- module-invalid: 'Module "%s" doesn''t have an implementation of cron'
- executing-cron: 'Executing cron function of module "%s"'
- success: 'All cron implementations requested were executed successfully'
- lock: 'Attempting to re-run cron while it is already running'
-examples:
- - description: 'Execute the cron globally'
- execution: |
- drupal cron:execute
- - description: 'Execute the cron on the specified module'
- execution: |
- drupal cron:execute \
-
diff --git a/vendor/drupal/console-en/translations/cron.release.yml b/vendor/drupal/console-en/translations/cron.release.yml
deleted file mode 100644
index c7a8313f0..000000000
--- a/vendor/drupal/console-en/translations/cron.release.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-description: 'Release cron system lock to run cron again'
-messages:
- released: 'Cron lock was released successfully'
-examples:
- - description: 'Execute the cron globally'
- execution: |
- drupal cron:execute
-
diff --git a/vendor/drupal/console-en/translations/database.add.yml b/vendor/drupal/console-en/translations/database.add.yml
deleted file mode 100644
index 2fb04a14b..000000000
--- a/vendor/drupal/console-en/translations/database.add.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Add a database to settings.php'
-options:
- database: 'The database name'
- username: 'The database username'
- password: 'The database password'
- prefix: 'The database prefix'
- host: 'The database host address'
- port: 'The database host port'
- driver: 'The database driver'
-questions:
- database: 'Enter the database name'
- username: 'Enter the username to access the database'
- password: 'Enter password for the database user'
- prefix: 'Enter the database prefix'
- host: 'Enter the database host address'
- port: 'Enter the database host port'
- driver: 'Enter the database driver'
-error: 'Could not write the site settings file. Either run this command as sudo or temporarily change permissions to allow write access to settings.php.'
-examples:
- - description: 'Add a database to the settings.php'
- execution: |
- drupal database:add \
- --database=DATABASE \
- --username=USERNAME \
- --password=PASSWORD
diff --git a/vendor/drupal/console-en/translations/database.client.yml b/vendor/drupal/console-en/translations/database.client.yml
deleted file mode 100644
index b2c9a4bd7..000000000
--- a/vendor/drupal/console-en/translations/database.client.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'Launch a DB client if it''s available'
-arguments:
- database: "Database key from settings.php"
-messages:
- connection: 'Connection: "%s"'
-examples:
- - description: 'Launch the default client or could launch another regarding the specification on the argument'
- execution: |
- drupal database:client
diff --git a/vendor/drupal/console-en/translations/database.connect.yml b/vendor/drupal/console-en/translations/database.connect.yml
deleted file mode 100644
index a771d7d21..000000000
--- a/vendor/drupal/console-en/translations/database.connect.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-description: "Shows DB connection"
-arguments:
- database: "Database key from settings.php"
-messages:
- database-not-found: 'Database "%s" connection info wasn''t found'
- database-not-supported: 'Database type "%s" is not supported yet'
- database-client-not-found: 'Database client "%s" wasn''t found'
- connection: 'Connection: "%s"'
-examples:
- - description: 'Connects to an specified database, or the default if not arguments passed'
- execution: |
- drupal database:connect \
-
diff --git a/vendor/drupal/console-en/translations/database.drop.yml b/vendor/drupal/console-en/translations/database.drop.yml
deleted file mode 100644
index 6f71d05bd..000000000
--- a/vendor/drupal/console-en/translations/database.drop.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: "Drop all tables in a given database."
-help: 'The database:drop command helps you drop database tables.'
-arguments:
- database: 'Database key from settings.php'
-question:
- drop-tables: 'Confirm you really want to drop all tables in the database "%s"?'
-messages:
- table: 'Table'
- table-drop: 'Drop "%s" tables successfully'
-examples:
- - description: 'Drop the tables on the database specified on the argument'
- execution: |
- drupal database:drop \
-
diff --git a/vendor/drupal/console-en/translations/database.dump.yml b/vendor/drupal/console-en/translations/database.dump.yml
deleted file mode 100644
index 4abeb0a64..000000000
--- a/vendor/drupal/console-en/translations/database.dump.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Dump structure and contents of a database'
-arguments:
- database: 'Database key from settings.php'
-options:
- file: 'The filename for your database backup'
- gz: 'Pass this option if you want the sql result file gzipped'
-messages:
- success: 'Database exported to:'
-examples:
- - description: 'Dump default database or the one specified on the argument'
- execution: |
- drupal database:dump \
-
- - description: 'Dump in gz compressed format'
- execution: |
- drupal database:dump \
- --gz
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/database.log.clear.yml b/vendor/drupal/console-en/translations/database.log.clear.yml
deleted file mode 100644
index a5812dccb..000000000
--- a/vendor/drupal/console-en/translations/database.log.clear.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Remove events from DBLog table, filters are available'
-arguments:
- event-id: 'DBLog event ID'
-options:
- type: 'Filter events by a specific type'
- severity: 'Filter events by a specific level of severity'
- user-id: 'Filter events by a specific user id'
-messages:
- event-deleted: 'Event "%s" was deleted'
- clear-error: 'Clear process fail, please check used filters'
- clear-sucess: 'Clear of events was successfully'
-examples:
- - description: 'Clear the database log from DBLog table'
- execution: |
- drupal database:log:clear \
-
- - description: 'Clear the database log from DBLog table using filters'
- execution: |
- drupal database:log:clear \
- \
- --type=TYPE \
- --severity=SEVERITY
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/database.log.common.yml b/vendor/drupal/console-en/translations/database.log.common.yml
deleted file mode 100644
index a0afaf323..000000000
--- a/vendor/drupal/console-en/translations/database.log.common.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-options:
- type: 'Filter events by a specific type'
- severity: 'Filter events by a specific level of severity'
- user-id: 'Filter events by a specific user id'
-messages:
- event-id: 'Event ID'
- type: Type
- date: Date
- message: Message
- user: User
- severity: Severity
- invalid-severity: 'Severity type is invalid, filter was ignored'
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/database.log.poll.yml b/vendor/drupal/console-en/translations/database.log.poll.yml
deleted file mode 100644
index d7d80c614..000000000
--- a/vendor/drupal/console-en/translations/database.log.poll.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Poll the watchdog and print new log entries every x seconds'
-arguments:
- duration: 'Duration in seconds which to sleep between database reads'
-messages:
- warning: |
- Do not use in production environments
- As this script blocks you are advised to only run it on vm's with multiple cores for performance reasons
- Stop this polling mechanism before you clean/truncate the watchdog table!
- Quit with ^C
-examples:
- - description: 'Print the log entries on screen every x seconds'
- execution: |
- drupal database:log:poll \
- 100
diff --git a/vendor/drupal/console-en/translations/database.query.yml b/vendor/drupal/console-en/translations/database.query.yml
deleted file mode 100644
index 4e010a393..000000000
--- a/vendor/drupal/console-en/translations/database.query.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Executes a SQL statement directly as argument'
-arguments:
- query: 'The SQL statement to execute'
- database: 'Database key from settings.php'
-options:
- quick: 'Do not cache each query result, print each row as it is received'
- debug: 'Prints debugging information and memory and CPU usage statistics when the program exits'
- html: 'Produce HTML output'
- xml: 'Produce XML output'
- raw: 'Special characters are not escaped in the output.'
- vertical: 'Print query output rows vertically'
- batch: 'Print results using tab as the column separator, with each row on a new line. With this option, mysql does not use the history file'
-messages:
- connection: 'Connection: "%s"'
-help: 'First argument should be the SQL statement. Second argument could be the name of the affected database.'
-examples:
- - description: 'Send a database query'
- execution: |
- drupal database:query 'select * from node limit 0,1'
diff --git a/vendor/drupal/console-en/translations/database.restore.yml b/vendor/drupal/console-en/translations/database.restore.yml
deleted file mode 100644
index b11d5f2b8..000000000
--- a/vendor/drupal/console-en/translations/database.restore.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Restore structure and contents of a database.'
-arguments:
- database: 'Database key from settings.php'
-options:
- file: 'The filename for your database backup file. If using a .sql.gz file, the gunzip command needs to be installed.'
-messages:
- success: 'Database imported from:'
- no-file: 'Missing file option'
-help: 'Restore structure and contents of a database.'
-examples:
- - description: 'Restore the database file dump to the database default or another one specified'
- execution: |
- drupal database:restore \
- --file='/srv/dump/db.sql'
diff --git a/vendor/drupal/console-en/translations/debug.breakpoints.yml b/vendor/drupal/console-en/translations/debug.breakpoints.yml
deleted file mode 100644
index e88c54fed..000000000
--- a/vendor/drupal/console-en/translations/debug.breakpoints.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-description: 'Displays breakpoints available in application'
-options:
- group-name: 'Enter Breakpoint Group Name'
-messages:
- name: 'Extensions with breakpoints'
-examples:
- - description: 'Provide a group name.'
- execution: drupal debug:breakpoints bartik
-examples:
- - description: 'Displays the breakpoints available on the site'
- execution: |
- drupal debug:breakpoints
diff --git a/vendor/drupal/console-en/translations/debug.cache.context.yml b/vendor/drupal/console-en/translations/debug.cache.context.yml
deleted file mode 100644
index be9ec82e8..000000000
--- a/vendor/drupal/console-en/translations/debug.cache.context.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'Displays current cache context for the application.'
-messages:
- code: 'Context ID'
- label: 'Label'
- class: 'Class path'
-examples:
- - description: 'Displays cache context'
- execution: |
- drupal debug:cache:context
diff --git a/vendor/drupal/console-en/translations/debug.chain.yml b/vendor/drupal/console-en/translations/debug.chain.yml
deleted file mode 100644
index a74e31df1..000000000
--- a/vendor/drupal/console-en/translations/debug.chain.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-description: 'List available chain files.'
-messages:
- directory: 'Directory'
- file: 'File name.'
- command: 'Command name.'
- no-files: 'No chain files found.'
diff --git a/vendor/drupal/console-en/translations/debug.config.settings.yml b/vendor/drupal/console-en/translations/debug.config.settings.yml
deleted file mode 100644
index 34087fbe4..000000000
--- a/vendor/drupal/console-en/translations/debug.config.settings.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'Displays current key:value on settings file.'
-help: 'The debug:config:settings command helps you displaying current key:value on settings file.'
-welcome: 'Welcome to the Drupal Config Settings Debug command'
-messages:
- current: 'Current Key:value on settings file'
-examples:
- - description: 'Displays key:value as per the settings file'
- execution: |
- drupal debug:config:settings
diff --git a/vendor/drupal/console-en/translations/debug.config.validate.yml b/vendor/drupal/console-en/translations/debug.config.validate.yml
deleted file mode 100644
index e6d78eb06..000000000
--- a/vendor/drupal/console-en/translations/debug.config.validate.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Validate a schema implementation before a module is installed.'
-help: 'Helper function to validate a schema implementation before a module is installed. Specify the config and the schema file paths as arguments and validation will be run against them, making schema easier to debug without time consuming installs'
-options: {}
-arguments: {}
-messages:
- noConfFile: 'Config file at the specified path does not exist'
- noConfSchema: 'Config schema at the specified path does not exist'
- noSchemaName: 'Could not find schema definition in schema file. Using definition name:'
-examples:
- - description: 'Validates a schema'
- execution: |
- drupal debug:config:validate \
- /path/to/file \
- /path/to/schema-filepath
diff --git a/vendor/drupal/console-en/translations/debug.config.yml b/vendor/drupal/console-en/translations/debug.config.yml
deleted file mode 100644
index d471355f4..000000000
--- a/vendor/drupal/console-en/translations/debug.config.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'List configuration objects names and single configuration object.'
-arguments:
- name: 'Configuration object name, for example "system.site".'
-options:
- show-overridden: 'Show overridden configurations.'
-errors:
- not-exists: 'The configuration "%s" does not exist.'
-
-examples:
- - description: 'List all configuration object names.'
- execution: 'drupal debug:config'
- - description: 'Display system site configurations values.'
- execution: 'drupal debug:config system.site'
- - description: 'List all system configuration names.'
- execution: 'drupal debug:config | grep system'
- - description: 'List all configuration including overridden values.'
- execution: 'drupal debug:config --show-overridden'
diff --git a/vendor/drupal/console-en/translations/debug.container.yml b/vendor/drupal/console-en/translations/debug.container.yml
deleted file mode 100644
index 9a2e74001..000000000
--- a/vendor/drupal/console-en/translations/debug.container.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Displays current services for an application.'
-arguments:
- service: 'Service name.'
- method: 'Method name.'
- arguments: 'Array of Arguments in CSV or JSON format.'
-options:
- tag: 'Service tag '
-messages:
- service-id: 'Service ID'
- class-name: 'Class Name'
- service: 'Service'
- class: 'Class'
- interface: 'Interface(s)'
- parent: 'Parent class'
- variables: 'Variables'
- methods: 'Methods'
- arguments: 'Arguments'
- method: 'Method'
- return: 'Return'
-errors:
- method-not-exists: 'This method doesn''t exists in this service.'
-examples:
- - description: 'Displays the views.views_data_helper services'
- execution: |
- drupal debug:container views.views_data_helper
diff --git a/vendor/drupal/console-en/translations/debug.cron.yml b/vendor/drupal/console-en/translations/debug.cron.yml
deleted file mode 100644
index cf931e60f..000000000
--- a/vendor/drupal/console-en/translations/debug.cron.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-description: 'List of modules implementing a cron'
-messages:
- module-list: 'Modules implementing a cron method'
- module: Module
-examples:
- - description: 'This will show a list with modules implementing the cron hook'
- execution: |
- drupal debug:cron
diff --git a/vendor/drupal/console-en/translations/debug.database.log.yml b/vendor/drupal/console-en/translations/debug.database.log.yml
deleted file mode 100644
index fb23aaf64..000000000
--- a/vendor/drupal/console-en/translations/debug.database.log.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Displays current log events for the application'
-arguments:
- event-id: 'DBLog event ID'
-options:
- asc: 'List events in ascending order'
- limit: 'Limit results to a specific number'
- offset: 'Starting point of a limit'
- yml: 'Print in a yml style'
-messages:
- not-found: 'DBLog event "%s" wasn''t found'
-examples:
- - description: 'List all the entries on the log'
- execution: |
- drupal debug:database:log
- - description: 'List specific log entry by Event ID'
- execution: |
- drupal debug:database:log 21228
diff --git a/vendor/drupal/console-en/translations/debug.database.table.yml b/vendor/drupal/console-en/translations/debug.database.table.yml
deleted file mode 100644
index 8258c29b7..000000000
--- a/vendor/drupal/console-en/translations/debug.database.table.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Show all tables in a given database.'
-help: 'The debug:database:table command helps you debug database tables.'
-arguments:
- table: 'Table to debug'
-options:
- database: 'Database key from settings.php'
-messages:
- table-show: 'Showing tables for "%s" database'
- table: 'Table'
- column: 'Column'
- type: 'Type'
-examples:
- - description: 'Show all tables in a database'
- execution: |
- drupal debug:database:table
- - description: 'Show fields in the node table or another specified in the argument'
- execution: |
- drupal debug:database:table node
diff --git a/vendor/drupal/console-en/translations/debug.entity.yml b/vendor/drupal/console-en/translations/debug.entity.yml
deleted file mode 100644
index f217073ba..000000000
--- a/vendor/drupal/console-en/translations/debug.entity.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-description: 'Debug entities available in the system'
-help: 'The debug:entity command helps get a list of entities.'
-arguments:
-questions:
-messages:
-table-headers:
- entity-name: 'Entity name'
- entity-type: 'Entity type'
-examples:
- - description: 'Displays the available entities'
- execution: |
- drupal debug:entity
diff --git a/vendor/drupal/console-en/translations/debug.event.yml b/vendor/drupal/console-en/translations/debug.event.yml
deleted file mode 100644
index e9197b33f..000000000
--- a/vendor/drupal/console-en/translations/debug.event.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-description: 'Displays current events '
-help: 'The debug:event command helps you debug events.'
-arguments:
- event: 'Event to debug'
-messages:
- event: Event Name
- class: 'Class'
- method: 'Method'
- no-events: 'This event does not exist, try to execute command: debug:event'
-examples:
- - description: 'List all the events that could be debugged'
- execution: |
- drupal debug:evet
- - description: 'Show the information for the kernel.request event'
- execution: |
- drupal debug:event kernel.request
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/debug.features.yml b/vendor/drupal/console-en/translations/debug.features.yml
deleted file mode 100644
index 5ef07c5d8..000000000
--- a/vendor/drupal/console-en/translations/debug.features.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'List registered features.'
-help: 'List registered features.'
-arguments:
- bundle: 'Bundle name'
-messages:
- bundle: 'Bundle'
- name: 'Name'
- machine-name: 'Machine Name'
- status: 'Status'
- state: 'State'
-
diff --git a/vendor/drupal/console-en/translations/debug.image.styles.yml b/vendor/drupal/console-en/translations/debug.image.styles.yml
deleted file mode 100644
index 0aff91955..000000000
--- a/vendor/drupal/console-en/translations/debug.image.styles.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'List image styles on the site'
-messages:
- styles-list: 'Image Styles defined in the site'
- styles-label: 'Label'
- styles-name: 'Machine Name'
-examples:
- - description: 'List all images styles on the site'
- execution: |
- drupal debug:image:styles
diff --git a/vendor/drupal/console-en/translations/debug.libraries.yml b/vendor/drupal/console-en/translations/debug.libraries.yml
deleted file mode 100644
index c431b65c9..000000000
--- a/vendor/drupal/console-en/translations/debug.libraries.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Displays libraries available in application'
-options:
- name: 'Extension or Library Name'
-messages:
- extension: 'Extension'
- library: 'Library'
- info: 'Library Information'
-examples:
- - description: 'List all extensions with libraries'
- execution: |
- drupal debug:libraries
- - description: 'List block extension libraries'
- execution: |
- drupal debug:libraries block
- - description: 'List block/drupal.block library'
- execution: |
- drupal debug:libraries block/drupal.block
diff --git a/vendor/drupal/console-en/translations/debug.migrate.yml b/vendor/drupal/console-en/translations/debug.migrate.yml
deleted file mode 100644
index 779730f35..000000000
--- a/vendor/drupal/console-en/translations/debug.migrate.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-description: 'Display current migration available for the application'
-arguments:
- tag: 'Migrate tag'
-messages:
- id: 'Migration Id'
- description: Description
- no-migrations: 'There aren''t migrations available try to execute command: migrate:setup:migrations'
- tags: Tags
-examples:
- - description: 'Displays current migration'
- execution: |
- drupal debug:migrate
diff --git a/vendor/drupal/console-en/translations/debug.module.yml b/vendor/drupal/console-en/translations/debug.module.yml
deleted file mode 100644
index 034d88adf..000000000
--- a/vendor/drupal/console-en/translations/debug.module.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Displays current modules available for application'
-module: 'Module name'
-options:
- status: 'Module status [installed|uninstalled]'
- type: 'Module type [core|no-core]'
-messages:
- id: ID
- name: Name
- status: Status
- origin: Origin
- package: Package
- installed: Installed
- uninstalled: Uninstalled
- version: Version
- schema-version: 'Schema version'
- total-downloads: 'Total installs'
- total-monthly: 'Monthly installs'
- total-daily: 'Daily installs'
- no-results: 'Module "%s" was not found in the repository'
-examples:
- - description: 'Display all installed modules'
- execution: 'drupal mod --status=installed'
- - description: 'Display all installed and no core modules'
- execution: 'drupal mod --status=installed --type=no-core'
diff --git a/vendor/drupal/console-en/translations/debug.multisite.yml b/vendor/drupal/console-en/translations/debug.multisite.yml
deleted file mode 100644
index 4e1fbb40e..000000000
--- a/vendor/drupal/console-en/translations/debug.multisite.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'List all multi-sites available in system'
-help: 'The debug:multisite list all known multi-sites.'
-messages:
- no-multisites: 'No multi-sites configured'
- site: 'Site'
- directory: 'Directory'
- site-format: 'Sites are written using the format: ..'
-examples:
- - description: 'Displays multi-site information'
- execution: |
- drupal debug:multisite
diff --git a/vendor/drupal/console-en/translations/debug.permission.yml b/vendor/drupal/console-en/translations/debug.permission.yml
deleted file mode 100644
index aade16bdc..000000000
--- a/vendor/drupal/console-en/translations/debug.permission.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Displays all user permissions.'
-help: |
- Display all user permissions and also list all user permissions from a specific user role.
-
- List all user permissions:
- drupal debug:permission
-
- List all user permissions from a user role
- drupal debug:permission authenticated
-
-arguments:
- role: 'User role'
-messages:
- role-error: 'Role "%s" does not exist. Please use an existing user role.'
-table-headers:
- permission-name: 'Permission name'
- permission-label: 'Permission Label'
- permission-role: 'Role'
-examples:
- - description: 'Displays all the permissions availables on the site'
- execution: |
- drupal debug:permission
diff --git a/vendor/drupal/console-en/translations/debug.plugin.yml b/vendor/drupal/console-en/translations/debug.plugin.yml
deleted file mode 100644
index 8553725ed..000000000
--- a/vendor/drupal/console-en/translations/debug.plugin.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-description: 'Displays all plugin types.'
-help: |
- Display all plugin types, plugin instances of a specific type, or the definition for a specific plugin.
-
- List all plugin types:
- drupal debug:plugin
-
- List all instances of the image effect plugin type:
- drupal debug:plugin image.effect
-
- Show the definition for the image convert plugin:
- drupal debug:plugin image.effect image_convert
-
- NOTE: Only plugin types exposed through services are supported. When developing a custom plugin type, expose it as a service by adding it to modulename.services.yml with the name "plugin.manager.PLUGIN_TYPE".
-arguments:
- type: 'Plugin type'
- id: 'Plugin ID'
-errors:
- plugin-type-not-found: 'Plugin type "%s" not found. No service available for that type.'
-messages:
- plugin-info: 'Plugin additional information'
-table-headers:
- plugin-type-name: 'Plugin type'
- plugin-type-class: 'Plugin manager class'
- plugin-id: 'Plugin ID'
- plugin-class: 'Plugin class'
- definition-key: 'Key'
- definition-value: 'Value'
- setting: 'Setting'
-examples:
- - description: 'Displays a list with all the plugins on the current site'
- execution: |
- drupal debug:plugin
- - description: 'Displays block plugin information'
- execution: |
- drupal debug:plugin block
- - description: 'Displays block broken information'
- execution: |
- drupal debug:plugin block broken
diff --git a/vendor/drupal/console-en/translations/debug.queue.yml b/vendor/drupal/console-en/translations/debug.queue.yml
deleted file mode 100644
index 667e35228..000000000
--- a/vendor/drupal/console-en/translations/debug.queue.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'Displays the queues of your application'
-messages:
- queue: 'Queue'
- items: 'Items'
- class: 'Class'
-examples:
- - description: 'Displays the queues of the application'
- execution: |
- drupal debug:queue
diff --git a/vendor/drupal/console-en/translations/debug.rest.yml b/vendor/drupal/console-en/translations/debug.rest.yml
deleted file mode 100644
index 6c6f101cd..000000000
--- a/vendor/drupal/console-en/translations/debug.rest.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Display current rest resource for the application'
-arguments:
- resource-id: 'Rest ID'
-options:
- status: 'Rest resource status enabled | disabled'
-messages:
- id: 'Rest ID'
- label: Label
- canonical-url: 'Canonical URL'
- status: Status
- provider: Provider
- enabled: Enabled
- disabled: Disabled
- rest-state: 'REST States'
- supported-formats: 'Supported Formats'
- supported-auth: 'Supported Authentication Providers'
- not-found: 'Rest resource "%s" not found'
-examples:
- - description: 'Displays rest hooks'
- execution: |
- drupal debug:rest
diff --git a/vendor/drupal/console-en/translations/debug.roles.yml b/vendor/drupal/console-en/translations/debug.roles.yml
deleted file mode 100644
index b1bb15ae2..000000000
--- a/vendor/drupal/console-en/translations/debug.roles.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Displays current roles for the application'
-help: 'The debug:roles command helps you get current roles.'
-welcome: 'Welcome to the Drupal roles debug'
-messages:
- role-id: 'Role ID'
- role-name: 'Role Name'
-examples:
- - description: 'Roles list on the site'
- execution: |
- drupal debug:roles
diff --git a/vendor/drupal/console-en/translations/debug.router.yml b/vendor/drupal/console-en/translations/debug.router.yml
deleted file mode 100644
index 1341a87ee..000000000
--- a/vendor/drupal/console-en/translations/debug.router.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-description: 'Displays current routes for the application or information for a particular route'
-arguments:
- route-name: 'Route names'
-messages:
- name: 'Route name'
- class: 'Class path'
- route: Route
- path: Path
- defaults: Defaults
- requirements: Requirements
- options: Options
-examples:
- - description: 'Displays current routes for the application'
- execution: 'drupal rod'
- - description: 'Displays details for the route user.page (/user)'
- execution: 'drupal rod user.page'
-examples:
- - description: 'Shows the routes list on the site'
- execution: |
- drupal debug:router
- - description: 'Display information on the user.login'
- execution: |
- drupal debug:router user.login
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/debug.settings.yml b/vendor/drupal/console-en/translations/debug.settings.yml
deleted file mode 100644
index 725bf0f11..000000000
--- a/vendor/drupal/console-en/translations/debug.settings.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'List user Drupal Console settings.'
-messages:
- config-key: 'Config key'
- config-value: 'Config value'
- config-file: 'Config file'
-examples:
- - description: 'List user Drupal Console settings.'
- execution: |
- drupal debug:settings
diff --git a/vendor/drupal/console-en/translations/debug.site.yml b/vendor/drupal/console-en/translations/debug.site.yml
deleted file mode 100644
index e7f37b885..000000000
--- a/vendor/drupal/console-en/translations/debug.site.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'List all known local and remote sites.'
-help: 'The debug:site list all known local and remote sites.'
-messages:
- site: 'Site'
- host: 'Host'
- root: 'Root'
- invalid-sites: 'No sites defined.'
- invalid-sites-using: |
- Using a site alias requires local configuration, more info at:
- https://docs.drupalconsole.com/en/alias/using-site-alias.html
- invalid-site: 'Invalid site name'
- private-key: 'Error with private key'
- connect-error: 'Error connecting to remote machine'
-options:
- target: 'Target'
- property: 'Property'
-examples:
- - description: 'List all known local and remote sites.'
- execution: |
- drupal debug:site
diff --git a/vendor/drupal/console-en/translations/debug.state.yml b/vendor/drupal/console-en/translations/debug.state.yml
deleted file mode 100644
index 9d995a2f4..000000000
--- a/vendor/drupal/console-en/translations/debug.state.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-description: 'Show the current State keys.'
-help: 'Show the current State keys.'
-arguments:
- key: 'The State key to debug.'
-messages:
- key: 'The State key'
-examples:
- - description: 'List of the states on the site'
- execution: |
- drupal debug:state
- - description: 'Displays a detail of the state install_task tok from the list of states'
- execution: |
- drupal debug:state install_task
diff --git a/vendor/drupal/console-en/translations/debug.test.yml b/vendor/drupal/console-en/translations/debug.test.yml
deleted file mode 100644
index 3299674aa..000000000
--- a/vendor/drupal/console-en/translations/debug.test.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'List Test Units available for the application.'
-help: 'List Test Units available for the application.'
-arguments:
- test-class: 'Test Class'
-options:
- group: Group
-messages:
- class: 'Test Class'
- description: Description
- group: Group
- type: 'Test Type'
- missing-dependency: 'Missing dependency'
- methods: 'Test methods'
- not-found: 'Debug wasn''t found, try enclosure test id between double quotes.'
- success-groups: 'All testing groups were listed sucessfully, use the group argument to filter Test unit by group i.e $ drupal debug:test Url'
- success-group: 'All test units for group "%s" were listed sucessfully'
-examples:
- - description: ''
- execution: |
- drupal debug:test
diff --git a/vendor/drupal/console-en/translations/debug.theme.keys.yml b/vendor/drupal/console-en/translations/debug.theme.keys.yml
deleted file mode 100644
index 976ce004c..000000000
--- a/vendor/drupal/console-en/translations/debug.theme.keys.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Displays all theme keys provided by hook_theme functions'
-help: |
- Display all theme keys, or the definition for a specific theme key.
-
- List all theme keys:
- drupal debug:theme:keys
-
- Show the definition for the item_list theme key:
- drupal debug:theme:keys item_list
-arguments:
- key: 'Key'
-table-headers:
- key: 'Key'
- provider-type: 'Provider type'
- provider: 'Provider'
- value: 'Value'
-provider-types:
- module: 'Module'
- base-theme-engine: 'Base theme engine'
- base-theme: 'Base theme'
- theme-engine: 'Theme engine'
- theme: 'Theme'
diff --git a/vendor/drupal/console-en/translations/debug.theme.yml b/vendor/drupal/console-en/translations/debug.theme.yml
deleted file mode 100644
index fac025800..000000000
--- a/vendor/drupal/console-en/translations/debug.theme.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Displays current themes for the application'
-arguments:
- theme: 'Specific theme to debug'
-messages:
- theme-id: 'Id'
- theme-name: 'Name'
- status: 'Status'
- version: 'Version'
- installed: 'Installed'
- uninstalled: 'Uninstalled'
- default-theme: 'Default theme'
- properties: 'Properties'
- regions: 'Regions'
- invalid-theme: 'Theme "%s" is invalid'
- theme-properties: 'Properties'
-examples:
- - description: 'List of themes on the site'
- execution: |
- drupal debug:theme
- - description: 'Bartik theme information'
- execution: |
- drupal debug:theme bartik
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/debug.update.yml b/vendor/drupal/console-en/translations/debug.update.yml
deleted file mode 100644
index 9ed7fc781..000000000
--- a/vendor/drupal/console-en/translations/debug.update.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Displays current updates available for the application'
-messages:
- no-updates: 'No pending updates'
- severity: 'Severity'
- title: 'Title'
- value: 'Value'
- description: 'Description'
- requirements-error: 'The following requirement weren''t completed'
- module-list: 'Modules with pending updates'
- module-list-post-update: 'Modules with pending post updates'
- module: 'Module'
- update-n: 'Update N'
- post-update: 'Post update function'
-examples:
- - description: 'List of pending updates'
- execution: |
- drupal debug:update
diff --git a/vendor/drupal/console-en/translations/debug.user.yml b/vendor/drupal/console-en/translations/debug.user.yml
deleted file mode 100644
index 29cb406f1..000000000
--- a/vendor/drupal/console-en/translations/debug.user.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Displays current users for the application'
-help: 'The debug:user command helps you get current users.'
-welcome: 'Welcome to the Drupal user debug'
-options:
- roles: 'Roles to filter debug'
- limit: 'How many users would you like to be listed in debug'
- uid: 'Filters the result list by uids [between quotes separated by spaces]'
- username: 'Filters the result list by user-names [between quotes separated by spaces]'
- mail: 'Filters the result list by user''s e-mail [between quotes separated by spaces]'
-questions:
- roles: 'Select role(s) to be used to filter user debug list'
- limit: 'Enter how many users would you like to show'
-messages:
- user-id: 'User ID'
- username: 'Username'
- roles: 'Roles'
- status: 'Status'
-examples:
- - description: 'Users list on the site'
- execution: |
- drupal debug:user
diff --git a/vendor/drupal/console-en/translations/debug.views.plugins.yml b/vendor/drupal/console-en/translations/debug.views.plugins.yml
deleted file mode 100644
index b3b9b42a3..000000000
--- a/vendor/drupal/console-en/translations/debug.views.plugins.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-description: 'Displays current views plugins for the application'
-arguments:
- type: 'Filter views plugins by type'
-messages:
- type: 'Type'
- name: 'Name'
- provider: 'Provider'
- views: 'Views'
-examples:
- - description: 'List of views plugins'
- execution: |
- drupal debug:views:plugins
diff --git a/vendor/drupal/console-en/translations/debug.views.yml b/vendor/drupal/console-en/translations/debug.views.yml
deleted file mode 100644
index 91b877ede..000000000
--- a/vendor/drupal/console-en/translations/debug.views.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Displays current views resources for the application'
-arguments:
- view-id: 'View ID'
- view-tag: 'View tag'
- view-status: 'View status (Enabled|Disabled)'
-messages:
- view-id: 'View ID'
- view-name: 'View name'
- description: Description
- tag: Tag
- status: Status
- path: Path
- not-found: 'View "%s" wasn''t found.'
- display-list: 'Display list'
- display-id: ID
- display-name: Name
- display-description: Description
- display-paths: Paths
-examples:
- - description: 'List of views on the site'
- execution: |
- drupal debug:views
diff --git a/vendor/drupal/console-en/translations/devel.dumper.yml b/vendor/drupal/console-en/translations/devel.dumper.yml
deleted file mode 100644
index e27a51881..000000000
--- a/vendor/drupal/console-en/translations/devel.dumper.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-messages:
- change-devel-dumper-plugin: 'Change the devel dumper plugin'
- name-devel-dumper-plugin: 'Name of the devel dumper plugin'
- devel-must-be-installed: 'Devel must be installed'
- select-debug-dumper: 'Select a Debug Dumper'
- dumper-not-exist: 'Dumper does not exist'
- devel-dumper-set: 'Devel Dumper set to: "%s"'
diff --git a/vendor/drupal/console-en/translations/docker.init.yml b/vendor/drupal/console-en/translations/docker.init.yml
deleted file mode 100644
index 95f79c02d..000000000
--- a/vendor/drupal/console-en/translations/docker.init.yml
+++ /dev/null
@@ -1 +0,0 @@
-description: 'Create a docker-compose.yml file'
diff --git a/vendor/drupal/console-en/translations/dotenv.init.yml b/vendor/drupal/console-en/translations/dotenv.init.yml
deleted file mode 100644
index deec7eeea..000000000
--- a/vendor/drupal/console-en/translations/dotenv.init.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-description: 'Add support and required config to work with an .env file'
-messages:
- template-env: |
- This file is a "template" of which env vars need to be defined
- for your application, use only on development stages.
- Create real environment variables when deploying to production.
- load-from-env: |
- If not using real environment variables.
- Make sure you add the dependency using composer
-
- Drupal 8.5 and up versions `composer require symfony/dotenv`
- if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {
- $dotenv = new \Symfony\Component\Dotenv\Dotenv(dirname(DRUPAL_ROOT));
- $dotenv->load();
- }
-
- Drupal 8.4 and minor versions `composer require vlucas/phpdotenv`
- if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {
- $dotenv = new \Dotenv\Dotenv(dirname(DRUPAL_ROOT));
- $dotenv->load();
- }
- load-settings: |
- # Load key/value settings
- $settings_drupal = array_filter(
- $_SERVER,
- function($key) {
- return strpos($key, 'SETTINGS_') === 0;
- },
- ARRAY_FILTER_USE_KEY
- );
-
- # Set key/value settings
- foreach ($settings_drupal as $name => $value) {
- if (substr($name, 0, 9) === 'SETTINGS_') {
- $key = strtolower(substr($name, 9));
- $settings['settings'][$key] = $value;
- }
- }
diff --git a/vendor/drupal/console-en/translations/drush.yml b/vendor/drupal/console-en/translations/drush.yml
deleted file mode 100644
index 7a398a911..000000000
--- a/vendor/drupal/console-en/translations/drush.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-description: 'Drupal Console equivalents'
-messages:
- not-found: 'Drush command not found'
diff --git a/vendor/drupal/console-en/translations/elephpant.yml b/vendor/drupal/console-en/translations/elephpant.yml
deleted file mode 100644
index d9e4499b6..000000000
--- a/vendor/drupal/console-en/translations/elephpant.yml
+++ /dev/null
@@ -1 +0,0 @@
-description: 'Elephpants are cute ...'
diff --git a/vendor/drupal/console-en/translations/entity.delete.yml b/vendor/drupal/console-en/translations/entity.delete.yml
deleted file mode 100644
index e465677e2..000000000
--- a/vendor/drupal/console-en/translations/entity.delete.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Delete an specific entity'
-help: 'The entity:delete command helps you delete entities.'
-arguments:
- entity-definition-id: 'Entity definition id'
- entity-id: 'Entity ID to be deleted'
-options:
- all: 'Delete all entities of the given type.'
-questions:
- entity-type: 'Enter the Entity type'
- entity-definition-id: 'Enter the Entity definitin id'
- entity-id: 'Enter the Entity ID to be deleted'
-messages:
- confirm-delete-all: 'Do you want to delete all entities of type "%s" ("%d")?'
- deleted: 'Entity "%s" with id "%s" was deleted successfully'
- deleted-all: 'All entities of type "%s" ("%d") were deleted.'
-examples:
- - description: 'Delete entity type content using node id'
- execution: |
- drupal entity:delete node 1
diff --git a/vendor/drupal/console-en/translations/exec.yml b/vendor/drupal/console-en/translations/exec.yml
deleted file mode 100644
index 9f4d52c33..000000000
--- a/vendor/drupal/console-en/translations/exec.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-description: 'Execute an external command.'
-arguments:
- bin: 'Executable command.'
-options:
- working-directory: 'The current working directory.'
-messages:
- success: 'Executed the command.'
- invalid-bin: 'Error executing the command.'
- missing-bin: 'Provide an executable command.'
- binary-not-found: 'Unable to find the binary "%s" to execute.'
- working-directory: 'Working directory'
- executing-command: 'Executing command'
-
diff --git a/vendor/drupal/console-en/translations/features.import.yml b/vendor/drupal/console-en/translations/features.import.yml
deleted file mode 100644
index 1de364230..000000000
--- a/vendor/drupal/console-en/translations/features.import.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Import module config.'
-help: ''
-options:
- bundle: 'Bundle name'
-arguments:
- packages: 'Package name'
-questions:
- packages: 'Enter package name to import'
-messages:
- no-packages: 'No packages available.'
- not-available: 'Package "%s", not available.'
- importing: 'Importing package "%s".'
- uninstall: 'Package "%s" already installed.'
- reverting: 'Reverting package "%s".'
- nothing: 'Nothing to import.'
diff --git a/vendor/drupal/console-en/translations/field.info.yml b/vendor/drupal/console-en/translations/field.info.yml
deleted file mode 100644
index adcacbc17..000000000
--- a/vendor/drupal/console-en/translations/field.info.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'View information about fields.'
-help: 'View information about fields.'
-options:
- detailed: 'Extended output with machine names and descriptions'
- entity: 'Restrict to a specific fieldabe entity type, for example: node, comment, taxonomy_term, shortcut, block_content, contact_message'
- bundle: 'Restrict to a specific bundle type, for example: article'
-messages:
- fields-none: 'No fields found'
- entity-type: 'Fieldable entity type'
- bundle-type: 'Bundle type'
- not-found: 'not found'
- in-entity-type: 'in entity type'
- in-bundle-type: 'in bundle type'
-table:
- header-name: 'Field label'
- header-type: 'Field type'
- header-desc: 'Field description'
- header-usage: 'Also used in'
diff --git a/vendor/drupal/console-en/translations/generate.ajax.command.yml b/vendor/drupal/console-en/translations/generate.ajax.command.yml
deleted file mode 100644
index 39836810d..000000000
--- a/vendor/drupal/console-en/translations/generate.ajax.command.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-description: 'Generate & Register a custom ajax command'
-help: 'The generate:ajax:command command helps you generate a new custom ajax command.'
-welcome: 'Welcome to the Drupal Ajax generator'
-options:
- module: 'The Module name.'
- class: 'Ajax Class name'
- method: 'Custom ajax method'
- js-name: 'Custom javascript name'
-questions:
- module: 'Enter the module name'
- class: 'Enter the Ajax class name'
- method: 'Enter the render method name'
- js-name: 'Enter a custom javascript name'
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.authentication.provider.yml b/vendor/drupal/console-en/translations/generate.authentication.provider.yml
deleted file mode 100644
index a867018ba..000000000
--- a/vendor/drupal/console-en/translations/generate.authentication.provider.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Generate an Authentication Provider'
-help: 'The generate:authentication:provider command helps you generate a new Authentication Provider.'
-welcome: 'Welcome to the Drupal Authentication Provider generator'
-options:
- module: 'The Module name.'
- class: 'Authentication Provider class'
- provider-id: 'Provider ID'
-questions:
- module: 'Enter the module name'
- class: 'Enter the Authentication Provider class'
- provider-id: 'Enter the Provider ID'
-examples:
- - description: 'Generate an authentication provider specifying the module, the class and the provider id'
- execution: |
- drupal generate:authentication:provider \
- --module="modulename" \
- --class="DefaultAuthenticationProvider" \
- --provider-id="default_authentication_provider"
diff --git a/vendor/drupal/console-en/translations/generate.breakpoint.yml b/vendor/drupal/console-en/translations/generate.breakpoint.yml
deleted file mode 100644
index 9b79cbdd1..000000000
--- a/vendor/drupal/console-en/translations/generate.breakpoint.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Generate breakpoint'
-help: 'The generate:breakpoint command helps you generates a new breakpoint'
-welcome: 'Welcome to the Drupal breakpoint generator'
-options:
- theme: 'Theme name'
- breakpoints: Breakpoints
-questions:
- theme: 'Enter the theme name (i.e. classy, stable)'
- breakpoint-name: 'Enter breakpoint name'
- breakpoint-label: 'Enter breakpoint label'
- breakpoint-media-query: 'Enter breakpoint media query'
- breakpoint-weight: 'Enter breakpoint weight'
- breakpoint-multipliers: 'Enter breakpoint multipliers'
- breakpoint-add: 'Do you want to add another breakpoint?'
-examples:
- - description: 'Generate a breakpoint specifying the theme, a breakpoint name, its label, the media query, its weight and multipliers'
- execution: |
- drupal generate:breakpoint \
- --theme="classy" \
- --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"'
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.cache.context.yml b/vendor/drupal/console-en/translations/generate.cache.context.yml
deleted file mode 100644
index 6058d4af6..000000000
--- a/vendor/drupal/console-en/translations/generate.cache.context.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Generate a cache context'
-help: 'The generate:cache:context command helps you generates a new cache context'
-welcome: 'Welcome to the Drupal Cache Context generator'
-options:
- module: 'The Module name.'
- name: 'The cache context name'
- class: 'Cache context class name'
-questions:
- module: 'Enter the module name'
- name: 'Enter the cache context name'
- class: 'Cache context class name'
-examples:
- - description: 'Generate cache for a context specifying the module, the context name and its class'
- execution: |
- drupal generate:cache:context \
- --module="modulename" \
- --cache-context="ContextName" \
- --class="DefaultCacheContext"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.command.yml b/vendor/drupal/console-en/translations/generate.command.yml
deleted file mode 100644
index 745203475..000000000
--- a/vendor/drupal/console-en/translations/generate.command.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-description: 'Generate commands for the console.'
-help: 'The generate:command command helps you generate a new command.'
-welcome: 'Welcome to the Drupal Command generator'
-options:
- extension: 'The name of the Extension (that will contain the command).'
- class: 'The Class that describes the command. (Must end with the word ''Command'').'
- name: 'The Command name.'
- interact: 'Add interact method.'
- initialize: 'Add initialize method.'
- container-aware: 'Is the command aware of the drupal site installation when executed?'
- services: 'Load services from the container.'
- generator: 'Add a Generator class for this command.'
-questions:
- extension: 'Enter the extension name'
- class: 'Enter the Command Class. (Must end with the word ''Command'').'
- name: 'Enter the Command name.'
- interact: 'Do you want to add the interact method?'
- initialize: 'Do you want to add the initialize method?'
- container-aware: 'Is the command aware of the drupal site installation when executed?'
- services: 'Enter your service'
- generator: 'Do you want to add a Generator class?.'
-messages:
- title-not-empty: 'Title cannot be empty'
-examples:
- - description: 'Generate a command specifying the extension name and type, its class and the name.'
- execution: |
- drupal generate:command \
- --extension="ExtensionName" \
- --extension-type="module" \
- --class="DefaultCommand" \
- --name="CommandName"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.controller.yml b/vendor/drupal/console-en/translations/generate.controller.yml
deleted file mode 100644
index 5b05332f9..000000000
--- a/vendor/drupal/console-en/translations/generate.controller.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-description: 'Generate & Register a controller'
-help: 'The generate:controller command helps you generate a new controller.'
-welcome: 'Welcome to the Drupal Controller generator'
-options:
- module: 'The Module name.'
- class: 'Controller Class name'
- routes: 'The routes, must be an array containing [title, method, path]'
- services: 'Load services from the container.'
- test: 'Generate a test class'
-questions:
- module: 'Enter the module name'
- class: 'Enter the Controller class name'
- title: 'Enter the Controller method title (to stop adding more methods, leave this empty)'
- method: 'Enter the action method name'
- path: 'Enter the route path'
- services: 'Enter your service'
- test: 'Do you want to generate a unit test class?'
-messages:
- title-empty: 'Title must contain a value (you must enter at least one method)'
- title-already-added: 'Title was already added'
- method-name-already-added: 'Method name was already added'
- path-already-added: 'Path was already added'
-examples:
- - description: 'Generate controller specifying the module name, the class name and its routes'
- execution: |
- drupal generate:controller \
- --module="modulename" \
- --class="DefaultController" \
- --routes='"title":"ControllerMethod", "name":"modulename.default_controller_hello", "method":"hello", "path":"/modulename/hello/{name}"' \
- --test
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.entity.bundle.yml b/vendor/drupal/console-en/translations/generate.entity.bundle.yml
deleted file mode 100644
index f3106b3fc..000000000
--- a/vendor/drupal/console-en/translations/generate.entity.bundle.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Generate a new content type (node / entity bundle)'
-help: 'The generate:contenttype command helps you generate a new content type.'
-welcome: 'Welcome to the Drupal Content Type generator'
-options:
- module: 'The Module name.'
- bundle-name: 'The content type''s machine name'
- bundle-title: 'The content type''s human-readable name'
-questions:
- module: 'Enter the module name'
- bundle-name: 'Enter the machine name of your new content type'
- bundle-title: 'Enter the human-readable name of your new content type'
-message:
- error-state1: placeholder
-examples:
- - description: 'Generate bundle entity specifying the module, the bundle name and its title'
- execution: |
- drupal generate:entity:bundle \
- --module="modulename" \
- --bundle-name="default" \
- --bundle-title="default"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.entity.config.yml b/vendor/drupal/console-en/translations/generate.entity.config.yml
deleted file mode 100644
index 67b06b4cf..000000000
--- a/vendor/drupal/console-en/translations/generate.entity.config.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-description: 'Generate a new config entity'
-help: 'The generate:config:entity command helps you generate a new config entity.'
-welcome: 'Welcome to the Drupal Config Entity generator'
-options:
- module: 'The Module name.'
- entity-class: 'The config entity class'
- entity-name: 'The config entity name'
- label: 'The label'
- bundle-of: 'Acts as bundle for content entities'
- base-path: 'The base-path for the config entity routes'
-questions:
- module: 'Enter the module name'
- entity-class: 'Enter the class of your new config entity'
- entity-name: 'Enter the name of your new config entity'
- label: 'Enter the label of your new config entity'
- bundle-of: 'Name of the content entity you want this (config) entity to act as a bundle for'
- base-path: 'Enter the base-path for the config entity routes'
-examples:
- - description: 'Generate config entity specifying the module, the entity class, the entity name, its path and label'
- execution: |
- drupal generate:entity:config \
- --module="modulename" \
- --entity-class="DefaultEntity" \
- --entity-name="default_entity" \
- --base-path="/admin/structure" \
- --label="Default entity"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.entity.content.yml b/vendor/drupal/console-en/translations/generate.entity.content.yml
deleted file mode 100644
index 8be970c52..000000000
--- a/vendor/drupal/console-en/translations/generate.entity.content.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-description: 'Generate a new content entity'
-help: 'The generate:content:entity command helps you generate a new content entity.'
-welcome: 'Welcome to the Drupal Content Entity generator'
-options:
- module: 'The Module name.'
- entity-class: 'The content entity class'
- entity-name: 'The content entity name'
- label: 'The label'
- has-bundles: 'Entity has bundles'
- base-path: 'The base-path for the content entity routes'
- is-translatable: 'Content entity translatable'
-questions:
- module: 'Enter the module name'
- entity-class: 'Enter the class of your new content entity'
- entity-name: 'Enter the machine name of your new content entity'
- label: 'Enter the label of your new content entity'
- has-bundles: 'Do you want this (content) entity to have bundles?'
- base-path: 'Enter the base-path for the content entity routes'
- is-translatable: 'Is your entity translatable?'
- revisionable: 'Is your entity revisionable?'
-examples:
- - description: 'Generate a content entity specifying the module, the entity class, the entity name, its path and label'
- execution: |
- drupal generate:entity:content \
- --module="modulename" \
- --entity-class="DefaultEntity" \
- --entity-name="default_entity" \
- --base-path="/admin/structure" \
- --label="Default entity"
- - description: 'Generate a translatable and revisionable content entity specifying the module, the entity class, the entity name, its path and label'
- execution: |
- drupal generate:entity:content \
- --module="modulename" \
- --entity-class="DefaultEntity" \
- --entity-name="default_entity" \
- --base-path="/admin/structure" \
- --label="Default entity" \
- --is-translatable \
- --revisionable
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.event.subscriber.yml b/vendor/drupal/console-en/translations/generate.event.subscriber.yml
deleted file mode 100644
index 255614940..000000000
--- a/vendor/drupal/console-en/translations/generate.event.subscriber.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Generate an event subscriber'
-help: 'The generate:event:subscriber command helps you generate a new event subscriber.'
-welcome: 'Welcome to the Drupal Event Subscriber generator'
-options:
- module: 'The Module name.'
- name: 'Service name'
- class: 'Class name'
- services: 'Load services from the container.'
- event-name: 'Enter event name'
- callback-name: 'Callback function name to handle event'
-questions:
- module: 'Enter the module name'
- name: 'Enter the service name'
- class: 'Enter the class name'
- services: 'Enter your service'
- event-name: 'Enter event name'
- callback-name: 'Enter the callback function name to handle event'
-examples:
- - description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe'
- execution: |
- drupal generate:event:subscriber \
- --module="modulename" \
- --name="modulename.default" \
- --class="DefaultSubscriber" \
- --events='kernel_request'
diff --git a/vendor/drupal/console-en/translations/generate.form.alter.yml b/vendor/drupal/console-en/translations/generate.form.alter.yml
deleted file mode 100644
index afd16b83d..000000000
--- a/vendor/drupal/console-en/translations/generate.form.alter.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-description: 'Generate an implementation of hook_form_alter() or hook_form_FORM_ID_alter'
-help: 'The "%s" command helps you generate a new "%s"'
-welcome: 'Welcome to the Drupal Form Alter generator'
-options:
- module: 'The Module name.'
- form-id: 'Form ID to alter'
- inputs: 'Create inputs in a form.'
-questions:
- module: 'Enter the module name'
- form-id: 'Enter the Form ID to alter'
- type: 'Enter New field type'
- label: 'Input label'
- description: 'Description'
- default-value: 'Default value'
- weight: 'Weight for input item'
-messages:
- inputs: "You can add form fields to modify form.\nThis is optional, press enter to continue "
- loading-forms: 'Loading forms definition from Webprofiler module'
- hide-form-elements: 'Optionally you can select form items for hide'
- help-already-implemented: 'The hook form alter was already implemented in module "%s"'
-examples:
- - description: 'Generate a hook form alter for an empty form specifying the module name'
- execution: |
- drupal generate:form:alter \
- --module="modulename"
- - description: 'Generate a hook form alter with 2 fields specifying the module name and the inputs'
- execution: |
- drupal generate:form:alter \
- --module="modulename" \
- --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \
- --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.form.config.yml b/vendor/drupal/console-en/translations/generate.form.config.yml
deleted file mode 100644
index 7590be718..000000000
--- a/vendor/drupal/console-en/translations/generate.form.config.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-description: 'Generate a new form config'
-help: 'The generate:form:config command helps you generate a new form config'
-welcome: 'Welcome to the Drupal Form Config generator'
-options:
- module: 'The Module name.'
- class: 'The form class name'
- form-id: 'The Form id'
- services: 'Load services from the container.'
- config-file: 'Add a config file'
- inputs: 'Create inputs in a form.'
- path: 'Enter the form path'
- menu-link-gen: 'Generate a menu link'
- menu-link-title: 'A title for the menu link'
- menu-parent: 'Menu parent'
- menu-link-desc: 'A description for the menu link'
-questions:
- module: 'Enter the module name'
- class: 'Enter the Form Class name'
- form-id: 'Enter the Form id'
- services: 'Enter your service'
- config-file: 'Do you want to generate a config file?'
- routing: 'Would you like to register a route for this form?'
- path: 'Enter the route path'
- max-amount-characters: 'Maximum amount of characters'
- textfield-width-in-chars: 'Width of the textfield (in characters)'
- multiselect-size-in-lines: 'Size of multiselect box (in lines)'
- input-options: 'Input options separated by comma'
- menu-link-gen: 'Generate a menu link'
- menu-link-title: 'Enter a title for the menu link'
- menu-parent: 'Enter Menu parent'
- menu-link-desc: 'Enter a description for the menu link'
- type: 'Enter New field type'
- label: 'Input label'
- description: 'Description'
- default-value: 'Default value'
- weight: 'Weight for input item'
-suggestions:
- description-for-menu: 'A description for the menu entry'
-examples:
- - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path'
- execution: |
- drupal generate:form:config \
- --module="modulename" \
- --class="DefaultForm" \
- --form-id="default_form" \
- --config-file \
- --path="/modulename/form/default"
- - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path'
- execution: |
- drupal generate:form:config \
- --module="modulename" \
- --class="DefaultForm" \
- --form-id="default_form" \
- --config-file \
- --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \
- --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \
- --path="/modulename/form/default"
diff --git a/vendor/drupal/console-en/translations/generate.form.yml b/vendor/drupal/console-en/translations/generate.form.yml
deleted file mode 100644
index 75ec09e63..000000000
--- a/vendor/drupal/console-en/translations/generate.form.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-description: 'Generate a new "%s"'
-help: 'The "%s" command helps you generate a new "%s"'
-welcome: 'Welcome to the Drupal Form generator'
-options:
- module: 'The Module name.'
- class: 'The form class name'
- form-id: 'The Form id'
- services: 'Load services from the container.'
- config-file: 'Add a config file'
- inputs: 'Create inputs in a form.'
- path: 'Enter the form path'
- menu-link-gen: 'Generate a menu link'
- menu-link-title: 'A title for the menu link'
- menu-parent: 'Menu parent'
- menu-link-desc: 'A description for the menu link'
-questions:
- module: 'Enter the module name'
- class: 'Enter the Form Class name'
- form-id: 'Enter the Form id'
- services: 'Enter your service'
- config-file: 'Do you want to generate a config file?'
- routing: 'Would you like to register a route for this form?'
- path: 'Enter the route path'
- max-amount-characters: 'Maximum amount of characters'
- textfield-width-in-chars: 'Width of the textfield (in characters)'
- multiselect-size-in-lines: 'Size of multiselect box (in lines)'
- input-options: 'Input options separated by comma'
- menu-link-gen: 'Generate a menu link'
- menu-link-title: 'Enter a title for the menu link'
- menu-parent: 'Enter Menu parent'
- menu-link-desc: 'Enter a description for the menu link'
- type: 'Enter New field type'
- label: 'Input label'
- description: 'Description'
- default-value: 'Default value'
- weight: 'Weight for input item'
-suggestions:
- description-for-menu: 'A description for the menu entry'
-examples:
- - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path'
- execution: |
- drupal generate:form \
- --module="modulename" \
- --class="DefaultForm" \
- --form-id="default_form" \
- --config-file \
- --path="/modulename/form/default"
- - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path'
- execution: |
- drupal generate:form \
- --module="modulename" \
- --class="DefaultForm" \
- --form-id="default_form" \
- --config-file \
- --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \
- --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \
- --path="/modulename/form/default"
diff --git a/vendor/drupal/console-en/translations/generate.help.yml b/vendor/drupal/console-en/translations/generate.help.yml
deleted file mode 100644
index 7f04a2d6e..000000000
--- a/vendor/drupal/console-en/translations/generate.help.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Generate an implementation of hook_help()'
-help: 'The "%s" command helps you generate a hook help "%s"'
-welcome: 'Welcome to the Drupal Help generator'
-options:
- module: 'The Module name.'
- description: 'Module description'
-questions:
- module: 'Enter the module name'
- description: 'Enter module description'
-messages:
- help-already-implemented: 'The hook help was already implemented in module "%s"'
-examples:
- - description: 'Generate a hook help specifying the module name and the description'
- execution: |
- drupal generate:help \
- --module="modulename" \
- --description="My Awesome Module"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.jstest.yml b/vendor/drupal/console-en/translations/generate.jstest.yml
deleted file mode 100644
index 3d6f828a8..000000000
--- a/vendor/drupal/console-en/translations/generate.jstest.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Generate a JavaScript test.'
-help: 'The generate:jstest command helps you to generate a new JavaScript test.'
-welcome: 'Welcome to the Drupal module generator'
-options:
- class: 'JavaScript test Class name'
-questions:
- module: common.questions.module
- class: 'Enter the JavaScript test class name'
-examples:
- - description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too'
- execution: |
- drupal generate:module \
- --module="modulename" \
- --machine-name="modulename" \
- --module-path="/modules/custom" \
- --description="My Awesome Module" \
- --core="8.x" \
- --package="Custom" \
- --module-file \
- --composer \
- --test \
- --twigtemplate
diff --git a/vendor/drupal/console-en/translations/generate.module.file.yml b/vendor/drupal/console-en/translations/generate.module.file.yml
deleted file mode 100644
index abaedd57b..000000000
--- a/vendor/drupal/console-en/translations/generate.module.file.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-description: 'Generate a .module file'
-help: 'The generate:module:file command helps you to generate a new .module file'
-welcome: 'Welcome to the Drupal Module File generator'
-options:
- module: 'The Module name'
-questions:
- module: 'Enter the new module name'
-examples:
- - description: 'Generate the .module file specifying the module name'
- execution: |
- drupal generate:module:file \
- --module="modulename"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.module.yml b/vendor/drupal/console-en/translations/generate.module.yml
deleted file mode 100644
index 12925f2fe..000000000
--- a/vendor/drupal/console-en/translations/generate.module.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-description: 'Generate a module.'
-help: 'The generate:module command helps you generates a new module.'
-welcome: 'Welcome to the Drupal module generator'
-options:
- module: 'The Module name'
- machine-name: 'The machine name (lowercase and underscore only)'
- module-path: 'The path of the module'
- description: 'Module description'
- core: 'Core version'
- features-bundle: 'Define module as feature using the given Features bundle name'
- package: 'Module package'
- module-file: 'Add a .module file'
- composer: 'Add a composer.json file'
- dependencies: 'Module dependencies separated by commas (i.e. context, panels)'
- test: 'Generate a test class'
- twigtemplate: 'Generate theme template'
-questions:
- module: 'Enter the new module name'
- machine-name: 'Enter the module machine name'
- module-path: 'Enter the module Path'
- description: 'Enter module description'
- core: 'Enter Drupal Core version'
- package: 'Enter package name'
- features-support: 'Define module as feature'
- features-bundle: 'Enter Features bundle name'
- module-file: 'Do you want to generate a .module file?'
- composer: 'Do you want to add a composer.json file to your module?'
- dependencies: 'Would you like to add module dependencies?'
- test: 'Do you want to generate a unit test class?'
- twigtemplate: 'Do you want to generate a themeable template?'
-suggestions:
- my-awesome-module: 'My Awesome Module'
-warnings:
- module-unavailable: 'Warning The following modules are not available "%s"'
-errors:
- invalid-core: 'The core version "%s" is invalid.'
- directory-exists: 'The target directory "%s" is not empty.'
-examples:
- - description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too'
- execution: |
- drupal generate:module \
- --module="modulename" \
- --machine-name="modulename" \
- --module-path="/modules/custom" \
- --description="My Awesome Module" \
- --core="8.x" \
- --package="Custom" \
- --module-file \
- --composer \
- --test \
- --twigtemplate
diff --git a/vendor/drupal/console-en/translations/generate.permissions.yml b/vendor/drupal/console-en/translations/generate.permissions.yml
deleted file mode 100644
index 83a30fbb6..000000000
--- a/vendor/drupal/console-en/translations/generate.permissions.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Generate module permissions'
-help: 'The generate:permissions command helps you generate new permissions'
-welcome: 'Welcome to the Drupal Permission generator'
-options:
- module: 'The Module name.'
-questions:
- module: 'Enter the module name'
- permission: 'Enter a permission'
- title: 'Enter a title for the permission'
- description: 'Enter a description for the permission'
- restrict-access: 'Restrict Access'
- add: 'Do you want to add another permission?'
-suggestions:
- access-content: 'Access content'
- allow-access-content: 'Allow access to my content'
diff --git a/vendor/drupal/console-en/translations/generate.plugin.block.yml b/vendor/drupal/console-en/translations/generate.plugin.block.yml
deleted file mode 100644
index 6510194d0..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.block.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-description: 'Generate a plugin block'
-help: 'The generate:plugin:block command helps you generate a new Plugin block.'
-welcome: 'Welcome to the Drupal Plugin Block generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- inputs: 'Create inputs in a form.'
- services: 'Load services from the container.'
- theme-region: 'Theme region to render Plugin Block'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- services: 'Enter your service'
- theme-region: 'Enter the theme region to render the Plugin Block.'
- type: 'Enter New field type'
- label: 'Input label'
- description: 'Description'
- default-value: 'Default value'
- weight: 'Weight for input item'
-messages:
- inputs: "\nYou can add input fields to create special configurations in the block.\nThis is optional, press enter to continue "
- invalid-theme-region: 'Region "%s" is invalid'
-examples:
- - description: 'Generate a plugin block in the header region with an input field specifying the module name, the class, the label, its id, the region and the input'
- execution: |
- drupal generate:plugin:block \
- --module="modulename" \
- --class="DefaultBlock" \
- --label="Default block" \
- --plugin-id="default_block" \
- --theme-region="header" \
- --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.plugin.ckeditorbutton.yml b/vendor/drupal/console-en/translations/generate.plugin.ckeditorbutton.yml
deleted file mode 100644
index 36d5c7f61..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.ckeditorbutton.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-description: 'Generate CKEditor button plugin.'
-help: 'The generate:plugin:ckeditorbutton command helps you generate a new CKEditor button plugin.'
-welcome: 'Welcome to the Drupal CKEditor Button Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.'
- button-name: 'Button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.'
- button-icon-path: 'Button icon path. This is the path to the icon/image of the button.'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.'
- button-name: 'Enter the button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.'
- button-icon-path: 'Enter the button icon path'
-examples:
- - description: 'Generate plugin CKEditor button specifying the module name, the class, the label, its id, the button name and the icon path'
- execution: |
- drupal generate:plugin:ckeditorbutton \
- --module="modulename" \
- --class="DefaultCKEditorButton" \
- --label="Default ckeditor button" \
- --plugin-id="default ckeditor button" \
- --button-name="Default ckeditor button" \
- --button-icon-path="modules/custom/modulename/js/plugins/default ckeditor button/images/icon.png"
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/generate.plugin.condition.yml b/vendor/drupal/console-en/translations/generate.plugin.condition.yml
deleted file mode 100644
index 0f8d78bb7..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.condition.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-description: 'Generate a plugin condition.'
-help: 'The generate:plugin:conditon command helps you generate a plugin condition.'
-welcome: 'Welcome to the Drupal Plugin Condition generator'
-options:
- module: 'The Module name.'
- class: 'Plugin condition class name'
- label: 'Plugin condition label'
- plugin-id: 'Plugin condition id'
- context-definition-id: 'Context definition ID'
- context-definition-label: 'Context definition label'
- context-definition-required: 'Context definition is required (TRUE/FALSE)'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin condition class name'
- label: 'Enter the plugin condition label'
- plugin-id: 'Enter the plugin condition id'
- context-type: 'Context type'
- context-entity-type: 'Context entity type'
- context-definition-id: 'Context definition ID'
- context-definition-label: 'Context definition label'
- context-definition-required: 'Context definition is required'
-examples:
- - description: 'Generate a plugin condition for a node entity type specifying the module name, the class, the label, its id and the context definition'
- execution: |
- drupal generate:plugin:condition \
- --module="modulename" \
- --class="ExampleCondition" \
- --label="Example condition" \
- --plugin-id="example_condition" \
- --context-definition-id="entity:node" \
- --context-definition-label="node" \
- --context-definition-required
- - description: 'Generate a plugin condition for language specifying the module name, the class, the label, its id and the context definition'
- execution: |
- drupal generate:plugin:condition \
- --module="modulename" \
- --class="ExampleCondition" \
- --label="Example condition" \
- --plugin-id="example_condition" \
- --context-definition-id="language" \
- --context-definition-label="Language" \
- --context-definition-required
- - description: 'Generate a plugin condition for role configuration specifying the module name, the class, the label, its id and the context definition'
- execution: |
- drupal generate:plugin:condition \
- --module="modulename" \
- --class="ExampleCondition" \
- --label="Example condition" \
- --plugin-id="example_condition" \
- --context-definition-id="entity:user_role" \
- --context-definition-label="user_role" \
- --context-definition-required
diff --git a/vendor/drupal/console-en/translations/generate.plugin.field.yml b/vendor/drupal/console-en/translations/generate.plugin.field.yml
deleted file mode 100644
index 343506876..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.field.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-description: 'Generate field type, widget and formatter plugins.'
-help: 'The generate:plugin:field command helps you generate a full set of field plugin: field type, field formatter and field widget.'
-welcome: 'Welcome to the Drupal Field Plugin generator'
-options:
- module: 'The Module name.'
- type-class: 'Field type plugin class name'
- type-label: 'Field type plugin label'
- type-plugin-id: 'Field type plugin id'
- type-description: 'Field type plugin description'
- formatter-class: 'Field formatter plugin class name'
- formatter-label: 'Field formatter plugin label'
- formatter-plugin-id: 'Field formatter plugin id'
- widget-class: 'Field widget plugin class name'
- widget-label: 'Field widget plugin label'
- widget-plugin-id: 'Field widget plugin id'
- field-type: 'Field type the formatter and widget plugin can be used with'
- default-widget: 'Default field widget of the field type plugin'
- default-formatter: 'Default field formatter of field type plugin'
-questions:
- module: 'Enter the module name'
- type-class: 'Enter field type plugin class name'
- type-label: 'Enter the field type plugin label'
- type-plugin-id: 'Enter the field type plugin id'
- type-description: 'Enter the field type plugin description'
- formatter-class: 'Enter the field formatter plugin class name'
- formatter-label: 'Enter the field formatter plugin label'
- formatter-plugin-id: 'Enter the field formatter plugin id'
- widget-class: 'Enter the field widget plugin class name'
- widget-label: 'Enter the field widget plugin label'
- widget-plugin-id: 'Enter the field widget plugin id'
- field-type: 'Enter the field type the formatter and widget plugin can be used with'
- default-widget: 'Enter the default field widget of the field type plugin'
- default-formatter: 'Enter the default field formatter of field type plugin'
-suggestions:
- my-field-type: 'My Field Type'
-examples:
- - description: 'Generate field type, widget and formatter plugins specifying the module name, the type (class, label, plugin id and description), the formatter (class, label, plugin id) and the widget (class, label and plugin id)'
- execution: |
- drupal generate:plugin:field \
- --module="modulename" \
- --type-class="ExampleFieldType" \
- --type-label="Example field type" \
- --type-plugin-id="example_field_type" \
- --type-description="My Field Type" \
- --formatter-class="ExampleFormatterType" \
- --formatter-label="Example formatter type" \
- --formatter-plugin-id="example_formatter_type" \
- --widget-class="ExampleWidgetType" \
- --widget-label="Example widget type" \
- --widget-plugin-id="example_widget_type" \
- --field-type="example_field_type" \
- --default-widget="example_widget_type" \
- --default-formatter="example_formatter_type"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.fieldformatter.yml b/vendor/drupal/console-en/translations/generate.plugin.fieldformatter.yml
deleted file mode 100644
index b8189e8e7..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.fieldformatter.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Generate field formatter plugin.'
-help: 'The generate:plugin:fieldformatter command helps you generate a new field formatter plugin.'
-welcome: 'Welcome to the Drupal Field Formatter Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- field-type: 'Field type the plugin can be used with'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- field-type: 'Enter the field type the plugin can be used with'
-examples:
- - description: 'Generate a text field formatter plugin specifying the module name, the class, the label its plugin id and the field type'
- execution: |
- drupal generate:plugin:fieldformatter \
- --module="modulename" \
- --class="ExampleFieldFormatter" \
- --label="Example field formatter" \
- --plugin-id="example_field_formatter" \
- --field-type="text"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.fieldtype.yml b/vendor/drupal/console-en/translations/generate.plugin.fieldtype.yml
deleted file mode 100644
index e2c5b3ead..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.fieldtype.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-description: 'Generate field type plugin.'
-help: 'The generate:plugin:fieldtype command helps you generate a new field type plugin.'
-welcome: 'Welcome to the Drupal Field Type Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- description: 'Plugin Description'
- default-widget: 'Default field widget of this plugin'
- default-formatter: 'Default field formatter of this plugin'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- description: 'Enter the plugin Description'
- default-widget: 'Enter the default field widget of this plugin'
- default-formatter: 'Enter the default field formatter of this plugin'
-suggestions:
- my-field-type: 'My Field Type'
-examples:
- - description: 'Generate a field type plugin specifying the module name, the class, its label, the plugin id and a description'
- execution: |
- drupal generate:plugin:fieldtype \
- --module="modulename" \
- --class="ExampleFieldType" \
- --label="Example field type" \
- --plugin-id="example_field_type" \
- --description="My Field Type"
- - description: 'Generate a field type plugin with a default widget and formatter specifying the module name, the class, its label, the plugin id and a description'
- execution: |
- drupal generate:plugin:fieldtype \
- --module="modulename" \
- --class="ExampleFieldType" \
- --label="Example field type" \
- --plugin-id="example_field_type" \
- --description="My Field Type" \
- --default-widget="DefaultWidget" \
- --default-formatter="DefaultFormatter"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.fieldwidget.yml b/vendor/drupal/console-en/translations/generate.plugin.fieldwidget.yml
deleted file mode 100644
index 3b2846935..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.fieldwidget.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Generate field widget plugin.'
-help: 'The generate:plugin:fieldwidget command helps you generate a new field widget plugin.'
-welcome: 'Welcome to the Drupal Field Widget Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- field-type: 'Field type the plugin can be used with'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- field-type: 'Enter the field type the plugin can be used with'
-examples:
- - description: 'Generate a text type field widget plugin specifying the module name, the class, its label, the plugin id and the field type'
- execution: |
- drupal generate:plugin:fieldwidget \
- --module="modulename" \
- --class="ExampleFieldWidget" \
- --label="Example field widget" \
- --plugin-id="example_field_widget" \
- --field-type="text"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.imageeffect.yml b/vendor/drupal/console-en/translations/generate.plugin.imageeffect.yml
deleted file mode 100644
index f03b61eef..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.imageeffect.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-description: 'Generate image effect plugin.'
-help: 'The generate:plugin:imageeffect command helps you generate a new image effect plugin.'
-welcome: 'Welcome to the Drupal Image Effect Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- description: 'Plugin Description'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- description: 'Enter the plugin Description'
-suggestions:
- my-image-effect: 'My Image Effect'
-examples:
- - description: 'Generate a image effect plugin specifying the module name, the class, its label, the plugin id and a description'
- execution: |
- drupal generate:plugin:imageeffect \
- --module="modulename" \
- --class="DefaultImageEffect" \
- --label="Default image effect" \
- --plugin-id="default_image_effect" \
- --description="My Image Effect"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.imageformatter.yml b/vendor/drupal/console-en/translations/generate.plugin.imageformatter.yml
deleted file mode 100644
index 9505b8f19..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.imageformatter.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Generate image formatter plugin.'
-help: 'The generate:plugin:imageformatter command helps you generate a new image formatter plugin.'
-welcome: 'Welcome to the Drupal Image Formatter Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
-examples:
- - description: 'Generate a image formatter plugin specifying the module name, the class, its label and the plugin id'
- execution: |
- drupal generate:plugin:imageformatter \
- --module="modulename" \
- --class="ExampleImageFormatter" \
- --label="Example image formatter" \
- --plugin-id="example_image_formatter"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.mail.yml b/vendor/drupal/console-en/translations/generate.plugin.mail.yml
deleted file mode 100644
index b44e937b2..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.mail.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Generate a plugin mail'
-help: 'The generate:plugin:mail command helps you generate a new Plugin mail.'
-welcome: 'Welcome to the Drupal Plugin Mail generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- inputs: 'Create inputs in a form.'
- services: 'Load services from the container.'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- inputs: common.questions.inputs
- services: 'Enter your service'
-examples:
- - description: 'Generate an email plugin specifying the module name, the class, its label and the plugin id'
- execution: |
- drupal generate:plugin:mail \
- --module="modulename" \
- --class="HtmlFormatterMail" \
- --label="Html formatter mail" \
- --plugin-id="html_formatter_mail"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.migrate.process.yml b/vendor/drupal/console-en/translations/generate.plugin.migrate.process.yml
deleted file mode 100644
index 1990ba01e..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.migrate.process.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Generate a migrate process plugin'
-help: 'Creates new process plugin for the migration.'
-welcome: 'Welcome to the Drupal Migrate Process Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- plugin-id: 'Plugin id'
-questions:
- module: 'Enter the module name'
- class: 'Enter the migration process plugin class name'
- plugin-id: 'Enter the migration process plugin id'
-examples:
- - description: 'Generate a migration plugin process specifying the module name, the class and its id'
- execution: |
- drupal generate:plugin:migrate:process \
- --module="modulename" \
- --class="MigrationProcess" \
- --plugin-id="migrationprocess"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.migrate.source.yml b/vendor/drupal/console-en/translations/generate.plugin.migrate.source.yml
deleted file mode 100644
index 081b5204f..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.migrate.source.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-description: 'Generate a migrate source plugin'
-help: 'The generate:migrate:plugin:source command helps you generate a new migrate source plugin.'
-welcome: 'Welcome to the Drupal Migrate Source Plugin generator'
-options:
- module: 'The Module name.'
- class: 'Plugin class name'
- plugin-id: 'Plugin id'
- table: 'Table to query'
- alias: 'Short alias to refer to the table as'
- group-by: 'Field to group results by'
- fields: 'Fields to export'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin class name'
- plugin-id: 'Enter the plugin id'
- table: 'Enter the table name'
- alias: 'Enter the alias for the table'
- group-by: 'Enter a field to group by if desired'
- id: 'Enter the field id or press enter if done'
- description: 'Enter the field description'
-examples:
- - description: 'Generate a migration source plugin specifying the module name, the class, its plugin id, the table and its alias'
- execution: |
- drupal generate:plugin:migrate:source \
- --module="modulename" \
- --class="PluginClassName" \
- --plugin-id="plugin_class_name" \
- --table="DefaultTableName" \
- --alias="D"
- - description: 'Generate a migration source plugin for specific fields of the users table specifying the module name, the class, its plugin id, the table, its alias and the fields'
- execution: |
- drupal generate:plugin:migrate:source \
- --module="modulename" \
- --class="DefaultPluginClass" \
- --plugin-id="default_plugin_class" \
- --table="users" \
- --alias="u" \
- --fields='"id":"id", "description":"the user id"' \
- --fields='"id":"username", "description":"the username"' \
- --fields='"id":"password", "description":"the user password"' \
- --fields='"id":"email", "description":"the user email"'
diff --git a/vendor/drupal/console-en/translations/generate.plugin.rest.resource.yml b/vendor/drupal/console-en/translations/generate.plugin.rest.resource.yml
deleted file mode 100644
index aa5638786..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.rest.resource.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-description: 'Generate plugin rest resource'
-help: 'The generate:plugin:rest:resource command helps you generate a new rest resource.'
-welcome: 'Welcome to the Drupal Plugin Rest Resource generator'
-options:
- module: 'The Module name.'
- class: 'Plugin Rest Resource class'
- plugin-id: 'Plugin Rest Resource id'
- plugin-label: 'Plugin Rest Resource Label'
- plugin-url: 'Plugin Rest Resource URL'
- plugin-states: 'Plugin Rest Resource States'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin rest resource class name'
- plugin-id: 'Enter the plugin rest resource id'
- plugin-label: 'Enter the plugin rest resource label'
- plugin-url: 'Enter the plugin rest resource url'
- plugin-states: 'Please select what REST States implement in your resource (GET is selected by default)'
-messages:
- selected-states: 'States selected'
-examples:
- - description: 'Generate a rest resource plugin using GET specifying the module name, the class, the plugin id, its label, the target url and the request type'
- execution: |
- drupal generate:plugin:rest:resource \
- --module="modulename" \
- --class="DefaultRestResource" \
- --plugin-id="default_rest_resource" \
- --plugin-label="Default rest resource" \
- --plugin-url="http://rest.resources.example.com" \
- --plugin-states='GET'
diff --git a/vendor/drupal/console-en/translations/generate.plugin.rules.action.yml b/vendor/drupal/console-en/translations/generate.plugin.rules.action.yml
deleted file mode 100644
index aa5d942af..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.rules.action.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-description: 'Generate a plugin rule action'
-help: 'The generate:plugin:rulesaction command helps you generate a new plugin rule action.'
-welcome: 'Welcome to the Drupal Plugin Rules Action generator'
-options:
- module: common.options.module
- class: 'Plugin class'
- label: 'Plugin label'
- plugin-id: 'Plugin id'
- category: 'Plugin category'
- context: 'Plugin context'
-questions:
- module: common.questions.module
- class: 'Enter plugin class'
- label: 'Enter the plugin label'
- plugin-id: 'Enter the plugin id'
- category: 'Enter plugin category'
- context: 'Would you like to add a context?'
- another-context: 'Would you like to add another context?'
- context-name: 'Enter context name'
- context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)'
- context-label: 'Enter context label'
- context-description: 'Enter context description'
-examples:
- - description: 'Generate a user rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
- execution: |
- drupal generate:plugin:rules:action \
- --module="modulename" \
- --class="DefaultAction" \
- --label="Default Action" \
- --plugin-id="default_action" \
- --category="Action category" \
- --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"'
- - description: 'Generate a entity rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
- execution: |
- drupal generate:plugin:rules:action \
- --module="modulename" \
- --class="DefaultAction" \
- --label="Default Action" \
- --plugin-id="default_action" \
- --category="Action category" \
- --context='"entity":"node", "type":"entity", "label":"Context label", "description":"Context description"'
diff --git a/vendor/drupal/console-en/translations/generate.plugin.skeleton.yml b/vendor/drupal/console-en/translations/generate.plugin.skeleton.yml
deleted file mode 100644
index 1bf61e735..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.skeleton.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Generate an implementation of a skeleton plugin'
-help: 'The "%s" command helps you generate a skeleton plugin "%s".'
-welcome: 'Welcome to the Drupal Skeleton Plugin generator'
-
-options:
- module: 'The Module name.'
- plugin: 'The Plugin Id.'
- class: 'Plugin class name'
- services: 'Load services from the container.'
-questions:
- module: 'Enter the module name'
- plugin: 'Enter the Plugin Id'
- class: 'Enter the plugin class name'
- services: 'Enter your service'
-messages:
- plugin-dont-exist: 'The plugin "%s" does not exist.'
- plugin-generator-implemented: 'Plugin "%s" already has an advanced command generator, please use "%s"'
-examples:
- - description: 'Generate a plugin skeleton specifying module name, the plugin id and the class'
- execution: |
- drupal generate:plugin:skeleton \
- --module="modulename" \
- --plugin-id="link_relation_type" \
- --class="DefaultLinkRelationType"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.type.annotation.yml b/vendor/drupal/console-en/translations/generate.plugin.type.annotation.yml
deleted file mode 100644
index b75e06425..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.type.annotation.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Generate a plugin type with annotation discovery'
-help: 'The generate:plugin:type:annotation command helps you generate a new Plugin type that uses annotation discovery.'
-welcome: 'Welcome to the Drupal Plugin Type Annotation generator'
-options:
- module: common.options.module
- class: 'Plugin type class name'
- machine-name: 'Plugin type machine name'
- label: 'Plugin type label'
-questions:
- module: common.questions.module
- class: 'Enter the plugin type class name'
- machine-name: 'Enter the plugin type machine name'
- label: 'Enter the plugin type label'
-examples:
- - description: 'Generate a plugin with annotation discovery specifying module name, class name, machine name and label'
- execution: |
- drupal generate:plugin:type:annotation \
- --module="modulename" \
- --class="ExamplePlugin" \
- --machine-name="example_plugin" \
- --label="Example plugin"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.type.yaml.yml b/vendor/drupal/console-en/translations/generate.plugin.type.yaml.yml
deleted file mode 100644
index 63f0963b9..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.type.yaml.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: 'Generate a plugin type with Yaml discovery'
-help: 'The generate:plugin:type:yaml command helps you generate a new Plugin type that uses Yaml discovery.'
-welcome: 'Welcome to the Drupal Plugin Type Yaml generator'
-options:
- module: 'The Module name.'
- class: 'Plugin type class name'
- plugin-name: 'Plugin type machine name'
- plugin-file-name: 'Plugin file name'
-questions:
- module: 'Enter the module name'
- class: 'Enter the plugin type class name'
- plugin-name: 'Enter the plugin type machine name'
- plugin-file-name: 'Enter the plugin file name (e.g. MODULE.plugin.filename.yml)'
-examples:
- - description: 'Generate a plugin with Yaml discovery specifying module name, class name, plugin name and plugin file name'
- execution: |
- drupal generate:plugin:type:yaml \
- --module="modulename" \
- --class="ExamplePlugin" \
- --plugin-name="example_plugin" \
- --plugin-file-name="example.plugin"
diff --git a/vendor/drupal/console-en/translations/generate.plugin.views.field.yml b/vendor/drupal/console-en/translations/generate.plugin.views.field.yml
deleted file mode 100644
index 5d8675471..000000000
--- a/vendor/drupal/console-en/translations/generate.plugin.views.field.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Generate a custom plugin view field.'
-help: 'The generate:plugin:views:field command helps you generate a new custom views field plugin.'
-welcome: 'Welcome to the Drupal Plugin View Field generator'
-options:
- module: 'The Module name.'
- class: 'Views plugin field class name'
- title: 'Views plugin field title'
- description: 'Views plugin field description'
-questions:
- module: 'Enter the module name'
- class: 'Enter the views plugin field class name'
- title: 'Enter the views plugin field title'
- description: 'Enter the views plugin field description'
- description_default: 'My awesome custom views field plugin.'
-examples:
- - description: 'Generate a custom view field plugin specifying the module name, the class, a title and its description'
- execution: |
- drupal generate:plugin:views:field \
- --module="modulename" \
- --class="CustomViewsField" \
- --title="Custom views field" \
- --description="My awesome custom views field plugin."
diff --git a/vendor/drupal/console-en/translations/generate.post.update.yml b/vendor/drupal/console-en/translations/generate.post.update.yml
deleted file mode 100644
index 6957876cd..000000000
--- a/vendor/drupal/console-en/translations/generate.post.update.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Generate an implementation of hook_post_update_NAME()'
-help: 'The "%s" command helps you generate a hook post update NAME "%s"'
-welcome: 'Welcome to the Drupal Post Updat generator'
-options:
- module: 'The Module name.'
- post-update-name: 'Post Update Name'
-questions:
- module: 'Enter the module name'
- post-update-name: 'Please provide the Post Update Name to be implemeted'
-messages:
- wrong-post-update-name: 'The post update name "%s" is invalid'
- post-update-name-already-implemented: 'The post update name "%s" was already implemented'
-examples:
- - description: 'Generate an implementation of post update hook specifying the module name and the post update name'
- execution: |
- drupal generate:post:update \
- --module="modulename" \
- --post-update-name="PostUpdateName"
diff --git a/vendor/drupal/console-en/translations/generate.profile.yml b/vendor/drupal/console-en/translations/generate.profile.yml
deleted file mode 100644
index c0375696e..000000000
--- a/vendor/drupal/console-en/translations/generate.profile.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-description: 'Generate a profile.'
-help: 'The generate:profile command helps you generate a new installation profile.'
-welcome: 'Welcome to the Drupal installation profile generator'
-options:
- profile: 'The profile name'
- machine-name: 'The machine name (lowercase and underscore only)'
- profile-path: 'The path of the profile'
- description: 'Profile description'
- core: 'Core version'
- dependencies: 'Module dependencies separated by commas (i.e. context, panels)'
- themes: 'the theme name'
- distribution: 'The distribution name'
-questions:
- profile: 'Enter the name of the new profile'
- machine-name: 'Enter the machine name'
- profile-path: 'Enter the profile Path'
- description: 'Enter the description'
- core: 'Enter Drupal Core version'
- dependencies: 'Would you like to add module dependencies?'
- themes: 'Enter theme name'
- distribution: 'Is this install profile intended to be a distribution?'
-suggestions:
- my-useful-profile: 'My Useful Profile'
- my-kick-ass-distribution: 'My Kick-ass Distribution'
-warnings:
- module-unavailable: 'Warning: The following modules are not available in your local environment "%s"'
-errors:
- directory-exists: 'The target directory "%s" is not empty.'
-examples:
- - description: 'Generate a profile specifying the profile name, the machine name, a description, the core and its module dependencies'
- execution: |
- drupal generate:profile \
- --profile="NewProfileName" \
- --machine-name="newprofilename" \
- --description="My Useful Profile" \
- --core="8.x" \
- --dependencies="modulename"
diff --git a/vendor/drupal/console-en/translations/generate.routesubscriber.yml b/vendor/drupal/console-en/translations/generate.routesubscriber.yml
deleted file mode 100644
index f509067a1..000000000
--- a/vendor/drupal/console-en/translations/generate.routesubscriber.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Generate a RouteSubscriber'
-help: 'The generate:service command helps you generate a new RouteSubscriber.'
-welcome: 'Welcome to the Drupal RouteSubscriber generator.'
-options:
- module: 'The Module name.'
- name: 'Service name'
- class: 'Class name'
-questions:
- module: 'Enter the module name'
- name: 'Enter the service name'
- class: 'Enter the Class name'
-examples:
- - description: 'Generate a route subscriber specifying the module name, the route name and its class'
- execution: |
- drupal generate:routesubscriber \
- --module="modulename" \
- --name="modulename.route_subscriber" \
- --class="RouteSubscriber"
diff --git a/vendor/drupal/console-en/translations/generate.service.yml b/vendor/drupal/console-en/translations/generate.service.yml
deleted file mode 100644
index 567907b14..000000000
--- a/vendor/drupal/console-en/translations/generate.service.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-description: 'Generate service'
-help: 'The generate:service command helps you generate a new service.'
-welcome: 'Welcome to the Drupal service generator'
-options:
- module: 'The Module name.'
- service-name: 'Service name'
- class: 'Class name'
- interface: 'Interface'
- interface-name: 'Interface name'
- services: 'Load services from the container.'
- path-service: 'Path'
-questions:
- module: 'Enter the module name'
- service-name: 'Enter the service name'
- class: 'Enter the Class name'
- interface: 'Create an interface'
- interface-name: 'Enter the interface name'
- services: 'Enter your service'
- path-service: 'Enter the path for the services'
-messages:
- service-already-taken: 'The service name has been already taken in module "%s"'
-examples:
- - description: 'Generate a services without interface specifying the module name, the service name, the class and its path'
- execution: |
- drupal generate:service \
- --module="modulename" \
- --name="modulename.default" \
- --class="DefaultService" \
- --path-service="/modules/custom/modulename/src/"
- - description: 'Generate a services with interface specifying the module name, the service name, the class, the interface name and its path'
- execution: |
- drupal generate:service \
- --module="modulename" \
- --name="modulename.default" \
- --class="DefaultService" \
- --interface \
- --interface-name="InterfaceName" \
- --path-service="/modules/custom/modulename/src/"
diff --git a/vendor/drupal/console-en/translations/generate.site.alias.yml b/vendor/drupal/console-en/translations/generate.site.alias.yml
deleted file mode 100644
index ca3a7c179..000000000
--- a/vendor/drupal/console-en/translations/generate.site.alias.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Generates a site alias.'
-help: 'The generate:site:alias command helps you generate a new site alias.'
-options:
- name: 'Site name.'
- environment: 'Environment name.'
- type: 'The site type.'
- composer-root: 'The Drupal root project directory.'
- host: 'The ip/domain name of the remote system. Not required on local sites.'
- port: 'The port to use when connecting via ssh.'
- user: 'The username to use when connecting via ssh.'
- extra-options: 'Used only when the target requires extra options, such as alternative authentication method and/or alternative identity file.'
- site-uri: 'Drupal uri (for multi-sites).'
- directory: 'Directory to store the generated site alias.'
- site: 'Use local site as destination.'
-questions:
- name: 'Select or enter the site name'
- environment: 'Enter the environment name (dev, test, prod, qa, dev.uri, test.uri, etc...)'
- type: 'Select site type. Allowed options [local, ssh or container].'
- composer-root: 'Enter the Drupal root project directory.'
- host: 'Enter the ip/domain name of the remote system.'
- port: 'Enter the port to use when connecting via ssh.'
- user: 'Enter the username to use when connecting via ssh.'
- extra-options: 'Select or enter a valid extra option.'
- site-uri: 'Enter the Drupal uri (for multi-sites).'
- directory: 'Select the directory to store the generated site alias.'
diff --git a/vendor/drupal/console-en/translations/generate.theme.yml b/vendor/drupal/console-en/translations/generate.theme.yml
deleted file mode 100644
index 9b54abd94..000000000
--- a/vendor/drupal/console-en/translations/generate.theme.yml
+++ /dev/null
@@ -1,73 +0,0 @@
-description: 'Generate a theme.'
-help: 'The generate:theme command helps you generates a new theme.'
-welcome: 'Welcome to the Drupal theme generator'
-options:
- theme: 'The theme name'
- machine-name: 'The machine name (lowercase and underscore only)'
- theme-path: 'The path of the theme'
- description: 'Theme description'
- core: 'Core version'
- package: 'Theme package'
- composer: 'Add a composer.json file'
- base-theme: 'Base theme (i.e. classy, stable)'
- global-library: 'Global styling library name'
- libraries: 'Libraries'
- regions: Regions
- breakpoints: Breakpoints
-questions:
- theme: 'Enter the new theme name'
- machine-name: 'Enter the theme machine name'
- theme-path: 'Enter the theme Path'
- description: 'Enter theme description'
- core: 'Enter Drupal Core version'
- package: 'Enter package name'
- dependencies: 'Would you like to add module dependencies?'
- invalid-theme: 'Invalid "%s" theme was selected'
- global-library: 'Enter the global styling library name'
- library-add: 'Do you want to add another library?'
- library-name: 'Enter library name'
- library-version: 'Enter library version'
- regions: 'Do you want to generate the theme regions?'
- region-name: 'Enter region name'
- region-machine-name: 'Enter region machine name'
- region-add: 'Do you want to add another region?'
- breakpoints: 'Do you want to generate the theme breakpoints?'
- breakpoint-name: 'Enter breakpoint name'
- breakpoint-label: 'Enter breakpoint label'
- breakpoint-media-query: 'Enter breakpoint media query'
- breakpoint-weight: 'Enter breakpoint weight'
- breakpoint-multipliers: 'Enter breakpoint multipliers'
- breakpoint-add: 'Do you want to add another breakpoint?'
-suggestions:
- my-awesome-theme: 'My Awesome theme'
- other: 'Other'
-warnings:
- module-unavailable: 'Warning The following modules are not available in your local environment "%s"'
-errors:
- directory-exists: 'The target directory "%s" is not empty.'
-examples:
- - description: 'Generate a theme without region and without breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name and the global library'
- execution: |
- drupal generate:theme \
- --theme="AnotherTheme" \
- --machine-name="anothertheme" \
- --theme-path="themes/custom" \
- --description="My Awesome theme" \
- --core="8.x" \
- --package="PackageName" \
- --global-library="global-styling" \
- --base-theme="false"
- - description: 'Generate a theme base on stable theme with two region defined and one breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name, a global library, its base, the regions and the breakpoint'
- execution: |
- drupal generate:theme \
- --theme="MyTheme" \
- --machine-name="mytheme" \
- --theme-path="themes/custom" \
- --description="My Awesome theme" \
- --core="8.x" \
- --package="MyThemePackage" \
- --global-library="global-styling" \
- --base-theme="stable" \
- --regions='"region_name":"Content", "region_machine_name":"content"' \
- --regions='"region_name":"Panel", "region_machine_name":"panel"' \
- --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"'
diff --git a/vendor/drupal/console-en/translations/generate.twig.extension.yml b/vendor/drupal/console-en/translations/generate.twig.extension.yml
deleted file mode 100644
index ae84a7e49..000000000
--- a/vendor/drupal/console-en/translations/generate.twig.extension.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Generate a Twig extension.'
-help: 'The generate:twig:extension command helps you to generate a Twig extension.'
-welcome: 'Welcome to the Drupal Twig Extension generator'
-options:
- module: 'The Module name.'
- name: 'Twig Extension name'
- class: 'Class name'
- services: 'Load services from the container.'
-questions:
- module: 'Enter the module name'
- name: 'Enter the twig Extension name'
- class: 'Class name'
- services: 'Enter your service'
-examples:
- - description: 'Generate a twig extension specifying the module name, the extension name and its class'
- execution: |
- drupal generate:twig:extension \
- --module="modulename" \
- --name="modulename.twig.extension" \
- --class="DefaultTwigExtension"
diff --git a/vendor/drupal/console-en/translations/generate.update.yml b/vendor/drupal/console-en/translations/generate.update.yml
deleted file mode 100644
index 614b4216d..000000000
--- a/vendor/drupal/console-en/translations/generate.update.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Generate an implementation of hook_update_N()'
-help: 'The "%s" command helps you generate a hook update N "%s"'
-welcome: 'Welcome to the Drupal Update generator'
-options:
- module: 'The Module name.'
- update-n: 'Update Number'
-questions:
- module: 'Enter the module name'
- update-n: 'Please provide the Update N to be implemeted'
-messages:
- wrong-update-n: 'The update number "%s" is invalid'
-examples:
- - description: 'Generate an update N hook implementation specifying the module name and the N value'
- execution: |
- drupal generate:update \
- --module="modulename" \
- --update-n="8001"
diff --git a/vendor/drupal/console-en/translations/help.yml b/vendor/drupal/console-en/translations/help.yml
deleted file mode 100644
index d8deefc5b..000000000
--- a/vendor/drupal/console-en/translations/help.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Displays help for a command'
-help: |
- The %command.name% command displays help for a given command:
-
- php %command.full_name% list
-
- You can also output the help in other formats by using the --format option:
-
- php %command.full_name% --format=xml list
-
- To display the list of available commands, please use the list command.
-arguments:
- command-name: 'The command name'
-options:
- xml: 'To output list as XML'
- raw: 'To output raw command list'
- format: 'The output format (txt, xml, json, or md)'
-messages:
- deprecated: 'The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead'
diff --git a/vendor/drupal/console-en/translations/image.styles.flush.yml b/vendor/drupal/console-en/translations/image.styles.flush.yml
deleted file mode 100644
index f613fad83..000000000
--- a/vendor/drupal/console-en/translations/image.styles.flush.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Execute flush function by image style or execute all flush images styles'
-messages:
- executing-flush: 'Executing flush function on image style "%s"'
- success: 'All flush functions requested were executed successfully'
-options:
- image-style: 'The Images Styles name.'
-questions:
- image-style: 'Select Images Styles to flush.'
-examples:
- - description: 'Flush large image style'
- execution: |
- drupal image:styles:flush large
- - description: 'Flush thumbnail image style'
- execution: |
- drupal image:styles:flush thumbnail
diff --git a/vendor/drupal/console-en/translations/init.yml b/vendor/drupal/console-en/translations/init.yml
deleted file mode 100644
index d2bc26a8a..000000000
--- a/vendor/drupal/console-en/translations/init.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Copy configuration files.'
-options:
- destination: 'Destination directory to copy files'
- override: 'Override configurations files flag'
- autocomplete: 'Autocomplete tool files flag.'
- site: 'Use local site as destination.'
-questions:
- destination: 'Select destination to copy configuration'
- autocomplete: 'Generate autocomplete files'
- language: 'Select language'
- temp: 'Enter temporary file path'
- chain: 'Copy chain files examples'
- sites: 'Copy site alias files examples'
- temp: 'Enter temporary file path'
- learning: 'Shows information for learning purposes?'
- generate-inline: 'Show inline representation of the executed command?'
- generate-chain: 'Show chain representation of the executed command?'
diff --git a/vendor/drupal/console-en/translations/list.yml b/vendor/drupal/console-en/translations/list.yml
deleted file mode 100644
index 7683426e1..000000000
--- a/vendor/drupal/console-en/translations/list.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Lists all available commands'
-help: |
- The %command.name% command lists all commands:
- php %command.full_name%
- You can also display the commands for a specific namespace:
- php %command.full_name% test
- You can also output the information in other formats by using the --format option:
- php %command.full_name% --format=xml
- It's also possible to get raw list of commands (useful for embedding command runner):
- php %command.full_name% --raw
-arguments:
- namespace: 'The namespace name'
-options:
- xml: 'To output list as XML'
- raw: 'To output raw command list'
- format: 'The output format (txt, xml, json, or md)'
-
-messages:
- usage: "Usage: \n"
- usage-details: " command [options] [arguments]\n\n"
- arguments: 'Arguments: '
- options: 'Options: '
- help: 'Help: '
- comment: 'Available commands for the "%s" namespace: '
- available-commands: 'Available commands: '
diff --git a/vendor/drupal/console-en/translations/locale.language.add.yml b/vendor/drupal/console-en/translations/locale.language.add.yml
deleted file mode 100644
index 29fa09e8f..000000000
--- a/vendor/drupal/console-en/translations/locale.language.add.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-description: 'Add languages to be supported by your site'
-messages:
- invalid-language: 'Language "%s" is an invalid language'
- invalid-languages: 'Languages "%s" are invalid'
- language-add-successfully: 'Language "%s" was added successfully.'
- languages-add-successfully: 'Languages "%s" were added successfully.'
- language-installed: 'Language "%s" is already installed.'
- languages-installed: 'Languages "%s" are already installed.'
diff --git a/vendor/drupal/console-en/translations/locale.language.delete.yml b/vendor/drupal/console-en/translations/locale.language.delete.yml
deleted file mode 100644
index df219c2ca..000000000
--- a/vendor/drupal/console-en/translations/locale.language.delete.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-description: 'Delete a language to be supported by your site'
-messages:
- invalid-language: 'Language "%s" it''s an invalid language'
- language-deleted-successfully: 'Language "%s" was deleted successfully.'
diff --git a/vendor/drupal/console-en/translations/locale.translation.status.yml b/vendor/drupal/console-en/translations/locale.translation.status.yml
deleted file mode 100644
index e1e219cbe..000000000
--- a/vendor/drupal/console-en/translations/locale.translation.status.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'List available translation updates'
-arguments:
- language: 'Language for instance es or Spanish'
-messages:
- no-languages: 'No translatable languages available. Add a language first.'
- up-to-date: 'All translations up to date.'
- no-translations: 'No translation status available. Check manually'
- project: 'Project'
- version: 'Version'
- local-age: 'Local age'
- remote-age: 'Remote age'
- info: Information
- no-translation-files: 'No translation files are provided for development releases.'
- file-not-found: 'File not found at "%s" nor at "%s"'
- local-file-not-found: 'File not found at "%s"'
- translation-not-determined: 'Translation file location could not be determined.'
- translation-project-updated: 'Updated'
- translation-project-available: 'New translation available'
diff --git a/vendor/drupal/console-en/translations/migrate.debug.yml b/vendor/drupal/console-en/translations/migrate.debug.yml
deleted file mode 100644
index be97f1186..000000000
--- a/vendor/drupal/console-en/translations/migrate.debug.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-description: 'Displays current migration available for the application'
-arguments:
- tag: 'Migrate tag'
-messages:
- id: 'Migration Id'
- description: Description
- no-migrations: 'There aren''t migrations available try to execute command: migrate:setup:migrations'
- tags: Tags
diff --git a/vendor/drupal/console-en/translations/migrate.execute.yml b/vendor/drupal/console-en/translations/migrate.execute.yml
deleted file mode 100644
index 393e0895c..000000000
--- a/vendor/drupal/console-en/translations/migrate.execute.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-description: 'Execute a migration available for application'
-arguments:
- id: 'Migration id(s)'
-options:
- site-url: 'Site Source URL'
- db-file: 'Database File'
- db-host: 'Database Host'
- db-name: 'Database Name'
- db-user: 'Database User'
- db-pass: 'Database Pass'
- db-prefix: 'Database Prefix'
- db-port: 'Database Port'
- exclude: 'Migration id(s) to exclude'
- source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
-questions:
- id: 'Migration Id'
- exclude-id: 'Migration Id to exclude (press to stop adding migrations to exclude)'
- other-id: 'Other migration id (press to stop adding migrations)'
- site-url: 'Source Site URL'
- db-file: 'Database File'
- db-host: 'Database Host'
- db-name: 'Database Name'
- db-user: 'Database User'
- db-pass: 'Database Pass'
- db-prefix: 'Database Prefix'
- db-port: 'Database Port'
- invalid-migration-id: 'Migration Id "%s" is invalid'
- source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
-messages:
- processing: 'Processing Migration "%s"'
- imported: 'Migration "%s" was imported correctly'
- fail-load: 'Migration "%s" can''t be loaded'
- importing-incomplete: 'Importing migration "%s"'
- import-stopped: 'Import "%s" stopped by request'
- import-fail: 'Import "%s" failed'
- import-skipped: 'Import "%s" was skipped due to unfulfilled dependencies'
- wrong-source: 'Upgrading from this version of Drupal is not supported.'
- destination-error: 'Database destination error'
- source-error: 'Database source error'
- no-migrations: 'There are not migrations available to be executed'
diff --git a/vendor/drupal/console-en/translations/migrate.rollback.yml b/vendor/drupal/console-en/translations/migrate.rollback.yml
deleted file mode 100644
index 36666266f..000000000
--- a/vendor/drupal/console-en/translations/migrate.rollback.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-description: 'Rollback one or multiple migrations'
-arguments:
- id: 'Migration id(s)'
-messages:
- not-available: 'Migration Id "%s" is invalid.Skipping'
- processing: 'Rollback "%s" completed'
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/migrate.setup.yml b/vendor/drupal/console-en/translations/migrate.setup.yml
deleted file mode 100644
index 70d61207e..000000000
--- a/vendor/drupal/console-en/translations/migrate.setup.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Load and create the relevant migrations for a provided legacy database'
-options:
- db-type: 'Drupal Database type'
- db-host: 'Database Host'
- db-name: 'Database Name'
- db-user: 'Database User'
- db-pass: 'Database Pass'
- db-prefix: 'Database Prefix'
- db-port: 'Database Port'
- source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
-questions:
- db-type: 'Drupal Database type'
- db-host: 'Database Host'
- db-name: 'Database Name'
- db-user: 'Database User'
- db-pass: 'Database Pass'
- db-prefix: 'Database Prefix'
- db-port: 'Database Port'
- source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
-messages:
- not-drupal: 'Source database does not contain a recognizable Drupal version.'
- migrations-created: '"%s" migrations were created successfully for "%s".'
- migrations-not-found: 'There aren''t migrations available'
- migrations-already-exist: 'All migrations available are already created'
diff --git a/vendor/drupal/console-en/translations/module.dependency.install.yml b/vendor/drupal/console-en/translations/module.dependency.install.yml
deleted file mode 100644
index f8ccae9b8..000000000
--- a/vendor/drupal/console-en/translations/module.dependency.install.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'Install dependencies module in the application'
-arguments:
- module: 'Module or modules to be enabled should be separated by a space'
-messages:
- no-depencies: 'Nothing to do. This module does not have any dependencies to install'
- installing: 'Installing module(s) "%s"'
- success: 'The following module(s) were installed successfully: "%s"'
-examples:
- - description: 'Install the dependencies of the specfied module'
- execution: |
- drupal module:dependency:install modulename
diff --git a/vendor/drupal/console-en/translations/module.download.yml b/vendor/drupal/console-en/translations/module.download.yml
deleted file mode 100644
index 03e3c478e..000000000
--- a/vendor/drupal/console-en/translations/module.download.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Download module or modules in application'
-arguments:
- module: 'Module or modules to be enabled should be separated by a space'
-options:
- latest: 'Default to download most recent version'
- path: 'The path of the contrib project'
- composer: 'Option to point out that the module will be downloaded, managed & installed by Composer'
- unstable: 'Module unstable'
-questions:
- path: 'Enter the contrib project Path'
-messages:
- no-releases: 'There aren''t any releases for module "%s"'
- getting-releases: 'Getting releases for module "%s"'
- downloading: 'Downloading module "%s" release "%s"'
- downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"'
- select-release: 'Please select your favorite release'
- outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.'
- error-creating-folder: 'Error creating folder "%s", please check your permissions'
- no-composer-repo: 'Please, configure Composer in ~/.console/config.yml'
- composer: 'Module "%s" was downloaded successfully using Composer'
-examples:
- - description: 'Download module specifying module name and its path'
- execution: |
- drupal module:download modulename \
- --path="modules/contrib"
diff --git a/vendor/drupal/console-en/translations/module.install.yml b/vendor/drupal/console-en/translations/module.install.yml
deleted file mode 100644
index 8aa35ec1a..000000000
--- a/vendor/drupal/console-en/translations/module.install.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-description: 'Install module or modules in the application'
-arguments:
- module: 'Module or modules to be enabled should be separated by a space'
-options:
- latest: 'Default to download most recent version'
- composer: 'Download the module using Composer'
-questions:
- module: 'Module name (press to stop adding modules)'
- invalid-module: 'Invalid module "%s"'
-messages:
- no-modules: 'You must provide module or modules to enable.'
- missing: 'Unable to install module(s) "%s" due to missing module(s) "%s"'
- missing-dependencies: 'Unable to install modules "%s" due to missing dependencies "%s"'
- nothing: 'Nothing to do. All modules are already installed'
- dependencies: 'Are you sure you want to install dependencies: "%s"?'
- success: 'The following module(s) were installed successfully: "%s"'
- disabled-modules: 'Only disabled modules will be listed in autocomplete'
- config-conflict-overwrite: 'These configuration objects will be overwritten in your active configuration'
- config-conflict: 'These configuration objects already exist in active configuration, installation is not possible'
- getting-missing-modules: 'One or more modules "%s" are not available, running download process to get those modules'
- getting-releases: 'Getting releases for module "%s"'
- select-release: 'Please select your favorite release'
- downloading: 'Downloading module "%s" release "%s"'
- downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"'
- no-releases: 'There aren''t any releases for module "%s"'
- installing: 'Installing module(s) "%s"'
- composer: 'The module was installed successfully with Composer'
- error-creating-folder: 'Error creating folder "%s", please check your permissions'
- download-with-composer: 'Module "%s" was downloaded with Composer.'
- not-installed-with-composer: 'Module "%s" seems not to be installed with Composer. Halting.'
- invalid-name: 'Invalid module name: "%s"'
-examples:
- - description: 'Install module specifying the module name'
- execution: |
- drupal module:install modulename
diff --git a/vendor/drupal/console-en/translations/module.path.yml b/vendor/drupal/console-en/translations/module.path.yml
deleted file mode 100644
index 70407ffa3..000000000
--- a/vendor/drupal/console-en/translations/module.path.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Returns the relative path to the module (or absolute path)'
-arguments:
- module: 'The Module name (machine name)'
-options:
- absolute: 'Return module absolute path'
-messages:
-examples:
- - description: 'Get the relative path of the module specifying the module name'
- execution: |
- drupal module:path modulename
diff --git a/vendor/drupal/console-en/translations/module.uninstall.yml b/vendor/drupal/console-en/translations/module.uninstall.yml
deleted file mode 100755
index 3b6d6a822..000000000
--- a/vendor/drupal/console-en/translations/module.uninstall.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Uninstall module or modules in the application'
-questions:
- module: 'Module name (press to stop adding modules)'
- invalid-module: 'Invalid module "%s"'
-options:
- module: 'Module or modules to be uninstalled should be separated by a space'
- force: 'Do you want to ignore dependencies and forcefully uninstall the module?'
- composer: 'Uninstalls the module using Composer'
-messages:
- no-modules: 'You must provide module or modules to uninstall.'
- dependents: 'Unable to uninstall modules "%s" because are required by "%s"'
- nothing: 'Nothing to do. All modules are already uninstalled'
- success: 'The following module(s) were uninstalled successfully: "%s"'
- missing: 'Unable to uninstall modules "%s" due to missing modules "%s"'
- composer-success: 'You should execute now the following command: "composer remove vendor/package"'
-examples:
- - description: 'Uninstall the module specifying the module name'
- execution: |
- drupal module:uninstall modulename
diff --git a/vendor/drupal/console-en/translations/module.update.yml b/vendor/drupal/console-en/translations/module.update.yml
deleted file mode 100644
index 0bd1729ea..000000000
--- a/vendor/drupal/console-en/translations/module.update.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-description: 'Update core, module or modules in the application'
-arguments:
- module: 'Module or modules to be updated should be separated by a space. Leave empty for updating the core and all your modules managed by Composer.'
-options:
- composer: 'Update the module using Composer'
- simulate: 'Simulate the update process with Composer'
-questions:
- module: 'Module name (press to stop adding modules)'
- invalid-module: 'Invalid module "%s"'
-messages:
- success: 'The following module(s) were installed successfully: "%s"'
- composer: 'The module "%s" was managed successfully with Composer'
- only-composer: 'This command only updates modules via Composer. Use --composer option.'
- missing-module: 'Enter a module(s) name(s) to update.'
-examples:
- - description: 'Update module specifying module name and composer parameter'
- execution: |
- drupal module:update modulename \
- --composer
diff --git a/vendor/drupal/console-en/translations/multisite.new.yml b/vendor/drupal/console-en/translations/multisite.new.yml
deleted file mode 100644
index 0f361ba2a..000000000
--- a/vendor/drupal/console-en/translations/multisite.new.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-description: 'Sets up the files for a new multisite install.'
-help: 'The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing ''default'' installation.'
-arguments:
- directory: 'Name of directory under ''sites'' which should be created.'
- uri: 'Site URI to add to sites.php.'
-options:
- copy-default: 'Copies existing site from the default install.'
-errors:
- subdir-empty: 'You must specify a multisite subdirectory to create.'
- subdir-exists: 'The "sites/%s" directory already exists.'
- default-missing: 'The sites/default directory is missing.'
- mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.'
- sites-invalid: 'The sites.php file located is either not readable or not a file.'
- sites-missing: 'No sites.php or example.sites.php to copy from.'
- sites-other: 'A problem was encountered when attempting to write sites.php'
- file-missing: 'The file "%s" was not found for copying.'
- copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.'
- write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.'
- chmod-fail: 'Unable to change permissions on the file "%s". Please ensure that the permissions on that file are correct.'
-warnings:
- missing-files: 'No sites/default/files directory found. The files directory will need to be created by hand.'
-messages:
- copy-default: 'The default install was successfully copied to "sites/%s".'
- fresh-site: 'The new multisite structure was successfully created at "sites/%s" and is ready for installation.'
-examples:
- - description: 'Set up files for a multisite install specifying destination path and uri'
- execution: |
- drupal multisite:new vendor/newsite http://mysite.example.com
diff --git a/vendor/drupal/console-en/translations/multisite.update.yml b/vendor/drupal/console-en/translations/multisite.update.yml
deleted file mode 100644
index 0da5c900d..000000000
--- a/vendor/drupal/console-en/translations/multisite.update.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-description: 'Update the files for a multisite installed.'
-help: 'The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing ''default'' installation.'
-options:
- uri: 'Name of old directory under ''sites'' which should be updated.'
- directory: 'Name of new directory for multisite installed. (You could create subdir separated by ''/'')'
-questions:
- uri: 'Choice the multisite to update'
- directory: 'Enter the new name (You could use subdir separated by ''/'')'
-errors:
- invalid-uri: 'The --uri="%s" does not exist'
- uri-dir-empty: 'You must specify a old multisite directory to update.'
- new-dir-empty: 'You must specify a new name to update multisite.'
- subdir-exists: 'The "sites/%s" directory already exists.'
- mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.'
- copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.'
- write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.'
-messages:
- move-settings: 'The file settings.php was successfully movied to "sites/%s".'
-examples:
- - description: 'Update the files for a multisite installed specifying old path and new path'
- execution: |
- drupal multisite:update
diff --git a/vendor/drupal/console-en/translations/node.access.rebuild.yml b/vendor/drupal/console-en/translations/node.access.rebuild.yml
deleted file mode 100644
index c18b6da12..000000000
--- a/vendor/drupal/console-en/translations/node.access.rebuild.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-description: 'Rebuild node access permissions.'
-help: 'Rebuilding will remove all privileges to content and replace them with permissions based on the current modules and settings.'
-options:
- batch: 'Process in batch mode.'
-messages:
- rebuild: 'Rebuilding node access permissions, one moment please.'
- completed: 'Done rebuilding permissions.'
- failed: 'Rebuilding permissions was not successful.'
-examples:
- - description: Rebuild node access permissions
- execution:
- drupal node:access:rebuild --batch
diff --git a/vendor/drupal/console-en/translations/queue.run.yml b/vendor/drupal/console-en/translations/queue.run.yml
deleted file mode 100644
index 0411433d8..000000000
--- a/vendor/drupal/console-en/translations/queue.run.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'Process the selected queue.'
-arguments:
- name: 'Queue name.'
-messages:
- success: 'Processed "%s": "%s"/"%s" items in "%s" seconds.'
- failed: '"%s" failed: "%s".'
- missing-name: 'Provide a valid queue name.'
- invalid-name: 'Invalid queue name "%s" provided.'
-
diff --git a/vendor/drupal/console-en/translations/rest.debug.yml b/vendor/drupal/console-en/translations/rest.debug.yml
deleted file mode 100644
index 6fc9fc811..000000000
--- a/vendor/drupal/console-en/translations/rest.debug.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Displays current rest resource for the application'
-arguments:
- resource-id: 'Rest ID'
-options:
- status: 'Rest resource status enabled | disabled'
-messages:
- id: 'Rest ID'
- label: Label
- canonical-url: 'Canonical URL'
- status: Status
- provider: Provider
- enabled: Enabled
- disabled: Disabled
- rest-state: 'REST States'
- supported-formats: 'Supported Formats'
- supported-auth: 'Supported Authentication Providers'
- not-found: 'Rest resource "%s" not found'
diff --git a/vendor/drupal/console-en/translations/rest.disable.yml b/vendor/drupal/console-en/translations/rest.disable.yml
deleted file mode 100644
index a1f7360e9..000000000
--- a/vendor/drupal/console-en/translations/rest.disable.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Disable a rest resource for the application'
-arguments:
- resource-id: 'Rest ID'
- states: 'REST States to disable for Rest resource'
-questions:
- resource-id: 'Rest ID'
-messages:
- invalid-rest-id: 'Rest ID "%s" is invalid'
- success: 'Rest ID "%s" disabled'
- already-disabled: 'Rest ID "%s" was already disabled'
diff --git a/vendor/drupal/console-en/translations/rest.enable.yml b/vendor/drupal/console-en/translations/rest.enable.yml
deleted file mode 100644
index 4b7a5bf2e..000000000
--- a/vendor/drupal/console-en/translations/rest.enable.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-description: 'Enable a rest resource for the application'
-arguments:
- resource-id: 'Rest ID'
- states: 'REST States to enable for Rest resource'
- authorizations: 'Authorizations providers enabled for Rest Resource'
-questions:
- resource-id: 'Rest ID'
-messages:
- invalid-rest-id: 'Rest ID "%s" is invalid'
- formats: 'Available serialization formats'
- methods: 'Available methods'
- authentication-providers: 'Available Authentication Providers'
- selected-method: 'Selected Method'
- selected-formats: 'Selected formats'
- selected-authentication-providers: 'Selected Authentication Providers'
- success: 'Rest ID "%s" enabled'
diff --git a/vendor/drupal/console-en/translations/role.delete.yml b/vendor/drupal/console-en/translations/role.delete.yml
deleted file mode 100644
index 1eeb54578..000000000
--- a/vendor/drupal/console-en/translations/role.delete.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Delete roles for the application'
-help: 'The role:delete command helps you delete roles.'
-welcome: 'Welcome to the Drupal role delete'
-arguments:
- rolename: 'Roles name to be deleted'
-messages:
- role-id: 'Role Id'
- role-name: 'Role Name'
- role-created: 'Roles was deleted successfully'
- invalid-machine-name: 'Role does not exist'
-examples:
- - description: 'Delete role specifying rolename'
- execution: |
- drupal role:delete moderator
diff --git a/vendor/drupal/console-en/translations/role.new.yml b/vendor/drupal/console-en/translations/role.new.yml
deleted file mode 100644
index 54303a33c..000000000
--- a/vendor/drupal/console-en/translations/role.new.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Create roles for the application'
-help: 'The role:new command helps you create roles.'
-welcome: 'Welcome to the Drupal role create'
-arguments:
- rolename: 'Role name to be created'
- machine-name: 'Role machine name'
-questions:
- rolename: 'Role name to be created'
- machine-name: 'Role machine name'
-messages:
- role-id: 'Role Id'
- role-name: 'Role Name'
- role-created: 'Role "%s" was created successfully'
- invalid-machine-name: 'The machine name is already exist'
-examples:
- - description: 'Create role specifying rolename and machine-name'
- execution: |
- drupal role:new moderator moderator
diff --git a/vendor/drupal/console-en/translations/router.rebuild.yml b/vendor/drupal/console-en/translations/router.rebuild.yml
deleted file mode 100644
index bc0fbc17e..000000000
--- a/vendor/drupal/console-en/translations/router.rebuild.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Rebuild routes for the application'
-arguments:
- route-name: 'Route names'
-messages:
- rebuilding: 'Rebuilding routes, wait a moment please'
- completed: 'Done rebuilding route(s).'
-examples:
- - description: 'Rebuild routes'
- execution:
- drupal router:rebuild
diff --git a/vendor/drupal/console-en/translations/self-update.yml b/vendor/drupal/console-en/translations/self-update.yml
deleted file mode 100644
index 72014fd3a..000000000
--- a/vendor/drupal/console-en/translations/self-update.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Update project to the latest version.'
-help: 'Update project to the latest version.'
-options:
- major: 'Update to a new major version, if available.'
- manifest: 'Override the manifest file path.'
- current-version: 'Override the version to update from.'
-questions:
- update: 'Update from version "%s" to version "%s".'
-messages:
- not-phar: 'This instance of the CLI was not installed as a Phar archive.'
- update: 'Updating to version "%s".'
- success: 'Updated from version "%s" to version "%s".'
- check: 'Checking for updates from version: "%s"'
- current-version: 'The latest version "%s", was already installed on your system.'
- instructions: |
- Update using: composer global update
- Or you can switch to a Phar install recommended
- composer global remove drupal/console
- curl https://drupalconsole.com/installer -L -o drupal.phar
-
diff --git a/vendor/drupal/console-en/translations/server.yml b/vendor/drupal/console-en/translations/server.yml
deleted file mode 100644
index 86d5ca0c9..000000000
--- a/vendor/drupal/console-en/translations/server.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Runs PHP built-in web server'
-arguments:
- address: 'The address:port values'
-messages:
- executing: 'Executing php from "%s".'
- listening: 'Listening on "%s".'
-errors:
- binary: 'Unable to find PHP binary to run server.'
-examples:
- - description: 'Run using default address argument value 127.0.0.1:8088'
- execution: 'drupal server'
- - description: 'Passing address argument to use a different port number'
- execution: 'drupal server 127.0.0.1:8089'
- - description: 'Running default address argument values, using --root option to define the Drupal root'
- execution: 'drupal --root=/var/www/drupal8.dev server'
diff --git a/vendor/drupal/console-en/translations/settings.set.yml b/vendor/drupal/console-en/translations/settings.set.yml
deleted file mode 100644
index b7150bc69..000000000
--- a/vendor/drupal/console-en/translations/settings.set.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Change a specific setting value in DrupalConsole config file'
-arguments:
- name: 'Setting name in YAML flatten format to set a value in Drupal Console config file'
- value: 'Setting value to set in Drupal Console config file'
-messages:
- error-parsing: 'An error occurs during parsing of YAML file "%s".'
- error-generating: 'Error setting new language in config file.'
- error-writing: 'Error writing config file.'
- success: 'Setting "%s" was set to "%s"'
- missing-file: 'The "%s" config file is missing, try executing `drupal init`'
- missing-language: 'Provided language: "%s", not found'
-examples:
- - description: 'Set application language setting value to "es"'
- execution:
- drupal settings:set application.language es
diff --git a/vendor/drupal/console-en/translations/shell.yml b/vendor/drupal/console-en/translations/shell.yml
deleted file mode 100644
index 89587a8cd..000000000
--- a/vendor/drupal/console-en/translations/shell.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-description: 'Open a shell providing an interactive REPL (Read–Eval–Print-Loop).'
-help: 'This command provides a wrapper for psysh. A runtime developer console, interactive debugger and REPL for PHP.'
diff --git a/vendor/drupal/console-en/translations/site.import.local.yml b/vendor/drupal/console-en/translations/site.import.local.yml
deleted file mode 100644
index 39a43b979..000000000
--- a/vendor/drupal/console-en/translations/site.import.local.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Import/Configure an existing local Drupal project'
-help: 'The site:import:local does create the yaml configuration file for a local existing site.'
-arguments:
- directory: 'Existing Drupal root directory'
- name: 'Name that will be used to generate the site config'
-options:
- environment: 'Name of the environment that is going to be imported'
-messages:
- imported: 'The site has been imported successfully. You might want to run `drupal debug:site` to confirm that everything went well.'
- error-missing: 'The directory "%s" does not exist.'
- error-not-drupal: 'This is not a valid drupal root: "%s"'
- error-writing: 'An error occurred while trying to write the config file: "%s"'
-questions:
- directory: 'Enter the directory name where to install Drupal'
- name: 'Enter the name of the site'
- environment: 'Enter the site environment name'
-examples:
- - description: 'Import local drupal project specifying the site name and the path'
- execution:
- drupal site:import:local SiteName /private/var/www/vhost/anexusit/drupal8.dev/web
diff --git a/vendor/drupal/console-en/translations/site.install.yml b/vendor/drupal/console-en/translations/site.install.yml
deleted file mode 100644
index a83147039..000000000
--- a/vendor/drupal/console-en/translations/site.install.yml
+++ /dev/null
@@ -1,48 +0,0 @@
-description: 'Install a Drupal project'
-arguments:
- profile: 'Drupal Profile to be installed'
- langcode: 'Drupal language'
- db-type: 'Drupal Database type to be used in install'
- db-file: 'Drupal Database file to be used in install'
- site-name: 'Drupal site name'
- site-mail: 'Drupal site mail'
- account-name: 'Drupal administrator account name'
- account-mail: 'Drupal administrator account mail'
- account-pass: 'Drupal administrator account password'
- force: 'Force to reinstall the site'
-questions:
- profile: 'Select Drupal profile to be installed'
- langcode: 'Select language for your Drupal installation'
- db-type: 'Select Drupal Database type to be used in install'
- site-name: 'Provide your Drupal site name'
- site-mail: 'Provide your Drupal site mail'
- account-name: 'Provide your Drupal administrator account name'
- account-mail: 'Provide your Drupal administrator account mail'
- account-pass: 'Provide your Drupal administrator account password'
-suggestions:
- site-name: 'My awesome site'
-messages:
- installing: 'Starting Drupal 8 install process'
- installed: 'Your Drupal 8 installation was completed successfully'
- using-current-database: 'Using "%s" database with name "%s" and user "%s"'
- already-installed: 'Drupal is already installed, try dropping your database executing database:drop or install executing site:install --force --no-interaction'
- sites-backup: 'The sites.php file has temporarily been renamed to backup.sites.php while Drupal installs.'
- sites-restore: 'The backup of sites.php has been been restored to sites.php.'
- invalid-multisite: 'Invalid multisite, please create multisite using command drupal multisite:new "%s" "%s"'
-examples:
- - description: 'Install a drupal project specifying installation type, language code, database configuration, site name, site email and admin credential settings'
- execution: |
- drupal site:install standard \
- --langcode="en" \
- --db-type="mysql" \
- --db-host="127.0.0.1" \
- --db-name="drupal8" \
- --db-user="u53rn4m3" \
- --db-pass="dbp455" \
- --db-port="3306" \
- --site-name="Drupal 8" \
- --site-mail="admin@example.com" \
- --account-name="admin" \
- --account-mail="admin@example.com" \
- --account-pass="p455w0rd"
-
diff --git a/vendor/drupal/console-en/translations/site.maintenance.yml b/vendor/drupal/console-en/translations/site.maintenance.yml
deleted file mode 100644
index 1c535e281..000000000
--- a/vendor/drupal/console-en/translations/site.maintenance.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-description: 'Switch site into maintenance mode'
-arguments:
- mode: 'Site maintenance mode [on/off]'
-messages:
- maintenance-on: 'Operating in maintenance mode on'
- maintenance-off: 'Operating in maintenance mode off'
-errors:
- invalid-mode: 'Invalid maintenance mode'
-examples:
- - description: 'Switch on maintenance'
- execution: |
- drupal site:maintenance on
- - description: 'Switch off maintenance'
- execution: |
- drupal site:maintenance off
diff --git a/vendor/drupal/console-en/translations/site.mode.yml b/vendor/drupal/console-en/translations/site.mode.yml
deleted file mode 100644
index 92deb6479..000000000
--- a/vendor/drupal/console-en/translations/site.mode.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Switch system performance configuration'
-arguments:
- environment: 'Environment name [dev, prod]'
-options:
- local: 'Use this option for testing PROD config, but using settings.local.php for connect to your local environment'
-messages:
- configuration: 'Configuration name'
- configuration-key: 'Configuration key'
- original: 'Original Value'
- updated: 'Override Value'
- invalid-env: 'Invalid environment'
- new-services-settings: 'New services settings'
- service: 'Service'
- service-parameter: 'Parameter'
- service-value: 'Value'
- error-copying-file: 'Error copying file'
- error-writing-file: 'Error copying file'
- services-file-overwritten: 'Services files "%s" was overwritten'
-examples:
- - description: 'Switch system to prod'
- execution: |
- drupal site:mode prod
- - description: 'Switch system to dev'
- execution: |
- drupal site:mode dev
diff --git a/vendor/drupal/console-en/translations/site.new.yml b/vendor/drupal/console-en/translations/site.new.yml
deleted file mode 100644
index 14385f5c8..000000000
--- a/vendor/drupal/console-en/translations/site.new.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Create a new Drupal project'
-arguments:
- directory: 'Directory where to install Drupal'
- version: 'Drupal version to download'
-options:
- composer: 'Install Drupal with Composer'
- latest: 'Use this option to select automatically the latest version'
- unstable: 'Use this option to download unstable releases. If not used, you only can install stable releases. Do not use this with latest nor version.'
-messages:
- select-release: 'Select a core release'
- getting-releases: 'Getting releases for Drupal'
- downloading: 'Downloading "%s" "%s"'
- extracting: 'Extracting files for Drupal "%s"'
- no-releases: 'There aren''t any releases available for Drupal'
- downloaded: 'Drupal "%s" was downloaded in directory "%s"'
- error-copying: 'An error occurred while renaming directory as "%s"'
- composer: 'Drupal "%s" was installed successfully using Composer at "%s"'
- executing: 'Executing composer command:'
- missing-directory: 'Missing directory argument'
- missing-version: 'Missing version argument'
-questions:
- directory: 'Enter the directory name where to install Drupal'
- composer-release: 'Please, choose a release for "%s"'
- stable: 'Do you want to use stable releases?'
diff --git a/vendor/drupal/console-en/translations/site.statistics.yml b/vendor/drupal/console-en/translations/site.statistics.yml
deleted file mode 100644
index 637504101..000000000
--- a/vendor/drupal/console-en/translations/site.statistics.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-description: 'Show the current statistics of website.'
-help: 'Show the current statistics of website.'
-messages:
- stat-name: 'Name'
- stat-quantity: 'Quantity'
- node-type: 'Node:"%s"'
- comments: 'Comments'
- vocabulary: 'Vocabularies'
- taxonomy-terms: 'Taxonomy terms'
- files: 'Files'
- users: 'Users'
- modules-enabled: 'Modules enabled'
- modules-disabled: 'Modules disabled'
- themes-enabled: 'Themes enabled'
- themes-disabled: 'Themes disabled'
- views: 'Views (Not system views)'
diff --git a/vendor/drupal/console-en/translations/site.status.yml b/vendor/drupal/console-en/translations/site.status.yml
deleted file mode 100644
index 8d8dffde9..000000000
--- a/vendor/drupal/console-en/translations/site.status.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-description: 'View current Drupal Installation status'
-messages:
- application: Application
- system: 'System Info'
- hash-salt: 'Hash salt'
- console: 'Drupal Console'
- database: 'Database connection'
- driver: 'Driver'
- host: 'Host'
- port: 'Port'
- username: 'Username'
- password: 'Password'
- theme: 'Themes'
- connection: 'Connection'
- theme-default: 'Default theme'
- theme-admin: 'Admin theme'
- directory: 'Directories'
- directory-root: 'Site root directory'
- directory-temporary: 'Site temporary directory'
- directory-theme-default: 'Default theme directory'
- directory-theme-admin: 'Admin theme directory'
- current-version: 'Current Drupal ("%s")'
- not-installed: 'Drupal is not installed'
-examples:
- - description: 'Get drupal installation status specifying the output format as table'
- execution: |
- drupal site:status \
- --format="table"
diff --git a/vendor/drupal/console-en/translations/state.delete.yml b/vendor/drupal/console-en/translations/state.delete.yml
deleted file mode 100644
index eab626fac..000000000
--- a/vendor/drupal/console-en/translations/state.delete.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'Delete State'
-arguments:
- name: 'State name.'
-messages:
- enter-name: 'State name must contain a value.'
- state-not-exists: 'The state "%s" does not exist.'
- deleted: 'State "%s" sucessfully deleted.'
-examples:
- - description: 'Delete state specifying the state name'
- execution: |
- drupal state:delete comment.maintain_entity_statistics
diff --git a/vendor/drupal/console-en/translations/state.override.yml b/vendor/drupal/console-en/translations/state.override.yml
deleted file mode 100644
index 8511d1a43..000000000
--- a/vendor/drupal/console-en/translations/state.override.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-description: 'Override a State key.'
-help: 'Override a State key.'
-arguments:
- key: 'The State key to override.'
- value: 'The State value to set.'
-messages:
- key: 'State key'
- original: 'Original value'
- override: 'Override value'
-errors:
- no-key: 'You must provide a State key to override.'
- no-value: 'You must provide a State value to set.'
-examples:
- - description: 'Override state value specifying the state name and the new value'
- execution: |
- drupal state:override comment.node_comment_statistics_scale "!!float 1"
diff --git a/vendor/drupal/console-en/translations/taxonomy.term.delete.yml b/vendor/drupal/console-en/translations/taxonomy.term.delete.yml
deleted file mode 100644
index 5ebd28c54..000000000
--- a/vendor/drupal/console-en/translations/taxonomy.term.delete.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'Delete taxonomy terms from a vocabulary'
-vid: 'Enter vocabulary id'
-help: 'This command takes the VID as argument or all which will delete every term from every vocabulary'
-messages:
- nothing: 'All taxonomy terms from "%s" vocabulary already deleted.'
- processing: 'Deleting "%s" taxonomy term.'
- invalid-vocabulary: 'Invalid "%s" vocabulary.'
-examples:
- - description: 'Delete all terms of the "tags" vocabulary'
- execution: |
- drupal taxonomy:term:delete tags
diff --git a/vendor/drupal/console-en/translations/test.run.yml b/vendor/drupal/console-en/translations/test.run.yml
deleted file mode 100644
index 70efff552..000000000
--- a/vendor/drupal/console-en/translations/test.run.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-description: 'Run Test unit from tests available for application'
-arguments:
- test-class: 'Test Class'
- test-methods: 'Test method(s) to be run'
- url: 'Test url'
-messages:
- missing-dependency: 'Test can''t be executed due a missing dependency'
- phpunit-pending: 'Logic to execute PHPUnit test is not implemented yet.'
- starting-test: 'Starting test'
- test-duration: 'Test duration'
- test-pass: 'Test passes'
- test-fail: 'Test fails'
- test-exception: 'Test exceptions'
- test-debug: 'Test debugs'
- url-required: 'URL option is required to run test'
- test-summary: 'Test Summary'
- group: Group
- status: Status
- file: File
- method: Method
- line: Line
- message: Message
- invalid-class: 'Testing class "%s" does not exist.'
diff --git a/vendor/drupal/console-en/translations/theme.download.yml b/vendor/drupal/console-en/translations/theme.download.yml
deleted file mode 100644
index 6fff4d5d0..000000000
--- a/vendor/drupal/console-en/translations/theme.download.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-description: 'Download theme in application'
-arguments:
- version: 'Theme version i.e 1.x-dev'
- theme: 'the Theme name'
-options:
- composer: 'Use --composer option for manage the theme download with Composer'
-messages:
- no-releases: 'There aren''t any releases for theme "%s"'
- getting-releases: 'Getting releases for theme "%s"'
- downloading: 'Downloading theme "%s" release "%s"'
- downloaded: 'Theme "%s" version "%s" was downloaded successfully at "%s"'
- select-release: 'Please select your favorite release'
- outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.'
- error-creating-folder: 'Error creating folder "%s", please check your permissions'
-examples:
- - description: 'Download theme specifying name and version'
- execution: |
- drupal theme:download Alina 7.x-1.2
diff --git a/vendor/drupal/console-en/translations/theme.install.yml b/vendor/drupal/console-en/translations/theme.install.yml
deleted file mode 100644
index 44605a78d..000000000
--- a/vendor/drupal/console-en/translations/theme.install.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-description: 'Install theme or themes in the application'
-questions:
- theme: 'theme name (press to stop adding themes)'
- invalid-theme: 'Invalid theme "%s"'
-options:
- theme: 'theme or themes to be installed should be separated by a space'
- overwrite-config: 'Overwrite active configuration if necessary'
- set-default: 'Set theme as default theme'
-messages:
- no-themes: 'You must provide theme or themes to install.'
- themes-missing: 'Unable to install themes "%s" due they aren''t available'
- theme-missing: 'Unable to install theme "%s" due is not available'
- missing-dependencies: 'Unable to install themes "%s" due to missing dependencies "%s"'
- themes-nothing: 'Nothing to do. All themes "%s" are already installed'
- theme-nothing: 'Nothing to do. Theme "%s" is already installed'
- dependencies: 'There are some unmet dependencies: "%s"?'
- theme-success: 'The "%s" theme has been installed successfully'
- themes-success: 'The themes "%s" were installed successfully'
- theme-default-success: 'The "%s" theme has been installed successfully as default theme'
- disabled-themes: 'Only uninstalled themes will be listed in autocomplete'
- invalid-theme-default: 'Option default is only valid for one theme'
-examples:
- - description: 'Install theme specifying the name'
- execution: |
- drupal theme:install mytheme
diff --git a/vendor/drupal/console-en/translations/theme.path.yml b/vendor/drupal/console-en/translations/theme.path.yml
deleted file mode 100644
index 07a0593a2..000000000
--- a/vendor/drupal/console-en/translations/theme.path.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'Returns the relative path to the theme (or absolute path)'
-arguments:
- theme: 'Theme name'
-options:
- absolute: 'Return theme absolute path'
-messages:
- invalid-theme-name: 'Invalid theme name: "%s"'
-examples:
- - description: 'Get the path of mytheme'
- execution: |
- drupal theme:path mytheme
diff --git a/vendor/drupal/console-en/translations/theme.uninstall.yml b/vendor/drupal/console-en/translations/theme.uninstall.yml
deleted file mode 100644
index 36cb10a11..000000000
--- a/vendor/drupal/console-en/translations/theme.uninstall.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Uninstall theme or themes in the application'
-questions:
- theme: 'theme name (press to stop adding themes)'
- invalid-theme: 'Invalid theme "%s"'
-options:
- theme: 'theme or themes to be uninstalled should be separated by a space'
-messages:
- no-themes: 'You must provide theme or themes to uninstall.'
- themes-missing: 'Unable to uninstall themes "%s", because they aren''t available'
- theme-missing: 'Unable to uninstall theme "%s", because it is not available'
- missing-dependencies: 'Unable to uninstall themes "%s" due to missing dependencies "%s"'
- themes-nothing: 'Nothing to do. All themes are already uninstalled: "%s"'
- theme-nothing: 'Nothing to do. Theme "%s" is already uninstalled'
- dependencies: 'There are some unmet dependencies: "%s"?'
- theme-success: 'The "%s" theme has been uninstalled successfully'
- themes-success: 'The themes "%s" were uninstalled successfully'
- installed-themes: 'Only installed themes will be listed in autocomplete'
- invalid-theme-default: 'Option default is only valid for one theme'
- error-default-theme: 'Theme "%s" is the default theme and cannot be uninstalled.'
- error-admin-theme: 'Theme "%s" is the admin theme and cannot be uninstalled.'
-examples:
- - description: 'Uninstall theme specifying the name'
- execution: |
- drupal theme:uninstall mytheme
diff --git a/vendor/drupal/console-en/translations/update.entities.yml b/vendor/drupal/console-en/translations/update.entities.yml
deleted file mode 100644
index 9be4b3631..000000000
--- a/vendor/drupal/console-en/translations/update.entities.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: 'Applying Entity Updates'
-messages:
- start: 'Starting the entity updates'
- end: 'Finished the entity updates'
- error: 'Error on Entity Updates'
-examples:
- - description: 'Update entities'
- execution: |
- drupal update:entities
diff --git a/vendor/drupal/console-en/translations/update.execute.yml b/vendor/drupal/console-en/translations/update.execute.yml
deleted file mode 100644
index 590a12153..000000000
--- a/vendor/drupal/console-en/translations/update.execute.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Execute a specific Update N function in a module, or execute all'
-arguments:
- module: 'Module name'
- update-n: 'Specific Update N function to be executed'
-messages:
- no-module-updates: 'There aren''t updates available for module "%s"'
- executing-update: 'Executing update function "%s" of module "%s"'
- module-update-function-not-found: 'Module "%s" doesn''t have a function update for "%s"'
- executing-required-previous-updates: 'Executing required previous updates'
- no-pending-updates: 'There aren''t updates available'
-examples:
- - description: 'Execute all updates'
- execution: |
- drupal update:execute
- - description: 'Execute updates for system module'
- execution: |
- drupal update:execute system
diff --git a/vendor/drupal/console-en/translations/user.create.yml b/vendor/drupal/console-en/translations/user.create.yml
deleted file mode 100644
index 0adc15a1c..000000000
--- a/vendor/drupal/console-en/translations/user.create.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-description: 'Create users for the application'
-help: 'The user:create command helps you create users.'
-welcome: 'Welcome to the Drupal user create'
-options:
- username: 'User name to be created'
- password: 'User password'
- roles: 'User roles'
- email: 'User email'
- status: 'User status'
-questions:
- username: 'User name to be created'
- password: 'User password (empty to auto-generate)'
- roles: 'User roles (empty to skip)'
- email: 'User e-mail (empty to skip)'
- status: 'User status (empty to skip)'
-messages:
- user-id: 'User ID'
- username: 'Username'
- password: 'Password'
- email: 'E-mail'
- roles: 'Roles'
- created: 'Created'
- status: 'Status'
- user-created: 'User "%s" was created successfully'
-examples:
- - description: 'Create user specifying username, password, role, email and status'
- execution: |
- drupal user:create john p455w0rd \
- --roles='authenticated' \
- --email="john@anexusit.com" \
- --status="1"
- - description: 'Create admin user specifying username, password, role, email and status'
- execution: |
- drupal user:create doe p455w0rd \
- --roles='administrator' \
- --email="doe@anexusit.com" \
- --status="1"
diff --git a/vendor/drupal/console-en/translations/user.delete.yml b/vendor/drupal/console-en/translations/user.delete.yml
deleted file mode 100644
index f186320f9..000000000
--- a/vendor/drupal/console-en/translations/user.delete.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-description: 'Delete users from the application'
-help: 'The user:delete command helps you delete users.'
-welcome: 'Welcome to the Drupal user delete'
-options:
- user: 'User name/id to be deleted'
- roles: 'Users with the listed roles to be deleted'
-questions:
- user: 'User name/id to be deleted (empty to skip)'
- roles: 'Select role(s) associated with users to be deleted'
-messages:
- user-id: 'User ID'
- username: 'Username'
- user-deleted: 'User "%s" was deleted successfully'
- users-deleted: '"%s" users were deleted successfully'
-errors:
- invalid-user: 'User name/id "%s" is invalid'
-examples:
- - description: 'Delete user with the id number 2'
- execution: |
- drupal user:delete \
- --user="2"
- - description: 'Delete user with the username "jmolivas"'
- execution: |
- drupal user:delete \
- --user="jmolivas"
- - description: 'Delete users with the role "authenticated"'
- execution: |
- drupal user:delete \
- --role="authenticated"
diff --git a/vendor/drupal/console-en/translations/user.login.clear.attempts.yml b/vendor/drupal/console-en/translations/user.login.clear.attempts.yml
deleted file mode 100644
index 14402a60a..000000000
--- a/vendor/drupal/console-en/translations/user.login.clear.attempts.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-description: 'Clear failed login attempts for an account.'
-help: 'The user:login:clear:attempts command resets the failed login attempts for an account.'
-arguments:
- user: 'User name/id.'
-questions:
- user: 'Enter User name/id'
-messages:
- successful: 'Login attempts were successfully cleared for user: "%s".'
-errors:
- invalid-user: 'Cannot load user entity using: "%s".'
- no-flood: 'No flood table on the system.'
diff --git a/vendor/drupal/console-en/translations/user.login.url.yml b/vendor/drupal/console-en/translations/user.login.url.yml
deleted file mode 100644
index 174e98e22..000000000
--- a/vendor/drupal/console-en/translations/user.login.url.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: 'Returns a one-time user login url.'
-options:
- user: 'User name/id.'
-messages:
- url: 'One-time login for "%s"'
-questions:
- user: 'Enter User name/id'
-errors:
- invalid-user: 'Cannot load user entity using: "%s".'
-examples:
- - description: 'Get one time login url for user id 10'
- execution: drupal user:login:url 10
- - description: 'Get one time login url for username jmolivas'
- execution: drupal user:login:url jmolivas
\ No newline at end of file
diff --git a/vendor/drupal/console-en/translations/user.password.hash.yml b/vendor/drupal/console-en/translations/user.password.hash.yml
deleted file mode 100644
index a37d9a00a..000000000
--- a/vendor/drupal/console-en/translations/user.password.hash.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-description: 'Generate a hash from a plaintext password.'
-help: 'The password:hash command helps you to generate hashes password from plaintext passwords.'
-welcome: 'Welcome to the Drupal password hash generator'
-options:
- password: 'Password(s) in text format'
-questions:
- invalid-pass: 'Password can''t be empty'
- password: 'Enter password'
- other-password: 'Other password (press to stop adding passwords)'
-messages:
- password: Password
- hash: Hash
-errors: null
-examples:
- - description: 'Get hash of the word "p455w0rd"'
- execution: |
- drupal user:password:hash p455w0rd
diff --git a/vendor/drupal/console-en/translations/user.password.reset.yml b/vendor/drupal/console-en/translations/user.password.reset.yml
deleted file mode 100644
index 60f63ea0d..000000000
--- a/vendor/drupal/console-en/translations/user.password.reset.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-description: 'Reset password for a specific user.'
-help: 'The password:reset command helps you to reset password for a specific user.'
-welcome: 'Welcome to the Drupal password reset'
-options:
- password: 'Password in text format'
- user: 'User name/id'
-questions:
- invalid-user: 'Invalid user name/id "%s", user id must be an integer'
- invalid-pass: 'Password can''t be empty'
- user: 'Enter User name/id'
- password: 'Enter password'
- other-password: 'Other password (press to stop adding passwords)'
-messages:
- reset-successful: 'Password was updated successfully for user id "%s"'
-errors:
- invalid-user: 'Invalid user name/id "%s"'
- empty-password: 'Password can not be empty'
-examples:
- - description: 'Update password specifying the user id and the new password'
- execution: |
- drupal user:password:reset 2 p455w0rd
- - description: 'Update password specifying the user jmolivas and the new password'
- execution: |
- drupal user:password:reset jmolivas p455w0rd
diff --git a/vendor/drupal/console-en/translations/user.role.yml b/vendor/drupal/console-en/translations/user.role.yml
deleted file mode 100644
index 36fff83d4..000000000
--- a/vendor/drupal/console-en/translations/user.role.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-description: 'Adds/removes a role for a given user'
-help: 'The user:role command helps you to add or remove a role to a user.'
-welcome: 'Welcome to the Drupal user rule'
-arguments:
- roles: 'Roles to add or remove. Please provide the machine name (only one)'
- operation: 'Add or remove'
- user: 'The affected user (only one)'
-messages:
- bad-arguments: 'Some arguments are missing! Please, provide all the following arguments: [add/remove] [username] [role]'
- no-user-found: 'Username "%s" was not found!'
- no-role-found: 'Role "%s" was not found!'
- add-success: 'Username %1$s was added role %2$s sucessfully'
- remove-success: 'Username %1$s was removed role %2$s sucessfully'
-examples:
- - description: 'Add administrator role to the user admin specifying the username and the role'
- execution: |
- drupal user:role add admin administrator
- - description: 'Remove administrator role from the user admin specifying the username and the role'
- execution: |
- drupal user:role remove admin administrator
diff --git a/vendor/drupal/console-en/translations/views.disable.yml b/vendor/drupal/console-en/translations/views.disable.yml
deleted file mode 100644
index e8dd354d2..000000000
--- a/vendor/drupal/console-en/translations/views.disable.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Disable a View'
-messages:
- disabled-successfully: 'View "%s" was disabled successfully.'
-examples:
- - description: 'Disable content view'
- execution: |
- drupal views:disable content
- - description: 'Disable frontpage view'
- execution: |
- drupal views:disable frontpage
diff --git a/vendor/drupal/console-en/translations/views.enable.yml b/vendor/drupal/console-en/translations/views.enable.yml
deleted file mode 100644
index 4531768b7..000000000
--- a/vendor/drupal/console-en/translations/views.enable.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-description: 'Enable a View'
-messages:
- enabled-successfully: 'View "%s" was enabled successfully.'
-examples:
- - description: 'Enable content view'
- execution: |
- drupal views:enable content
- - description: 'Enable frontpage view'
- execution: |
- drupal views:enable frontpage
diff --git a/vendor/drupal/console-extend-plugin/.gitignore b/vendor/drupal/console-extend-plugin/.gitignore
deleted file mode 100644
index 3423e54e5..000000000
--- a/vendor/drupal/console-extend-plugin/.gitignore
+++ /dev/null
@@ -1,20 +0,0 @@
-# deprecation-detector
-/.rules
-
-# Composer
-.composer.lock
-/vendor
-
-# Binaries
-/box.phar
-/console.phar
-/composer.phar
-/drupal.phar
-/drupal.phar.version
-
-# Test
-/phpunit.xml
-
-# Project
-extend.config.yml
-extend.services.yml
diff --git a/vendor/drupal/console-extend-plugin/README.md b/vendor/drupal/console-extend-plugin/README.md
deleted file mode 100644
index e30ad78c7..000000000
--- a/vendor/drupal/console-extend-plugin/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# Drupal Console Extend Plugin
-
-Composer plugin to discover Drupal Console commands using a standard package/library.
-
-### Install this project:
-```
-composer require drupal/console-extend-plugin
-```
diff --git a/vendor/drupal/console-extend-plugin/composer.json b/vendor/drupal/console-extend-plugin/composer.json
deleted file mode 100644
index 1aabc9f30..000000000
--- a/vendor/drupal/console-extend-plugin/composer.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "drupal/console-extend-plugin",
- "description": "Drupal Console Extend Plugin",
- "license": "GPL-2.0+",
- "authors": [
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com"
- }
- ],
- "type": "composer-plugin",
- "extra": {
- "class": "Drupal\\Console\\Composer\\Plugin\\Extender"
- },
- "require": {
- "composer-plugin-api": "^1.0",
- "symfony/yaml": "~2.7|~3.0",
- "symfony/finder": "~2.7|~3.0"
- },
- "minimum-stability": "dev",
- "prefer-stable": true,
- "autoload": {
- "psr-4": {"Drupal\\Console\\Composer\\Plugin\\": "src"}
- }
-}
diff --git a/vendor/drupal/console-extend-plugin/phpqa.yml b/vendor/drupal/console-extend-plugin/phpqa.yml
deleted file mode 100644
index 0edc3519c..000000000
--- a/vendor/drupal/console-extend-plugin/phpqa.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-application:
- method:
- git:
- enabled: true
- exception: false
- composer:
- enabled: true
- exception: false
- analyzer:
- parallel-lint:
- enabled: true
- exception: true
- options:
- e: 'php'
- exclude: /vendor
- arguments:
- php-cs-fixer:
- enabled: true
- exception: false
- options:
- level: psr2
- arguments:
- prefixes:
- - fix
- postfixes:
- phpcbf:
- enabled: true
- exception: false
- options:
- standard: PSR2
- severity: 0
- ignore: /vendor
- arguments:
- - '-n'
- phpcs:
- enabled: false
- exception: false
- options:
- standard: PSR2
- severity: 0
- ignore: /vendor
- arguments:
- - '-n'
- phpmd:
- enabled: false
- exception: false
- options:
- arguments:
- prefixes:
- postfixes:
- - 'text'
- - 'cleancode,codesize,unusedcode,naming,controversial,design'
- phploc:
- enabled: false
- exception: false
- phpcpd:
- enabled: false
- exception: false
- phpdcd:
- enabled: false
- exception: false
- phpunit:
- enabled: true
- exception: true
- file:
- configuration: phpunit.xml.dist
- single-execution: true
- options:
- arguments:
diff --git a/vendor/drupal/console-extend-plugin/src/Extender.php b/vendor/drupal/console-extend-plugin/src/Extender.php
deleted file mode 100644
index 186f3218e..000000000
--- a/vendor/drupal/console-extend-plugin/src/Extender.php
+++ /dev/null
@@ -1,158 +0,0 @@
-composer = $composer;
- $this->io = $io;
- }
-
- /**
- * Returns an array of event names this subscriber wants to listen to.
- */
- public static function getSubscribedEvents()
- {
- return [
- ScriptEvents::POST_INSTALL_CMD => "processPackages",
- ScriptEvents::POST_UPDATE_CMD => "processPackages",
- ];
- }
-
- /**
- * @param Event $event
- * @throws \Exception
- */
- public function processPackages(Event $event)
- {
- $extenderManager = new ExtenderManager();
-
- $composer = $event->getComposer();
- $installationManager = $composer->getInstallationManager();
- $repositoryManager = $composer->getRepositoryManager();
- $localRepository = $repositoryManager->getLocalRepository();
-
- foreach ($localRepository->getPackages() as $package) {
- if ($installationManager->isPackageInstalled($localRepository, $package)) {
- if ($package->getType() === 'drupal-console-library') {
- $extenderManager->addServicesFile($installationManager->getInstallPath($package) . '/console.services.yml');
- $extenderManager->addConfigFile($installationManager->getInstallPath($package) . '/console.config.yml');
- }
- }
- }
-
- if ($consolePackage = $localRepository->findPackage('drupal/console', '*')) {
- if ($localRepository->hasPackage($consolePackage)) {
- $directory = $installationManager->getInstallPath($consolePackage);
- }
- }
- if (empty($directory)) {
- // cwd should be the project root. This is the same logic Symfony uses.
- $directory = getcwd();
- }
-
- $configFile = $directory . '/extend.console.config.yml';
- $servicesFile = $directory . '/extend.console.services.yml';
- $servicesUninstallFile = $directory . '/extend.console.uninstall.services.yml';
-
- if (file_exists($configFile)) {
- unlink($configFile);
- $this->io->write('Removing config cache file: ');
- $this->io->write($configFile);
- }
-
- if (file_exists($servicesFile)) {
- unlink($servicesFile);
- $this->io->write('Removing packages services cache file: ');
- $this->io->write($servicesFile);
- }
-
- if (file_exists($servicesUninstallFile)) {
- unlink($servicesUninstallFile);
- $this->io->write('Removing packages services cache file: ');
- $this->io->write($servicesUninstallFile);
- }
-
- if ($configData = $extenderManager->getConfigData()) {
- file_put_contents(
- $configFile,
- Yaml::dump($configData, 6, 2)
- );
- $this->io->write('Creating packages config cache file: ');
- $this->io->write($configFile);
- }
-
- $servicesData = $extenderManager->getServicesData();
- if ($servicesData && array_key_exists('install', $servicesData)) {
- file_put_contents(
- $servicesFile,
- Yaml::dump($servicesData['install'], 4, 2)
- );
- $this->io->write('Creating packages services cache file: ');
- $this->io->write($servicesFile);
- }
-
- $servicesData = $extenderManager->getServicesData();
- if ($servicesData && array_key_exists('uninstall', $servicesData)) {
- file_put_contents(
- $servicesUninstallFile,
- Yaml::dump($servicesData['uninstall'], 4, 2)
- );
- $this->io->write('Creating packages services cache file: ');
- $this->io->write($servicesUninstallFile);
- }
-
- $this->removeCacheFiles($directory);
- }
-
- protected function removeCacheFiles($directory)
- {
- try {
- $finder = new Finder();
- $finder->files()
- ->in($directory)
- ->name('*-console.services.yml')
- ->ignoreUnreadableDirs();
-
- foreach ($finder as $file) {
- $this->io->write('Removing site services cache file: ');
- $this->io->write($file->getPathName());
- unlink($file->getPathName());
- }
- } catch (\InvalidArgumentException $argumentException) {
- $this->io->write('Cache file can not be deleted ');
- }
- }
-}
diff --git a/vendor/drupal/console-extend-plugin/src/ExtenderManager.php b/vendor/drupal/console-extend-plugin/src/ExtenderManager.php
deleted file mode 100644
index 427b62de8..000000000
--- a/vendor/drupal/console-extend-plugin/src/ExtenderManager.php
+++ /dev/null
@@ -1,218 +0,0 @@
-init();
- }
-
- /**
- * @param string $composerFile
- *
- * @return bool
- */
- public function isValidPackageType($composerFile)
- {
- if (!is_file($composerFile)) {
- return false;
- }
-
- $composerContent = json_decode(file_get_contents($composerFile), true);
- if (!$composerContent) {
- return false;
- }
-
- if (!array_key_exists('type', $composerContent)) {
- return false;
- }
-
- return $composerContent['type'] === 'drupal-console-library';
- }
-
- /**
- * @param string $configFile
- */
- public function addConfigFile($configFile)
- {
- $configData = $this->parseData($configFile);
- if ($this->isValidConfigData($configData)) {
- $this->configData = array_merge_recursive(
- $configData,
- $this->configData
- );
- }
- }
-
- /**
- * @param string $servicesFile
- */
- public function addServicesFile($servicesFile)
- {
- $consoleTags = [
- 'drupal.command',
- 'drupal.generator'
- ];
- $servicesData = $this->parseData($servicesFile);
- if ($this->isValidServicesData($servicesData)) {
- foreach ($servicesData['services'] as $key => $definition) {
- if (!array_key_exists('tags', $definition)) {
- continue;
- }
- $bootstrap = 'install';
- foreach ($definition['tags'] as $tags) {
- if (!array_key_exists('name', $tags)) {
- $bootstrap = null;
- continue;
- }
- if (array_search($tags['name'], $consoleTags) === false) {
- $bootstrap = null;
- continue;
- }
- if (array_key_exists('bootstrap', $tags)) {
- $bootstrap = $tags['bootstrap'];
- }
- }
- if ($bootstrap) {
- $this->servicesData[$bootstrap]['services'][$key] = $definition;
- }
- }
- }
- }
-
- /**
- * init
- */
- private function init()
- {
- $this->configData = [];
- $this->servicesData = [];
- }
-
- /**
- * @param $file
- * @return array|mixed
- */
- private function parseData($file)
- {
- if (!file_exists($file)) {
- return [];
- }
-
- $data = Yaml::parse(
- file_get_contents($file)
- );
-
- if (!$data) {
- return [];
- }
-
- return $data;
- }
-
- public function processProjectPackages($directory)
- {
- $finder = new Finder();
- $finder->files()
- ->name('composer.json')
- ->contains('drupal-console-library')
- ->in($directory)
- ->ignoreUnreadableDirs();
-
- foreach ($finder as $file) {
- $this->processComposerFile($file->getPathName());
- }
- }
-
- /**
- * @param $composerFile
- */
- private function processComposerFile($composerFile)
- {
- $packageDirectory = dirname($composerFile);
-
- $configFile = $packageDirectory.'/console.config.yml';
- $this->addConfigFile($configFile);
-
- $servicesFile = $packageDirectory.'/console.services.yml';
- $this->addServicesFile($servicesFile);
- }
-
- /**
- * @param array $configData
- *
- * @return boolean
- */
- private function isValidConfigData($configData)
- {
- if (!$configData) {
- return false;
- }
-
- if (!array_key_exists('application', $configData)) {
- return false;
- }
-
- if (!array_key_exists('autowire', $configData['application'])) {
- return false;
- }
-
- if (!array_key_exists('commands', $configData['application']['autowire'])) {
- return false;
- }
-
- return true;
- }
-
- /**
- * @param array $servicesData
- *
- * @return boolean
- */
- private function isValidServicesData($servicesData)
- {
- if (!$servicesData) {
- return false;
- }
-
- if (!array_key_exists('services', $servicesData)) {
- return false;
- }
-
- return true;
- }
-
- /**
- * @return array
- */
- public function getConfigData()
- {
- return $this->configData;
- }
-
- /**
- * @return array
- */
- public function getServicesData()
- {
- return $this->servicesData;
- }
-}
diff --git a/vendor/drupal/console/.github/ISSUE_TEMPLATE b/vendor/drupal/console/.github/ISSUE_TEMPLATE
deleted file mode 100644
index fdf819bc9..000000000
--- a/vendor/drupal/console/.github/ISSUE_TEMPLATE
+++ /dev/null
@@ -1,41 +0,0 @@
-### Issue title
-
-The issue title should comply with the following structure:
-
-[ *ISSUE-GROUP* ] Short description
-
-The *ISSUE-GROUP* should be one of:
-
-* `command:name`
-* `console`
-* `helper`
-* `standard`
-* `template`
-* `translation`
-* `test`
-* `docs`
-
-### Problem/Motivation
-A brief statement describing why the issue was filed.
-
-**Details to include:**
-- Why are we doing this? Above all, a summary should explain why a change is needed, in a few short sentences.
-
-### How to reproduce
-Include steps related how to reproduce.
-
-**Details to include:**
-- Drupal version (you can obtain this by running `drupal site:status`).
-- Console version (you can obtain this by running `composer show | grep drupal/console`).
-- Console Launcher version (you can obtain this by running outside of a drupal site `drupal --version`).
-- Steps to reproduce
-- Include screen-shot or video whenever necessary.
-
-### Solution
-A brief description of the proposed fix.
-
-**Details to include:**
-- A short summary of the approach proposed or used in the PR.
-- Approaches that have been tried and ruled out.
-- Links to relevant API documentation or other resources.
-- Known workarounds.
diff --git a/vendor/drupal/console/.gitignore b/vendor/drupal/console/.gitignore
deleted file mode 100644
index 12aa39608..000000000
--- a/vendor/drupal/console/.gitignore
+++ /dev/null
@@ -1,40 +0,0 @@
-# deprecation-detector
-/.rules
-
-# Composer
-composer.lock
-/vendor
-/bin/phpunit
-/bin/jsonlint
-/bin/phpcbf
-/bin/phpcs
-/bin/validate-json
-/bin/pdepend
-/bin/php-cs-fixer
-/bin/phpmd
-/bin/php-parse
-/bin/psysh
-PATCHES.txt
-
-# Develop
-autoload.local.php
-
-# Binaries
-/box.phar
-/console.phar
-/drupal.phar
-/drupal.phar.version
-
-# Test
-/phpunit.xml
-
-# Drupal
-/core
-/nbproject/
-
-# drupal/console-extend-plugin generated files
-extend.console.*.yml
-*-console.services.yml
-
-#PhpStorm
-.idea/*
diff --git a/vendor/drupal/console/.php_cs b/vendor/drupal/console/.php_cs
deleted file mode 100644
index f396a6704..000000000
--- a/vendor/drupal/console/.php_cs
+++ /dev/null
@@ -1,10 +0,0 @@
-setRules(
- [
- '@PSR2' => true,
- 'array_syntax' => ['syntax' => 'short'],
- ]
- )
- ->setUsingCache(false);
diff --git a/vendor/drupal/console/.travis.yml b/vendor/drupal/console/.travis.yml
deleted file mode 100644
index c37288a28..000000000
--- a/vendor/drupal/console/.travis.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-sudo: false
-
-language: php
-
-php:
- - 5.5.9
- - 5.6
- - 7.0
- - 7.1
- - hhvm
-
-matrix:
- fast_finish: true
- allow_failures:
- - php: hhvm
- - php: 7.0
- - php: 7.1
-
-env:
- global:
- - PROJECT_DIR=/home/project
-
-before_script:
- - phpenv config-rm xdebug.ini
- # This fixes a fail when install Drupal.
- - echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- - composer self-update
- - composer install --no-dev
-# - curl -LSs https://box-project.github.io/box2/installer.php | php
-# - composer global require drupal/coder:~8.1
-
-script:
- - if [ -n "${TRAVIS_BUILD_DIR+1}" ]; then PROJECT_DIR=$TRAVIS_BUILD_DIR; fi
-# - phpunit
-# - php box.phar build
-# - php drupal.phar init
-# - php drupal.phar check
-# - php drupal.phar site:new drupal8.dev --latest --no-interaction
-# - cd drupal8.dev
-# - php ../drupal.phar site:install standard --langcode=en --db-type=sqlite --db-file=sites/default/files/.ht.sqlite --site-name="Drupal 8 Site Install" --site-mail=admin@example.com --account-name=admin --account-mail=admin@example.com --account-pass=admin --no-interaction
-# - php ../drupal.phar chain --file=$PROJECT_DIR/config/dist/chain/sample.yml
-# - ~/.composer/vendor/bin/phpcs --warning-severity=0 --standard=~/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml $PROJECT_DIR/drupal8.dev/modules/custom/example
-
-notifications:
- webhooks:
- urls:
- - https://webhooks.gitter.im/e/637685414a0d0ef9d4c6
- on_success: change
- on_failure: always
diff --git a/vendor/drupal/console/CONTRIBUTING.md b/vendor/drupal/console/CONTRIBUTING.md
deleted file mode 100644
index c1fb6de9b..000000000
--- a/vendor/drupal/console/CONTRIBUTING.md
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-- [Issue title](#issue-title)
-- [Problem/Motivation](#problemmotivation)
-- [How to reproduce](#how-to-reproduce)
-- [Solution](#solution)
-- [Minimum Requirements](#minimum-requirements)
-- [Support](#support)
-- [Documentation](#documentation)
-
-
-
-### Issue title
-
-The issue title should comply with the following structure:
-
-[ *ISSUE-GROUP* ] Short description
-
-The *ISSUE-GROUP* should be one of:
-
-* `command:name`
-* `console`
-* `helper`
-* `standard`
-* `template`
-* `translation`
-* `test`
-* `docs`
-
-### Problem/Motivation
-A brief statement describing why the issue was filed.
-
-**Details to include:**
-- Why are we doing this? Above all, a summary should explain why a change is needed, in a few short sentences.
-
-### How to reproduce
-Include steps related how to reproduce.
-
-**Details to include:**
-- Drupal version (you can obtain this by running `drupal site:status`).
-- Console version (you can obtain this by running `composer show | grep drupal/console`).
-- Console Launcher version (you can obtain this by running outside of a drupal site `drupal --version`).
-- Steps to reproduce
-- Include screen-shot or video whenever necessary.
-
-### Solution
-A brief description of the proposed fix.
-
-**Details to include:**
-- A short summary of the approach proposed or used in the PR.
-- Approaches that have been tried and ruled out.
-- Links to relevant API documentation or other resources.
-- Known workarounds.
-
-### Minimum Requirements
-This project requires Drupal 8.
-
-### Support
-**Do not open issue for support question, only features and bugs.** For question please visit our [DrupalConsole Gitter room](https://gitter.im/hechoendrupal/DrupalConsole).
-
-### Documentation
-There's been some amazing Drupal Community work done around DrupalConsole. Many of your questions can be answered in our [DrupalConsole Book](https://www.gitbook.com/book/hechoendrupal/drupal-console/details).
-
-If you find documentation in this DrupalConsole Book inaccurate or missing, you can created a new issue at [DrupalConsole Book](https://github.com/hechoendrupal/drupal-console-book) repository.
diff --git a/vendor/drupal/console/LICENSE.txt b/vendor/drupal/console/LICENSE.txt
deleted file mode 100644
index d159169d1..000000000
--- a/vendor/drupal/console/LICENSE.txt
+++ /dev/null
@@ -1,339 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- , 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/vendor/drupal/console/README.md b/vendor/drupal/console/README.md
deleted file mode 100644
index f94f86818..000000000
--- a/vendor/drupal/console/README.md
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
-
- - [Drupal Console](#drupal-console)
- - [Required PHP version](#required-php-version)
- - [Drupal Console documentation](#documentation)
- - [Download Drupal Console](#download)
- - [Run Drupal Console](#run)
- - [Contributors](#contributors)
- - [Supporting organizations](#supporting-organizations)
-
-
-
-Drupal Console
-=============================================
-
-[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hechoendrupal/DrupalConsole)
-[![Build Status](https://travis-ci.org/hechoendrupal/drupal-console.svg?branch=master)](https://travis-ci.org/hechoendrupal/drupal-console)
-[![Latest Stable Version](https://poser.pugx.org/drupal/console/v/stable.svg)](https://packagist.org/packages/drupal/console)
-[![Latest Unstable Version](https://poser.pugx.org/drupal/console/v/unstable.svg)](https://packagist.org/packages/drupal/console)
-[![Software License](https://img.shields.io/badge/license-GPL%202.0+-blue.svg)](https://packagist.org/packages/drupal/console)
-[![SensioLabsInsight](https://insight.sensiolabs.com/projects/d0f089ff-a6e9-4ba4-b353-cb68173c7d90/mini.png)](https://insight.sensiolabs.com/projects/d0f089ff-a6e9-4ba4-b353-cb68173c7d90)
-
-The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
-
-## Latest Version
-Details of the latest version can be found on the Drupal Console project page under https://drupalconsole.com/.
-
-## Releases Page
-All notable changes to this project will be documented in the [releases page](https://github.com/hechoendrupal/DrupalConsole/releases)
-
-## Documentation
-The most up-to-date documentation can be found at [http://docs.drupalconsole.com/](http://docs.drupalconsole.com/).
-
-More information about using this project at the [official documentation](http://docs.drupalconsole.com/en/using/project.html).
-
-## Required PHP Version
-PHP 5.5.9 or higher is required to use the Drupal Console application.
-
-## Download
-
-[Install Drupal Console Using Composer](https://docs.drupalconsole.com/en/getting/composer.html)
-
-[Install Drupal Console Launcher](https://docs.drupalconsole.com/en/getting/launcher.html)
-
-[Installing Drupal Console on Windows](https://docs.drupalconsole.com/en/getting/windows.html)
-
-## Run
-Using the DrupalConsole Launcher
-```
-drupal
-```
-
-We highly recommend you to install the global executable, but if is not installed, you can run Drupal Console depending on your installation by executing:
-
-```
-vendor/bin/drupal
-# or
-vendor/drupal/console/bin/drupal
-# or
-bin/drupal
-```
-
-## Drupal Console Support
-You can ask for support at Drupal Console gitter chat room [http://bit.ly/console-support](http://bit.ly/console-support).
-
-## Contribute to Drupal Console
-* [Getting the project](https://docs.drupalconsole.com/en/contributing/getting-the-project.html)
-* [Running the project](https://docs.drupalconsole.com/en/contributing/running-the-project.html)
-
-## Enabling Autocomplete
-```
-# You can enable autocomplete by executing
-drupal init
-
-# Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
-# project which can be installed with your package manager of choice. Then add
-# this line to your shell configuration file.
-source "$HOME/.console/console.rc" 2>/dev/null
-
-# Zsh: Add this line to your shell configuration file.
-source "$HOME/.console/console.rc" 2>/dev/null
-
-# Fish: Create a symbolic link
-ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish
-```
-
-## Contributors
-
-[Full list of contributors](https://drupalconsole.com/contributors)
-
-## Supporting Organizations
-
-[![weKnow](https://www.drupal.org/files/weKnow-logo_5.png)](http://weknowinc.com)
-
-[![Anexus](https://www.drupal.org/files/anexus-logo.png)](http://www.anexusit.com/)
-
-[All supporting organizations](https://drupalconsole.com/supporting-organizations)
-
-> Drupal is a registered trademark of Dries Buytaert.
diff --git a/vendor/drupal/console/Test/BaseTestCase.php b/vendor/drupal/console/Test/BaseTestCase.php
deleted file mode 100644
index 12a00015b..000000000
--- a/vendor/drupal/console/Test/BaseTestCase.php
+++ /dev/null
@@ -1,123 +0,0 @@
-setUpTemporaryDirectory();
- }
-
- public function setUpTemporaryDirectory()
- {
- $this->dir = sys_get_temp_dir() . "/modules";
- }
-
- public function getHelperSet($input = null)
- {
- if (!$this->helperSet) {
- $stringHelper = $this->getMockBuilder('Drupal\Console\Helper\StringHelper')
- ->disableOriginalConstructor()
- ->setMethods(['createMachineName'])
- ->getMock();
-
- $stringHelper->expects($this->any())
- ->method('createMachineName')
- ->will($this->returnArgument(0));
-
- $validator = $this->getMockBuilder('Drupal\Console\Helper\ValidatorHelper')
- ->disableOriginalConstructor()
- ->setMethods(['validateModuleName'])
- ->getMock();
-
- $validator->expects($this->any())
- ->method('validateModuleName')
- ->will($this->returnArgument(0));
-
- $translator = $this->getTranslatorHelper();
-
- $chain = $this
- ->getMockBuilder('Drupal\Console\Helper\ChainCommandHelper')
- ->disableOriginalConstructor()
- ->setMethods(['addCommand', 'getCommands'])
- ->getMock();
-
- $drupal = $this
- ->getMockBuilder('Drupal\Console\Helper\DrupalHelper')
- ->setMethods(['isBootable', 'getDrupalRoot'])
- ->getMock();
-
- $siteHelper = $this
- ->getMockBuilder('Drupal\Console\Helper\SiteHelper')
- ->disableOriginalConstructor()
- ->setMethods(['setModulePath', 'getModulePath'])
- ->getMock();
-
- $siteHelper->expects($this->any())
- ->method('getModulePath')
- ->will($this->returnValue($this->dir));
-
- $consoleRoot = __DIR__.'/../';
- $container = new ContainerBuilder();
- $loader = new YamlFileLoader($container, new FileLocator($consoleRoot));
- $loader->load('services.yml');
-
- $this->helperSet = new HelperSet(
- [
- 'renderer' => new TwigRendererHelper(),
- 'string' => $stringHelper,
- 'validator' => $validator,
- 'translator' => $translator,
- 'site' => $siteHelper,
- 'chain' => $chain,
- 'drupal' => $drupal,
- 'container' => new ContainerHelper($container),
- ]
- );
- }
-
- return $this->helperSet;
- }
-
- protected function getInputStream($input)
- {
- $stream = fopen('php://memory', 'r+', false);
- fputs($stream, $input . str_repeat("\n", 10));
- rewind($stream);
-
- return $stream;
- }
-
- public function getTranslatorHelper()
- {
- $translatorHelper = $this
- ->getMockBuilder('Drupal\Console\Helper\TranslatorHelper')
- ->disableOriginalConstructor()
- ->setMethods(['loadResource', 'trans', 'getMessagesByModule', 'writeTranslationsByModule'])
- ->getMock();
-
- $translatorHelper->expects($this->any())
- ->method('getMessagesByModule')
- ->will($this->returnValue([]));
-
- return $translatorHelper;
- }
-}
diff --git a/vendor/drupal/console/Test/Command/Generate/ServiceCommandTest.php b/vendor/drupal/console/Test/Command/Generate/ServiceCommandTest.php
deleted file mode 100644
index ddf872272..000000000
--- a/vendor/drupal/console/Test/Command/Generate/ServiceCommandTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $this->markTestIncomplete(
- 'This test has not been implemented yet.'
- );
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--name' => $name,
- '--class' => $class,
- '--interface' => $interface,
- '--services' => $services,
- '--path_service' => $path_service,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\ServiceGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GenerateCommandTest.php b/vendor/drupal/console/Test/Command/GenerateCommandTest.php
deleted file mode 100644
index a232522a0..000000000
--- a/vendor/drupal/console/Test/Command/GenerateCommandTest.php
+++ /dev/null
@@ -1,19 +0,0 @@
-set('twig', new \Twig_Environment());
- return $container;
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GenerateEntityBundleCommandTest.php b/vendor/drupal/console/Test/Command/GenerateEntityBundleCommandTest.php
deleted file mode 100644
index 7b5e4686f..000000000
--- a/vendor/drupal/console/Test/Command/GenerateEntityBundleCommandTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--bundle-name' => $bundle_name,
- '--bundle-title' => $bundle_title
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\EntityBundleGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorAuthenticationProviderCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorAuthenticationProviderCommandTest.php
deleted file mode 100644
index 972b45c99..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorAuthenticationProviderCommandTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\AuthenticationProviderGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorCommandCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorCommandCommandTest.php
deleted file mode 100644
index 6c0b5d915..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorCommandCommandTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--name' => $name,
- '--class' => $class,
- '--container-aware' => $containerAware
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\CommandGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorConfigFormBaseCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorConfigFormBaseCommandTest.php
deleted file mode 100644
index 39112d839..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorConfigFormBaseCommandTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--form-id' => $form_id,
- '--services' => $services,
- '--inputs' => $inputs
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\FormGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorControllerCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorControllerCommandTest.php
deleted file mode 100644
index 8c44f0a40..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorControllerCommandTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--routes' => $routes,
- '--test' => $test,
- '--services' => $services,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\ControllerGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorEntityCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorEntityCommandTest.php
deleted file mode 100644
index b7c89f068..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorEntityCommandTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--entity-class' => $entity_class,
- '--entity-name' => $entity_name,
- '--label' => $label
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\EntityConfigGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorEntityConfigCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorEntityConfigCommandTest.php
deleted file mode 100644
index 691a6364e..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorEntityConfigCommandTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--entity-name' => $entity_name,
- '--entity-class' => $entity_class,
- '--label' => $label,
- '--base-path' => $base_path,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\EntityConfigGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorEntityContentCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorEntityContentCommandTest.php
deleted file mode 100644
index 97c30985a..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorEntityContentCommandTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--entity-name' => $entity_name,
- '--entity-class' => $entity_class,
- '--label' => $label,
- '--base-path' => $base_path,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\EntityContentGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorFormCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorFormCommandTest.php
deleted file mode 100644
index 025d1a517..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorFormCommandTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-getGeneratorConfig();
- $command->setHelperSet($this->getHelperSet(null));
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--services' => $services,
- '--inputs' => $inputs,
- '--form-id' => $form_id
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGeneratorConfig()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Command\Generate\ConfigFormBaseCommand')
- ->setMethods(['getModules', 'getServices', '__construct'])
- ->setConstructorArgs([$this->getHelperSet()])
- ->getMock();
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\FormGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorJsTestCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorJsTestCommandTest.php
deleted file mode 100644
index 09b0521de..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorJsTestCommandTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\JsTestGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorModuleCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorModuleCommandTest.php
deleted file mode 100644
index 2d70f85b7..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorModuleCommandTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--machine-name' => $machine_name,
- '--module-path' => $module_path,
- '--description' => $description,
- '--core' => $core,
- '--package' => $package,
- '--features-bundle'=> $featuresBundle,
- '--composer' => $composer,
- '--dependencies' => $dependencies
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\ModuleGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPermissionCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPermissionCommandTest.php
deleted file mode 100644
index 72fceed15..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPermissionCommandTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--permissions' => $permissions,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PermissionGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginBlockCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginBlockCommandTest.php
deleted file mode 100644
index 0cbf0f8d0..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginBlockCommandTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $this->markTestIncomplete(
- 'This test has not been implemented yet.'
- );
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $label,
- '--plugin-id' => $plugin_id,
- '--services' => $services,
- '--inputs' => $inputs
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginBlockGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginConditionCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginConditionCommandTest.php
deleted file mode 100644
index 7f88b3575..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginConditionCommandTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $label,
- '--plugin-id' => $plugin_id,
- '--context-definition-id' => $context_definition_id,
- '--context-definition-label' => $context_definition_label,
- '--context-definition-required' => $context_definition_required
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginConditionGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginFieldCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginFieldCommandTest.php
deleted file mode 100644
index 1b39b28b0..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginFieldCommandTest.php
+++ /dev/null
@@ -1,90 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--type-class' => $type_class_name,
- '--type-label' => $type_label,
- '--type-plugin-id' => $type_plugin_id,
- '--type-description' => $type_description,
- '--formatter-class' => $formatter_class_name,
- '--formatter-label' => $formatter_label,
- '--formatter-plugin-id' => $formatter_plugin_id,
- '--widget-class' => $widget_class_name,
- '--widget-label' => $widget_label,
- '--widget-plugin-id' => $widget_plugin_id,
- '--field-type' => $field_type,
- '--default-widget' => $default_widget,
- '--default-formatter' => $default_formatter
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginFieldTypeGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginFieldFormatterCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginFieldFormatterCommandTest.php
deleted file mode 100644
index 20cbebee0..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginFieldFormatterCommandTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $label,
- '--plugin-id' => $plugin_id,
- '--field-type' => $field_type
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginFieldFormatterGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginFieldTypeCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginFieldTypeCommandTest.php
deleted file mode 100644
index db8b31a83..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginFieldTypeCommandTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $label,
- '--plugin-id' => $plugin_id,
- '--description' => $description,
- '--default-widget' => $default_widget,
- '--default-formatter' => $default_formatter
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginFieldTypeGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginFieldWidgetCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginFieldWidgetCommandTest.php
deleted file mode 100644
index 0eb42cb67..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginFieldWidgetCommandTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $label,
- '--plugin-id' => $plugin_id,
- '--field-type' => $field_type
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginFieldWidgetGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginImageEffectCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginImageEffectCommandTest.php
deleted file mode 100644
index 4a08e5de7..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginImageEffectCommandTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $plugin_label,
- '--plugin-id' => $plugin_id,
- '--description' => $description
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginImageEffectGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginImageFormatterCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginImageFormatterCommandTest.php
deleted file mode 100644
index 915348865..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginImageFormatterCommandTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $plugin_label,
- '--plugin-id' => $plugin_id
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginImageFormatterGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginRestResourceCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginRestResourceCommandTest.php
deleted file mode 100644
index a396e30ce..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginRestResourceCommandTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--plugin-id' => $plugin_id,
- '--plugin-label' => $plugin_label,
- '--plugin-url' => $plugin_url,
- '--plugin-states' => $plugin_states,
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginRestResourceGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginRulesActionCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginRulesActionCommandTest.php
deleted file mode 100644
index abae0498d..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginRulesActionCommandTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--label' => $label,
- '--plugin-id' => $plugin_id,
- '--category' => $category,
- '--context' => $context,
- '--type' => $type
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginRulesActionGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginTypeAnnotationCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginTypeAnnotationCommandTest.php
deleted file mode 100644
index 961988d13..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginTypeAnnotationCommandTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $class_name,
- '--machine-name' => $machine_name,
- '--label' => $label
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginTypeYamlGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorPluginTypeYamlCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorPluginTypeYamlCommandTest.php
deleted file mode 100644
index 6d40257f9..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorPluginTypeYamlCommandTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--module' => $module,
- '--class' => $plugin_class,
- '--plugin-name' => $plugin_name,
- '--plugin-file-name' => $plugin_file_name
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\PluginTypeYamlGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/Command/GeneratorThemeCommandTest.php b/vendor/drupal/console/Test/Command/GeneratorThemeCommandTest.php
deleted file mode 100644
index d6d0f99f5..000000000
--- a/vendor/drupal/console/Test/Command/GeneratorThemeCommandTest.php
+++ /dev/null
@@ -1,78 +0,0 @@
-getHelperSet());
- $command->setHelperSet($this->getHelperSet());
- $command->setGenerator($this->getGenerator());
-
- $commandTester = new CommandTester($command);
-
- $code = $commandTester->execute(
- [
- '--theme' => $theme,
- '--machine-name' => $machine_name,
- '--theme-path' => $theme_path,
- '--description' => $description,
- '--core' => $core,
- '--package' => $package,
- '--global-library' => $global_library,
- '--base-theme' => $base_theme,
- '--regions' => $regions,
- '--breakpoints' => $breakpoints
- ],
- ['interactive' => false]
- );
-
- $this->assertEquals(0, $code);
- }
-
- private function getGenerator()
- {
- return $this
- ->getMockBuilder('Drupal\Console\Generator\ThemeGenerator')
- ->disableOriginalConstructor()
- ->setMethods(['generate'])
- ->getMock();
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/AuthenticationProviderDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/AuthenticationProviderDataProviderTrait.php
deleted file mode 100644
index d61f67efe..000000000
--- a/vendor/drupal/console/Test/DataProvider/AuthenticationProviderDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 0],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/CommandDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/CommandDataProviderTrait.php
deleted file mode 100644
index df3cdb145..000000000
--- a/vendor/drupal/console/Test/DataProvider/CommandDataProviderTrait.php
+++ /dev/null
@@ -1,23 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['command_' . rand(), 'command:default', 'CommandDefault', false],
- ['command_' . rand(), 'command:default', 'CommandDefault', true]
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/ConfigFormBaseDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ConfigFormBaseDataProviderTrait.php
deleted file mode 100644
index 25cee1907..000000000
--- a/vendor/drupal/console/Test/DataProvider/ConfigFormBaseDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'Bar', null, null, 'ConfigFormBase', null, true, 'Foo', 'system.admin_config_development', 'foo'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/ControllerDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ControllerDataProviderTrait.php
deleted file mode 100644
index 66488cb39..000000000
--- a/vendor/drupal/console/Test/DataProvider/ControllerDataProviderTrait.php
+++ /dev/null
@@ -1,27 +0,0 @@
-setUpTemporaryDirectory();
-
- $routes = [
- ['title' => 'Foo Controller', 'name' => 'custom.default_controller_hello', 'method' => 'index', 'path' => '/hello/{name}']
- ];
-
- return [
- ['foo', 'FooController', $routes, true, null, 'foo_controller'],
- ['foo', 'FooController', $routes, false, null, 'foo_controller'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/EntityBundleDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/EntityBundleDataProviderTrait.php
deleted file mode 100644
index 62ca6ce90..000000000
--- a/vendor/drupal/console/Test/DataProvider/EntityBundleDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['foo', 'default_type', 'default']
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/EntityConfigDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/EntityConfigDataProviderTrait.php
deleted file mode 100644
index 2a144b852..000000000
--- a/vendor/drupal/console/Test/DataProvider/EntityConfigDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'Bar', '', 'bar', 'admin/structure'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/EntityContentDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/EntityContentDataProviderTrait.php
deleted file mode 100644
index 99ad2e36b..000000000
--- a/vendor/drupal/console/Test/DataProvider/EntityContentDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'Bar', 'bar', 'admin/structure', 'true', true],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/EntityDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/EntityDataProviderTrait.php
deleted file mode 100644
index b115efc01..000000000
--- a/vendor/drupal/console/Test/DataProvider/EntityDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'Bar', 'foo' . rand(), 'bar', 'admin/structure'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/FormDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/FormDataProviderTrait.php
deleted file mode 100644
index 669b63334..000000000
--- a/vendor/drupal/console/Test/DataProvider/FormDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'id' . rand(), null, null, 'FormBase', '/form/path', true, 'foo', 'system.admin_config_development', 'foo']
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/JsTestDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/JsTestDataProviderTrait.php
deleted file mode 100644
index 1691aafae..000000000
--- a/vendor/drupal/console/Test/DataProvider/JsTestDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['foo', 'JsFooTest'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/ModuleDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ModuleDataProviderTrait.php
deleted file mode 100644
index 6956f91f4..000000000
--- a/vendor/drupal/console/Test/DataProvider/ModuleDataProviderTrait.php
+++ /dev/null
@@ -1,25 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', sprintf('%s_%s', 'foo', rand()), $this->dir, 'Description', '8.x', 'Custom', true, '', false, null],
- ['Foo', sprintf('%s_%s', 'foo', rand()), $this->dir, 'Description', '8.x', 'Custom', false, 'default', false, null],
- ['Foo', sprintf('%s_%s', 'foo', rand()), $this->dir, 'Description', '8.x', 'Custom', true, '', false, null],
- ['Foo', sprintf('%s_%s', 'foo', rand()), $this->dir, 'Description', '8.x', 'Custom', false, '', false, null],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PermissionDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PermissionDataProviderTrait.php
deleted file mode 100644
index f21ca2658..000000000
--- a/vendor/drupal/console/Test/DataProvider/PermissionDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'my permissions'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginBlockDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginBlockDataProviderTrait.php
deleted file mode 100644
index ce758d758..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginBlockDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'bar', null, '', 'inputs'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginCKEditorButtonDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginCKEditorButtonDataProviderTrait.php
deleted file mode 100644
index 1dc2ac0bf..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginCKEditorButtonDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'bar', 'Baz', 'foo/js/pluggin/bar/images/icon.png'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginConditionDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginConditionDataProviderTrait.php
deleted file mode 100644
index fa540d8bc..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginConditionDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'bar-id', 'foo-context-id', 'foo-context-label', false]
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginFieldDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginFieldDataProviderTrait.php
deleted file mode 100644
index 61f800bc5..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginFieldDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'foo-bar', 'foo-bar', 'bar', 'Foo-Bar', 'foo-bar', 'foo-bar', 'bar', 'Foo-Bar', 'foo-bar', 'foo-bar', 'bar']
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginFieldFormatterDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginFieldFormatterDataProviderTrait.php
deleted file mode 100644
index 40fb1c29f..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginFieldFormatterDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'bar', 'bar' . rand(), 'foo-bar']
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginFieldTypeDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginFieldTypeDataProviderTrait.php
deleted file mode 100644
index d71270c93..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginFieldTypeDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'foo-bar', 'foo-bar', 'bar', 'Foo-Bar']
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginFieldWidgetDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginFieldWidgetDataProviderTrait.php
deleted file mode 100644
index dccf88da1..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginFieldWidgetDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'foo-bar', 'Foo-Bar']
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginImageEffectDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginImageEffectDataProviderTrait.php
deleted file mode 100644
index b1162491b..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginImageEffectDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'bar', 'description'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginImageFormatterDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginImageFormatterDataProviderTrait.php
deleted file mode 100644
index b632a2253..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginImageFormatterDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'foo', 'bar'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginRestResourceDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginRestResourceDataProviderTrait.php
deleted file mode 100644
index a3667cf28..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginRestResourceDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'Foo', 'pluginID' . rand(), 'url', 'states'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginRulesActionDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginRulesActionDataProviderTrait.php
deleted file mode 100644
index 08d436f4f..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginRulesActionDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'Foo', 'pluginID' . rand(), 'category', 'context', 'bar'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginTypeAnnotationDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginTypeAnnotationDataProviderTrait.php
deleted file mode 100644
index fef6875ae..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginTypeAnnotationDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'MyPlugin', 'my_plugin', 'my.plugin'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/PluginTypeYamlDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/PluginTypeYamlDataProviderTrait.php
deleted file mode 100644
index 3d4761087..000000000
--- a/vendor/drupal/console/Test/DataProvider/PluginTypeYamlDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'MyPlugin', 'my_plugin', 'my.plugin'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/ProfileDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ProfileDataProviderTrait.php
deleted file mode 100644
index 7dcce3c1f..000000000
--- a/vendor/drupal/console/Test/DataProvider/ProfileDataProviderTrait.php
+++ /dev/null
@@ -1,25 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- // Profile name, machine name, description, core version,
- // dependencies, distribution name.
- ['Foo', 'foo' . rand(), $this->dir . '/profiles', 'Description', '8.x', null, false],
- ['Foo', 'foo' . rand(), $this->dir . '/profiles', 'Description', '8.x', null, 'Bar'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/ServiceDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ServiceDataProviderTrait.php
deleted file mode 100644
index f03ccafb4..000000000
--- a/vendor/drupal/console/Test/DataProvider/ServiceDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', 'foo' . rand(), 'Foo', false, [],'default'],
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/DataProvider/ThemeDataProviderTrait.php b/vendor/drupal/console/Test/DataProvider/ThemeDataProviderTrait.php
deleted file mode 100644
index 1e2898b4e..000000000
--- a/vendor/drupal/console/Test/DataProvider/ThemeDataProviderTrait.php
+++ /dev/null
@@ -1,22 +0,0 @@
-setUpTemporaryDirectory();
-
- return [
- ['Foo', rand(), $this->dir.'/themes/custom', 'bar', 'Other', '8.x', 'sd', 'global-styling', false, false]
- ];
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/AuthenticationProviderGeneratorTest.php b/vendor/drupal/console/Test/Generator/AuthenticationProviderGeneratorTest.php
deleted file mode 100644
index 5d466c196..000000000
--- a/vendor/drupal/console/Test/Generator/AuthenticationProviderGeneratorTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $provider_id
- );
-
- $files = [
- $generator->getSite()->getAuthenticationPath($module, 'Provider').'/'.$class_name.'.php',
- $generator->getSite()->getModulePath($module).'/'.$module.'.services.yml'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/CommandGeneratorTest.php b/vendor/drupal/console/Test/Generator/CommandGeneratorTest.php
deleted file mode 100644
index a8e30d5fe..000000000
--- a/vendor/drupal/console/Test/Generator/CommandGeneratorTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $name,
- $class,
- $containerAware
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/ConfigFormBaseGeneratorTest.php b/vendor/drupal/console/Test/Generator/ConfigFormBaseGeneratorTest.php
deleted file mode 100644
index dc6e97156..000000000
--- a/vendor/drupal/console/Test/Generator/ConfigFormBaseGeneratorTest.php
+++ /dev/null
@@ -1,78 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $services,
- $inputs,
- $form_id,
- $form_type,
- $path,
- $menu_link_gen,
- $menu_link_title,
- $menu_parent,
- $menu_link_desc
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getFormPath($module).'/'.$class_name.'.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
-
- if ($path) {
- $this->assertTrue(
- file_exists($generator->getSite()->getModulePath($module).'/'.$module.'.routing.yml'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/ContentTypeGeneratorTest.php b/vendor/drupal/console/Test/Generator/ContentTypeGeneratorTest.php
deleted file mode 100644
index 8d56820ed..000000000
--- a/vendor/drupal/console/Test/Generator/ContentTypeGeneratorTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $bundle_name,
- $bundle_title
- );
-
- $files = [
- $generator->getSite()->getModulePath($module) . '/config/install/core.entity_form_display.node.' . $bundle_name . '.default.yml',
- $generator->getSite()->getModulePath($module) . '/config/install/core.entity_view_display.node.' . $bundle_name . '.default.yml',
- $generator->getSite()->getModulePath($module) . '/config/install/core.entity_view_display.node.' . $bundle_name . '.teaser.yml',
- $generator->getSite()->getModulePath($module) . '/config/install/field.field.node.' . $bundle_name . '.body.yml',
- $generator->getSite()->getModulePath($module) . '/config/install/node.type.' . $bundle_name . '.yml',
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/ControllerGeneratorTest.php b/vendor/drupal/console/Test/Generator/ControllerGeneratorTest.php
deleted file mode 100644
index e49afc0a1..000000000
--- a/vendor/drupal/console/Test/Generator/ControllerGeneratorTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $routes,
- $test,
- $build_services
- );
-
- $files = [
- $generator->getSite()->getControllerPath($module).'/'.$class_name.'.php',
- $generator->getSite()->getModulePath($module).'/'.$module.'.routing.yml'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
-
- if ($test) {
- $this->assertTrue(
- file_exists($generator->getSite()->getTestPath($module, 'Controller') . '/' . $class_name.'Test.php'),
- sprintf('%s does not exist', $class_name.'Test.php')
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/EntityConfigGeneratorTest.php b/vendor/drupal/console/Test/Generator/EntityConfigGeneratorTest.php
deleted file mode 100644
index 214084a66..000000000
--- a/vendor/drupal/console/Test/Generator/EntityConfigGeneratorTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $entity_name,
- $entity_class,
- $label,
- $base_path
- );
-
- $files = [
- $generator->getSite()->getModulePath($module).'/config/schema/'.$entity_name.'.schema.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.menu.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.action.yml',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'Interface.php',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'Form.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'DeleteForm.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'HtmlRouteProvider.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'ListBuilder.php'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/EntityContentGeneratorTest.php b/vendor/drupal/console/Test/Generator/EntityContentGeneratorTest.php
deleted file mode 100644
index 5d6a99c4c..000000000
--- a/vendor/drupal/console/Test/Generator/EntityContentGeneratorTest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $entity_name,
- $entity_class,
- $label,
- $base_path,
- $is_translatable,
- null,
- $revisionable
- );
-
- $files = [
- $generator->getSite()->getModulePath($module).'/'.$module.'.permissions.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.menu.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.task.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.action.yml',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'Interface.php',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'.php',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'ViewsData.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'AccessControlHandler.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'HtmlRouteProvider.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'ListBuilder.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'Storage.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'StorageInterface.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'SettingsForm.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'Form.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'DeleteForm.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'RevisionDeleteForm.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'RevisionRevertTranslationForm.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'RevisionRevertForm.php',
- $generator->getSite()->getControllerPath($module).'/'.$entity_class.'Controller.php',
- $generator->getSite()->getModulePath($module).'/'.$entity_name.'.page.inc',
- $generator->getSite()->getTemplatePath($module).'/'.$entity_name.'.html.twig',
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/EntityGeneratorTest.php b/vendor/drupal/console/Test/Generator/EntityGeneratorTest.php
deleted file mode 100644
index 78d68be41..000000000
--- a/vendor/drupal/console/Test/Generator/EntityGeneratorTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $entity_name,
- $entity_class,
- $label,
- $base_path
- );
-
- $files = [
- $generator->getSite()->getModulePath($module).'/config/schema/'.$entity_name.'.schema.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.menu.yml',
- $generator->getSite()->getModulePath($module).'/'.$module.'.links.action.yml',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'Interface.php',
- $generator->getSite()->getEntityPath($module).'/'.$entity_class.'.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'Form.php',
- $generator->getSite()->getFormPath($module).'/'.$entity_class.'DeleteForm.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'HtmlRouteProvider.php',
- $generator->getSite()->getSourcePath($module).'/'.$entity_class.'ListBuilder.php'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/FormGeneratorTest.php b/vendor/drupal/console/Test/Generator/FormGeneratorTest.php
deleted file mode 100644
index e8afd1c76..000000000
--- a/vendor/drupal/console/Test/Generator/FormGeneratorTest.php
+++ /dev/null
@@ -1,78 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $services,
- $inputs,
- $form_id,
- $form_type,
- $path,
- $menu_link_gen,
- $menu_link_title,
- $menu_parent,
- $menu_link_desc
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getFormPath($module).'/'.$class_name.'.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
-
- if ($path) {
- $this->assertTrue(
- file_exists($generator->getSite()->getModulePath($module).'/'.$module.'.routing.yml'),
- sprintf('%s does not exist', $module.'.routing.yml')
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/GeneratorTest.php b/vendor/drupal/console/Test/Generator/GeneratorTest.php
deleted file mode 100644
index 61338f9c2..000000000
--- a/vendor/drupal/console/Test/Generator/GeneratorTest.php
+++ /dev/null
@@ -1,19 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name
- );
-
- $files = [
- $generator->getSite()->getJsTestsPath($module) . "/$class_name.php",
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/ModuleGeneratorTest.php b/vendor/drupal/console/Test/Generator/ModuleGeneratorTest.php
deleted file mode 100644
index 9015e69da..000000000
--- a/vendor/drupal/console/Test/Generator/ModuleGeneratorTest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $machine_name,
- $module_path,
- $description,
- $core,
- $package,
- $moduleFile,
- $featureBundle,
- $composer,
- $dependencies
- );
-
- $this->assertTrue(
- file_exists($module_path . '/' . $machine_name . '/' . $machine_name . '.info.yml'),
- sprintf('%s has been generated', $module_path . '/' . $machine_name . '.info.yml')
- );
-
- if ($moduleFile) {
- $this->assertTrue(
- file_exists($module_path . '/' . $machine_name . '/' . $machine_name . '.module'),
- sprintf('%s has been generated', $module_path . '/' . $machine_name . '/' . $machine_name . '.module')
- );
- }
-
- if ($composer) {
- $this->assertTrue(
- file_exists($module_path . '/' . $machine_name . '/composer.json'),
- sprintf('%s has been generated', $module_path . '/' . $machine_name . '/composer.json')
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PermissionGeneratorTest.php b/vendor/drupal/console/Test/Generator/PermissionGeneratorTest.php
deleted file mode 100644
index bbf84b7b9..000000000
--- a/vendor/drupal/console/Test/Generator/PermissionGeneratorTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $permissions
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getModulePath($module).'/'.$module.'.permissions.yml'),
- sprintf('%s does not exist', $module.'.permissions.yml')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginBlockGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginBlockGeneratorTest.php
deleted file mode 100644
index 73709f3d6..000000000
--- a/vendor/drupal/console/Test/Generator/PluginBlockGeneratorTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $services,
- $inputs
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Block').'/'.$class_name.'.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginCKEditorButtonGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginCKEditorButtonGeneratorTest.php
deleted file mode 100644
index ff6bf62cf..000000000
--- a/vendor/drupal/console/Test/Generator/PluginCKEditorButtonGeneratorTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $button_name,
- $button_icon_path
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'CKEditorPlugin').'/'.$class_name.'.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginConditionGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginConditionGeneratorTest.php
deleted file mode 100644
index c95ebf12a..000000000
--- a/vendor/drupal/console/Test/Generator/PluginConditionGeneratorTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $context_definition_id,
- $context_definition_label,
- $context_definition_required
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Condition') . '/' . $class_name . '.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginFieldFormatterGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginFieldFormatterGeneratorTest.php
deleted file mode 100644
index 08f77e58e..000000000
--- a/vendor/drupal/console/Test/Generator/PluginFieldFormatterGeneratorTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $field_type
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Field/FieldFormatter') . '/' . $class_name . '.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginFieldGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginFieldGeneratorTest.php
deleted file mode 100644
index 630514e4c..000000000
--- a/vendor/drupal/console/Test/Generator/PluginFieldGeneratorTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $type_class_name,
- $type_label,
- $type_plugin_id,
- $type_description,
- $formatter_class_name,
- $formatter_label,
- $formatter_plugin_id,
- $widget_class_name,
- $widget_label,
- $widget_plugin_id,
- $field_type,
- $default_widget,
- $default_formatter
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Field/FieldType') . '/' . $type_class_name . '.php'),
- sprintf('%s does not exist', $type_class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginFieldTypeGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginFieldTypeGeneratorTest.php
deleted file mode 100644
index 6ea10363e..000000000
--- a/vendor/drupal/console/Test/Generator/PluginFieldTypeGeneratorTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $description,
- $default_widget,
- $default_formatter
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Field/FieldType') . '/' . $class_name . '.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginFieldWidgetGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginFieldWidgetGeneratorTest.php
deleted file mode 100644
index c4be84b18..000000000
--- a/vendor/drupal/console/Test/Generator/PluginFieldWidgetGeneratorTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $field_type
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Field/FieldWidget') . '/' . $class_name . '.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginImageEffectGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginImageEffectGeneratorTest.php
deleted file mode 100644
index 23b390f2d..000000000
--- a/vendor/drupal/console/Test/Generator/PluginImageEffectGeneratorTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $description
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'ImageEffect').'/'.$class_name.'.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginImageFormatterGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginImageFormatterGeneratorTest.php
deleted file mode 100644
index db4265a6e..000000000
--- a/vendor/drupal/console/Test/Generator/PluginImageFormatterGeneratorTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'Field/FieldFormatter') . '/' . $class_name . '.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginRestResourceGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginRestResourceGeneratorTest.php
deleted file mode 100644
index afc443ac8..000000000
--- a/vendor/drupal/console/Test/Generator/PluginRestResourceGeneratorTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $plugin_label,
- $plugin_id,
- $plugin_url,
- $plugin_states
- );
-
- $this->assertTrue(
- file_exists($generator->getSite()->getPluginPath($module, 'rest').'/resource/'.$class_name.'.php'),
- sprintf('%s does not exist', $class_name.'.php')
- );
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginRulesActionGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginRulesActionGeneratorTest.php
deleted file mode 100644
index 9e6cc4210..000000000
--- a/vendor/drupal/console/Test/Generator/PluginRulesActionGeneratorTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $label,
- $plugin_id,
- $category,
- $context,
- $type
- );
-
- $files = [
- $generator->getSite()->getPluginPath($module, 'Action').'/'.$class_name.'.php',
- $generator->getSite()->getModulePath($module).'/config/install/system.action.'.$plugin_id.'.yml'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginTypeAnnotationGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginTypeAnnotationGeneratorTest.php
deleted file mode 100644
index 1ad6d45f5..000000000
--- a/vendor/drupal/console/Test/Generator/PluginTypeAnnotationGeneratorTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $class_name,
- $machine_name,
- $label
- );
-
- $files = [
- $generator->getSite()->getSourcePath($module) . '/Annotation/' . $class_name . '.php',
- $generator->getSite()->getSourcePath($module).'/Plugin/' . $class_name . 'Base.php',
- $generator->getSite()->getSourcePath($module).'/Plugin/' . $class_name . 'Interface.php',
- $generator->getSite()->getSourcePath($module).'/Plugin/' . $class_name . 'Manager.php',
- $generator->getSite()->getModulePath($module) . '/' . $module . '.services.yml'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/PluginTypeYamlGeneratorTest.php b/vendor/drupal/console/Test/Generator/PluginTypeYamlGeneratorTest.php
deleted file mode 100644
index 0dc2279e2..000000000
--- a/vendor/drupal/console/Test/Generator/PluginTypeYamlGeneratorTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $plugin_class,
- $plugin_name,
- $plugin_file_name
- );
-
- $files = [
- $generator->getSite()->getSourcePath($module) . '/' . $plugin_class . 'Manager.php',
- $generator->getSite()->getSourcePath($module) . '/' . $plugin_class . 'ManagerInterface.php',
- $generator->getSite()->getModulePath($module) . '/' . $module . '.services.yml',
- $generator->getSite()->getModulePath($module) . '/' . $module . '.' . $plugin_file_name . '.yml'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/ProfileGeneratorTest.php b/vendor/drupal/console/Test/Generator/ProfileGeneratorTest.php
deleted file mode 100644
index c6ea12ddd..000000000
--- a/vendor/drupal/console/Test/Generator/ProfileGeneratorTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $profile,
- $machine_name,
- $profile_path,
- $description,
- $core,
- $dependencies,
- $themes,
- $distribution
- );
-
- $files = [
- $machine_name . '.info.yml',
- $machine_name . '.install',
- $machine_name . '.profile',
- ];
-
- foreach ($files as $file) {
- $file_path = $profile_path . '/' . $machine_name . '/' . $file;
- $this->assertTrue(
- file_exists($file_path),
- sprintf('%s has been generated', $file_path)
- );
- }
- }
-
-}
diff --git a/vendor/drupal/console/Test/Generator/ServiceGeneratorTest.php b/vendor/drupal/console/Test/Generator/ServiceGeneratorTest.php
deleted file mode 100644
index 12d5e67ec..000000000
--- a/vendor/drupal/console/Test/Generator/ServiceGeneratorTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $module,
- $name,
- $class,
- $interface,
- $services,
- $path_service
- );
-
- $files = [
- $generator->getSite()->getModulePath($module).'/'.$module.'.services.yml',
- $generator->getSite()->getModulePath($module).'/'.$path_service .'/'.$class.'.php'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Generator/ThemeGeneratorTest.php b/vendor/drupal/console/Test/Generator/ThemeGeneratorTest.php
deleted file mode 100644
index cc7237c4c..000000000
--- a/vendor/drupal/console/Test/Generator/ThemeGeneratorTest.php
+++ /dev/null
@@ -1,82 +0,0 @@
-getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
- $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
- $generator->setHelperSet($this->getHelperSet());
-
- $generator->generate(
- $theme,
- $machine_name,
- $theme_path,
- $description,
- $core,
- $package,
- $global_library,
- $base_theme,
- $regions,
- $breakpoints
- );
-
- $files = [
- $theme_path . '/' . $machine_name . '/' . $machine_name . '.info.yml',
- $theme_path . '/' . $machine_name . '/' . $machine_name . '.theme'
- ];
-
- foreach ($files as $file) {
- $this->assertTrue(
- file_exists($file),
- sprintf('%s does not exist', $file)
- );
- }
-
- if ($breakpoints) {
- $this->assertTrue(
- file_exists($theme_path . '/' . $machine_name . '.breakpoints.yml'),
- sprintf('%s does not exist', $machine_name . '.breakpoints.yml')
- );
- }
- }
-}
diff --git a/vendor/drupal/console/Test/Helper/StringHelperTest.php b/vendor/drupal/console/Test/Helper/StringHelperTest.php
deleted file mode 100644
index e757299db..000000000
--- a/vendor/drupal/console/Test/Helper/StringHelperTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-stringHelper = new StringHelper();
- }
-
- /**
- * @dataProvider getDataNames
- */
- public function testCreateMachineName($input, $machine_name)
- {
- $this->assertEquals($this->stringHelper->createMachineName($input), $machine_name);
- }
-
- /**
- * @dataProvider getDataCamelCaseNames
- */
- public function testCamelCaseToMachineName($camel_case, $machine_name)
- {
- $this->assertEquals($this->stringHelper->camelCaseToMachineName($camel_case), $machine_name);
- }
-
- /**
- * Random strings and their equivalent machine-name
- */
- public function getDataNames()
- {
- return [
- ['Test Space between words', 'test_space_between_words'],
- ['test$special*characters!', 'test_special_characters'],
- ['URL', 'url'],
- ];
- }
-
- /**
- * Camel-case strings and their equivalent machine-name
- */
- public function getDataCamelCaseNames()
- {
- return [
- ['camelCase', 'camel_case'],
- ['greatestFunctionEverWritten', 'greatest_function_ever_written'],
- ['WakeUp', 'wake_up'],
- ];
- }
-}
diff --git a/vendor/drupal/console/autoload.local.php.dist b/vendor/drupal/console/autoload.local.php.dist
deleted file mode 100644
index d73d40900..000000000
--- a/vendor/drupal/console/autoload.local.php.dist
+++ /dev/null
@@ -1,3 +0,0 @@
-setPsr4('Drupal\\Console\\Test\\', __DIR__ . '/Test');
-
-return $loader;
diff --git a/vendor/drupal/console/bin/drupal b/vendor/drupal/console/bin/drupal
deleted file mode 100755
index 54109783d..000000000
--- a/vendor/drupal/console/bin/drupal
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env php
-get('root', getcwd());
-
-$drupalFinder = new DrupalFinder();
-if (!$drupalFinder->locateRoot($root)) {
- $io->error('DrupalConsole must be executed within a Drupal Site.');
-
- exit(1);
-}
-
-chdir($drupalFinder->getDrupalRoot());
-$configurationManager = new ConfigurationManager();
-$configuration = $configurationManager
- ->loadConfiguration($drupalFinder->getComposerRoot())
- ->getConfiguration();
-
-$debug = $argvInputReader->get('debug', false);
-if ($configuration && $options = $configuration->get('application.options') ?: []) {
- $argvInputReader->setOptionsFromConfiguration($options);
-}
-$argvInputReader->setOptionsAsArgv();
-
-if ($debug) {
- $io->writeln(
- sprintf(
- '%s version %s ',
- Application::NAME,
- Application::VERSION
- )
- );
-}
-
-$drupal = new Drupal($autoload, $drupalFinder, $configurationManager);
-$container = $drupal->boot();
-
-if (!$container) {
- $io->error('Something was wrong. Drupal can not be bootstrap.');
-
- exit(1);
-}
-
-$application = new Application($container);
-$application->setDrupal($drupal);
-$application->run();
diff --git a/vendor/drupal/console/box.json b/vendor/drupal/console/box.json
deleted file mode 100644
index f2d86ffcc..000000000
--- a/vendor/drupal/console/box.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "alias": "console.phar",
- "chmod": "0755",
- "directories": [
- "config",
- "src",
- "templates"
- ],
- "files": [
- "config.yml",
- "services.yml",
- "bin/drupal.php",
- "vendor/autoload.php"
- ],
- "finder": [
- {
- "name": "/(\\.php|\\.json|\\.yml|\\.twig)$/",
- "exclude": ["Tests","tests", "docs"],
- "in": "vendor"
- }
- ],
- "compactors": [
- "Herrera\\Box\\Compactor\\Php"
- ],
- "compression": "GZ",
- "main": "bin/drupal",
- "output": "drupal.phar",
- "stub": true
-}
diff --git a/vendor/drupal/console/composer.json b/vendor/drupal/console/composer.json
deleted file mode 100644
index c27bb9dee..000000000
--- a/vendor/drupal/console/composer.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "name": "drupal/console",
- "description": "The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.",
- "keywords": ["Drupal", "Console", "Development", "Symfony"],
- "homepage": "http://drupalconsole.com/",
- "type": "library",
- "license": "GPL-2.0-or-later",
- "authors": [
- {
- "name": "David Flores",
- "email": "dmousex@gmail.com",
- "homepage": "http://dmouse.net"
- },
- {
- "name": "Jesus Manuel Olivas",
- "email": "jesus.olivas@gmail.com",
- "homepage": "http://jmolivas.com"
- },
- {
- "name": "Eduardo Garcia",
- "email": "enzo@enzolutions.com",
- "homepage": "http://enzolutions.com/"
- },
- {
- "name": "Omar Aguirre",
- "email": "omersguchigu@gmail.com"
- },
- {
- "name": "Drupal Console Contributors",
- "homepage": "https://github.com/hechoendrupal/drupal-console/graphs/contributors"
- }
- ],
- "support": {
- "issues": "https://github.com/hechoendrupal/drupal-console/issues",
- "forum": "https://gitter.im/hechoendrupal/DrupalConsole",
- "docs": "https://docs.drupalconsole.com/"
- },
- "require": {
- "php": "^5.5.9 || ^7.0",
- "alchemy/zippy": "0.4.3",
- "composer/installers": "~1.0",
- "doctrine/annotations": "^1.2",
- "doctrine/collections": "^1.3",
- "drupal/console-core": "1.8.0",
- "drupal/console-extend-plugin": "~0",
- "guzzlehttp/guzzle": "~6.1",
- "psy/psysh": "0.6.* || ~0.8",
- "symfony/css-selector": "~2.8|~3.0",
- "symfony/dom-crawler": "~2.8|~3.0",
- "symfony/http-foundation": "~2.8|~3.0"
- },
- "suggest": {
- "symfony/thanks": "Thank your favorite PHP projects on Github using the CLI!",
- "vlucas/phpdotenv": "Loads environment variables from .env to getenv(), $_ENV and $_SERVER automagically."
- },
- "bin": ["bin/drupal"],
- "config": {
- "bin-dir": "bin/",
- "sort-packages": true
- },
- "minimum-stability": "dev",
- "prefer-stable": true,
- "autoload": {
- "psr-4": {"Drupal\\Console\\": "src"}
- }
-}
diff --git a/vendor/drupal/console/config/services/cache.yml b/vendor/drupal/console/config/services/cache.yml
deleted file mode 100644
index b45064079..000000000
--- a/vendor/drupal/console/config/services/cache.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- console.cache_rebuild:
- class: Drupal\Console\Command\Cache\RebuildCommand
- arguments: ['@console.drupal_api', '@console.site', '@class_loader', '@request_stack']
- tags:
- - { name: drupal.command }
- console.cache_tag_invalidate:
- class: Drupal\Console\Command\Cache\TagInvalidateCommand
- arguments: ['@cache_tags.invalidator']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/config.yml b/vendor/drupal/console/config/services/config.yml
deleted file mode 100644
index 1458cd602..000000000
--- a/vendor/drupal/console/config/services/config.yml
+++ /dev/null
@@ -1,55 +0,0 @@
-services:
- console.config_delete:
- class: Drupal\Console\Command\Config\DeleteCommand
- arguments: ['@config.factory', '@config.storage', '@config.storage.sync']
- tags:
- - { name: drupal.command }
- console.config_diff:
- class: Drupal\Console\Command\Config\DiffCommand
- arguments: ['@config.storage', '@config.manager']
- tags:
- - { name: drupal.command }
- console.config_edit:
- class: Drupal\Console\Command\Config\EditCommand
- arguments: ['@config.factory', '@config.storage', '@console.configuration_manager']
- tags:
- - { name: drupal.command }
- console.config_export:
- class: Drupal\Console\Command\Config\ExportCommand
- arguments: ['@config.manager', '@config.storage']
- tags:
- - { name: drupal.command }
- console.config_export_content_type:
- class: Drupal\Console\Command\Config\ExportContentTypeCommand
- arguments: ['@entity_type.manager', '@config.storage', '@console.extension_manager', '@console.validator']
- tags:
- - { name: drupal.command }
- console.config_export_single:
- class: Drupal\Console\Command\Config\ExportSingleCommand
- arguments: ['@entity_type.manager', '@config.storage', '@console.extension_manager','@language_manager', '@console.validator']
- tags:
- - { name: drupal.command }
- console.config_export_view:
- class: Drupal\Console\Command\Config\ExportViewCommand
- arguments: ['@entity_type.manager', '@config.storage', '@console.extension_manager', '@console.validator']
- tags:
- - { name: drupal.command }
- console.config_import:
- class: Drupal\Console\Command\Config\ImportCommand
- arguments: ['@config.storage', '@config.manager']
- tags:
- - { name: drupal.command }
- console.config_import_single:
- class: Drupal\Console\Command\Config\ImportSingleCommand
- arguments: ['@config.storage', '@config.manager']
- tags:
- - { name: drupal.command }
- console.config_override:
- class: Drupal\Console\Command\Config\OverrideCommand
- arguments: ['@config.storage', '@config.factory']
- tags:
- - { name: drupal.command }
- console.config_validate:
- class: Drupal\Console\Command\Config\ValidateCommand
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/create.yml b/vendor/drupal/console/config/services/create.yml
deleted file mode 100644
index 3d8c04769..000000000
--- a/vendor/drupal/console/config/services/create.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-services:
- console.create_nodes:
- class: Drupal\Console\Command\Create\NodesCommand
- arguments: ['@console.drupal_api', '@console.create_node_data']
- tags:
- - { name: drupal.command }
- console.create_comments:
- class: Drupal\Console\Command\Create\CommentsCommand
- arguments: ['@console.create_comment_data']
- tags:
- - { name: drupal.command }
- console.create_terms:
- class: Drupal\Console\Command\Create\TermsCommand
- arguments: ['@console.drupal_api', '@console.create_term_data']
- tags:
- - { name: drupal.command }
- console.create_users:
- class: Drupal\Console\Command\Create\UsersCommand
- arguments: ['@console.drupal_api', '@console.create_user_data']
- tags:
- - { name: drupal.command }
- console.create_vocabularies:
- class: Drupal\Console\Command\Create\VocabulariesCommand
- arguments: ['@console.create_vocabulary_data']
- tags:
- - { name: drupal.command }
- console.create_roles:
- class: Drupal\Console\Command\Create\RolesCommand
- arguments: ['@console.create_role_data']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/cron.yml b/vendor/drupal/console/config/services/cron.yml
deleted file mode 100644
index 1a6944f73..000000000
--- a/vendor/drupal/console/config/services/cron.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- console.cron_execute:
- class: Drupal\Console\Command\Cron\ExecuteCommand
- arguments: ['@module_handler', '@lock', '@state']
- tags:
- - { name: drupal.command }
- console.cron_release:
- class: Drupal\Console\Command\Cron\ReleaseCommand
- arguments: ['@lock','@console.chain_queue']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/database.yml b/vendor/drupal/console/config/services/database.yml
deleted file mode 100644
index 902995f57..000000000
--- a/vendor/drupal/console/config/services/database.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-services:
- console.database_add:
- class: Drupal\Console\Command\Database\AddCommand
- arguments: ['@console.database_settings_generator']
- tags:
- - { name: drupal.command }
- console.database_client:
- class: Drupal\Console\Command\Database\ClientCommand
- tags:
- - { name: drupal.command }
- console.database_query:
- class: Drupal\Console\Command\Database\QueryCommand
- tags:
- - { name: drupal.command }
- console.database_connect:
- class: Drupal\Console\Command\Database\ConnectCommand
- tags:
- - { name: drupal.command }
- console.database_drop:
- class: Drupal\Console\Command\Database\DropCommand
- arguments: ['@database']
- tags:
- - { name: drupal.command }
- console.database_dump:
- class: Drupal\Console\Command\Database\DumpCommand
- arguments: ['@app.root', '@console.shell_process']
- tags:
- - { name: drupal.command }
- console.database_log_clear:
- class: Drupal\Console\Command\Database\LogClearCommand
- arguments: ['@database']
- tags:
- - { name: drupal.command }
- console.database_log_poll:
- class: Drupal\Console\Command\Database\LogPollCommand
- arguments: ['@database', '@date.formatter', '@entity_type.manager', '@string_translation']
- tags:
- - { name: drupal.command }
- console.database_restore:
- class: Drupal\Console\Command\Database\RestoreCommand
- arguments: ['@app.root']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/debug.yml b/vendor/drupal/console/config/services/debug.yml
deleted file mode 100644
index 7d04fefff..000000000
--- a/vendor/drupal/console/config/services/debug.yml
+++ /dev/null
@@ -1,149 +0,0 @@
-services:
- console.container_debug:
- class: Drupal\Console\Command\Debug\ContainerCommand
- tags:
- - { name: drupal.command }
- console.event_debug:
- class: Drupal\Console\Command\Debug\EventCommand
- arguments: ['@event_dispatcher']
- tags:
- - { name: drupal.command }
- console.permission_debug:
- class: Drupal\Console\Command\Debug\PermissionCommand
- tags:
- - { name: drupal.command }
- console.plugin_debug:
- class: Drupal\Console\Command\Debug\PluginCommand
- tags:
- - { name: drupal.command }
- console.update_debug:
- class: Drupal\Console\Command\Debug\UpdateCommand
- arguments: ['@console.site', '@update.post_update_registry']
- tags:
- - { name: drupal.command }
- console.user_debug:
- class: Drupal\Console\Command\Debug\UserCommand
- arguments: ['@entity_type.manager','@entity.query', '@console.drupal_api']
- tags:
- - { name: drupal.command }
- console.views_debug:
- class: Drupal\Console\Command\Debug\ViewsCommand
- arguments: ['@entity_type.manager', '@?plugin.manager.views.display']
- tags:
- - { name: drupal.command }
- console.views_plugins_debug:
- class: Drupal\Console\Command\Debug\ViewsPluginsCommand
- tags:
- - { name: drupal.command }
- console.state_debug:
- class: Drupal\Console\Command\Debug\StateCommand
- arguments: ['@state', '@keyvalue']
- tags:
- - { name: drupal.command }
- console.theme_debug:
- class: Drupal\Console\Command\Debug\ThemeCommand
- arguments: ['@config.factory', '@theme_handler']
- tags:
- - { name: drupal.command }
- console.theme_keys_debug:
- class: Drupal\Console\Command\Debug\ThemeKeysCommand
- arguments: ['@theme.registry']
- tags:
- - { name: drupal.command }
- console.router_debug:
- class: Drupal\Console\Command\Debug\RouterCommand
- arguments: ['@router.route_provider']
- tags:
- - { name: drupal.command }
- console.queue_debug:
- class: Drupal\Console\Command\Debug\QueueCommand
- arguments: ['@queue', '@plugin.manager.queue_worker']
- tags:
- - { name: drupal.command }
- console.libraries_debug:
- class: Drupal\Console\Command\Debug\LibrariesCommand
- arguments: ['@module_handler', '@theme_handler', '@library.discovery', '@app.root']
- tags:
- - { name: drupal.command }
- console.module_debug:
- class: Drupal\Console\Command\Debug\ModuleCommand
- arguments: ['@console.configuration_manager', '@console.site', '@http_client']
- tags:
- - { name: drupal.command }
- console.image_styles_debug:
- class: Drupal\Console\Command\Debug\ImageStylesCommand
- arguments: ['@entity_type.manager']
- tags:
- - { name: drupal.command }
- console.entity_debug:
- class: Drupal\Console\Command\Debug\EntityCommand
- arguments: ['@entity_type.repository', '@entity_type.manager']
- tags:
- - { name: drupal.command }
- console.database_log_debug:
- class: Drupal\Console\Command\Debug\DatabaseLogCommand
- arguments: ['@database', '@date.formatter', '@entity_type.manager', '@string_translation']
- tags:
- - { name: drupal.command }
- console.database_table_debug:
- class: Drupal\Console\Command\Debug\DatabaseTableCommand
- arguments: ['@database']
- tags:
- - { name: drupal.command }
- console.cron_debug:
- class: Drupal\Console\Command\Debug\CronCommand
- arguments: ['@module_handler']
- tags:
- - { name: drupal.command }
- console.breakpoints_debug:
- class: Drupal\Console\Command\Debug\BreakpointsCommand
- arguments: ['@?breakpoint.manager', '@app.root']
- tags:
- - { name: drupal.command }
- console.cache_context_debug:
- class: Drupal\Console\Command\Debug\CacheContextCommand
- tags:
- - { name: drupal.command }
- console.config_debug:
- class: Drupal\Console\Command\Debug\ConfigCommand
- arguments: ['@config.factory', '@config.storage']
- tags:
- - { name: drupal.command }
- console.config_settings_debug:
- class: Drupal\Console\Command\Debug\ConfigSettingsCommand
- arguments: ['@settings']
- tags:
- - { name: drupal.command }
- console.config_validate_debug:
- class: Drupal\Console\Command\Debug\ConfigValidateCommand
- tags:
- - { name: drupal.command }
- console.multisite_debug:
- class: Drupal\Console\Command\Debug\MultisiteCommand
- arguments: ['@app.root']
- tags:
- - { name: drupal.command }
- console.migrate_debug:
- class: Drupal\Console\Command\Debug\MigrateCommand
- arguments: ['@?plugin.manager.migration']
- tags:
- - { name: drupal.command }
- console.rest_debug:
- class: Drupal\Console\Command\Debug\RestCommand
- arguments: ['@?plugin.manager.rest']
- tags:
- - { name: drupal.command }
- console.test_debug:
- class: Drupal\Console\Command\Debug\TestCommand
- arguments: ['@?test_discovery']
- tags:
- - { name: drupal.command }
- console.feature_debug:
- class: Drupal\Console\Command\Debug\FeaturesCommand
- tags:
- - { name: drupal.command }
- console.roles_debug:
- class: Drupal\Console\Command\Debug\RolesCommand
- arguments: ['@console.drupal_api']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/entity.yml b/vendor/drupal/console/config/services/entity.yml
deleted file mode 100644
index 58b018879..000000000
--- a/vendor/drupal/console/config/services/entity.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.entity_delete:
- class: Drupal\Console\Command\Entity\DeleteCommand
- arguments: ['@entity_type.repository', '@entity_type.manager']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/feature.yml b/vendor/drupal/console/config/services/feature.yml
deleted file mode 100644
index 3a3574131..000000000
--- a/vendor/drupal/console/config/services/feature.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-services:
- console.feature_import:
- class: Drupal\Console\Command\Features\ImportCommand
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/field.yml b/vendor/drupal/console/config/services/field.yml
deleted file mode 100644
index 0a181035d..000000000
--- a/vendor/drupal/console/config/services/field.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.field_info:
- class: Drupal\Console\Command\Field\InfoCommand
- arguments: ['@entity_type.manager', '@entity_field.manager']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/generate.yml b/vendor/drupal/console/config/services/generate.yml
deleted file mode 100644
index 3c52a6ea3..000000000
--- a/vendor/drupal/console/config/services/generate.yml
+++ /dev/null
@@ -1,216 +0,0 @@
-services:
- console.generate_module:
- class: Drupal\Console\Command\Generate\ModuleCommand
- arguments: ['@console.module_generator', '@console.validator', '@app.root', '@console.string_converter', '@console.drupal_api']
- tags:
- - { name: drupal.command }
- console.generate_modulefile:
- class: Drupal\Console\Command\Generate\ModuleFileCommand
- arguments: ['@console.extension_manager', '@console.modulefile_generator', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_authentication_provider:
- class: Drupal\Console\Command\Generate\AuthenticationProviderCommand
- arguments: ['@console.extension_manager', '@console.authentication_provider_generator', '@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_controller:
- class: Drupal\Console\Command\Generate\ControllerCommand
- arguments: ['@console.extension_manager', '@console.controller_generator', '@console.string_converter', '@console.validator', '@router.route_provider', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_ajax:
- class: Drupal\Console\Command\Generate\AjaxCommand
- arguments: ['@console.extension_manager', '@console.ajax_command_generator', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_breakpoint:
- class: Drupal\Console\Command\Generate\BreakPointCommand
- arguments: ['@console.breakpoint_generator', '@app.root', '@theme_handler', '@console.validator', '@console.string_converter']
- tags:
- - { name: drupal.command }
- console.generate_help:
- class: Drupal\Console\Command\Generate\HelpCommand
- arguments: ['@console.help_generator', '@console.site', '@console.extension_manager', '@console.chain_queue', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_form:
- class: Drupal\Console\Command\Generate\FormBaseCommand
- arguments: ['@console.translator_manager', '@console.extension_manager', '@console.form_generator', '@console.chain_queue', '@console.string_converter', '@console.validator', '@plugin.manager.element_info', '@router.route_provider']
- tags:
- - { name: drupal.command }
- console.generate_form_alter:
- class: Drupal\Console\Command\Generate\FormAlterCommand
- arguments: ['@console.extension_manager', '@console.form_alter_generator', '@console.string_converter', '@module_handler', '@plugin.manager.element_info', '@?profiler', '@app.root', '@console.chain_queue', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_permissions:
- class: Drupal\Console\Command\Generate\PermissionCommand
- arguments: ['@console.extension_manager', '@console.string_converter', '@console.permission_generator', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_event_subscriber:
- class: Drupal\Console\Command\Generate\EventSubscriberCommand
- arguments: ['@console.extension_manager', '@console.event_subscriber_generator', '@console.string_converter', '@console.validator', '@event_dispatcher', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_form_config:
- class: Drupal\Console\Command\Generate\ConfigFormBaseCommand
- arguments: ['@console.translator_manager', '@console.extension_manager', '@console.form_generator', '@console.string_converter', '@console.validator', '@router.route_provider', '@plugin.manager.element_info', '@app.root', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_type_annotation:
- class: Drupal\Console\Command\Generate\PluginTypeAnnotationCommand
- arguments: ['@console.extension_manager', '@console.plugin_type_annotation_generator', '@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_plugin_condition:
- class: Drupal\Console\Command\Generate\PluginConditionCommand
- arguments: ['@console.extension_manager', '@console.plugin_condition_generator', '@console.chain_queue', '@entity_type.repository', '@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_plugin_field:
- class: Drupal\Console\Command\Generate\PluginFieldCommand
- arguments: ['@console.extension_manager','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_field_formatter:
- class: Drupal\Console\Command\Generate\PluginFieldFormatterCommand
- arguments: ['@console.extension_manager', '@console.plugin_field_formatter_generator','@console.string_converter', '@console.validator', '@plugin.manager.field.field_type', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_field_type:
- class: Drupal\Console\Command\Generate\PluginFieldTypeCommand
- arguments: ['@console.extension_manager', '@console.plugin_field_type_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_field_widget:
- class: Drupal\Console\Command\Generate\PluginFieldWidgetCommand
- arguments: ['@console.extension_manager', '@console.plugin_field_widget_generator','@console.string_converter', '@console.validator', '@plugin.manager.field.field_type', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_image_effect:
- class: Drupal\Console\Command\Generate\PluginImageEffectCommand
- arguments: ['@console.extension_manager', '@console.plugin_image_effect_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_image_formatter:
- class: Drupal\Console\Command\Generate\PluginImageFormatterCommand
- arguments: ['@console.extension_manager', '@console.plugin_image_formatter_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_mail:
- class: Drupal\Console\Command\Generate\PluginMailCommand
- arguments: ['@console.extension_manager', '@console.plugin_mail_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_migrate_source:
- class: Drupal\Console\Command\Generate\PluginMigrateSourceCommand
- arguments: ['@config.factory', '@console.chain_queue', '@console.plugin_migrate_source_generator', '@entity_type.manager', '@console.extension_manager', '@console.validator', '@console.string_converter', '@plugin.manager.element_info']
- tags:
- - { name: drupal.command }
- console.generate_plugin_migrate_process:
- class: Drupal\Console\Command\Generate\PluginMigrateProcessCommand
- arguments: [ '@console.plugin_migrate_process_generator', '@console.chain_queue', '@console.extension_manager', '@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_plugin_rest_resource:
- class: Drupal\Console\Command\Generate\PluginRestResourceCommand
- arguments: ['@console.extension_manager', '@console.plugin_rest_resource_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_rules_action:
- class: Drupal\Console\Command\Generate\PluginRulesActionCommand
- arguments: ['@console.extension_manager', '@console.plugin_rules_action_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_skeleton:
- class: Drupal\Console\Command\Generate\PluginSkeletonCommand
- arguments: ['@console.extension_manager', '@console.plugin_skeleton_generator','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_plugin_type_yaml:
- class: Drupal\Console\Command\Generate\PluginTypeYamlCommand
- arguments: ['@console.extension_manager', '@console.plugin_type_yaml_generator','@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_plugin_views_field:
- class: Drupal\Console\Command\Generate\PluginViewsFieldCommand
- arguments: ['@console.extension_manager', '@console.plugin_views_field_generator', '@console.site','@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_post_update:
- class: Drupal\Console\Command\Generate\PostUpdateCommand
- arguments: ['@console.extension_manager', '@console.post_update_generator', '@console.site', '@console.validator','@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_profile:
- class: Drupal\Console\Command\Generate\ProfileCommand
- arguments: ['@console.extension_manager', '@console.profile_generator', '@console.string_converter', '@console.validator', '@app.root']
- tags:
- - { name: drupal.command }
- console.generate_route_subscriber:
- class: Drupal\Console\Command\Generate\RouteSubscriberCommand
- arguments: ['@console.extension_manager', '@console.route_subscriber_generator', '@console.chain_queue', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_service:
- class: Drupal\Console\Command\Generate\ServiceCommand
- arguments: ['@console.extension_manager', '@console.service_generator', '@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_theme:
- class: Drupal\Console\Command\Generate\ThemeCommand
- arguments: ['@console.extension_manager', '@console.theme_generator', '@console.validator', '@app.root', '@theme_handler', '@console.site', '@console.string_converter']
- tags:
- - { name: drupal.command }
- console.generate_twig_extension:
- class: Drupal\Console\Command\Generate\TwigExtensionCommand
- arguments: ['@console.extension_manager', '@console.twig_extension_generator', '@console.site', '@console.string_converter', '@console.validator', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.generate_update:
- class: Drupal\Console\Command\Generate\UpdateCommand
- arguments: ['@console.extension_manager', '@console.update_generator', '@console.site', '@console.chain_queue', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_pluginblock:
- class: Drupal\Console\Command\Generate\PluginBlockCommand
- arguments: ['@config.factory', '@console.chain_queue', '@console.pluginblock_generator', '@entity_type.manager', '@console.extension_manager', '@console.validator', '@console.string_converter', '@plugin.manager.element_info']
- tags:
- - { name: drupal.command }
- console.generate_command:
- class: Drupal\Console\Command\Generate\CommandCommand
- arguments: ['@console.command_generator', '@console.extension_manager', '@console.validator', '@console.string_converter', '@console.site']
- tags:
- - { name: drupal.command }
- console.generate_ckeditorbutton:
- class: Drupal\Console\Command\Generate\PluginCKEditorButtonCommand
- arguments: ['@console.chain_queue', '@console.command_ckeditorbutton', '@console.extension_manager', '@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_entitycontent:
- class: Drupal\Console\Command\Generate\EntityContentCommand
- arguments: ['@console.chain_queue', '@console.entitycontent_generator', '@console.string_converter', '@console.extension_manager', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_entitybundle:
- class: Drupal\Console\Command\Generate\EntityBundleCommand
- arguments: ['@console.validator', '@console.entitybundle_generator', '@console.extension_manager']
- tags:
- - { name: drupal.command }
- console.generate_entityconfig:
- class: Drupal\Console\Command\Generate\EntityConfigCommand
- arguments: ['@console.extension_manager', '@console.entityconfig_generator', '@console.validator', '@console.string_converter']
- tags:
- - { name: drupal.command }
- console.generate_cache_context:
- class: Drupal\Console\Command\Generate\CacheContextCommand
- arguments: [ '@console.cache_context_generator', '@console.chain_queue', '@console.extension_manager', '@console.string_converter', '@console.validator']
- tags:
- - { name: drupal.command }
- console.generate_js_test:
- class: Drupal\Console\Command\Generate\JsTestCommand
- arguments: ['@console.extension_manager', '@console.js_test_generator', '@console.validator']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/generator.yml b/vendor/drupal/console/config/services/generator.yml
deleted file mode 100644
index d38bac2b5..000000000
--- a/vendor/drupal/console/config/services/generator.yml
+++ /dev/null
@@ -1,213 +0,0 @@
-services:
- console.module_generator:
- class: Drupal\Console\Generator\ModuleGenerator
- tags:
- - { name: drupal.generator }
- console.modulefile_generator:
- class: Drupal\Console\Generator\ModuleFileGenerator
- tags:
- - { name: drupal.generator }
- console.authentication_provider_generator:
- class: Drupal\Console\Generator\AuthenticationProviderGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.help_generator:
- class: Drupal\Console\Generator\HelpGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.controller_generator:
- class: Drupal\Console\Generator\ControllerGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.ajax_command_generator:
- class: Drupal\Console\Generator\AjaxCommandGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.breakpoint_generator:
- class: Drupal\Console\Generator\BreakPointGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.form_alter_generator:
- class: Drupal\Console\Generator\FormAlterGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.permission_generator:
- class: Drupal\Console\Generator\PermissionGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.event_subscriber_generator:
- class: Drupal\Console\Generator\EventSubscriberGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.form_generator:
- class: Drupal\Console\Generator\FormGenerator
- arguments: ['@console.extension_manager', '@console.string_converter']
- tags:
- - { name: drupal.generator }
- console.profile_generator:
- class: Drupal\Console\Generator\ProfileGenerator
- tags:
- - { name: drupal.generator }
- console.post_update_generator:
- class: Drupal\Console\Generator\PostUpdateGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_condition_generator:
- class: Drupal\Console\Generator\PluginConditionGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_field_generator:
- class: Drupal\Console\Generator\PluginFieldFormatterGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_field_formatter_generator:
- class: Drupal\Console\Generator\PluginFieldFormatterGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_field_type_generator:
- class: Drupal\Console\Generator\PluginFieldTypeGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_field_widget_generator:
- class: Drupal\Console\Generator\PluginFieldWidgetGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_image_effect_generator:
- class: Drupal\Console\Generator\PluginImageEffectGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_image_formatter_generator:
- class: Drupal\Console\Generator\PluginImageFormatterGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_mail_generator:
- class: Drupal\Console\Generator\PluginMailGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_migrate_source_generator:
- class: Drupal\Console\Generator\PluginMigrateSourceGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_migrate_process_generator:
- class: Drupal\Console\Generator\PluginMigrateProcessGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_rest_resource_generator:
- class: Drupal\Console\Generator\PluginRestResourceGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_rules_action_generator:
- class: Drupal\Console\Generator\PluginRulesActionGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_skeleton_generator:
- class: Drupal\Console\Generator\PluginSkeletonGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_views_field_generator:
- class: Drupal\Console\Generator\PluginViewsFieldGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_type_annotation_generator:
- class: Drupal\Console\Generator\PluginTypeAnnotationGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.plugin_type_yaml_generator:
- class: Drupal\Console\Generator\PluginTypeYamlGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.route_subscriber_generator:
- class: Drupal\Console\Generator\RouteSubscriberGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.service_generator:
- class: Drupal\Console\Generator\ServiceGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.theme_generator:
- class: Drupal\Console\Generator\ThemeGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.twig_extension_generator:
- class: Drupal\Console\Generator\TwigExtensionGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.update_generator:
- class: Drupal\Console\Generator\UpdateGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.pluginblock_generator:
- class: Drupal\Console\Generator\PluginBlockGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.command_generator:
- class: Drupal\Console\Generator\CommandGenerator
- arguments: ['@console.extension_manager', '@console.translator_manager']
- tags:
- - { name: drupal.generator }
- console.command_ckeditorbutton:
- class: Drupal\Console\Generator\PluginCKEditorButtonGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.database_settings_generator:
- class: Drupal\Console\Generator\DatabaseSettingsGenerator
- arguments: ['@kernel']
- tags:
- - { name: drupal.generator }
- console.entitycontent_generator:
- class: Drupal\Console\Generator\EntityContentGenerator
- arguments: ['@console.extension_manager', '@console.site', '@console.renderer']
- tags:
- - { name: drupal.generator }
- console.entitybundle_generator:
- class: Drupal\Console\Generator\EntityBundleGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.entityconfig_generator:
- class: Drupal\Console\Generator\EntityConfigGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.cache_context_generator:
- class: Drupal\Console\Generator\CacheContextGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
- console.js_test_generator:
- class: Drupal\Console\Generator\JsTestGenerator
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.generator }
diff --git a/vendor/drupal/console/config/services/image.yml b/vendor/drupal/console/config/services/image.yml
deleted file mode 100644
index 73b5c566a..000000000
--- a/vendor/drupal/console/config/services/image.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.image_styles_flush:
- class: Drupal\Console\Command\Image\StylesFlushCommand
- arguments: ['@entity_type.manager']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/locale.yml b/vendor/drupal/console/config/services/locale.yml
deleted file mode 100644
index a498b84e9..000000000
--- a/vendor/drupal/console/config/services/locale.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-services:
- console.translation_status:
- class: Drupal\Console\Command\Locale\TranslationStatusCommand
- arguments: ['@console.site', '@console.extension_manager']
- tags:
- - { name: drupal.command }
- console.language_delete:
- class: Drupal\Console\Command\Locale\LanguageDeleteCommand
- arguments: ['@console.site', '@entity_type.manager', '@module_handler']
- tags:
- - { name: drupal.command }
- console.language_add:
- class: Drupal\Console\Command\Locale\LanguageAddCommand
- arguments: ['@console.site', '@module_handler']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/migrate.yml b/vendor/drupal/console/config/services/migrate.yml
deleted file mode 100644
index 71ebc4f20..000000000
--- a/vendor/drupal/console/config/services/migrate.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-services:
- console.migrate_rollback:
- class: Drupal\Console\Command\Migrate\RollBackCommand
- arguments: ['@?plugin.manager.migration']
- tags:
- - { name: drupal.command }
- console.migrate_execute:
- class: Drupal\Console\Command\Migrate\ExecuteCommand
- arguments: ['@?plugin.manager.migration']
- tags:
- - { name: drupal.command }
- console.migrate_setup:
- class: Drupal\Console\Command\Migrate\SetupCommand
- arguments: ['@state', '@?plugin.manager.migration']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/misc.yml b/vendor/drupal/console/config/services/misc.yml
deleted file mode 100644
index 1f97382f0..000000000
--- a/vendor/drupal/console/config/services/misc.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-services:
- console.devel_dumper:
- class: Drupal\Console\Command\DevelDumperCommand
- arguments: ['@?plugin.manager.devel_dumper']
- tags:
- - { name: drupal.command }
- console.shell:
- class: Drupal\Console\Command\ShellCommand
- tags:
- - { name: drupal.command }
- console.snippet:
- class: Drupal\Console\Command\SnippetCommand
- arguments: ['@console.root', '@app.root']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/module.yml b/vendor/drupal/console/config/services/module.yml
deleted file mode 100644
index e970203dc..000000000
--- a/vendor/drupal/console/config/services/module.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-services:
- console.module_dependency_install:
- class: Drupal\Console\Command\Module\InstallDependencyCommand
- arguments: ['@console.site', '@console.validator', '@module_installer', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.module_download:
- class: Drupal\Console\Command\Module\DownloadCommand
- arguments: ['@console.drupal_api', '@http_client', '@app.root', '@console.extension_manager', '@console.validator', '@console.site', '@console.configuration_manager', '@console.shell_process', '@console.root']
- tags:
- - { name: drupal.command }
- console.module_install:
- class: Drupal\Console\Command\Module\InstallCommand
- arguments: ['@console.site', '@console.validator', '@module_installer', '@console.drupal_api', '@console.extension_manager', '@app.root', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.module_path:
- class: Drupal\Console\Command\Module\PathCommand
- arguments: ['@console.extension_manager']
- tags:
- - { name: drupal.command }
- console.module_uninstall:
- class: Drupal\Console\Command\Module\UninstallCommand
- arguments: ['@console.site','@module_installer', '@console.chain_queue', '@config.factory', '@console.extension_manager']
- tags:
- - { name: drupal.command }
- console.module_update:
- class: Drupal\Console\Command\Module\UpdateCommand
- arguments: ['@console.shell_process', '@console.root']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/node.yml b/vendor/drupal/console/config/services/node.yml
deleted file mode 100644
index 4dc94e2aa..000000000
--- a/vendor/drupal/console/config/services/node.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.node_access_rebuild:
- class: Drupal\Console\Command\Node\AccessRebuildCommand
- arguments: ['@state']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/queue.yml b/vendor/drupal/console/config/services/queue.yml
deleted file mode 100644
index fc41033fc..000000000
--- a/vendor/drupal/console/config/services/queue.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.queue_run:
- class: Drupal\Console\Command\Queue\RunCommand
- arguments: ['@plugin.manager.queue_worker', '@queue']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/rest.yml b/vendor/drupal/console/config/services/rest.yml
deleted file mode 100644
index 985c195ed..000000000
--- a/vendor/drupal/console/config/services/rest.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-services:
- console.rest_disable:
- class: Drupal\Console\Command\Rest\DisableCommand
- arguments: ['@config.factory', '@?plugin.manager.rest']
- tags:
- - { name: drupal.command }
- console.rest_enable:
- class: Drupal\Console\Command\Rest\EnableCommand
- arguments:
- - '@?plugin.manager.rest'
- - '@authentication_collector'
- - '@config.factory'
- - '@entity.manager'
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/role.yml b/vendor/drupal/console/config/services/role.yml
deleted file mode 100644
index 795e1c022..000000000
--- a/vendor/drupal/console/config/services/role.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- console.role_new:
- class: Drupal\Console\Command\Role\NewCommand
- arguments: ['@database', '@entity_type.manager', '@date.formatter', '@console.drupal_api', '@console.validator', '@console.string_converter']
- tags:
- - { name: drupal.command }
- console.role_delete:
- class: Drupal\Console\Command\Role\DeleteCommand
- arguments: ['@database', '@entity_type.manager', '@date.formatter', '@console.drupal_api', '@console.validator']
- tags:
- - { name: drupal.command }
\ No newline at end of file
diff --git a/vendor/drupal/console/config/services/router.yml b/vendor/drupal/console/config/services/router.yml
deleted file mode 100644
index 4076dc6fd..000000000
--- a/vendor/drupal/console/config/services/router.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.router_rebuild:
- class: Drupal\Console\Command\Router\RebuildCommand
- arguments: ['@router.builder']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/simpletest.yml b/vendor/drupal/console/config/services/simpletest.yml
deleted file mode 100644
index 152e315f5..000000000
--- a/vendor/drupal/console/config/services/simpletest.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.test_run:
- class: Drupal\Console\Command\Test\RunCommand
- arguments: ['@app.root', '@?test_discovery', '@module_handler', '@date.formatter']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/site.yml b/vendor/drupal/console/config/services/site.yml
deleted file mode 100644
index f1a4d9bbb..000000000
--- a/vendor/drupal/console/config/services/site.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-services:
- console.site_import_local:
- class: Drupal\Console\Command\Site\ImportLocalCommand
- arguments: ['@app.root','@console.configuration_manager']
- tags:
- - { name: drupal.command }
- console.site_maintenance:
- class: Drupal\Console\Command\Site\MaintenanceCommand
- arguments: ['@state', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.site_mode:
- class: Drupal\Console\Command\Site\ModeCommand
- arguments: ['@config.factory', '@console.configuration_manager', '@app.root', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.site_statistics:
- class: Drupal\Console\Command\Site\StatisticsCommand
- arguments: ['@console.drupal_api', '@entity.query', '@console.extension_manager', '@module_handler']
- tags:
- - { name: drupal.command }
- console.site_status:
- class: Drupal\Console\Command\Site\StatusCommand
- arguments: ['@?system.manager', '@settings', '@config.factory', '@theme_handler', '@app.root']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/state.yml b/vendor/drupal/console/config/services/state.yml
deleted file mode 100644
index be8572157..000000000
--- a/vendor/drupal/console/config/services/state.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- console.state_delete:
- class: Drupal\Console\Command\State\DeleteCommand
- arguments: ['@state', '@keyvalue']
- tags:
- - { name: drupal.command }
- console.state_override:
- class: Drupal\Console\Command\State\OverrideCommand
- arguments: ['@state', '@keyvalue']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/taxonomy.yml b/vendor/drupal/console/config/services/taxonomy.yml
deleted file mode 100644
index 4fc0cce59..000000000
--- a/vendor/drupal/console/config/services/taxonomy.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- console.taxonomy_delete:
- class: Drupal\Console\Command\Taxonomy\DeleteTermCommand
- arguments: ['@entity_type.manager']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/theme.yml b/vendor/drupal/console/config/services/theme.yml
deleted file mode 100644
index 74a2ff152..000000000
--- a/vendor/drupal/console/config/services/theme.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-services:
- console.theme_download:
- class: Drupal\Console\Command\Theme\DownloadCommand
- arguments: ['@console.drupal_api', '@http_client', '@app.root']
- tags:
- - { name: drupal.command }
- console.theme_install:
- class: Drupal\Console\Command\Theme\InstallCommand
- arguments: ['@config.factory', '@theme_handler', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.theme_path:
- class: Drupal\Console\Command\Theme\PathCommand
- arguments: ['@console.extension_manager','@theme_handler']
- tags:
- - { name: drupal.command }
- console.theme_uninstall:
- class: Drupal\Console\Command\Theme\UninstallCommand
- arguments: ['@config.factory', '@theme_handler', '@console.chain_queue']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/update.yml b/vendor/drupal/console/config/services/update.yml
deleted file mode 100644
index eed0fa5a8..000000000
--- a/vendor/drupal/console/config/services/update.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- console.update_entities:
- class: Drupal\Console\Command\Update\EntitiesCommand
- arguments: ['@state', '@entity.definition_update_manager', '@console.chain_queue']
- tags:
- - { name: drupal.command }
- console.update_execute:
- class: Drupal\Console\Command\Update\ExecuteCommand
- arguments: ['@console.site', '@state', '@module_handler', '@update.post_update_registry', '@console.extension_manager', '@console.chain_queue']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/user.yml b/vendor/drupal/console/config/services/user.yml
deleted file mode 100644
index a40f94b41..000000000
--- a/vendor/drupal/console/config/services/user.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-services:
- console.user_delete:
- class: Drupal\Console\Command\User\DeleteCommand
- arguments: ['@entity_type.manager','@entity.query', '@console.drupal_api']
- tags:
- - { name: drupal.command }
- console.user_login_clear_attempts:
- class: Drupal\Console\Command\User\LoginCleanAttemptsCommand
- arguments: ['@database', '@entity_type.manager']
- tags:
- - { name: drupal.command }
- console.user_login_url:
- class: Drupal\Console\Command\User\LoginUrlCommand
- arguments: ['@entity_type.manager']
- tags:
- - { name: drupal.command }
- console.user_password_hash:
- class: Drupal\Console\Command\User\PasswordHashCommand
- arguments: ['@password']
- tags:
- - { name: drupal.command }
- console.user_password_reset:
- class: Drupal\Console\Command\User\PasswordResetCommand
- arguments: ['@database', '@console.chain_queue', '@entity_type.manager']
- tags:
- - { name: drupal.command }
- console.user_role:
- class: Drupal\Console\Command\User\RoleCommand
- arguments: ['@console.drupal_api', '@entity_type.manager']
- tags:
- - { name: drupal.command }
- console.user_create:
- class: Drupal\Console\Command\User\CreateCommand
- arguments: ['@database', '@entity_type.manager', '@date.formatter', '@console.drupal_api']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/config/services/views.yml b/vendor/drupal/console/config/services/views.yml
deleted file mode 100644
index 9fdc6a1cd..000000000
--- a/vendor/drupal/console/config/services/views.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- console.views_disable:
- class: Drupal\Console\Command\Views\DisableCommand
- arguments: ['@entity_type.manager', '@entity.query']
- tags:
- - { name: drupal.command }
- console.views_enable:
- class: Drupal\Console\Command\Views\EnableCommand
- arguments: ['@entity_type.manager', '@entity.query']
- tags:
- - { name: drupal.command }
diff --git a/vendor/drupal/console/phpqa.yml b/vendor/drupal/console/phpqa.yml
deleted file mode 100644
index 5998ec92a..000000000
--- a/vendor/drupal/console/phpqa.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-application:
- method:
- git:
- enabled: true
- exception: false
- composer:
- enabled: true
- exception: false
- analyzer:
- parallel-lint:
- enabled: true
- exception: true
- options:
- e: 'php'
- exclude: vendor/
- arguments:
- php-cs-fixer:
- enabled: true
- exception: false
- options:
- level: psr2
- arguments:
- prefixes:
- - fix
- postfixes:
- phpcbf:
- enabled: true
- exception: false
- options:
- standard: PSR2
- severity: 0
- ignore: /vendor
- arguments:
- - '-n'
- phpcs:
- enabled: false
- exception: false
- options:
- standard: PSR2
- severity: 0
- ignore: /vendor
- arguments:
- - '-n'
- phpmd:
- enabled: false
- exception: false
- options:
- arguments:
- prefixes:
- postfixes:
- - 'text'
- - 'cleancode'
- phploc:
- enabled: false
- exception: false
- phpcpd:
- enabled: false
- exception: false
- phpdcd:
- enabled: false
- exception: false
- phpunit:
- enabled: false
- exception: true
- file:
- configuration: phpunit.xml.dist
- single-execution: true
- options:
- arguments:
diff --git a/vendor/drupal/console/phpunit.xml.dist b/vendor/drupal/console/phpunit.xml.dist
deleted file mode 100644
index 700c86e24..000000000
--- a/vendor/drupal/console/phpunit.xml.dist
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- Test
-
-
-
-
-
- ./
-
- ./Test
- ./vendor
-
-
-
-
diff --git a/vendor/drupal/console/resources/dash.css b/vendor/drupal/console/resources/dash.css
deleted file mode 100644
index 3d934fca6..000000000
--- a/vendor/drupal/console/resources/dash.css
+++ /dev/null
@@ -1,99 +0,0 @@
-body {
- font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif;
- line-height: 1.384615em;
- width: 90%;
- margin-left: auto;
- margin-right: auto;
-}
-
-h1 {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- color: black;
- font-size: 2em;
- font-weight: normal;
- line-height: 1.385em;
- margin: 0 0 0.692em;
-}
-h2 {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size: 1.538em;
- font-weight: normal;
- line-height: 1.35em;
- margin: 0.9em 0 0.45em;
-}
-
-h2:first-child {
- margin-top: 0;
-}
-
-h3 {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-weight: bold;
- font-size: 1.231em;
- line-height: 1.6875em;
- margin: 0 0 0.5625em;
-}
-
-h4, h5, h6 {
- font-size: 1em;
- line-height: 1.385em;
- color: #666666;
- font-weight: bold;
-}
-
-p {
- margin: 0 0 1.385em 0;
- padding: 0;
- border: 0;
- font: inherit;
- font-size: 100%;
- vertical-align: baseline;
-}
-
-code, tt, pre {
- background-color: #f6f6f2;
- font-family: "Bitstream Vera Sans Mono", Monaco, "Lucida Console", monospace;
- font-size: 0.9em;
- padding: 1px;
- white-space: pre-wrap;
-}
-
-strong, b {
- font-weight: bold;
-}
-
-em, i {
- font-style: italic;
-}
-
-table {
- margin-bottom: 0.5em;
- border-collapse: separate;
-}
-
-th, td {
- text-align: left;
- font-weight: normal;
- vertical-align: middle;
- padding: 0.25em 0.5em;
-}
-
-th {
- background: #d7d7c7;
- padding: 0.25em 0.5em;
- font-weight: bold;
-}
-
-tbody tr {
- padding: 0.1em 0.6em;
-}
-
-tbody tr.odd {
- background-color: white;
-}
-
-tbody tr.even {
- background: #eeeee0;
- border-bottom: 1px solid #d8d8d2;
- border-top: 1px solid #d8d8d2;
-}
\ No newline at end of file
diff --git a/vendor/drupal/console/resources/drupal-console.png b/vendor/drupal/console/resources/drupal-console.png
deleted file mode 100644
index dee9ba685..000000000
Binary files a/vendor/drupal/console/resources/drupal-console.png and /dev/null differ
diff --git a/vendor/drupal/console/services.yml b/vendor/drupal/console/services.yml
deleted file mode 100644
index b0d4597c6..000000000
--- a/vendor/drupal/console/services.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-services:
- console.root:
- class: SplString
- console.cache_key:
- class: SplString
- console.validator:
- class: Drupal\Console\Utils\Validator
- arguments: ['@console.extension_manager', '@console.translator_manager']
- console.drupal_api:
- class: Drupal\Console\Utils\DrupalApi
- arguments: ['@app.root', '@entity_type.manager', '@http_client']
- console.create_node_data:
- class: Drupal\Console\Utils\Create\NodeData
- arguments: ['@entity_type.manager', '@entity_field.manager', '@date.formatter', '@console.drupal_api']
- console.create_comment_data:
- class: Drupal\Console\Utils\Create\CommentData
- arguments: ['@entity_type.manager', '@entity_field.manager', '@date.formatter', '@console.drupal_api']
- console.create_term_data:
- class: Drupal\Console\Utils\Create\TermData
- arguments: ['@entity_type.manager', '@entity_field.manager', '@date.formatter', '@console.drupal_api']
- console.create_user_data:
- class: Drupal\Console\Utils\Create\UserData
- arguments: ['@entity_type.manager', '@entity_field.manager', '@date.formatter', '@console.drupal_api']
- console.create_role_data:
- class: Drupal\Console\Utils\Create\RoleData
- arguments: ['@entity_type.manager', '@entity_field.manager', '@date.formatter', '@console.drupal_api']
- console.create_vocabulary_data:
- class: Drupal\Console\Utils\Create\VocabularyData
- arguments: ['@entity_type.manager', '@entity_field.manager', '@date.formatter', '@console.drupal_api']
- console.annotation_command_reader:
- class: Drupal\Console\Annotations\DrupalCommandAnnotationReader
- console.annotation_validator:
- class: Drupal\Console\Utils\AnnotationValidator
- arguments: ['@console.annotation_command_reader', '@console.extension_manager']
- # Commands
- console.generate_composer:
- class: Drupal\Console\Command\ComposerizeCommand
- tags:
- - { name: drupal.command }
-
diff --git a/vendor/drupal/console/src/Annotations/DrupalCommand.php b/vendor/drupal/console/src/Annotations/DrupalCommand.php
deleted file mode 100644
index 4f00d3f02..000000000
--- a/vendor/drupal/console/src/Annotations/DrupalCommand.php
+++ /dev/null
@@ -1,36 +0,0 @@
- null,
- 'extensionType' => null,
- 'dependencies' => [],
- 'bootstrap' => 'installed'
- ];
- $reader = new AnnotationReader();
- $drupalCommandAnnotation = $reader->getClassAnnotation(
- new \ReflectionClass($class),
- 'Drupal\\Console\\Annotations\\DrupalCommand'
- );
- if ($drupalCommandAnnotation) {
- $annotation['extension'] = $drupalCommandAnnotation->extension?:null;
- $annotation['extensionType'] = $drupalCommandAnnotation->extensionType?:null;
- $annotation['dependencies'] = $drupalCommandAnnotation->dependencies?:[];
- $annotation['bootstrap'] = $drupalCommandAnnotation->bootstrap?:'install';
- }
-
- return $annotation;
- }
-}
diff --git a/vendor/drupal/console/src/Application.php b/vendor/drupal/console/src/Application.php
deleted file mode 100644
index ff247181f..000000000
--- a/vendor/drupal/console/src/Application.php
+++ /dev/null
@@ -1,148 +0,0 @@
-getName()) {
- if ('UNKNOWN' !== $this->getVersion()) {
- $output .= sprintf('%s version %s ', $this->getName(), $this->getVersion());
- } else {
- $output .= sprintf('%s ', $this->getName());
- }
- } else {
- $output .= 'Drupal Console ';
- }
-
- return $output;
- }
-
- /**
- * {@inheritdoc}
- */
- public function doRun(InputInterface $input, OutputInterface $output)
- {
- $this->validateCommands();
-
- return parent::doRun($input, $output);
- }
-
- public function validateCommands()
- {
- $consoleCommands = $this->container
- ->findTaggedServiceIds('drupal.command');
-
- if (!$consoleCommands) {
- return;
- }
-
- $serviceDefinitions = $this->container->getDefinitions();
-
- if (!$serviceDefinitions) {
- return;
- }
-
- if (!$this->container->has('console.annotation_command_reader')) {
- return;
- }
-
- /**
- * @var DrupalCommandAnnotationReader $annotationCommandReader
- */
- $annotationCommandReader = $this->container
- ->get('console.annotation_command_reader');
-
- if (!$this->container->has('console.annotation_validator')) {
- return;
- }
-
- /**
- * @var AnnotationValidator $annotationValidator
- */
- $annotationValidator = $this->container
- ->get('console.annotation_validator');
-
- $invalidCommands = [];
-
- foreach ($consoleCommands as $name => $tags) {
- AnnotationRegistry::reset();
- AnnotationRegistry::registerLoader(
- [
- $this->container->get('class_loader'),
- "loadClass"
- ]
- );
-
- if (!$this->container->has($name)) {
- $invalidCommands[] = $name;
- continue;
- }
-
- if (!$serviceDefinition = $serviceDefinitions[$name]) {
- $invalidCommands[] = $name;
- continue;
- }
-
- if (!$annotationValidator->isValidCommand(
- $serviceDefinition->getClass()
- )
- ) {
- $invalidCommands[] = $name;
- continue;
- }
-
- $annotation = $annotationCommandReader
- ->readAnnotation($serviceDefinition->getClass());
- if ($annotation) {
- $this->container->get('console.translator_manager')
- ->addResourceTranslationsByExtension(
- $annotation['extension'],
- $annotation['extensionType']
- );
- }
- }
-
- $this->container
- ->get('console.key_value_storage')
- ->set('invalid_commands', $invalidCommands);
-
- return;
- }
-}
diff --git a/vendor/drupal/console/src/Bootstrap/Drupal.php b/vendor/drupal/console/src/Bootstrap/Drupal.php
deleted file mode 100644
index a9d773346..000000000
--- a/vendor/drupal/console/src/Bootstrap/Drupal.php
+++ /dev/null
@@ -1,295 +0,0 @@
-autoload = $autoload;
- $this->drupalFinder = $drupalFinder;
- $this->configurationManager = $configurationManager;
- }
-
- /**
- * Boot the Drupal object
- *
- * @return \Symfony\Component\DependencyInjection\ContainerBuilder
- */
- public function boot()
- {
- $output = new ConsoleOutput();
- $input = new ArrayInput([]);
- $io = new DrupalStyle($input, $output);
- $argvInputReader = new ArgvInputReader();
- $command = $argvInputReader->get('command');
- $uri = $argvInputReader->get('uri');
- $debug = $argvInputReader->get('debug', false);
-
- if ($debug) {
- $binaryPath = $this->drupalFinder->getVendorDir() .
- '/drupal/console/bin/drupal';
- $io->writeln("Per-Site path: $binaryPath ");
- $io->newLine();
- }
-
- if (!class_exists('Drupal\Core\DrupalKernel')) {
- $io->error('Class Drupal\Core\DrupalKernel does not exist.');
-
- return $this->bootDrupalConsoleCore();
- }
-
- try {
- // Add support for Acquia Dev Desktop sites.
- // Try both Mac and Windows home locations.
- $home = getenv('HOME');
- if (empty($home)) {
- $home = getenv('USERPROFILE');
- }
- if (!empty($home)) {
- $devDesktopSettingsDir = $home . "/.acquia/DevDesktop/DrupalSettings";
- if (file_exists($devDesktopSettingsDir)) {
- $_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] = $devDesktopSettingsDir;
- }
- }
-
- if ($debug) {
- $io->writeln('➤ Creating request');
- }
-
- $_SERVER['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST);
- $_SERVER['SERVER_PORT'] = null;
- $_SERVER['REQUEST_URI'] = '/';
- $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
- $_SERVER['REQUEST_METHOD'] = 'GET';
- $_SERVER['SERVER_SOFTWARE'] = null;
- $_SERVER['HTTP_USER_AGENT'] = null;
- $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] . 'index.php';
- $_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'];
- $_SERVER['SCRIPT_FILENAME'] = $this->drupalFinder->getDrupalRoot() . '/index.php';
- $request = Request::createFromGlobals();
-
- if ($debug) {
- $io->writeln("\r\033[K\033[1A\r✔ ");
- $io->writeln('➤ Creating Drupal kernel');
- }
-
- $updateCommands = [
- 'update:execute',
- 'upex',
- 'updb',
- 'update:entities',
- 'upe'
- ];
-
- if (!in_array($command, $updateCommands)) {
- $drupalKernel = DrupalKernel::createFromRequest(
- $request,
- $this->autoload,
- 'prod',
- false,
- $this->drupalFinder->getDrupalRoot()
- );
- } else {
- $drupalKernel = DrupalUpdateKernel::createFromRequest(
- $request,
- $this->autoload,
- 'prod',
- false,
- $this->drupalFinder->getDrupalRoot()
- );
- }
-
- if ($debug) {
- $io->writeln("\r\033[K\033[1A\r✔ ");
- $io->writeln('➤ Registering dynamic services');
- }
-
- $configuration = $this->configurationManager->getConfiguration();
-
- $drupalKernel->addServiceModifier(
- new DrupalServiceModifier(
- $this->drupalFinder->getComposerRoot(),
- 'drupal.command',
- 'drupal.generator',
- $configuration
- )
- );
-
- if ($debug) {
- $io->writeln("\r\033[K\033[1A\r✔ ");
- $io->writeln('➤ Rebuilding container');
- }
-
- // Fix an exception of FileCacheFactory not prefix not set when
- // container is build and looks that as we depend on cache for
- // AddServicesCompilerPass but container is not ready this prefix
- // needs to be set manually to allow use of the cache files.
- FileCacheFactory::setPrefix($this->drupalFinder->getDrupalRoot());
-
- // Invalidate container to ensure rebuild of any cached state
- // when boot is processed.
- $drupalKernel->invalidateContainer();
-
- // Load legacy libraries, modules, register stream wrapper, and push
- // request to request stack but without trigger processing of '/'
- // request that invokes hooks like hook_page_attachments().
- $drupalKernel->boot();
- $drupalKernel->preHandle($request);
- if ($debug) {
- $io->writeln("\r\033[K\033[1A\r✔ ");
- }
-
- $container = $drupalKernel->getContainer();
-
- if ($this->shouldRedirectToDrupalCore($container)) {
- $container = $this->bootDrupalConsoleCore();
- $container->set('class_loader', $this->autoload);
-
- return $container;
- }
-
- $container->set(
- 'console.root',
- $this->drupalFinder->getComposerRoot()
- );
-
- AnnotationRegistry::registerLoader([$this->autoload, "loadClass"]);
-
- $container->set(
- 'console.configuration_manager',
- $this->configurationManager
- );
-
- $container->get('console.translator_manager')
- ->loadCoreLanguage(
- $configuration->get('application.language'),
- $this->drupalFinder->getComposerRoot()
- );
-
- $container->get('console.renderer')
- ->setSkeletonDirs(
- [
- $this->drupalFinder->getComposerRoot().DRUPAL_CONSOLE.'/templates/',
- $this->drupalFinder->getComposerRoot().DRUPAL_CONSOLE_CORE.'/templates/'
- ]
- );
-
- $container->set(
- 'console.drupal_finder',
- $this->drupalFinder
- );
-
- $container->set(
- 'console.cache_key',
- $drupalKernel->getContainerKey()
- );
-
- return $container;
- } catch (\Exception $e) {
- $container = $this->bootDrupalConsoleCore();
- $container->set('class_loader', $this->autoload);
-
- $container->get('console.renderer')
- ->setSkeletonDirs(
- [
- $this->drupalFinder->getComposerRoot().DRUPAL_CONSOLE.'/templates/',
- $this->drupalFinder->getComposerRoot().DRUPAL_CONSOLE_CORE.'/templates/'
- ]
- );
-
- $notifyErrorCodes = [
- 0,
- 1045,
- 1049,
- 2002,
- ];
-
- if (in_array($e->getCode(), $notifyErrorCodes)) {
- /**
- * @var \Drupal\Console\Core\Utils\MessageManager $messageManager
- */
- $messageManager = $container->get('console.message_manager');
- $messageManager->error(
- $e->getMessage(),
- $e->getCode(),
- 'list',
- 'site:install'
- );
- }
-
- return $container;
- }
- }
-
- /**
- * Builds and boot a DrupalConsoleCore object
- *
- * @return \Symfony\Component\DependencyInjection\ContainerBuilder
- */
- protected function bootDrupalConsoleCore()
- {
- $drupal = new DrupalConsoleCore(
- $this->drupalFinder->getComposerRoot(),
- $this->drupalFinder->getDrupalRoot(),
- $this->drupalFinder
- );
-
- return $drupal->boot();
- }
-
- /**
- * Validate if flow should redirect to DrupalCore
- *
- * @param $container
- * @return bool
- */
- protected function shouldRedirectToDrupalCore($container)
- {
- if (!Database::getConnectionInfo()) {
- return true;
- }
-
- if (!$container->has('database')) {
- return true;
- }
-
-
- return !$container->get('database')->schema()->tableExists('sessions');
- }
-}
diff --git a/vendor/drupal/console/src/Bootstrap/DrupalCompilerPass.php b/vendor/drupal/console/src/Bootstrap/DrupalCompilerPass.php
deleted file mode 100644
index dcbfd6e72..000000000
--- a/vendor/drupal/console/src/Bootstrap/DrupalCompilerPass.php
+++ /dev/null
@@ -1,67 +0,0 @@
-configuration = $configuration;
- }
-
- /**
- * @inheritdoc
- */
- public function process(ContainerBuilder $container)
- {
- // The AddServicesCompilerPass cache pass is executed before the
- // ListCacheBinsPass causing exception: ParameterNotFoundException: You
- // have requested a non-existent parameter "cache_default_bin_backends"
- $cache_pass = new ListCacheBinsPass();
- $cache_pass->process($container);
-
- // Override TranslatorManager service definition
- $container
- ->getDefinition('console.translator_manager')
- ->setClass(TranslatorManager::class);
-
- $skipValidateSiteUuid = $this->configuration
- ->get('application.overrides.config.skip-validate-site-uuid');
-
- if ($skipValidateSiteUuid) {
- // override system.config_subscriber
- if ($container->has('system.config_subscriber')) {
- $container->getDefinition('system.config_subscriber')
- ->setClass(ConfigSubscriber::class);
- }
- }
-
- // Set console.invalid_commands service
- $container
- ->get('console.key_value_storage')
- ->set('invalid_commands', null);
-
- // Set console.cache_key service
- $container->set(
- 'console.cache_key',
- null
- );
- }
-}
diff --git a/vendor/drupal/console/src/Bootstrap/DrupalKernel.php b/vendor/drupal/console/src/Bootstrap/DrupalKernel.php
deleted file mode 100644
index 510d6b55f..000000000
--- a/vendor/drupal/console/src/Bootstrap/DrupalKernel.php
+++ /dev/null
@@ -1,15 +0,0 @@
-initializeSettings($request);
-
- return $kernel;
- }
-
- /**
- * @param \Drupal\Core\DependencyInjection\ServiceModifierInterface $serviceModifier
- */
- public function addServiceModifier(ServiceModifierInterface $serviceModifier)
- {
- $this->serviceModifiers[] = $serviceModifier;
- }
-
- /**
- * @inheritdoc
- */
- protected function getContainerBuilder()
- {
- $container = parent::getContainerBuilder();
- foreach ($this->serviceModifiers as $serviceModifier) {
- $serviceModifier->alter($container);
- }
-
- return $container;
- }
-
- /**
- * {@inheritdoc}
- */
- public function discoverServiceProviders()
- {
- // Discover Drupal service providers
- parent::discoverServiceProviders();
-
- // Discover Drupal Console service providers
- $this->discoverDrupalConsoleServiceProviders();
- }
-
- public function getContainerKey()
- {
- return hash("sha256", $this->getContainerCacheKey());
- }
-
- public function discoverDrupalConsoleServiceProviders()
- {
- $drupalFinder = new DrupalFinder();
- $drupalFinder->locateRoot(getcwd());
-
- // Load DrupalConsole services
- $this->addDrupalConsoleServices($drupalFinder->getComposerRoot());
-
- // Load DrupalConsole services
- $this->addDrupalConsoleConfigServices($drupalFinder->getComposerRoot());
-
- // Load DrupalConsole extended services
- $this->addDrupalConsoleExtendedServices($drupalFinder->getComposerRoot());
-
- // Add DrupalConsole module(s) services
- $this->addDrupalConsoleModuleServices($drupalFinder->getDrupalRoot());
-
- // Add DrupalConsole theme(s) services
- $this->addDrupalConsoleThemeServices($drupalFinder->getDrupalRoot());
- }
-
- protected function addDrupalConsoleServices($root)
- {
- $servicesFiles = array_filter(
- [
- $root. DRUPAL_CONSOLE_CORE . 'services.yml',
- $root. DRUPAL_CONSOLE . 'uninstall.services.yml',
- $root. DRUPAL_CONSOLE . 'services.yml'
- ],
- function ($file) {
- return file_exists($file);
- }
- );
-
- $this->addDrupalServiceFiles($servicesFiles);
- }
-
- protected function addDrupalConsoleConfigServices($root)
- {
- $finder = new Finder();
- $finder->files()
- ->name('*.yml')
- ->in(
- sprintf(
- '%s/config/services',
- $root.DRUPAL_CONSOLE
- )
- );
-
- $servicesFiles = [];
- foreach ($finder as $file) {
- $servicesFiles[] = $file->getPathname();
- }
-
- $this->addDrupalServiceFiles($servicesFiles);
- }
-
- protected function addDrupalConsoleExtendedServices($root)
- {
- $servicesFiles = array_filter(
- [
- $root . DRUPAL_CONSOLE . 'extend.console.services.yml',
- $root . DRUPAL_CONSOLE . 'extend.console.uninstall.services.yml',
- ],
- function ($file) {
- return file_exists($file);
- }
- );
-
- $this->addDrupalServiceFiles($servicesFiles);
- }
-
- protected function addDrupalConsoleModuleServices($root)
- {
- $servicesFiles = [];
- $moduleFileNames = $this->getModuleFileNames();
- foreach ($moduleFileNames as $module => $filename) {
- $servicesFile = $root . '/' .
- dirname($filename) .
- "/console.services.yml";
- if (file_exists($servicesFile)) {
- $servicesFiles[] = $servicesFile;
- }
- }
-
- $this->addDrupalServiceFiles($servicesFiles);
- }
-
- public function addDrupalServiceFiles($servicesFiles)
- {
- $this->serviceYamls['site'] = array_merge(
- $this->serviceYamls['site'],
- $servicesFiles
- );
- }
-
- protected function addDrupalConsoleThemeServices($root)
- {
- $themes = $this->getThemeFileNames();
- }
-
- private function getThemeFileNames()
- {
- $extensions = $this->getConfigStorage()->read('core.extension');
-
- return isset($extensions['theme']) ? $extensions['theme'] : [];
- }
-}
diff --git a/vendor/drupal/console/src/Bootstrap/DrupalServiceModifier.php b/vendor/drupal/console/src/Bootstrap/DrupalServiceModifier.php
deleted file mode 100644
index 37d46213e..000000000
--- a/vendor/drupal/console/src/Bootstrap/DrupalServiceModifier.php
+++ /dev/null
@@ -1,62 +0,0 @@
-root = $root;
- $this->commandTag = $serviceTag;
- $this->generatorTag = $generatorTag;
- $this->configuration = $configuration;
- }
-
- /**
- * @inheritdoc
- */
- public function alter(ContainerBuilder $container)
- {
- $container->addCompilerPass(
- new DrupalCompilerPass($this->configuration)
- );
- }
-}
diff --git a/vendor/drupal/console/src/Bootstrap/DrupalUpdateKernel.php b/vendor/drupal/console/src/Bootstrap/DrupalUpdateKernel.php
deleted file mode 100644
index 85e9feac4..000000000
--- a/vendor/drupal/console/src/Bootstrap/DrupalUpdateKernel.php
+++ /dev/null
@@ -1,15 +0,0 @@
-serviceTag = $serviceTag;
- }
-
- /**
- * @inheritdoc
- */
- public function process(ContainerBuilder $container)
- {
- $taggedServices = $container->findTaggedServiceIds(
- $this->serviceTag
- );
-
- foreach ($taggedServices as $id => $tags) {
- $container->getDefinition($id)
- ->addTag('persist');
- }
- }
-}
diff --git a/vendor/drupal/console/src/Bootstrap/FindGeneratorsCompilerPass.php b/vendor/drupal/console/src/Bootstrap/FindGeneratorsCompilerPass.php
deleted file mode 100644
index 601a9d952..000000000
--- a/vendor/drupal/console/src/Bootstrap/FindGeneratorsCompilerPass.php
+++ /dev/null
@@ -1,44 +0,0 @@
-serviceTag = $serviceTag;
- }
-
- /**
- * @inheritdoc
- */
- public function process(ContainerBuilder $container)
- {
- $taggedServices = $container->findTaggedServiceIds(
- $this->serviceTag
- );
-
- $generators = [];
- foreach ($taggedServices as $id => $tags) {
- $generators[] = $id;
- }
-
- $container->setParameter('drupal.generators', $generators);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Cache/RebuildCommand.php b/vendor/drupal/console/src/Command/Cache/RebuildCommand.php
deleted file mode 100644
index df3416af7..000000000
--- a/vendor/drupal/console/src/Command/Cache/RebuildCommand.php
+++ /dev/null
@@ -1,116 +0,0 @@
-drupalApi = $drupalApi;
- $this->site = $site;
- $this->classLoader = $classLoader;
- $this->requestStack = $requestStack;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('cache:rebuild')
- ->setDescription($this->trans('commands.cache.rebuild.description'))
- ->addArgument(
- 'cache',
- InputArgument::OPTIONAL,
- $this->trans('commands.cache.rebuild.options.cache'),
- 'all'
- )->setAliases(['cr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $cache = $input->getArgument('cache')?:'all';
- $this->site->loadLegacyFile('/core/includes/utility.inc');
-
- if ($cache && !$this->drupalApi->isValidCache($cache)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.cache.rebuild.messages.invalid-cache'),
- $cache
- )
- );
-
- return 1;
- }
-
- $this->getIo()->newLine();
- $this->getIo()->comment($this->trans('commands.cache.rebuild.messages.rebuild'));
-
- if ($cache === 'all') {
- $this->drupalApi->drupal_rebuild(
- $this->classLoader,
- $this->requestStack->getCurrentRequest()
- );
- } else {
- $caches = $this->drupalApi->getCaches();
- $caches[$cache]->deleteAll();
- }
-
- $this->getIo()->success($this->trans('commands.cache.rebuild.messages.completed'));
-
- return 0;
- }
-
-}
diff --git a/vendor/drupal/console/src/Command/Cache/TagInvalidateCommand.php b/vendor/drupal/console/src/Command/Cache/TagInvalidateCommand.php
deleted file mode 100644
index 12dd34001..000000000
--- a/vendor/drupal/console/src/Command/Cache/TagInvalidateCommand.php
+++ /dev/null
@@ -1,67 +0,0 @@
-invalidator = $invalidator;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('cache:tag:invalidate')
- ->setDescription($this->trans('commands.cache.tag.invalidate.description'))
- ->addArgument(
- 'tag',
- InputArgument::REQUIRED | InputArgument::IS_ARRAY,
- $this->trans('commands.cache.tag.invalidate.options.tag')
- )
- ->setAliases(['cti']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $tags = $input->getArgument('tag');
-
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.cache.tag.invalidate.messages.start'),
- implode(', ', $tags)
- )
- );
-
- $this->invalidator->invalidateTags($tags);
- $this->getIo()->success($this->trans('commands.cache.tag.invalidate.messages.completed'));
- }
-}
diff --git a/vendor/drupal/console/src/Command/ComposerizeCommand.php b/vendor/drupal/console/src/Command/ComposerizeCommand.php
deleted file mode 100644
index 417785e2f..000000000
--- a/vendor/drupal/console/src/Command/ComposerizeCommand.php
+++ /dev/null
@@ -1,374 +0,0 @@
-setName('composerize')
- ->setDescription(
- $this->trans('commands.composerize.description')
- )
- ->addOption(
- 'show-packages',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.composerize.options.show-packages')
- )
- ->addOption(
- 'include-version',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.composerize.options.include-version')
- )
- ->setHelp($this->trans('commands.composerize.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $includeVersion = $input->getOption('include-version');
- $showPackages = $input->getOption('show-packages')?:false;
-
- $this->drupalFinder = $this->get('console.drupal_finder');
-
- $this->extensionManager = $this->get('console.extension_manager');
- $this->extractCorePackages();
-
- $this->processProfiles();
- $this->processModules();
- $this->processThemes();
-
- $types = [
- 'profile',
- 'module',
- 'theme'
- ];
-
- $composerCommand = 'composer require ';
- foreach ($types as $type) {
- $packages = $this->packages[$type];
- if (!$packages) {
- continue;
- }
-
- if ($showPackages) {
- $this->getIo()->comment($this->trans('commands.composerize.messages.'.$type));
- $tableHeader = [
- $this->trans('commands.composerize.messages.name'),
- $this->trans('commands.composerize.messages.version'),
- $this->trans('commands.composerize.messages.dependencies')
- ];
- $this->getIo()->table($tableHeader, $packages);
- }
- foreach ($packages as $package) {
- $module = str_replace('drupal/', '', $package['name']);
- if (array_key_exists($module, $this->dependencies)) {
- continue;
- }
- $composerCommand .= $package['name'];
- if ($includeVersion) {
- $composerCommand .= ':' . $package['version'];
- }
- $composerCommand .= ' ';
- }
- }
- $this->getIo()->comment($this->trans('commands.composerize.messages.from'));
- $this->getIo()->simple($this->drupalFinder->getComposerRoot());
- $this->getIo()->newLine();
- $this->getIo()->comment($this->trans('commands.composerize.messages.execute'));
- $this->getIo()->simple($composerCommand);
- $this->getIo()->newLine();
- $this->getIo()->comment($this->trans('commands.composerize.messages.ignore'));
-
- $webRoot = str_replace(
- $this->drupalFinder->getComposerRoot() . '/',
- '',
- $this->drupalFinder->getDrupalRoot() . '/'
- );
-
- $this->getIo()->writeln(
- [
- ' vendor/',
- ' '.$webRoot.'modules/contrib',
- ' '.$webRoot.'themes/contrib',
- ' '.$webRoot.'profiles/contrib'
- ]
- );
- }
-
- private function extractCorePackages()
- {
- $this->corePackages['module'] = $this->extensionManager->discoverModules()
- ->showInstalled()
- ->showUninstalled()
- ->showCore()
- ->getList(true);
-
- $this->corePackages['theme'] = $this->extensionManager->discoverThemes()
- ->showInstalled()
- ->showUninstalled()
- ->showCore()
- ->getList(true);
-
- $this->corePackages['profile'] = $this->extensionManager->discoverProfiles()
- ->showInstalled()
- ->showUninstalled()
- ->showCore()
- ->getList(true);
- }
-
- private function processProfiles()
- {
- $type = 'profile';
- $profiles = $this->extensionManager->discoverProfiles()
- ->showNoCore()
- ->showInstalled()
- ->getList();
-
- /**
- * @var \Drupal\Core\Extension\Extension[] $module
- */
- foreach ($profiles as $profile) {
- if (!$this->isValidModule($profile)) {
- continue;
- }
-
- $dependencies = $this->extractDependencies(
- $profile,
- []
- );
-
- $this->packages[$type][] = [
- 'name' => sprintf('drupal/%s', $profile->getName()),
- 'version' => $this->calculateVersion($profile->info['version']),
- 'dependencies' => implode(PHP_EOL, array_values($dependencies))
- ];
-
- $this->dependencies = array_merge(
- $this->dependencies,
- $dependencies?$dependencies:[]
- );
- }
- }
-
- private function processModules()
- {
- $type = 'module';
- $modules = $this->extensionManager->discoverModules()
- ->showInstalled()
- ->showNoCore()
- ->getList();
-
- /**
- * @var \Drupal\Core\Extension\Extension[] $module
- */
- foreach ($modules as $module) {
- if (!$this->isValidModule($module)) {
- continue;
- }
-
- $dependencies = $this->extractDependencies(
- $module,
- array_keys($modules)
- );
- $this->packages[$type][] = [
- 'name' => sprintf('drupal/%s', $module->getName()),
- 'version' => $this->calculateVersion($module->info['version']),
- 'dependencies' => implode(PHP_EOL, array_values($dependencies))
- ];
-
- $this->dependencies = array_merge(
- $this->dependencies,
- $dependencies?$dependencies:[]
- );
- }
- }
-
- private function processThemes()
- {
- $type = 'theme';
- $themes = $this->extensionManager->discoverThemes()
- ->showInstalled()
- ->showNoCore()
- ->getList();
- /**
- * @var \Drupal\Core\Extension\Extension[] $module
- */
- foreach ($themes as $theme) {
- if (!$this->isValidTheme($theme)) {
- continue;
- }
- $this->packages[$type][] = [
- 'name' => sprintf('drupal/%s', $theme->getName()),
- 'version' => $this->calculateVersion($theme->info['version']),
- 'dependencies' => ''
- ];
- }
- }
-
- /**
- * @param $module
- * @return bool
- */
- private function isValidModule($module)
- {
- if (strpos($module->getPath(), 'modules/custom') === 0) {
- return false;
- }
-
- if (!array_key_exists('project', $module->info)) {
- return true;
- }
-
- if (!array_key_exists('project', $module->info)) {
- return true;
- }
-
- return $module->info['project'] === $module->getName();
- }
-
- /**
- * @param $module
- * @return bool
- */
- private function isValidTheme($module)
- {
- if (strpos($module->getPath(), 'themes/custom') === 0) {
- return false;
- }
-
- return true;
- }
-
- private function isValidDependency($moduleDependency, $extension, $extensions)
- {
- if (in_array($moduleDependency, $this->corePackages['module'])) {
- return false;
- }
-
- if ($extensions && !in_array($moduleDependency, $extensions)) {
- return false;
- }
-
- if ($moduleDependency !== $extension->getName()) {
- return true;
- }
- }
-
- /**
- * @param $extension
- * @param $extensions
- * @return array
- */
- private function extractDependencies($extension, $extensions)
- {
- if (!array_key_exists('dependencies', $extension->info)) {
- return [];
- }
-
- $dependencies = [];
-
- // Dependencies defined at info.yml
- foreach ($extension->info['dependencies'] as $dependency) {
- $dependencyExploded = explode(':', $dependency);
- $moduleDependency = count($dependencyExploded)>1?$dependencyExploded[1]:$dependencyExploded[0];
-
- if ($space = strpos($moduleDependency, ' ')) {
- $moduleDependency = substr($moduleDependency, 0, $space);
- }
-
- if ($this->isValidDependency($moduleDependency, $extension, $extensions)) {
- $dependencies[$moduleDependency] = 'drupal/'.$moduleDependency;
- }
- }
-
- // Dependencies defined at composer.json
- $composer = $this->readComposerFile($extension->getPath() . '/composer.json');
- if (array_key_exists('require', $composer)) {
- foreach (array_keys($composer['require']) as $package) {
- if (strpos($package, 'drupal/') !== 0) {
- continue;
- }
- $moduleDependency = str_replace('drupal/', '', $package);
- if ($this->isValidDependency($moduleDependency, $extension, $extensions)) {
- $dependencies[$moduleDependency] = $package;
- }
- }
- }
-
- return $dependencies;
- }
-
- protected function readComposerFile($file)
- {
- if (!file_exists($file)) {
- return [];
- }
-
- return Json::decode(file_get_contents($file));
- }
-
- /**
- * @param $version
- * @return mixed
- */
- private function calculateVersion($version)
- {
- $replaceKeys = [
- '8.x-' => '',
- '8.' => ''
- ];
- return str_replace(
- array_keys($replaceKeys),
- array_values($replaceKeys),
- $version
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/DeleteCommand.php b/vendor/drupal/console/src/Command/Config/DeleteCommand.php
deleted file mode 100644
index 7c1922b1c..000000000
--- a/vendor/drupal/console/src/Command/Config/DeleteCommand.php
+++ /dev/null
@@ -1,210 +0,0 @@
-configFactory = $configFactory;
- $this->configStorage = $configStorage;
- $this->configStorageSync = $configStorageSync;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:delete')
- ->setDescription($this->trans('commands.config.delete.description'))
- ->addArgument(
- 'type',
- InputArgument::OPTIONAL,
- $this->trans('commands.config.delete.arguments.type')
- )
- ->addArgument(
- 'name',
- InputArgument::OPTIONAL,
- $this->trans('commands.config.delete.arguments.name')
- )->setAliases(['cd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $type = $input->getArgument('type');
- if (!$type) {
- $type = $this->getIo()->choiceNoList(
- $this->trans('commands.config.delete.arguments.type'),
- ['active', 'staging'],
- 'active'
- );
- $input->setArgument('type', $type);
- }
-
- $name = $input->getArgument('name');
- if (!$name) {
- $name = $this->getIo()->choiceNoList(
- $this->trans('commands.config.delete.arguments.name'),
- $this->getAllConfigNames(),
- 'all'
- );
- $input->setArgument('name', $name);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $type = $input->getArgument('type');
- if (!$type) {
- $this->getIo()->error($this->trans('commands.config.delete.errors.type'));
- return 1;
- }
-
- $name = $input->getArgument('name');
- if (!$name) {
- $this->getIo()->error($this->trans('commands.config.delete.errors.name'));
- return 1;
- }
-
- $configStorage = ('active' === $type) ? $this->configStorage : $this->configStorageSync;
-
- if (!$configStorage) {
- $this->getIo()->error($this->trans('commands.config.delete.errors.config-storage'));
- return 1;
- }
-
- if ('all' === $name) {
- $this->getIo()->commentBlock($this->trans('commands.config.delete.warnings.undo'));
- if ($this->getIo()->confirm($this->trans('commands.config.delete.questions.sure'))) {
- if ($configStorage instanceof FileStorage) {
- $configStorage->deleteAll();
- } else {
- foreach ($this->yieldAllConfig() as $name) {
- $this->removeConfig($name);
- }
- }
-
- $this->getIo()->success($this->trans('commands.config.delete.messages.all'));
-
- return 0;
- }
- }
-
- if ($configStorage->exists($name)) {
- if ($configStorage instanceof FileStorage) {
- $configStorage->delete($name);
- } else {
- $this->removeConfig($name);
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.config.delete.messages.deleted'),
- $name
- )
- );
- return 0;
- }
-
- $message = sprintf($this->trans('commands.config.delete.errors.not-exists'), $name);
- $this->getIo()->error($message);
-
- return 1;
- }
-
- /**
- * Retrieve configuration names form cache or service factory.
- *
- * @return array
- * All configuration names.
- */
- private function getAllConfigNames()
- {
- if ($this->allConfig) {
- return $this->allConfig;
- }
-
- foreach ($this->configFactory->listAll() as $name) {
- $this->allConfig[] = $name;
- }
-
- return $this->allConfig;
- }
-
- /**
- * Yield configuration names.
- *
- * @return \Generator
- * Yield generator with config name.
- */
- private function yieldAllConfig()
- {
- $this->allConfig = $this->allConfig ?: $this->getAllConfigNames();
- foreach ($this->allConfig as $name) {
- yield $name;
- }
- }
-
- /**
- * Delete given config name.
- *
- * @param String $name Given config name.
- */
- private function removeConfig($name)
- {
- try {
- $this->configFactory->getEditable($name)->delete();
- } catch (\Exception $e) {
- throw new RuntimeException($e->getMessage());
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/DiffCommand.php b/vendor/drupal/console/src/Command/Config/DiffCommand.php
deleted file mode 100644
index c32881a3b..000000000
--- a/vendor/drupal/console/src/Command/Config/DiffCommand.php
+++ /dev/null
@@ -1,156 +0,0 @@
-configStorage = $configStorage;
- $this->configManager = $configManager;
- parent::__construct();
- }
-
- /**
- * A static array map of operations -> color strings.
- *
- * @see http://symfony.com/doc/current/components/console/introduction.html#coloring-the-output
- *
- * @var array
- */
- protected static $operationColours = [
- 'delete' => '%s ',
- 'update' => '%s ',
- 'create' => '%s ',
- 'default' => '%s',
- ];
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:diff')
- ->setDescription($this->trans('commands.config.diff.description'))
- ->addArgument(
- 'directory',
- InputArgument::OPTIONAL,
- $this->trans('commands.config.diff.arguments.directory')
- )
- ->addOption(
- 'reverse',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.diff.options.reverse')
- )->setAliases(['cdi']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- global $config_directories;
-
- $directory = $input->getArgument('directory');
- if (!$directory) {
- $directory = $this->getIo()->choice(
- $this->trans('commands.config.diff.questions.directories'),
- $config_directories,
- CONFIG_SYNC_DIRECTORY
- );
-
- $input->setArgument('directory', $config_directories[$directory]);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- global $config_directories;
- $directory = $input->getArgument('directory') ?: CONFIG_SYNC_DIRECTORY;
- if (array_key_exists($directory, $config_directories)) {
- $directory = $config_directories[$directory];
- }
- $source_storage = new FileStorage($directory);
-
- if ($input->getOption('reverse')) {
- $config_comparer = new StorageComparer($source_storage, $this->configStorage, $this->configManager);
- } else {
- $config_comparer = new StorageComparer($this->configStorage, $source_storage, $this->configManager);
- }
- if (!$config_comparer->createChangelist()->hasChanges()) {
- $output->writeln($this->trans('commands.config.diff.messages.no-changes'));
- }
-
- $change_list = [];
- foreach ($config_comparer->getAllCollectionNames() as $collection) {
- $change_list[$collection] = $config_comparer->getChangelist(null, $collection);
- }
-
- $this->outputDiffTable($change_list);
- }
-
- /**
- * Ouputs a table of configuration changes.
- *
- * @param array $change_list
- * The list of changes from the StorageComparer.
- */
- protected function outputDiffTable(array $change_list)
- {
- $header = [
- $this->trans('commands.config.diff.table.headers.collection'),
- $this->trans('commands.config.diff.table.headers.config-name'),
- $this->trans('commands.config.diff.table.headers.operation'),
- ];
- $rows = [];
- foreach ($change_list as $collection => $changes) {
- foreach ($changes as $operation => $configs) {
- foreach ($configs as $config) {
- $rows[] = [
- $collection,
- $config,
- sprintf(self::$operationColours[$operation], $operation),
- ];
- }
- }
- }
- $this->getIo()->table($header, $rows);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/EditCommand.php b/vendor/drupal/console/src/Command/Config/EditCommand.php
deleted file mode 100644
index 564648cd6..000000000
--- a/vendor/drupal/console/src/Command/Config/EditCommand.php
+++ /dev/null
@@ -1,179 +0,0 @@
-configFactory = $configFactory;
- $this->configStorage = $configStorage;
- $this->configurationManager = $configurationManager;
- parent::__construct();
- }
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:edit')
- ->setDescription($this->trans('commands.config.edit.description'))
- ->addArgument(
- 'config-name',
- InputArgument::REQUIRED,
- $this->trans('commands.config.edit.arguments.config-name')
- )
- ->addArgument(
- 'editor',
- InputArgument::OPTIONAL,
- $this->trans('commands.config.edit.arguments.editor')
- )
- ->setAliases(['ced']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $configName = $input->getArgument('config-name');
- $editor = $input->getArgument('editor');
- $config = $this->configFactory->getEditable($configName);
- $configSystem = $this->configFactory->get('system.file');
- $temporaryDirectory = $configSystem->get('path.temporary') ?: '/tmp';
- $configFile = $temporaryDirectory.'/config-edit/'.$configName.'.yml';
- $ymlFile = new Parser();
- $fileSystem = new Filesystem();
-
- if (!$configName) {
- $this->getIo()->error($this->trans('commands.config.edit.messages.no-config'));
-
- return 1;
- }
-
- try {
- $fileSystem->mkdir($temporaryDirectory);
- $fileSystem->dumpFile($configFile, $this->getYamlConfig($configName));
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error($this->trans('commands.config.edit.messages.no-directory').' '.$e->getPath());
-
- return 1;
- }
- if (!$editor) {
- $editor = $this->getEditor();
- }
- $processBuilder = new ProcessBuilder([$editor, $configFile]);
- $process = $processBuilder->getProcess();
- $process->setTty('true');
- $process->run();
-
- if ($process->isSuccessful()) {
- $value = $ymlFile->parse(file_get_contents($configFile));
- $config->setData($value);
- $config->save();
- $fileSystem->remove($configFile);
- }
-
- if (!$process->isSuccessful()) {
- $this->getIo()->error($process->getErrorOutput());
- return 1;
- }
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $configName = $input->getArgument('config-name');
- if (!$configName) {
- $configNames = $this->configFactory->listAll();
- $configName = $this->getIo()->choice(
- $this->trans('commands.config.edit.messages.choose-configuration'),
- $configNames
- );
-
- $input->setArgument('config-name', $configName);
- }
- }
-
- /**
- * @param $config_name String
- *
- * @return array
- */
- protected function getYamlConfig($config_name)
- {
- if ($this->configStorage->exists($config_name)) {
- $configuration = $this->configStorage->read($config_name);
- $configurationEncoded = Yaml::encode($configuration);
- }
-
- return $configurationEncoded;
- }
-
- /**
- * @return string
- */
- protected function getEditor()
- {
- $config = $this->configurationManager->getConfiguration();
- $editor = $config->get('application.editor', '');
-
- if ($editor != '') {
- return trim($editor);
- }
-
- $processBuilder = new ProcessBuilder(['bash']);
- $process = $processBuilder->getProcess();
- $process->setCommandLine('echo ${EDITOR:-${VISUAL:-vi}}');
- $process->run();
- $editor = $process->getOutput();
- $process->stop();
-
- return trim($editor);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ExportCommand.php b/vendor/drupal/console/src/Command/Config/ExportCommand.php
deleted file mode 100644
index b9fc3213e..000000000
--- a/vendor/drupal/console/src/Command/Config/ExportCommand.php
+++ /dev/null
@@ -1,180 +0,0 @@
-configManager = $configManager;
- $this->storage = $storage;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:export')
- ->setDescription($this->trans('commands.config.export.description'))
- ->addOption(
- 'directory',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.export.options.directory')
- )
- ->addOption(
- 'tar',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.options.tar')
- )->addOption(
- 'remove-uuid',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.options.remove-uuid')
- )->addOption(
- 'remove-config-hash',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.options.remove-config-hash')
- )
- ->setAliases(['ce']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $directory = $input->getOption('directory');
- $tar = $input->getOption('tar');
- $removeUuid = $input->getOption('remove-uuid');
- $removeHash = $input->getOption('remove-config-hash');
-
- if (!$directory) {
- $directory = config_get_config_directory(CONFIG_SYNC_DIRECTORY);
- }
-
- $fileSystem = new Filesystem();
- try {
- $fileSystem->mkdir($directory);
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.config.export.messages.error'),
- $e->getPath()
- )
- );
- }
-
- // Remove previous yaml files before creating new ones
- array_map('unlink', glob($directory . '/*'));
-
- if ($tar) {
- $dateTime = new \DateTime();
-
- $archiveFile = sprintf(
- '%s/config-%s.tar.gz',
- $directory,
- $dateTime->format('Y-m-d-H-i-s')
- );
- $archiveTar = new ArchiveTar($archiveFile, 'gz');
- }
-
- try {
- // Get raw configuration data without overrides.
- foreach ($this->configManager->getConfigFactory()->listAll() as $name) {
- $configName = "$name.yml";
- $configData = $this->configManager->getConfigFactory()->get($name)->getRawData();
- if ($removeUuid) {
- unset($configData['uuid']);
- }
- if ($removeHash) {
- unset($configData['_core']['default_config_hash']);
- if (empty($configData['_core'])) {
- unset($configData['_core']);
- }
- }
- $ymlData = Yaml::encode($configData);
-
- if ($tar) {
- $archiveTar->addString($configName, $ymlData);
- } else {
- file_put_contents("$directory/$configName", $ymlData);
- }
- }
- // Get all override data from the remaining collections.
- foreach ($this->storage->getAllCollectionNames() as $collection) {
- $collection_storage = $this->storage->createCollection($collection);
- $collection_path = str_replace('.', '/', $collection);
- if (!$tar) {
- mkdir("$directory/$collection_path", 0755, true);
- }
- foreach ($collection_storage->listAll() as $name) {
- $configName = "$collection_path/$name.yml";
- $configData = $collection_storage->read($name);
- if ($removeUuid) {
- unset($configData['uuid']);
- }
- if ($removeHash) {
- unset($configData['_core']['default_config_hash']);
- if (empty($configData['_core'])) {
- unset($configData['_core']);
- }
- }
-
- $ymlData = Yaml::encode($configData);
- if ($tar) {
- $archiveTar->addString($configName, $ymlData);
- } else {
- file_put_contents("$directory/$configName", $ymlData);
- }
- }
- }
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
- }
-
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.config.export.messages.directory'),
- $directory
- )
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ExportContentTypeCommand.php b/vendor/drupal/console/src/Command/Config/ExportContentTypeCommand.php
deleted file mode 100644
index 93b52c230..000000000
--- a/vendor/drupal/console/src/Command/Config/ExportContentTypeCommand.php
+++ /dev/null
@@ -1,241 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->configStorage = $configStorage;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:export:content:type')
- ->setDescription($this->trans('commands.config.export.content.type.description'))
- ->addOption('module', null, InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'))
- ->addArgument(
- 'content-type',
- InputArgument::REQUIRED,
- $this->trans('commands.config.export.content.type.arguments.content-type')
- )->addOption(
- 'optional-config',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.export.content.type.options.optional-config')
- )->addOption(
- 'remove-uuid',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.content.type.options.remove-uuid')
- )->addOption(
- 'remove-config-hash',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.content.type.options.remove-config-hash')
- )
- ->setAliases(['cect']);
-
- $this->configExport = [];
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --content-type argument
- $contentType = $input->getArgument('content-type');
- if (!$contentType) {
- $bundles_entities = $this->entityTypeManager->getStorage('node_type')->loadMultiple();
- $bundles = [];
- foreach ($bundles_entities as $entity) {
- $bundles[$entity->id()] = $entity->label();
- }
-
- $contentType = $this->getIo()->choice(
- $this->trans('commands.config.export.content.type.questions.content-type'),
- $bundles
- );
- }
- $input->setArgument('content-type', $contentType);
-
- $optionalConfig = $input->getOption('optional-config');
- if (!$optionalConfig) {
- $optionalConfig = $this->getIo()->confirm(
- $this->trans('commands.config.export.content.type.questions.optional-config'),
- true
- );
- }
- $input->setOption('optional-config', $optionalConfig);
-
-
- if (!$input->getOption('remove-uuid')) {
- $removeUuid = $this->getIo()->confirm(
- $this->trans('commands.config.export.content.type.questions.remove-uuid'),
- true
- );
- $input->setOption('remove-uuid', $removeUuid);
- }
- if (!$input->getOption('remove-config-hash')) {
- $removeHash = $this->getIo()->confirm(
- $this->trans('commands.config.export.content.type.questions.remove-config-hash'),
- true
- );
- $input->setOption('remove-config-hash', $removeHash);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $contentType = $input->getArgument('content-type');
- $optionalConfig = $input->getOption('optional-config');
- $removeUuid = $input->getOption('remove-uuid');
- $removeHash = $input->getOption('remove-config-hash');
-
- $contentTypeDefinition = $this->entityTypeManager->getDefinition('node_type');
- $contentTypeName = $contentTypeDefinition->getConfigPrefix() . '.' . $contentType;
-
- $contentTypeNameConfig = $this->getConfiguration($contentTypeName, $removeUuid, $removeHash);
-
- if (empty($contentTypeNameConfig)) {
- throw new InvalidOptionException(sprintf('The content type %s does not exist.', $contentType));
- }
-
- $this->configExport[$contentTypeName] = ['data' => $contentTypeNameConfig, 'optional' => $optionalConfig];
-
- $this->getFields($contentType, $optionalConfig, $removeUuid, $removeHash);
-
- $this->getFormDisplays($contentType, $optionalConfig, $removeUuid, $removeHash);
-
- $this->getViewDisplays($contentType, $optionalConfig, $removeUuid, $removeHash);
-
- $this->exportConfigToModule($module, $this->trans('commands.config.export.content.type.messages.content-type-exported'));
- }
-
- protected function getFields($contentType, $optional = false, $removeUuid = false, $removeHash = false)
- {
- $fields_definition = $this->entityTypeManager->getDefinition('field_config');
-
- $fields_storage = $this->entityTypeManager->getStorage('field_config');
- foreach ($fields_storage->loadMultiple() as $field) {
- $field_name = $fields_definition->getConfigPrefix() . '.' . $field->id();
- $field_name_config = $this->getConfiguration($field_name, $removeUuid, $removeHash);
-
- // Only select fields related with content type
- if ($field_name_config['bundle'] == $contentType) {
- $this->configExport[$field_name] = ['data' => $field_name_config, 'optional' => $optional];
- // Include dependencies in export files
- if ($dependencies = $this->fetchDependencies($field_name_config, 'config')) {
- $this->resolveDependencies($dependencies, $optional);
- }
- }
- }
- }
-
- protected function getFormDisplays($contentType, $optional = false, $removeUuid = false, $removeHash = false)
- {
- $form_display_definition = $this->entityTypeManager->getDefinition('entity_form_display');
- $form_display_storage = $this->entityTypeManager->getStorage('entity_form_display');
- foreach ($form_display_storage->loadMultiple() as $form_display) {
- $form_display_name = $form_display_definition->getConfigPrefix() . '.' . $form_display->id();
- $form_display_name_config = $this->getConfiguration($form_display_name, $removeUuid, $removeHash);
- // Only select fields related with content type
- if ($form_display_name_config['bundle'] == $contentType) {
- $this->configExport[$form_display_name] = ['data' => $form_display_name_config, 'optional' => $optional];
- // Include dependencies in export files
- if ($dependencies = $this->fetchDependencies($form_display_name_config, 'config')) {
- $this->resolveDependencies($dependencies, $optional);
- }
- }
- }
- }
-
- protected function getViewDisplays($contentType, $optional = false, $removeUuid = false, $removeHash = false)
- {
- $view_display_definition = $this->entityTypeManager->getDefinition('entity_view_display');
- $view_display_storage = $this->entityTypeManager->getStorage('entity_view_display');
- foreach ($view_display_storage->loadMultiple() as $view_display) {
- $view_display_name = $view_display_definition->getConfigPrefix() . '.' . $view_display->id();
- $view_display_name_config = $this->getConfiguration($view_display_name, $removeUuid, $removeHash);
- // Only select fields related with content type
- if ($view_display_name_config['bundle'] == $contentType) {
- $this->configExport[$view_display_name] = ['data' => $view_display_name_config, 'optional' => $optional];
- // Include dependencies in export files
- if ($dependencies = $this->fetchDependencies($view_display_name_config, 'config')) {
- $this->resolveDependencies($dependencies, $optional);
- }
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ExportSingleCommand.php b/vendor/drupal/console/src/Command/Config/ExportSingleCommand.php
deleted file mode 100644
index 717988884..000000000
--- a/vendor/drupal/console/src/Command/Config/ExportSingleCommand.php
+++ /dev/null
@@ -1,346 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->configStorage = $configStorage;
- $this->extensionManager = $extensionManager;
- $this->languageManager = $languageManager;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:export:single')
- ->setDescription($this->trans('commands.config.export.single.description'))
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.config.export.single.options.name')
- )->addOption(
- 'directory',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.export.arguments.directory')
- )->addOption(
- 'module',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.common.options.module')
- )->addOption(
- 'include-dependencies',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.single.options.include-dependencies')
- )->addOption(
- 'optional',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.single.options.optional')
- )->addOption(
- 'remove-uuid',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.single.options.remove-uuid')
- )->addOption(
- 'remove-config-hash',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.export.single.options.remove-config-hash')
- )
- ->setAliases(['ces']);
- }
-
- /*
- * Return config types
- */
- protected function getConfigTypes()
- {
- foreach ($this->entityTypeManager->getDefinitions() as $entity_type => $definition) {
- if ($definition->isSubclassOf('Drupal\Core\Config\Entity\ConfigEntityInterface')) {
- $this->definitions[$entity_type] = $definition;
- }
- }
- $entity_types = array_map(
- function ($definition) {
- return $definition->getLabel();
- }, $this->definitions
- );
-
- uasort($entity_types, 'strnatcasecmp');
- $config_types = [
- 'system.simple' => $this->trans('commands.config.export.single.options.simple-configuration'),
- ] + $entity_types;
-
- return $config_types;
- }
-
- /*
- * Return config types
- */
- protected function getConfigNames($config_type)
- {
- $names = [];
- // For a given entity type, load all entities.
- if ($config_type && $config_type !== 'system.simple') {
- $entity_storage = $this->entityTypeManager->getStorage($config_type);
- foreach ($entity_storage->loadMultiple() as $entity) {
- $entity_id = $entity->id();
- $label = $entity->label() ?: $entity_id;
- $names[$entity_id] = $label;
- }
- }
- // Handle simple configuration.
- else {
- // Gather the config entity prefixes.
- $config_prefixes = array_map(
- function ($definition) {
- return $definition->getConfigPrefix() . '.';
- }, $this->definitions
- );
-
- // Find all config, and then filter our anything matching a config prefix.
- $names = $this->configStorage->listAll();
- $names = array_combine($names, $names);
- foreach ($names as $config_name) {
- foreach ($config_prefixes as $config_prefix) {
- if (strpos($config_name, $config_prefix) === 0) {
- unset($names[$config_name]);
- }
- }
- }
- }
-
- return $names;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $config_types = $this->getConfigTypes();
-
- $name = $input->getOption('name');
- if (!$name) {
- $type = $this->getIo()->choiceNoList(
- $this->trans('commands.config.export.single.questions.config-type'),
- array_keys($config_types),
- 'system.simple'
- );
- $names = $this->getConfigNames($type);
-
- $name = $this->getIo()->choiceNoList(
- $this->trans('commands.config.export.single.questions.name'),
- array_keys($names)
- );
-
- if ($type !== 'system.simple') {
- $definition = $this->entityTypeManager->getDefinition($type);
- $name = $definition->getConfigPrefix() . '.' . $name;
- }
-
- $input->setOption('name', [$name]);
- }
-
- // --module option
- $module = $this->getModuleOption();
- if ($module) {
- $optionalConfig = $input->getOption('optional');
- if (!$optionalConfig) {
- $optionalConfig = $this->getIo()->confirm(
- $this->trans('commands.config.export.single.questions.optional'),
- true
- );
- $input->setOption('optional', $optionalConfig);
- }
- }
-
- if (!$input->getOption('remove-uuid')) {
- $removeUuid = $this->getIo()->confirm(
- $this->trans('commands.config.export.single.questions.remove-uuid'),
- true
- );
- $input->setOption('remove-uuid', $removeUuid);
- }
- if (!$input->getOption('remove-config-hash')) {
- $removeHash = $this->getIo()->confirm(
- $this->trans('commands.config.export.single.questions.remove-config-hash'),
- true
- );
- $input->setOption('remove-config-hash', $removeHash);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $directory = $input->getOption('directory');
- $module = $input->getOption('module');
- $name = $input->getOption('name');
- $optional = $input->getOption('optional');
- $removeUuid = $input->getOption('remove-uuid');
- $removeHash = $input->getOption('remove-config-hash');
- $includeDependencies = $input->getOption('include-dependencies');
-
- foreach ($this->getLanguage() as $value) {
- foreach ($name as $nameItem) {
- $config = $this->getConfiguration(
- $nameItem,
- $removeUuid,
- $removeHash,
- $value
- );
-
- if ($config) {
- $this->configExport[$nameItem] = [
- 'data' => $config,
- 'optional' => $optional
- ];
-
- if ($includeDependencies) {
- // Include config dependencies in export files
- if ($dependencies = $this->fetchDependencies($config, 'config')) {
- $this->resolveDependencies($dependencies, $optional);
- }
- }
- } else {
- $this->getIo()->error($this->trans('commands.config.export.single.messages.config-not-found'));
- }
- }
-
- if ($module) {
- $this->exportConfigToModule(
- $module,
- $this->trans(
- 'commands.config.export.single.messages.config-exported'
- )
- );
-
- return 0;
- }
-
- if (!is_dir($directory)) {
- $directory = $directory_copy = config_get_config_directory(CONFIG_SYNC_DIRECTORY);
- if ($value) {
- $directory = $directory_copy .'/' . str_replace('.', '/', $value);
- }
- } else {
- $directory = $directory_copy .'/' . str_replace('.', '/', $value);
- $directory = Path::canonicalize($directory);
- if (!file_exists($directory)) {
- mkdir($directory, 0755, true);
- }
- }
-
- $this->exportConfig(
- $directory,
- $this->trans('commands.config.export.single.messages.config-exported')
- );
- }
-
- return 0;
- }
-
- /**
- * Get the languague enable.
- */
- protected function getLanguage()
- {
- $output = [];
- // Get the language that be for default.
- $default_id = $this->languageManager->getDefaultLanguage()->getId();
- foreach ($this->languageManager->getLanguages() as $key => $value) {
- if ($default_id == $key) {
- $output[] = '';
- } else {
- $output[] = 'language.' . $value->getId();
- }
- }
- return $output;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ExportViewCommand.php b/vendor/drupal/console/src/Command/Config/ExportViewCommand.php
deleted file mode 100644
index dacc2bbbc..000000000
--- a/vendor/drupal/console/src/Command/Config/ExportViewCommand.php
+++ /dev/null
@@ -1,173 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->configStorage = $configStorage;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- parent::__construct();
- }
-
-
- protected function configure()
- {
- $this
- ->setName('config:export:view')
- ->setDescription($this->trans('commands.config.export.view.description'))
- ->addOption(
- 'module', null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addArgument(
- 'view-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.config.export.view.arguments.view-id')
- )
- ->addOption(
- 'optional-config',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.export.view.options.optional-config')
- )
- ->addOption(
- 'include-module-dependencies',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.export.view.options.include-module-dependencies')
- )
- ->setAliases(['cev']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // view-id argument
- $viewId = $input->getArgument('view-id');
- if (!$viewId) {
- $views = $this->entityTypeManager->getStorage('view')->loadMultiple();
-
- $viewList = [];
- foreach ($views as $view) {
- $viewList[$view->get('id')] = $view->get('label');
- }
-
- $viewId = $this->getIo()->choiceNoList(
- $this->trans('commands.config.export.view.questions.view'),
- $viewList
- );
- $input->setArgument('view-id', $viewId);
- }
-
- $optionalConfig = $input->getOption('optional-config');
- if (!$optionalConfig) {
- $optionalConfig = $this->getIo()->confirm(
- $this->trans('commands.config.export.view.questions.optional-config'),
- true
- );
- $input->setOption('optional-config', $optionalConfig);
- }
-
- $includeModuleDependencies = $input->getOption('include-module-dependencies');
- if (!$includeModuleDependencies) {
- $includeModuleDependencies = $this->getIo()->confirm(
- $this->trans('commands.config.export.view.questions.include-module-dependencies'),
- true
- );
- $input->setOption('include-module-dependencies', $includeModuleDependencies);
- }
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $viewId = $input->getArgument('view-id');
- $optionalConfig = $input->getOption('optional-config');
- $includeModuleDependencies = $input->getOption('include-module-dependencies');
-
- $viewTypeDefinition = $this->entityTypeManager->getDefinition('view');
- $viewTypeName = $viewTypeDefinition->getConfigPrefix() . '.' . $viewId;
-
- $viewNameConfig = $this->getConfiguration($viewTypeName);
-
- $this->configExport[$viewTypeName] = ['data' => $viewNameConfig, 'optional' => $optionalConfig];
-
- // Include config dependencies in export files
- if ($dependencies = $this->fetchDependencies($viewNameConfig, 'config')) {
- $this->resolveDependencies($dependencies, $optionalConfig);
- }
-
- // Include module dependencies in export files if export is not optional
- if ($includeModuleDependencies) {
- if ($dependencies = $this->fetchDependencies($viewNameConfig, 'module')) {
- $this->exportModuleDependencies($module, $dependencies);
- }
- }
-
- $this->exportConfigToModule($module, $this->trans('commands.views.export.messages.view-exported'));
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ImportCommand.php b/vendor/drupal/console/src/Command/Config/ImportCommand.php
deleted file mode 100644
index 1d0963402..000000000
--- a/vendor/drupal/console/src/Command/Config/ImportCommand.php
+++ /dev/null
@@ -1,161 +0,0 @@
-configStorage = $configStorage;
- $this->configManager = $configManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:import')
- ->setDescription($this->trans('commands.config.import.description'))
- ->addOption(
- 'file',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.import.options.file')
- )
- ->addOption(
- 'directory',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.import.options.directory')
- )
- ->addOption(
- 'remove-files',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.import.options.remove-files')
- )
- ->addOption(
- 'skip-uuid',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.config.import.options.skip-uuid')
- )
- ->setAliases(['ci']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $directory = $input->getOption('directory');
- $skipUuid = $input->getOption('skip-uuid');
-
- if ($directory) {
- $configSyncDir = $directory;
- } else {
- $configSyncDir = config_get_config_directory(
- CONFIG_SYNC_DIRECTORY
- );
- }
-
- $source_storage = new FileStorage($configSyncDir);
-
- $storageComparer = '\Drupal\Core\Config\StorageComparer';
- if ($skipUuid) {
- $storageComparer = '\Drupal\Console\Override\StorageComparer';
- }
-
- $storage_comparer = new $storageComparer(
- $source_storage,
- $this->configStorage,
- $this->configManager
- );
-
- if (!$storage_comparer->createChangelist()->hasChanges()) {
- $this->getIo()->success($this->trans('commands.config.import.messages.nothing-to-do'));
- }
-
- if ($this->configImport($storage_comparer)) {
- $this->getIo()->success($this->trans('commands.config.import.messages.imported'));
- } else {
- return 1;
- }
- }
-
-
- private function configImport(StorageComparerInterface $storage_comparer)
- {
- $config_importer = new ConfigImporter(
- $storage_comparer,
- \Drupal::service('event_dispatcher'),
- \Drupal::service('config.manager'),
- \Drupal::lock(),
- \Drupal::service('config.typed'),
- \Drupal::moduleHandler(),
- \Drupal::service('module_installer'),
- \Drupal::service('theme_handler'),
- \Drupal::service('string_translation')
- );
-
- if ($config_importer->alreadyImporting()) {
- $this->getIo()->success($this->trans('commands.config.import.messages.already-imported'));
- } else {
- try {
- $this->getIo()->info($this->trans('commands.config.import.messages.importing'));
- $config_importer->import();
- return true;
- } catch (ConfigImporterException $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.site.import.local.messages.error-writing'),
- implode("\n", $config_importer->getErrors())
- )
- );
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.site.import.local.messages.error-writing'),
- $e->getMessage()
- )
- );
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php b/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php
deleted file mode 100644
index 716fbc389..000000000
--- a/vendor/drupal/console/src/Command/Config/ImportSingleCommand.php
+++ /dev/null
@@ -1,211 +0,0 @@
-configStorage = $configStorage;
- $this->configManager = $configManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('config:import:single')
- ->setDescription($this->trans('commands.config.import.single.description'))
- ->addOption(
- 'file',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.config.import.single.options.file')
- )->addOption(
- 'directory',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.config.import.arguments.directory')
- )
- ->setAliases(['cis']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $file = $input->getOption('file');
- $directory = $input->getOption('directory');
-
- if (!$file) {
- $this->getIo()->error($this->trans('commands.config.import.single..message.missing-file'));
-
- return 1;
- }
-
- if ($directory) {
- $directory = Path::canonicalize($directory);
- }
-
- $names = [];
- try {
- $source_storage = new StorageReplaceDataWrapper(
- $this->configStorage
- );
-
- foreach ($file as $fileItem) {
- $configFile = $fileItem;
- if ($directory) {
- $configFile = Path::canonicalize($directory) . '/' . $fileItem;
- }
-
- if (file_exists($configFile)) {
- $name = Path::getFilenameWithoutExtension($configFile);
- $ymlFile = new Parser();
- $value = $ymlFile->parse(file_get_contents($configFile));
- $source_storage->delete($name);
- $source_storage->write($name, $value);
- $names[] = $name;
- continue;
- }
-
- $this->getIo()->error($this->trans('commands.config.import.single.messages.empty-value'));
- return 1;
- }
-
- $storageComparer = new StorageComparer(
- $source_storage,
- $this->configStorage,
- $this->configManager
- );
-
- if ($this->configImport($storageComparer)) {
- $this->getIo()->success(
- sprintf(
- $this->trans(
- 'commands.config.import.single.messages.success'
- ),
- implode(',', $names)
- )
- );
- }
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
- }
-
- private function configImport(StorageComparer $storageComparer)
- {
- $configImporter = new ConfigImporter(
- $storageComparer,
- \Drupal::service('event_dispatcher'),
- \Drupal::service('config.manager'),
- \Drupal::lock(),
- \Drupal::service('config.typed'),
- \Drupal::moduleHandler(),
- \Drupal::service('module_installer'),
- \Drupal::service('theme_handler'),
- \Drupal::service('string_translation')
- );
-
- if ($configImporter->alreadyImporting()) {
- $this->getIo()->success($this->trans('commands.config.import.messages.already-imported'));
- } else {
- try {
- if ($configImporter->validate()) {
- $sync_steps = $configImporter->initialize();
-
- foreach ($sync_steps as $step) {
- $context = [];
- do {
- $configImporter->doSyncStep($step, $context);
- } while ($context['finished'] < 1);
- }
-
- return true;
- }
- } catch (ConfigImporterException $e) {
- $message = $this->trans('commands.config.import.messages.import-fail') . "\n";
- $message .= implode("\n", $configImporter->getErrors());
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.site.import.local.messages.error-writing'),
- $message
- )
- );
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.site.import.local.messages.error-writing'),
- $e->getMessage()
- )
- );
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $file = $input->getOption('file');
- $directory = $input->getOption('directory');
-
- if (!$file) {
- $file = $this->getIo()->ask(
- $this->trans('commands.config.import.single.questions.file')
- );
- $input->setOption('file', [$file]);
-
- if (!$directory && !Path::isAbsolute($file)) {
- $directory = $this->getIo()->ask(
- $this->trans('commands.config.import.single.questions.directory')
- );
-
- $input->setOption('directory', $directory);
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/OverrideCommand.php b/vendor/drupal/console/src/Command/Config/OverrideCommand.php
deleted file mode 100644
index eebf466c3..000000000
--- a/vendor/drupal/console/src/Command/Config/OverrideCommand.php
+++ /dev/null
@@ -1,154 +0,0 @@
-configStorage = $configStorage;
- $this->configFactory = $configFactory;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('config:override')
- ->setDescription($this->trans('commands.config.override.description'))
- ->addArgument(
- 'name',
- InputArgument::REQUIRED,
- $this->trans('commands.config.override.arguments.name')
- )
- ->addArgument(
- 'key',
- InputArgument::REQUIRED,
- $this->trans('commands.config.override.arguments.key')
- )
- ->addArgument(
- 'value',
- InputArgument::REQUIRED,
- $this->trans('commands.config.override.arguments.value')
- )
- ->setAliases(['co']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $name = $input->getArgument('name');
- $names = $this->configFactory->listAll();
- if ($name) {
- if (!in_array($name, $names)) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.config.override.messages.invalid-name'),
- $name
- )
- );
- $name = null;
- }
- }
- if (!$name) {
- $name = $this->getIo()->choiceNoList(
- $this->trans('commands.config.override.questions.name'),
- $names
- );
- $input->setArgument('name', $name);
- }
- $key = $input->getArgument('key');
- if (!$key) {
- if ($this->configStorage->exists($name)) {
- $configuration = $this->configStorage->read($name);
- }
- $key = $this->getIo()->choiceNoList(
- $this->trans('commands.config.override.questions.key'),
- array_keys($configuration)
- );
- $input->setArgument('key', $key);
- }
- $value = $input->getArgument('value');
- if (!$value) {
- $value = $this->getIo()->ask(
- $this->trans('commands.config.override.questions.value')
- );
- $input->setArgument('value', $value);
- }
- }
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $configName = $input->getArgument('name');
- $key = $input->getArgument('key');
- $value = $input->getArgument('value');
-
- $config = $this->configFactory->getEditable($configName);
-
- $configurationOverrideResult = $this->overrideConfiguration(
- $config,
- $key,
- $value
- );
-
- $config->save();
-
- $this->getIo()->info($this->trans('commands.config.override.messages.configuration'), false);
- $this->getIo()->comment($configName);
-
- $tableHeader = [
- $this->trans('commands.config.override.messages.configuration-key'),
- $this->trans('commands.config.override.messages.original'),
- $this->trans('commands.config.override.messages.updated'),
- ];
- $tableRows = $configurationOverrideResult;
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
-
- protected function overrideConfiguration($config, $key, $value)
- {
- $result[] = [
- 'configuration' => $key,
- 'original' => $config->get($key),
- 'updated' => $value,
- ];
- $config->set($key, $value);
-
- return $result;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/PrintConfigValidationTrait.php b/vendor/drupal/console/src/Command/Config/PrintConfigValidationTrait.php
deleted file mode 100644
index afd7daf8d..000000000
--- a/vendor/drupal/console/src/Command/Config/PrintConfigValidationTrait.php
+++ /dev/null
@@ -1,24 +0,0 @@
-getIo()->info($this->trans('commands.config.validate.messages.success'));
- return 0;
- }
-
- foreach ($valid as $key => $error) {
- $this->getIo()->warning($key . ': ' . $error);
- }
- return 1;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Config/ValidateCommand.php b/vendor/drupal/console/src/Command/Config/ValidateCommand.php
deleted file mode 100644
index 10b2091e4..000000000
--- a/vendor/drupal/console/src/Command/Config/ValidateCommand.php
+++ /dev/null
@@ -1,64 +0,0 @@
-setName('config:validate')
- ->setDescription($this->trans('commands.config.validate.description'))
- ->addArgument(
- 'name',
- InputArgument::REQUIRED
- )->setAliases(['cv']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- /**
- * @var TypedConfigManagerInterface $typedConfigManager
- */
- $typedConfigManager = $this->get('config.typed');
-
- //Test the config name and see if a schema exists, if not it will fail
- $name = $input->getArgument('name');
- if (!$typedConfigManager->hasConfigSchema($name)) {
- $this->getIo()->warning($this->trans('commands.config.validate.messages.no-conf'));
- return 1;
- }
-
- //Get the config data from the factory
- $configFactory = $this->get('config.factory');
- $config_data = $configFactory->get($name)->get();
-
- return $this->printResults($this->checkConfigSchema($typedConfigManager, $name, $config_data));
- }
-}
diff --git a/vendor/drupal/console/src/Command/Create/CommentsCommand.php b/vendor/drupal/console/src/Command/Create/CommentsCommand.php
deleted file mode 100644
index 656d3969f..000000000
--- a/vendor/drupal/console/src/Command/Create/CommentsCommand.php
+++ /dev/null
@@ -1,184 +0,0 @@
-createCommentData = $createCommentData;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('create:comments')
- ->setDescription($this->trans('commands.create.comments.description'))
- ->addArgument(
- 'node-id',
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.create.comments.arguments.node-id'),
- null
- )
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.comments.options.limit')
- )
- ->addOption(
- 'title-words',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.comments.options.title-words')
- )
- ->addOption(
- 'time-range',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.comments.options.time-range')
- )->setAliases(['crc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $nodeId = $input->getArgument('node-id');
- if (!$nodeId) {
- $nodeId = $this->getIo()->ask(
- $this->trans('commands.create.comments.questions.node-id')
- );
- $input->setArgument('node-id', $nodeId);
- }
-
- $limit = $input->getOption('limit');
- if (!$limit) {
- $limit = $this->getIo()->ask(
- $this->trans('commands.create.comments.questions.limit'),
- 25
- );
- $input->setOption('limit', $limit);
- }
-
- $titleWords = $input->getOption('title-words');
- if (!$titleWords) {
- $titleWords = $this->getIo()->ask(
- $this->trans('commands.create.comments.questions.title-words'),
- 5
- );
-
- $input->setOption('title-words', $titleWords);
- }
-
- $timeRange = $input->getOption('time-range');
- if (!$timeRange) {
- $timeRanges = $this->getTimeRange();
-
- $timeRange = $this->getIo()->choice(
- $this->trans('commands.create.comments.questions.time-range'),
- array_values($timeRanges)
- );
-
- $input->setOption('time-range', array_search($timeRange, $timeRanges));
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $nodeId = $input->getArgument('node-id')?:1;
- $node = \Drupal\node\Entity\Node::load($nodeId);
- if (empty($node)) {
- throw new \InvalidArgumentException(
- $this->trans(
- 'commands.generate.controller.messages.node-id-invalid'
- )
- );
- }
- $limit = $input->getOption('limit')?:25;
- $titleWords = $input->getOption('title-words')?:5;
- $timeRange = $input->getOption('time-range')?:31536000;
-
- $result = $this->createCommentData->create(
- $nodeId,
- $limit,
- $titleWords,
- $timeRange
- );
-
- if ($result['success']) {
-
- $tableHeader = [
- $this->trans('commands.create.comments.messages.node-id'),
- $this->trans('commands.create.comments.messages.comment-id'),
- $this->trans('commands.create.comments.messages.title'),
- $this->trans('commands.create.comments.messages.created'),
- ];
-
- $this->getIo()->table($tableHeader, $result['success']);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.create.comments.messages.created-comments'),
- count($result['success'])
- )
- );
- }
-
- if (isset($result['error'])) {
- foreach ($result['error'] as $error) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.create.comments.messages.error'),
- $error
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Create/NodesCommand.php b/vendor/drupal/console/src/Command/Create/NodesCommand.php
deleted file mode 100644
index 3e8e6f929..000000000
--- a/vendor/drupal/console/src/Command/Create/NodesCommand.php
+++ /dev/null
@@ -1,245 +0,0 @@
-drupalApi = $drupalApi;
- $this->createNodeData = $createNodeData;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('create:nodes')
- ->setDescription($this->trans('commands.create.nodes.description'))
- ->addArgument(
- 'content-types',
- InputArgument::IS_ARRAY,
- $this->trans('commands.create.nodes.arguments.content-types')
- )
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.nodes.options.limit')
- )
- ->addOption(
- 'title-words',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.nodes.options.title-words')
- )
- ->addOption(
- 'time-range',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.nodes.options.time-range')
- )
- ->addOption(
- 'language',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.nodes.options.language')
- )->setAliases(['crn']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $contentTypes = $input->getArgument('content-types');
- if (!$contentTypes) {
- $bundles = $this->drupalApi->getBundles();
- $contentTypes = $this->getIo()->choice(
- $this->trans('commands.create.nodes.questions.content-type'),
- array_values($bundles),
- null,
- true
- );
-
- $contentTypes = array_map(
- function ($contentType) use ($bundles) {
- return array_search($contentType, $bundles);
- },
- $contentTypes
- );
-
- $input->setArgument('content-types', $contentTypes);
- }
-
- $limit = $input->getOption('limit');
- if (!$limit) {
- $limit = $this->getIo()->ask(
- $this->trans('commands.create.nodes.questions.limit'),
- 25
- );
- $input->setOption('limit', $limit);
- }
-
- $titleWords = $input->getOption('title-words');
- if (!$titleWords) {
- $titleWords = $this->getIo()->ask(
- $this->trans('commands.create.nodes.questions.title-words'),
- 5
- );
-
- $input->setOption('title-words', $titleWords);
- }
-
- $timeRange = $input->getOption('time-range');
- if (!$timeRange) {
- $timeRanges = $this->getTimeRange();
-
- $timeRange = $this->getIo()->choice(
- $this->trans('commands.create.nodes.questions.time-range'),
- array_values($timeRanges)
- );
-
- $input->setOption('time-range', array_search($timeRange, $timeRanges));
- }
-
- // Language module is enabled or not.
- $languageModuleEnabled = \Drupal::moduleHandler()
- ->moduleExists('language');
-
- // If language module is enabled.
- if ($languageModuleEnabled) {
- // Get available languages on site.
- $languages = \Drupal::languageManager()->getLanguages();
- // Holds the available languages.
- $language_list = [];
-
- foreach ($languages as $lang) {
- $language_list[$lang->getId()] = $lang->getName();
- }
-
- $language = $input->getOption('language');
- // If no language option or invalid language code in option.
- if (!$language || !array_key_exists($language, $language_list)) {
- $language = $this->getIo()->choice(
- $this->trans('commands.create.nodes.questions.language'),
- $language_list
- );
- }
- $input->setOption('language', $language);
- } else {
- // If 'language' module is not enabled.
- $input->setOption('language', LanguageInterface::LANGCODE_NOT_SPECIFIED);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $contentTypes = $input->getArgument('content-types');
- $limit = $input->getOption('limit')?:25;
- $titleWords = $input->getOption('title-words')?:5;
- $timeRange = $input->getOption('time-range')?:31536000;
- $available_types = array_keys($this->drupalApi->getBundles());
- $language = $input->getOption('language')?:'und';
-
- foreach ($contentTypes as $type) {
- if (!in_array($type, $available_types)) {
- throw new \Exception('Invalid content type name given.');
- }
- }
-
- if (!$contentTypes) {
- $contentTypes = $available_types;
- }
-
- $result = $this->createNodeData->create(
- $contentTypes,
- $limit,
- $titleWords,
- $timeRange,
- $language
- );
-
- if ($result['success']) {
- $tableHeader = [
- $this->trans('commands.create.nodes.messages.node-id'),
- $this->trans('commands.create.nodes.messages.content-type'),
- $this->trans('commands.create.nodes.messages.title'),
- $this->trans('commands.create.nodes.messages.created'),
- ];
-
- $this->getIo()->table($tableHeader, $result['success']);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.create.nodes.messages.created-nodes'),
- count($result['success'])
- )
- );
- }
-
- if (isset($result['error'])) {
- foreach ($result['error'] as $error) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.create.nodes.messages.error'),
- $error
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Create/RolesCommand.php b/vendor/drupal/console/src/Command/Create/RolesCommand.php
deleted file mode 100644
index f749201c3..000000000
--- a/vendor/drupal/console/src/Command/Create/RolesCommand.php
+++ /dev/null
@@ -1,112 +0,0 @@
-createRoleData = $createRoleData;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('create:roles')
- ->setDescription($this->trans('commands.create.roles.description'))
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.roles.options.limit')
- )
- ->setAliases(['crr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $limit = $input->getOption('limit');
- if (!$limit) {
- $limit = $this->getIo()->ask(
- $this->trans('commands.create.roles.questions.limit'),
- 5
- );
- $input->setOption('limit', $limit);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $limit = $input->getOption('limit')?:5;
-
- $result = $this->createRoleData->create(
- $limit
- );
-
- $tableHeader = [
- $this->trans('commands.create.roles.messages.role-id'),
- $this->trans('commands.create.roles.messages.role-name'),
- ];
-
- if ($result['success']) {
- $this->getIo()->table($tableHeader, $result['success']);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.create.roles.messages.created-roles'),
- count($result['success'])
- )
- );
- }
-
- if (isset($result['error'])) {
- foreach ($result['error'] as $error) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.create.roles.messages.error'),
- $error
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Create/TermsCommand.php b/vendor/drupal/console/src/Command/Create/TermsCommand.php
deleted file mode 100644
index 2c3dbaadb..000000000
--- a/vendor/drupal/console/src/Command/Create/TermsCommand.php
+++ /dev/null
@@ -1,176 +0,0 @@
-drupalApi = $drupalApi;
- $this->createTermData = $createTermData;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('create:terms')
- ->setDescription($this->trans('commands.create.terms.description'))
- ->addArgument(
- 'vocabularies',
- InputArgument::IS_ARRAY,
- $this->trans('commands.create.terms.arguments.vocabularies')
- )
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.terms.options.limit')
- )
- ->addOption(
- 'name-words',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.terms.options.name-words')
- )->setAliases(['crt']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $vocabularies = $input->getArgument('vocabularies');
- if (!$vocabularies) {
- $vocabularies = $this->drupalApi->getVocabularies();
- $vids = $this->getIo()->choice(
- $this->trans('commands.create.terms.questions.vocabularies'),
- array_values($vocabularies),
- null,
- true
- );
-
- $vids = array_map(
- function ($vid) use ($vocabularies) {
- return array_search($vid, $vocabularies);
- },
- $vids
- );
-
- $input->setArgument('vocabularies', $vids);
- }
-
- $limit = $input->getOption('limit');
- if (!$limit) {
- $limit = $this->getIo()->ask(
- $this->trans('commands.create.terms.questions.limit'),
- 25
- );
- $input->setOption('limit', $limit);
- }
-
- $nameWords = $input->getOption('name-words');
- if (!$nameWords) {
- $nameWords = $this->getIo()->ask(
- $this->trans('commands.create.terms.questions.name-words'),
- 5
- );
-
- $input->setOption('name-words', $nameWords);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $vocabularies = $input->getArgument('vocabularies');
- $limit = $input->getOption('limit')?:25;
- $nameWords = $input->getOption('name-words')?:5;
-
- if (!$vocabularies) {
- $vocabularies = array_keys($this->drupalApi->getVocabularies());
- }
-
- $result = $this->createTermData->create(
- $vocabularies,
- $limit,
- $nameWords
- );
-
- $tableHeader = [
- $this->trans('commands.create.terms.messages.term-id'),
- $this->trans('commands.create.terms.messages.vocabulary'),
- $this->trans('commands.create.terms.messages.name'),
- ];
-
- if ($result['success']) {
- $this->getIo()->table($tableHeader, $result['success']);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.create.terms.messages.created-terms'),
- count($result['success'])
- )
- );
- }
-
- if (isset($result['error'])) {
- foreach ($result['error'] as $error) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.create.terms.messages.error'),
- $error
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Create/UsersCommand.php b/vendor/drupal/console/src/Command/Create/UsersCommand.php
deleted file mode 100644
index 73423dd36..000000000
--- a/vendor/drupal/console/src/Command/Create/UsersCommand.php
+++ /dev/null
@@ -1,194 +0,0 @@
-drupalApi = $drupalApi;
- $this->createUserData = $createUserData;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('create:users')
- ->setDescription($this->trans('commands.create.users.description'))
- ->addArgument(
- 'roles',
- InputArgument::IS_ARRAY,
- $this->trans('commands.create.users.arguments.roles')
- )
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.users.options.limit')
- )
- ->addOption(
- 'password',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.users.options.password')
- )
- ->addOption(
- 'time-range',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.users.options.time-range')
- )->setAliases(['cru']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $rids = $input->getArgument('roles');
- if (!$rids) {
- $roles = $this->drupalApi->getRoles();
- $rids = $this->getIo()->choice(
- $this->trans('commands.create.users.questions.roles'),
- array_values($roles),
- null,
- true
- );
-
- $rids = array_map(
- function ($role) use ($roles) {
- return array_search($role, $roles);
- },
- $rids
- );
-
- $input->setArgument('roles', $rids);
- }
-
- $limit = $input->getOption('limit');
- if (!$limit) {
- $limit = $this->getIo()->ask(
- $this->trans('commands.create.users.questions.limit'),
- 10
- );
- $input->setOption('limit', $limit);
- }
-
- $password = $input->getOption('password');
- if (!$password) {
- $password = $this->getIo()->ask(
- $this->trans('commands.create.users.questions.password'),
- 5
- );
-
- $input->setOption('password', $password);
- }
-
- $timeRange = $input->getOption('time-range');
- if (!$timeRange) {
- $timeRanges = $this->getTimeRange();
-
- $timeRange = $this->getIo()->choice(
- $this->trans('commands.create.nodes.questions.time-range'),
- array_values($timeRanges)
- );
-
- $input->setOption('time-range', array_search($timeRange, $timeRanges));
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $roles = $input->getArgument('roles');
- $limit = $input->getOption('limit')?:25;
- $password = $input->getOption('password');
- $timeRange = $input->getOption('time-range')?:31536000;
-
- if (!$roles) {
- $roles = $this->drupalApi->getRoles();
- }
-
- $result = $this->createUserData->create(
- $roles,
- $limit,
- $password,
- $timeRange
- );
-
- $tableHeader = [
- $this->trans('commands.create.users.messages.user-id'),
- $this->trans('commands.create.users.messages.username'),
- $this->trans('commands.create.users.messages.roles'),
- $this->trans('commands.create.users.messages.created'),
- ];
-
- if ($result['success']) {
- $this->getIo()->table($tableHeader, $result['success']);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.create.users.messages.created-users'),
- count($result['success'])
- )
- );
- }
-
- if (isset($result['error'])) {
- foreach ($result['error'] as $error) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.create.users.messages.error'),
- $error
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Create/VocabulariesCommand.php b/vendor/drupal/console/src/Command/Create/VocabulariesCommand.php
deleted file mode 100644
index 5d45265f5..000000000
--- a/vendor/drupal/console/src/Command/Create/VocabulariesCommand.php
+++ /dev/null
@@ -1,128 +0,0 @@
-vocabularyData = $vocabularyData;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('create:vocabularies')
- ->setDescription($this->trans('commands.create.vocabularies.description'))
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.vocabularies.options.limit')
- )
- ->addOption(
- 'name-words',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.create.vocabularies.options.name-words')
- )->setAliases(['crv']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $limit = $input->getOption('limit');
- if (!$limit) {
- $limit = $this->getIo()->ask(
- $this->trans('commands.create.vocabularies.questions.limit'),
- 25
- );
- $input->setOption('limit', $limit);
- }
-
- $nameWords = $input->getOption('name-words');
- if (!$nameWords) {
- $nameWords = $this->getIo()->ask(
- $this->trans('commands.create.vocabularies.questions.name-words'),
- 5
- );
-
- $input->setOption('name-words', $nameWords);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $limit = $input->getOption('limit')?:25;
- $nameWords = $input->getOption('name-words')?:5;
-
- $result = $this->vocabularyData->create(
- $limit,
- $nameWords
- );
-
- $tableHeader = [
- $this->trans('commands.create.vocabularies.messages.vocabulary-id'),
- $this->trans('commands.create.vocabularies.messages.name'),
- ];
-
- if (isset($result['success'])) {
- $this->getIo()->table($tableHeader, $result['success']);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.create.vocabularies.messages.created-terms'),
- count($result['success'])
- )
- );
- }
-
- if (isset($result['error'])) {
- foreach ($result['error'] as $error) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.create.vocabularies.messages.error'),
- $error
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Cron/ExecuteCommand.php b/vendor/drupal/console/src/Command/Cron/ExecuteCommand.php
deleted file mode 100644
index 5fd934463..000000000
--- a/vendor/drupal/console/src/Command/Cron/ExecuteCommand.php
+++ /dev/null
@@ -1,117 +0,0 @@
-moduleHandler = $moduleHandler;
- $this->lock = $lock;
- $this->state = $state;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('cron:execute')
- ->setDescription($this->trans('commands.cron.execute.description'))
- ->addArgument(
- 'module',
- InputArgument::IS_ARRAY | InputArgument::OPTIONAL,
- $this->trans('commands.common.options.module')
- )
- ->setAliases(['croe']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $modules = $input->getArgument('module');
-
- if (!$this->lock->acquire('cron', 900.0)) {
- $this->getIo()->warning($this->trans('commands.cron.execute.messages.lock'));
-
- return 1;
- }
-
- if ($modules === null || in_array('all', $modules)) {
- $modules = $this->moduleHandler->getImplementations('cron');
- }
-
- foreach ($modules as $module) {
- if (!$this->moduleHandler->implementsHook($module, 'cron')) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.cron.execute.messages.module-invalid'),
- $module
- )
- );
- continue;
- }
- try {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.cron.execute.messages.executing-cron'),
- $module
- )
- );
- $this->moduleHandler->invoke($module, 'cron');
- } catch (\Exception $e) {
- watchdog_exception('cron', $e);
- $this->getIo()->error($e->getMessage());
- }
- }
-
- $this->state->set('system.cron_last', REQUEST_TIME);
- $this->lock->release('cron');
-
- $this->getIo()->success($this->trans('commands.cron.execute.messages.success'));
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php b/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php
deleted file mode 100644
index cc3fa6120..000000000
--- a/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php
+++ /dev/null
@@ -1,74 +0,0 @@
-lock = $lock;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('cron:release')
- ->setDescription($this->trans('commands.cron.release.description'))
- ->setAliases(['cror']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- try {
- $this->lock->release('cron');
-
- $this->getIo()->info($this->trans('commands.cron.release.messages.released'));
- } catch (Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/AddCommand.php b/vendor/drupal/console/src/Command/Database/AddCommand.php
deleted file mode 100644
index a83ba0079..000000000
--- a/vendor/drupal/console/src/Command/Database/AddCommand.php
+++ /dev/null
@@ -1,164 +0,0 @@
-generator = $generator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('database:add')
- ->setDescription($this->trans('commands.database.add.description'))
- ->addOption(
- 'database',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.database.add.options.database')
- )
- ->addOption(
- 'username',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.database.add.options.username')
- )
- ->addOption(
- 'password',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.database.add.options.password')
- )
- ->addOption(
- 'prefix',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.add.options.prefix')
- )
- ->addOption(
- 'host',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.add.options.host')
- )
- ->addOption(
- 'port',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.add.options.port')
- )
- ->addOption(
- 'driver',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.add.options.driver')
- )
- ->setHelp($this->trans('commands.database.add.help'))
- ->setAliases(['dba']);
- }
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $result = $this
- ->generator
- ->generate($input->getOptions());
- if (!$result) {
- $this->getIo()->error($this->trans('commands.database.add.error'));
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getOption('database');
- if (!$database) {
- $database = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.database'),
- 'migrate_db'
- );
- }
- $input->setOption('database', $database);
- $username = $input->getOption('username');
- if (!$username) {
- $username = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.username'),
- ''
- );
- }
- $input->setOption('username', $username);
- $password = $input->getOption('password');
- if (!$password) {
- $password = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.password'),
- ''
- );
- }
- $input->setOption('password', $password);
- $prefix = $input->getOption('prefix');
- if (!$prefix) {
- $prefix = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.prefix'),
- false
- );
- }
- $input->setOption('prefix', $prefix);
- $host = $input->getOption('host');
- if (!$host) {
- $host = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.host'),
- 'localhost'
- );
- }
- $input->setOption('host', $host);
- $port = $input->getOption('port');
- if (!$port) {
- $port = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.port'),
- 3306
- );
- }
- $input->setOption('port', $port);
- $driver = $input->getOption('driver');
- if (!$driver) {
- $driver = $this->getIo()->ask(
- $this->trans('commands.database.add.questions.driver'),
- 'mysql'
- );
- }
- $input->setOption('driver', $driver);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/ClientCommand.php b/vendor/drupal/console/src/Command/Database/ClientCommand.php
deleted file mode 100644
index 0e558f7a0..000000000
--- a/vendor/drupal/console/src/Command/Database/ClientCommand.php
+++ /dev/null
@@ -1,80 +0,0 @@
-setName('database:client')
- ->setDescription($this->trans('commands.database.client.description'))
- ->addArgument(
- 'database',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.client.arguments.database'),
- 'default'
- )
- ->setHelp($this->trans('commands.database.client.help'))
- ->setAliases(['dbc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getArgument('database');
- $learning = $input->getOption('learning');
-
- $databaseConnection = $this->resolveConnection($database);
-
- $connection = sprintf(
- '%s -A --database=%s --user=%s --password=%s --host=%s --port=%s',
- $databaseConnection['driver'],
- $databaseConnection['database'],
- $databaseConnection['username'],
- $databaseConnection['password'],
- $databaseConnection['host'],
- $databaseConnection['port']
- );
-
- if ($learning) {
- $this->getIo()->commentBlock(
- sprintf(
- $this->trans('commands.database.client.messages.connection'),
- $connection
- )
- );
- }
-
- $processBuilder = new ProcessBuilder([]);
- $processBuilder->setArguments(explode(' ', $connection));
- $process = $processBuilder->getProcess();
- $process->setTty('true');
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new \RuntimeException($process->getErrorOutput());
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/ConnectCommand.php b/vendor/drupal/console/src/Command/Database/ConnectCommand.php
deleted file mode 100644
index 85ddd266b..000000000
--- a/vendor/drupal/console/src/Command/Database/ConnectCommand.php
+++ /dev/null
@@ -1,65 +0,0 @@
-setName('database:connect')
- ->setDescription($this->trans('commands.database.connect.description'))
- ->addArgument(
- 'database',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.connect.arguments.database'),
- 'default'
- )
- ->setHelp($this->trans('commands.database.connect.help'))
- ->setAliases(['dbco']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getArgument('database');
- $databaseConnection = $this->resolveConnection($database);
-
- $connection = sprintf(
- '%s -A --database=%s --user=%s --password=%s --host=%s --port=%s',
- $databaseConnection['driver'],
- $databaseConnection['database'],
- $databaseConnection['username'],
- $databaseConnection['password'],
- $databaseConnection['host'],
- $databaseConnection['port']
- );
-
- $this->getIo()->commentBlock(
- sprintf(
- $this->trans('commands.database.connect.messages.connection'),
- $connection
- )
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/DatabaseLogBase.php b/vendor/drupal/console/src/Command/Database/DatabaseLogBase.php
deleted file mode 100644
index 7004ed0aa..000000000
--- a/vendor/drupal/console/src/Command/Database/DatabaseLogBase.php
+++ /dev/null
@@ -1,278 +0,0 @@
-database = $database;
- $this->dateFormatter = $dateFormatter;
- $this->entityTypeManager = $entityTypeManager;
- $this->stringTranslation = $stringTranslation;
- $this->userStorage = $this->entityTypeManager->getStorage('user');
- $this->severityList = RfcLogLevel::getLevels();
- parent::__construct();
- }
-
- /**
- * addDefaultLoggingOptions.
- */
- protected function addDefaultLoggingOptions()
- {
- $this
- ->addOption(
- 'type',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.log.common.options.type')
- )
- ->addOption(
- 'severity',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.log.common.options.severity')
- )
- ->addOption(
- 'user-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.log.common.options.user-id')
- );
- }
-
- /**
- * @param InputInterface $input
- */
- protected function getDefaultOptions(InputInterface $input)
- {
- $this->eventType = $input->getOption('type');
- $this->eventSeverity = $input->getOption('severity');
- $this->userId = $input->getOption('user-id');
- }
-
- /**
- * @param null $offset
- * @param int $range
- * @return bool|\Drupal\Core\Database\Query\SelectInterface
- */
- protected function makeQuery($offset = null, $range = 1000)
- {
- $query = $this->database->select('watchdog', 'w');
- $query->fields(
- 'w',
- [
- 'wid',
- 'uid',
- 'severity',
- 'type',
- 'timestamp',
- 'message',
- 'variables',
- ]
- );
-
- if ($this->eventType) {
- $query->condition('type', $this->eventType);
- }
-
- if ($this->eventSeverity) {
- if (!in_array($this->eventSeverity, $this->severityList)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('database.log.common.messages.invalid-severity'),
- $this->eventSeverity
- )
- );
- return false;
- }
- $query->condition(
- 'severity',
- array_search(
- $this->eventSeverity,
- $this->severityList
- )
- );
- }
-
- if ($this->userId) {
- $query->condition('uid', $this->userId);
- }
-
- $query->orderBy('wid', 'ASC');
-
- if ($offset) {
- $query->range($offset, $range);
- }
-
- return $query;
- }
-
- /**
- * Generic logging table header
- *
- * @return array
- */
- protected function createTableHeader()
- {
- return [
- $this->trans('commands.database.log.common.messages.event-id'),
- $this->trans('commands.database.log.common.messages.type'),
- $this->trans('commands.database.log.common.messages.date'),
- $this->trans('commands.database.log.common.messages.message'),
- $this->trans('commands.database.log.common.messages.user'),
- $this->trans('commands.database.log.common.messages.severity'),
- ];
- }
-
- /**
- * @param \stdClass $dblog
- * @return array
- */
- protected function createTableRow(\stdClass $dblog)
- {
-
- /**
- * @var User $user
- */
- $user = $this->userStorage->load($dblog->uid);
-
- return [
- $dblog->wid,
- $dblog->type,
- $this->dateFormatter->format($dblog->timestamp, 'short'),
- Unicode::truncate(
- Html::decodeEntities(strip_tags($this->formatMessage($dblog))),
- 500,
- true,
- true
- ),
- $user->getUsername() . ' (' . $user->id() . ')',
- $this->severityList[$dblog->severity]->render(),
- ];
- }
-
- /**
- * Formats a database log message.
- *
- * @param $event
- * The record from the watchdog table. The object properties are: wid, uid,
- * severity, type, timestamp, message, variables, link, name.
- *
- * @return string|false
- * The formatted log message or FALSE if the message or variables properties
- * are not set.
- */
- protected function formatMessage(\stdClass $event)
- {
- $message = false;
-
- // Check for required properties.
- if (isset($event->message, $event->variables)) {
- // Messages without variables or user specified text.
- if ($event->variables === 'N;') {
- return $event->message;
- }
-
- return $this->stringTranslation->translate(
- $event->message,
- unserialize($event->variables)
- );
- }
-
- return $message;
- }
-
- /**
- * @param $dblog
- * @return array
- */
- protected function formatSingle($dblog)
- {
- return array_combine(
- $this->createTableHeader(),
- $this->createTableRow($dblog)
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/DropCommand.php b/vendor/drupal/console/src/Command/Database/DropCommand.php
deleted file mode 100644
index 0a079c00d..000000000
--- a/vendor/drupal/console/src/Command/Database/DropCommand.php
+++ /dev/null
@@ -1,104 +0,0 @@
-database = $database;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('database:drop')
- ->setDescription($this->trans('commands.database.drop.description'))
- ->addArgument(
- 'database',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.drop.arguments.database'),
- 'default'
- )
- ->setHelp($this->trans('commands.database.drop.help'))
- ->setAliases(['dbd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getArgument('database');
- $yes = $input->getOption('yes');
-
- $databaseConnection = $this->resolveConnection($database);
-
- if (!$yes) {
- if (!$this->getIo()->confirm(
- sprintf(
- $this->trans('commands.database.drop.question.drop-tables'),
- $databaseConnection['database']
- ),
- true
- )
- ) {
- return 1;
- }
- }
-
- $schema = $this->database->schema();
- $tables = $schema->findTables('%');
- $tableRows = [];
-
- foreach ($tables as $table) {
- if ($schema->dropTable($table)) {
- $tableRows['success'][] = [$table];
- } else {
- $tableRows['error'][] = [$table];
- }
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.database.drop.messages.table-drop'),
- count($tableRows['success'])
- )
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/DumpCommand.php b/vendor/drupal/console/src/Command/Database/DumpCommand.php
deleted file mode 100644
index 9de8ad864..000000000
--- a/vendor/drupal/console/src/Command/Database/DumpCommand.php
+++ /dev/null
@@ -1,154 +0,0 @@
-appRoot = $appRoot;
- $this->shellProcess = $shellProcess;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('database:dump')
- ->setDescription($this->trans('commands.database.dump.description'))
- ->addArgument(
- 'database',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.dump.arguments.database'),
- 'default'
- )
- ->addOption(
- 'file',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.dump.options.file')
- )
- ->addOption(
- 'gz',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.database.dump.options.gz')
- )
- ->setHelp($this->trans('commands.database.dump.help'))
- ->setAliases(['dbdu']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getArgument('database');
- $file = $input->getOption('file');
- $learning = $input->getOption('learning');
- $gz = $input->getOption('gz');
-
- $databaseConnection = $this->resolveConnection($database);
-
- if (!$file) {
- $date = new \DateTime();
- $file = sprintf(
- '%s/%s-%s.sql',
- $this->appRoot,
- $databaseConnection['database'],
- $date->format('Y-m-d-H-i-s')
- );
- }
-
- $command = null;
-
- if ($databaseConnection['driver'] == 'mysql') {
- $command = sprintf(
- 'mysqldump --user="%s" --password="%s" --host="%s" --port="%s" "%s" > "%s"',
- $databaseConnection['username'],
- $databaseConnection['password'],
- $databaseConnection['host'],
- $databaseConnection['port'],
- $databaseConnection['database'],
- $file
- );
- } elseif ($databaseConnection['driver'] == 'pgsql') {
- $command = sprintf(
- 'PGPASSWORD="%s" pg_dumpall -w -U "%s" -h "%s" -p "%s" -l "%s" -f "%s"',
- $databaseConnection['password'],
- $databaseConnection['username'],
- $databaseConnection['host'],
- $databaseConnection['port'],
- $databaseConnection['database'],
- $file
- );
- }
-
- if ($learning) {
- $this->getIo()->commentBlock($command);
- }
-
- if ($this->shellProcess->exec($command, $this->appRoot)) {
- $resultFile = $file;
- if ($gz) {
- if (substr($file, -3) != '.gz') {
- $resultFile = $file . ".gz";
- }
- file_put_contents(
- $resultFile,
- gzencode(
- file_get_contents(
- $file
- )
- )
- );
- if ($resultFile != $file) {
- unlink($file);
- }
- }
-
- $this->getIo()->success(
- sprintf(
- '%s %s',
- $this->trans('commands.database.dump.messages.success'),
- $resultFile
- )
- );
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/LogClearCommand.php b/vendor/drupal/console/src/Command/Database/LogClearCommand.php
deleted file mode 100644
index 491ccd7b5..000000000
--- a/vendor/drupal/console/src/Command/Database/LogClearCommand.php
+++ /dev/null
@@ -1,168 +0,0 @@
-database = $database;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('database:log:clear')
- ->setDescription($this->trans('commands.database.log.clear.description'))
- ->addArgument(
- 'event-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.log.clear.arguments.event-id')
- )
- ->addOption(
- 'type',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.log.clear.options.type')
- )
- ->addOption(
- 'severity',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.log.clear.options.severity')
- )
- ->addOption(
- 'user-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.database.log.clear.options.user-id')
- )
- ->setAliases(['dblc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $eventId = $input->getArgument('event-id');
- $eventType = $input->getOption('type');
- $eventSeverity = $input->getOption('severity');
- $userId = $input->getOption('user-id');
-
- if ($eventId) {
- $this->clearEvent($eventId);
- } else {
- $this->clearEvents($eventType, $eventSeverity, $userId);
- }
-
- return 0;
- }
-
- /**
- * @param $eventId
- * @return bool
- */
- private function clearEvent($eventId)
- {
- $result = $this->database->delete('watchdog')->condition('wid', $eventId)->execute();
-
- if (!$result) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.database.log.clear.messages.not-found'),
- $eventId
- )
- );
-
- return false;
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.database.log.clear.messages.event-deleted'),
- $eventId
- )
- );
-
- return true;
- }
-
- /**
- * @param $eventType
- * @param $eventSeverity
- * @param $userId
- * @return bool
- */
- protected function clearEvents($eventType, $eventSeverity, $userId)
- {
- $severity = RfcLogLevel::getLevels();
- $query = $this->database->delete('watchdog');
-
- if ($eventType) {
- $query->condition('type', $eventType);
- }
-
- if ($eventSeverity) {
- if (!in_array($eventSeverity, $severity)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.database.log.clear.messages.invalid-severity'),
- $eventSeverity
- )
- );
-
- return false;
- }
-
- $query->condition('severity', array_search($eventSeverity, $severity));
- }
-
- if ($userId) {
- $query->condition('uid', $userId);
- }
-
- $result = $query->execute();
-
- if (!$result) {
- $this->getIo()->error(
- $this->trans('commands.database.log.clear.messages.clear-error')
- );
-
- return false;
- }
-
- $this->getIo()->success(
- $this->trans('commands.database.log.clear.messages.clear-sucess')
- );
-
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/LogPollCommand.php b/vendor/drupal/console/src/Command/Database/LogPollCommand.php
deleted file mode 100644
index 5de0e94fa..000000000
--- a/vendor/drupal/console/src/Command/Database/LogPollCommand.php
+++ /dev/null
@@ -1,82 +0,0 @@
-getIo()->note($this->trans('commands.database.log.poll.messages.warning'));
-
- $this->getDefaultOptions($input);
- $this->duration = $input->getArgument('duration');
-
- $this->pollForEvents();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('database:log:poll')
- ->setDescription($this->trans('commands.database.log.poll.description'));
-
- $this->addDefaultLoggingOptions();
-
- $this->addArgument(
- 'duration',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.log.poll.arguments.duration'),
- '10'
- )->setAliases(['dblp']);
- }
-
-
- protected function pollForEvents()
- {
- $query = $this->makeQuery()->countQuery();
- $results = $query->execute()->fetchAssoc();
- $count = $results['expression'] - 1;//minus 1 so the newest message always prints
-
- $tableHeader = $this->createTableHeader();
-
- //Poll, force no wait on first loop
- $lastExec = time() - $this->duration;
- while (1) {
- if (time() > $lastExec + $this->duration) {
- //Print out any new db logs
- $query = $this->makeQuery($count);
- $results = $query->execute()->fetchAll();
- $count += count($results);
- $tableRows = [];
- foreach ($results as $r) {
- $tableRows[] = $this->createTableRow($r);
- }
- if (!empty($tableRows)) {
- $this->getIo()->table($tableHeader, $tableRows);
- }
- //update the last exec time
- $lastExec = time();
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/QueryCommand.php b/vendor/drupal/console/src/Command/Database/QueryCommand.php
deleted file mode 100644
index 0658acbaa..000000000
--- a/vendor/drupal/console/src/Command/Database/QueryCommand.php
+++ /dev/null
@@ -1,131 +0,0 @@
-setName('database:query')
- ->setDescription($this->trans('commands.database.query.description'))
- ->addArgument(
- 'query',
- InputArgument::REQUIRED,
- $this->trans('commands.database.query.arguments.query')
- )
- ->addArgument(
- 'database',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.query.arguments.database'),
- 'default'
- )
- ->addOption('quick', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.quick'))
- ->addOption('debug', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.debug'))
- ->addOption('html', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.html'))
- ->addOption('xml', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.xml'))
- ->addOption('raw', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.raw'))
- ->addOption('vertical', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.vertical'))
- ->addOption('batch', null, InputOption::VALUE_NONE, $this->trans('commands.database.query.options.batch'))
-
- ->setHelp($this->trans('commands.database.query.help'))
- ->setAliases(['dbq']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $query = $input->getArgument('query');
- $database = $input->getArgument('database');
- $learning = $input->getOption('learning');
-
- $databaseConnection = $this->resolveConnection($database);
-
- $connection = sprintf(
- '%s -A --database=%s --user=%s --password=%s --host=%s --port=%s',
- $databaseConnection['driver'],
- $databaseConnection['database'],
- $databaseConnection['username'],
- $databaseConnection['password'],
- $databaseConnection['host'],
- $databaseConnection['port']
- );
-
- $args = explode(' ', $connection);
- $args[] = sprintf('--execute=%s', $query);
-
- $opts = ["quick", "debug", "html", "xml", "raw", "vertical", "batch"];
- array_walk(
- $opts, function ($opt) use ($input, &$args) {
- if ($input->getOption($opt)) {
- switch ($opt) {
- case "quick":
- $args[] = "--quick";
- break;
- case "debug":
- $args[] = "-T";
- break;
- case "html":
- $args[] = "-H";
- break;
- case "xml":
- $args[] = "-X";
- break;
- case "raw":
- $args[] = "--raw";
- break;
- case "vertical":
- $args[] = "-E";
- break;
- case "batch":
- $args[] = "--batch";
- break;
- }
- }
- }
- );
-
- if ($learning) {
- $this->getIo()->commentBlock(
- implode(" ", $args)
- );
- }
-
- $processBuilder = new ProcessBuilder([]);
- $processBuilder->setArguments($args);
- $process = $processBuilder->getProcess();
- $process->setTty('true');
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new \RuntimeException($process->getErrorOutput());
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Database/RestoreCommand.php b/vendor/drupal/console/src/Command/Database/RestoreCommand.php
deleted file mode 100644
index 659f158d6..000000000
--- a/vendor/drupal/console/src/Command/Database/RestoreCommand.php
+++ /dev/null
@@ -1,131 +0,0 @@
-appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('database:restore')
- ->setDescription($this->trans('commands.database.restore.description'))
- ->addArgument(
- 'database',
- InputArgument::OPTIONAL,
- $this->trans('commands.database.restore.arguments.database'),
- 'default'
- )
- ->addOption(
- 'file',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.database.restore.options.file')
- )
- ->setHelp($this->trans('commands.database.restore.help'))
- ->setAliases(['dbr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getArgument('database');
- $file = $input->getOption('file');
- $learning = $input->getOption('learning');
-
- $databaseConnection = $this->resolveConnection($database);
-
- if (!$file) {
- $this->getIo()->error(
- $this->trans('commands.database.restore.messages.no-file')
- );
- return 1;
- }
- if (strpos($file, '.sql.gz') !== false) {
- $catCommand = "gunzip -c %s | ";
- } else {
- $catCommand = "cat %s | ";
- }
- if ($databaseConnection['driver'] == 'mysql') {
- $command = sprintf(
- $catCommand . 'mysql --user=%s --password=%s --host=%s --port=%s %s',
- $file,
- $databaseConnection['username'],
- $databaseConnection['password'],
- $databaseConnection['host'],
- $databaseConnection['port'],
- $databaseConnection['database']
- );
- } elseif ($databaseConnection['driver'] == 'pgsql') {
- $command = sprintf(
- 'PGPASSWORD="%s" ' . $catCommand . 'psql -w -U %s -h %s -p %s -d %s',
- $file,
- $databaseConnection['password'],
- $databaseConnection['username'],
- $databaseConnection['host'],
- $databaseConnection['port'],
- $databaseConnection['database']
- );
- }
-
- if ($learning) {
- $this->getIo()->commentBlock($command);
- }
-
- $processBuilder = new ProcessBuilder(['-v']);
- $process = $processBuilder->getProcess();
- $process->setWorkingDirectory($this->appRoot);
- $process->setTty($input->isInteractive());
- $process->setCommandLine($command);
- $process->run();
-
- if (!$process->isSuccessful()) {
- throw new \RuntimeException($process->getErrorOutput());
- }
-
- $this->getIo()->success(
- sprintf(
- '%s %s',
- $this->trans('commands.database.restore.messages.success'),
- $file
- )
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/BreakpointsCommand.php b/vendor/drupal/console/src/Command/Debug/BreakpointsCommand.php
deleted file mode 100644
index d266fa74e..000000000
--- a/vendor/drupal/console/src/Command/Debug/BreakpointsCommand.php
+++ /dev/null
@@ -1,116 +0,0 @@
-breakpointManager = $breakpointManager;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:breakpoints')
- ->setDescription($this->trans('commands.debug.breakpoints.description'))
- ->addArgument(
- 'group',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.breakpoints.options.group-name')
- )->setAliases(['dbre']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $group = $input->getArgument('group');
- if ($group) {
- $breakPointData = $this->getBreakpointByName($group);
- foreach ($breakPointData as $key => $breakPoint) {
- $this->getIo()->comment($key, false);
- $this->getIo()->block(Yaml::dump($breakPoint));
- }
-
- return 0;
- }
- $groups = array_keys($this->breakpointManager->getGroups());
-
- $tableHeader = [
- $this->trans('commands.debug.breakpoints.messages.name'),
- ];
-
- $this->getIo()->table($tableHeader, $groups, 'compact');
-
- return 0;
- }
-
- /**
- * @param $group String
- * @return mixed
- */
- private function getBreakpointByName($group)
- {
- $typeExtension = implode(
- ',',
- array_values($this->breakpointManager->getGroupProviders($group))
- );
-
- $projectPath = drupal_get_path($typeExtension, $group);
-
- $extensionFile = sprintf(
- '%s/%s/%s.breakpoints.yml',
- $this->appRoot,
- $projectPath,
- $group
- );
-
- return Yaml::parse(
- file_get_contents($extensionFile)
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/CacheContextCommand.php b/vendor/drupal/console/src/Command/Debug/CacheContextCommand.php
deleted file mode 100644
index 64ff8a5f1..000000000
--- a/vendor/drupal/console/src/Command/Debug/CacheContextCommand.php
+++ /dev/null
@@ -1,60 +0,0 @@
-setName('debug:cache:context')
- ->setDescription($this->trans('commands.debug.cache.context.description'))
- ->setAliases(['dcc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $contextManager = $this->get('cache_contexts_manager');
-
- $tableHeader = [
- $this->trans('commands.debug.cache.context.messages.code'),
- $this->trans('commands.debug.cache.context.messages.label'),
- $this->trans('commands.debug.cache.context.messages.class'),
- ];
-
- $tableRows = [];
-
- foreach ($contextManager->getAll() as $code) {
- $context = $this->get('cache_context.'.$code);
- $tableRows[] = [
- $code,
- $context->getLabel()->render(),
- get_class($context),
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ConfigCommand.php b/vendor/drupal/console/src/Command/Debug/ConfigCommand.php
deleted file mode 100644
index 129f097fc..000000000
--- a/vendor/drupal/console/src/Command/Debug/ConfigCommand.php
+++ /dev/null
@@ -1,132 +0,0 @@
-configFactory = $configFactory;
- $this->configStorage = $configStorage;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:config')
- ->setDescription($this->trans('commands.debug.config.description'))
- ->addArgument(
- 'name',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.config.arguments.name')
- )
- ->addOption(
- 'show-overridden',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.debug.config.options.show-overridden')
- )
- ->setAliases(['dc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $configName = $input->getArgument('name');
- $showOverridden = $input->getOption('show-overridden');
-
- if (!$configName) {
- $this->getAllConfigurations();
- } else {
- $this->getConfigurationByName($configName, $showOverridden);
- }
- }
-
- private function getAllConfigurations()
- {
- $names = $this->configFactory->listAll();
- $tableHeader = [
- $this->trans('commands.debug.config.arguments.name'),
- ];
- $tableRows = [];
- foreach ($names as $name) {
- $tableRows[] = [
- $name,
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-
- /**
- * @param $config_name String
- * @param $showOverridden bool
- */
- private function getConfigurationByName($config_name, $showOverridden = false)
- {
- if ($this->configStorage->exists($config_name)) {
- $tableHeader = [
- $config_name,
- ];
- $configuration = $this->configStorage->read($config_name);
- if ($showOverridden) {
- $configurationKeys = array_keys($configuration);
- foreach ($configurationKeys as $configurationKey) {
- $configuration[$configurationKey] = $this->configFactory
- ->get($config_name)
- ->get($configurationKey);
- }
- }
-
- $configurationEncoded = Yaml::encode($configuration);
- $tableRows = [];
- $tableRows[] = [
- $configurationEncoded,
- ];
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- } else {
- $this->getIo()->error(
- sprintf($this->trans('commands.debug.config.errors.not-exists'), $config_name)
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ConfigSettingsCommand.php b/vendor/drupal/console/src/Command/Debug/ConfigSettingsCommand.php
deleted file mode 100644
index 00780cff5..000000000
--- a/vendor/drupal/console/src/Command/Debug/ConfigSettingsCommand.php
+++ /dev/null
@@ -1,72 +0,0 @@
-settings = $settings;
- ;
- parent::__construct();
- }
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:config:settings')
- ->setDescription($this->trans('commands.debug.config.settings.description'))
- ->setHelp($this->trans('commands.debug.config.settings.help'))
- ->setAliases(['dcs']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $settingKeys = array_keys($this->settings->getAll());
-
- $this->getIo()->newLine();
- $this->getIo()->info($this->trans('commands.debug.config.settings.messages.current'));
- $this->getIo()->newLine();
-
- foreach ($settingKeys as $settingKey) {
- $settingValue = $this->settings->get($settingKey);
- $this->getIo()->comment($settingKey . ': ', is_array($settingValue));
- $this->getIo()->write(Yaml::encode($settingValue));
- if (!is_array($settingValue)) {
- $this->getIo()->newLine();
- }
- }
- $this->getIo()->newLine();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ConfigValidateCommand.php b/vendor/drupal/console/src/Command/Debug/ConfigValidateCommand.php
deleted file mode 100644
index 7d0cf8e7d..000000000
--- a/vendor/drupal/console/src/Command/Debug/ConfigValidateCommand.php
+++ /dev/null
@@ -1,114 +0,0 @@
-setName('debug:config:validate')
- ->setDescription($this->trans('commands.debug.config.validate.description'))
- ->addArgument(
- 'filepath',
- InputArgument::REQUIRED
- )
- ->addArgument(
- 'schema-filepath',
- InputArgument::REQUIRED
- )
- ->addOption(
- 'schema-name',
- 'sch',
- InputOption::VALUE_REQUIRED
- )->setAliases(['dcv']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- /**
- * @var TypedConfigManagerInterface $typedConfigManager
- */
- $typedConfigManager = $this->get('config.typed');
-
- //Validate config file path
- $configFilePath = $input->getArgument('filepath');
- if (!file_exists($configFilePath)) {
- $this->getIo()->info($this->trans('commands.debug.config.validate.messages.noConfFile'));
- return 1;
- }
-
- //Validate schema path
- $configSchemaFilePath = $input->getArgument('schema-filepath');
- if (!file_exists($configSchemaFilePath)) {
- $this->getIo()->info($this->trans('commands.debug.config.validate.messages.noConfSchema'));
- return 1;
- }
-
- $config = Yaml::decode(file_get_contents($configFilePath));
- $schema = Yaml::decode(file_get_contents($configSchemaFilePath));
-
- //Get the schema name and check it exists in the schema array
- $schemaName = $this->getSchemaName($configFilePath);
- if (!array_key_exists($schemaName, $schema)) {
- $this->getIo()->warning($this->trans('commands.debug.config.validate.messages.noSchemaName') . $schemaName);
- return 1;
- }
-
- return $this->printResults($this->manualCheckConfigSchema($typedConfigManager, $config, $schema[$schemaName]));
- }
-
- private function getSchemaName($configFilePath)
- {
- $schemaName = $this->getIo()->getInput()->getOption('schema-name');
- if ($schemaName === null) {
- $schema_name = end(explode('/', $configFilePath));
- $schemaName = substr($schema_name, 0, -4);
- }
- return $schemaName;
- }
-
- private function manualCheckConfigSchema(TypedConfigManagerInterface $typed_config, $config_data, $config_schema)
- {
- $data_definition = $typed_config->buildDataDefinition($config_schema, $config_data);
- $this->schema = $typed_config->create($data_definition, $config_data);
- $errors = [];
- foreach ($config_data as $key => $value) {
- $errors = array_merge($errors, $this->checkValue($key, $value));
- }
- if (empty($errors)) {
- return true;
- }
-
- return $errors;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ContainerCommand.php b/vendor/drupal/console/src/Command/Debug/ContainerCommand.php
deleted file mode 100644
index 17e2bcf63..000000000
--- a/vendor/drupal/console/src/Command/Debug/ContainerCommand.php
+++ /dev/null
@@ -1,298 +0,0 @@
-setName('debug:container')
- ->setDescription($this->trans('commands.debug.container.description'))
- ->addOption(
- 'parameters',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.debug.container.arguments.service')
- )
- ->addArgument(
- 'service',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.container.arguments.service')
- )->addArgument(
- 'method',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.container.arguments.method')
- )->addArgument(
- 'arguments',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.container.arguments.arguments')
- )->addOption(
- 'tag',
- null,
- InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.container.options.tag')
- )
- ->setAliases(['dco']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $service = $input->getArgument('service');
- $parameters = $input->getOption('parameters');
- $tag = $input->getOption('tag');
- $method = $input->getArgument('method');
- $args = $input->getArgument('arguments');
-
- if ($parameters) {
- $parameterList = $this->getParameterList();
- ksort($parameterList);
- $this->getIo()->write(Yaml::dump(['parameters' => $parameterList], 4, 2));
-
- return 0;
- }
-
- if ($method) {
- $tableHeader = [];
- $callbackRow = $this->getCallbackReturnList($service, $method, $args);
- $this->getIo()->table($tableHeader, $callbackRow, 'compact');
-
- return 0;
- } else {
- $tableHeader = [];
- if ($service) {
- $tableRows = $this->getServiceDetail($service);
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
-
- return 0;
- }
-
- $tableHeader = [
- $this->trans('commands.debug.container.messages.service-id'),
- $this->trans('commands.debug.container.messages.class-name')
- ];
- $tableRows = $this->getServiceList($tag);
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-
- return 0;
- }
-
- private function getCallbackReturnList($service, $method, $args)
- {
- if ($args != null) {
- $parsedArgs = json_decode($args, true);
- if (!is_array($parsedArgs)) {
- $parsedArgs = explode(",", $args);
- }
- } else {
- $parsedArgs = null;
- }
- $serviceInstance = \Drupal::service($service);
-
- if (!method_exists($serviceInstance, $method)) {
- throw new \Symfony\Component\DependencyInjection\Exception\BadMethodCallException($this->trans('commands.debug.container.errors.method-not-exists'));
-
- return $serviceDetail;
- }
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.service').'>',
- ''.$service.'>'
- ];
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.class').'>',
- ''.get_class($serviceInstance).'>'
- ];
- $methods = [$method];
- $this->extendArgumentList($serviceInstance, $methods);
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.method').'>',
- ''.$methods[0].'>'
- ];
- if ($parsedArgs) {
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.arguments').'>',
- json_encode($parsedArgs, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)
- ];
- }
- $return = call_user_func_array([$serviceInstance,$method], $parsedArgs);
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.return').'>',
- json_encode($return, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)
- ];
- return $serviceDetail;
- }
-
- private function getServiceList($tag)
- {
- if ($tag) {
- return $this->getServiceListByTag($tag);
- }
-
- $services = [];
- $serviceDefinitions = $this->container->getDefinitions();
-
- foreach ($serviceDefinitions as $serviceId => $serviceDefinition) {
- $services[] = [$serviceId, $serviceDefinition->getClass()];
- }
- usort($services, [$this, 'compareService']);
- return $services;
- }
-
- private function getServiceListByTag($tag)
- {
- $services = [];
- $serviceIds = [];
- $serviceDefinitions = $this->container->getDefinitions();
-
- foreach ($tag as $tagId) {
- $serviceIds = array_merge(
- $serviceIds,
- array_keys($this->container->findTaggedServiceIds($tagId))
- );
- }
-
- foreach ($serviceIds as $serviceId) {
- $serviceDefinition = $serviceDefinitions[$serviceId];
- if ($serviceDefinition) {
- $services[] = [$serviceId, $serviceDefinition->getClass()];
- }
- }
-
- usort($services, [$this, 'compareService']);
- return $services;
- }
-
- private function compareService($a, $b)
- {
- return strcmp($a[0], $b[0]);
- }
-
- private function getServiceDetail($service)
- {
- $serviceInstance = $this->get($service);
- $serviceDetail = [];
-
- if ($serviceInstance) {
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.service').'>',
- ''.$service.'>'
- ];
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.class').'>',
- ''.get_class($serviceInstance).'>'
- ];
- $interface = str_replace("{ }", "", Yaml::dump(class_implements($serviceInstance)));
- if (!empty($interface)) {
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.interface').'>',
- ''.$interface.'>'
- ];
- }
- if ($parent = get_parent_class($serviceInstance)) {
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.parent').'>',
- ''.$parent.'>'
- ];
- }
- if ($vars = get_class_vars($serviceInstance)) {
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.variables').'>',
- ''.Yaml::dump($vars).'>'
- ];
- }
- if ($methods = get_class_methods($serviceInstance)) {
- sort($methods);
- $this->extendArgumentList($serviceInstance, $methods);
- $serviceDetail[] = [
- ''.$this->trans('commands.debug.container.messages.methods').'>',
- ''.implode("\n", $methods).'>'
- ];
- }
- } else {
- throw new \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException($service);
-
- return $serviceDetail;
- }
-
- return $serviceDetail;
- }
- private function extendArgumentList($serviceInstance, &$methods)
- {
- foreach ($methods as $k => $m) {
- $reflection = new \ReflectionMethod($serviceInstance, $m);
- $params = $reflection->getParameters();
- $p = [];
-
- for ($i = 0; $i < count($params); $i++) {
- if ($params[$i]->isDefaultValueAvailable()) {
- $defaultVar = $params[$i]->getDefaultValue();
- $defaultVar = " = ".str_replace(["\n","array ("], ["", "array("], var_export($def, true)).'>';
- } else {
- $defaultVar = '';
- }
- if (method_exists($params[$i], 'hasType') && method_exists($params[$i], 'getType')) {
- if ($params[$i]->hasType()) {
- $defaultType = ''.strval($params[$i]->getType()).'> ';
- } else {
- $defaultType = '';
- }
- } else {
- $defaultType = '';
- }
- if ($params[$i]->isPassedByReference()) {
- $parameterReference = '&>';
- } else {
- $parameterReference = '';
- }
- $p[] = $defaultType.$parameterReference.''.'$>'.$params[$i]->getName().'>'.$defaultVar;
- }
- if ($reflection->isPublic()) {
- $methods[$k] = ''.$methods[$k].">(>".implode(', ', $p).") > ";
- }
- }
- }
-
- private function getParameterList()
- {
- $parameters = array_filter(
- $this->container->getParameterBag()->all(), function ($name) {
- if (preg_match('/^container\./', $name)) {
- return false;
- }
- if (preg_match('/^drupal\./', $name)) {
- return false;
- }
- if (preg_match('/^console\./', $name)) {
- return false;
- }
- return true;
- }, ARRAY_FILTER_USE_KEY
- );
-
- return $parameters;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/CronCommand.php b/vendor/drupal/console/src/Command/Debug/CronCommand.php
deleted file mode 100644
index b6debe1b7..000000000
--- a/vendor/drupal/console/src/Command/Debug/CronCommand.php
+++ /dev/null
@@ -1,59 +0,0 @@
-moduleHandler = $moduleHandler;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:cron')
- ->setDescription($this->trans('commands.debug.cron.description'))
- ->setAliases(['dcr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->getIo()->section(
- $this->trans('commands.debug.cron.messages.module-list')
- );
-
- $this->getIo()->table(
- [ $this->trans('commands.debug.cron.messages.module') ],
- $this->moduleHandler->getImplementations('cron'),
- 'compact'
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/DatabaseLogCommand.php b/vendor/drupal/console/src/Command/Debug/DatabaseLogCommand.php
deleted file mode 100644
index 10d69b85f..000000000
--- a/vendor/drupal/console/src/Command/Debug/DatabaseLogCommand.php
+++ /dev/null
@@ -1,168 +0,0 @@
-setName('debug:database:log')
- ->setDescription($this->trans('commands.debug.database.log.description'));
-
- $this->addDefaultLoggingOptions();
-
- $this
- ->addArgument(
- 'event-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.database.log.arguments.event-id')
- )
- ->addOption(
- 'asc',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.debug.database.log.options.asc')
- )
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.database.log.options.limit')
- )
- ->addOption(
- 'offset',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.database.log.options.offset'),
- 0
- )
- ->addOption(
- 'yml',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.debug.database.log.options.yml'),
- null
- )
- ->setAliases(['dbb']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->getDefaultOptions($input);
- $this->eventId = $input->getArgument('event-id');
- $this->asc = $input->getOption('asc');
- $this->limit = $input->getOption('limit');
- $this->offset = $input->getOption('offset');
- $this->ymlStyle = $input->getOption('yml');
-
- if ($this->eventId) {
- return $this->getEventDetails();
- } else {
- return $this->getAllEvents();
- }
- }
-
- /**
- * @param $eventId
- * @return bool
- */
- private function getEventDetails()
- {
- $dblog = $this->database
- ->query(
- 'SELECT w.*, u.uid FROM {watchdog} w LEFT JOIN {users} u ON u.uid = w.uid WHERE w.wid = :id',
- [':id' => $this->eventId]
- )
- ->fetchObject();
-
- if (!$dblog) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.database.log.messages.not-found'),
- $this->eventId
- )
- );
- return 1;
- }
-
- if ($this->ymlStyle) {
- $this->getIo()->writeln(Yaml::encode($this->formatSingle($dblog)));
- } else {
- $this->getIo()->table(
- $this->createTableHeader(),
- [$this->createTableRow($dblog)]
- );
- }
- }
-
- /**
- * @return bool
- */
- private function getAllEvents()
- {
- $query = $this->makeQuery();
-
- $result = $query->execute();
-
- $tableRows = [];
- foreach ($result as $dblog) {
- $tableRows[] = $this->createTableRow($dblog);
- }
-
- $this->getIo()->table(
- $this->createTableHeader(),
- $tableRows
- );
-
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/DatabaseTableCommand.php b/vendor/drupal/console/src/Command/Debug/DatabaseTableCommand.php
deleted file mode 100644
index 5f0768e1b..000000000
--- a/vendor/drupal/console/src/Command/Debug/DatabaseTableCommand.php
+++ /dev/null
@@ -1,126 +0,0 @@
-database = $database;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:database:table')
- ->setDescription($this->trans('commands.debug.database.table.description'))
- ->addOption(
- 'database',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.database.table.options.database'),
- 'default'
- )
- ->addArgument(
- 'table',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.database.table.arguments.table'),
- null
- )
- ->setHelp($this->trans('commands.debug.database.table.help'))
- ->setAliases(['ddt']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $database = $input->getOption('database');
- $table = $input->getArgument('table');
- $databaseConnection = $this->resolveConnection($database);
- if ($table) {
- $result = $this->database
- ->query('DESCRIBE '. $table .';')
- ->fetchAll();
- if (!$result) {
- throw new \Exception(
- sprintf(
- $this->trans('commands.debug.database.table.messages.no-connection'),
- $database
- )
- );
- }
-
- $tableHeader = [
- $this->trans('commands.debug.database.table.messages.column'),
- $this->trans('commands.debug.database.table.messages.type')
- ];
- $tableRows = [];
- foreach ($result as $record) {
- $column = json_decode(json_encode($record), true);
- $tableRows[] = [
- 'column' => $column['Field'],
- 'type' => $column['Type'],
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
-
- return 0;
- }
-
- $schema = $this->database->schema();
- $tables = $schema->findTables('%');
-
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.debug.database.table.messages.table-show'),
- $databaseConnection['database']
- )
- );
-
- $this->getIo()->table(
- [$this->trans('commands.debug.database.table.messages.table')],
- $tables
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/DotenvCommand.php b/vendor/drupal/console/src/Command/Debug/DotenvCommand.php
deleted file mode 100644
index a737a9d65..000000000
--- a/vendor/drupal/console/src/Command/Debug/DotenvCommand.php
+++ /dev/null
@@ -1,59 +0,0 @@
-drupalFinder = $drupalFinder;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this->setName('debug:dotenv')
- ->setDescription('Debug Dotenv debug values.');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $fs = new Filesystem();
- $envFile = $this->drupalFinder->getComposerRoot() . '/.env';
- if (!$fs->exists($envFile)) {
- $this->getIo()->warning('File '. $envFile . ' not found.');
-
- return 1;
- }
-
- $fileContent = file_get_contents($envFile);
- $this->getIo()->writeln($fileContent);
-
- $this->getIo()->warning('This command is deprecated use instead: `cat .env`');
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/EntityCommand.php b/vendor/drupal/console/src/Command/Debug/EntityCommand.php
deleted file mode 100644
index 89656120f..000000000
--- a/vendor/drupal/console/src/Command/Debug/EntityCommand.php
+++ /dev/null
@@ -1,90 +0,0 @@
-entityTypeRepository = $entityTypeRepository;
- $this->entityTypeManager = $entityTypeManager;
- parent::__construct();
- }
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:entity')
- ->setDescription($this->trans('commands.debug.entity.description'))
- ->addArgument(
- 'entity-type',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.entity.arguments.entity-type')
- )->setAliases(['de']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $entityType = $input->getArgument('entity-type');
-
- $tableHeader = [
- $this->trans('commands.debug.entity.table-headers.entity-name'),
- $this->trans('commands.debug.entity.table-headers.entity-type')
- ];
- $tableRows = [];
-
- $entityTypesLabels = $this->entityTypeRepository->getEntityTypeLabels(true);
-
- if ($entityType) {
- $entityTypes = [$entityType => $entityType];
- } else {
- $entityTypes = array_keys($entityTypesLabels);
- }
-
- foreach ($entityTypes as $entityTypeId) {
- $entities = array_keys($entityTypesLabels[$entityTypeId]);
- foreach ($entities as $entity) {
- $tableRows[$entity] = [
- $entity,
- $entityTypeId
- ];
- }
- }
-
- $this->getIo()->table($tableHeader, array_values($tableRows));
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/EventCommand.php b/vendor/drupal/console/src/Command/Debug/EventCommand.php
deleted file mode 100644
index 7979da52a..000000000
--- a/vendor/drupal/console/src/Command/Debug/EventCommand.php
+++ /dev/null
@@ -1,139 +0,0 @@
-eventDispatcher = $eventDispatcher;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:event')
- ->setDescription($this->trans('commands.debug.event.description'))
- ->addArgument(
- 'event',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.event.arguments.event'),
- null
- )
- ->setHelp($this->trans('commands.debug.event.blerp'))
- ->setAliases(['dev']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $events = array_keys($this->eventDispatcher->getListeners());
- $event = $input->getArgument('event');
-
- if ($event) {
- if (!in_array($event, $events)) {
- throw new \Exception(
- sprintf(
- $this->trans('commands.debug.event.messages.no-events'),
- $event
- )
- );
- }
-
- $dispatcher = $this->eventDispatcher->getListeners($event);
- $listeners = [];
-
- foreach ($dispatcher as $key => $value) {
- $reflection = new \ReflectionClass(get_class($value[0]));
- $className = $reflection->getName();
-
- if (!$reflection->hasMethod('getSubscribedEvents')) {
- $reflection = new \ReflectionClass($reflection->getParentClass());
- }
-
- $eventObject = $reflection->newInstanceWithoutConstructor();
- $reflectionMethod = new \ReflectionMethod(
- $reflection->getName(),
- 'getSubscribedEvents'
- );
-
- $subscribedEvents = $reflectionMethod->invoke(
- $eventObject
- );
-
- if (!is_array($subscribedEvents[$event])) {
- $subscribedEvents[$event] = [$subscribedEvents[$event]];
- }
-
- $subscribedEventData = [];
- foreach ($subscribedEvents[$event] as $subscribedEvent) {
- if (!is_array($subscribedEvent)) {
- $subscribedEvent = [$subscribedEvent, 0];
- }
- if ($subscribedEvent[0] == $value[1]) {
- $subscribedEventData = [
- $subscribedEvent[0] => isset($subscribedEvent[1])?$subscribedEvent[1]:0
- ];
- }
- }
-
- $listeners[] = [
- 'class' => $className,
- 'method' => $value[1],
- 'events' => rtrim(Yaml::dump($subscribedEventData, 4, 2))
- ];
- }
-
- $tableHeader = [
- $this->trans('commands.debug.event.messages.class'),
- $this->trans('commands.debug.event.messages.method'),
- ];
-
- $tableRows = [];
- foreach ($listeners as $key => $element) {
- $tableRows[] = [
- 'class' => $element['class'],
- 'events' => $element['events']
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
-
- return 0;
- }
-
- $this->getIo()->table(
- [$this->trans('commands.debug.event.messages.event')],
- $events
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/FeaturesCommand.php b/vendor/drupal/console/src/Command/Debug/FeaturesCommand.php
deleted file mode 100644
index caec77890..000000000
--- a/vendor/drupal/console/src/Command/Debug/FeaturesCommand.php
+++ /dev/null
@@ -1,62 +0,0 @@
-setName('debug:features')
- ->setDescription($this->trans('commands.debug.features.description'))
- ->addArgument(
- 'bundle',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.features.arguments.bundle')
- );
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $bundle= $input->getArgument('bundle');
-
- $tableHeader = [
- $this->trans('commands.debug.features.messages.bundle'),
- $this->trans('commands.debug.features.messages.name'),
- $this->trans('commands.debug.features.messages.machine-name'),
- $this->trans('commands.debug.features.messages.status'),
- $this->trans('commands.debug.features.messages.state'),
- ];
-
- $tableRows = [];
-
- $features = $this->getFeatureList($bundle);
-
- foreach ($features as $feature) {
- $tableRows[] = [$feature['bundle_name'],$feature['name'], $feature['machine_name'], $feature['status'],$feature['state']];
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ImageStylesCommand.php b/vendor/drupal/console/src/Command/Debug/ImageStylesCommand.php
deleted file mode 100644
index 4801c344e..000000000
--- a/vendor/drupal/console/src/Command/Debug/ImageStylesCommand.php
+++ /dev/null
@@ -1,92 +0,0 @@
-entityTypeManager = $entityTypeManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:image:styles')
- ->setDescription($this->trans('commands.debug.image.styles.description'))
- ->setAliases(['dis']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $imageStyle = $this->entityTypeManager->getStorage('image_style');
-
- $this->getIo()->newLine();
- $this->getIo()->comment(
- $this->trans('commands.debug.image.styles.messages.styles-list')
- );
-
- if ($imageStyle) {
- $this->imageStyleList($imageStyle);
- }
-
- return 0;
- }
-
- /**
- * @param $imageStyle
- */
- protected function imageStyleList($imageStyle)
- {
- $tableHeader = [
- $this->trans('commands.debug.image.styles.messages.styles-name'),
- $this->trans('commands.debug.image.styles.messages.styles-label')
- ];
-
- $tableRows = [];
-
- foreach ($imageStyle->loadMultiple() as $styles) {
- $tableRows[] = [
- $styles->get('name'),
- $styles->get('label')
- ];
- }
-
- $this->getIo()->table(
- $tableHeader,
- $tableRows
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/LibrariesCommand.php b/vendor/drupal/console/src/Command/Debug/LibrariesCommand.php
deleted file mode 100644
index 615378425..000000000
--- a/vendor/drupal/console/src/Command/Debug/LibrariesCommand.php
+++ /dev/null
@@ -1,155 +0,0 @@
-moduleHandler = $moduleHandler;
- $this->themeHandler = $themeHandler;
- $this->libraryDiscovery = $libraryDiscovery;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:libraries')
- ->setDescription($this->trans('commands.debug.libraries.description'))
- ->addArgument(
- 'group',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.libraries.options.name')
- )->setAliases(['dl']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $extension = $input->getArgument('group');
-
- if (!$extension) {
- $groups = $this->getAllLibraries();
-
- $tableRow = [];
-
- $tableHeader = [
- $this->trans('commands.debug.libraries.messages.extension'),
- $this->trans('commands.debug.libraries.messages.library'),
- ];
-
- foreach ($groups as $extension) {
- $library = $this->libraryDiscovery
- ->getLibrariesByExtension($extension);
-
- if (!$library) {
- continue;
- }
-
- if ($libraryKeys = array_keys($library)) {
- $libraryKeys = array_map(
- function ($value) use ($extension) {
- return $extension . '/' . $value;
- },
- $libraryKeys
- );
-
- $tableRow[] = [
- $extension,
- $libraryKeys = implode("\n", $libraryKeys) . "\n"
- ];
- }
- }
-
- $this->getIo()->table($tableHeader, $tableRow, 'default');
- } else {
- $libraryName = null;
- if ($library = explode('/', $extension)) {
- $extension = $library[0];
- $libraryName = $library[1];
- }
-
- $librariesData = $this->libraryDiscovery
- ->getLibrariesByExtension($extension);
-
- foreach ($librariesData as $key => $libraries) {
- if ($libraryName && $libraryName != $key) {
- continue;
- }
-
- $this->getIo()->writeln(''.$extension.'/'.$key.' ');
- $this->getIo()->writeln(Yaml::encode($libraries));
- }
- }
- }
-
- private function getAllLibraries()
- {
- $modules = $this->moduleHandler->getModuleList();
- $themes = $this->themeHandler->rebuildThemeData();
- $extensions = array_merge($modules, $themes);
- $libraries = [];
-
- foreach ($extensions as $extensionName => $extension) {
- $libraryFile = $extension->getPath() . '/' . $extensionName . '.libraries.yml';
- if (is_file($this->appRoot . '/' . $libraryFile)) {
- $libraries[$extensionName] = $this->libraryDiscovery->getLibrariesByExtension($extensionName);
- }
- }
-
- return array_keys($libraries);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/MigrateCommand.php b/vendor/drupal/console/src/Command/Debug/MigrateCommand.php
deleted file mode 100644
index 01f26048b..000000000
--- a/vendor/drupal/console/src/Command/Debug/MigrateCommand.php
+++ /dev/null
@@ -1,85 +0,0 @@
-pluginManagerMigration = $pluginManagerMigration;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('debug:migrate')
- ->setDescription($this->trans('commands.debug.migrate.description'))
- ->addArgument(
- 'tag',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.migrate.arguments.tag')
- )
- ->setAliases(['mid']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $drupal_version = 'Drupal ' . $input->getArgument('tag');
-
- $migrations = $this->getMigrations($drupal_version);
-
-
- $tableHeader = [
- $this->trans('commands.debug.migrate.messages.id'),
- $this->trans('commands.debug.migrate.messages.description'),
- $this->trans('commands.debug.migrate.messages.tags'),
- ];
-
- $tableRows = [];
- if (empty($migrations)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.migrate.messages.no-migrations'),
- count($migrations)
- )
- );
- }
- foreach ($migrations as $migration_id => $migration) {
- $tableRows[] = [$migration_id, $migration['description'], $migration['tags']];
- }
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ModuleCommand.php b/vendor/drupal/console/src/Command/Debug/ModuleCommand.php
deleted file mode 100644
index eee1fbd4a..000000000
--- a/vendor/drupal/console/src/Command/Debug/ModuleCommand.php
+++ /dev/null
@@ -1,197 +0,0 @@
-configurationManager = $configurationManager;
- $this->site = $site;
- $this->httpClient = $httpClient;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('debug:module')
- ->setDescription($this->trans('commands.debug.module.description'))
- ->addArgument(
- 'module',
- InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
- $this->trans('commands.debug.module.module')
- )
- ->addOption(
- 'status',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.module.options.status')
- )
- ->addOption(
- 'type',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.module.options.type')
- )
- ->setAliases(['dm']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->site->loadLegacyFile('/core/modules/system/system.module');
-
- $status = strtolower($input->getOption('status'));
- $type = strtolower($input->getOption('type'));
- $modules = strtolower($input->getArgument('module'));
-
- if ($modules) {
- $config = $this->configurationManager->getConfiguration();
- $repo = $config->get('application.composer.repositories.default');
-
- foreach ($modules as $module) {
- $url = sprintf(
- '%s/packages/drupal/%s.json',
- $config->get('application.composer.packages.default'),
- $module
- );
-
- try {
- $data = $this->httpClient->getUrlAsJson($repo . $url);
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.module.messages.no-results'),
- $module
- )
- );
-
- return 1;
- }
-
- $tableHeader = [
- ''.$data->package->name.' '
- ];
-
- $tableRows = [];
-
- $tableRows[] = [
- $data->package->description
- ];
-
- $tableRows[] = [
- ''.$this->trans('commands.debug.module.messages.total-downloads').' ',
- $data->package->downloads->total
- ];
-
- $tableRows[] = [
- ''.$this->trans('commands.debug.module.messages.total-monthly').' ',
- $data->package->downloads->monthly
- ];
-
- $tableRows[] = [
- ''.$this->trans('commands.debug.module.messages.total-daily').' ',
- $data->package->downloads->daily
- ];
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
- return 0;
- }
-
- if ($status == 'installed') {
- $status = 1;
- } elseif ($status == 'uninstalled') {
- $status = 0;
- } else {
- $status = -1;
- }
-
- if ($type == 'core') {
- $type = 'core';
- } elseif ($type == 'no-core') {
- $type = '';
- } else {
- $type = null;
- }
-
- $tableHeader = [
- $this->trans('commands.debug.module.messages.id'),
- $this->trans('commands.debug.module.messages.name'),
- $this->trans('commands.debug.module.messages.package'),
- $this->trans('commands.debug.module.messages.version'),
- $this->trans('commands.debug.module.messages.schema-version'),
- $this->trans('commands.debug.module.messages.status'),
- $this->trans('commands.debug.module.messages.origin'),
- ];
-
- $tableRows = [];
- $modules = system_rebuild_module_data();
- foreach ($modules as $module_id => $module) {
- if ($status >= 0 && $status != $module->status) {
- continue;
- }
-
- if ($type !== null && $type !== $module->origin) {
- continue;
- }
-
- $module_status = ($module->status) ? $this->trans('commands.debug.module.messages.installed') : $this->trans('commands.debug.module.messages.uninstalled');
- $module_origin = ($module->origin) ? $module->origin : 'no core';
- $schema_version = (drupal_get_installed_schema_version($module_id)!= -1?drupal_get_installed_schema_version($module_id): '');
-
- $tableRows [] = [
- $module_id,
- $module->info['name'],
- $module->info['package'],
- $module->info['version'],
- $schema_version,
- $module_status,
- $module_origin,
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/MultisiteCommand.php b/vendor/drupal/console/src/Command/Debug/MultisiteCommand.php
deleted file mode 100644
index f4fbd744b..000000000
--- a/vendor/drupal/console/src/Command/Debug/MultisiteCommand.php
+++ /dev/null
@@ -1,92 +0,0 @@
-appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- public function configure()
- {
- $this
- ->setName('debug:multisite')
- ->setDescription($this->trans('commands.debug.multisite.description'))
- ->setHelp($this->trans('commands.debug.multisite.help'))
- ->setAliases(['dmu']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $sites = [];
-
- $multiSiteFile = sprintf(
- '%s/sites/sites.php',
- $this->appRoot
- );
-
- if (file_exists($multiSiteFile)) {
- include $multiSiteFile;
- }
-
- if (!$sites) {
- $this->getIo()->error(
- $this->trans('commands.debug.multisite.messages.no-multisites')
- );
-
- return 1;
- }
-
- $this->getIo()->info(
- $this->trans('commands.debug.multisite.messages.site-format')
- );
-
- $tableHeader = [
- $this->trans('commands.debug.multisite.messages.site'),
- $this->trans('commands.debug.multisite.messages.directory'),
- ];
-
- $tableRows = [];
- foreach ($sites as $site => $directory) {
- $tableRows[] = [
- $site,
- $this->appRoot . '/sites/' . $directory
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/PermissionCommand.php b/vendor/drupal/console/src/Command/Debug/PermissionCommand.php
deleted file mode 100644
index 99acbb9c6..000000000
--- a/vendor/drupal/console/src/Command/Debug/PermissionCommand.php
+++ /dev/null
@@ -1,112 +0,0 @@
-setName('debug:permission')
- ->setDescription($this->trans('commands.debug.permission.description'))
- ->setHelp($this->trans('commands.debug.permission.help'))
- ->addArgument(
- 'role',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.permission.arguments.role')
- )->setAliases(['dp']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $role = $input->getArgument('role');
- // No role specified, show a list of ALL permissions.
- if (!$role) {
- $tableHeader = [
- $this->trans('commands.debug.permission.table-headers.permission-name'),
- $this->trans('commands.debug.permission.table-headers.permission-label'),
- $this->trans('commands.debug.permission.table-headers.permission-role')
- ];
- $tableRows = [];
- $permissions = \Drupal::service('user.permissions')->getPermissions();
- foreach ($permissions as $permission_name => $permission) {
- $tableRows[$permission_name] = [
- $permission_name,
- strip_tags($permission['title']->__toString()),
- implode(', ', $this->getRolesAssignedByPermission($permission_name))
- ];
- }
-
- ksort($tableRows);
- $this->getIo()->table($tableHeader, array_values($tableRows));
-
- return true;
- } else {
- $tableHeader = [
- $this->trans('commands.debug.permission.table-headers.permission-name'),
- $this->trans('commands.debug.permission.table-headers.permission-label')
- ];
- $tableRows = [];
- $permissions = \Drupal::service('user.permissions')->getPermissions();
- $roles = user_roles();
- if (empty($roles[$role])) {
- $message = sprintf($this->trans('commands.debug.permission.messages.role-error'), $role);
- $this->getIo()->error($message);
- return true;
- }
- $user_permission = $roles[$role]->getPermissions();
- foreach ($permissions as $permission_name => $permission) {
- if (in_array($permission_name, $user_permission)) {
- $tableRows[$permission_name] = [
- $permission_name,
- strip_tags($permission['title']->__toString())
- ];
- }
- }
- ksort($tableRows);
- $this->getIo()->table($tableHeader, array_values($tableRows));
- return true;
- }
- }
-
- /**
- * Get user roles Assigned by Permission.
- *
- * @param string $permission_name
- * Permission Name.
- *
- * @return array
- * User roles filtered by permission else empty array.
- */
- public function getRolesAssignedByPermission($permission_name)
- {
- $roles = user_roles();
- $roles_found = [];
- foreach ($roles as $role) {
- if ($role->hasPermission($permission_name)) {
- $roles_found[] = $role->getOriginalId();
- }
- }
- return $roles_found;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/PluginCommand.php b/vendor/drupal/console/src/Command/Debug/PluginCommand.php
deleted file mode 100644
index f6a661d8e..000000000
--- a/vendor/drupal/console/src/Command/Debug/PluginCommand.php
+++ /dev/null
@@ -1,125 +0,0 @@
-setName('debug:plugin')
- ->setDescription($this->trans('commands.debug.plugin.description'))
- ->setHelp($this->trans('commands.debug.plugin.help'))
- ->addArgument(
- 'type',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.plugin.arguments.type')
- )
- ->addArgument(
- 'id',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.plugin.arguments.id')
- )->setAliases(['dpl']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $pluginType = $input->getArgument('type');
- $pluginId = $input->getArgument('id');
-
- // No plugin type specified, show a list of plugin types.
- if (!$pluginType) {
- $tableHeader = [
- $this->trans('commands.debug.plugin.table-headers.plugin-type-name'),
- $this->trans('commands.debug.plugin.table-headers.plugin-type-class')
- ];
- $tableRows = [];
- $serviceDefinitions = $this->container->getDefinitions();
-
- foreach ($serviceDefinitions as $serviceId => $serviceDefinition) {
- if (strpos($serviceId, 'plugin.manager.') === 0) {
- $serviceName = substr($serviceId, 15);
- $tableRows[$serviceName] = [
- $serviceName,
- $serviceDefinition->getClass()
- ];
- }
- }
-
- ksort($tableRows);
- $this->getIo()->table($tableHeader, array_values($tableRows));
-
- return true;
- }
-
- $service = $this->container->get('plugin.manager.' . $pluginType);
- if (!$service) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.plugin.errors.plugin-type-not-found'),
- $pluginType
- )
- );
- return false;
- }
-
- // Valid plugin type specified, no ID specified, show list of instances.
- if (!$pluginId) {
- $tableHeader = [
- $this->trans('commands.debug.plugin.table-headers.plugin-id'),
- $this->trans('commands.debug.plugin.table-headers.plugin-class')
- ];
- $tableRows = [];
- foreach ($service->getDefinitions() as $definition) {
- $pluginId = $definition['id'];
- $className = $definition['class'];
- $tableRows[$pluginId] = [$pluginId, $className];
- }
- ksort($tableRows);
- $this->getIo()->table($tableHeader, array_values($tableRows));
- return true;
- }
-
- // Valid plugin type specified, ID specified, show the definition.
- $definition = $service->getDefinition($pluginId);
- $tableHeader = [
- $this->trans('commands.debug.plugin.table-headers.definition-key'),
- $this->trans('commands.debug.plugin.table-headers.definition-value')
- ];
- $tableRows = [];
- foreach ($definition as $key => $value) {
- if (is_object($value) && method_exists($value, '__toString')) {
- $value = (string) $value;
- } elseif (is_array($value) || is_object($value)) {
- $value = Yaml::dump($value);
- } elseif (is_bool($value)) {
- $value = ($value) ? 'TRUE' : 'FALSE';
- }
- $tableRows[$key] = [$key, $value];
- }
- ksort($tableRows);
- $this->getIo()->table($tableHeader, array_values($tableRows));
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/QueueCommand.php b/vendor/drupal/console/src/Command/Debug/QueueCommand.php
deleted file mode 100644
index 023af38c3..000000000
--- a/vendor/drupal/console/src/Command/Debug/QueueCommand.php
+++ /dev/null
@@ -1,101 +0,0 @@
-queueFactory = $queueFactory;
- $this->queueWorker = $queueWorker;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:queue')
- ->setDescription($this->trans('commands.debug.queue.description'))
- ->setAliases(['dq']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $tableHeader = [
- $this->trans('commands.debug.queue.messages.queue'),
- $this->trans('commands.debug.queue.messages.items'),
- $this->trans('commands.debug.queue.messages.class')
- ];
-
- $tableBody = $this->listQueues();
-
- $this->getIo()->table($tableHeader, $tableBody);
-
- return 0;
- }
-
- /**
- * listQueues.
- */
- private function listQueues()
- {
- $queues = [];
- foreach ($this->queueWorker->getDefinitions() as $name => $info) {
- $queues[$name] = $this->formatQueue($name);
- }
-
- return $queues;
- }
-
- /**
- * @param $name
- * @return array
- */
- private function formatQueue($name)
- {
- $q = $this->queueFactory->get($name);
-
- return [
- $name,
- $q->numberOfItems(),
- get_class($q)
- ];
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/RestCommand.php b/vendor/drupal/console/src/Command/Debug/RestCommand.php
deleted file mode 100644
index 1aaa6a7a3..000000000
--- a/vendor/drupal/console/src/Command/Debug/RestCommand.php
+++ /dev/null
@@ -1,171 +0,0 @@
-pluginManagerRest = $pluginManagerRest;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('debug:rest')
- ->setDescription($this->trans('commands.debug.rest.description'))
- ->addArgument(
- 'resource-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.rest.arguments.resource-id')
- )
- ->addOption(
- 'authorization',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.rest.options.status')
- )
- ->setAliases(['rede']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $resource_id = $input->getArgument('resource-id');
- $status = $input->getOption('authorization');
-
- if ($resource_id) {
- $this->restDetail($resource_id);
- } else {
- $this->restList($status);
- }
-
- return 0;
- }
-
- private function restDetail($resource_id)
- {
- $config = $this->getRestDrupalConfig();
-
- $plugin = $this->pluginManagerRest->getInstance(['id' => $resource_id]);
-
- if (empty($plugin)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.rest.messages.not-found'),
- $resource_id
- )
- );
-
- return false;
- }
-
- $resource = $plugin->getPluginDefinition();
-
- $configuration = [];
- $configuration[] = [
- $this->trans('commands.debug.rest.messages.id'),
- $resource['id']
- ];
- $configuration[] = [
- $this->trans('commands.debug.rest.messages.label'),
- (string) $resource['label']
- ];
- $configuration[] = [
- $this->trans('commands.debug.rest.messages.canonical-url'),
- $resource['uri_paths']['canonical']
- ];
- $configuration[] = [
- $this->trans('commands.debug.rest.messages.status'),
- (isset($config[$resource['id']])) ? $this->trans('commands.debug.rest.messages.enabled') : $this->trans('commands.debug.rest.messages.disabled')];
- $configuration[] = [
- $this->trans(
- sprintf(
- 'commands.debug.rest.messages.provider',
- $resource['provider']
- )
- )
- ];
-
- $this->getIo()->comment($resource_id);
- $this->getIo()->newLine();
-
- $this->getIo()->table([], $configuration, 'compact');
-
- $tableHeader = [
- $this->trans('commands.debug.rest.messages.rest-state'),
- $this->trans('commands.debug.rest.messages.supported-formats'),
- $this->trans('commands.debug.rest.messages.supported-auth'),
- ];
-
- $tableRows = [];
- foreach ($config[$resource['id']] as $method => $settings) {
- $tableRows[] = [
- $method,
- implode(', ', $settings['supported_formats']),
- implode(', ', $settings['supported-auth']),
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- protected function restList($status)
- {
- $rest_resources = $this->getRestResources($status);
-
- $tableHeader = [
- $this->trans('commands.debug.rest.messages.id'),
- $this->trans('commands.debug.rest.messages.label'),
- $this->trans('commands.debug.rest.messages.canonical-url'),
- $this->trans('commands.debug.rest.messages.status'),
- $this->trans('commands.debug.rest.messages.provider'),
- ];
-
- $tableRows = [];
- foreach ($rest_resources as $status => $resources) {
- foreach ($resources as $id => $resource) {
- $tableRows[] =[
- $id,
- $resource['label'],
- $resource['uri_paths']['canonical'],
- $status,
- $resource['provider'],
- ];
- }
- }
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/RolesCommand.php b/vendor/drupal/console/src/Command/Debug/RolesCommand.php
deleted file mode 100644
index c1b1d53b7..000000000
--- a/vendor/drupal/console/src/Command/Debug/RolesCommand.php
+++ /dev/null
@@ -1,72 +0,0 @@
-drupalApi = $drupalApi;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:roles')
- ->setDescription($this->trans('commands.debug.roles.description'))
- ->setAliases(['dusr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $roles = $this->drupalApi->getRoles();
-
- $tableHeader = [
- $this->trans('commands.debug.roles.messages.role-id'),
- $this->trans('commands.debug.roles.messages.role-name'),
- ];
-
- $tableRows = [];
- foreach ($roles as $roleId => $role) {
- $tableRows[] = [
- $roleId,
- $role
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/RouterCommand.php b/vendor/drupal/console/src/Command/Debug/RouterCommand.php
deleted file mode 100644
index 17cd7dc02..000000000
--- a/vendor/drupal/console/src/Command/Debug/RouterCommand.php
+++ /dev/null
@@ -1,133 +0,0 @@
-routeProvider = $routeProvider;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('debug:router')
- ->setDescription($this->trans('commands.debug.router.description'))
- ->addArgument(
- 'route-name',
- InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
- $this->trans('commands.debug.router.arguments.route-name')
- )
- ->setAliases(['dr']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $route_name = $input->getArgument('route-name');
-
- if ($route_name) {
- $this->getRouteByNames($route_name);
- } else {
- $this->getAllRoutes();
- }
- }
-
- protected function getAllRoutes()
- {
- $routes = $this->routeProvider->getAllRoutes();
-
- $tableHeader = [
- $this->trans('commands.debug.router.messages.name'),
- $this->trans('commands.debug.router.messages.path'),
- ];
-
- $tableRows = [];
- foreach ($routes as $route_name => $route) {
- $tableRows[] = [$route_name, $route->getPath()];
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-
- protected function getRouteByNames($route_name)
- {
- $routes = $this->routeProvider->getRoutesByNames($route_name);
-
- foreach ($routes as $name => $route) {
- $tableHeader = [
- $this->trans('commands.debug.router.messages.route'),
- ''.$name.' '
- ];
- $tableRows = [];
-
- $tableRows[] = [
- ''.$this->trans('commands.debug.router.messages.path').' ',
- $route->getPath(),
- ];
-
- $tableRows[] = [''.$this->trans('commands.debug.router.messages.defaults').' '];
- $attributes = $this->addRouteAttributes($route->getDefaults());
- foreach ($attributes as $attribute) {
- $tableRows[] = $attribute;
- }
-
- $tableRows[] = [''.$this->trans('commands.debug.router.messages.requirements').' '];
- $requirements = $this->addRouteAttributes($route->getRequirements());
- foreach ($requirements as $requirement) {
- $tableRows[] = $requirement;
- }
-
- $tableRows[] = [''.$this->trans('commands.debug.router.messages.options').' '];
- $options = $this->addRouteAttributes($route->getOptions());
- foreach ($options as $option) {
- $tableRows[] = $option;
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
- }
-
- protected function addRouteAttributes($attr, $attributes = null)
- {
- foreach ($attr as $key => $value) {
- if (is_array($value)) {
- $attributes[] = [
- ' '.$key,
- str_replace(
- '- ',
- '',
- Yaml::encode($value)
- )
- ];
- } else {
- $attributes[] = [' '.$key, $value];
- }
- }
-
- return $attributes;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/StateCommand.php b/vendor/drupal/console/src/Command/Debug/StateCommand.php
deleted file mode 100644
index 99b61afea..000000000
--- a/vendor/drupal/console/src/Command/Debug/StateCommand.php
+++ /dev/null
@@ -1,87 +0,0 @@
-state = $state;
- $this->keyValue = $keyValue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:state')
- ->setDescription($this->trans('commands.debug.state.description'))
- ->addArgument(
- 'key',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.state.arguments.key')
- )
- ->setHelp($this->trans('commands.debug.state.help'))
- ->setAliases(['dst']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $key = $input->getArgument('key');
-
- if ($key) {
- $this->getIo()->info($key);
- $this->getIo()->writeln(Yaml::encode($this->state->get($key)));
-
- return 0;
- }
-
- $tableHeader = [$this->trans('commands.debug.state.messages.key')];
- $keyStoreStates = array_keys($this->keyValue->get('state')->getAll());
- $this->getIo()->table($tableHeader, $keyStoreStates);
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/TestCommand.php b/vendor/drupal/console/src/Command/Debug/TestCommand.php
deleted file mode 100644
index 266276311..000000000
--- a/vendor/drupal/console/src/Command/Debug/TestCommand.php
+++ /dev/null
@@ -1,194 +0,0 @@
-test_discovery = $test_discovery;
- parent::__construct();
- }
-
-
- protected function configure()
- {
- $this
- ->setName('debug:test')
- ->setDescription($this->trans('commands.debug.test.description'))
- ->addArgument(
- 'group',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.test.options.group'),
- null
- )
- ->addOption(
- 'test-class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.test.arguments.test-class')
- )
- ->setAliases(['td']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- //Registers namespaces for disabled modules.
- $this->test_discovery->registerTestNamespaces();
-
- $testClass = $input->getOption('test-class');
- $group = $input->getArgument('group');
-
- if ($testClass) {
- $this->testDetail($testClass);
- } else {
- $this->testList($group);
- }
- }
-
- private function testDetail($test_class)
- {
- $testingGroups = $this->test_discovery->getTestClasses(null);
-
- $testDetails = null;
- foreach ($testingGroups as $testing_group => $tests) {
- foreach ($tests as $key => $test) {
- if ($test['name'] == $test_class) {
- $testDetails = $test;
- break;
- }
- }
- if ($testDetails !== null) {
- break;
- }
- }
-
- $class = null;
- if ($testDetails) {
- $class = new \ReflectionClass($test['name']);
- if (is_subclass_of($testDetails['name'], 'PHPUnit_Framework_TestCase')) {
- $testDetails['type'] = 'phpunit';
- } else {
- $testDetails = $this->test_discovery
- ->getTestInfo($testDetails['name']);
- $testDetails['type'] = 'simpletest';
- }
-
- $this->getIo()->comment($testDetails['name']);
-
- $testInfo = [];
- foreach ($testDetails as $key => $value) {
- $testInfo [] = [$key, $value];
- }
-
- $this->getIo()->table([], $testInfo);
-
- if ($class) {
- $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
- $this->getIo()->info($this->trans('commands.debug.test.messages.methods'));
- foreach ($methods as $method) {
- if ($method->class == $testDetails['name'] && strpos($method->name, 'test') === 0) {
- $this->getIo()->simple($method->name);
- }
- }
- }
- } else {
- $this->getIo()->error($this->trans('commands.debug.test.messages.not-found'));
- }
- }
-
- protected function testList($group)
- {
- $testingGroups = $this->test_discovery
- ->getTestClasses(null);
-
- if (empty($group)) {
- $tableHeader = [$this->trans('commands.debug.test.messages.group')];
- } else {
- $tableHeader = [
- $this->trans('commands.debug.test.messages.class'),
- $this->trans('commands.debug.test.messages.type')
- ];
-
- $this->getIo()->writeln(
- sprintf(
- '%s: %s',
- $this->trans('commands.debug.test.messages.group'),
- $group
- )
- );
- }
-
- $tableRows = [];
- foreach ($testingGroups as $testing_group => $tests) {
- if (empty($group)) {
- $tableRows[] =[$testing_group];
- continue;
- }
-
- if (!empty($group) && $group != $testing_group) {
- continue;
- }
-
- foreach ($tests as $test) {
- if (is_subclass_of($test['name'], 'PHPUnit_Framework_TestCase')) {
- $test['type'] = 'phpunit';
- } else {
- $test['type'] = 'simpletest';
- }
- $tableRows[] =[
- $test['name'],
- $test['type']
- ];
- }
- }
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
-
- if ($group) {
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.debug.test.messages.success-group'),
- $group
- )
- );
- } else {
- $this->getIo()->success(
- $this->trans('commands.debug.test.messages.success-groups')
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ThemeCommand.php b/vendor/drupal/console/src/Command/Debug/ThemeCommand.php
deleted file mode 100644
index f8a58682e..000000000
--- a/vendor/drupal/console/src/Command/Debug/ThemeCommand.php
+++ /dev/null
@@ -1,170 +0,0 @@
-configFactory = $configFactory;
- $this->themeHandler = $themeHandler;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('debug:theme')
- ->setDescription($this->trans('commands.debug.theme.description'))
- ->addArgument(
- 'theme',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.theme.arguments.theme')
- )
- ->setAliases(['dt']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $theme = $input->getArgument('theme');
- if ($theme) {
- $this->themeDetail($theme);
- } else {
- $this->themeList();
- }
- }
-
- protected function themeList()
- {
- $tableHeader = [
- $this->trans('commands.debug.theme.messages.theme-id'),
- $this->trans('commands.debug.theme.messages.theme-name'),
- $this->trans('commands.debug.theme.messages.status'),
- $this->trans('commands.debug.theme.messages.version'),
- ];
-
- $themes = $this->themeHandler->rebuildThemeData();
- $tableRows = [];
- foreach ($themes as $themeId => $theme) {
- $status = $this->getThemeStatus($theme);
- $tableRows[] = [
- $themeId,
- $theme->info['name'],
- $status,
- (isset($theme->info['version'])) ? $theme->info['version'] : '',
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- protected function themeDetail($themeId)
- {
- $theme = null;
- $themes = $this->themeHandler->rebuildThemeData();
-
- if (isset($themes[$themeId])) {
- $theme = $themes[$themeId];
- } else {
- foreach ($themes as $themeAvailableId => $themeAvailable) {
- if ($themeAvailable->info['name'] == $themeId) {
- $themeId = $themeAvailableId;
- $theme = $themeAvailable;
- break;
- }
- }
- }
-
- if ($theme) {
- $theme = $themes[$themeId];
- $status = $this->getThemeStatus($themeId);
-
- $this->getIo()->info($theme->info['name']);
-
- $this->getIo()->comment(
- sprintf(
- '%s : ',
- $this->trans('commands.debug.theme.messages.status')
- ),
- false
- );
- $this->getIo()->writeln($status);
- $this->getIo()->comment(
- sprintf(
- '%s : ',
- $this->trans('commands.debug.theme.messages.version')
- ),
- false
- );
- $this->getIo()->writeln($theme->info['version']);
- $this->getIo()->comment($this->trans('commands.debug.theme.messages.regions'));
- $tableRows = $this->addThemeAttributes($theme->info['regions'], $tableRows);
- $this->getIo()->table([], $tableRows);
- } else {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.theme.messages.invalid-theme'),
- $themeId
- )
- );
- }
- }
-
- protected function getThemeStatus($theme)
- {
- $defaultTheme = $this->configFactory->get('system.theme')->get('default');
-
- $status = ($theme->status)?$this->trans('commands.debug.theme.messages.installed'):$this->trans('commands.debug.theme.messages.uninstalled');
- if ($defaultTheme == $theme) {
- $status = $this->trans('commands.debug.theme.messages.default-theme');
- }
-
- return $status;
- }
-
- protected function addThemeAttributes($attr, $tableRows = [])
- {
- foreach ($attr as $key => $value) {
- if (is_array($value)) {
- $tableRows = $this->addThemeAttributes($value, $tableRows);
- } else {
- $tableRows[] = [
- $key,
- $value,
- ];
- }
- }
-
- return $tableRows;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ThemeKeysCommand.php b/vendor/drupal/console/src/Command/Debug/ThemeKeysCommand.php
deleted file mode 100644
index 69f8ab3af..000000000
--- a/vendor/drupal/console/src/Command/Debug/ThemeKeysCommand.php
+++ /dev/null
@@ -1,110 +0,0 @@
-themeRegistry = $themeRegistry;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('debug:theme:keys')
- ->setDescription($this->trans('commands.debug.theme.keys.description'))
- ->setHelp($this->trans('commands.debug.theme.keys.help'))
- ->addArgument(
- 'key',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.theme.keys.arguments.key')
- )
- ->setAliases(['dtk']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $key = $input->getArgument('key');
-
- if (!$key) {
- $this->themeKeysList();
- } else {
- $this->themeKeysDetail($key);
- }
- }
-
- protected function themeKeysList()
- {
- $tableHeader = [
- $this->trans('commands.debug.theme.keys.table-headers.key'),
- $this->trans('commands.debug.theme.keys.table-headers.provider-type'),
- $this->trans('commands.debug.theme.keys.table-headers.provider'),
- ];
-
- $tableRows = [];
- $keys = $this->themeRegistry->get();
- foreach ($keys as $key => $definition) {
- $tableRows[] = [
- $key,
- $this->trans('commands.debug.theme.keys.provider-types.' . strtr($definition['type'], '_', '-')),
- basename($definition['theme path']),
- ];
- }
- array_multisort($tableRows, array_column($tableRows, 0));
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- protected function themeKeysDetail($key)
- {
- $tableHeader = [
- $this->trans('commands.debug.theme.keys.table-headers.key'),
- $this->trans('commands.debug.theme.keys.table-headers.value')
- ];
-
- $keys = $this->themeRegistry->get();
- $definition = $keys[$key];
-
- $tableRows = [];
- foreach ($definition as $key => $value) {
- if (is_object($value) && method_exists($value, '__toString')) {
- $value = (string) $value;
- } elseif (is_array($value) || is_object($value)) {
- $value = Yaml::dump($value);
- } elseif (is_bool($value)) {
- $value = ($value) ? 'TRUE' : 'FALSE';
- }
- $tableRows[$key] = [$key, $value];
- }
- ksort($tableRows);
- $this->getIo()->table($tableHeader, array_values($tableRows));
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/UpdateCommand.php b/vendor/drupal/console/src/Command/Debug/UpdateCommand.php
deleted file mode 100644
index d0ff04ddc..000000000
--- a/vendor/drupal/console/src/Command/Debug/UpdateCommand.php
+++ /dev/null
@@ -1,163 +0,0 @@
-site = $site;
- $this->postUpdateRegistry = $postUpdateRegistry;
- parent::__construct();
- }
-
- /**
- * @inheritdoc
- */
- protected function configure()
- {
- $this
- ->setName('debug:update')
- ->setDescription($this->trans('commands.debug.update.description'))
- ->setAliases(['du']);
- }
-
- /**
- * @inheritdoc
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->site->loadLegacyFile('/core/includes/update.inc');
- $this->site->loadLegacyFile('/core/includes/install.inc');
-
- drupal_load_updates();
- update_fix_compatibility();
-
- $requirements = update_check_requirements();
- $severity = drupal_requirements_severity($requirements);
- $updates = update_get_update_list();
-
- $this->getIo()->newLine();
-
- if ($severity == REQUIREMENT_ERROR || ($severity == REQUIREMENT_WARNING)) {
- $this->populateRequirements($requirements);
- } elseif (empty($updates)) {
- $this->getIo()->info($this->trans('commands.debug.update.messages.no-updates'));
- } else {
- $this->populateUpdate($updates);
- $this->populatePostUpdate();
- }
- }
-
- /**
- * @param $requirements
- */
- private function populateRequirements($requirements)
- {
- $this->getIo()->info($this->trans('commands.debug.update.messages.requirements-error'));
-
- $tableHeader = [
- $this->trans('commands.debug.update.messages.severity'),
- $this->trans('commands.debug.update.messages.title'),
- $this->trans('commands.debug.update.messages.value'),
- $this->trans('commands.debug.update.messages.description'),
- ];
-
- $tableRows = [];
- foreach ($requirements as $requirement) {
- $minimum = in_array(
- $requirement['minimum schema'],
- [REQUIREMENT_ERROR, REQUIREMENT_WARNING]
- );
- if ((isset($requirement['minimum schema'])) && ($minimum)) {
- $tableRows[] = [
- $requirement['severity'],
- $requirement['title'],
- $requirement['value'],
- $requirement['description'],
- ];
- }
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- /**
- * @param $updates
- */
- private function populateUpdate($updates)
- {
- $this->getIo()->info($this->trans('commands.debug.update.messages.module-list'));
- $tableHeader = [
- $this->trans('commands.debug.update.messages.module'),
- $this->trans('commands.debug.update.messages.update-n'),
- $this->trans('commands.debug.update.messages.description')
- ];
- $tableRows = [];
- foreach ($updates as $module => $module_updates) {
- foreach ($module_updates['pending'] as $update_n => $update) {
- list(, $description) = explode($update_n . " - ", $update);
- $tableRows[] = [
- $module,
- $update_n,
- trim($description),
- ];
- }
- }
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- private function populatePostUpdate()
- {
- $this->getIo()->info(
- $this->trans('commands.debug.update.messages.module-list-post-update')
- );
- $tableHeader = [
- $this->trans('commands.debug.update.messages.module'),
- $this->trans('commands.debug.update.messages.post-update'),
- $this->trans('commands.debug.update.messages.description')
- ];
-
- $postUpdates = $this->postUpdateRegistry->getPendingUpdateInformation();
- $tableRows = [];
- foreach ($postUpdates as $module => $module_updates) {
- foreach ($module_updates['pending'] as $postUpdateFunction => $message) {
- $tableRows[] = [
- $module,
- $postUpdateFunction,
- $message,
- ];
- }
- }
- $this->getIo()->table($tableHeader, $tableRows);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/UserCommand.php b/vendor/drupal/console/src/Command/Debug/UserCommand.php
deleted file mode 100644
index 4139f1e50..000000000
--- a/vendor/drupal/console/src/Command/Debug/UserCommand.php
+++ /dev/null
@@ -1,187 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->entityQuery = $entityQuery;
- $this->drupalApi = $drupalApi;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:user')
- ->setDescription($this->trans('commands.debug.user.description'))
- ->addOption(
- 'uid',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.debug.user.options.uid')
- )
- ->addOption(
- 'username',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.debug.user.options.username')
- )
- ->addOption(
- 'mail',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.debug.user.options.mail')
- )
- ->addOption(
- 'roles',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.user.options.roles')
- )
- ->addOption(
- 'limit',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.user.options.limit')
- )->setAliases(['dus']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $roles = $input->getOption('roles');
- $limit = $input->getOption('limit');
-
- $uids = $this->splitOption($input->getOption('uid'));
- $usernames = $this->splitOption($input->getOption('username'));
- $mails = $this->splitOption($input->getOption('mail'));
-
- $userStorage = $this->entityTypeManager->getStorage('user');
- $systemRoles = $this->drupalApi->getRoles();
-
- $query = $this->entityQuery->get('user');
- $query->condition('uid', 0, '>');
- $query->sort('uid');
-
-
- // uid as option
- if (is_array($uids) && $uids) {
- $group = $query->andConditionGroup()
- ->condition('uid', $uids, 'IN');
- $query->condition($group);
- }
-
- // username as option
- if (is_array($usernames) && $usernames) {
- $group = $query->andConditionGroup()
- ->condition('name', $usernames, 'IN');
- $query->condition($group);
- }
-
- // mail as option
- if (is_array($mails) && $mails) {
- $group = $query->andConditionGroup()
- ->condition('mail', $mails, 'IN');
- $query->condition($group);
- }
-
- if ($roles) {
- $query->condition('roles', is_array($roles)?$roles:[$roles], 'IN');
- }
-
- if ($limit) {
- $query->range(0, $limit);
- }
-
- $results = $query->execute();
- $users = $userStorage->loadMultiple($results);
-
- $tableHeader = [
- $this->trans('commands.debug.user.messages.user-id'),
- $this->trans('commands.debug.user.messages.username'),
- $this->trans('commands.debug.user.messages.roles'),
- $this->trans('commands.debug.user.messages.status'),
- ];
-
- $tableRows = [];
- foreach ($users as $userId => $user) {
- $userRoles = [];
- foreach ($user->getRoles() as $userRole) {
- if ($systemRoles[$userRole]) {
- $userRoles[] = $systemRoles[$userRole];
- }
- }
-
- $status = $user->isActive()?$this->trans('commands.common.status.enabled'):$this->trans('commands.common.status.disabled');
- $tableRows[] = [
- $userId,
- $user->getUsername(),
- implode(', ', $userRoles),
- $status
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- //@TODO: this should be in src/Command/Shared/CommandTrait.php
- public function splitOption($option)
- {
- if (1 == count($option) && strpos($option[0], " ") >= 1) {
- return explode(" ", $option[0]);
- } else {
- return $option;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ViewsCommand.php b/vendor/drupal/console/src/Command/Debug/ViewsCommand.php
deleted file mode 100644
index 66a3d9a27..000000000
--- a/vendor/drupal/console/src/Command/Debug/ViewsCommand.php
+++ /dev/null
@@ -1,240 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->viewsDisplayManager = $viewsDisplayManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('debug:views')
- ->setDescription($this->trans('commands.debug.views.description'))
- ->addArgument(
- 'view-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.views.arguments.view-id')
- )
- ->addOption(
- 'tag',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.views.arguments.view-tag')
- )->addOption(
- 'status',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.debug.views.arguments.view-status')
- )
- ->setAliases(['vde']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $view_id = $input->getArgument('view-id');
- $view_tag = $input->getOption('tag');
- $view_status = $input->getOption('status');
-
- if ($view_status == $this->trans('commands.common.status.enabled')) {
- $view_status = 1;
- } elseif ($view_status == $this->trans('commands.common.status.disabled')) {
- $view_status = 0;
- } else {
- $view_status = -1;
- }
-
- if ($view_id) {
- $this->viewDetail($view_id);
- } else {
- $this->viewList($view_tag, $view_status);
- }
- }
-
-
- /**
- * @param $view_id
- * @return bool
- */
- private function viewDetail($view_id)
- {
- $view = $this->entityTypeManager->getStorage('view')->load($view_id);
-
- if (empty($view)) {
- $this->getIo()->error(sprintf($this->trans('commands.debug.views.messages.not-found'), $view_id));
-
- return false;
- }
-
- $configuration = [];
- $configuration [] = [$this->trans('commands.debug.views.messages.view-id'), $view->get('id')];
- $configuration [] = [$this->trans('commands.debug.views.messages.view-name'), (string) $view->get('label')];
- $configuration [] = [$this->trans('commands.debug.views.messages.tag'), $view->get('tag')];
- $configuration [] = [$this->trans('commands.debug.views.messages.status'), $view->status() ? $this->trans('commands.common.status.enabled') : $this->trans('commands.common.status.disabled')];
- $configuration [] = [$this->trans('commands.debug.views.messages.description'), $view->get('description')];
-
- $this->getIo()->comment($view_id);
-
- $this->getIo()->table([], $configuration);
-
- $tableHeader = [
- $this->trans('commands.debug.views.messages.display-id'),
- $this->trans('commands.debug.views.messages.display-name'),
- $this->trans('commands.debug.views.messages.display-description'),
- $this->trans('commands.debug.views.messages.display-paths'),
- ];
- $displays = $this->viewDisplayList($view);
-
- $this->getIo()->info(sprintf($this->trans('commands.debug.views.messages.display-list'), $view_id));
-
- $tableRows = [];
- foreach ($displays as $display_id => $display) {
- $tableRows[] = [
- $display_id,
- $display['name'],
- $display['description'],
- $this->viewDisplayPaths($view, $display_id),
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-
- /**
- * @param $tag
- * @param $status
- */
- protected function viewList($tag, $status)
- {
- $views = $this->entityTypeManager->getStorage('view')->loadMultiple();
-
- $tableHeader = [
- $this->trans('commands.debug.views.messages.view-id'),
- $this->trans('commands.debug.views.messages.view-name'),
- $this->trans('commands.debug.views.messages.tag'),
- $this->trans('commands.debug.views.messages.status'),
- $this->trans('commands.debug.views.messages.path')
- ];
-
- $tableRows = [];
- foreach ($views as $view) {
- if ($status != -1 && $view->status() != $status) {
- continue;
- }
-
- if (isset($tag) && $view->get('tag') != $tag) {
- continue;
- }
- $tableRows[] = [
- $view->get('id'),
- $view->get('label'),
- $view->get('tag'),
- $view->status() ? $this->trans('commands.common.status.enabled') : $this->trans('commands.common.status.disabled'),
- $this->viewDisplayPaths($view),
- ];
- }
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-
-
- /**
- * @param \Drupal\views\Entity\View $view
- * @param null $display_id
- * @return string
- */
- protected function viewDisplayPaths(View $view, $display_id = null)
- {
- $all_paths = [];
- $executable = $view->getExecutable();
- $executable->initDisplay();
- foreach ($executable->displayHandlers as $display) {
- if ($display->hasPath()) {
- $path = $display->getPath();
- if (strpos($path, '%') === false) {
- // @see Views should expect and store a leading /. See:
- // https://www.drupal.org/node/2423913
- $all_paths[] = '/'.$path;
- } else {
- $all_paths[] = '/'.$path;
- }
-
- if ($display_id !== null && $display_id == $display->getBaseId()) {
- return '/'.$path;
- }
- }
- }
-
- return implode(', ', array_unique($all_paths));
- }
-
- /**
- * @param \Drupal\views\Entity\View $view
- * @return array
- */
- protected function viewDisplayList(View $view)
- {
- $displays = [];
- foreach ($view->get('display') as $display) {
- $definition = $this->viewsDisplayManager->getDefinition($display['display_plugin']);
- if (!empty($definition['admin'])) {
- // Cast the admin label to a string since it is an object.
- $displays[$definition['id']]['name'] = (string) $definition['admin'];
- $displays[$definition['id']]['description'] = (string) $definition['help'];
- }
- }
- asort($displays);
-
- return $displays;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Debug/ViewsPluginsCommand.php b/vendor/drupal/console/src/Command/Debug/ViewsPluginsCommand.php
deleted file mode 100644
index 3a568b5b9..000000000
--- a/vendor/drupal/console/src/Command/Debug/ViewsPluginsCommand.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setName('debug:views:plugins')
- ->setDescription($this->trans('commands.debug.views.plugins.description'))
- ->addArgument(
- 'type',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.views.plugins.arguments.type')
- )->setAliases(['dvp']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $type = $input->getArgument('type');
-
- $this->pluginList($type);
- }
-
- /**
- * @param $type
- */
- protected function pluginList($type)
- {
- $plugins = Views::pluginList();
-
- $rows = [];
- foreach ($plugins as &$plugin) {
- if ($type && $plugin['type'] != $type) {
- continue;
- }
-
- $views = [];
- // Link each view name to the view itself.
- foreach ($plugin['views'] as $plugin_name => $view) {
- $views[] = $view;
- }
- $rows[] = [$plugin['type'], $plugin['title'], $plugin['provider'], implode(",", $views)];
- }
-
- // Sort rows by field name.
- ksort($rows);
-
-
- $tableHeader = [
- $this->trans('commands.debug.views.plugins.messages.type'),
- $this->trans('commands.debug.views.plugins.messages.name'),
- $this->trans('commands.debug.views.plugins.messages.provider'),
- $this->trans('commands.debug.views.plugins.messages.views'),
- ];
-
- $this->getIo()->table($tableHeader, $rows, 'compact');
- }
-}
diff --git a/vendor/drupal/console/src/Command/DevelDumperCommand.php b/vendor/drupal/console/src/Command/DevelDumperCommand.php
deleted file mode 100644
index 64558b50d..000000000
--- a/vendor/drupal/console/src/Command/DevelDumperCommand.php
+++ /dev/null
@@ -1,116 +0,0 @@
-develDumperPluginManager = $develDumperPluginManager;
-
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('devel:dumper')
- ->setDescription($this->trans('commands.devel.dumper.messages.change-devel-dumper-plugin'))
- ->addArgument(
- 'dumper',
- InputArgument::OPTIONAL,
- $this->trans('commands.devel.dumper.messages.name-devel-dumper-plugin')
- )->setAliases(['dd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- if (!\Drupal::moduleHandler()->moduleExists('devel')) {
- $this->getIo()->error($this->trans('commands.devel.dumper.messages.devel-must-be-installed'));
-
- return 1;
- }
-
- $dumper = $input->getArgument('dumper');
- if (!$dumper) {
- /* @var string[] $dumpKeys */
- $dumpKeys = $this->getDumperKeys();
-
- $dumper = $this->getIo()->choice(
- $this->trans('commands.devel.dumper.messages.select-debug-dumper'),
- $dumpKeys,
- 'kint', //Make kint the default for quick 'switchback'
- false
- );
-
- $input->setArgument('dumper', $dumper);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- //Check the dumper actually exists
- $dumper = $input->getArgument('dumper');
- $dumpKeys = $this->getDumperKeys();
- if (!in_array($dumper, $dumpKeys)) {
- $this->getIo()->error($this->trans('commands.devel.dumper.messages.dumper-not-exist'));
-
- return 1;
- }
- /* @var ConfigFactory $configFactory */
- $configFactory = \Drupal::configFactory();
- /* @var Config $develSettings */
- $develSettings = $configFactory->getEditable('devel.settings');
- $develSettings->set('devel_dumper', $dumper)->save();
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.devel.dumper.messages.devel-dumper-set'),
- $configFactory->get('devel.settings')->get('devel_dumper')
- )
- );
- }
-
- protected function getDumperKeys()
- {
- /* @var DevelDumperPluginManager $manager */
- $plugins = $this->develDumperPluginManager->getDefinitions();
- return array_keys($plugins);
- }
-}
diff --git a/vendor/drupal/console/src/Command/DockerInitCommand.php b/vendor/drupal/console/src/Command/DockerInitCommand.php
deleted file mode 100644
index 3ecef1808..000000000
--- a/vendor/drupal/console/src/Command/DockerInitCommand.php
+++ /dev/null
@@ -1,82 +0,0 @@
-generator = $generator;
- parent::__construct();
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('docker:init')
- ->setDescription(
- $this->trans('commands.docker.init.description')
- )
- ->setHelp($this->trans('commands.docker.init.description'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $io = new DrupalStyle($input, $output);
- $fs = new Filesystem();
- $dockerComposeFiles = [
- $this->drupalFinder->getComposerRoot() . '/docker-compose.yml',
- $this->drupalFinder->getComposerRoot() . '/docker-compose.yaml'
- ];
-
- $dockerComposeFile = $this->validateFileExists(
- $fs,
- $dockerComposeFiles,
- false
- );
-
- if (!$dockerComposeFile) {
- $dockerComposeFile = $this->drupalFinder->getComposerRoot() . '/docker-compose.yml';
- }
-
- $this->backUpFile($fs, $dockerComposeFile);
-
- $parameters = [
- 'docker_compose_file' => $dockerComposeFile
- ];
-
- $this->generator->setIo($io);
- $this->generator->generate($parameters);
- }
-
-}
diff --git a/vendor/drupal/console/src/Command/DotenvInitCommand.php b/vendor/drupal/console/src/Command/DotenvInitCommand.php
deleted file mode 100644
index 84e5346b3..000000000
--- a/vendor/drupal/console/src/Command/DotenvInitCommand.php
+++ /dev/null
@@ -1,188 +0,0 @@
- 'develop',
- 'database_name' => 'drupal',
- 'database_user' => 'drupal',
- 'database_password' => 'drupal',
- 'database_host' => 'mariadb',
- 'database_port' => '3306',
- 'host_name' => 'drupal.develop',
- 'host_port' => '80',
- 'drupal_root' => '/var/www/html',
- 'server_root' => '/var/www/html/web'
- ];
-
- /**
- * InitCommand constructor.
- *
- * @param DotenvInitGenerator $generator
- */
- public function __construct(
- DotenvInitGenerator $generator
- ) {
- $this->generator = $generator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this->setName('dotenv:init')
- ->setDescription($this->trans('commands.dotenv.init.description'))
- ->addOption(
- 'load-from-env',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.dotenv.init.options.load-from-env')
- )
- ->addOption(
- 'load-settings',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.dotenv.init.options.load-settings')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- foreach ($this->envParameters as $key => $value) {
- $this->envParameters[$key] = $this->getIo()->ask(
- 'Enter value for ' . strtoupper($key),
- $value
- );
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $fs = new Filesystem();
- $loadFromEnv = $input->getOption('load-from-env');
- $loadSettings = $input->getOption('load-settings');
- if ($loadFromEnv) {
- $this->envParameters['load_from_env'] = $loadFromEnv;
- }
- if ($loadSettings) {
- $this->envParameters['load_settings'] = $loadSettings;
- }
- $this->copySettingsFile($fs);
- $this->copyEnvFile($fs);
-
- $this->generator->setIo($this->getIo());
- $this->generator->generate($this->envParameters);
- }
-
- protected function copySettingsFile(Filesystem $fs)
- {
- $sourceFile = $this->drupalFinder
- ->getDrupalRoot() . '/sites/default/default.settings.php';
- $destinationFile = $this->drupalFinder
- ->getDrupalRoot() . '/sites/default/settings.php';
-
- $directory = dirname($sourceFile);
- $permissions = fileperms($directory);
- $fs->chmod($directory, 0755);
-
- $this->validateFileExists($fs, $sourceFile);
- $this->backUpFile($fs, $destinationFile);
-
- $fs->copy(
- $sourceFile,
- $destinationFile
- );
-
- $this->validateFileExists($fs, $destinationFile);
-
- include_once $this->drupalFinder->getDrupalRoot() . '/core/includes/bootstrap.inc';
- include_once $this->drupalFinder->getDrupalRoot() . '/core/includes/install.inc';
-
- $settings['config_directories'] = [
- CONFIG_SYNC_DIRECTORY => (object) [
- 'value' => Path::makeRelative(
- $this->drupalFinder->getComposerRoot() . '/config/sync',
- $this->drupalFinder->getDrupalRoot()
- ),
- 'required' => true,
- ],
- ];
-
- $settings['settings']['hash_salt'] = (object) [
- 'value' => Crypt::randomBytesBase64(55),
- 'required' => true,
- ];
-
- drupal_rewrite_settings($settings, $destinationFile);
-
- $this->showFileCreatedMessage($destinationFile);
-
- $fs->chmod($directory, $permissions);
- }
-
- private function copyEnvFile(Filesystem $fs)
- {
- $sourceFiles = [
- $this->drupalFinder->getComposerRoot() . '/example.gitignore',
- $this->drupalFinder->getComposerRoot() . '/.gitignore'
- ];
-
- $sourceFile = $this->validateFileExists($fs, $sourceFiles);
-
- $destinationFile = $this->drupalFinder
- ->getComposerRoot() . '/.gitignore';
-
- if ($sourceFile !== $destinationFile) {
- $this->backUpFile($fs, $destinationFile);
- }
-
- $fs->copy(
- $sourceFile,
- $destinationFile
- );
-
- $this->validateFileExists($fs, $destinationFile);
-
- $gitIgnoreContent = file_get_contents($destinationFile);
- $gitIgnoreDistFile = $this->drupalFinder->getComposerRoot() .
- $this->drupalFinder->getConsolePath() .
- 'templates/files/.gitignore.dist';
- $gitIgnoreDistContent = file_get_contents($gitIgnoreDistFile);
-
- if (strpos($gitIgnoreContent, '.env') === false) {
- file_put_contents(
- $destinationFile,
- $gitIgnoreContent .
- $gitIgnoreDistContent
- );
- }
-
- $this->showFileCreatedMessage($destinationFile);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Entity/DeleteCommand.php b/vendor/drupal/console/src/Command/Entity/DeleteCommand.php
deleted file mode 100644
index 12ca54d00..000000000
--- a/vendor/drupal/console/src/Command/Entity/DeleteCommand.php
+++ /dev/null
@@ -1,150 +0,0 @@
-entityTypeRepository = $entityTypeRepository;
- $this->entityTypeManager = $entityTypeManager;
- parent::__construct();
- }
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('entity:delete')
- ->setDescription($this->trans('commands.entity.delete.description'))
- ->addOption(
- 'all',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.entity.delete.options.all')
- )
- ->addArgument(
- 'entity-definition-id',
- InputArgument::REQUIRED,
- $this->trans('commands.entity.delete.arguments.entity-definition-id')
- )
- ->addArgument(
- 'entity-id',
- InputArgument::REQUIRED,
- $this->trans('commands.entity.delete.arguments.entity-id')
- )->setAliases(['ed']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $entityDefinitionID = $input->getArgument('entity-definition-id');
- $entityID = $input->getArgument('entity-id');
- $all = $input->getOption('all');
-
- if (!$entityDefinitionID) {
- $entityTypes = $this->entityTypeRepository->getEntityTypeLabels(true);
-
- $entityType = $this->getIo()->choice(
- $this->trans('commands.entity.delete.questions.entity-type'),
- array_keys($entityTypes)
- );
-
- $entityDefinitionID = $this->getIo()->choice(
- $this->trans('commands.entity.delete.questions.entity-definition-id'),
- array_keys($entityTypes[$entityType])
- );
-
- $input->setArgument('entity-definition-id', $entityDefinitionID);
- }
-
- if ($all) {
- $input->setArgument('entity-id', '-');
- } elseif (!$entityID) {
- $entityID = $this->getIo()->ask(
- $this->trans('commands.entity.delete.questions.entity-id')
- );
- $input->setArgument('entity-id', $entityID);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $entityDefinitionID = $input->getArgument('entity-definition-id');
-
- try {
- $storage = $this->entityTypeManager->getStorage($entityDefinitionID);
-
- if ($input->getOption('all')) {
- $entities = $storage->loadMultiple();
- if ($this->getIo()->confirm(
- sprintf(
- $this->trans('commands.entity.delete.messages.confirm-delete-all'),
- $entityDefinitionID,
- count($entities)
- )
- )
- ) {
- $storage->delete($entities);
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.entity.delete.messages.deleted-all'),
- $entityDefinitionID,
- count($entities)
- )
- );
- }
- } else {
- $entityID = $input->getArgument('entity-id');
- $storage->load($entityID)->delete();
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.entity.delete.messages.deleted'),
- $entityDefinitionID,
- $entityID
- )
- );
- }
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Features/ImportCommand.php b/vendor/drupal/console/src/Command/Features/ImportCommand.php
deleted file mode 100644
index b9760bd14..000000000
--- a/vendor/drupal/console/src/Command/Features/ImportCommand.php
+++ /dev/null
@@ -1,79 +0,0 @@
-setName('features:import')
- ->setDescription($this->trans('commands.features.import.description'))
- ->addOption(
- 'bundle',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.features.import.options.bundle')
- )
- ->addArgument(
- 'packages',
- InputArgument::IS_ARRAY,
- $this->trans('commands.features.import.arguments.packages')
- )->setAliases(['fei']);
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $packages = $input->getArgument('packages');
- $bundle = $input->getOption('bundle');
-
- if ($bundle) {
- $packages = $this->getPackagesByBundle($bundle);
- }
-
- $this->getAssigner($bundle);
- $this->importFeature($packages);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $packages = $input->getArgument('packages');
- $bundle = $input->getOption('bundle');
- if (!$packages) {
- // @see Drupal\Console\Command\Shared\FeatureTrait::packageQuestion
- $package = $this->packageQuestion($bundle);
- $input->setArgument('packages', $package);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Field/InfoCommand.php b/vendor/drupal/console/src/Command/Field/InfoCommand.php
deleted file mode 100644
index 10df663cd..000000000
--- a/vendor/drupal/console/src/Command/Field/InfoCommand.php
+++ /dev/null
@@ -1,287 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->entityFieldManager = $entityFieldManager;
- parent::__construct();
- }
-
- /**
- * @{@inheritdoc}
- */
- public function configure()
- {
- $this
- ->setName('field:info')
- ->setDescription($this->trans('commands.field.info.description'))
- ->setHelp($this->trans('commands.field.info.help'))
- ->addOption(
- 'detailed',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.field.info.options.detailed')
- )
- ->addOption(
- 'entity',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.field.info.options.entity')
- )
- ->addOption(
- 'bundle',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.field.info.options.bundle')
- )->setAliases(['fii']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // Retrieve whether detailed option has been selected.
- $detailedOutput = $input->getOption('detailed');
-
- // Retrieve whether an entity type has been specified.
- $entityTypeOption = $input->getOption('entity');
-
- // Retrieve whether a specific bundle type has been specified.
- $bundleTypeOption = $input->getOption('bundle');
-
- $entityList = $this->entityTypeManager->getDefinitions();
- $allFields = $this->entityFieldManager->getFieldMap();
-
- // Set a flag so we can error if a specific entity type selected but not found.
- $entityTypeOptionFound = false;
-
- // Set a flag so we can error if a specific bundle type selected but not found.
- $bundleTypeOptionFound = false;
-
- // Let's count the fields found so we can display a message if none found.
- $fieldCounter = 0;
-
- foreach ($entityList as $entityTypeId => $entityValue) {
- // If the Entity has bundleEntityType set we grab it.
- $bundleEntityType = $entityValue->get('bundle_entity_type');
-
- // Check to see if the entity has any bundle before continuing.
- if (!empty($bundleEntityType)) {
- $bundleTypes = $this->entityTypeManager
- ->getStorage($bundleEntityType)->loadMultiple();
-
- // If a specific entity type has been selected and this is it then we continue else we skip.
- if ((!empty($entityTypeOption) && ($entityTypeOption == $entityTypeId))| empty($entityTypeOption)
- ) {
- // Store the fact that we found the entity type specified so we can error if not found.
- $entityTypeOptionFound = true;
-
- // Get the entity type label.
- $bundleParent = $entityValue->get('label');
-
- // Using counter to know whether to output header.
- $bundleTypeCounter = 0;
- foreach ($bundleTypes as $bundleType) {
- // If a specific bundle type has been selected and this is it then we continue else we skip.
- if ((!empty($bundleTypeOption) && ($bundleTypeOption == $bundleType->id()))| empty($bundleTypeOption)
- ) {
- // Store the fact that we found the bundle type specified so we can error if not found.
- $bundleTypeOptionFound = true;
-
- // Increase the bundle type counter so we know whether to output header.
- $bundleTypeCounter++;
-
- if ($bundleTypeCounter == 1) {
- // Output the Parent Entity label if we haven't already.
- if ($detailedOutput) {
- // If detailed output then display the id as well.
- $this->getIo()->info(strtoupper($bundleParent) . ' (' . $entityTypeId . '):');
- } else {
- // otherwise just display the label for normal output.
- $this->getIo()->info(strtoupper($bundleParent . ':'));
- }
- $this->getIo()->newLine();
- }
-
- // Load in the entityType fields.
- $fields = $this->getBundleFields(
- $entityTypeId,
- $bundleType->id()
- );
-
- foreach ($fields as $field => $fieldArray) {
- // We found a field so increase the field counter.
- $fieldCounter++;
-
- // Get the related / used in bundles from the field.
- $relatedBundles = "";
- $relatedBundlesArray = $allFields[$entityTypeId][$field]['bundles'];
-
- // Turn those related / used in bundles array into a string.
- foreach ($relatedBundlesArray as $relatedBundlesValue) {
- if ($bundleTypes[$relatedBundlesValue]->id() != $bundleType->id()) {
- if (!empty($relatedBundles)) {
- $relatedBundles .= ', ' . $bundleTypes[$relatedBundlesValue]->label();
- } else {
- $relatedBundles = $bundleTypes[$relatedBundlesValue]->label();
- }
- }
- }
-
- // Build out our table for the fields.
- $tableRows[] = $detailedOutput ? [
- $fieldArray->get('label'),
- $fieldArray->get('field_type'),
- $fieldArray->get('description'),
- $relatedBundles
- ] : [
- $fieldArray->get('label'),
- $fieldArray->get('field_type'),
- $relatedBundles
- ];
-
- // Clear the related bundles ready for the next field.
- unset($relatedBundles);
- }
-
- // If detailed output then display bundle id and description.
- if ($detailedOutput) {
- // Output the bundle label and id.
- $this->getIo()->info($bundleType->label() . ' (' . $bundleType->id() . ')');
- $this->getIo()->info(strip_tags($bundleType->get('description')));
- } else {
- // Else just output the bundle label.
- $this->getIo()->info($bundleType->label());
- }
-
- // Fill out our table header.
- // If no rows exist for the fields then we display a no results message.
- if (!empty($tableRows)) {
- $tableHeader = $detailedOutput ? [
- $this->trans('commands.field.info.table.header-name'),
- $this->trans('commands.field.info.table.header-type'),
- $this->trans('commands.field.info.table.header-desc'),
- $this->trans('commands.field.info.table.header-usage')
- ] : [
- $this->trans('commands.field.info.table.header-name'),
- $this->trans('commands.field.info.table.header-type'),
- $this->trans('commands.field.info.table.header-usage')
- ];
- $this->getIo()->table($tableHeader, $tableRows);
- } else {
- $this->getIo()->comment(
- $this->trans('commands.field.info.messages.fields-none')
- . ' ' . $this->trans('commands.field.info.messages.in-bundle-type')
- . " '" . $bundleType->label() . "'"
- );
- }
-
- // Clear out the rows & headers arrays to start fresh.
- unset($tableHeader, $tableRows);
-
- // Create some space so the output looks nice.
- $this->getIo()->newLine();
- }
- }
- }
- }
- }
-
- // If entity type was specified but not found then display error message.
- if (!empty($entityTypeOption)) {
- if (!$entityTypeOptionFound) {
- $this->getIo()->comment(
- $this->trans('commands.field.info.messages.entity-type') .
- ' ' . $entityTypeOption . ' ' .
- $this->trans('commands.field.info.messages.not-found')
- );
- } elseif (!empty($bundleTypeOption) && !$bundleTypeOptionFound) {
- // If specified entity type found and bundle type specified but not found then display error message.
- $this->getIo()->comment(
- $this->trans('commands.field.info.messages.bundle-type') .
- ' ' . $bundleTypeOption . ' ' .
- $this->trans('commands.field.info.messages.not-found') .
- ' ' . $this->trans('commands.field.info.messages.in-entity-type') .
- ' ' . $entityTypeOption
- );
- }
- } elseif (!empty($bundleTypeOption) && !$bundleTypeOptionFound) {
- // If specified bundle type not found then display error message.
- $this->getIo()->comment(
- $this->trans('commands.field.info.messages.bundle-type') .
- ' ' . $bundleTypeOption . ' ' .
- $this->trans('commands.field.info.messages.not-found')
- );
- } elseif ($fieldCounter == 0) {
- // If no fields found then display appropriate message.
- $this->getIo()->comment($this->trans('commands.field.info.messages.fields-none'));
- }
-
- return 0;
- }
-
- /**
- * Helper function to get the field definitions.
- *
- * @param string $entityTypeId
- * The entity type we want to inspect.
- * @param string $bundle
- * The bundle we want to discover the fields of.
- * @return array
- * An array of field storage definitions for the entity type,
- * keyed by field name.
- */
- private function getBundleFields($entityTypeId, $bundle)
- {
- $fields = [];
- if (!empty($entityTypeId) && !empty($bundle)) {
- $fields = array_filter(
- $this->entityFieldManager->getFieldDefinitions($entityTypeId, $bundle),
- function ($fieldDefinition) {
- return $fieldDefinition instanceof FieldConfigInterface;
- }
- );
- }
-
- return $fields;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/AjaxCommand.php b/vendor/drupal/console/src/Command/Generate/AjaxCommand.php
deleted file mode 100644
index b6d70b138..000000000
--- a/vendor/drupal/console/src/Command/Generate/AjaxCommand.php
+++ /dev/null
@@ -1,181 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:ajax:command')
- ->setDescription($this->trans('commands.generate.ajax.command.description'))
- ->setHelp($this->trans('commands.generate.ajax.command.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.ajax.command.options.class')
- )
- ->addOption(
- 'method',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.ajax.command.options.method')
- )
- ->addOption(
- 'js-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.ajax.command.options.js-name')
- )
- ->setAliases(['gac']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class = $this->validator->validateClassName($input->getOption('class'));
- $method = $input->getOption('method');
- $js_name = $input->getOption('js-name');
-
- $this->generator->generate(
- [
- 'module' => $module,
- 'class_name' => $class,
- 'method' => $method,
- 'js_name' => $js_name,
- ]
- );
-
- // Run cache rebuild to see changes in Web UI
- $this->chainQueue->addCommand('router:rebuild', []);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.ajax.command.questions.class'),
- 'AjaxCommand',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --method option
- $method = $input->getOption('method');
- if (!$method) {
- $method = $this->getIo()->ask(
- $this->trans('commands.generate.ajax.command.questions.method'),
- 'hello'
- );
- $input->setOption('method', $method);
- }
-
- // --js-name option
- $js_name = $input->getOption('js-name');
- if (!$js_name) {
- $js_name = $this->getIo()->ask(
- $this->trans('commands.generate.ajax.command.questions.js-name'),
- 'script'
- );
- $input->setOption('js-name', $js_name);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/AuthenticationProviderCommand.php b/vendor/drupal/console/src/Command/Generate/AuthenticationProviderCommand.php
deleted file mode 100644
index b728fc4de..000000000
--- a/vendor/drupal/console/src/Command/Generate/AuthenticationProviderCommand.php
+++ /dev/null
@@ -1,152 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:authentication:provider')
- ->setDescription($this->trans('commands.generate.authentication.provider.description'))
- ->setHelp($this->trans('commands.generate.authentication.provider.help'))
- ->addOption('module', null, InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'))
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.authentication.provider.options.class')
- )
- ->addOption(
- 'provider-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.authentication.provider.options.provider-id')
- )
- ->setAliases(['gap']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class = $this->validator->validateClassName($input->getOption('class'));
- $provider_id = $input->getOption('provider-id');
-
- $this->generator->generate([
- 'module' => $module,
- 'class' => $class,
- 'provider_id' => $provider_id,
- ]);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $stringUtils = $this->stringConverter;
-
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans(
- 'commands.generate.authentication.provider.questions.class'
- ),
- 'DefaultAuthenticationProvider',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
- // --provider-id option
- $provider_id = $input->getOption('provider-id');
- if (!$provider_id) {
- $provider_id = $this->getIo()->ask(
- $this->trans('commands.generate.authentication.provider.questions.provider-id'),
- $stringUtils->camelCaseToUnderscore($class),
- function ($value) use ($stringUtils) {
- if (!strlen(trim($value))) {
- throw new \Exception('The Class name can not be empty');
- }
-
- return $stringUtils->camelCaseToUnderscore($value);
- }
- );
- $input->setOption('provider-id', $provider_id);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/BreakPointCommand.php b/vendor/drupal/console/src/Command/Generate/BreakPointCommand.php
deleted file mode 100644
index 0f0c2fa54..000000000
--- a/vendor/drupal/console/src/Command/Generate/BreakPointCommand.php
+++ /dev/null
@@ -1,172 +0,0 @@
-generator = $generator;
- $this->appRoot = $appRoot;
- $this->themeHandler = $themeHandler;
- $this->validator = $validator;
- $this->stringConverter = $stringConverter;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:breakpoint')
- ->setDescription($this->trans('commands.generate.breakpoint.description'))
- ->setHelp($this->trans('commands.generate.breakpoint.help'))
- ->addOption(
- 'theme',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.breakpoint.options.theme')
- )
- ->addOption(
- 'breakpoints',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.breakpoint.options.breakpoints')
- )->setAliases(['gb']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $validators = $this->validator;
- // we must to ensure theme exist
- $machine_name = $validators->validateMachineName($input->getOption('theme'));
- $theme = $input->getOption('theme');
- $breakpoints = $input->getOption('breakpoints');
- $noInteraction = $input->getOption('no-interaction');
- // Parse nested data.
- if ($noInteraction) {
- $breakpoints = $this->explodeInlineArray($breakpoints);
- }
-
- $this->generator->generate([
- 'theme' => $theme,
- 'breakpoints' => $breakpoints,
- 'machine_name' => $machine_name,
- ]);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --theme option.
- $theme = $input->getOption('theme');
-
- if (!$theme) {
- $themeHandler = $this->themeHandler;
- $themes = $themeHandler->rebuildThemeData();
- $themes['classy'] = '';
-
- uasort($themes, 'system_sort_modules_by_info_name');
-
- $theme = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.breakpoint.questions.theme'),
- array_keys($themes)
- );
- $input->setOption('theme', $theme);
- }
-
- // --breakpoints option.
- $breakpoints = $input->getOption('breakpoints');
- if (!$breakpoints) {
- $breakpoints = $this->breakpointQuestion();
- $input->setOption('breakpoints', $breakpoints);
- } else {
- $breakpoints = $this->explodeInlineArray($breakpoints);
- }
- $input->setOption('breakpoints', $breakpoints);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/CacheContextCommand.php b/vendor/drupal/console/src/Command/Generate/CacheContextCommand.php
deleted file mode 100644
index 3d29bdf6d..000000000
--- a/vendor/drupal/console/src/Command/Generate/CacheContextCommand.php
+++ /dev/null
@@ -1,180 +0,0 @@
-generator = $generator;
- $this->chainQueue = $chainQueue;
- $this->extensionManager = $extensionManager;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:cache:context')
- ->setDescription($this->trans('commands.generate.cache.context.description'))
- ->setHelp($this->trans('commands.generate.cache.context.description'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'cache-context',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.cache.context.options.name')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.cache.context.options.class')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )->setAliases(['gcc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $cache_context = $input->getOption('cache-context');
- $class = $this->validator->validateClassName($input->getOption('class'));
- $services = $input->getOption('services');
-
- // @see Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $buildServices = $this->buildServices($services);
-
- $this->generator->generate([
- 'module' => $module,
- 'cache_context' => $cache_context,
- 'class' => $class,
- 'services' => $buildServices,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --cache_context option
- $cache_context = $input->getOption('cache-context');
- if (!$cache_context) {
- $cache_context = $this->getIo()->ask(
- $this->trans('commands.generate.cache.context.questions.name'),
- sprintf('%s', $module)
- );
- $input->setOption('cache-context', $cache_context);
- }
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.cache.context.questions.class'),
- 'DefaultCacheContext',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --services option
- $services = $input->getOption('services');
- if (!$services) {
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/CommandCommand.php b/vendor/drupal/console/src/Command/Generate/CommandCommand.php
deleted file mode 100644
index cca91d859..000000000
--- a/vendor/drupal/console/src/Command/Generate/CommandCommand.php
+++ /dev/null
@@ -1,273 +0,0 @@
-generator = $generator;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- $this->stringConverter = $stringConverter;
- $this->site = $site;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:command')
- ->setDescription($this->trans('commands.generate.command.description'))
- ->setHelp($this->trans('commands.generate.command.help'))
- ->addOption(
- 'extension',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.extension')
- )
- ->addOption(
- 'extension-type',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.extension-type')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.command.options.class')
- )
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.command.options.name')
- )
- ->addOption(
- 'initialize',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.command.options.initialize')
- )
- ->addOption(
- 'interact',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.command.options.interact')
- )
- ->addOption(
- 'container-aware',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.command.options.container-aware')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )
- ->addOption(
- 'generator',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.command.options.generator')
- )
- ->setAliases(['gco']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $extension = $input->getOption('extension');
- $extensionType = $input->getOption('extension-type');
- $class = $this->validator->validateCommandName($input->getOption('class'));
- $name = $input->getOption('name');
- $initialize = $input->getOption('initialize');
- $interact = $input->getOption('interact');
- $containerAware = $input->getOption('container-aware');
- $services = $input->getOption('services');
- $generator = $input->getOption('generator');
-
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- // @see use Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $build_services = $this->buildServices($services);
-
- $class_generator = null;
- if ($generator) {
- $class_generator = str_replace('Command', 'Generator', $class);
- }
-
- $this->generator->generate([
- 'extension' => $extension,
- 'extension_type' => $extensionType,
- 'name' => $name,
- 'initialize' => $initialize,
- 'interact' => $interact,
- 'class_name' => $class,
- 'container_aware' => $containerAware,
- 'services' => $build_services,
- 'class_generator' => $class_generator,
- 'generator' => $generator,
- ]);
-
- $this->site->removeCachedServicesFile();
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $extension = $input->getOption('extension');
- if (!$extension) {
- $extension = $this->extensionQuestion(true, true);
- $input->setOption('extension', $extension->getName());
- $input->setOption('extension-type', $extension->getType());
- }
-
- $extensionType = $input->getOption('extension-type');
- if (!$extensionType) {
- $extensionType = $this->extensionTypeQuestion();
- $input->setOption('extension-type', $extensionType);
- }
-
- $name = $input->getOption('name');
- if (!$name) {
- $name = $this->getIo()->ask(
- $this->trans('commands.generate.command.questions.name'),
- sprintf('%s:default', $extension->getName())
- );
- $input->setOption('name', $name);
- }
-
- $initialize = $input->getOption('initialize');
- if (!$initialize) {
- $initialize = $this->getIo()->confirm(
- $this->trans('commands.generate.command.questions.initialize'),
- false
- );
- $input->setOption('initialize', $initialize);
- }
-
- $interact = $input->getOption('interact');
- if (!$interact) {
- $interact = $this->getIo()->confirm(
- $this->trans('commands.generate.command.questions.interact'),
- false
- );
- $input->setOption('interact', $interact);
- }
-
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.command.questions.class'),
- 'DefaultCommand',
- function ($class) {
- return $this->validator->validateCommandName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- $containerAware = $input->getOption('container-aware');
- if (!$containerAware) {
- $containerAware = $this->getIo()->confirm(
- $this->trans('commands.generate.command.questions.container-aware'),
- false
- );
- $input->setOption('container-aware', $containerAware);
- }
-
- if (!$containerAware) {
- // @see use Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
-
- $generator = $input->getOption('generator');
- if (!$generator) {
- $generator = $this->getIo()->confirm(
- $this->trans('commands.generate.command.questions.generator'),
- false
- );
- $input->setOption('generator', $generator);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ConfigFormBaseCommand.php b/vendor/drupal/console/src/Command/Generate/ConfigFormBaseCommand.php
deleted file mode 100644
index f3ad35120..000000000
--- a/vendor/drupal/console/src/Command/Generate/ConfigFormBaseCommand.php
+++ /dev/null
@@ -1,103 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->routeProvider = $routeProvider;
- $this->elementInfoManager = $elementInfoManager;
- $this->appRoot = $appRoot;
- $this->chainQueue = $chainQueue;
- parent::__construct($translator, $extensionManager, $generator, $chainQueue, $stringConverter, $validator, $elementInfoManager, $routeProvider);
- }
-
- protected function configure()
- {
- $this->setFormType('ConfigFormBase');
- $this->setCommandName('generate:form:config');
- $this->setAliases(['gfc']);
- parent::configure();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ControllerCommand.php b/vendor/drupal/console/src/Command/Generate/ControllerCommand.php
deleted file mode 100644
index dd982279d..000000000
--- a/vendor/drupal/console/src/Command/Generate/ControllerCommand.php
+++ /dev/null
@@ -1,300 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->routeProvider = $routeProvider;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:controller')
- ->setDescription($this->trans('commands.generate.controller.description'))
- ->setHelp($this->trans('commands.generate.controller.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.controller.options.class')
- )
- ->addOption(
- 'routes',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.controller.options.routes')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )
- ->addOption(
- 'test',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.controller.options.test')
- )
- ->setAliases(['gcon']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class = $this->validator->validateControllerName($input->getOption('class'));
- $routes = $input->getOption('routes');
- $test = $input->getOption('test');
- $services = $input->getOption('services');
-
- $routes = $this->inlineValueAsArray($routes);
- $input->setOption('routes', $routes);
-
- // @see use Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $build_services = $this->buildServices($services);
-
- //$this->generator->setLearning($learning);
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class,
- 'routes' => $routes,
- 'test' => $test,
- 'services' => $build_services
- ]);
-
- // Run cache rebuild to see changes in Web UI
- $this->chainQueue->addCommand('router:rebuild', []);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.controller.questions.class'),
- 'DefaultController',
- function ($class) {
- return $this->validator->validateControllerName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- $routes = $input->getOption('routes');
- if (!$routes) {
- while (true) {
- $title = $this->getIo()->askEmpty(
- $this->trans('commands.generate.controller.questions.title'),
- '',
- function ($title) use ($routes) {
- if ($routes && empty(trim($title))) {
- return false;
- }
-
- if (!$routes && empty(trim($title))) {
- throw new \InvalidArgumentException(
- $this->trans(
- 'commands.generate.controller.messages.title-empty'
- )
- );
- }
-
- if (in_array($title, array_column($routes, 'title'))) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans(
- 'commands.generate.controller.messages.title-already-added'
- ),
- $title
- )
- );
- }
-
- return $title;
- }
- );
-
- if ($title === '') {
- break;
- }
-
- $method = $this->getIo()->ask(
- $this->trans('commands.generate.controller.questions.method'),
- 'hello',
- function ($method) use ($routes) {
- if (in_array($method, array_column($routes, 'method'))) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans(
- 'commands.generate.controller.messages.method-already-added'
- ),
- $method
- )
- );
- }
-
- return $method;
- }
- );
-
- $path = $this->getIo()->ask(
- $this->trans('commands.generate.controller.questions.path'),
- sprintf(
- '/%s/'.($method!='hello'?$method:'hello/{name}'),
- $module
- ),
- function ($path) use ($routes) {
- if (count($this->routeProvider->getRoutesByPattern($path)) > 0
- || in_array($path, array_column($routes, 'path'))
- ) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans(
- 'commands.generate.controller.messages.path-already-added'
- ),
- $path
- )
- );
- }
-
- return $path;
- }
- );
- $classMachineName = $this->stringConverter->camelCaseToMachineName($class);
- $routeName = $module . '.' . $classMachineName . '_' . $method;
- if ($this->routeProvider->getRoutesByNames([$routeName])
- || in_array($routeName, $routes)
- ) {
- $routeName .= '_' . rand(0, 100);
- }
-
- $routes[] = [
- 'title' => $title,
- 'name' => $routeName,
- 'method' => $method,
- 'path' => $path
- ];
- }
- $input->setOption('routes', $routes);
- }
-
- // --test option
- $test = $input->getOption('test');
- if (!$test) {
- $test = $this->getIo()->confirm(
- $this->trans('commands.generate.controller.questions.test'),
- true
- );
-
- $input->setOption('test', $test);
- }
-
- // --services option
- // @see use Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/EntityBundleCommand.php b/vendor/drupal/console/src/Command/Generate/EntityBundleCommand.php
deleted file mode 100644
index e70ba956b..000000000
--- a/vendor/drupal/console/src/Command/Generate/EntityBundleCommand.php
+++ /dev/null
@@ -1,147 +0,0 @@
-validator = $validator;
- $this->generator = $generator;
- $this->extensionManager = $extensionManager;
- parent::__construct();
- }
-
-
- protected function configure()
- {
- $this
- ->setName('generate:entity:bundle')
- ->setDescription($this->trans('commands.generate.entity.bundle.description'))
- ->setHelp($this->trans('commands.generate.entity.bundle.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'bundle-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.entity.bundle.options.bundle-name')
- )
- ->addOption(
- 'bundle-title',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.entity.bundle.options.bundle-title')
- )
- ->setAliases(['geb']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $bundleName = $input->getOption('bundle-name');
- $bundleTitle = $input->getOption('bundle-title');
-
- //TODO:
- // $generator->setLearning($learning);
- $this->generator->generate([
- 'module' => $module,
- 'bundle_name' => $bundleName,
- 'bundle_title' => $bundleTitle,
- ]);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --bundle-name option
- $bundleName = $input->getOption('bundle-name');
- if (!$bundleName) {
- $bundleName = $this->getIo()->ask(
- $this->trans('commands.generate.entity.bundle.questions.bundle-name'),
- 'default',
- function ($bundleName) {
- return $this->validator->validateClassName($bundleName);
- }
- );
- $input->setOption('bundle-name', $bundleName);
- }
-
- // --bundle-title option
- $bundleTitle = $input->getOption('bundle-title');
- if (!$bundleTitle) {
- $bundleTitle = $this->getIo()->ask(
- $this->trans('commands.generate.entity.bundle.questions.bundle-title'),
- 'default',
- function ($bundle_title) {
- return $this->validator->validateBundleTitle($bundle_title);
- }
- );
- $input->setOption('bundle-title', $bundleTitle);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/EntityCommand.php b/vendor/drupal/console/src/Command/Generate/EntityCommand.php
deleted file mode 100644
index eb88c0e07..000000000
--- a/vendor/drupal/console/src/Command/Generate/EntityCommand.php
+++ /dev/null
@@ -1,166 +0,0 @@
-entityType = $entityType;
- }
-
- /**
- * @param $commandName
- */
- protected function setCommandName($commandName)
- {
- $this->commandName = $commandName;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $commandKey = str_replace(':', '.', $this->commandName);
-
- $this
- ->setName($this->commandName)
- ->setDescription(
- sprintf(
- $this->trans('commands.'.$commandKey.'.description'),
- $this->entityType
- )
- )
- ->setHelp(
- sprintf(
- $this->trans('commands.'.$commandKey.'.help'),
- $this->commandName,
- $this->entityType
- )
- )
- ->addOption('module', null, InputOption::VALUE_REQUIRED, $this->trans('commands.common.options.module'))
- ->addOption(
- 'entity-class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.'.$commandKey.'.options.entity-class')
- )
- ->addOption(
- 'entity-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.'.$commandKey.'.options.entity-name')
- )
- ->addOption(
- 'base-path',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.' . $commandKey . '.options.base-path')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.'.$commandKey.'.options.label')
- );
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // Operations defined in EntityConfigCommand and EntityContentCommand.
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $commandKey = str_replace(':', '.', $this->commandName);
- $utils = $this->stringConverter;
-
- // --module option
- $this->getModuleOption();
-
- // --entity-class option
- $entityClass = $input->getOption('entity-class');
- if (!$entityClass) {
- $entityClass = $this->getIo()->ask(
- $this->trans('commands.'.$commandKey.'.questions.entity-class'),
- 'DefaultEntity',
- function ($entityClass) {
- return $this->validator->validateSpaces($entityClass);
- }
- );
-
- $input->setOption('entity-class', $entityClass);
- }
-
- // --entity-name option
- $entityName = $input->getOption('entity-name');
- if (!$entityName) {
- $entityName = $this->getIo()->ask(
- $this->trans('commands.'.$commandKey.'.questions.entity-name'),
- $utils->camelCaseToMachineName($entityClass),
- function ($entityName) {
- return $this->validator->validateMachineName($entityName);
- }
- );
- $input->setOption('entity-name', $entityName);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.'.$commandKey.'.questions.label'),
- $utils->camelCaseToHuman($entityClass)
- );
- $input->setOption('label', $label);
- }
-
- // --base-path option
- $base_path = $input->getOption('base-path');
- if (!$base_path) {
- $base_path = $this->getDefaultBasePath();
- }
- $base_path = $this->getIo()->ask(
- $this->trans('commands.'.$commandKey.'.questions.base-path'),
- $base_path
- );
- if (substr($base_path, 0, 1) !== '/') {
- // Base path must start with a leading '/'.
- $base_path = '/' . $base_path;
- }
- $input->setOption('base-path', $base_path);
- }
-
- /**
- * Gets default base path.
- *
- * @return string
- * Default base path.
- */
- protected function getDefaultBasePath()
- {
- return '/admin/structure';
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/EntityConfigCommand.php b/vendor/drupal/console/src/Command/Generate/EntityConfigCommand.php
deleted file mode 100644
index 3c2ac3901..000000000
--- a/vendor/drupal/console/src/Command/Generate/EntityConfigCommand.php
+++ /dev/null
@@ -1,107 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->validator = $validator;
- $this->stringConverter = $stringConverter;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this->setEntityType('EntityConfig');
- $this->setCommandName('generate:entity:config');
- parent::configure();
- $this->addOption(
- 'bundle-of',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.entity.config.options.bundle-of')
- )
- ->setAliases(['gec']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- parent::interact($input, $output);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $entity_class = $input->getOption('entity-class');
- $entity_name = $input->getOption('entity-name');
- $label = $input->getOption('label');
- $bundle_of = $input->getOption('bundle-of');
- $base_path = $input->getOption('base-path');
-
- $this->generator->generate([
- 'module' => $module,
- 'entity_name' => $entity_name,
- 'entity_class' => $entity_class,
- 'label' => $label,
- 'base_path' => $base_path,
- 'bundle_of' => $bundle_of,
- ]);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/EntityContentCommand.php b/vendor/drupal/console/src/Command/Generate/EntityContentCommand.php
deleted file mode 100644
index ffc685fc3..000000000
--- a/vendor/drupal/console/src/Command/Generate/EntityContentCommand.php
+++ /dev/null
@@ -1,179 +0,0 @@
-chainQueue = $chainQueue;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- parent::__construct();
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this->setEntityType('EntityContent');
- $this->setCommandName('generate:entity:content');
- parent::configure();
- $this->addOption(
- 'has-bundles',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.entity.content.options.has-bundles')
- );
-
- $this->addOption(
- 'is-translatable',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.entity.content.options.is-translatable')
- );
-
- $this->addOption(
- 'revisionable',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.entity.content.options.revisionable')
- )
- ->setAliases(['geco']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- parent::interact($input, $output);
-
- // --bundle-of option
- $bundle_of = $input->getOption('has-bundles');
- if (!$bundle_of) {
- $bundle_of = $this->getIo()->confirm(
- $this->trans('commands.generate.entity.content.questions.has-bundles'),
- false
- );
- $input->setOption('has-bundles', $bundle_of);
- }
-
- // --is-translatable option
- $is_translatable = $this->getIo()->confirm(
- $this->trans('commands.generate.entity.content.questions.is-translatable'),
- true
- );
- $input->setOption('is-translatable', $is_translatable);
-
- // --revisionable option
- $revisionable = $this->getIo()->confirm(
- $this->trans('commands.generate.entity.content.questions.revisionable'),
- true
- );
- $input->setOption('revisionable', $revisionable);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $entity_class = $input->getOption('entity-class');
- $entity_name = $input->getOption('entity-name');
- $label = $input->getOption('label');
- $has_bundles = $input->getOption('has-bundles');
- $base_path = $input->getOption('base-path');
- $learning = $input->hasOption('learning')?$input->getOption('learning'):false;
- $bundle_entity_type = $has_bundles ? $entity_name . '_type' : null;
- $is_translatable = $input->hasOption('is-translatable') ? $input->getOption('is-translatable') : true;
- $revisionable = $input->hasOption('revisionable') ? $input->getOption('revisionable') : false;
-
- $generator = $this->generator;
-
- $generator->setIo($this->getIo());
- //@TODO:
- //$generator->setLearning($learning);
-
- $generator->generate([
- 'module' => $module,
- 'entity_name' => $entity_name,
- 'entity_class' => $entity_class,
- 'label' => $label,
- 'bundle_entity_type' => $bundle_entity_type,
- 'base_path' => $base_path,
- 'is_translatable' => $is_translatable,
- 'revisionable' => $revisionable,
- ]);
-
- if ($has_bundles) {
- $this->chainQueue->addCommand(
- 'generate:entity:config', [
- '--module' => $module,
- '--entity-class' => $entity_class . 'Type',
- '--entity-name' => $entity_name . '_type',
- '--label' => $label . ' type',
- '--bundle-of' => $entity_name
- ]
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/EventSubscriberCommand.php b/vendor/drupal/console/src/Command/Generate/EventSubscriberCommand.php
deleted file mode 100644
index ec62750b0..000000000
--- a/vendor/drupal/console/src/Command/Generate/EventSubscriberCommand.php
+++ /dev/null
@@ -1,208 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->eventDispatcher = $eventDispatcher;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:event:subscriber')
- ->setDescription($this->trans('commands.generate.event.subscriber.description'))
- ->setHelp($this->trans('commands.generate.event.subscriber.description'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.event.subscriber.options.name')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.event.subscriber.options.class')
- )
- ->addOption(
- 'events',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.events')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )
- ->setAliases(['ges']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $name = $input->getOption('name');
- $class = $this->validator->validateClassName($input->getOption('class'));
- $events = $input->getOption('events');
- $services = $input->getOption('services');
-
- // @see Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $buildServices = $this->buildServices($services);
-
- $this->generator->generate([
- 'module' => $module,
- 'name' => $name,
- 'class' => $class,
- 'events' => $events,
- 'services' => $buildServices,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --service-name option
- $name = $input->getOption('name');
- if (!$name) {
- $name = $this->getIo()->ask(
- $this->trans('commands.generate.service.questions.service-name'),
- sprintf('%s.default', $module)
- );
- $input->setOption('name', $name);
- }
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.event.subscriber.questions.class'),
- 'DefaultSubscriber',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --events option
- $events = $input->getOption('events');
- if (!$events) {
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $events = $this->eventsQuestion();
- $input->setOption('events', $events);
- }
-
- // --services option
- $services = $input->getOption('services');
- if (!$services) {
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/FormAlterCommand.php b/vendor/drupal/console/src/Command/Generate/FormAlterCommand.php
deleted file mode 100644
index 37073da06..000000000
--- a/vendor/drupal/console/src/Command/Generate/FormAlterCommand.php
+++ /dev/null
@@ -1,288 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->moduleHandler = $moduleHandler;
- $this->elementInfoManager = $elementInfoManager;
- $this->profiler = $profiler;
- $this->appRoot = $appRoot;
- $this->chainQueue = $chainQueue;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected $metadata = [
- 'class' => [],
- 'method'=> [],
- 'file'=> [],
- 'unset' => []
- ];
-
- protected function configure()
- {
- $this
- ->setName('generate:form:alter')
- ->setDescription($this->trans('commands.generate.form.alter.description'))
- ->setHelp($this->trans('commands.generate.form.alter.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'form-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.alter.options.form-id')
- )
- ->addOption(
- 'inputs',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.inputs')
- )
- ->setAliases(['gfa']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $formId = $input->getOption('form-id');
- $inputs = $input->getOption('inputs');
- $noInteraction = $input->getOption('no-interaction');
- // Parse nested data.
- if ($noInteraction) {
- $inputs = $this->explodeInlineArray($inputs);
- }
-
- $function = $module . '_form_' . $formId . '_alter';
-
- if ($this->extensionManager->validateModuleFunctionExist($module, $function)) {
- throw new \Exception(
- sprintf(
- $this->trans('commands.generate.form.alter.messages.help-already-implemented'),
- $module
- )
- );
- }
-
- $this->generator->generate([
- 'module' => $module,
- 'form_id' => $formId,
- 'inputs' => $inputs,
- 'metadata' => $this->metadata,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --form-id option
- $formId = $input->getOption('form-id');
- if (!$formId) {
- $forms = [];
- // Get form ids from webprofiler
- if ($this->moduleHandler->moduleExists('webprofiler')) {
- $this->getIo()->info(
- $this->trans('commands.generate.form.alter.messages.loading-forms')
- );
- $forms = $this->getWebprofilerForms();
- }
-
- if (!empty($forms)) {
- $formId = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.form.alter.questions.form-id'),
- array_keys($forms)
- );
- }
- }
-
- if ($this->moduleHandler->moduleExists('webprofiler') && isset($forms[$formId])) {
- $this->metadata['class'] = $forms[$formId]['class']['class'];
- $this->metadata['method'] = $forms[$formId]['class']['method'];
- $this->metadata['file'] = str_replace(
- $this->appRoot,
- '',
- $forms[$formId]['class']['file']
- );
-
- foreach ($forms[$formId]['form'] as $itemKey => $item) {
- if ($item['#type'] == 'hidden') {
- unset($forms[$formId]['form'][$itemKey]);
- }
- }
-
- unset($forms[$formId]['form']['form_build_id']);
- unset($forms[$formId]['form']['form_token']);
- unset($forms[$formId]['form']['form_id']);
- unset($forms[$formId]['form']['actions']);
-
- $formItems = array_keys($forms[$formId]['form']);
-
- $formItemsToHide = $this->getIo()->choice(
- $this->trans('commands.generate.form.alter.messages.hide-form-elements'),
- $formItems,
- null,
- true
- );
-
- $this->metadata['unset'] = array_filter(array_map('trim', $formItemsToHide));
- }
-
- $input->setOption('form-id', $formId);
-
- // @see Drupal\Console\Command\Shared\FormTrait::formQuestion
- $inputs = $input->getOption('inputs');
-
- if (empty($inputs)) {
- $this->getIo()->writeln($this->trans('commands.generate.form.alter.messages.inputs'));
- $inputs = $this->formQuestion();
- } else {
- $inputs= $this->explodeInlineArray($inputs);
- }
-
- $input->setOption('inputs', $inputs);
- }
-
- public function getWebprofilerForms()
- {
- $tokens = $this->profiler->find(null, null, 1000, null, '', '');
- $forms = [];
- foreach ($tokens as $token) {
- $token = [$token['token']];
- $profile = $this->profiler->loadProfile($token);
- $formCollector = $profile->getCollector('forms');
- $collectedForms = $formCollector->getForms();
- if (empty($forms)) {
- $forms = $collectedForms;
- } elseif (!empty($collectedForms)) {
- $forms = array_merge($forms, $collectedForms);
- }
- }
- return $forms;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/FormBaseCommand.php b/vendor/drupal/console/src/Command/Generate/FormBaseCommand.php
deleted file mode 100644
index f3df567a0..000000000
--- a/vendor/drupal/console/src/Command/Generate/FormBaseCommand.php
+++ /dev/null
@@ -1,19 +0,0 @@
-setFormType('FormBase');
- $this->setCommandName('generate:form');
- $this->setAliases(['gf']);
- parent::configure();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/FormCommand.php b/vendor/drupal/console/src/Command/Generate/FormCommand.php
deleted file mode 100644
index 56e71b9e8..000000000
--- a/vendor/drupal/console/src/Command/Generate/FormCommand.php
+++ /dev/null
@@ -1,358 +0,0 @@
-setTranslator($translator);
- $this->extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->chainQueue = $chainQueue;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->elementInfoManager = $elementInfoManager;
- $this->routeProvider = $routeProvider;
- parent::__construct();
- }
-
- protected function setFormType($formType)
- {
- return $this->formType = $formType;
- }
-
- protected function setCommandName($commandName)
- {
- return $this->commandName = $commandName;
- }
-
- protected function configure()
- {
- $this
- ->setName($this->commandName)
- ->setDescription(
- sprintf(
- $this->trans('commands.generate.form.description'),
- $this->formType
- )
- )
- ->setHelp(
- sprintf(
- $this->trans('commands.generate.form.help'),
- $this->commandName,
- $this->formType
- )
- )
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.class')
- )
- ->addOption(
- 'form-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.form-id')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )
- ->addOption(
- 'config-file',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.form.options.config-file')
- )
- ->addOption(
- 'inputs',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.inputs')
- )
- ->addOption(
- 'path',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.path')
- )
- ->addOption(
- 'menu-link-gen',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.menu-link-gen')
- )
- ->addOption(
- 'menu-link-title',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.menu-link-title')
- )
- ->addOption(
- 'menu-parent',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.menu-parent')
- )
- ->addOption(
- 'menu-link-desc',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.form.options.menu-link-desc')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $services = $input->getOption('services');
- $path = $input->getOption('path');
- $config_file = $input->getOption('config-file');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $form_id = $input->getOption('form-id');
- $form_type = $this->formType;
- $menu_link_gen = $input->getOption('menu-link-gen');
- $menu_parent = $input->getOption('menu-parent');
- $menu_link_title = $input->getOption('menu-link-title');
- $menu_link_desc = $input->getOption('menu-link-desc');
- $inputs = $input->getOption('inputs');
- $noInteraction = $input->getOption('no-interaction');
- // Parse nested data.
- if ($noInteraction) {
- $inputs = $this->explodeInlineArray($inputs);
- }
-
- // if exist form generate config file
- $build_services = $this->buildServices($services);
-
- $this->generator->generate([
- 'class_name' => $class_name,
- 'services' => $build_services,
- 'config_file' => $config_file,
- 'inputs' => $inputs,
- 'module_name' => $module,
- 'form_id' => $form_id,
- 'form_type' => $form_type,
- 'path' => $path,
- 'route_name' => $class_name,
- 'menu_link_title' => $menu_link_title,
- 'menu_parent' => $menu_parent,
- 'menu_link_desc' => $menu_link_desc,
- 'menu_link_gen' => $menu_link_gen,
- ]);
-
- $this->chainQueue->addCommand('router:rebuild', []);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --class option
- $className = $input->getOption('class');
- if (!$className) {
- $className = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.class'),
- 'DefaultForm',
- function ($className) {
- return $this->validator->validateClassName($className);
- }
- );
- $input->setOption('class', $className);
- }
-
- // --form-id option
- $formId = $input->getOption('form-id');
- if (!$formId) {
- $formId = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.form-id'),
- $this->stringConverter->camelCaseToMachineName($className)
- );
- $input->setOption('form-id', $formId);
- }
-
- // --services option
- // @see use Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
-
- // --config_file option
- $config_file = $input->getOption('config-file');
-
- if (!$config_file) {
- $config_file = $this->getIo()->confirm(
- $this->trans('commands.generate.form.questions.config-file'),
- true
- );
- $input->setOption('config-file', $config_file);
- }
-
- // --inputs option
- $inputs = $input->getOption('inputs');
- if (!$inputs) {
- // @see \Drupal\Console\Command\Shared\FormTrait::formQuestion
- $inputs = $this->formQuestion();
- $input->setOption('inputs', $inputs);
- } else {
- $inputs= $this->explodeInlineArray($inputs);
- }
- $input->setOption('inputs', $inputs);
-
- $path = $input->getOption('path');
- if (!$path) {
- if ($this->formType == 'ConfigFormBase') {
- $form_path = '/admin/config/{{ module_name }}/{{ class_name_short }}';
- $form_path = sprintf(
- '/admin/config/%s/%s',
- $module,
- strtolower($this->stringConverter->removeSuffix($className))
- );
- } else {
- $form_path = sprintf(
- '/%s/form/%s',
- $module,
- $this->stringConverter->camelCaseToMachineName($this->stringConverter->removeSuffix($className))
- );
- }
- $path = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.path'),
- $form_path,
- function ($path) {
- if (count($this->routeProvider->getRoutesByPattern($path)) > 0) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans(
- 'commands.generate.form.messages.path-already-added'
- ),
- $path
- )
- );
- }
-
- return $path;
- }
- );
- $input->setOption('path', $path);
- }
-
- // --link option for links.menu
- if ($this->formType == 'ConfigFormBase') {
- $menu_options = $this->menuQuestion($className);
- $menu_link_gen = $input->getOption('menu-link-gen');
- $menu_link_title = $input->getOption('menu-link-title');
- $menu_parent = $input->getOption('menu-parent');
- $menu_link_desc = $input->getOption('menu-link-desc');
- if (!$menu_link_gen || !$menu_link_title || !$menu_parent || !$menu_link_desc) {
- $input->setOption('menu-link-gen', $menu_options['menu_link_gen']);
- $input->setOption('menu-link-title', $menu_options['menu_link_title']);
- $input->setOption('menu-parent', $menu_options['menu_parent']);
- $input->setOption('menu-link-desc', $menu_options['menu_link_desc']);
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/HelpCommand.php b/vendor/drupal/console/src/Command/Generate/HelpCommand.php
deleted file mode 100644
index cd8e9b38b..000000000
--- a/vendor/drupal/console/src/Command/Generate/HelpCommand.php
+++ /dev/null
@@ -1,146 +0,0 @@
-generator = $generator;
- $this->site = $site;
- $this->extensionManager = $extensionManager;
- $this->chainQueue = $chainQueue;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:help')
- ->setDescription($this->trans('commands.generate.help.description'))
- ->setHelp($this->trans('commands.generate.help.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.help.options.description')
- )->setAliases(['gh']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
-
- if ($this->extensionManager->validateModuleFunctionExist($module, $module . '_help')) {
- throw new \Exception(
- sprintf(
- $this->trans('commands.generate.help.messages.help-already-implemented'),
- $module
- )
- );
- }
-
- $description = $input->getOption('description');
-
- $this->generator->generate([
- 'machine_name' => $module,
- 'description' => $description,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->site->loadLegacyFile('/core/includes/update.inc');
- $this->site->loadLegacyFile('/core/includes/schema.inc');
-
- // --module option
- $this->getModuleOption();
-
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.help.questions.description'),
- $this->trans('commands.generate.module.suggestions.my-awesome-module')
- );
- }
- $input->setOption('description', $description);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/JsTestCommand.php b/vendor/drupal/console/src/Command/Generate/JsTestCommand.php
deleted file mode 100644
index edca26211..000000000
--- a/vendor/drupal/console/src/Command/Generate/JsTestCommand.php
+++ /dev/null
@@ -1,126 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:jstest')
- ->setDescription($this->trans('commands.generate.jstest.description'))
- ->setHelp($this->trans('commands.generate.jstest.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.jstest.options.class')
- )
- ->setAliases(['gjt']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class = $this->validator->validateClassName($input->getOption('class'));
-
- $this->generator->generate([
- 'module' => $module,
- 'class' => $class,
- ]);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.jstest.questions.class'),
- 'DefaultJsTest',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ModuleCommand.php b/vendor/drupal/console/src/Command/Generate/ModuleCommand.php
deleted file mode 100644
index 23a8ccb5d..000000000
--- a/vendor/drupal/console/src/Command/Generate/ModuleCommand.php
+++ /dev/null
@@ -1,396 +0,0 @@
-generator = $generator;
- $this->validator = $validator;
- $this->appRoot = $appRoot;
- $this->stringConverter = $stringConverter;
- $this->drupalApi = $drupalApi;
- $this->twigtemplate = $twigtemplate;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:module')
- ->setDescription($this->trans('commands.generate.module.description'))
- ->setHelp($this->trans('commands.generate.module.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.module.options.module')
- )
- ->addOption(
- 'machine-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.module.options.machine-name')
- )
- ->addOption(
- 'module-path',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.module.options.module-path')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.module.options.description')
- )
- ->addOption(
- 'core',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.module.options.core')
- )
- ->addOption(
- 'package',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.module.options.package')
- )
- ->addOption(
- 'module-file',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.module.options.module-file')
- )
- ->addOption(
- 'features-bundle',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.module.options.features-bundle')
- )
- ->addOption(
- 'composer',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.module.options.composer')
- )
- ->addOption(
- 'dependencies',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.module.options.dependencies'),
- ''
- )
- ->addOption(
- 'test',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.module.options.test')
- )
- ->addOption(
- 'twigtemplate',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.module.options.twigtemplate')
- )
- ->setAliases(['gm']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $this->validator->validateModuleName($input->getOption('module'));
-
- // Get the profile path and define a profile path if it is null
- // Check that it is an absolute path or otherwise create an absolute path using appRoot
- $modulePath = $input->getOption('module-path');
- $modulePath = $modulePath == null ? 'modules/custom' : $modulePath;
- $modulePath = Path::isAbsolute($modulePath) ? $modulePath : Path::makeAbsolute($modulePath, $this->appRoot);
- $modulePath = $this->validator->validateModulePath($modulePath, true);
-
- $machineName = $this->validator->validateMachineName($input->getOption('machine-name'));
- $description = $input->getOption('description');
- $core = $input->getOption('core');
- $package = $input->getOption('package');
- $moduleFile = $input->getOption('module-file');
- $featuresBundle = $input->getOption('features-bundle');
- $composer = $input->getOption('composer');
- $dependencies = $this->validator->validateExtensions(
- $input->getOption('dependencies'),
- 'module',
- $this->getIo()
- );
- $test = $input->getOption('test');
- $twigTemplate = $input->getOption('twigtemplate');
-
- $this->generator->generate([
- 'module' => $module,
- 'machine_name' => $machineName,
- 'module_path' => $modulePath,
- 'description' => $description,
- 'core' => $core,
- 'package' => $package,
- 'module_file' => $moduleFile,
- 'features_bundle' => $featuresBundle,
- 'composer' => $composer,
- 'dependencies' => $dependencies,
- 'test' => $test,
- 'twig_template' => $twigTemplate,
- ]);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $validator = $this->validator;
-
- try {
- $module = $input->getOption('module') ?
- $this->validator->validateModuleName(
- $input->getOption('module')
- ) : null;
- } catch (\Exception $error) {
- $this->getIo()->error($error->getMessage());
-
- return 1;
- }
-
- if (!$module) {
- $module = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.module'),
- null,
- function ($module) use ($validator) {
- return $validator->validateModuleName($module);
- }
- );
- $input->setOption('module', $module);
- }
-
- try {
- $machineName = $input->getOption('machine-name') ?
- $this->validator->validateModuleName(
- $input->getOption('machine-name')
- ) : null;
- } catch (\Exception $error) {
- $this->getIo()->error($error->getMessage());
- }
-
- if (!$machineName) {
- $machineName = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.machine-name'),
- $this->stringConverter->createMachineName($module),
- function ($machine_name) use ($validator) {
- return $validator->validateMachineName($machine_name);
- }
- );
- $input->setOption('machine-name', $machineName);
- }
-
- $modulePath = $input->getOption('module-path');
- if (!$modulePath) {
- $modulePath = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.module-path'),
- 'modules/custom',
- function ($modulePath) use ($machineName) {
- $fullPath = Path::isAbsolute($modulePath) ? $modulePath : Path::makeAbsolute($modulePath, $this->appRoot);
- $fullPath = $fullPath.'/'.$machineName;
- if (file_exists($fullPath)) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.module.errors.directory-exists'),
- $fullPath
- )
- );
- }
-
- return $modulePath;
- }
- );
- }
- $input->setOption('module-path', $modulePath);
-
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.description'),
- $this->trans('commands.generate.module.suggestions.my-awesome-module')
- );
- }
- $input->setOption('description', $description);
-
- $package = $input->getOption('package');
- if (!$package) {
- $package = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.package'),
- 'Custom'
- );
- }
- $input->setOption('package', $package);
-
- $core = $input->getOption('core');
- if (!$core) {
- $core = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.core'), '8.x',
- function ($core) {
- // Only allow 8.x and higher as core version.
- if (!preg_match('/^([0-9]+)\.x$/', $core, $matches) || ($matches[1] < 8)) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.module.errors.invalid-core'),
- $core
- )
- );
- }
-
- return $core;
- }
- );
- $input->setOption('core', $core);
- }
-
- $moduleFile = $input->getOption('module-file');
- if (!$moduleFile) {
- $moduleFile = $this->getIo()->confirm(
- $this->trans('commands.generate.module.questions.module-file'),
- true
- );
- $input->setOption('module-file', $moduleFile);
- }
-
- $featuresBundle = $input->getOption('features-bundle');
- if (!$featuresBundle) {
- $featuresSupport = $this->getIo()->confirm(
- $this->trans('commands.generate.module.questions.features-support'),
- false
- );
- if ($featuresSupport) {
- $featuresBundle = $this->getIo()->ask(
- $this->trans('commands.generate.module.questions.features-bundle'),
- 'default'
- );
- }
- $input->setOption('features-bundle', $featuresBundle);
- }
-
- $composer = $input->getOption('composer');
- if (!$composer) {
- $composer = $this->getIo()->confirm(
- $this->trans('commands.generate.module.questions.composer'),
- true
- );
- $input->setOption('composer', $composer);
- }
-
- $dependencies = $input->getOption('dependencies');
- if (!$dependencies) {
- $addDependencies = $this->getIo()->confirm(
- $this->trans('commands.generate.module.questions.dependencies'),
- false
- );
- if ($addDependencies) {
- $dependencies = $this->getIo()->ask(
- $this->trans('commands.generate.module.options.dependencies')
- );
- }
- $input->setOption('dependencies', $dependencies);
- }
-
- $test = $input->getOption('test');
- if (!$test) {
- $test = $this->getIo()->confirm(
- $this->trans('commands.generate.module.questions.test'),
- true
- );
- $input->setOption('test', $test);
- }
-
- $twigtemplate = $input->getOption('twigtemplate');
- if (!$twigtemplate) {
- $twigtemplate = $this->getIo()->confirm(
- $this->trans('commands.generate.module.questions.twigtemplate'),
- true
- );
- $input->setOption('twigtemplate', $twigtemplate);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ModuleFileCommand.php b/vendor/drupal/console/src/Command/Generate/ModuleFileCommand.php
deleted file mode 100644
index 09653d294..000000000
--- a/vendor/drupal/console/src/Command/Generate/ModuleFileCommand.php
+++ /dev/null
@@ -1,108 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:module:file')
- ->setDescription($this->trans('commands.generate.module.file.description'))
- ->setHelp($this->trans('commands.generate.module.file.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )->setAliases(['gmf']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $machine_name = $input->getOption('module');
- $file_path = $this->extensionManager->getModule($machine_name)->getPath();
-
- $this->generator->generate([
- 'machine_name' => $machine_name,
- 'file_path' => $file_path,
- ]);
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PermissionCommand.php b/vendor/drupal/console/src/Command/Generate/PermissionCommand.php
deleted file mode 100644
index fe0adf882..000000000
--- a/vendor/drupal/console/src/Command/Generate/PermissionCommand.php
+++ /dev/null
@@ -1,131 +0,0 @@
-extensionManager = $extensionManager;
- $this->stringConverter = $stringConverter;
- $this->generator = $permissionGenerator;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:permissions')
- ->setDescription($this->trans('commands.generate.permissions.description'))
- ->setHelp($this->trans('commands.generate.permissions.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'permissions',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.permissions')
- )
- ->setAliases(['gp']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $permissions = $input->getOption('permissions');
- $learning = $input->hasOption('learning');
- $noInteraction = $input->getOption('no-interaction');
- // Parse nested data.
- if ($noInteraction) {
- $permissions = $this->explodeInlineArray($permissions);
- }
-
- $this->generator->generate([
- 'module_name' => $module,
- 'permissions' => $permissions,
- 'learning' => $learning,
- ]);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --permissions option
- $permissions = $input->getOption('permissions');
- if (!$permissions) {
- // @see \Drupal\Console\Command\Shared\PermissionTrait::permissionQuestion
- $permissions = $this->permissionQuestion();
- } else {
- $permissions = $this->explodeInlineArray($permissions);
- }
-
- $input->setOption('permissions', $permissions);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginBlockCommand.php b/vendor/drupal/console/src/Command/Generate/PluginBlockCommand.php
deleted file mode 100644
index a1f6dd6a4..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginBlockCommand.php
+++ /dev/null
@@ -1,297 +0,0 @@
-configFactory = $configFactory;
- $this->chainQueue = $chainQueue;
- $this->generator = $generator;
- $this->entityTypeManager = $entityTypeManager;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- $this->stringConverter = $stringConverter;
- $this->elementInfoManager = $elementInfoManager;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:block')
- ->setDescription($this->trans('commands.generate.plugin.block.description'))
- ->setHelp($this->trans('commands.generate.plugin.block.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.block.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.block.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.block.options.plugin-id')
- )
- ->addOption(
- 'theme-region',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.block.options.theme-region')
- )
- ->addOption(
- 'inputs',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.inputs')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )
- ->setAliases(['gpb']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $services = $input->getOption('services');
- $theme_region = $input->getOption('theme-region');
- $inputs = $input->getOption('inputs');
- $noInteraction = $input->getOption('no-interaction');
- // Parse nested data.
- if ($noInteraction) {
- $inputs = $this->explodeInlineArray($inputs);
- }
-
- $theme = $this->configFactory->get('system.theme')->get('default');
- $themeRegions = \system_region_list($theme, REGIONS_VISIBLE);
-
- if (!empty($theme_region) && !isset($themeRegions[$theme_region])) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.generate.plugin.block.messages.invalid-theme-region'),
- $theme_region
- )
- );
-
- return 1;
- }
-
- // @see use Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $build_services = $this->buildServices($services);
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'services' => $build_services,
- 'inputs' => $inputs,
- ]);
-
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- if ($theme_region) {
- $block = $this->entityTypeManager
- ->getStorage('block')
- ->create([
- 'id'=> $plugin_id,
- 'plugin' => $plugin_id,
- 'theme' => $theme,
- ]);
- $block->setRegion($theme_region);
- $block->save();
- }
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $theme = $this->configFactory->get('system.theme')->get('default');
- $themeRegions = \system_region_list($theme, REGIONS_VISIBLE);
-
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.block.questions.class'),
- 'DefaultBlock',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.block.questions.label'),
- $this->stringConverter->camelCaseToHuman($class)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $pluginId = $input->getOption('plugin-id');
- if (!$pluginId) {
- $pluginId = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.block.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class)
- );
- $input->setOption('plugin-id', $pluginId);
- }
-
- // --theme-region option
- $themeRegion = $input->getOption('theme-region');
- if (!$themeRegion) {
- $themeRegion = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.plugin.block.questions.theme-region'),
- array_values($themeRegions),
- '',
- true
- );
- $themeRegion = array_search($themeRegion, $themeRegions);
- $input->setOption('theme-region', $themeRegion);
- }
-
- // --services option
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
-
- $output->writeln($this->trans('commands.generate.plugin.block.messages.inputs'));
-
- // --inputs option
- $inputs = $input->getOption('inputs');
- if (!$inputs) {
- // @see \Drupal\Console\Command\Shared\FormTrait::formQuestion
- $inputs = $this->formQuestion();
- $input->setOption('inputs', $inputs);
- } else {
- $inputs = $this->explodeInlineArray($inputs);
- }
- $input->setOption('inputs', $inputs);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginCKEditorButtonCommand.php b/vendor/drupal/console/src/Command/Generate/PluginCKEditorButtonCommand.php
deleted file mode 100644
index 347b76671..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginCKEditorButtonCommand.php
+++ /dev/null
@@ -1,211 +0,0 @@
-chainQueue = $chainQueue;
- $this->generator = $generator;
- $this->extensionManager = $extensionManager;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:ckeditorbutton')
- ->setDescription($this->trans('commands.generate.plugin.ckeditorbutton.description'))
- ->setHelp($this->trans('commands.generate.plugin.ckeditorbutton.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.ckeditorbutton.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.ckeditorbutton.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.ckeditorbutton.options.plugin-id')
- )
- ->addOption(
- 'button-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.ckeditorbutton.options.button-name')
- )
- ->addOption(
- 'button-icon-path',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.ckeditorbutton.options.button-icon-path')
- )->setAliases(['gpc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $button_name = $input->getOption('button-name');
- $button_icon_path = $input->getOption('button-icon-path');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'button_name' => $button_name,
- 'button_icon_path' => $button_icon_path,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery'], false);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.ckeditorbutton.questions.class'),
- 'DefaultCKEditorButton',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.ckeditorbutton.questions.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.ckeditorbutton.questions.plugin-id'),
- $this->stringConverter->camelCaseToLowerCase($label)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --button-name option
- $button_name = $input->getOption('button-name');
- if (!$button_name) {
- $button_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.ckeditorbutton.questions.button-name'),
- $this->stringConverter->anyCaseToUcFirst($plugin_id)
- );
- $input->setOption('button-name', $button_name);
- }
-
- // --button-icon-path option
- $button_icon_path = $input->getOption('button-icon-path');
- if (!$button_icon_path) {
- $button_icon_path = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.ckeditorbutton.questions.button-icon-path'),
- drupal_get_path('module', $module) . '/js/plugins/' . $plugin_id . '/images/icon.png'
- );
- $input->setOption('button-icon-path', $button_icon_path);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginConditionCommand.php b/vendor/drupal/console/src/Command/Generate/PluginConditionCommand.php
deleted file mode 100644
index 462ef56ca..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginConditionCommand.php
+++ /dev/null
@@ -1,264 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->chainQueue = $chainQueue;
- $this->entitytyperepository = $entitytyperepository;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:condition')
- ->setDescription($this->trans('commands.generate.plugin.condition.description'))
- ->setHelp($this->trans('commands.generate.plugin.condition.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.condition.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.condition.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.condition.options.plugin-id')
- )
- ->addOption(
- 'context-definition-id',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.condition.options.context-definition-id')
- )
- ->addOption(
- 'context-definition-label',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.condition.options.context-definition-label')
- )
- ->addOption(
- 'context-definition-required',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.condition.options.context-definition-required')
- )
- ->setAliases(['gpco']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $context_definition_id = $input->getOption('context-definition-id');
- $context_definition_label = $input->getOption('context-definition-label');
- $context_definition_required = $input->getOption('context-definition-required')?'TRUE':'FALSE';
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'context_definition_id' => $context_definition_id,
- 'context_definition_label' => $context_definition_label,
- 'context_definition_required' => $context_definition_required,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $entityTypeRepository = $this->entitytyperepository;
-
- $entity_types = $entityTypeRepository->getEntityTypeLabels(true);
-
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.condition.questions.class'),
- 'ExampleCondition',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --plugin label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.condition.questions.label'),
- $this->stringConverter->camelCaseToHuman($class)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $pluginId = $input->getOption('plugin-id');
- if (!$pluginId) {
- $pluginId = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.condition.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class)
- );
- $input->setOption('plugin-id', $pluginId);
- }
-
- $context_definition_id = $input->getOption('context-definition-id');
- if (!$context_definition_id) {
- $context_type = ['language' => 'Language', "entity" => "Entity"];
- $context_type_sel = $this->getIo()->choice(
- $this->trans('commands.generate.plugin.condition.questions.context-type'),
- array_values($context_type)
- );
- $context_type_sel = array_search($context_type_sel, $context_type);
-
- if ($context_type_sel == 'language') {
- $context_definition_id = $context_type_sel;
- $context_definition_id_value = ucfirst($context_type_sel);
- } else {
- $content_entity_types_sel = $this->getIo()->choice(
- $this->trans('commands.generate.plugin.condition.questions.context-entity-type'),
- array_keys($entity_types)
- );
-
- $contextDefinitionIdList = $entity_types[$content_entity_types_sel];
- $context_definition_id_sel = $this->getIo()->choice(
- $this->trans('commands.generate.plugin.condition.questions.context-definition-id'),
- array_values($contextDefinitionIdList)
- );
-
- $context_definition_id_value = array_search(
- $context_definition_id_sel,
- $contextDefinitionIdList
- );
-
- $context_definition_id = 'entity:' . $context_definition_id_value;
- }
- $input->setOption('context-definition-id', $context_definition_id);
- }
-
- $context_definition_label = $input->getOption('context-definition-label');
- if (!$context_definition_label) {
- $context_definition_label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.condition.questions.context-definition-label'),
- $context_definition_id_value?:null
- );
- $input->setOption('context-definition-label', $context_definition_label);
- }
-
- $context_definition_required = $input->getOption('context-definition-required');
- if (empty($context_definition_required)) {
- $context_definition_required = $this->getIo()->confirm(
- $this->trans('commands.generate.plugin.condition.questions.context-definition-required'),
- true
- );
- $input->setOption('context-definition-required', $context_definition_required);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginFieldCommand.php b/vendor/drupal/console/src/Command/Generate/PluginFieldCommand.php
deleted file mode 100644
index e6979177b..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginFieldCommand.php
+++ /dev/null
@@ -1,357 +0,0 @@
-extensionManager = $extensionManager;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:field')
- ->setDescription($this->trans('commands.generate.plugin.field.description'))
- ->setHelp($this->trans('commands.generate.plugin.field.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'type-class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.field.options.type-class')
- )
- ->addOption(
- 'type-label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.type-label')
- )
- ->addOption(
- 'type-plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.type-plugin-id')
- )
- ->addOption(
- 'type-description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.type-description')
- )
- ->addOption(
- 'formatter-class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.field.options.formatter-class')
- )
- ->addOption(
- 'formatter-label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.formatter-label')
- )
- ->addOption(
- 'formatter-plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.formatter-plugin-id')
- )
- ->addOption(
- 'widget-class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.field.options.formatter-class')
- )
- ->addOption(
- 'widget-label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.widget-label')
- )
- ->addOption(
- 'widget-plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.widget-plugin-id')
- )
- ->addOption(
- 'field-type',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.field-type')
- )
- ->addOption(
- 'default-widget',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.default-widget')
- )
- ->addOption(
- 'default-formatter',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.field.options.default-formatter')
- )
- ->setAliases(['gpf']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $this->chainQueue
- ->addCommand(
- 'generate:plugin:fieldtype', [
- '--module' => $input->getOption('module'),
- '--class' => $this->validator->validateClassName($input->getOption('type-class')),
- '--label' => $input->getOption('type-label'),
- '--plugin-id' => $input->getOption('type-plugin-id'),
- '--description' => $input->getOption('type-description'),
- '--default-widget' => $input->getOption('default-widget'),
- '--default-formatter' => $input->getOption('default-formatter'),
- ],
- false
- );
-
- $this->chainQueue
- ->addCommand(
- 'generate:plugin:fieldwidget', [
- '--module' => $input->getOption('module'),
- '--class' => $this->validator->validateClassName($input->getOption('widget-class')),
- '--label' => $input->getOption('widget-label'),
- '--plugin-id' => $input->getOption('widget-plugin-id'),
- '--field-type' => $input->getOption('field-type'),
- ],
- false
- );
- $this->chainQueue
- ->addCommand(
- 'generate:plugin:fieldformatter', [
- '--module' => $input->getOption('module'),
- '--class' => $this->validator->validateClassName($input->getOption('formatter-class')),
- '--label' => $input->getOption('formatter-label'),
- '--plugin-id' => $input->getOption('formatter-plugin-id'),
- '--field-type' => $input->getOption('field-type'),
- ],
- false
- );
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery'], false);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --type-class option
- $typeClass = $input->getOption('type-class');
- if (!$typeClass) {
- $typeClass = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.type-class'),
- 'ExampleFieldType',
- function ($typeClass) {
- return $this->validator->validateClassName($typeClass);
- }
- );
- $input->setOption('type-class', $typeClass);
- }
-
- // --type-label option
- $label = $input->getOption('type-label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.type-label'),
- $this->stringConverter->camelCaseToHuman($typeClass)
- );
- $input->setOption('type-label', $label);
- }
-
- // --type-plugin-id option
- $plugin_id = $input->getOption('type-plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.type-plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($typeClass)
- );
- $input->setOption('type-plugin-id', $plugin_id);
- }
-
- // --type-description option
- $description = $input->getOption('type-description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.type-description'),
- $this->trans('commands.generate.plugin.field.suggestions.my-field-type')
- );
- $input->setOption('type-description', $description);
- }
-
- // --widget-class option
- $widgetClass = $input->getOption('widget-class');
- if (!$widgetClass) {
- $widgetClass = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.widget-class'),
- 'ExampleWidgetType',
- function ($widgetClass) {
- return $this->validator->validateClassName($widgetClass);
- }
- );
- $input->setOption('widget-class', $widgetClass);
- }
-
- // --widget-label option
- $widgetLabel = $input->getOption('widget-label');
- if (!$widgetLabel) {
- $widgetLabel = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.widget-label'),
- $this->stringConverter->camelCaseToHuman($widgetClass)
- );
- $input->setOption('widget-label', $widgetLabel);
- }
-
- // --widget-plugin-id option
- $widget_plugin_id = $input->getOption('widget-plugin-id');
- if (!$widget_plugin_id) {
- $widget_plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.widget-plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($widgetClass)
- );
- $input->setOption('widget-plugin-id', $widget_plugin_id);
- }
-
- // --formatter-class option
- $formatterClass = $input->getOption('formatter-class');
- if (!$formatterClass) {
- $formatterClass = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.formatter-class'),
- 'ExampleFormatterType',
- function ($formatterClass) {
- return $this->validator->validateClassName($formatterClass);
- }
- );
- $input->setOption('formatter-class', $formatterClass);
- }
-
- // --formatter-label option
- $formatterLabel = $input->getOption('formatter-label');
- if (!$formatterLabel) {
- $formatterLabel = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.formatter-label'),
- $this->stringConverter->camelCaseToHuman($formatterClass)
- );
- $input->setOption('formatter-label', $formatterLabel);
- }
-
- // --formatter-plugin-id option
- $formatter_plugin_id = $input->getOption('formatter-plugin-id');
- if (!$formatter_plugin_id) {
- $formatter_plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.formatter-plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($formatterClass)
- );
- $input->setOption('formatter-plugin-id', $formatter_plugin_id);
- }
-
- // --field-type option
- $field_type = $input->getOption('field-type');
- if (!$field_type) {
- $field_type = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.field-type'),
- $plugin_id
- );
- $input->setOption('field-type', $field_type);
- }
-
- // --default-widget option
- $default_widget = $input->getOption('default-widget');
- if (!$default_widget) {
- $default_widget = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.default-widget'),
- $widget_plugin_id
- );
- $input->setOption('default-widget', $default_widget);
- }
-
- // --default-formatter option
- $default_formatter = $input->getOption('default-formatter');
- if (!$default_formatter) {
- $default_formatter = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.field.questions.default-formatter'),
- $formatter_plugin_id
- );
- $input->setOption('default-formatter', $default_formatter);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginFieldFormatterCommand.php b/vendor/drupal/console/src/Command/Generate/PluginFieldFormatterCommand.php
deleted file mode 100644
index 4c07a4c16..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginFieldFormatterCommand.php
+++ /dev/null
@@ -1,216 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->fieldTypePluginManager = $fieldTypePluginManager;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:fieldformatter')
- ->setDescription($this->trans('commands.generate.plugin.fieldformatter.description'))
- ->setHelp($this->trans('commands.generate.plugin.fieldformatter.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.fieldformatter.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldformatter.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldformatter.options.plugin-id')
- )
- ->addOption(
- 'field-type',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldformatter.options.field-type')
- )
- ->setAliases(['gpff']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $field_type = $input->getOption('field-type');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'field_type' => $field_type,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldformatter.questions.class'),
- 'ExampleFieldFormatter',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --plugin label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldformatter.questions.label'),
- $this->stringConverter->camelCaseToHuman($class)
- );
- $input->setOption('label', $label);
- }
-
- // --name option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldformatter.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --field type option
- $field_type = $input->getOption('field-type');
- if (!$field_type) {
- // Gather valid field types.
- $field_type_options = [];
- foreach ($this->fieldTypePluginManager->getGroupedDefinitions($this->fieldTypePluginManager->getUiDefinitions()) as $category => $field_types) {
- foreach ($field_types as $name => $field_type) {
- $field_type_options[] = $name;
- }
- }
-
- $field_type = $this->getIo()->choice(
- $this->trans('commands.generate.plugin.fieldwidget.questions.field-type'),
- $field_type_options
- );
-
- $input->setOption('field-type', $field_type);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginFieldTypeCommand.php b/vendor/drupal/console/src/Command/Generate/PluginFieldTypeCommand.php
deleted file mode 100644
index 6cd79bc45..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginFieldTypeCommand.php
+++ /dev/null
@@ -1,233 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:fieldtype')
- ->setDescription($this->trans('commands.generate.plugin.fieldtype.description'))
- ->setHelp($this->trans('commands.generate.plugin.fieldtype.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.fieldtype.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldtype.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldtype.options.plugin-id')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldtype.options.description')
- )
- ->addOption(
- 'default-widget',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldtype.options.default-widget')
- )
- ->addOption(
- 'default-formatter',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldtype.options.default-formatter')
- )
- ->setAliases(['gpft']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $description = $input->getOption('description');
- $default_widget = $input->getOption('default-widget');
- $default_formatter = $input->getOption('default-formatter');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'description' => $description,
- 'default_widget' => $default_widget,
- 'default_formatter' => $default_formatter,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery'], false);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldtype.questions.class'),
- 'ExampleFieldType',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldtype.questions.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldtype.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --description option
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldtype.questions.description'),
- $this->trans('commands.generate.plugin.fieldtype.suggestions.my-field-type')
- );
- $input->setOption('description', $description);
- }
-
- // --default-widget option
- $default_widget = $input->getOption('default-widget');
- if (!$default_widget) {
- $default_widget = $this->getIo()->askEmpty(
- $this->trans('commands.generate.plugin.fieldtype.questions.default-widget')
- );
- $input->setOption('default-widget', $default_widget);
- }
-
- // --default-formatter option
- $default_formatter = $input->getOption('default-formatter');
- if (!$default_formatter) {
- $default_formatter = $this->getIo()->askEmpty(
- $this->trans('commands.generate.plugin.fieldtype.questions.default-formatter')
- );
- $input->setOption('default-formatter', $default_formatter);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginFieldWidgetCommand.php b/vendor/drupal/console/src/Command/Generate/PluginFieldWidgetCommand.php
deleted file mode 100644
index d057d9df7..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginFieldWidgetCommand.php
+++ /dev/null
@@ -1,216 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->fieldTypePluginManager = $fieldTypePluginManager;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:fieldwidget')
- ->setDescription($this->trans('commands.generate.plugin.fieldwidget.description'))
- ->setHelp($this->trans('commands.generate.plugin.fieldwidget.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.fieldwidget.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldwidget.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldwidget.options.plugin-id')
- )
- ->addOption(
- 'field-type',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.fieldwidget.options.field-type')
- )
- ->setAliases(['gpfw']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $field_type = $input->getOption('field-type');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'field_type' => $field_type,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldwidget.questions.class'),
- 'ExampleFieldWidget',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --plugin label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldwidget.questions.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.fieldwidget.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --field-type option
- $field_type = $input->getOption('field-type');
- if (!$field_type) {
- // Gather valid field types.
- $field_type_options = [];
- foreach ($this->fieldTypePluginManager->getGroupedDefinitions($this->fieldTypePluginManager->getUiDefinitions()) as $category => $field_types) {
- foreach ($field_types as $name => $field_type) {
- $field_type_options[] = $name;
- }
- }
-
- $field_type = $this->getIo()->choice(
- $this->trans('commands.generate.plugin.fieldwidget.questions.field-type'),
- $field_type_options
- );
-
- $input->setOption('field-type', $field_type);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginImageEffectCommand.php b/vendor/drupal/console/src/Command/Generate/PluginImageEffectCommand.php
deleted file mode 100644
index 50c8282d3..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginImageEffectCommand.php
+++ /dev/null
@@ -1,196 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:imageeffect')
- ->setDescription($this->trans('commands.generate.plugin.imageeffect.description'))
- ->setHelp($this->trans('commands.generate.plugin.imageeffect.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.imageeffect.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.imageeffect.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.imageeffect.options.plugin-id')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.imageeffect.options.description')
- )
- ->setAliases(['gpie']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $description = $input->getOption('description');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'description' => $description,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageeffect.questions.class'),
- 'DefaultImageEffect',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageeffect.questions.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageeffect.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --description option
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageeffect.questions.description'),
- $this->trans('commands.generate.plugin.imageeffect.suggestions.my-image-effect')
- );
- $input->setOption('description', $description);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginImageFormatterCommand.php b/vendor/drupal/console/src/Command/Generate/PluginImageFormatterCommand.php
deleted file mode 100644
index 9d2b741b1..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginImageFormatterCommand.php
+++ /dev/null
@@ -1,173 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:imageformatter')
- ->setDescription($this->trans('commands.generate.plugin.imageformatter.description'))
- ->setHelp($this->trans('commands.generate.plugin.imageformatter.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.imageformatter.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.imageformatter.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.imageformatter.options.plugin-id')
- )
- ->setAliases(['gpif']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageformatter.questions.class'),
- 'ExampleImageFormatter',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageformatter.questions.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.imageformatter.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginMailCommand.php b/vendor/drupal/console/src/Command/Generate/PluginMailCommand.php
deleted file mode 100644
index 98a0dda18..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginMailCommand.php
+++ /dev/null
@@ -1,195 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:mail')
- ->setDescription($this->trans('commands.generate.plugin.mail.description'))
- ->setHelp($this->trans('commands.generate.plugin.mail.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.mail.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.mail.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.mail.options.plugin-id')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )->setAliases(['gpm']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $services = $input->getOption('services');
-
- // @see use Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $build_services = $this->buildServices($services);
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'services' => $build_services,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.mail.options.class'),
- 'HtmlFormatterMail',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.mail.options.label'),
- $this->stringConverter->camelCaseToHuman($class)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $pluginId = $input->getOption('plugin-id');
- if (!$pluginId) {
- $pluginId = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.mail.options.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class)
- );
- $input->setOption('plugin-id', $pluginId);
- }
-
- // --services option
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginMigrateProcessCommand.php b/vendor/drupal/console/src/Command/Generate/PluginMigrateProcessCommand.php
deleted file mode 100644
index 8a1585b56..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginMigrateProcessCommand.php
+++ /dev/null
@@ -1,156 +0,0 @@
-generator = $generator;
- $this->chainQueue = $chainQueue;
- $this->extensionManager = $extensionManager;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:migrate:process')
- ->setDescription($this->trans('commands.generate.plugin.migrate.process.description'))
- ->setHelp($this->trans('commands.generate.plugin.migrate.process.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.process.options.class')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.process.options.plugin-id')
- )->setAliases(['gpmp']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $plugin_id = $input->getOption('plugin-id');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'plugin_id' => $plugin_id,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // 'module-name' option.
- $module = $this->getModuleOption();
-
- // 'class-name' option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.process.questions.class'),
- ucfirst($this->stringConverter->underscoreToCamelCase($module)),
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // 'plugin-id' option.
- $pluginId = $input->getOption('plugin-id');
- if (!$pluginId) {
- $pluginId = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class)
- );
- $input->setOption('plugin-id', $pluginId);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginMigrateSourceCommand.php b/vendor/drupal/console/src/Command/Generate/PluginMigrateSourceCommand.php
deleted file mode 100644
index 8476a1e06..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginMigrateSourceCommand.php
+++ /dev/null
@@ -1,260 +0,0 @@
-configFactory = $configFactory;
- $this->chainQueue = $chainQueue;
- $this->generator = $generator;
- $this->entityTypeManager = $entityTypeManager;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- $this->stringConverter = $stringConverter;
- $this->elementInfoManager = $elementInfoManager;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:migrate:source')
- ->setDescription($this->trans('commands.generate.plugin.migrate.source.description'))
- ->setHelp($this->trans('commands.generate.plugin.migrate.source.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.source.options.class')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.source.options.plugin-id')
- )
- ->addOption(
- 'table',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.source.options.table')
- )
- ->addOption(
- 'alias',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.source.options.alias')
- )
- ->addOption(
- 'group-by',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.migrate.source.options.group-by')
- )
- ->addOption(
- 'fields',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.plugin.migrate.source.options.fields')
- )->setAliases(['gpms']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $plugin_id = $input->getOption('plugin-id');
- $table = $input->getOption('table');
- $alias = $input->getOption('alias');
- $group_by = $input->getOption('group-by');
- $fields = $input->getOption('fields');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'plugin_id' => $plugin_id,
- 'table' => $table,
- 'alias' => $alias,
- 'group_by' => $group_by,
- 'fields' => $fields,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // 'module-name' option.
- $module = $this->getModuleOption();
-
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.class'),
- ucfirst($this->stringConverter->underscoreToCamelCase($module)),
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- $pluginId = $input->getOption('plugin-id');
- if (!$pluginId) {
- $pluginId = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class)
- );
- $input->setOption('plugin-id', $pluginId);
- }
-
- $table = $input->getOption('table');
- if (!$table) {
- $table = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.table'),
- ''
- );
- $input->setOption('table', $table);
- }
-
- $alias = $input->getOption('alias');
- if (!$alias) {
- $alias = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.alias'),
- substr($table, 0, 1)
- );
- $input->setOption('alias', $alias);
- }
-
- $groupBy = $input->getOption('group-by');
- if ($groupBy == '') {
- $groupBy = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.group-by'),
- false
- );
- $input->setOption('group-by', $groupBy);
- }
-
- $fields = $input->getOption('fields');
- if (!$fields) {
- $fields = [];
- while (true) {
- $id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.id'),
- false
- );
- if (!$id) {
- break;
- }
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.migrate.source.questions.description'),
- $id
- );
- $fields[] = [
- 'id' => $id,
- 'description' => $description,
- ];
- }
- $input->setOption('fields', $fields);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginRestResourceCommand.php b/vendor/drupal/console/src/Command/Generate/PluginRestResourceCommand.php
deleted file mode 100644
index e275c2e53..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginRestResourceCommand.php
+++ /dev/null
@@ -1,268 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:rest:resource')
- ->setDescription($this->trans('commands.generate.plugin.rest.resource.description'))
- ->setHelp($this->trans('commands.generate.plugin.rest.resource.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rest.resource.options.class')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rest.resource.options.plugin-id')
- )
- ->addOption(
- 'plugin-label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rest.resource.options.plugin-label')
- )
- ->addOption(
- 'plugin-url',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.plugin.rest.resource.options.plugin-url')
- )
- ->addOption(
- 'plugin-states',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.plugin.rest.resource.options.plugin-states')
- )
- ->setAliases(['gprr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $http_methods = $this->getHttpMethods();
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $plugin_id = $input->getOption('plugin-id');
- $plugin_label = $input->getOption('plugin-label');
- $plugin_url = $input->getOption('plugin-url');
- $plugin_states = $this->validator->validateHttpMethods($input->getOption('plugin-states'), $http_methods);
-
- $prepared_plugin = [];
- foreach ($plugin_states as $plugin_state) {
- $prepared_plugin[$plugin_state] = $http_methods[$plugin_state];
- }
-
- $this->generator->generate([
- 'module_name' => $module,
- 'class_name' => $class_name,
- 'plugin_label' => $plugin_label,
- 'plugin_id' => $plugin_id,
- 'plugin_url' => $plugin_url,
- 'plugin_states' => $prepared_plugin,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rest.resource.questions.class'),
- 'DefaultRestResource',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rest.resource.questions.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --plugin-label option
- $plugin_label = $input->getOption('plugin-label');
- if (!$plugin_label) {
- $plugin_label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rest.resource.questions.plugin-label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('plugin-label', $plugin_label);
- }
-
- // --plugin-url option
- $plugin_url = $input->getOption('plugin-url');
- if (!$plugin_url) {
- $plugin_url = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rest.resource.questions.plugin-url')
- );
- $input->setOption('plugin-url', $plugin_url);
- }
-
-
- // --plugin-states option
- $plugin_states = $input->getOption('plugin-states');
- if (!$plugin_states) {
- $states = array_keys($this->getHttpMethods());
- $plugin_states = $this->getIo()->choice(
- $this->trans('commands.generate.plugin.rest.resource.questions.plugin-states'),
- $states,
- null,
- true
- );
-
- $input->setOption('plugin-states', $plugin_states);
- }
- }
-
- /**
- * Returns available HTTP methods.
- *
- * @return array
- * Available HTTP methods.
- */
- protected function getHttpMethods()
- {
- return [
- 'GET' => [
- 'http_code' => 200,
- 'response_class' => 'ResourceResponse',
- ],
- 'PUT' => [
- 'http_code' => 201,
- 'response_class' => 'ModifiedResourceResponse',
- ],
- 'POST' => [
- 'http_code' => 200,
- 'response_class' => 'ModifiedResourceResponse',
- ],
- 'PATCH' => [
- 'http_code' => 204,
- 'response_class' => 'ModifiedResourceResponse',
- ],
- 'DELETE' => [
- 'http_code' => 204,
- 'response_class' => 'ModifiedResourceResponse',
- ],
- 'HEAD' => [
- 'http_code' => 200,
- 'response_class' => 'ResourceResponse',
- ],
- 'OPTIONS' => [
- 'http_code' => 200,
- 'response_class' => 'ResourceResponse',
- ],
- ];
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginRulesActionCommand.php b/vendor/drupal/console/src/Command/Generate/PluginRulesActionCommand.php
deleted file mode 100644
index 473eb2ff1..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginRulesActionCommand.php
+++ /dev/null
@@ -1,231 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:rulesaction')
- ->setDescription($this->trans('commands.generate.plugin.rulesaction.description'))
- ->setHelp($this->trans('commands.generate.plugin.rulesaction.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rulesaction.options.class')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rulesaction.options.label')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rulesaction.options.plugin-id')
- )
- ->addOption('type', null, InputOption::VALUE_REQUIRED, $this->trans('commands.generate.plugin.rulesaction.options.type'))
- ->addOption(
- 'category',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.plugin.rulesaction.options.category')
- )
- ->addOption(
- 'context',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.rulesaction.options.context')
- )
- ->setAliases(['gpra']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $label = $input->getOption('label');
- $plugin_id = $input->getOption('plugin-id');
- $type = $input->getOption('type');
- $category = $input->getOption('category');
- $context = $input->getOption('context');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'label' => $label,
- 'plugin_id' => $plugin_id,
- 'category' => $category,
- 'context' => $context,
- 'type' => $type,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rulesaction.options.class'),
- 'DefaultAction',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rulesaction.options.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
-
- // --plugin-id option
- $plugin_id = $input->getOption('plugin-id');
- if (!$plugin_id) {
- $plugin_id = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rulesaction.options.plugin-id'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-id', $plugin_id);
- }
-
- // --type option
- $type = $input->getOption('type');
- if (!$type) {
- $type = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rulesaction.options.type'),
- 'user'
- );
- $input->setOption('type', $type);
- }
-
- // --category option
- $category = $input->getOption('category');
- if (!$category) {
- $category = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rulesaction.options.category'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('category', $category);
- }
-
- // --context option
- $context = $input->getOption('context');
- if (!$context) {
- $context = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.rulesaction.options.context'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('context', $context);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginSkeletonCommand.php b/vendor/drupal/console/src/Command/Generate/PluginSkeletonCommand.php
deleted file mode 100644
index 30f84b631..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginSkeletonCommand.php
+++ /dev/null
@@ -1,380 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected $pluginGeneratorsImplemented = [
- 'block' => 'generate:plugin:block',
- 'ckeditor.plugin' => 'generate:plugin:ckeditorbutton',
- 'condition' => 'generate:plugin:condition',
- 'field.formatter' => 'generate:plugin:fieldformatter',
- 'field.field_type' => 'generate:plugin:fieldtype',
- 'field.widget' =>'generate:plugin:fieldwidget',
- 'image.effect' => 'generate:plugin:imageeffect',
- 'mail' => 'generate:plugin:mail'
- ];
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:skeleton')
- ->setDescription($this->trans('commands.generate.plugin.skeleton.description'))
- ->setHelp($this->trans('commands.generate.plugin.skeleton.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'plugin-id',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.skeleton.options.plugin')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.skeleton.options.class')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL| InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )->setAliases(['gps']);
- }
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
-
- $pluginId = $input->getOption('plugin-id');
- $plugin = ucfirst($this->stringConverter->underscoreToCamelCase($pluginId));
-
- $plugins = $this->getPlugins();
-
- // Confirm that plugin.manager is available
- if (!$this->validator->validatePluginManagerServiceExist($pluginId, $plugins)) {
- throw new \Exception(
- sprintf(
- $this->trans('commands.generate.plugin.skeleton.messages.plugin-dont-exist'),
- $pluginId
- )
- );
- }
-
- if (array_key_exists($pluginId, $this->pluginGeneratorsImplemented)) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.generate.plugin.skeleton.messages.plugin-generator-implemented'),
- $pluginId,
- $this->pluginGeneratorsImplemented[$pluginId]
- )
- );
- }
-
- $className = $this->validator->validateClassName($input->getOption('class'));
- $services = $input->getOption('services');
-
- // @see use Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $buildServices = $this->buildServices($services);
- $pluginMetaData = $this->getPluginMetadata($pluginId);
-
- $this->generator->generate([
- 'module' => $module,
- 'plugin_id' => $pluginId,
- 'plugin' => $plugin,
- 'class_name' => $className,
- 'services' => $buildServices,
- 'plugin_metadata' => $pluginMetaData,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- $pluginId = $input->getOption('plugin-id');
- if (!$pluginId) {
- $plugins = $this->getPlugins();
- $pluginId = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.plugin.skeleton.questions.plugin'),
- $plugins
- );
- $input->setOption('plugin-id', $pluginId);
- }
-
- if (array_key_exists($pluginId, $this->pluginGeneratorsImplemented)) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.generate.plugin.skeleton.messages.plugin-dont-exist'),
- $pluginId,
- $this->pluginGeneratorsImplemented[$pluginId]
- )
- );
- }
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.skeleton.options.class'),
- sprintf('%s%s', 'Default', ucfirst($this->stringConverter->underscoreToCamelCase($pluginId))),
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --services option
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $input->getOption('services');
- if (!$services) {
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
- }
-
- protected function getPluginMetadata($pluginId)
- {
- $pluginMetaData = [
- 'serviceId' => 'plugin.manager.' . $pluginId,
- ];
-
- // Load service and create reflection
- $service = \Drupal::service($pluginMetaData['serviceId']);
-
- $reflectionClass = new \ReflectionClass($service);
-
- // Get list of properties with $reflectionClass->getProperties();
- $pluginManagerProperties = [
- 'subdir' => 'subdir',
- 'pluginInterface' => 'pluginInterface',
- 'pluginDefinitionAnnotationName' => 'pluginAnnotation',
- ];
-
- foreach ($pluginManagerProperties as $propertyName => $key) {
- if (!$reflectionClass->hasProperty($propertyName)) {
- $pluginMetaData[$key] = '';
- continue;
- }
-
- $property = $reflectionClass->getProperty($propertyName);
- $property->setAccessible(true);
- $pluginMetaData[$key] = $property->getValue($service);
- }
-
- if (empty($pluginMetaData['pluginInterface'])) {
- $pluginMetaData['pluginInterfaceMethods'] = [];
- } else {
- $pluginMetaData['pluginInterfaceMethods'] = $this->getClassMethods($pluginMetaData['pluginInterface']);
- }
-
- if (isset($pluginMetaData['pluginAnnotation']) && class_exists($pluginMetaData['pluginAnnotation'])) {
- $pluginMetaData['pluginAnnotationProperties'] = $this->getPluginAnnotationProperties($pluginMetaData['pluginAnnotation']);
- } else {
- $pluginMetaData['pluginAnnotationProperties'] = [];
- }
-
- return $pluginMetaData;
- }
-
- /**
- * Get data for the methods of a class.
- *
- * @param $class
- * The fully-qualified name of class.
- *
- * @return
- * An array keyed by method name, where each value is an array containing:
- * - 'name: The name of the method.
- * - 'declaration': The function declaration line.
- * - 'description': The description from the method's docblock first line.
- */
- protected function getClassMethods($class)
- {
- // Get a reflection class.
- $classReflection = new \ReflectionClass($class);
- $methods = $classReflection->getMethods();
-
- $metaData = [];
- $methodData = [];
-
- foreach ($methods as $method) {
- $methodData['name'] = $method->getName();
-
- $filename = $method->getFileName();
- $source = file($filename);
- $startLine = $method->getStartLine();
-
- $methodData['declaration'] = substr(trim($source[$startLine - 1]), 0, -1);
-
- $methodDocComment = explode("\n", $method->getDocComment());
- foreach ($methodDocComment as $line) {
- if (substr($line, 0, 5) == ' * ') {
- $methodData['description'] = substr($line, 5);
- break;
- }
- }
-
- $metaData[$method->getName()] = $methodData;
- }
-
- return $metaData;
- }
-
- /**
- * Get the list of properties from an annotation class.
- *
- * @param $pluginAnnotationClass
- * The fully-qualified name of the plugin annotation class.
- *
- * @return
- * An array keyed by property name, where each value is an array containing:
- * - 'name: The name of the property.
- * - 'description': The description from the property's docblock first line.
- */
- protected function getPluginAnnotationProperties($pluginAnnotationClass)
- {
- // Get a reflection class for the annotation class.
- // Each property of the annotation class describes a property for the
- // plugin annotation.
- $annotationReflection = new \ReflectionClass($pluginAnnotationClass);
- $propertiesReflection = $annotationReflection->getProperties(\ReflectionProperty::IS_PUBLIC);
-
- $pluginProperties = [];
- $annotationPropertyMetadata = [];
-
- foreach ($propertiesReflection as $propertyReflection) {
- $annotationPropertyMetadata['name'] = $propertyReflection->name;
-
- $propertyDocblock = $propertyReflection->getDocComment();
- $propertyDocblockLines = explode("\n", $propertyDocblock);
- foreach ($propertyDocblockLines as $line) {
- if (substr($line, 0, 3) == '/**') {
- continue;
- }
-
- // Take the first actual docblock line to be the description.
- if (!isset($annotationPropertyMetadata['description']) && substr($line, 0, 5) == ' * ') {
- $annotationPropertyMetadata['description'] = substr($line, 5);
- }
-
- // Look for a @var token, to tell us the type of the property.
- if (substr($line, 0, 10) == ' * @var ') {
- $annotationPropertyMetadata['type'] = substr($line, 10);
- }
- }
-
- $pluginProperties[$propertyReflection->name] = $annotationPropertyMetadata;
- }
-
- return $pluginProperties;
- }
-
- protected function getPlugins()
- {
- $plugins = [];
-
- foreach ($this->container->getServiceIds() as $serviceId) {
- if (strpos($serviceId, 'plugin.manager.') === 0) {
- $plugins[] = substr($serviceId, 15);
- }
- }
-
- return $plugins;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginTypeAnnotationCommand.php b/vendor/drupal/console/src/Command/Generate/PluginTypeAnnotationCommand.php
deleted file mode 100644
index 1aa16041c..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginTypeAnnotationCommand.php
+++ /dev/null
@@ -1,161 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:type:annotation')
- ->setDescription($this->trans('commands.generate.plugin.type.annotation.description'))
- ->setHelp($this->trans('commands.generate.plugin.type.annotation.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.type.annotation.options.class')
- )
- ->addOption(
- 'machine-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.type.annotation.options.plugin-id')
- )
- ->addOption(
- 'label',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.type.annotation.options.label')
- )
- ->setAliases(['gpta']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $machine_name = $input->getOption('machine-name');
- $label = $input->getOption('label');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'machine_name' => $machine_name,
- 'label' => $label,
- ]);
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.type.annotation.options.class'),
- 'ExamplePlugin',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --machine-name option
- $machine_name = $input->getOption('machine-name');
- if (!$machine_name) {
- $machine_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.type.annotation.options.machine-name'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('machine-name', $machine_name);
- }
-
- // --label option
- $label = $input->getOption('label');
- if (!$label) {
- $label = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.type.annotation.options.label'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('label', $label);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginTypeYamlCommand.php b/vendor/drupal/console/src/Command/Generate/PluginTypeYamlCommand.php
deleted file mode 100644
index a7ef0a067..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginTypeYamlCommand.php
+++ /dev/null
@@ -1,161 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:type:yaml')
- ->setDescription($this->trans('commands.generate.plugin.type.yaml.description'))
- ->setHelp($this->trans('commands.generate.plugin.type.yaml.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.type.yaml.options.class')
- )
- ->addOption(
- 'plugin-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.type.yaml.options.plugin-name')
- )
- ->addOption(
- 'plugin-file-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.type.yaml.options.plugin-file-name')
- )
- ->setAliases(['gpty']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $plugin_name = $input->getOption('plugin-name');
- $plugin_file_name = $input->getOption('plugin-file-name');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_name' => $class_name,
- 'plugin_name' => $plugin_name,
- 'plugin_file_name' => $plugin_file_name,
- ]);
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.type.yaml.options.class'),
- 'ExamplePlugin',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class_name);
- }
-
- // --plugin-name option
- $plugin_name = $input->getOption('plugin-name');
- if (!$plugin_name) {
- $plugin_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.type.yaml.options.plugin-name'),
- $this->stringConverter->camelCaseToUnderscore($class_name)
- );
- $input->setOption('plugin-name', $plugin_name);
- }
-
- // --plugin-file-name option
- $plugin_file_name = $input->getOption('plugin-file-name');
- if (!$plugin_file_name) {
- $plugin_file_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.type.yaml.options.plugin-file-name'),
- strtr($plugin_name, '_-', '..')
- );
- $input->setOption('plugin-file-name', $plugin_file_name);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PluginViewsFieldCommand.php b/vendor/drupal/console/src/Command/Generate/PluginViewsFieldCommand.php
deleted file mode 100644
index 7fdadeb60..000000000
--- a/vendor/drupal/console/src/Command/Generate/PluginViewsFieldCommand.php
+++ /dev/null
@@ -1,190 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->site = $site;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:plugin:views:field')
- ->setDescription($this->trans('commands.generate.plugin.views.field.description'))
- ->setHelp($this->trans('commands.generate.plugin.views.field.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.plugin.views.field.options.class')
- )
- ->addOption(
- 'title',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.views.field.options.title')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.plugin.views.field.options.description')
- )
- ->setAliases(['gpvf']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $class_name = $this->validator->validateClassName($input->getOption('class'));
- $class_machine_name = $this->stringConverter->camelCaseToUnderscore($class_name);
- $title = $input->getOption('title');
- $description = $input->getOption('description');
-
- $this->generator->generate([
- 'module' => $module,
- 'class_machine_name' => $class_machine_name,
- 'class_name' => $class_name,
- 'title' => $title,
- 'description' => $description,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $this->getModuleOption();
-
- // --class option
- $class_name = $input->getOption('class');
- if (!$class_name) {
- $class_name = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.views.field.questions.class'),
- 'CustomViewsField',
- function ($class_name) {
- return $this->validator->validateClassName($class_name);
- }
- );
- }
- $input->setOption('class', $class_name);
-
- // --title option
- $title = $input->getOption('title');
- if (!$title) {
- $title = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.views.field.questions.title'),
- $this->stringConverter->camelCaseToHuman($class_name)
- );
- $input->setOption('title', $title);
- }
-
- // --description option
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.plugin.views.field.questions.description'),
- $this->trans('commands.generate.plugin.views.field.questions.description_default')
- );
- $input->setOption('description', $description);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/PostUpdateCommand.php b/vendor/drupal/console/src/Command/Generate/PostUpdateCommand.php
deleted file mode 100644
index c58e97021..000000000
--- a/vendor/drupal/console/src/Command/Generate/PostUpdateCommand.php
+++ /dev/null
@@ -1,184 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->site = $site;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:post:update')
- ->setDescription($this->trans('commands.generate.post.update.description'))
- ->setHelp($this->trans('commands.generate.post.update.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'post-update-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.post.update.options.post-update-name')
- )->setAliases(['gpu']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $postUpdateName = $input->getOption('post-update-name');
-
- $this->validatePostUpdateName($module, $postUpdateName);
-
- $this->generator->generate([
- 'module' => $module,
- 'post_update_name' => $postUpdateName,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->site->loadLegacyFile('/core/includes/update.inc');
- $this->site->loadLegacyFile('/core/includes/schema.inc');
-
- // --module option
- $this->getModuleOption();
-
- $postUpdateName = $input->getOption('post-update-name');
- if (!$postUpdateName) {
- $postUpdateName = $this->getIo()->ask(
- $this->trans('commands.generate.post.update.questions.post-update-name'),
- '',
- function ($postUpdateName) {
- return $this->validator->validateSpaces($postUpdateName);
- }
- );
-
- $input->setOption('post-update-name', $postUpdateName);
- }
- }
-
- protected function getLastUpdate($module)
- {
- $this->site->loadLegacyFile('/core/includes/update.inc');
- $this->site->loadLegacyFile('/core/includes/schema.inc');
-
- $updates = update_get_update_list();
-
- if (empty($updates[$module]['pending'])) {
- $lastUpdateSchema = drupal_get_schema_versions($module);
- } else {
- $lastUpdateSchema = reset(array_keys($updates[$module]['pending'], max($updates[$module]['pending'])));
- }
-
- return $lastUpdateSchema;
- }
-
- protected function validatePostUpdateName($module, $postUpdateName)
- {
- if (!$this->validator->validateSpaces($postUpdateName)) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.post.update.messages.wrong-post-update-name'),
- $postUpdateName
- )
- );
- }
-
- if ($this->extensionManager->validateModuleFunctionExist($module, $module . '_post_update_' . $postUpdateName, $module . '.post_update.php')) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.post.update.messages.post-update-name-already-implemented'),
- $postUpdateName
- )
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ProfileCommand.php b/vendor/drupal/console/src/Command/Generate/ProfileCommand.php
deleted file mode 100644
index 0d61548c1..000000000
--- a/vendor/drupal/console/src/Command/Generate/ProfileCommand.php
+++ /dev/null
@@ -1,293 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:profile')
- ->setDescription($this->trans('commands.generate.profile.description'))
- ->setHelp($this->trans('commands.generate.profile.help'))
- ->addOption(
- 'profile',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.profile.options.profile')
- )
- ->addOption(
- 'machine-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.profile.options.machine-name')
- )
- ->addOption(
- 'profile-path',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.profile.options.profile-path')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.profile.options.description')
- )
- ->addOption(
- 'core',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.profile.options.core')
- )
- ->addOption(
- 'dependencies',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.profile.options.dependencies'),
- ''
- )
- ->addOption(
- 'themes',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.profile.options.themes'),
- ''
- )
- ->addOption(
- 'distribution',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.profile.options.distribution')
- )->setAliases(['gpr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- // Get the profile path and define a profile path if it is null
- // Check that it is an absolute path or otherwise create an absolute path using appRoot
- $profile_path = $input->getOption('profile-path');
- $profile_path = $profile_path == null ? 'profiles' : $profile_path;
- $profile_path = Path::isAbsolute($profile_path) ? $profile_path : Path::makeAbsolute($profile_path, $this->appRoot);
- $profile_path = $this->validator->validateModulePath($profile_path, true);
-
- $profile = $this->validator->validateModuleName($input->getOption('profile'));
- $machine_name = $this->validator->validateMachineName($input->getOption('machine-name'));
- $description = $input->getOption('description');
- $core = $input->getOption('core');
- $dependencies = $this->validator->validateExtensions($input->getOption('dependencies'), 'module', $this->getIo());
- $themes = $this->validator->validateExtensions($input->getOption('themes'), 'theme', $this->getIo());
- $distribution = $input->getOption('distribution');
-
- $this->generator->generate([
- 'profile' => $profile,
- 'machine_name' => $machine_name,
- 'type' => 'profile',
- 'core' => $core,
- 'description' => $description,
- 'dependencies' => $dependencies,
- 'themes' => $themes,
- 'distribution' => $distribution,
- 'dir' => $profile_path,
- ]);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- //$stringUtils = $this->getStringHelper();
- $validators = $this->validator;
-
- try {
- // A profile is technically also a module, so we can use the same
- // validator to check the name.
- $profile = $input->getOption('profile') ? $validators->validateModuleName($input->getOption('profile')) : null;
- } catch (\Exception $error) {
- $this->getIo()->error($error->getMessage());
-
- return 1;
- }
-
- if (!$profile) {
- $profile = $this->getIo()->ask(
- $this->trans('commands.generate.profile.questions.profile'),
- '',
- function ($profile) use ($validators) {
- return $validators->validateModuleName($profile);
- }
- );
- $input->setOption('profile', $profile);
- }
-
- try {
- $machine_name = $input->getOption('machine-name') ? $validators->validateModuleName($input->getOption('machine-name')) : null;
- } catch (\Exception $error) {
- $this->getIo()->error($error->getMessage());
-
- return 1;
- }
-
- if (!$machine_name) {
- $machine_name = $this->getIo()->ask(
- $this->trans('commands.generate.profile.questions.machine-name'),
- $this->stringConverter->createMachineName($profile),
- function ($machine_name) use ($validators) {
- return $validators->validateMachineName($machine_name);
- }
- );
- $input->setOption('machine-name', $machine_name);
- }
-
- $profile_path = $input->getOption('profile-path');
- if (!$profile_path) {
- $profile_path = $this->getIo()->ask(
- $this->trans('commands.generate.profile.questions.profile-path'),
- 'profiles',
- function ($profile_path) use ($machine_name) {
- $fullPath = Path::isAbsolute($profile_path) ? $profile_path : Path::makeAbsolute($profile_path, $this->appRoot);
- $fullPath = $fullPath.'/'.$machine_name;
- if (file_exists($fullPath)) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.profile.errors.directory-exists'),
- $fullPath
- )
- );
- }
-
- return $profile_path;
- }
- );
- }
- $input->setOption('profile-path', $profile_path);
-
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.profile.questions.description'),
- $this->trans('commands.generate.profile.suggestions.my-useful-profile')
- );
- $input->setOption('description', $description);
- }
-
- $core = $input->getOption('core');
- if (!$core) {
- $core = $this->getIo()->ask(
- $this->trans('commands.generate.profile.questions.core'),
- '8.x'
- );
- $input->setOption('core', $core);
- }
-
- $dependencies = $input->getOption('dependencies');
- if (!$dependencies) {
- if ($this->getIo()->confirm(
- $this->trans('commands.generate.profile.questions.dependencies'),
- true
- )
- ) {
- $dependencies = $this->getIo()->ask(
- $this->trans('commands.generate.profile.options.dependencies'),
- ''
- );
- }
- $input->setOption('dependencies', $dependencies);
- }
-
- $distribution = $input->getOption('distribution');
- if (!$distribution) {
- if ($this->getIo()->confirm(
- $this->trans('commands.generate.profile.questions.distribution'),
- false
- )
- ) {
- $distribution = $this->getIo()->ask(
- $this->trans('commands.generate.profile.options.distribution'),
- $this->trans('commands.generate.profile.suggestions.my-kick-ass-distribution')
- );
- $input->setOption('distribution', $distribution);
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/RouteSubscriberCommand.php b/vendor/drupal/console/src/Command/Generate/RouteSubscriberCommand.php
deleted file mode 100644
index 1ca175b11..000000000
--- a/vendor/drupal/console/src/Command/Generate/RouteSubscriberCommand.php
+++ /dev/null
@@ -1,157 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->chainQueue = $chainQueue;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:routesubscriber')
- ->setDescription($this->trans('commands.generate.routesubscriber.description'))
- ->setHelp($this->trans('commands.generate.routesubscriber.description'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.routesubscriber.options.name')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.routesubscriber.options.class')
- )->setAliases(['gr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $name = $input->getOption('name');
- $class = $this->validator->validateClassName($input->getOption('class'));
-
- $this->generator->generate([
- 'module' => $module,
- 'name' => $name,
- 'class' => $class,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --name option
- $name = $input->getOption('name');
- if (!$name) {
- $name = $this->getIo()->ask(
- $this->trans('commands.generate.routesubscriber.questions.name'),
- $module.'.route_subscriber'
- );
- $input->setOption('name', $name);
- }
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.routesubscriber.questions.class'),
- 'RouteSubscriber',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ServiceCommand.php b/vendor/drupal/console/src/Command/Generate/ServiceCommand.php
deleted file mode 100644
index 3e387da35..000000000
--- a/vendor/drupal/console/src/Command/Generate/ServiceCommand.php
+++ /dev/null
@@ -1,251 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:service')
- ->setDescription($this->trans('commands.generate.service.description'))
- ->setHelp($this->trans('commands.generate.service.description'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.service.options.service-name')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.service.options.class')
- )
- ->addOption(
- 'interface',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.generate.service.options.interface')
- )
- ->addOption(
- 'interface-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.service.options.interface-name')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )
- ->addOption(
- 'path-service',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.service.options.path-service')
- )
- ->setAliases(['gs']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $name = $input->getOption('name');
- $class = $this->validator->validateClassName($input->getOption('class'));
- $interface = $input->getOption('interface');
- $interface_name = $input->getOption('interface-name');
- $services = $input->getOption('services');
- $path_service = $input->getOption('path-service');
-
- $available_services = $this->container->getServiceIds();
-
- if (in_array($name, array_values($available_services))) {
- throw new \Exception(
- sprintf(
- $this->trans('commands.generate.service.messages.service-already-taken'),
- $module
- )
- );
- }
-
- // @see Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $build_services = $this->buildServices($services);
- $this->generator->generate([
- 'module' => $module,
- 'name' => $name,
- 'class' => $class,
- 'interface' => $interface,
- 'services' => $build_services,
- 'path_service' => $path_service,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- //--name option
- $name = $input->getOption('name');
- if (!$name) {
- $name = $this->getIo()->ask(
- $this->trans('commands.generate.service.questions.service-name'),
- $module.'.default'
- );
- $input->setOption('name', $name);
- }
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.generate.service.questions.class'),
- 'DefaultService',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --interface option
- $interface = $input->getOption('interface');
- if (!$interface) {
- $interface = $this->getIo()->confirm(
- $this->trans('commands.generate.service.questions.interface'),
- true
- );
- $input->setOption('interface', $interface);
- }
-
- // --interface_name option
- $interface_name = $input->getOption('interface-name');
- if ($interface && !$interface_name) {
- $interface_name = $this->getIo()->askEmpty(
- $this->trans('commands.generate.service.questions.interface-name')
- );
- $input->setOption('interface-name', $interface_name);
- }
-
- // --services option
- $services = $input->getOption('services');
- if (!$services) {
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
-
- // --path_service option
- $path_service = $input->getOption('path-service');
- if (!$path_service) {
- $path_service = $this->getIo()->ask(
- $this->trans('commands.generate.service.questions.path-service'),
- '/modules/custom/' . $module . '/src/'
- );
- $input->setOption('path-service', $path_service);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/ThemeCommand.php b/vendor/drupal/console/src/Command/Generate/ThemeCommand.php
deleted file mode 100644
index e6fc77b40..000000000
--- a/vendor/drupal/console/src/Command/Generate/ThemeCommand.php
+++ /dev/null
@@ -1,397 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->validator = $validator;
- $this->appRoot = $appRoot;
- $this->themeHandler = $themeHandler;
- $this->site = $site;
- $this->stringConverter = $stringConverter;
- parent::__construct();
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:theme')
- ->setDescription($this->trans('commands.generate.theme.description'))
- ->setHelp($this->trans('commands.generate.theme.help'))
- ->addOption(
- 'theme',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.theme.options.theme')
- )
- ->addOption(
- 'machine-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.theme.options.machine-name')
- )
- ->addOption(
- 'theme-path',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.theme.options.theme-path')
- )
- ->addOption(
- 'description',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.theme.options.description')
- )
- ->addOption('core', null, InputOption::VALUE_OPTIONAL, $this->trans('commands.generate.theme.options.core'))
- ->addOption(
- 'package',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.theme.options.package')
- )
- ->addOption(
- 'global-library',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.theme.options.global-library')
- )
- ->addOption(
- 'libraries',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.theme.options.libraries')
- )
- ->addOption(
- 'base-theme',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.generate.theme.options.base-theme')
- )
- ->addOption(
- 'regions',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.theme.options.regions')
- )
- ->addOption(
- 'breakpoints',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.generate.theme.options.breakpoints')
- )
- ->setAliases(['gt']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $theme = $this->validator->validateModuleName($input->getOption('theme'));
- // Get the profile path and define a profile path if it is null
- // Check that it is an absolute path or otherwise create an absolute path using appRoot
- $theme_path = $input->getOption('theme-path');
- $theme_path = $theme_path == null ? 'themes/custom' : $theme_path;
- $theme_path = Path::isAbsolute($theme_path) ? $theme_path : Path::makeAbsolute($theme_path, $this->appRoot);
- $theme_path = $this->validator->validateModulePath($theme_path, true);
-
- $machine_name = $this->validator->validateMachineName($input->getOption('machine-name'));
- $description = $input->getOption('description');
- $core = $input->getOption('core');
- $package = $input->getOption('package');
- $base_theme = $input->getOption('base-theme');
- $global_library = $input->getOption('global-library');
- $libraries = $input->getOption('libraries');
- $regions = $input->getOption('regions');
- $breakpoints = $input->getOption('breakpoints');
- $noInteraction = $input->getOption('no-interaction');
-
- // Parse nested data.
- if ($noInteraction) {
- $libraries = $this->explodeInlineArray($libraries);
- $regions = $this->explodeInlineArray($regions);
- $breakpoints = $this->explodeInlineArray($breakpoints);
- }
-
- $this->generator->generate([
- 'theme' => $theme,
- 'machine_name' => $machine_name,
- 'dir' => $theme_path,
- 'core' => $core,
- 'description' => $description,
- 'package' => $package,
- 'base_theme' => $base_theme,
- 'global_library' => $global_library,
- 'libraries' => $libraries,
- 'regions' => $regions,
- 'breakpoints' => $breakpoints,
- ]);
-
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- try {
- $theme = $input->getOption('theme') ? $this->validator->validateModuleName($input->getOption('theme')) : null;
- } catch (\Exception $error) {
- $this->getIo()->error($error->getMessage());
-
- return 1;
- }
-
- if (!$theme) {
- $validators = $this->validator;
- $theme = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.theme'),
- '',
- function ($theme) use ($validators) {
- return $validators->validateModuleName($theme);
- }
- );
- $input->setOption('theme', $theme);
- }
-
- try {
- $machine_name = $input->getOption('machine-name') ? $this->validator->validateModuleName($input->getOption('machine-name')) : null;
- } catch (\Exception $error) {
- $this->getIo()->error($error->getMessage());
-
- return 1;
- }
-
- if (!$machine_name) {
- $machine_name = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.machine-name'),
- $this->stringConverter->createMachineName($theme),
- function ($machine_name) use ($validators) {
- return $validators->validateMachineName($machine_name);
- }
- );
- $input->setOption('machine-name', $machine_name);
- }
-
- $theme_path = $input->getOption('theme-path');
- if (!$theme_path) {
- $theme_path = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.theme-path'),
- 'themes/custom',
- function ($theme_path) use ($machine_name) {
- $fullPath = Path::isAbsolute($theme_path) ? $theme_path : Path::makeAbsolute($theme_path, $this->appRoot);
- $fullPath = $fullPath.'/'.$machine_name;
- if (file_exists($fullPath)) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.theme.errors.directory-exists'),
- $fullPath
- )
- );
- } else {
- return $theme_path;
- }
- }
- );
- $input->setOption('theme-path', $theme_path);
- }
-
- $description = $input->getOption('description');
- if (!$description) {
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.description'),
- $this->trans('commands.generate.theme.suggestions.my-awesome-theme')
- );
- $input->setOption('description', $description);
- }
-
- $package = $input->getOption('package');
- if (!$package) {
- $package = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.package'),
- $this->trans('commands.generate.theme.suggestions.other')
- );
- $input->setOption('package', $package);
- }
-
- $core = $input->getOption('core');
- if (!$core) {
- $core = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.core'),
- '8.x'
- );
- $input->setOption('core', $core);
- }
-
- $base_theme = $input->getOption('base-theme');
- if (!$base_theme) {
- $themes = $this->themeHandler->rebuildThemeData();
- $themes['false'] ='';
-
- uasort($themes, 'system_sort_modules_by_info_name');
-
- $base_theme = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.theme.options.base-theme'),
- array_keys($themes)
- );
- $input->setOption('base-theme', $base_theme);
- }
-
- $global_library = $input->getOption('global-library');
- if (!$global_library) {
- $global_library = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.global-library'),
- 'global-styling'
- );
- $input->setOption('global-library', $global_library);
- }
-
-
- // --libraries option.
- $libraries = $input->getOption('libraries');
- if (!$libraries) {
- if ($this->getIo()->confirm(
- $this->trans('commands.generate.theme.questions.library-add'),
- true
- )
- ) {
- // @see \Drupal\Console\Command\Shared\ThemeRegionTrait::libraryQuestion
- $libraries = $this->libraryQuestion();
- }
- } else {
- $libraries = $this->explodeInlineArray($libraries);
- }
- $input->setOption('libraries', $libraries);
-
- // --regions option.
- $regions = $input->getOption('regions');
- if (!$regions) {
- if ($this->getIo()->confirm(
- $this->trans('commands.generate.theme.questions.regions'),
- true
- )
- ) {
- // @see \Drupal\Console\Command\Shared\ThemeRegionTrait::regionQuestion
- $regions = $this->regionQuestion();
- }
- } else {
- $regions = $this->explodeInlineArray($regions);
- }
- $input->setOption('regions', $regions);
-
- // --breakpoints option.
- $breakpoints = $input->getOption('breakpoints');
- if (!$breakpoints) {
- if ($this->getIo()->confirm(
- $this->trans('commands.generate.theme.questions.breakpoints'),
- true
- )
- ) {
- // @see \Drupal\Console\Command\Shared\ThemeRegionTrait::regionQuestion
- $breakpoints = $this->breakpointQuestion();
- }
- } else {
- $breakpoints = $this->explodeInlineArray($breakpoints);
- }
- $input->setOption('breakpoints', $breakpoints);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php b/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php
deleted file mode 100644
index eb147859e..000000000
--- a/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php
+++ /dev/null
@@ -1,197 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->site = $site;
- $this->stringConverter = $stringConverter;
- $this->validator = $validator;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('generate:twig:extension')
- ->setDescription($this->trans('commands.generate.twig.extension.description'))
- ->setHelp($this->trans('commands.generate.twig.extension.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.twig.extension.options.name')
- )
- ->addOption(
- 'class',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.class')
- )
- ->addOption(
- 'services',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.common.options.services')
- )->setAliases(['gte']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $name = $input->getOption('name');
- $class = $this->validator->validateClassName($input->getOption('class'));
- $services = $input->getOption('services');
- // Add renderer service as first parameter.
- array_unshift($services, 'renderer');
-
- // @see Drupal\Console\Command\Shared\ServicesTrait::buildServices
- $build_services = $this->buildServices($services);
-
- $this->generator->generate([
- 'module' => $module,
- 'name' => $name,
- 'class' => $class,
- 'services' => $build_services,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module option
- $module = $this->getModuleOption();
-
- // --name option
- $name = $input->getOption('name');
- if (!$name) {
- $name = $this->getIo()->ask(
- $this->trans('commands.generate.twig.extension.questions.name'),
- $module.'.twig.extension'
- );
- $input->setOption('name', $name);
- }
-
- // --class option
- $class = $input->getOption('class');
- if (!$class) {
- $class = $this->getIo()->ask(
- $this->trans('commands.common.options.class'),
- 'DefaultTwigExtension',
- function ($class) {
- return $this->validator->validateClassName($class);
- }
- );
- $input->setOption('class', $class);
- }
-
- // --services option
- $services = $input->getOption('services');
- if (!$services) {
- // @see Drupal\Console\Command\Shared\ServicesTrait::servicesQuestion
- $services = $this->servicesQuestion();
- $input->setOption('services', $services);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Generate/UpdateCommand.php b/vendor/drupal/console/src/Command/Generate/UpdateCommand.php
deleted file mode 100644
index 153280066..000000000
--- a/vendor/drupal/console/src/Command/Generate/UpdateCommand.php
+++ /dev/null
@@ -1,192 +0,0 @@
-extensionManager = $extensionManager;
- $this->generator = $generator;
- $this->site = $site;
- $this->chainQueue = $chainQueue;
- $this->validator = $validator;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('generate:update')
- ->setDescription($this->trans('commands.generate.update.description'))
- ->setHelp($this->trans('commands.generate.update.help'))
- ->addOption(
- 'module',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.common.options.module')
- )
- ->addOption(
- 'update-n',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.generate.update.options.update-n')
- )->setAliases(['gu']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $module = $input->getOption('module');
- $updateNumber = $input->getOption('update-n');
-
- $lastUpdateSchema = $this->getLastUpdate($module);
-
- if ($updateNumber <= $lastUpdateSchema) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.update.messages.wrong-update-n'),
- $updateNumber
- )
- );
- }
-
- $this->generator->generate([
- 'module' => $module,
- 'update_number' => $updateNumber,
- ]);
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
-
- return 0;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->site->loadLegacyFile('/core/includes/update.inc');
- $this->site->loadLegacyFile('/core/includes/schema.inc');
-
- // --module option
- $module = $this->getModuleOption();
-
- $lastUpdateSchema = $this->getLastUpdate($module);
- $nextUpdateSchema = $lastUpdateSchema ? ($lastUpdateSchema + 1): 8001;
-
- $updateNumber = $input->getOption('update-n');
- if (!$updateNumber) {
- $updateNumber = $this->getIo()->ask(
- $this->trans('commands.generate.update.questions.update-n'),
- $nextUpdateSchema,
- function ($updateNumber) use ($lastUpdateSchema) {
- if (!is_numeric($updateNumber)) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.update.messages.wrong-update-n'),
- $updateNumber
- )
- );
- } else {
- if ($updateNumber <= $lastUpdateSchema) {
- throw new \InvalidArgumentException(
- sprintf(
- $this->trans('commands.generate.update.messages.wrong-update-n'),
- $updateNumber
- )
- );
- }
- return $updateNumber;
- }
- }
- );
-
- $input->setOption('update-n', $updateNumber);
- }
- }
-
- protected function getLastUpdate($module)
- {
- $this->site->loadLegacyFile('/core/includes/update.inc');
- $this->site->loadLegacyFile('/core/includes/schema.inc');
-
- $updates = update_get_update_list();
-
- if (empty($updates[$module]['pending'])) {
- $lastUpdateSchema = drupal_get_schema_versions($module);
- $lastUpdateSchema = $lastUpdateSchema[0];
- } else {
- $lastUpdateSchema = reset(array_keys($updates[$module]['pending'], max($updates[$module]['pending'])));
- }
-
- return $lastUpdateSchema;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Image/StylesFlushCommand.php b/vendor/drupal/console/src/Command/Image/StylesFlushCommand.php
deleted file mode 100644
index b94e69d53..000000000
--- a/vendor/drupal/console/src/Command/Image/StylesFlushCommand.php
+++ /dev/null
@@ -1,109 +0,0 @@
-entityTypeManager = $entityTypeManager;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('image:styles:flush')
- ->setDescription($this->trans('commands.image.styles.flush.description'))
- ->addArgument(
- 'styles',
- InputArgument::IS_ARRAY | InputArgument::REQUIRED,
- $this->trans('commands.image.styles.flush.options.image-style')
- )->setAliases(['isf']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $styles = $input->getArgument('styles');
- if (!$styles) {
- $imageStyle = $this->entityTypeManager->getStorage('image_style');
- $styleList = $imageStyle->loadMultiple();
- $styleNames = [];
- foreach ($styleList as $style) {
- $styleNames[] = $style->get('name');
- }
-
- $styles = $this->getIo()->choice(
- $this->trans('commands.image.styles.flush.questions.image-style'),
- $styleNames,
- null,
- true
- );
-
- $input->setArgument('styles', $styles);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $styles = $input->getArgument('styles');
- $result = 0;
-
- $imageStyle = $this->entityTypeManager->getStorage('image_style');
- $stylesNames = [];
- if (in_array('all', $styles)) {
- $styles = $imageStyle->loadMultiple();
- foreach ($styles as $style) {
- $stylesNames[] = $style->get('name');
- }
-
- $styles = $stylesNames;
- }
-
- foreach ($styles as $style) {
- try {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.image.styles.flush.messages.executing-flush'),
- $style
- )
- );
- $imageStyle->load($style)->flush();
- } catch (\Exception $e) {
- watchdog_exception('image', $e);
- $this->getIo()->error($e->getMessage());
- $result = 1;
- }
- }
-
- $this->getIo()->success($this->trans('commands.image.styles.flush.messages.success'));
-
- return $result;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Locale/LanguageAddCommand.php b/vendor/drupal/console/src/Command/Locale/LanguageAddCommand.php
deleted file mode 100644
index 2db2a1936..000000000
--- a/vendor/drupal/console/src/Command/Locale/LanguageAddCommand.php
+++ /dev/null
@@ -1,172 +0,0 @@
-site = $site;
- $this->moduleHandler = $moduleHandler;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('locale:language:add')
- ->setDescription($this->trans('commands.locale.language.add.description'))
- ->addArgument(
- 'language',
- InputArgument::REQUIRED | InputArgument::IS_ARRAY,
- $this->trans('commands.locale.translation.status.arguments.language')
- );
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $moduleHandler = $this->moduleHandler;
- $moduleHandler->loadInclude('locale', 'inc', 'locale.translation');
- $moduleHandler->loadInclude('locale', 'module');
-
- $languageArguments = $this->checkLanguages($input->getArgument('language'));
- $missingLanguages = $this->getMissingLangugaes();
- if (!empty($missingLanguages)) {
- $translatableString = count($missingLanguages) == 1 ? 'commands.locale.language.add.messages.invalid-language' : 'commands.locale.language.add.messages.invalid-languages';
- $this->getIo()->error(sprintf(
- $this->trans($translatableString),
- implode(', ', $missingLanguages)
- ));
-
- return 1;
- }
-
- try {
- $installedLanguages = [];
- foreach (array_keys($languageArguments) as $langcode) {
- if (!($language = ConfigurableLanguage::load($langcode))) {
- $language = ConfigurableLanguage::createFromLangcode($langcode);
- $language->type = LOCALE_TRANSLATION_REMOTE;
- $language->save();
- } else {
- $installedLanguages[] = $languageArguments[$langcode];
- unset($languageArguments[$langcode]);
- }
- }
-
- if (!empty($languageArguments)) {
- $translatableString = count($languageArguments) == 1 ? 'commands.locale.language.add.messages.language-add-successfully' : 'commands.locale.language.add.messages.languages-add-successfully';
- $this->getIo()->info(sprintf(
- $this->trans($translatableString),
- implode(', ', $languageArguments)
- ));
- }
-
- if (!empty($installedLanguages)) {
- $translatableString = count($installedLanguages) == 1 ? 'commands.locale.language.add.messages.language-installed' : 'commands.locale.language.add.messages.languages-installed';
- $this->getIo()->note(sprintf(
- $this->trans($translatableString),
- implode(', ', $installedLanguages)
- ));
- }
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- return 0;
- }
-
- /**
- * Checks the existance of the languages in the system.
- *
- * @param array $languageArguments
- * List of language arguments.
- *
- * @return array
- * List of available languages.
- */
- protected function checkLanguages($languageArguments)
- {
- $languages = $this->site->getStandardLanguages();
- $language_codes = array_keys($languages);
- $buildLanguages = [];
- foreach ($languageArguments as $language) {
- if (array_search($language, $language_codes)) {
- $buildLanguages[$language] = $languages[$language];
- } elseif ($language_code = array_search($language, $languages)) {
- $buildLanguages[$language_code] = $language;
- } else {
- $this->addMissingLanguage($language);
- }
- }
- return $buildLanguages;
- }
-
- /**
- * Add missing language.
- *
- * @param string $language
- * Language code or name.
- */
- private function addMissingLanguage($language)
- {
- $this->missingLangues[] = $language;
- }
-
- /**
- * Get list of missing languages.
- *
- * @return array
- * Missing languges.
- */
- private function getMissingLangugaes()
- {
- return $this->missingLangues;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Locale/LanguageDeleteCommand.php b/vendor/drupal/console/src/Command/Locale/LanguageDeleteCommand.php
deleted file mode 100644
index a2af750b9..000000000
--- a/vendor/drupal/console/src/Command/Locale/LanguageDeleteCommand.php
+++ /dev/null
@@ -1,118 +0,0 @@
-site = $site;
- $this->entityTypeManager = $entityTypeManager;
- $this->moduleHandler = $moduleHandler;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('locale:language:delete')
- ->setDescription($this->trans('commands.locale.language.delete.description'))
- ->addArgument(
- 'language',
- InputArgument::REQUIRED,
- $this->trans('commands.locale.translation.status.arguments.language')
- );
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $moduleHandler = $this->moduleHandler;
- $moduleHandler->loadInclude('locale', 'inc', 'locale.translation');
- $moduleHandler->loadInclude('locale', 'module');
-
- $language = $input->getArgument('language');
-
- $languagesObjects = locale_translatable_language_list();
- $languages = $this->site->getStandardLanguages();
-
- if (isset($languagesObjects[$language])) {
- $languageEntity = $languagesObjects[$language];
- } elseif (array_search($language, $languages)) {
- $langcode = array_search($language, $languages);
- $languageEntity = $languagesObjects[$langcode];
- } else {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.locale.language.delete.messages.invalid-language'),
- $language
- )
- );
-
- return 1;
- }
-
- try {
- $configurable_language_storage = $this->entityTypeManager->getStorage('configurable_language');
- $configurable_language_storage->load($languageEntity->getId())->delete();
-
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.locale.language.delete.messages.language-deleted-successfully'),
- $languageEntity->getName()
- )
- );
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Locale/TranslationStatusCommand.php b/vendor/drupal/console/src/Command/Locale/TranslationStatusCommand.php
deleted file mode 100644
index f25188725..000000000
--- a/vendor/drupal/console/src/Command/Locale/TranslationStatusCommand.php
+++ /dev/null
@@ -1,114 +0,0 @@
-site = $site;
- $this->extensionManager = $extensionManager;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('locale:translation:status')
- ->setDescription($this->trans('commands.locale.translation.status.description'))
- ->addArgument(
- 'language',
- InputArgument::OPTIONAL,
- $this->trans('commands.locale.translation.status.arguments.language')
- );
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $language = $input->getArgument('language');
- $tableHeader = [
- $this->trans('commands.locale.translation.status.messages.project'),
- $this->trans('commands.locale.translation.status.messages.version'),
- $this->trans('commands.locale.translation.status.messages.local-age'),
- $this->trans('commands.locale.translation.status.messages.remote-age'),
- $this->trans('commands.locale.translation.status.messages.info'),
- ];
-
- $locale = $this->extensionManager->getModule('locale');
- $this->site->loadLegacyFile($locale->getPath(true) . '/locale.compare.inc');
-
- $languages = locale_translatable_language_list();
- $status = locale_translation_get_status();
-
- if (!$languages) {
- $this->getIo()->info($this->trans('commands.locale.translation.status.messages.no-languages'));
- return 1;
- }
-
- if (empty($status)) {
- $this->getIo()->info($this->trans('commands.locale.translation.status.messages.no-translations'));
- return 1;
- }
-
- if ($languages) {
- $projectsStatus = $this->projectsStatus();
-
- foreach ($projectsStatus as $langcode => $rows) {
- $tableRows = [];
- if ($language !='' && !($language == $langcode || strtolower($language) == strtolower($languages[$langcode]->getName()))) {
- continue;
- }
- $this->getIo()->info($languages[$langcode]->getName());
- foreach ($rows as $row) {
- if ($row[0] == 'drupal') {
- $row[0] = $this->trans('commands.common.messages.drupal-core');
- }
- $tableRows[] = $row;
- }
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Migrate/ExecuteCommand.php b/vendor/drupal/console/src/Command/Migrate/ExecuteCommand.php
deleted file mode 100644
index c2f6334a7..000000000
--- a/vendor/drupal/console/src/Command/Migrate/ExecuteCommand.php
+++ /dev/null
@@ -1,392 +0,0 @@
-pluginManagerMigration = $pluginManagerMigration;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('migrate:execute')
- ->setDescription($this->trans('commands.migrate.execute.description'))
- ->addArgument('migration-ids', InputArgument::IS_ARRAY, $this->trans('commands.migrate.execute.arguments.id'))
- ->addOption(
- 'site-url',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.execute.options.site-url')
- )
- ->addOption(
- 'db-type',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.execute.migrations.options.db-type')
- )
- ->addOption(
- 'db-host',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.execute.options.db-host')
- )
- ->addOption(
- 'db-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.execute.options.db-name')
- )
- ->addOption(
- 'db-user',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.execute.options.db-user')
- )
- ->addOption(
- 'db-pass',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-pass')
- )
- ->addOption(
- 'db-prefix',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-prefix')
- )
- ->addOption(
- 'db-port',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.execute.options.db-port')
- )
- ->addOption(
- 'exclude',
- null,
- InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- $this->trans('commands.migrate.execute.options.exclude'),
- []
- )
- ->addOption(
- 'source-base_path',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.source-base-path')
- )
- ->setAliases(['mie']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $validator_required = function ($value) {
- if (!strlen(trim($value))) {
- throw new \Exception('The option can not be empty');
- }
-
- return $value;
- };
-
- // --site-url option
- $site_url = $input->getOption('site-url');
- if (!$site_url) {
- $site_url = $this->getIo()->ask(
- $this->trans('commands.migrate.execute.questions.site-url'),
- 'http://www.example.com',
- $validator_required
- );
- $input->setOption('site-url', $site_url);
- }
-
- // --db-type option
- $db_type = $input->getOption('db-type');
- if (!$db_type) {
- $db_type = $this->dbDriverTypeQuestion();
- $input->setOption('db-type', $db_type);
- }
-
- // --db-host option
- $db_host = $input->getOption('db-host');
- if (!$db_host) {
- $db_host = $this->dbHostQuestion();
- $input->setOption('db-host', $db_host);
- }
-
- // --db-name option
- $db_name = $input->getOption('db-name');
- if (!$db_name) {
- $db_name = $this->dbNameQuestion();
- $input->setOption('db-name', $db_name);
- }
-
- // --db-user option
- $db_user = $input->getOption('db-user');
- if (!$db_user) {
- $db_user = $this->dbUserQuestion();
- $input->setOption('db-user', $db_user);
- }
-
- // --db-pass option
- $db_pass = $input->getOption('db-pass');
- if (!$db_pass) {
- $db_pass = $this->dbPassQuestion();
- $input->setOption('db-pass', $db_pass);
- }
-
- // --db-prefix
- $db_prefix = $input->getOption('db-prefix');
- if (!$db_prefix) {
- $db_prefix = $this->dbPrefixQuestion();
- $input->setOption('db-prefix', $db_prefix);
- }
-
- // --db-port prefix
- $db_port = $input->getOption('db-port');
- if (!$db_port) {
- $db_port = $this->dbPortQuestion();
- $input->setOption('db-port', $db_port);
- }
-
- $this->registerMigrateDB();
- $this->migrateConnection = $this->getDBConnection('default', 'upgrade');
-
- if (!$drupal_version = $this->getLegacyDrupalVersion($this->migrateConnection)) {
- $this->getIo()->error($this->trans('commands.migrate.setup.migrations.questions.not-drupal'));
- return 1;
- }
-
- $database = $this->getDBInfo();
- $version_tag = 'Drupal ' . $drupal_version;
-
- // Get migrations
- $migrations_list = $this->getMigrations($version_tag);
-
- // --migration-id prefix
- $migration_id = $input->getArgument('migration-ids');
-
- if (!in_array('all', $migration_id)) {
- $migrations = $migrations_list;
- } else {
- $migrations = array_keys($this->getMigrations($version_tag));
- }
-
- if (!$migration_id) {
- $migrations_ids = [];
-
- while (true) {
- $migration_id = $this->getIo()->choiceNoList(
- $this->trans('commands.migrate.execute.questions.id'),
- array_keys($migrations_list),
- 'all'
- );
-
- if (empty($migration_id) || $migration_id == 'all') {
- // Only add all if it's the first option
- if (empty($migrations_ids) && $migration_id == 'all') {
- $migrations_ids[] = $migration_id;
- }
- break;
- } else {
- $migrations_ids[] = $migration_id;
- }
- }
-
- $input->setArgument('migration-ids', $migrations_ids);
- }
-
- // --migration-id prefix
- $exclude_ids = $input->getOption('exclude');
- if (!$exclude_ids) {
- unset($migrations_list['all']);
- while (true) {
- $exclude_id = $this->getIo()->choiceNoList(
- $this->trans('commands.migrate.execute.questions.exclude-id'),
- array_keys($migrations_list),
- '',
- true
- );
-
- if (empty($exclude_id) || is_numeric($exclude_id)) {
- break;
- } else {
- unset($migrations_list[$exclude_id]);
- $exclude_ids[] = $exclude_id;
- }
- }
- $input->setOption('exclude', $exclude_ids);
- }
-
- // --source-base_path
- $sourceBasepath = $input->getOption('source-base_path');
- if (!$sourceBasepath) {
- $sourceBasepath = $this->getIo()->ask(
- $this->trans('commands.migrate.setup.questions.source-base-path'),
- ''
- );
- $input->setOption('source-base_path', $sourceBasepath);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $migration_ids = $input->getArgument('migration-ids');
- $exclude_ids = $input->getOption('exclude');
-
- $sourceBasepath = $input->getOption('source-base_path');
- $configuration['source']['constants']['source_base_path'] = rtrim($sourceBasepath, '/') . '/';
-
-
- // If migrations weren't provided finish execution
- if (empty($migration_ids)) {
- return 1;
- }
-
- if (!$this->migrateConnection) {
- $this->registerMigrateDB();
- $this->migrateConnection = $this->getDBConnection('default', 'upgrade');
- }
-
- if (!$drupal_version = $this->getLegacyDrupalVersion($this->migrateConnection)) {
- $this->getIo()->error($this->trans('commands.migrate.setup.migrations.questions.not-drupal'));
- return 1;
- }
-
- $version_tag = 'Drupal ' . $drupal_version;
-
- if (!in_array('all', $migration_ids)) {
- $migrations = $migration_ids;
- } else {
- $migrations = array_keys($this->getMigrations($version_tag));
- }
-
- if (!empty($exclude_ids)) {
- // Remove exclude migration from migration script
- $migrations = array_diff($migrations, $exclude_ids);
- }
-
- if (count($migrations) == 0) {
- $this->getIo()->error($this->trans('commands.migrate.execute.messages.no-migrations'));
- return 1;
- }
-
- foreach ($migrations as $migration_id) {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.migrate.execute.messages.processing'),
- $migration_id
- )
- );
-
- $migration_service = $this->pluginManagerMigration->createInstance($migration_id, $configuration);
-
- if ($migration_service) {
- $messages = new MigrateExecuteMessageCapture();
- $executable = new MigrateExecutable($migration_service, $messages);
- $migration_status = $executable->import();
- switch ($migration_status) {
- case MigrationInterface::RESULT_COMPLETED:
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.migrate.execute.messages.imported'),
- $migration_id
- )
- );
- break;
- case MigrationInterface::RESULT_INCOMPLETE:
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.migrate.execute.messages.importing-incomplete'),
- $migration_id
- )
- );
- break;
- case MigrationInterface::RESULT_STOPPED:
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.migrate.execute.messages.import-stopped'),
- $migration_id
- )
- );
- break;
- case MigrationInterface::RESULT_FAILED:
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.migrate.execute.messages.import-fail'),
- $migration_id
- )
- );
- break;
- case MigrationInterface::RESULT_SKIPPED:
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.migrate.execute.messages.import-skipped'),
- $migration_id
- )
- );
- break;
- case MigrationInterface::RESULT_DISABLED:
- // Skip silently if disabled.
- break;
- }
- } else {
- $this->getIo()->error($this->trans('commands.migrate.execute.messages.fail-load'));
-
- return 1;
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Migrate/RollBackCommand.php b/vendor/drupal/console/src/Command/Migrate/RollBackCommand.php
deleted file mode 100644
index 72eca4463..000000000
--- a/vendor/drupal/console/src/Command/Migrate/RollBackCommand.php
+++ /dev/null
@@ -1,178 +0,0 @@
-pluginManagerMigration = $pluginManagerMigration;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('migrate:rollback')
- ->setDescription($this->trans('commands.migrate.rollback.description'))
- ->addArgument('migration-ids', InputArgument::IS_ARRAY, $this->trans('commands.migrate.rollback.arguments.id'))
- ->addOption(
- 'source-base_path',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.setup.options.source-base-path')
- )->setAliases(['mir']);
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $sourceBasepath = $input->getOption('source-base_path');
- $configuration['source']['constants']['source_base_path'] = rtrim($sourceBasepath, '/') . '/';
- // --migration-id prefix
- $migration_id = $input->getArgument('migration-ids');
- $migrations_list = array_keys($this->getMigrations($version_tag));
- // If migrations weren't provided finish execution
- if (empty($migration_id)) {
- return 1;
- }
-
-
- if (!in_array('all', $migration_id)) {
- $migration_ids = $migration_id;
- } else {
- $migration_ids = $migrations_list;
- }
-
- foreach ($migration_ids as $migration) {
- if (!in_array($migration, $migrations_list)) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.migrate.rollback.messages.not-available'),
- $migration
- )
- );
- continue;
- }
- $migration_service = $this->pluginManagerMigration->createInstance($migration, $configuration);
- if ($migration_service) {
- $messages = new MigrateExecuteMessageCapture();
- $executable = new MigrateExecutable($migration_service, $messages);
-
- $migration_status = $executable->rollback();
- switch ($migration_status) {
- case MigrationInterface::RESULT_COMPLETED:
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.migrate.rollback.messages.processing'),
- $migration
- )
- );
- break;
- case MigrationInterface::RESULT_INCOMPLETE:
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.migrate.execute.messages.importing-incomplete'),
- $migration
- )
- );
- break;
- case MigrationInterface::RESULT_STOPPED:
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.migrate.execute.messages.import-stopped'),
- $migration
- )
- );
- break;
- }
- }
- }
-
- return 0;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // Get migrations
- $migrations_list = $this->getMigrations($version_tag);
-
- // --migration-id prefix
- $migration_id = $input->getArgument('migration-ids');
-
-
- if (!$migration_id) {
- $migrations_ids = [];
-
- while (true) {
- $migration_id = $this->getIo()->choiceNoList(
- $this->trans('commands.migrate.execute.questions.id'),
- array_keys($migrations_list),
- 'all'
- );
-
- if (empty($migration_id) || $migration_id == 'all') {
- // Only add all if it's the first option
- if (empty($migrations_ids) && $migration_id == 'all') {
- $migrations_ids[] = $migration_id;
- }
- break;
- } else {
- $migrations_ids[] = $migration_id;
- }
- }
-
- $input->setArgument('migration-ids', $migrations_ids);
- }
-
- // --source-base_path
- $sourceBasepath = $input->getOption('source-base_path');
- if (!$sourceBasepath) {
- $sourceBasepath = $this->getIo()->ask(
- $this->trans('commands.migrate.setup.questions.source-base-path'),
- ''
- );
- $input->setOption('source-base_path', $sourceBasepath);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Migrate/SetupCommand.php b/vendor/drupal/console/src/Command/Migrate/SetupCommand.php
deleted file mode 100644
index 955ccbc45..000000000
--- a/vendor/drupal/console/src/Command/Migrate/SetupCommand.php
+++ /dev/null
@@ -1,211 +0,0 @@
-state = $state;
- $this->pluginManagerMigration = $pluginManagerMigration;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('migrate:setup')
- ->setDescription($this->trans('commands.migrate.setup.description'))
- ->addOption(
- 'db-type',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.setup.options.db-type')
- )
- ->addOption(
- 'db-host',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.setup.options.db-host')
- )
- ->addOption(
- 'db-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.setup.options.db-name')
- )
- ->addOption(
- 'db-user',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.setup.options.db-user')
- )
- ->addOption(
- 'db-pass',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.setup.options.db-pass')
- )
- ->addOption(
- 'db-prefix',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.setup.options.db-prefix')
- )
- ->addOption(
- 'db-port',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.migrate.setup.options.db-port')
- )
- ->addOption(
- 'source-base_path',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.setup.options.source-base-path')
- )->setAliases(['mis']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --db-type option
- $db_type = $input->getOption('db-type');
- if (!$db_type) {
- $db_type = $this->dbDriverTypeQuestion();
- $input->setOption('db-type', $db_type);
- }
-
- // --db-host option
- $db_host = $input->getOption('db-host');
- if (!$db_host) {
- $db_host = $this->dbHostQuestion();
- $input->setOption('db-host', $db_host);
- }
-
- // --db-name option
- $db_name = $input->getOption('db-name');
- if (!$db_name) {
- $db_name = $this->dbNameQuestion();
- $input->setOption('db-name', $db_name);
- }
-
- // --db-user option
- $db_user = $input->getOption('db-user');
- if (!$db_user) {
- $db_user = $this->dbUserQuestion();
- $input->setOption('db-user', $db_user);
- }
-
- // --db-pass option
- $db_pass = $input->getOption('db-pass');
- if (!$db_pass) {
- $db_pass = $this->dbPassQuestion();
- $input->setOption('db-pass', $db_pass);
- }
-
- // --db-prefix
- $db_prefix = $input->getOption('db-prefix');
- if (!$db_prefix) {
- $db_prefix = $this->dbPrefixQuestion();
- $input->setOption('db-prefix', $db_prefix);
- }
-
- // --db-port prefix
- $db_port = $input->getOption('db-port');
- if (!$db_port) {
- $db_port = $this->dbPortQuestion();
- $input->setOption('db-port', $db_port);
- }
-
- // --source-base_path
- $sourceBasepath = $input->getOption('source-base_path');
- if (!$sourceBasepath) {
- $sourceBasepath = $this->getIo()->ask(
- $this->trans('commands.migrate.setup.questions.source-base-path'),
- ''
- );
- $input->setOption('source-base_path', $sourceBasepath);
- }
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $sourceBasepath = $input->getOption('source-base_path');
- $configuration['source']['constants']['source_base_path'] = rtrim($sourceBasepath, '/') . '/';
-
- $this->registerMigrateDB();
- $this->migrateConnection = $this->getDBConnection('default', 'upgrade');
-
- if (!$drupal_version = $this->getLegacyDrupalVersion($this->migrateConnection)) {
- $this->getIo()->error($this->trans('commands.migrate.setup.migrations.questions.not-drupal'));
- return 1;
- }
-
- $database = $this->getDBInfo();
- $version_tag = 'Drupal ' . $drupal_version;
-
- $this->createDatabaseStateSettings($database, $drupal_version);
-
- $migrations = $this->getMigrations($version_tag, false, $configuration);
-
- if ($migrations) {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.migrate.setup.messages.migrations-created'),
- count($migrations),
- $version_tag
- )
- );
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Module/DownloadCommand.php b/vendor/drupal/console/src/Command/Module/DownloadCommand.php
deleted file mode 100644
index 3e8200ff4..000000000
--- a/vendor/drupal/console/src/Command/Module/DownloadCommand.php
+++ /dev/null
@@ -1,252 +0,0 @@
-drupalApi = $drupalApi;
- $this->httpClient = $httpClient;
- $this->appRoot = $appRoot;
- $this->extensionManager = $extensionManager;
- $this->validator = $validator;
- $this->site = $site;
- $this->configurationManager = $configurationManager;
- $this->shellProcess = $shellProcess;
- $this->root = $root;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('module:download')
- ->setDescription($this->trans('commands.module.download.description'))
- ->addArgument(
- 'module',
- InputArgument::IS_ARRAY,
- $this->trans('commands.module.download.arguments.module')
- )
- ->addOption(
- 'path',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.module.download.options.path')
- )
- ->addOption(
- 'latest',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.download.options.latest')
- )
- ->addOption(
- 'composer',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.install.options.composer')
- )
- ->addOption(
- 'unstable',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.download.options.unstable')
- )
- ->setAliases(['mod']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $composer = $input->getOption('composer');
- $module = $input->getArgument('module');
-
- if (!$module) {
- $module = $this->modulesQuestion();
- $input->setArgument('module', $module);
- }
-
- if (!$composer) {
- $path = $input->getOption('path');
- if (!$path) {
- $path = $this->getIo()->ask(
- $this->trans('commands.module.download.questions.path'),
- 'modules/contrib'
- );
- $input->setOption('path', $path);
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $modules = $input->getArgument('module');
- $latest = $input->getOption('latest');
- $path = $input->getOption('path');
- $composer = $input->getOption('composer');
- $unstable = true;
-
- if ($composer) {
- foreach ($modules as $module) {
- if (!$latest) {
- $versions = $this->drupalApi
- ->getPackagistModuleReleases($module, 10, $unstable);
-
- if (!$versions) {
- $this->getIo()->error(
- sprintf(
- $this->trans(
- 'commands.module.download.messages.no-releases'
- ),
- $module
- )
- );
-
- return 1;
- } else {
- $version = $this->getIo()->choice(
- sprintf(
- $this->trans(
- 'commands.site.new.questions.composer-release'
- ),
- $module
- ),
- $versions
- );
- }
- } else {
- $versions = $this->drupalApi
- ->getPackagistModuleReleases($module, 10, $unstable);
-
- if (!$versions) {
- $this->getIo()->error(
- sprintf(
- $this->trans(
- 'commands.module.download.messages.no-releases'
- ),
- $module
- )
- );
- return 1;
- } else {
- $version = current(
- $this->drupalApi
- ->getPackagistModuleReleases($module, 1, $unstable)
- );
- }
- }
-
- // Register composer repository
- $command = "composer config repositories.drupal composer https://packages.drupal.org/8";
- $this->shellProcess->exec($command, $this->root);
-
- $command = sprintf(
- 'composer require drupal/%s:%s --prefer-dist --optimize-autoloader --sort-packages --update-no-dev',
- $module,
- $version
- );
-
- if ($this->shellProcess->exec($command, $this->root)) {
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.module.download.messages.composer'),
- $module
- )
- );
- }
- }
- } else {
- $this->downloadModules($modules, $latest, $path);
- }
-
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Module/InstallCommand.php b/vendor/drupal/console/src/Command/Module/InstallCommand.php
deleted file mode 100644
index 5e164e646..000000000
--- a/vendor/drupal/console/src/Command/Module/InstallCommand.php
+++ /dev/null
@@ -1,238 +0,0 @@
-site = $site;
- $this->validator = $validator;
- $this->moduleInstaller = $moduleInstaller;
- $this->drupalApi = $drupalApi;
- $this->extensionManager = $extensionManager;
- $this->appRoot = $appRoot;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('module:install')
- ->setDescription($this->trans('commands.module.install.description'))
- ->addArgument(
- 'module',
- InputArgument::IS_ARRAY,
- $this->trans('commands.module.install.arguments.module')
- )
- ->addOption(
- 'latest',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.install.options.latest')
- )
- ->addOption(
- 'composer',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.uninstall.options.composer')
- )
- ->setAliases(['moi']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getArgument('module');
- if (!$module) {
- $module = $this->modulesQuestion();
- $input->setArgument('module', $module);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getArgument('module');
- $latest = $input->getOption('latest');
- $composer = $input->getOption('composer');
-
- $this->site->loadLegacyFile('/core/includes/bootstrap.inc');
-
- // check module's requirements
- $this->moduleRequirement($module);
-
- if ($composer) {
- foreach ($module as $moduleItem) {
- $command = sprintf(
- 'composer show drupal/%s ',
- $moduleItem
- );
-
- $processBuilder = new ProcessBuilder([]);
- $processBuilder->setWorkingDirectory($this->appRoot);
- $processBuilder->setArguments(explode(" ", $command));
- $process = $processBuilder->getProcess();
- $process->setTty('true');
- $process->run();
-
- if ($process->isSuccessful()) {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.module.install.messages.download-with-composer'),
- $moduleItem
- )
- );
- } else {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.module.install.messages.not-installed-with-composer'),
- $moduleItem
- )
- );
- throw new \RuntimeException($process->getErrorOutput());
- }
- }
-
- $unInstalledModules = $module;
- } else {
- $resultList = $this->downloadModules($module, $latest);
-
- $invalidModules = $resultList['invalid'];
- $unInstalledModules = $resultList['uninstalled'];
-
- if ($invalidModules) {
- foreach ($invalidModules as $invalidModule) {
- unset($module[array_search($invalidModule, $module)]);
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.module.install.messages.invalid-name'),
- $invalidModule
- )
- );
- }
- }
-
- if (!$unInstalledModules) {
- $this->getIo()->warning($this->trans('commands.module.install.messages.nothing'));
-
- return 0;
- }
- }
-
- try {
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.module.install.messages.installing'),
- implode(', ', $unInstalledModules)
- )
- );
-
- drupal_static_reset('system_rebuild_module_data');
-
- $this->moduleInstaller->install($unInstalledModules, true);
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.module.install.messages.success'),
- implode(', ', $unInstalledModules)
- )
- );
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $this->site->removeCachedServicesFile();
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Module/InstallDependencyCommand.php b/vendor/drupal/console/src/Command/Module/InstallDependencyCommand.php
deleted file mode 100644
index 306602b3e..000000000
--- a/vendor/drupal/console/src/Command/Module/InstallDependencyCommand.php
+++ /dev/null
@@ -1,139 +0,0 @@
-site = $site;
- $this->validator = $validator;
- $this->moduleInstaller = $moduleInstaller;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('module:dependency:install')
- ->setDescription($this->trans('commands.module.dependency.install.description'))
- ->addArgument(
- 'module',
- InputArgument::IS_ARRAY,
- $this->trans('commands.module.dependency.install.arguments.module')
- )->setAliases(['modi']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getArgument('module');
- if (!$module) {
- // @see Drupal\Console\Command\Shared\ModuleTrait::moduleQuestion
- $module = $this->moduleQuestion();
- $input->setArgument('module', $module);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getArgument('module');
- $unInstalledDependencies = $this->calculateDependencies((array)$module);
-
- if (!$unInstalledDependencies) {
- $this->getIo()->warning($this->trans('commands.module.dependency.install.messages.no-depencies'));
- return 0;
- }
-
- try {
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.module.dependency.install.messages.installing'),
- implode(', ', $unInstalledDependencies)
- )
- );
-
- drupal_static_reset('system_rebuild_module_data');
-
- $this->moduleInstaller->install($unInstalledDependencies, true);
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.module.dependency.install.messages.success'),
- implode(', ', $unInstalledDependencies)
- )
- );
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Module/PathCommand.php b/vendor/drupal/console/src/Command/Module/PathCommand.php
deleted file mode 100644
index 140d40589..000000000
--- a/vendor/drupal/console/src/Command/Module/PathCommand.php
+++ /dev/null
@@ -1,82 +0,0 @@
-extensionManager = $extensionManager;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('module:path')
- ->setDescription($this->trans('commands.module.path.description'))
- ->addArgument(
- 'module',
- InputArgument::REQUIRED,
- $this->trans('commands.module.path.arguments.module')
- )
- ->addOption(
- 'absolute',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.path.options.absolute')
- )->setAliases(['mop']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getArgument('module');
-
- $fullPath = $input->getOption('absolute');
-
- $module = $this->extensionManager->getModule($module);
-
- $this->getIo()->info(
- $module->getPath($fullPath)
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --module argument
- $module = $input->getArgument('module');
- if (!$module) {
- // @see Drupal\Console\Command\Shared\ModuleTrait::moduleQuestion
- $module = $this->moduleQuestion();
- $input->setArgument('module', $module);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Module/UninstallCommand.php b/vendor/drupal/console/src/Command/Module/UninstallCommand.php
deleted file mode 100755
index 5fc466bcf..000000000
--- a/vendor/drupal/console/src/Command/Module/UninstallCommand.php
+++ /dev/null
@@ -1,229 +0,0 @@
-site = $site;
- $this->moduleInstaller = $moduleInstaller;
- $this->chainQueue = $chainQueue;
- $this->configFactory = $configFactory;
- $this->extensionManager = $extensionManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('module:uninstall')
- ->setDescription($this->trans('commands.module.uninstall.description'))
- ->addArgument(
- 'module',
- InputArgument::IS_ARRAY,
- $this->trans('commands.module.uninstall.questions.module')
- )
- ->addOption(
- 'force',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.uninstall.options.force')
- )
- ->addOption(
- 'composer',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.uninstall.options.composer')
- )
- ->setAliases(['mou']);
- }
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $module = $input->getArgument('module');
-
- if (!$module) {
- $module = $this->modulesUninstallQuestion();
- $input->setArgument('module', $module);
- }
- }
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $composer = $input->getOption('composer');
- $module = $input->getArgument('module');
-
- $this->site->loadLegacyFile('/core/modules/system/system.module');
-
- $coreExtension = $this->configFactory->getEditable('core.extension');
-
- // Get info about modules available
- $moduleData = system_rebuild_module_data();
- $moduleList = array_combine($module, $module);
-
- if ($composer) {
- //@TODO: check with Composer if the module is previously required in composer.json!
- foreach ($module as $moduleItem) {
- $command = sprintf(
- 'composer remove drupal/%s ',
- $moduleItem
- );
-
- $shellProcess = $this->get('shell_process');
- if ($shellProcess->exec($command)) {
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.module.uninstall.messages.composer-success'),
- $moduleItem
- )
- );
- }
- }
- }
-
- if ($missingModules = array_diff_key($moduleList, $moduleData)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.module.uninstall.messages.missing'),
- implode(', ', $module),
- implode(', ', $missingModules)
- )
- );
-
- return 1;
- }
-
- $installedModules = $coreExtension->get('module') ?: [];
- if (!$moduleList = array_intersect_key($moduleList, $installedModules)) {
- $this->getIo()->info($this->trans('commands.module.uninstall.messages.nothing'));
-
- return 0;
- }
-
- if (!$force = $input->getOption('force')) {
-
- // Get a list of installed profiles that will be excluded when calculating
- // the dependency tree.
- if (\Drupal::hasService('profile_handler')) {
- // #1356276 adds the profile_handler service but it hasn't been committed
- // to core yet so we need to check if it exists.
- $profiles = \Drupal::service('profile_handler')->getProfileInheritance();
- } else {
- $profiles[drupal_get_profile()] = [];
- }
-
- $dependencies = [];
- while (list($module) = each($moduleList)) {
- foreach (array_keys($moduleData[$module]->required_by) as $dependency) {
- if (isset($installedModules[$dependency]) && !isset($moduleList[$dependency]) && (!array_key_exists($dependency, $profiles))) {
- $dependencies[] = $dependency;
- }
- }
- }
-
- if (!empty($dependencies)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.module.uninstall.messages.dependents'),
- implode('", "', $moduleList),
- implode(', ', $dependencies)
- )
- );
-
- return 1;
- }
- }
-
- try {
- $this->moduleInstaller->uninstall($moduleList);
-
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.module.uninstall.messages.success'),
- implode(', ', $moduleList)
- )
- );
-
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.module.uninstall.messages.composer-success'),
- implode(', ', $moduleList),
- false
- )
- );
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $this->site->removeCachedServicesFile();
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Module/UpdateCommand.php b/vendor/drupal/console/src/Command/Module/UpdateCommand.php
deleted file mode 100644
index 45b04a57a..000000000
--- a/vendor/drupal/console/src/Command/Module/UpdateCommand.php
+++ /dev/null
@@ -1,143 +0,0 @@
-shellProcess = $shellProcess;
- $this->root = $root;
- parent::__construct();
- }
- protected function configure()
- {
- $this
- ->setName('module:update')
- ->setDescription($this->trans('commands.module.update.description'))
- ->addArgument(
- 'module',
- InputArgument::IS_ARRAY,
- $this->trans('commands.module.update.arguments.module')
- )
- ->addOption(
- 'composer',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.update.options.composer')
- )
- ->addOption(
- 'simulate',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.module.update.options.simulate')
- )->setAliases(['moup']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $composer = $input->getOption('composer');
- $module = $input->getArgument('module');
-
- if (!$composer) {
- $this->getIo()->error($this->trans('commands.module.update.messages.only-composer'));
-
- return 1;
- }
-
- if (!$module) {
- $module = $this->modulesQuestion();
- $input->setArgument('module', $module);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $modules = $input->getArgument('module');
- $composer = $input->getOption('composer');
- $simulate = $input->getOption('simulate');
-
- if (!$composer) {
- $this->getIo()->error($this->trans('commands.module.update.messages.only-composer'));
-
- return 1;
- }
-
- if (!$modules) {
- $this->getIo()->error(
- $this->trans('commands.module.update.messages.missing-module')
- );
-
- return 1;
- }
-
- if (count($modules) > 1) {
- $modules = " drupal/" . implode(" drupal/", $modules);
- } else {
- $modules = " drupal/" . current($modules);
- }
-
- if ($composer) {
- // Register composer repository
- $command = "composer config repositories.drupal composer https://packages.drupal.org/8";
- $this->shellProcess->exec($command, $this->root);
-
- $command = 'composer update ' . $modules . ' --optimize-autoloader --prefer-dist --no-dev --root-reqs ';
-
- if ($simulate) {
- $command .= " --dry-run";
- }
-
- if ($this->shellProcess->exec($command, $this->root)) {
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.module.update.messages.composer'),
- trim($modules)
- )
- );
- }
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Multisite/NewCommand.php b/vendor/drupal/console/src/Command/Multisite/NewCommand.php
deleted file mode 100644
index d7d053499..000000000
--- a/vendor/drupal/console/src/Command/Multisite/NewCommand.php
+++ /dev/null
@@ -1,295 +0,0 @@
-appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * @var Filesystem;
- */
- protected $fs;
-
- /**
- * @var string
- */
- protected $directory = '';
-
- /**
- * {@inheritdoc}
- */
- public function configure()
- {
- $this->setName('multisite:new')
- ->setDescription($this->trans('commands.multisite.new.description'))
- ->setHelp($this->trans('commands.multisite.new.help'))
- ->addArgument(
- 'directory',
- InputArgument::REQUIRED,
- $this->trans('commands.multisite.new.arguments.directory')
- )
- ->addArgument(
- 'uri',
- InputArgument::REQUIRED,
- $this->trans('commands.multisite.new.arguments.uri')
- )
- ->addOption(
- 'copy-default',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.multisite.new.options.copy-default')
- )
- ->setAliases(['mun']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->fs = new Filesystem();
- $this->directory = $input->getArgument('directory');
-
- if (!$this->directory) {
- $this->getIo()->error($this->trans('commands.multisite.new.errors.subdir-empty'));
-
- return 1;
- }
-
- if ($this->fs->exists($this->appRoot . '/sites/' . $this->directory)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.subdir-exists'),
- $this->directory
- )
- );
-
- return 1;
- }
-
- if (!$this->fs->exists($this->appRoot . '/sites/default')) {
- $this->getIo()->error($this->trans('commands.multisite.new.errors.default-missing'));
-
- return 1;
- }
-
- try {
- $this->fs->mkdir($this->appRoot . '/sites/' . $this->directory, 0755);
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.mkdir-fail'),
- $this->directory
- )
- );
-
- return 1;
- }
-
- $uri = $input->getArgument('uri');
- try {
- $this->addToSitesFile($uri);
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $this->createFreshSite();
-
- return 0;
- }
-
- /**
- * Adds line to sites.php that is needed for the new site to be recognized.
- *
- * @param string $uri
- *
- * @throws FileNotFoundException
- */
- protected function addToSitesFile($uri)
- {
- if ($this->fs->exists($this->appRoot . '/sites/sites.php')) {
- $sites_is_dir = is_dir($this->appRoot . '/sites/sites.php');
- $sites_readable = is_readable($this->appRoot . '/sites/sites.php');
- if ($sites_is_dir || !$sites_readable) {
- throw new FileNotFoundException($this->trans('commands.multisite.new.errors.sites-invalid'));
- }
- $sites_file_contents = file_get_contents($this->appRoot . '/sites/sites.php');
- } elseif ($this->fs->exists($this->appRoot . '/sites/example.sites.php')) {
- $sites_file_contents = file_get_contents($this->appRoot . '/sites/example.sites.php');
- $sites_file_contents .= "\n\$sites = [];";
- } else {
- throw new FileNotFoundException($this->trans('commands.multisite.new.errors.sites-missing'));
- }
-
- $sites_file_contents .= "\n\$sites['$this->directory'] = '$this->directory';";
-
- try {
- $this->fs->dumpFile($this->appRoot . '/sites/sites.php', $sites_file_contents);
- $this->fs->chmod($this->appRoot . '/sites/sites.php', 0640);
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error('commands.multisite.new.errors.sites-other');
- }
- }
-
- /**
- * Copies detected default install alters settings.php to fit the new directory.
- */
- protected function copyExistingInstall()
- {
- if (!$this->fs->exists($this->appRoot . '/sites/default/settings.php')) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.file-missing'),
- 'sites/default/settings.php'
- )
- );
- return 1;
- }
-
- if ($this->fs->exists($this->appRoot . '/sites/default/files')) {
- try {
- $this->fs->mirror(
- $this->appRoot . '/sites/default/files',
- $this->appRoot . '/sites/' . $this->directory . '/files'
- );
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.copy-fail'),
- 'sites/default/files',
- 'sites/' . $this->directory . '/files'
- )
- );
- return 1;
- }
- } else {
- $this->getIo()->warning($this->trans('commands.multisite.new.warnings.missing-files'));
- }
-
- $settings = file_get_contents($this->appRoot . '/sites/default/settings.php');
- $settings = str_replace('sites/default', 'sites/' . $this->directory, $settings);
-
- try {
- $this->fs->dumpFile(
- $this->appRoot . '/sites/' . $this->directory . '/settings.php',
- $settings
- );
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.write-fail'),
- 'sites/' . $this->directory . '/settings.php'
- )
- );
- return 1;
- }
-
- $this->chmodSettings();
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.multisite.new.messages.copy-default'),
- $this->directory
- )
- );
- }
-
- /**
- * Creates site folder with clean settings.php file.
- */
- protected function createFreshSite()
- {
- if ($this->fs->exists($this->appRoot . '/sites/default/default.settings.php')) {
- try {
- $this->fs->copy(
- $this->appRoot . '/sites/default/default.settings.php',
- $this->appRoot . '/sites/' . $this->directory . '/settings.php'
- );
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.copy-fail'),
- $this->appRoot . '/sites/default/default.settings.php',
- $this->appRoot . '/sites/' . $this->directory . '/settings.php'
- )
- );
- return 1;
- }
- } else {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.file-missing'),
- 'sites/default/default.settings.php'
- )
- );
- return 1;
- }
-
- $this->chmodSettings();
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.multisite.new.messages.fresh-site'),
- $this->directory
- )
- );
-
- return 0;
- }
-
- /**
- * Changes permissions of settings.php to 640.
- *
- * The copy will have 444 permissions by default, which makes it readable by
- * anyone. Also, Drupal likes being able to write to it during, for example,
- * a fresh install.
- */
- protected function chmodSettings()
- {
- try {
- $this->fs->chmod($this->appRoot . '/sites/' . $this->directory . '/settings.php', 0640);
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.new.errors.chmod-fail'),
- $this->appRoot . '/sites/' . $this->directory . '/settings.php'
- )
- );
-
- return 1;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Multisite/UpdateCommand.php b/vendor/drupal/console/src/Command/Multisite/UpdateCommand.php
deleted file mode 100644
index 44b4af025..000000000
--- a/vendor/drupal/console/src/Command/Multisite/UpdateCommand.php
+++ /dev/null
@@ -1,349 +0,0 @@
-appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * @var Filesystem;
- */
- protected $fs;
-
- /**
- * @var string
- */
- protected $uri = '';
-
- /**
- * @var string
- */
- protected $directory = '';
-
- /**
- * @var array
- */
- protected $explodeUriDirectory = [];
-
- /**
- * @var array
- */
- protected $explodeDirectory = [];
-
- /**
- * {@inheritdoc}
- */
- public function configure()
- {
- $this->setName('multisite:update')
- ->setDescription($this->trans('commands.multisite.update.description'))
- ->setHelp($this->trans('commands.multisite.update.help'))
- ->addOption(
- 'directory',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.multisite.update.options.directory')
- )
- ->setAliases(['muu']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->uri = parse_url($input->getParameterOption(['--uri', '-l'], 'default'), PHP_URL_HOST);
-
- $sites = $this->getMultisite($this->uri);
- if ($this->uri == "default") {
- $this->uri = $this->getIo()->choice(
- $this->trans('commands.multisite.update.questions.uri'),
- $sites
- );
- } elseif (!array_key_exists($this->uri, $sites)) {
- $this->getIo()->error(
- $this->trans('commands.multisite.update.error.invalid-uri')
- );
-
- return 1;
- }
- $this->uri = $sites[$this->uri];
-
- $directory = $input->getOption('directory');
- if (!$directory) {
- $directory = $this->getIo()->ask($this->trans('commands.multisite.update.questions.directory'));
- }
- $input->setOption('directory', $directory);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->fs = new Filesystem();
-
- if (empty($this->uri)) {
- $uri = parse_url($input->getParameterOption(['--uri', '-l'], 'default'), PHP_URL_HOST);
- $sites = $this->getMultisite($uri);
- $this->uri = $sites[$uri];
- }
-
- $this->directory = $input->getOption('directory');
- $this->explodeDirectory = explode('/', $this->directory);
- $this->explodeUriDirectory = explode('/', $this->uri);
-
- if (count($this->explodeDirectory) <= 2) {
- try {
- $multiSiteFile = sprintf(
- '%s/sites/sites.php',
- $this->appRoot
- );
- //Replace Multisite name in sites/sites.php
- $string_to_replace="sites['".$this->explodeUriDirectory[0]."'] = '".$this->uri."';";
- $replace_with="sites['".$this->explodeDirectory[0]."'] = '".$this->directory."';";
- $content=file_get_contents($multiSiteFile);
- $content_chunks=explode($string_to_replace, $content);
- $content=implode($replace_with, $content_chunks);
- file_put_contents($multiSiteFile, $content);
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.update.errors.write-fail'),
- $this->uri,
- $this->directory
- )
- );
- return 1;
- }
-
- //Directory == 1 folder
- if (count($this->explodeDirectory) == 1) {
- $this->recurse_copy(
- $this->appRoot.'/sites/'.$this->uri,
- $this->appRoot.'/sites/'.$this->directory
- );
-
- if ($this->explodeDirectory[0] != $this->explodeUriDirectory[0]
- && $this->fs->exists($this->appRoot.'/sites/'.$this->explodeUriDirectory[0].'/files')
- ) {
- $this->fs->remove($this->appRoot.'/sites/'.$this->directory.'/files');
-
- $this->recurse_copy(
- $this->appRoot.'/sites/'.$this->explodeUriDirectory[0].'/files',
- $this->appRoot.'/sites/'.$this->directory.'/files'
- );
- }
-
- $this->fs->chmod($this->appRoot.'/sites/'.$this->uri, 0755);
- $this->fs->remove($this->appRoot.'/sites/'.$this->uri);
- } else {
- //Directory == 2 folders && uri == 2 folders
- if (count($this->explodeUriDirectory) != 1) {
- if (!$this->fs->exists($this->appRoot . '/sites/' . $this->directory)) {
- $this->fs->rename(
- $this->appRoot . '/sites/' . $this->uri,
- $this->appRoot . '/sites/' . $this->directory
- );
- }
-
- if (count(scandir($this->appRoot.'/sites/'.$this->explodeUriDirectory[0])) != 2) {
- $this->recurse_copy(
- $this->appRoot.'/sites/'.$this->explodeUriDirectory[0].'/files',
- $this->appRoot . '/sites/' . $this->explodeDirectory[0].'/files'
- );
- } else {
- $this->fs->remove($this->appRoot.'/sites/'.$this->explodeUriDirectory[0]);
- }
- }
- //Directory == 2 folders && uri == 1 folder
- else {
- if (!$this->fs->exists($this->appRoot.'/sites/'.$this->directory)) {
- try {
- $this->fs->chmod($this->appRoot.'/sites/'.$this->uri, 0755);
- $this->fs->mkdir($this->appRoot.'/sites/'.$this->directory, 0755);
-
- if ($this->explodeUriDirectory[0] != $this->explodeDirectory[0]) {
- $this->recurse_copy(
- $this->appRoot.'/sites/'.$this->uri,
- $this->appRoot.'/sites/'.$this->explodeDirectory[0]
- );
- $this->fs->remove($this->appRoot.'/sites/'.$this->uri);
- }
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.update.errors.mkdir-fail'),
- $this->directory
- )
- );
- }
- }
- $this->moveSettings();
- }
- }
-
- $this->editSettings();
- } else {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.update.errors.invalid-new-dir'),
- $this->directory
- )
- );
- }
- }
-
- /**
- * Get all Multisites.
- */
- protected function getMultisite()
- {
- $sites = [];
- $multiSiteFile = sprintf(
- '%s/sites/sites.php',
- $this->appRoot
- );
-
- if (file_exists($multiSiteFile)) {
- include $multiSiteFile;
- }
-
- if (!$sites) {
- $this->getIo()->error(
- $this->trans('commands.debug.multisite.messages.no-multisites')
- );
-
- return 1;
- }
-
- return $sites;
- }
-
- /**
- * Move the settings.php file to new directory.
- */
- protected function moveSettings()
- {
- try {
- if (!$this->fs->exists($this->appRoot.'/sites/'.$this->directory.'/settings.php')) {
- $this->fs->copy(
- $this->appRoot.'/sites/'.$this->uri.'/settings.php',
- $this->appRoot.'/sites/'.$this->directory.'/settings.php'
- );
- $this->fs->remove($this->appRoot.'/sites/'.$this->uri.'/settings.php');
- }
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.update.errors.copy-fail'),
- $this->appRoot.'/sites/'.$this->explodeDirectory[0].'/settings.php',
- $this->directory.'/settings.php'
- )
- );
- return 1;
- }
- }
-
- /**
- * Edit the settings.php file to change the database parameters, because the settings.php file was moved.
- */
- protected function editSettings()
- {
- $multiSiteSettingsFile = sprintf(
- '%s/sites/'.$this->explodeDirectory[0].'/settings.php',
- $this->appRoot
- );
- if (!$this->fs->exists($multiSiteSettingsFile)) {
- $multiSiteSettingsFile = sprintf(
- '%s/sites/'.$this->directory.'/settings.php',
- $this->appRoot
- );
- }
-
- $databases = [];
- $config_directories = [];
-
- if (file_exists($multiSiteSettingsFile)) {
- include $multiSiteSettingsFile;
- }
-
- try {
- if (!empty($databases) || !empty($config_directories)) {
- //Replace $databases['default']['default']['database']
- $line = explode('/', $databases['default']['default']['database']);
- $string_to_replace= $databases['default']['default']['database'];
- $replace_with="sites/".$this->explodeDirectory[0]."/files/".end($line);
- $content=file_get_contents($multiSiteSettingsFile);
- $content_chunks=explode($string_to_replace, $content);
- $content=implode($replace_with, $content_chunks);
-
- //Replace $config_directories['sync']
- $string_to_replace= $config_directories['sync'];
- $replace_with=str_replace($this->uri, $this->directory, $config_directories['sync']);
- $content_chunks=explode($string_to_replace, $content);
- $content=implode($replace_with, $content_chunks);
- file_put_contents($multiSiteSettingsFile, $content);
- }
- } catch (IOExceptionInterface $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.multisite.update.messages.write-fail'),
- $multiSiteSettingsFile
- )
- );
- return 1;
- }
- }
-
- /**
- * Custom function to recursively copy all file and folders in new destination
- *
- * @param $source
- * @param $destination
- */
- public function recurse_copy($source, $destination)
- {
- $directory = opendir($source);
- $this->fs->mkdir($destination, 0755);
- while (false !== ($file = readdir($directory))) {
- if (($file != '.') && ($file != '..')) {
- if (is_dir($source . '/' . $file)) {
- $this->recurse_copy($source . '/' . $file, $destination . '/' . $file);
- } else {
- $this->fs->copy($source . '/' . $file, $destination . '/' . $file);
- }
- }
- }
- closedir($directory);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Node/AccessRebuildCommand.php b/vendor/drupal/console/src/Command/Node/AccessRebuildCommand.php
deleted file mode 100644
index c1bbd9425..000000000
--- a/vendor/drupal/console/src/Command/Node/AccessRebuildCommand.php
+++ /dev/null
@@ -1,88 +0,0 @@
-state = $state;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('node:access:rebuild')
- ->setDescription($this->trans('commands.node.access.rebuild.description'))
- ->addOption(
- 'batch',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.node.access.rebuild.options.batch')
- )->setAliases(['nar']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->getIo()->newLine();
- $this->getIo()->comment(
- $this->trans('commands.node.access.rebuild.messages.rebuild')
- );
-
- $batch = $input->getOption('batch');
- try {
- node_access_rebuild($batch);
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $needs_rebuild = $this->state->get('node.node_access_needs_rebuild') ? : false;
- if ($needs_rebuild) {
- $this->getIo()->error(
- $this->trans('commands.node.access.rebuild.messages.failed')
- );
-
- return 1;
- }
-
- $this->getIo()->success(
- $this->trans('commands.node.access.rebuild.messages.completed')
- );
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Queue/RunCommand.php b/vendor/drupal/console/src/Command/Queue/RunCommand.php
deleted file mode 100644
index 53c9ab7ae..000000000
--- a/vendor/drupal/console/src/Command/Queue/RunCommand.php
+++ /dev/null
@@ -1,146 +0,0 @@
-queueWorker = $queueWorker;
- $this->queueFactory = $queueFactory;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('queue:run')
- ->setDescription($this->trans('commands.queue.run.description'))
- ->addArgument(
- 'name',
- InputArgument::OPTIONAL,
- $this->trans('commands.queue.run.arguments.name')
- )->setAliases(['qr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $name = $input->getArgument('name');
-
- if (!$name) {
- $this->getIo()->error(
- $this->trans('commands.queue.run.messages.missing-name')
- );
-
- return 1;
- }
-
- try {
- $worker = $this->queueWorker->createInstance($name);
- $queue = $this->queueFactory->get($name);
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.queue.run.messages.invalid-name'),
- $name
- )
- );
-
- return 1;
- }
-
- $start = microtime(true);
- $result = $this->runQueue($queue, $worker);
- $time = microtime(true) - $start;
-
- if (!empty($result['error'])) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.queue.run.messages.failed'),
- $name,
- $result['error']
- )
- );
-
- return 1;
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.queue.run.success'),
- $name,
- $result['count'],
- $result['total'],
- round($time, 2)
- )
- );
-
- return 0;
- }
-
- /**
- * @param \Drupal\Core\Queue\QueueInterface $queue
- * @param \Drupal\Core\Queue\QueueWorkerInterface $worker
- *
- * @return array
- */
- private function runQueue($queue, $worker)
- {
- $result['count'] = 0;
- $result['total'] = $queue->numberOfItems();
- while ($item = $queue->claimItem()) {
- try {
- $worker->processItem($item->data);
- $queue->deleteItem($item);
- $result['count']++;
- } catch (SuspendQueueException $e) {
- $queue->releaseItem($item);
- $result['error'] = $e;
- }
- }
-
- return $result;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Rest/DisableCommand.php b/vendor/drupal/console/src/Command/Rest/DisableCommand.php
deleted file mode 100644
index 8044367df..000000000
--- a/vendor/drupal/console/src/Command/Rest/DisableCommand.php
+++ /dev/null
@@ -1,122 +0,0 @@
-configFactory = $configFactory;
- $this->pluginManagerRest = $pluginManagerRest;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('rest:disable')
- ->setDescription($this->trans('commands.rest.disable.description'))
- ->addArgument(
- 'resource-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.rest.debug.arguments.resource-id')
- )
- ->setAliases(['red']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $resource_id = $input->getArgument('resource-id');
- $rest_resources = $this->getRestResources();
- $rest_resources_ids = array_merge(
- array_keys($rest_resources['enabled']),
- array_keys($rest_resources['disabled'])
- );
-
- if (!$resource_id) {
- $resource_id = $this->getIo()->choice(
- $this->trans('commands.rest.disable.arguments.resource-id'),
- $rest_resources_ids
- );
- }
-
- $this->validateRestResource(
- $resource_id,
- $rest_resources_ids,
- $this->translator
- );
- $resources = \Drupal::service('entity_type.manager')
- ->getStorage('rest_resource_config')->loadMultiple();
- if ($resources[$this->getResourceKey($resource_id)]) {
- $routeBuilder = \Drupal::service('router.builder');
- $resources[$this->getResourceKey($resource_id)]->delete();
- // Rebuild routing cache.
- $routeBuilder->rebuild();
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.rest.disable.messages.success'),
- $resource_id
- )
- );
- return true;
- }
- $message = sprintf($this->trans('commands.rest.disable.messages.already-disabled'), $resource_id);
- $this->getIo()->info($message);
- return true;
- }
-
- /**
- * The key used in the form.
- *
- * @param string $resource_id
- * The resource ID.
- *
- * @return string
- * The resource key in the form.
- */
- protected function getResourceKey($resource_id)
- {
- return str_replace(':', '.', $resource_id);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Rest/EnableCommand.php b/vendor/drupal/console/src/Command/Rest/EnableCommand.php
deleted file mode 100644
index 93af9a64b..000000000
--- a/vendor/drupal/console/src/Command/Rest/EnableCommand.php
+++ /dev/null
@@ -1,172 +0,0 @@
-pluginManagerRest = $pluginManagerRest;
- $this->authenticationCollector = $authenticationCollector;
- $this->configFactory = $configFactory;
- $this->entityManager = $entity_manager;
- parent::__construct();
- }
-
-
- protected function configure()
- {
- $this
- ->setName('rest:enable')
- ->setDescription($this->trans('commands.rest.enable.description'))
- ->addArgument(
- 'resource-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.rest.debug.arguments.resource-id')
- )
- ->setAliases(['ree']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $resource_id = $input->getArgument('resource-id');
- $rest_resources = $this->getRestResources();
- $rest_resources_ids = array_merge(
- array_keys($rest_resources['enabled']),
- array_keys($rest_resources['disabled'])
- );
- if (!$resource_id) {
- $resource_id = $this->getIo()->choiceNoList(
- $this->trans('commands.rest.enable.arguments.resource-id'),
- $rest_resources_ids
- );
- }
-
- $this->validateRestResource(
- $resource_id,
- $rest_resources_ids,
- $this->translator
- );
- $input->setArgument('resource-id', $resource_id);
-
- // Calculate states available by resource and generate the question.
- $plugin = $this->pluginManagerRest->getInstance(['id' => $resource_id]);
-
- $methods = $plugin->availableMethods();
- $method = $this->getIo()->choice(
- $this->trans('commands.rest.enable.arguments.methods'),
- $methods
- );
- $this->getIo()->writeln(
- $this->trans('commands.rest.enable.messages.selected-method') . ' ' . $method
- );
-
- $format = $this->getIo()->choice(
- $this->trans('commands.rest.enable.arguments.formats'),
- $this->container->getParameter('serializer.formats')
- );
-
- $this->getIo()->writeln(
- $this->trans('commands.rest.enable.messages.selected-format') . ' ' . $format
- );
-
- // Get Authentication Provider and generate the question
- $authenticationProviders = $this->authenticationCollector->getSortedProviders();
-
- $authenticationProvidersSelected = $this->getIo()->choice(
- $this->trans('commands.rest.enable.messages.authentication-providers'),
- array_keys($authenticationProviders),
- 0,
- true
- );
-
- $this->getIo()->writeln(
- $this->trans('commands.rest.enable.messages.selected-authentication-providers') . ' ' . implode(
- ', ',
- $authenticationProvidersSelected
- )
- );
-
- $format_resource_id = str_replace(':', '.', $resource_id);
- $config = $this->entityManager->getStorage('rest_resource_config')->load($format_resource_id);
- if (!$config) {
- $config = $this->entityManager->getStorage('rest_resource_config')->create(
- [
- 'id' => $format_resource_id,
- 'granularity' => RestResourceConfigInterface::METHOD_GRANULARITY,
- 'configuration' => []
- ]
- );
- }
- $configuration = $config->get('configuration') ?: [];
- $configuration[$method] = [
- 'supported_formats' => [$format],
- 'supported_auth' => $authenticationProvidersSelected,
- ];
- $config->set('configuration', $configuration);
- $config->save();
- $message = sprintf($this->trans('commands.rest.enable.messages.success'), $resource_id);
- $this->getIo()->info($message);
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Role/DeleteCommand.php b/vendor/drupal/console/src/Command/Role/DeleteCommand.php
deleted file mode 100644
index d1b45d633..000000000
--- a/vendor/drupal/console/src/Command/Role/DeleteCommand.php
+++ /dev/null
@@ -1,200 +0,0 @@
-database = $database;
- $this->entityTypeManager = $entityTypeManager;
- $this->dateFormatter = $dateFormatter;
- $this->drupalApi = $drupalApi;
- $this->validator = $validator;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('role:delete')
- ->setDescription($this->trans('commands.role.delete.description'))
- ->setHelp($this->trans('commands.role.delete.help'))
- ->addArgument(
- 'roles',
- InputArgument::IS_ARRAY,
- $this->trans('commands.role.delete.argument.roles')
- )->setAliases(['rd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmOperation
- if (!$this->confirmOperation()) {
- return 1;
- }
-
- $roles = $input->getArgument('roles');
- foreach ($roles as $roleItem) {
- $this->validator->validateRoleExistence($roleItem, $this->drupalApi->getRoles());
- }
-
- $role = $this->deleteRole($roles);
-
- $tableHeader = [
- $this->trans('commands.role.delete.messages.role-id'),
- $this->trans('commands.role.delete.messages.role-name'),
- ];
-
- if ($role['success']) {
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.role.delete.messages.role-created')
- )
- );
-
- $this->getIo()->table($tableHeader, $role['success']);
-
- return 0;
- }
-
- if ($role['error']) {
- $this->getIo()->error($role['error']['error']);
-
- return 1;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $rolename = $input->getArgument('roles');
- if (!$rolename) {
- $roles_collection = [];
- $siteRoles = $this->drupalApi->getRoles();
- $roles = array_keys($siteRoles);
- $this->getIo()->writeln($this->trans('commands.common.questions.roles.message'));
- while (true) {
- $role = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.roles.name'),
- $roles,
- '',
- true
- );
- $role = trim($role);
- if (empty($role) || is_numeric($role)) {
- break;
- }
-
- if (!array_key_exists($role, $siteRoles)) {
- $this->getIo()->error(sprintf(
- $this->trans('commands.role.delete.messages.invalid-machine-name'),
- $role
- ));
- continue;
- }
-
- array_push($roles_collection, $role);
- $role_key = array_search($role, $roles, true);
- if ($role_key >= 0) {
- unset($roles[$role_key]);
- }
- }
-
- $input->setArgument('roles', $roles_collection);
- }
- }
-
- /**
- * Remove and returns an array of deleted roles
- *
- * @param $roles
- *
- * @return $array
- */
- private function deleteRole($roles)
- {
- $result = [];
- try {
- foreach ($roles as $value) {
- $role = $this->entityTypeManager->getStorage('user_role')->load($value);
- $this->entityTypeManager->getStorage('user_role')->delete([$role]);
-
- $result['success'][] = [
- 'role-id' => $value,
- 'role-name' => $value
- ];
- }
- } catch (\Exception $e) {
- $result['error'] = [
- 'error' => 'Error: ' . get_class($e) . ', code: ' . $e->getCode() . ', message: ' . $e->getMessage()
- ];
- }
-
- return $result;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Role/NewCommand.php b/vendor/drupal/console/src/Command/Role/NewCommand.php
deleted file mode 100644
index a8e70da96..000000000
--- a/vendor/drupal/console/src/Command/Role/NewCommand.php
+++ /dev/null
@@ -1,201 +0,0 @@
-database = $database;
- $this->entityTypeManager = $entityTypeManager;
- $this->dateFormatter = $dateFormatter;
- $this->drupalApi = $drupalApi;
- $this->validator = $validator;
- $this->stringConverter = $stringConverter;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('role:new')
- ->setDescription($this->trans('commands.role.new.description'))
- ->setHelp($this->trans('commands.role.new.help'))
- ->addArgument(
- 'rolename',
- InputArgument::OPTIONAL,
- $this->trans('commands.role.new.argument.rolename')
- )
- ->addArgument(
- 'machine-name',
- InputArgument::OPTIONAL,
- $this->trans('commands.role.new.argument.machine-name')
- )->setAliases(['rn']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $roleName = $input->getArgument('rolename');
- $machineName = $this->validator->validateRoleNotExistence($this->validator->validateMachineName($input->getArgument('machine-name')), $this->drupalApi->getRoles());
-
- $role = $this->createRole(
- $roleName,
- $machineName
- );
-
- $tableHeader = [
- $this->trans('commands.role.new.messages.role-id'),
- $this->trans('commands.role.new.messages.role-name'),
- ];
-
- if ($role['success']) {
- $this->getIo()->table($tableHeader, $role['success']);
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.role.new.messages.role-created'),
- $role['success'][0]['role-name']
- )
- );
-
- return 0;
- }
-
- if ($role['error']) {
- $this->getIo()->error($role['error']['error']);
-
- return 1;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $name = $input->getArgument('rolename');
- if (!$name) {
- $name = $this->getIo()->ask($this->trans('commands.role.new.questions.rolename'));
- $input->setArgument('rolename', $name);
- }
-
- $machine_name = $input->getArgument('machine-name');
- if (!$machine_name) {
- $machine_name = $this->getIo()->ask(
- $this->trans('commands.role.new.questions.machine-name'),
- $this->stringConverter->createMachineName($name),
- function ($machine_name) {
- $this->validator->validateRoleNotExistence($machine_name, $this->drupalApi->getRoles());
- return $this->validator->validateMachineName($machine_name);
- }
- );
- $input->setArgument('machine-name', $machine_name);
- }
- }
-
- /**
- * Create and returns an array of new role
- *
- * @param $rolename
- * @param $machine_name
- *
- * @return $array
- */
- private function createRole($rolename, $machine_name)
- {
- $role = Role::create(
- [
- 'id' => $machine_name,
- 'label' => $rolename,
- 'originalId' => $machine_name
- ]
- );
-
- $result = [];
-
- try {
- $role->save();
-
- $result['success'][] = [
- 'role-id' => $role->id(),
- 'role-name' => $role->get('label')
- ];
- } catch (\Exception $e) {
- $result['error'] = [
- 'vid' => $role->id(),
- 'name' => $role->get('label'),
- 'error' => 'Error: ' . get_class($e) . ', code: ' . $e->getCode() . ', message: ' . $e->getMessage()
- ];
- }
-
- return $result;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Router/RebuildCommand.php b/vendor/drupal/console/src/Command/Router/RebuildCommand.php
deleted file mode 100644
index 8fd4a197c..000000000
--- a/vendor/drupal/console/src/Command/Router/RebuildCommand.php
+++ /dev/null
@@ -1,54 +0,0 @@
-routerBuilder = $routerBuilder;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('router:rebuild')
- ->setDescription($this->trans('commands.router.rebuild.description'))
- ->setAliases(['rr']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->getIo()->newLine();
- $this->getIo()->comment(
- $this->trans('commands.router.rebuild.messages.rebuilding')
- );
-
- $this->routerBuilder->rebuild();
-
- $this->getIo()->success(
- $this->trans('commands.router.rebuild.messages.completed')
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/ServerCommand.php b/vendor/drupal/console/src/Command/ServerCommand.php
deleted file mode 100644
index 92b17d58b..000000000
--- a/vendor/drupal/console/src/Command/ServerCommand.php
+++ /dev/null
@@ -1,150 +0,0 @@
-appRoot = $appRoot;
- $this->configurationManager = $configurationManager;
-
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('server')
- ->setDescription($this->trans('commands.server.description'))
- ->addArgument(
- 'address',
- InputArgument::OPTIONAL,
- $this->trans('commands.server.arguments.address'),
- '127.0.0.1:8088'
- )->setAliases(['serve']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $address = $this->validatePort($input->getArgument('address'));
-
- $finder = new PhpExecutableFinder();
- if (false === $binary = $finder->find()) {
- $this->getIo()->error($this->trans('commands.server.errors.binary'));
- return 1;
- }
-
- $router = $this->configurationManager
- ->getVendorCoreDirectory() . 'router.php';
-
- $processBuilder = new ProcessBuilder([$binary, '-S', $address, $router]);
- $processBuilder->setTimeout(null);
- $processBuilder->setWorkingDirectory($this->appRoot);
- $process = $processBuilder->getProcess();
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.server.messages.executing'),
- $binary
- )
- );
-
- $this->getIo()->commentBlock(
- sprintf(
- $this->trans('commands.server.messages.listening'),
- 'http://'.$address
- )
- );
-
- if ($this->getIo()->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) {
- $callback = [$this, 'outputCallback'];
- } else {
- $callback = null;
- }
-
- // Use the process helper to copy process output to console output.
- $this->getHelper('process')->run($output, $process, null, $callback);
-
- if (!$process->isSuccessful()) {
- $this->getIo()->error($process->getErrorOutput());
- return 1;
- }
-
- return 0;
- }
-
- /**
- * @param string $address
- * @return string
- */
- private function validatePort($address)
- {
- if (false === strpos($address, ':')) {
- $host = $address;
- $port = '8088';
- } else {
- $host = explode(':', $address)[0];
- $port = explode(':', $address)[1];
- }
-
- if (fsockopen($host, $port)) {
- $port = rand(8888, 9999);
- $address = sprintf(
- '%s:%s',
- $host,
- $port
- );
-
- $address = $this->validatePort($address);
- }
-
- return $address;
- }
-
- public function outputCallback($type, $buffer)
- {
- // TODO: seems like $type is Process::ERR always
- echo $buffer;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ArrayInputTrait.php b/vendor/drupal/console/src/Command/Shared/ArrayInputTrait.php
deleted file mode 100644
index a6a016170..000000000
--- a/vendor/drupal/console/src/Command/Shared/ArrayInputTrait.php
+++ /dev/null
@@ -1,45 +0,0 @@
-getIo()->getInput();
- $yes = $input->hasOption('yes') ? $input->getOption('yes') : false;
- if ($yes) {
- return $yes;
- }
-
- $confirmation = $this->getIo()->confirm(
- $this->trans('commands.common.questions.confirm'),
- true
- );
-
- if (!$confirmation) {
- $this->getIo()->warning($this->trans('commands.common.messages.canceled'));
- }
-
- return $confirmation;
- }
-
- /**
- * @deprecated
- */
- public function confirmGeneration()
- {
- return $this->confirmOperation();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ConnectTrait.php b/vendor/drupal/console/src/Command/Shared/ConnectTrait.php
deleted file mode 100644
index c4eff2153..000000000
--- a/vendor/drupal/console/src/Command/Shared/ConnectTrait.php
+++ /dev/null
@@ -1,69 +0,0 @@
-getIo()->error(
- sprintf(
- $this->trans('commands.database.connect.messages.database-not-found'),
- $database
- )
- );
-
- return null;
- }
-
- $databaseConnection = $connectionInfo[$database];
- if (!in_array($databaseConnection['driver'], $this->supportedDrivers)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.database.connect.messages.database-not-supported'),
- $databaseConnection['driver']
- )
- );
-
- return null;
- }
-
- return $databaseConnection;
- }
-
- public function getRedBeanConnection($database = 'default')
- {
- $connectionInfo = Database::getConnectionInfo();
- $databaseConnection = $connectionInfo[$database];
- if ($databaseConnection['driver'] == 'mysql') {
- $dsn = sprintf(
- 'mysql:host=%s;dbname=%s',
- $databaseConnection['host'],
- $databaseConnection['database']
- );
-
- $this->redBean->setup(
- $dsn,
- $databaseConnection['username'],
- $databaseConnection['password'],
- true
- );
-
- return $this->redBean;
- }
-
- return null;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/CreateTrait.php b/vendor/drupal/console/src/Command/Shared/CreateTrait.php
deleted file mode 100644
index 4790177f6..000000000
--- a/vendor/drupal/console/src/Command/Shared/CreateTrait.php
+++ /dev/null
@@ -1,33 +0,0 @@
- sprintf('N | %s', $this->trans('commands.create.nodes.questions.time-ranges.0')),
- 3600 => sprintf('H | %s', $this->trans('commands.create.nodes.questions.time-ranges.1')),
- 86400 => sprintf('D | %s', $this->trans('commands.create.nodes.questions.time-ranges.2')),
- 604800 => sprintf('W | %s', $this->trans('commands.create.nodes.questions.time-ranges.3')),
- 2592000 => sprintf('M | %s', $this->trans('commands.create.nodes.questions.time-ranges.4')),
- 31536000 => sprintf('Y | %s', $this->trans('commands.create.nodes.questions.time-ranges.5'))
- ];
-
- return $timeRanges;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/DatabaseTrait.php b/vendor/drupal/console/src/Command/Shared/DatabaseTrait.php
deleted file mode 100644
index b5b5bed2f..000000000
--- a/vendor/drupal/console/src/Command/Shared/DatabaseTrait.php
+++ /dev/null
@@ -1,78 +0,0 @@
-getIo()->ask(
- $this->trans('commands.migrate.execute.questions.db-host'),
- '127.0.0.1'
- );
- }
-
- /**
- * @return mixed
- */
- public function dbNameQuestion()
- {
- return $this->getIo()->ask(
- $this->trans('commands.migrate.execute.questions.db-name')
- );
- }
-
- /**
- * @return mixed
- */
- public function dbUserQuestion()
- {
- return $this->getIo()->ask(
- $this->trans('commands.migrate.execute.questions.db-user')
- );
- }
-
- /**
- * @return mixed
- */
- public function dbPassQuestion()
- {
- return $this->getIo()->askHiddenEmpty(
- $this->trans('commands.migrate.execute.questions.db-pass')
- );
- }
-
- /**
- * @return mixed
- */
- public function dbPrefixQuestion()
- {
- return $this->getIo()->askEmpty(
- $this->trans('commands.migrate.execute.questions.db-prefix')
- );
- }
-
- /**
- * @return mixed
- */
- public function dbPortQuestion()
- {
- return $this->getIo()->ask(
- $this->trans('commands.migrate.execute.questions.db-port'),
- '3306'
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/EventsTrait.php b/vendor/drupal/console/src/Command/Shared/EventsTrait.php
deleted file mode 100644
index bb8ce10ea..000000000
--- a/vendor/drupal/console/src/Command/Shared/EventsTrait.php
+++ /dev/null
@@ -1,64 +0,0 @@
-getIo()->info($this->trans('commands.common.questions.events.message'));
-
- $events = $this->getEvents();
-
- while (true) {
- $event = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.events.name'),
- $events,
- '',
- true
- );
-
- if (empty($event) || is_numeric($event)) {
- break;
- }
-
- $callbackSuggestion = str_replace('.', '_', $event);
- $callback = $this->getIo()->ask(
- $this->trans('commands.generate.event.subscriber.questions.callback-name'),
- $callbackSuggestion
- );
-
- $eventCollection[$event] = $callback;
- $eventKey = array_search($event, $events, true);
-
- if ($eventKey >= 0) {
- unset($events[$eventKey]);
- }
- }
-
- return $eventCollection;
- }
-
- public function getEvents()
- {
- if (null === $this->events) {
- $this->events = [];
- $this->events = array_keys($this->eventDispatcher->getListeners());
- }
- return $this->events;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ExportTrait.php b/vendor/drupal/console/src/Command/Shared/ExportTrait.php
deleted file mode 100644
index 78e6faf6b..000000000
--- a/vendor/drupal/console/src/Command/Shared/ExportTrait.php
+++ /dev/null
@@ -1,173 +0,0 @@
-configStorage->createCollection($collection)->read($configName);
- // Exclude uuid base in parameter, useful to share configurations.
- if ($uuid) {
- unset($config['uuid']);
- }
-
- // Exclude default_config_hash inside _core is site-specific.
- if ($hash) {
- unset($config['_core']['default_config_hash']);
-
- // Remove empty _core to match core's output.
- if (empty($config['_core'])) {
- unset($config['_core']);
- }
- }
-
- return $config;
- }
-
- /**
- * @param string $directory
- * @param string $message
- */
- protected function exportConfig($directory, $message)
- {
- $directory = realpath($directory);
- $this->getIo()->info($message);
-
- foreach ($this->configExport as $fileName => $config) {
- $yamlConfig = Yaml::encode($config['data']);
-
- $configFile = sprintf(
- '%s/%s.yml',
- $directory,
- $fileName
- );
-
- $this->getIo()->writeln('- ' . $configFile);
-
- // Create directory if doesn't exist
- if (!file_exists($directory)) {
- mkdir($directory, 0755, true);
- }
-
- file_put_contents(
- $configFile,
- $yamlConfig
- );
- }
- }
-
- /**
- * @param string $moduleName
- * @param string $message
- */
- protected function exportConfigToModule($moduleName, $message)
- {
- $this->getIo()->info($message);
-
- $module = $this->extensionManager->getModule($moduleName);
-
- if (empty($module)) {
- throw new InvalidOptionException(sprintf('The module %s does not exist.', $moduleName));
- }
-
- foreach ($this->configExport as $fileName => $config) {
- $yamlConfig = Yaml::encode($config['data']);
-
- if ($config['optional']) {
- $configDirectory = $module->getConfigOptionalDirectory(false);
- } else {
- $configDirectory = $module->getConfigInstallDirectory(false);
- }
-
- $configFile = sprintf(
- '%s/%s.yml',
- $configDirectory,
- $fileName
- );
-
- $this->getIo()->info('- ' . $configFile);
-
- // Create directory if doesn't exist
- if (!file_exists($configDirectory)) {
- mkdir($configDirectory, 0755, true);
- }
-
- file_put_contents(
- $configFile,
- $yamlConfig
- );
- }
- }
-
- protected function fetchDependencies($config, $type = 'config')
- {
- if (isset($config['dependencies'][$type])) {
- return $config['dependencies'][$type];
- }
-
- return null;
- }
-
- protected function resolveDependencies($dependencies, $optional = false)
- {
- foreach ($dependencies as $dependency) {
- if (!array_key_exists($dependency, $this->configExport)) {
- $this->configExport[$dependency] = ['data' => $this->getConfiguration($dependency), 'optional' => $optional];
- if ($dependencies = $this->fetchDependencies($this->configExport[$dependency], 'config')) {
- $this->resolveDependencies($dependencies, $optional);
- }
- }
- }
- }
-
- protected function exportModuleDependencies($module, $dependencies)
- {
- $module = $this->extensionManager->getModule($module);
- $info_yaml = $module->info;
-
- if (empty($info_yaml['dependencies'])) {
- $info_yaml['dependencies'] = $dependencies;
- } else {
- $info_yaml['dependencies'] = array_unique(array_merge($info_yaml['dependencies'], $dependencies));
- }
-
- if (file_put_contents($module->getPathname(), Yaml::encode($info_yaml))) {
- $this->getIo()->info(
- '[+] ' .
- sprintf(
- $this->trans('commands.config.export.view.messages.depencies-included'),
- $module->getPathname()
- )
- );
-
- foreach ($dependencies as $dependency) {
- $this->getIo()->info(
- ' [-] ' . $dependency
- );
- }
- } else {
- $this->getIo()->error($this->trans('commands.site.mode.messages.error-writing-file') . ': ' . $this->getApplication()->getSite()->getModuleInfoFile($module));
-
- return [];
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ExtensionTrait.php b/vendor/drupal/console/src/Command/Shared/ExtensionTrait.php
deleted file mode 100644
index 4506ec97b..000000000
--- a/vendor/drupal/console/src/Command/Shared/ExtensionTrait.php
+++ /dev/null
@@ -1,89 +0,0 @@
-extensionManager->discoverModules()
- ->showInstalled()
- ->showUninstalled()
- ->showNoCore()
- ->getList(false);
- }
-
- if ($theme) {
- $themes = $this->extensionManager->discoverThemes()
- ->showInstalled()
- ->showUninstalled()
- ->showNoCore()
- ->getList(false);
- }
-
- if ($profile) {
- $profiles = $this->extensionManager->discoverProfiles()
- ->showInstalled()
- ->showUninstalled()
- ->showNoCore()
- ->showCore()
- ->getList(false);
- }
-
- $extensions = array_merge(
- $modules,
- $themes,
- $profiles
- );
-
- if (empty($extensions)) {
- throw new \Exception('No extension available, execute the proper generator command to generate one.');
- }
-
- $extension = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.extension'),
- array_keys($extensions)
- );
-
- return $extensions[$extension];
- }
-
- /**
- * @return string
- *
- * @throws \Exception
- */
- public function extensionTypeQuestion()
- {
- $extensionType = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.extension-type'),
- array_keys(['module', 'theme', 'profile'])
- );
-
- return $extensionType;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/FeatureTrait.php b/vendor/drupal/console/src/Command/Shared/FeatureTrait.php
deleted file mode 100644
index b09f73ba4..000000000
--- a/vendor/drupal/console/src/Command/Shared/FeatureTrait.php
+++ /dev/null
@@ -1,216 +0,0 @@
-getPackagesByBundle($bundle);
-
- if (empty($packages)) {
- throw new \Exception(
- $this->trans('commands.features.message.no-packages')
- );
- }
-
- $package = $this->getIo()->choiceNoList(
- $this->trans('commands.features.import.questions.packages'),
- $packages
- );
-
- return $package;
- }
-
-
- /**
- * @param bool $bundle_name
- *
- * @return \Drupal\features\FeaturesAssignerInterface
- */
- protected function getAssigner($bundle_name)
- {
- /**
- * @var \Drupal\features\FeaturesAssignerInterface $assigner
- */
- $assigner = \Drupal::service('features_assigner');
- if (!empty($bundle_name)) {
- $bundle = $assigner->applyBundle($bundle_name);
-
- if ($bundle->getMachineName() != $bundle_name) {
- }
- }
- // return configuration for default bundle
- else {
- $assigner->assignConfigPackages();
- }
- return $assigner;
- }
-
- /**
- * Get a list of features.
- *
- * @param bundle
- *
- * @return array
- */
- protected function getFeatureList($bundle)
- {
- $features = [];
- $manager = $this->getFeatureManager();
- $modules = $this->getPackagesByBundle($bundle);
-
- foreach ($modules as $module_name) {
- $feature = $manager->loadPackage($module_name, true);
- $overrides = $manager->detectOverrides($feature);
-
- $state = $feature->getState();
-
- if (!empty($overrides) && ($feature->getStatus() != FeaturesManagerInterface::STATUS_NO_EXPORT)) {
- $state = FeaturesManagerInterface::STATE_OVERRIDDEN;
- }
-
- if ($feature->getStatus() != FeaturesManagerInterface::STATUS_NO_EXPORT) {
- $features[$feature->getMachineName()] = [
- 'name' => $feature->getName(),
- 'machine_name' => $feature->getMachineName(),
- 'bundle_name' => $feature->getBundle(),
- 'status' => $manager->statusLabel($feature->getStatus()),
- 'state' => ($state != FeaturesManagerInterface::STATE_DEFAULT) ? $manager->stateLabel($state) : '',
- ];
- }
- }
-
- return $features;
- }
-
-
- protected function importFeature($packages)
- {
- $manager = $this->getFeatureManager();
-
- $modules = (is_array($packages)) ? $packages : [$packages];
- $overridden = [] ;
- foreach ($modules as $module_name) {
- $package = $manager->loadPackage($module_name, true);
-
- if (empty($package)) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.features.import.messages.not-available'),
- $module_name
- )
- );
- continue;
- }
-
- if ($package->getStatus() != FeaturesManagerInterface::STATUS_INSTALLED) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.features.import.messages.uninstall'),
- $module_name
- )
- );
- continue;
- }
-
- $overrides = $manager->detectOverrides($package);
- $missing = $manager->reorderMissing($manager->detectMissing($package));
-
- if (!empty($overrides) || !empty($missing) && ($package->getStatus() == FeaturesManagerInterface::STATUS_INSTALLED)) {
- $overridden[] = array_merge($missing, $overrides);
- }
- }
-
- // Process only missing or overridden features
- $components = $overridden;
-
- if (empty($components)) {
- $this->getIo()->warning(
- sprintf(
- $this->trans('commands.features.import.messages.nothing')
- )
- );
-
- return ;
- } else {
- $this->import($this->getIo(), $components);
- }
- }
-
- public function import($components)
- {
- $manager = $this->getFeatureManager();
- /**
- * @var \Drupal\config_update\ConfigRevertInterface $config_revert
- */
- $config_revert = \Drupal::service('features.config_update');
-
- $config = $manager->getConfigCollection();
-
- foreach ($components as $component) {
- foreach ($component as $feature) {
- if (!isset($config[$feature])) {
- //Import missing component.
- $item = $manager->getConfigType($feature);
- $type = ConfigurationItem::fromConfigStringToConfigType($item['type']);
- $config_revert->import($type, $item['name_short']);
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.features.import.messages.importing'),
- $feature
- )
- );
- } else {
- // Revert existing component.
- $item = $config[$feature];
- $type = ConfigurationItem::fromConfigStringToConfigType($item->getType());
- $config_revert->revert($type, $item->getShortName());
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.features.import.messages.reverting'),
- $feature
- )
- );
- }
- }
- }
- }
-
-
- public function getPackagesByBundle($bundle)
- {
- $manager = $this->getFeatureManager();
- $assigner = $this->getAssigner($bundle);
- $current_bundle = $assigner->getBundle();
-
- // List all packages availables
- if ($current_bundle->getMachineName() == 'default') {
- $current_bundle = null;
- }
-
- $packages = array_keys($manager->getFeaturesModules($current_bundle));
-
- return $packages;
- }
-
- public function getFeatureManager()
- {
- return \Drupal::service('features.manager');
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/FormTrait.php b/vendor/drupal/console/src/Command/Shared/FormTrait.php
deleted file mode 100644
index 380e0e122..000000000
--- a/vendor/drupal/console/src/Command/Shared/FormTrait.php
+++ /dev/null
@@ -1,193 +0,0 @@
-getIo()->confirm(
- $this->trans('commands.common.questions.inputs.confirm'),
- true
- )
- ) {
- $input_types = [
- 'fieldset',
- 'text_format'
- ];
-
- foreach ($this->elementInfoManager->getDefinitions() as $definition) {
- $type = $definition['id'];
- $elementInfo = $this->elementInfoManager->getInfo($type);
- if (isset($elementInfo['#input']) && $elementInfo['#input']) {
- if (!in_array($type, $input_types)) {
- $input_types[] = $type;
- }
- }
- }
- sort($input_types);
-
- $this->getIo()->writeln(sprintf(
- $this->trans('commands.common.messages.available-field-types'), implode(', ', $input_types)
- ));
- $this->getIo()->newLine();
-
- $inputs = [];
- $fieldSets = [];
- while (true) {
- $this->getIo()->comment($this->trans('commands.common.questions.inputs.new-field'));
- $this->getIo()->newLine();
- $input_type = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.inputs.type'),
- $input_types,
- '',
- true
- );
-
- if (empty($input_type) || is_numeric($input_type)) {
- break;
- }
-
- // Label for input
- $inputLabelMessage = $input_type == 'fieldset'?$this->trans('commands.common.questions.inputs.title'):$this->trans('commands.common.questions.inputs.label');
- $input_label = $this->getIo()->ask(
- $inputLabelMessage,
- null
- );
-
- // Machine name
- $input_machine_name = $this->stringConverter->createMachineName($input_label);
-
- $input_name = $this->getIo()->ask(
- $this->trans('commands.common.questions.inputs.machine-name'),
- $input_machine_name
- );
-
- if ($input_type == 'fieldset') {
- $fieldSets[$input_machine_name] = $input_label;
- }
-
- $inputFieldSet = '';
- if ($input_type != 'fieldset' && !empty($fieldSets)) {
- $inputFieldSet = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.inputs.fieldset'),
- $fieldSets,
- '',
- true
- );
-
- $inputFieldSet = array_search($inputFieldSet, $fieldSets);
- }
-
- $maxlength = null;
- $size = null;
- if (in_array($input_type, ['textfield', 'password', 'password_confirm'])) {
- $maxlength = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.max-amount-characters'),
- '64'
- );
-
- $size = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.textfield-width-in-chars'),
- '64'
- );
- }
-
- if ($input_type == 'select') {
- $size = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.multiselect-size-in-lines'),
- '5'
- );
- }
-
- $input_options = '';
- if (in_array($input_type, ['checkboxes', 'radios', 'select'])) {
- $input_options = $this->getIo()->ask(
- $this->trans('commands.generate.form.questions.input-options')
- );
- }
-
- // Prepare options as an array
- if (strlen(trim($input_options))) {
- // remove spaces in options and empty options
- $input_options = array_filter(array_map('trim', explode(',', $input_options)));
- // Create array format for options
- foreach ($input_options as $key => $value) {
- $input_options_output[$key] = "'$value' => \$this->t('".$value."')";
- }
-
- $input_options = '['.implode(', ', $input_options_output).']';
- }
-
- // Description for input
- $input_description = $this->getIo()->askEmpty(
- $this->trans('commands.common.questions.inputs.description')
- );
-
- // Default value for input
- switch ($input_type) {
- case 'checkboxes':
- $question = 'commands.common.questions.inputs.default-value.checkboxes';
- break;
- default:
- $question = 'commands.common.questions.inputs.default-value.default-value';
- break;
- }
- if ($input_type != 'fieldset') {
- $default_value = $this->getIo()->askEmpty(
- $this->trans($question)
- );
- }
- if ($input_type == 'checkboxes') {
- // Prepare options as an array
- if (strlen(trim($default_value))) {
- // remove spaces in options and empty options
- $default_options = array_filter(array_map('trim', explode(',', $default_value)));
- $default_value = $default_options;
- }
- }
-
- // Weight for input
- $weight = $this->getIo()->ask(
- $this->trans('commands.common.questions.inputs.weight'),
- '0'
- );
-
- array_push(
- $inputs,
- [
- 'name' => $input_name,
- 'type' => $input_type,
- 'label' => $input_label,
- 'options' => $input_options,
- 'description' => $input_description,
- 'maxlength' => $maxlength,
- 'size' => $size,
- 'default_value' => $default_value,
- 'weight' => $weight,
- 'fieldset' => $inputFieldSet,
- ]
- );
-
- $this->getIo()->newLine();
- }
-
- return $inputs;
- }
-
- return null;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/LocaleTrait.php b/vendor/drupal/console/src/Command/Shared/LocaleTrait.php
deleted file mode 100644
index 5042dd236..000000000
--- a/vendor/drupal/console/src/Command/Shared/LocaleTrait.php
+++ /dev/null
@@ -1,93 +0,0 @@
-files['remote']->uri) ? $project_info->files['remote']->uri : false;
- $local_path = isset($project_info->files['local']->uri) ? $project_info->files['local']->uri : false;
-
- if (strpos($project_info->version, 'dev') !== false) {
- return $this->trans('commands.locale.translation.status.messages.no-translation-files');
- }
- if (locale_translation_use_remote_source() && $remote_path && $local_path) {
- return sprintf(
- $this->trans('commands.locale.translation.status.messages.file-not-found'),
- $local_path,
- $remote_path
- );
- } elseif ($local_path) {
- return
- sprintf(
- $this->trans('commands.locale.translation.status.messages.local-file-not-found'),
- $local_path
- );
- }
-
- return $this->trans('commands.locale.translation.status.messages.translation-not-determined');
- }
-
- /**
- * LOCALE_TRANSLATION_REMOTE
- * and LOCALE_TRANSLATION_LOCAL indicate available new translations,
- * LOCALE_TRANSLATION_CURRENT indicate that the current translation is them
- * most recent.
- */
- protected function projectsStatus()
- {
- $status_report = [];
- $status = locale_translation_get_status();
- foreach ($status as $project_id => $project) {
- foreach ($project as $langcode => $project_info) {
- $info = '';
- if ($project_info->type == LOCALE_TRANSLATION_LOCAL || $project_info->type == LOCALE_TRANSLATION_REMOTE) {
- $local = isset($project_info->files[LOCALE_TRANSLATION_LOCAL]) ? $project_info->files[LOCALE_TRANSLATION_LOCAL] : null;
- $remote = isset($project_info->files[LOCALE_TRANSLATION_REMOTE]) ? $project_info->files[LOCALE_TRANSLATION_REMOTE] : null;
- $local_age = $local->timestamp? format_date($local->timestamp, 'html_date'): '';
- $remote_age = $remote->timestamp? format_date($remote->timestamp, 'html_date'): '';
-
- if ($local_age >= $remote_age) {
- $info = $this->trans('commands.locale.translation.status.messages.translation-project-updated');
- } else {
- $info = $this->trans('commands.locale.translation.status.messages.translation-project-available');
- }
- } elseif ($project_info->type == LOCALE_TRANSLATION_CURRENT) {
- $info = $this->trans('commands.locale.translation.status.messages.translation-project-updated');
- } else {
- $local_age = '';
- $remote_age = '';
- $info = $this->createInfoString($project_info);
- }
-
- $status_report[$langcode][] = [$project_info->name, $project_info->version, $local_age, $remote_age ,$info ];
- }
- }
-
- return $status_report;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/MenuTrait.php b/vendor/drupal/console/src/Command/Shared/MenuTrait.php
deleted file mode 100644
index 109fd9417..000000000
--- a/vendor/drupal/console/src/Command/Shared/MenuTrait.php
+++ /dev/null
@@ -1,65 +0,0 @@
-getIo()->confirm(
- $this->trans('commands.generate.form.options.menu-link-gen'),
- true
- )
- ) {
- // now we need to ask them where to gen the form
- // get the route
- $menu_options = [
- 'menu_link_gen' => true,
- ];
- $menu_link_title = $this->getIo()->ask(
- $menu_link_title = $this->trans('commands.generate.form.options.menu-link-title'),
- $className
- );
- $menuLinkFile = sprintf(
- '%s/core/modules/system/system.links.menu.yml',
- $this->appRoot
- );
-
- $parser = new Parser();
- $menuLinkContent = $parser->parse(file_get_contents($menuLinkFile));
-
-
- $menu_parent = $this->getIo()->choiceNoList(
- $menu_parent = $this->trans('commands.generate.form.options.menu-parent'),
- array_keys($menuLinkContent),
- 'system.admin_config_system'
- );
-
- $menu_link_desc = $this->getIo()->ask(
- $menu_link_desc = $this->trans('commands.generate.form.options.menu-link-desc'),
- $menu_link_desc = $this->trans('commands.generate.form.suggestions.description-for-menu')
- );
- $menu_options['menu_link_title'] = $menu_link_title;
- $menu_options['menu_parent'] = $menu_parent;
- $menu_options['menu_link_desc'] = $menu_link_desc;
- return $menu_options;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/MigrationTrait.php b/vendor/drupal/console/src/Command/Shared/MigrationTrait.php
deleted file mode 100644
index 2edd6a7d9..000000000
--- a/vendor/drupal/console/src/Command/Shared/MigrationTrait.php
+++ /dev/null
@@ -1,230 +0,0 @@
-pluginManagerMigration->getDefinitions(), function ($migration) use ($version_tag) {
- return !empty($migration['migration_tags']) && in_array($version_tag, $migration['migration_tags']);
- }
- );
-
- // Create an array to configure all migration plugins with same configuration
- $keys = array_keys($migrations);
- $migration_plugin_configuration = array_fill_keys($keys, $configuration);
-
- //Create all migration instances
- $all_migrations = $this->pluginManagerMigration->createInstances(array_keys($migrations), $migration_plugin_configuration);
-
- $migrations = [];
- foreach ($all_migrations as $migration) {
- if ($flatList) {
- $migrations[$migration->id()] = ucwords($migration->label());
- } else {
- $migrations[$migration->id()]['tags'] = implode(', ', $migration->getMigrationTags());
- $migrations[$migration->id()]['description'] = ucwords($migration->label());
- }
- }
- return $migrations;
- }
-
- protected function createDatabaseStateSettings(array $database, $drupal_version)
- {
- $database_state['key'] = 'upgrade';
- $database_state['database'] = $database;
- $database_state_key = 'migrate_drupal_' . $drupal_version;
-
- $this->state->set($database_state_key, $database_state);
- $this->state->set('migrate.fallback_state_key', $database_state_key);
- }
-
- /**
- * @return mixed
- */
- protected function getDatabaseDrivers()
- {
- // Make sure the install API is available.
- include_once DRUPAL_ROOT . '/core/includes/install.inc';
- return drupal_get_database_types();
- }
-
- /**
- * @return mixed
- */
- public function dbDriverTypeQuestion()
- {
- $databases = $this->getDatabaseDrivers();
-
- $dbType = $this->getIo()->choice(
- $this->trans('commands.migrate.setup.questions.db-type'),
- array_keys($databases)
- );
-
- return $dbType;
- }
-
- /**
- * @return mixed
- */
- protected function getDatabaseTypes()
- {
- $drupal = $this->get('site');
- return $drupal->getDatabaseTypes();
- }
-
- /**
- * Determine what version of Drupal the source database contains, copied from \Drupal\migrate_upgrade\MigrationCreationTrait
- *
- * @param \Drupal\Core\Database\Connection $connection
- *
- * @return int|FALSE
- */
- protected function getLegacyDrupalVersion(Connection $connection)
- {
- // Don't assume because a table of that name exists, that it has the columns
- // we're querying. Catch exceptions and report that the source database is
- // not Drupal.
-
- // Druppal 5/6/7 can be detected by the schema_version in the system table.
- if ($connection->schema()->tableExists('system')) {
- try {
- $version_string = $connection->query('SELECT schema_version FROM {system} WHERE name = :module', [':module' => 'system'])
- ->fetchField();
- if ($version_string && $version_string[0] == '1') {
- if ((int) $version_string >= 1000) {
- $version_string = '5';
- } else {
- $version_string = false;
- }
- }
- } catch (\PDOException $e) {
- $version_string = false;
- }
- }
- // For Drupal 8 (and we're predicting beyond) the schema version is in the
- // key_value store.
- elseif ($connection->schema()->tableExists('key_value')) {
- $result = $connection->query("SELECT value FROM {key_value} WHERE collection = :system_schema and name = :module", [':system_schema' => 'system.schema', ':module' => 'system'])->fetchField();
- $version_string = unserialize($result);
- } else {
- $version_string = false;
- }
-
- return $version_string ? substr($version_string, 0, 1) : false;
- }
-
- /**
- * @return mixed
- */
- protected function getDBInfo()
- {
- return $this->database;
- }
-
- /**
- * @param $target
- * @param $key
- */
- protected function getDBConnection($target, $key)
- {
- try {
- return Database::getConnection($target, $key);
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- '%s: %s',
- $this->trans('commands.migrate.execute.messages.destination-error'),
- $e->getMessage()
- )
- );
-
- return null;
- }
- }
-
- protected function registerMigrateDB()
- {
- $input = $this->getIo()->getInput();
- $dbType = $input->getOption('db-type');
- $dbHost = $input->getOption('db-host');
- $dbName = $input->getOption('db-name');
- $dbUser = $input->getOption('db-user');
- $dbPass = $input->getOption('db-pass');
- $dbPrefix = $input->getOption('db-prefix');
- $dbPort = $input->getOption('db-port');
-
- $this->addDBConnection('upgrade', 'default', $dbType, $dbName, $dbUser, $dbPass, $dbPrefix, $dbPort, $dbHost);
- }
-
-
- /**
- * @param $key
- * @param $target
- * @param $dbType
- * @param $dbName
- * @param $dbUser
- * @param $dbPass
- * @param $dbPrefix
- * @param $dbPort
- * @param $dbHost
- */
- protected function addDBConnection($key, $target, $dbType, $dbName, $dbUser, $dbPass, $dbPrefix, $dbPort, $dbHost)
- {
- $database_type = $this->getDatabaseDrivers();
- $reflection = new \ReflectionClass($database_type[$dbType]);
- $install_namespace = $reflection->getNamespaceName();
- // Cut the trailing \Install from namespace.
- $namespace = substr($install_namespace, 0, strrpos($install_namespace, '\\'));
- $this->database = [
- 'database' => $dbName,
- 'username' => $dbUser,
- 'password' => $dbPass,
- 'prefix' => $dbPrefix,
- 'port' => $dbPort,
- 'host' => $dbHost,
- 'namespace' => $namespace,
- 'driver' => $dbType,
- ];
-
-
- try {
- return Database::addConnectionInfo($key, $target, $this->database);
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- '%s: %s',
- $this->trans('commands.migrate.execute.messages.source-error'),
- $e->getMessage()
- )
- );
-
- return null;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ModuleTrait.php b/vendor/drupal/console/src/Command/Shared/ModuleTrait.php
deleted file mode 100644
index a85db71ef..000000000
--- a/vendor/drupal/console/src/Command/Shared/ModuleTrait.php
+++ /dev/null
@@ -1,116 +0,0 @@
-extensionManager->discoverModules()
- ->showInstalled()
- ->showUninstalled()
- ->showNoCore()
- ->getList(true);
-
- if ($showProfile) {
- $profiles = $this->extensionManager->discoverProfiles()
- ->showInstalled()
- ->showUninstalled()
- ->showNoCore()
- ->showCore()
- ->getList(true);
-
- $modules = array_merge($modules, $profiles);
- }
-
- if (empty($modules)) {
- throw new \Exception('No extension available, execute the proper generator command to generate one.');
- }
-
- $module = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.module'),
- $modules
- );
-
- return $module;
- }
-
- /**
- * Verify that install requirements for a list of modules are met.
- *
- * @param string[] $module
- * List of modules to verify.
- *
- * @throws \Exception
- * When one or more requirements are not met.
- */
- public function moduleRequirement(array $module)
- {
- // TODO: Module dependencies should also be checked
- // for unmet requirements recursively.
- $fail = false;
- foreach ($module as $module_name) {
- module_load_install($module_name);
- if ($requirements = \Drupal::moduleHandler()->invoke($module_name, 'requirements', ['install'])) {
- foreach ($requirements as $requirement) {
- if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
- $this->getIo()->info("Module '{$module_name}' cannot be installed: " . $requirement['title'] . ' | ' . $requirement['value']);
- $fail = true;
- }
- }
- }
- }
- if ($fail) {
- throw new \Exception("Some module install requirements are not met.");
- }
- }
-
- /**
- * Get module name from user.
- *
- * @return mixed|string
- * Module name.
- * @throws \Exception
- * When module is not found.
- */
- public function getModuleOption()
- {
- $input = $this->getIo()->getInput();
- $module = $input->getOption('module');
- if (!$module) {
- // @see Drupal\Console\Command\Shared\ModuleTrait::moduleQuestion
- $module = $this->moduleQuestion();
- $input->setOption('module', $module);
- } else {
- $missing_modules = $this->validator->getMissingModules([$module]);
- if ($missing_modules) {
- throw new \Exception(
- sprintf(
- $this->trans(
- 'commands.module.download.messages.no-releases'
- ),
- $module
- )
- );
- }
- }
-
- return $module;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/PermissionTrait.php b/vendor/drupal/console/src/Command/Shared/PermissionTrait.php
deleted file mode 100644
index e60d51c1e..000000000
--- a/vendor/drupal/console/src/Command/Shared/PermissionTrait.php
+++ /dev/null
@@ -1,63 +0,0 @@
-getIo()->ask(
- $this->trans('commands.generate.permissions.questions.permission'),
- $this->trans('commands.generate.permissions.suggestions.access-content')
- );
- $title = $this->getIo()->ask(
- $this->trans('commands.generate.permissions.questions.title'),
- $this->trans('commands.generate.permissions.suggestions.access-content')
- );
- $description = $this->getIo()->ask(
- $this->trans('commands.generate.permissions.questions.description'),
- $this->trans('commands.generate.permissions.suggestions.allow-access-content')
- );
- $restrictAccess = $this->getIo()->choiceNoList(
- $this->trans('commands.generate.permissions.questions.restrict-access'),
- $boolOrNone,
- 'none'
- );
-
- $permission = $this->stringConverter->camelCaseToLowerCase($permission);
- $title = $this->stringConverter->anyCaseToUcFirst($title);
-
- array_push(
- $permissions,
- [
- 'permission' => $permission,
- 'title' => $title,
- 'description' => $description,
- 'restrict_access' => $restrictAccess,
- ]
- );
-
- if (!$this->getIo()->confirm(
- $this->trans('commands.generate.permissions.questions.add'),
- true
- )
- ) {
- break;
- }
- }
-
- return $permissions;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ProjectDownloadTrait.php b/vendor/drupal/console/src/Command/Shared/ProjectDownloadTrait.php
deleted file mode 100644
index 88b5cff6e..000000000
--- a/vendor/drupal/console/src/Command/Shared/ProjectDownloadTrait.php
+++ /dev/null
@@ -1,333 +0,0 @@
-extensionManager->discoverModules()
- ->showUninstalled()
- ->showNoCore()
- ->getList(true);
-
- while (true) {
- $moduleName = $this->getIo()->choiceNoList(
- $this->trans('commands.module.install.questions.module'),
- $modules,
- '',
- true
- );
-
- if (empty($moduleName) && is_numeric($moduleName)) {
- break;
- }
-
- $moduleList[] = $moduleName;
-
- if (array_search($moduleName, $moduleList, true) >= 0) {
- unset($modules[array_search($moduleName, $modules)]);
- }
- }
-
- return $moduleList;
- }
-
- public function modulesUninstallQuestion()
- {
- $moduleList = [];
-
- $modules = $this->extensionManager->discoverModules()
- ->showInstalled()
- ->showNoCore()
- ->showCore()
- ->getList(true);
-
- while (true) {
- $moduleName = $this->getIo()->choiceNoList(
- $this->trans('commands.module.uninstall.questions.module'),
- $modules,
- '',
- true
- );
-
- if (empty($moduleName) || is_numeric($modules)) {
- break;
- }
-
- $moduleList[] = $moduleName;
- }
-
- return $moduleList;
- }
-
- private function downloadModules($modules, $latest, $path = null, $resultList = [])
- {
- if (!$resultList) {
- $resultList = [
- 'invalid' => [],
- 'uninstalled' => [],
- 'dependencies' => []
- ];
- }
- drupal_static_reset('system_rebuild_module_data');
-
- $missingModules = $this->validator->getMissingModules($modules);
-
- $invalidModules = [];
- if ($missingModules) {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.module.install.messages.getting-missing-modules'),
- implode(', ', $missingModules)
- )
- );
- foreach ($missingModules as $missingModule) {
- $version = $this->releasesQuestion($missingModule, $latest);
- if ($version) {
- $this->downloadProject($missingModule, $version, 'module', $path);
- } else {
- $invalidModules[] = $missingModule;
- unset($modules[array_search($missingModule, $modules)]);
- }
- $this->extensionManager->discoverModules();
- }
- }
-
- $unInstalledModules = $this->validator->getUninstalledModules($modules);
-
- $dependencies = $this->calculateDependencies($unInstalledModules);
-
- $resultList = [
- 'invalid' => array_unique(array_merge($resultList['invalid'], $invalidModules)),
- 'uninstalled' => array_unique(array_merge($resultList['uninstalled'], $unInstalledModules)),
- 'dependencies' => array_unique(array_merge($resultList['dependencies'], $dependencies))
- ];
-
- if (!$dependencies) {
- return $resultList;
- }
-
- return $this->downloadModules($dependencies, $latest, $path, $resultList);
- }
-
- protected function calculateDependencies($modules)
- {
- $this->site->loadLegacyFile('/core/modules/system/system.module');
- $moduleList = system_rebuild_module_data();
-
- $dependencies = [];
-
- foreach ($modules as $moduleName) {
- $module = $moduleList[$moduleName];
-
- $dependencies = array_unique(
- array_merge(
- $dependencies,
- $this->validator->getUninstalledModules(
- array_keys($module->requires)?:[]
- )
- )
- );
- }
-
- return array_diff($dependencies, $modules);
- }
-
- /**
- * @param $project
- * @param $version
- * @param $type
- * @param $path
- *
- * @return string
- */
- public function downloadProject($project, $version, $type, $path = null)
- {
- $commandKey = str_replace(':', '.', $this->getName());
-
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.'.$commandKey.'.messages.downloading'),
- $project,
- $version
- )
- );
-
- try {
- $destination = $this->drupalApi->downloadProjectRelease(
- $project,
- $version
- );
-
- if (!$path) {
- $path = $this->getExtractPath($type);
- }
-
- $projectPath = sprintf(
- '%s/%s',
- $this->appRoot,
- $path
- );
-
- if (!file_exists($projectPath)) {
- if (!mkdir($projectPath, 0777, true)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.'.$commandKey.'.messages.error-creating-folder'),
- $projectPath
- )
- );
- return null;
- }
- }
-
- $zippy = Zippy::load();
- if (PHP_OS === "WIN32" || PHP_OS === "WINNT") {
- $container = AdapterContainer::load();
- $container['Drupal\\Console\\Zippy\\Adapter\\TarGzGNUTarForWindowsAdapter'] = function ($container) {
- return TarGzGNUTarForWindowsAdapter::newInstance(
- $container['executable-finder'],
- $container['resource-manager'],
- $container['gnu-tar.inflator'],
- $container['gnu-tar.deflator']
- );
- };
- $zippy->addStrategy(new TarGzFileForWindowsStrategy($container));
- }
- $archive = $zippy->open($destination);
- if ($type == 'core') {
- $archive->extract(getenv('MSYSTEM') ? null : $projectPath);
- } elseif (getenv('MSYSTEM')) {
- $current_dir = getcwd();
- $temp_dir = sys_get_temp_dir();
- chdir($temp_dir);
- $archive->extract();
- $fileSystem = new Filesystem();
- $fileSystem->rename($temp_dir . '/' . $project, $projectPath . '/' . $project);
- chdir($current_dir);
- } else {
- $archive->extract($projectPath);
- }
-
- unlink($destination);
-
- if ($type != 'core') {
- $this->getIo()->success(
- sprintf(
- $this->trans(
- 'commands.' . $commandKey . '.messages.downloaded'
- ),
- $project,
- $version,
- sprintf('%s/%s', $projectPath, $project)
- )
- );
- }
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return null;
- }
-
- return $projectPath;
- }
-
- /**
- * @param string $project
- * @param bool $latest
- * @param bool $stable
- * @return string
- */
- public function releasesQuestion($project, $latest = false, $stable = false)
- {
- $commandKey = str_replace(':', '.', $this->getName());
-
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.'.$commandKey.'.messages.getting-releases'),
- implode(',', [$project])
- )
- );
-
- $releases = $this->drupalApi->getProjectReleases($project, $latest?1:15, $stable);
-
- if (!$releases) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.'.$commandKey.'.messages.no-releases'),
- implode(',', [$project])
- )
- );
-
- return null;
- }
-
- if ($latest) {
- return $releases[0];
- }
-
- $version = $this->getIo()->choice(
- $this->trans('commands.'.$commandKey.'.messages.select-release'),
- $releases
- );
-
- return $version;
- }
-
- /**
- * @param $type
- * @return string
- */
- private function getExtractPath($type)
- {
- switch ($type) {
- case 'module':
- return 'modules/contrib';
- case 'theme':
- return 'themes';
- case 'profile':
- return 'profiles';
- case 'core':
- return '';
- }
- }
-
- /**
- * check if a modules repo is in composer.json
- * check if the repo is setted and matchs the one in config.yml
- *
- * @param object $config
- * @return boolean
- */
- private function repositoryAlreadySet($config, $repo)
- {
- if (!$config->repositories) {
- return false;
- } else {
- if (in_array($repo, $config->repositories)) {
- return true;
- } else {
- return false;
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/RestTrait.php b/vendor/drupal/console/src/Command/Shared/RestTrait.php
deleted file mode 100644
index a174d028c..000000000
--- a/vendor/drupal/console/src/Command/Shared/RestTrait.php
+++ /dev/null
@@ -1,79 +0,0 @@
-getRestDrupalConfig();
-
- $resources = $this->pluginManagerRest->getDefinitions();
-
- $enabled_resources = array_combine(array_keys($config), array_keys($config));
- $available_resources = ['enabled' => [], 'disabled' => []];
-
- foreach ($resources as $id => $resource) {
- $status = in_array($id, $enabled_resources) ? 'enabled' : 'disabled';
- $available_resources[$status][$id] = $resource;
- }
-
- // Sort the list of resources by label.
- $sort_resources = function ($resource_a, $resource_b) {
- return strcmp($resource_a['label'], $resource_b['label']);
- };
- if (!empty($available_resources['enabled'])) {
- uasort($available_resources['enabled'], $sort_resources);
- }
- if (!empty($available_resources['disabled'])) {
- uasort($available_resources['disabled'], $sort_resources);
- }
-
- if (isset($available_resources[$rest_status])) {
- return [$rest_status => $available_resources[$rest_status]];
- }
-
- return $available_resources;
- }
-
- public function getRestDrupalConfig()
- {
- if ($this->configFactory) {
- return $this->configFactory->get('rest.settings')->get('resources') ?: [];
- }
-
- return null;
- }
-
- /**
- * @param $rest
- * @param $rest_resources_ids
- * @param $translator
- *
- * @return mixed
- */
- public function validateRestResource($rest, $rest_resources_ids, $translator)
- {
- if (in_array($rest, $rest_resources_ids)) {
- return $rest;
- } else {
- throw new \InvalidArgumentException(
- sprintf(
- $translator->trans('commands.rest.disable.messages.invalid-rest-id'),
- $rest
- )
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ServicesTrait.php b/vendor/drupal/console/src/Command/Shared/ServicesTrait.php
deleted file mode 100644
index 4543128c3..000000000
--- a/vendor/drupal/console/src/Command/Shared/ServicesTrait.php
+++ /dev/null
@@ -1,100 +0,0 @@
-getIo()->confirm(
- $this->trans('commands.common.questions.services.confirm'),
- false
- )
- ) {
- $service_collection = [];
- $this->getIo()->writeln($this->trans('commands.common.questions.services.message'));
- $services = $this->container->getServiceIds();
-
- while (true) {
- $service = $this->getIo()->choiceNoList(
- $this->trans('commands.common.questions.services.name'),
- $services,
- '',
- true
- );
-
- $service = trim($service);
- if (empty($service) || is_numeric($service)) {
- break;
- }
-
- array_push($service_collection, $service);
- $service_key = array_search($service, $services, true);
-
- if ($service_key >= 0) {
- unset($services[$service_key]);
- }
- }
-
- return $service_collection;
- }
- }
-
- /**
- * @param array $services
- *
- * @return array
- */
- public function buildServices($services)
- {
- $buildServices = [];
- if (!empty($services)) {
- foreach ($services as $service) {
- $class = get_class($this->container->get($service));
- $class = $this->getInterface($class);
- $shortClass = explode('\\', $class);
- $machineName = str_replace('.', '_', $service);
- $buildServices[$service] = [
- 'name' => $service,
- 'machine_name' => $machineName,
- 'camel_case_name' => $this->stringConverter->underscoreToCamelCase($machineName),
- 'class' => $class,
- 'short' => end($shortClass),
- ];
- }
- }
-
- return $buildServices;
- }
-
- /**
- * Gets class interface.
- *
- * @param string $class
- * Class name.
- *
- * @return string
- * Interface
- */
- private function getInterface($class) {
- $interfaceName = $class;
- $interfaces = class_implements($class);
- if (!empty($interfaces)) {
- if (count($interfaces) == 1) {
- $interfaceName = array_shift($interfaces);
- } elseif ($key = array_search($class . 'Interface', $interfaces)) {
- $interfaceName = $interfaces[$key];
- }
- }
-
- return $interfaceName;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ThemeBreakpointTrait.php b/vendor/drupal/console/src/Command/Shared/ThemeBreakpointTrait.php
deleted file mode 100644
index 963bd2483..000000000
--- a/vendor/drupal/console/src/Command/Shared/ThemeBreakpointTrait.php
+++ /dev/null
@@ -1,77 +0,0 @@
-stringConverter;
- $validators = $this->validator;
-
- $breakpoints = [];
- while (true) {
- $breakPointName = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.breakpoint-name'),
- 'narrow',
- function ($breakPointName) use ($validators) {
- return $validators->validateMachineName($breakPointName);
- }
- );
-
- $breakPointLabel = $stringUtils->createMachineName($breakPointName);
- $breakPointLabel = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.breakpoint-label'),
- $breakPointLabel,
- function ($breakPointLabel) use ($validators) {
- return $validators->validateMachineName($breakPointLabel);
- }
- );
-
- $breakPointMediaQuery = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.breakpoint-media-query'),
- 'all and (min-width: 560px) and (max-width: 850px)'
- );
-
- $breakPointWeight = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.breakpoint-weight'),
- '1'
- );
-
- $breakPointMultipliers = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.breakpoint-multipliers'),
- '1x'
- );
-
- array_push(
- $breakpoints,
- [
- 'breakpoint_name' => $breakPointName,
- 'breakpoint_label' => $breakPointLabel,
- 'breakpoint_media_query' => $breakPointMediaQuery,
- 'breakpoint_weight' => $breakPointWeight,
- 'breakpoint_multipliers' => $breakPointMultipliers
- ]
- );
-
- if (!$this->getIo()->confirm(
- $this->trans('commands.generate.theme.questions.breakpoint-add'),
- true
- )
- ) {
- break;
- }
- }
-
- return $breakpoints;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/ThemeRegionTrait.php b/vendor/drupal/console/src/Command/Shared/ThemeRegionTrait.php
deleted file mode 100644
index febc990a5..000000000
--- a/vendor/drupal/console/src/Command/Shared/ThemeRegionTrait.php
+++ /dev/null
@@ -1,91 +0,0 @@
-validator;
- $regions = [];
- while (true) {
- $regionName = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.region-name'),
- 'Content'
- );
-
- $regionMachineName = $this->stringConverter->createMachineName($regionName);
- $regionMachineName = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.region-machine-name'),
- $regionMachineName,
- function ($regionMachineName) use ($validators) {
- return $validators->validateMachineName($regionMachineName);
- }
- );
-
- array_push(
- $regions,
- [
- 'region_name' => $regionName,
- 'region_machine_name' => $regionMachineName,
- ]
- );
-
- if (!$this->getIo()->confirm(
- $this->trans('commands.generate.theme.questions.region-add'),
- true
- )
- ) {
- break;
- }
- }
-
- return $regions;
- }
-
- /**
- *
- * @return mixed
- */
- public function libraryQuestion()
- {
- $libraries = [];
- while (true) {
- $libraryName = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.library-name')
- );
-
- $libraryVersion = $this->getIo()->ask(
- $this->trans('commands.generate.theme.questions.library-version'),
- '1.0'
- );
-
- array_push(
- $libraries,
- [
- 'library_name' => $libraryName,
- 'library_version'=> $libraryVersion,
- ]
- );
-
- if (!$this->getIo()->confirm(
- $this->trans('commands.generate.theme.questions.library-add'),
- true
- )
- ) {
- break;
- }
- }
-
- return $libraries;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Shared/TranslationTrait.php b/vendor/drupal/console/src/Command/Shared/TranslationTrait.php
deleted file mode 100644
index f2e37eee2..000000000
--- a/vendor/drupal/console/src/Command/Shared/TranslationTrait.php
+++ /dev/null
@@ -1,25 +0,0 @@
-setName('shell')
- ->setDescription($this->trans('commands.shell.description'))
- ->setHelp($this->trans('commands.shell.help'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $config = new Configuration;
- $shell = new Shell($config);
- $shell->run();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Site/ImportLocalCommand.php b/vendor/drupal/console/src/Command/Site/ImportLocalCommand.php
deleted file mode 100644
index 627d15c21..000000000
--- a/vendor/drupal/console/src/Command/Site/ImportLocalCommand.php
+++ /dev/null
@@ -1,157 +0,0 @@
-appRoot = $appRoot;
- $this->configurationManager = $configurationManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('site:import:local')
- ->setDescription($this->trans('commands.site.import.local.description'))
- ->addArgument(
- 'name',
- InputArgument::REQUIRED,
- $this->trans('commands.site.import.local.arguments.name')
- )
- ->addArgument(
- 'directory',
- InputArgument::REQUIRED,
- $this->trans('commands.site.import.local.arguments.directory')
- )
- ->addOption(
- 'environment',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.site.import.local.options.environment')
- )
- ->setHelp($this->trans('commands.site.import.local.help'))
- ->setAliases(['sil']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $siteName = $input->getArgument('name');
- $directory = $input->getArgument('directory');
-
- $fileSystem = new Filesystem();
- if (!$fileSystem->exists($directory)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.site.import.local.messages.error-missing'),
- $directory
- )
- );
-
- return 1;
- }
-
- $environment = $input->getOption('environment')?:'local';
-
- $siteConfig = [
- $environment => [
- 'root' => $this->appRoot,
- 'host' => 'local',
- ],
- ];
-
- $yaml = new Yaml();
- $dump = $yaml::dump($siteConfig);
-
- $userPath = sprintf('%s/.console/sites', $this->configurationManager->getHomeDirectory());
- $configFile = sprintf('%s/%s.yml', $userPath, $siteName);
-
- try {
- $fileSystem->dumpFile($configFile, $dump);
- } catch (\Exception $e) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.site.import.local.messages.error-writing'),
- $e->getMessage()
- )
- );
-
- return 1;
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.site.import.local.messages.imported')
- )
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $directory = $input->getArgument('directory');
- if (!$directory) {
- $directory = $this->getIo()->ask(
- $this->trans('commands.site.import.local.questions.directory'),
- getcwd()
- );
- $input->setArgument('directory', $directory);
- }
-
- $name = $input->getArgument('name');
- if (!$name) {
- $name = $this->getIo()->ask(
- $this->trans('commands.site.import.local.questions.name')
- );
- $input->setArgument('name', $name);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Site/InstallCommand.php b/vendor/drupal/console/src/Command/Site/InstallCommand.php
deleted file mode 100644
index 0a5254079..000000000
--- a/vendor/drupal/console/src/Command/Site/InstallCommand.php
+++ /dev/null
@@ -1,559 +0,0 @@
-extensionManager = $extensionManager;
- $this->site = $site;
- $this->configurationManager = $configurationManager;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('site:install')
- ->setDescription($this->trans('commands.site.install.description'))
- ->addArgument(
- 'profile',
- InputArgument::OPTIONAL,
- $this->trans('commands.site.install.arguments.profile')
- )
- ->addOption(
- 'langcode',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.langcode')
- )
- ->addOption(
- 'db-type',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.db-type')
- )
- ->addOption(
- 'db-file',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.db-file')
- )
- ->addOption(
- 'db-host',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-host')
- )
- ->addOption(
- 'db-name',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-name')
- )
- ->addOption(
- 'db-user',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-user')
- )
- ->addOption(
- 'db-pass',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-pass')
- )
- ->addOption(
- 'db-prefix',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-prefix')
- )
- ->addOption(
- 'db-port',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.migrate.execute.options.db-port')
- )
- ->addOption(
- 'site-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.site-name')
- )
- ->addOption(
- 'site-mail',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.site-mail')
- )
- ->addOption(
- 'account-name',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.account-name')
- )
- ->addOption(
- 'account-mail',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.account-mail')
- )
- ->addOption(
- 'account-pass',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.site.install.arguments.account-pass')
- )
- ->addOption(
- 'force',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.site.install.arguments.force')
- )
- ->setAliases(['si']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --profile option
- $profile = $input->getArgument('profile');
- if (!$profile) {
- $profiles = $this->extensionManager
- ->discoverProfiles()
- ->showCore()
- ->showNoCore()
- ->showInstalled()
- ->showUninstalled()
- ->getList(true);
-
- $profiles = array_filter(
- $profiles,
- function ($profile) {
- return strpos($profile, 'testing') !== 0;
- }
- );
-
- $profile = $this->getIo()->choice(
- $this->trans('commands.site.install.questions.profile'),
- array_values($profiles)
- );
-
- $input->setArgument('profile', $profile);
- }
-
- // --langcode option
- $langcode = $input->getOption('langcode');
- if (!$langcode) {
- $languages = $this->site->getStandardLanguages();
- $defaultLanguage = $this->configurationManager
- ->getConfiguration()
- ->get('application.language');
-
- $langcode = $this->getIo()->choiceNoList(
- $this->trans('commands.site.install.questions.langcode'),
- $languages,
- $languages[$defaultLanguage]
- );
-
- $input->setOption('langcode', $langcode);
- }
-
- // Use default database setting if is available
- $database = Database::getConnectionInfo();
- if (empty($database['default'])) {
- // --db-type option
- $dbType = $input->getOption('db-type');
- if (!$dbType) {
- $databases = $this->site->getDatabaseTypes();
- $dbType = $this->getIo()->choice(
- $this->trans('commands.migrate.setup.questions.db-type'),
- array_column($databases, 'name')
- );
-
- foreach ($databases as $dbIndex => $database) {
- if ($database['name'] == $dbType) {
- $dbType = $dbIndex;
- }
- }
-
- $input->setOption('db-type', $dbType);
- }
-
- if ($dbType === 'sqlite') {
- // --db-file option
- $dbFile = $input->getOption('db-file');
- if (!$dbFile) {
- $dbFile = $this->getIo()->ask(
- $this->trans('commands.migrate.execute.questions.db-file'),
- 'sites/default/files/.ht.sqlite'
- );
- $input->setOption('db-file', $dbFile);
- }
- } else {
- // --db-host option
- $dbHost = $input->getOption('db-host');
- if (!$dbHost) {
- $dbHost = $this->dbHostQuestion();
- $input->setOption('db-host', $dbHost);
- }
-
- // --db-name option
- $dbName = $input->getOption('db-name');
- if (!$dbName) {
- $dbName = $this->dbNameQuestion();
- $input->setOption('db-name', $dbName);
- }
-
- // --db-user option
- $dbUser = $input->getOption('db-user');
- if (!$dbUser) {
- $dbUser = $this->dbUserQuestion();
- $input->setOption('db-user', $dbUser);
- }
-
- // --db-pass option
- $dbPass = $input->getOption('db-pass');
- if (!$dbPass) {
- $dbPass = $this->dbPassQuestion();
- $input->setOption('db-pass', $dbPass);
- }
-
- // --db-port prefix
- $dbPort = $input->getOption('db-port');
- if (!$dbPort) {
- $dbPort = $this->dbPortQuestion();
- $input->setOption('db-port', $dbPort);
- }
- }
-
- // --db-prefix
- $dbPrefix = $input->getOption('db-prefix');
- if (!$dbPrefix) {
- $dbPrefix = $this->dbPrefixQuestion();
- $input->setOption('db-prefix', $dbPrefix);
- }
- } else {
- $input->setOption('db-type', $database['default']['driver']);
- $input->setOption('db-host', $database['default']['host']);
- $input->setOption('db-name', $database['default']['database']);
- $input->setOption('db-user', $database['default']['username']);
- $input->setOption('db-pass', $database['default']['password']);
- $input->setOption('db-port', $database['default']['port']);
- $input->setOption('db-prefix', $database['default']['prefix']['default']);
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.site.install.messages.using-current-database'),
- $database['default']['driver'],
- $database['default']['database'],
- $database['default']['username']
- )
- );
- }
-
- // --site-name option
- $siteName = $input->getOption('site-name');
- if (!$siteName) {
- $siteName = $this->getIo()->ask(
- $this->trans('commands.site.install.questions.site-name'),
- $this->trans('commands.site.install.suggestions.site-name')
- );
- $input->setOption('site-name', $siteName);
- }
-
- // --site-mail option
- $siteMail = $input->getOption('site-mail');
- if (!$siteMail) {
- $siteMail = $this->getIo()->ask(
- $this->trans('commands.site.install.questions.site-mail'),
- 'admin@example.com'
- );
- $input->setOption('site-mail', $siteMail);
- }
-
- // --account-name option
- $accountName = $input->getOption('account-name');
- if (!$accountName) {
- $accountName = $this->getIo()->ask(
- $this->trans('commands.site.install.questions.account-name'),
- 'admin'
- );
- $input->setOption('account-name', $accountName);
- }
-
- // --account-pass option
- $accountPass = $input->getOption('account-pass');
- if (!$accountPass) {
- $accountPass = $this->getIo()->askHidden(
- $this->trans('commands.site.install.questions.account-pass')
- );
- $input->setOption('account-pass', $accountPass);
- }
-
- // --account-mail option
- $accountMail = $input->getOption('account-mail');
- if (!$accountMail) {
- $accountMail = $this->getIo()->ask(
- $this->trans('commands.site.install.questions.account-mail'),
- $siteMail
- );
- $input->setOption('account-mail', $accountMail);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $uri = parse_url($input->getParameterOption(['--uri', '-l'], 'default'), PHP_URL_HOST);
-
- if ($this->site->multisiteMode($uri)) {
- if (!$this->site->validMultisite($uri)) {
- $this->getIo()->error(
- sprintf($this->trans('commands.site.install.messages.invalid-multisite'), $uri, $uri)
- );
- exit(1);
- }
-
- // Modify $_SERVER environment information to enable
- // the Drupal installer to use the multi-site configuration.
- $_SERVER['HTTP_HOST'] = $uri;
- }
-
- // Database options
- $dbType = $input->getOption('db-type')?:'mysql';
- $dbFile = $input->getOption('db-file');
- $dbHost = $input->getOption('db-host')?:'127.0.0.1';
- $dbName = $input->getOption('db-name')?:'drupal_'.time();
- $dbUser = $input->getOption('db-user')?:'root';
- $dbPass = $input->getOption('db-pass');
- $dbPrefix = $input->getOption('db-prefix');
- $dbPort = $input->getOption('db-port')?:'3306';
- $force = $input->getOption('force');
-
- $databases = $this->site->getDatabaseTypes();
-
- if ($dbType === 'sqlite') {
- $database = [
- 'database' => $dbFile,
- 'prefix' => $dbPrefix,
- 'namespace' => $databases[$dbType]['namespace'],
- 'driver' => $dbType,
- ];
-
- if ($force) {
- $fs = new Filesystem();
- $fs->remove($dbFile);
- }
- } else {
- $database = [
- 'database' => $dbName,
- 'username' => $dbUser,
- 'password' => $dbPass,
- 'prefix' => $dbPrefix,
- 'port' => $dbPort,
- 'host' => $dbHost,
- 'namespace' => $databases[$dbType]['namespace'],
- 'driver' => $dbType,
- ];
-
- if ($force && Database::isActiveConnection()) {
- $schema = Database::getConnection()->schema();
- $tables = $schema->findTables('%');
- foreach ($tables as $table) {
- $schema->dropTable($table);
- }
- }
- }
-
- try {
- $drupalFinder = new DrupalFinder();
- $drupalFinder->locateRoot(getcwd());
- $this->runInstaller($database, $uri);
-
- $autoload = $this->container->get('class_loader');
- $drupal = new Drupal(
- $autoload,
- $drupalFinder,
- $this->configurationManager
- );
- $container = $drupal->boot();
- $this->getApplication()->setContainer($container);
- $this->getApplication()->validateCommands();
- $this->getApplication()->loadCommands();
- } catch (Exception $e) {
- $this->getIo()->error($e->getMessage());
- return 1;
- }
-
- $this->restoreSitesFile();
-
- return 0;
- }
-
- /**
- * Backs up sites.php to backup.sites.php (if needed).
- *
- * This is needed because of a bug with install_drupal() that causes the
- * install files to be placed directly under /sites instead of the
- * appropriate subdir when run from a script and a sites.php file exists.
- *
- * @return boolean
- */
- protected function backupSitesFile()
- {
- if (!file_exists($this->appRoot . '/sites/sites.php')) {
- return true;
- }
-
- $renamed = rename($this->appRoot . '/sites/sites.php', $this->appRoot . '/sites/backup.sites.php');
-
- $this->getIo()->info($this->trans('commands.site.install.messages.sites-backup'));
-
- return $renamed;
- }
-
- /**
- * Restores backup.sites.php to sites.php (if needed).
- *
- * @return boolean
- */
- protected function restoreSitesFile()
- {
- if (!file_exists($this->appRoot . '/sites/backup.sites.php')) {
- return true;
- }
-
- $renamed = rename($this->appRoot . '/sites/backup.sites.php', $this->appRoot . '/sites/sites.php');
-
- $this->getIo()->info($this->trans('commands.site.install.messages.sites-restore'));
-
- return $renamed;
- }
-
- protected function runInstaller($database, $uri) {
- $input = $this->getIo()->getInput();
- $this->site->loadLegacyFile('/core/includes/install.core.inc');
-
- $driver = (string)$database['driver'];
-
- $settings = [
- 'parameters' => [
- 'profile' => $input->getArgument('profile') ?: 'standard',
- 'langcode' => $input->getOption('langcode') ?: 'en',
- ],
- 'forms' => [
- 'install_settings_form' => [
- 'driver' => $driver,
- $driver => $database,
- 'op' => 'Save and continue',
- ],
- 'install_configure_form' => [
- 'site_name' => $input->getOption('site-name') ?: 'Drupal 8',
- 'site_mail' => $input->getOption('site-mail') ?: 'admin@example.org',
- 'account' => [
- 'name' => $input->getOption('account-name') ?: 'admin',
- 'mail' => $input->getOption('account-mail') ?: 'admin@example.org',
- 'pass' => [
- 'pass1' => $input->getOption('account-pass') ?: 'admin',
- 'pass2' => $input->getOption('account-pass') ?: 'admin'
- ],
- ],
- 'update_status_module' => [
- 1 => true,
- 2 => true,
- ],
- 'clean_url' => true,
- 'op' => 'Save and continue',
- ],
- ]
- ];
-
- if (!$this->site->multisiteMode($uri)) {
- $this->backupSitesFile();
- }
-
- $this->getIo()->newLine();
- $this->getIo()->info($this->trans('commands.site.install.messages.installing'));
-
- try {
- $autoload = $this->site->getAutoload();
- install_drupal($autoload, $settings);
- } catch (AlreadyInstalledException $e) {
- $this->getIo()->error($this->trans('commands.site.install.messages.already-installed'));
- return 1;
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
- return 1;
- }
-
- if (!$this->site->multisiteMode($uri)) {
- $this->restoreSitesFile();
- }
-
- $this->getIo()->success($this->trans('commands.site.install.messages.installed'));
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Site/MaintenanceCommand.php b/vendor/drupal/console/src/Command/Site/MaintenanceCommand.php
deleted file mode 100644
index c94368a5e..000000000
--- a/vendor/drupal/console/src/Command/Site/MaintenanceCommand.php
+++ /dev/null
@@ -1,85 +0,0 @@
-state = $state;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('site:maintenance')
- ->setDescription($this->trans('commands.site.maintenance.description'))
- ->addArgument(
- 'mode',
- InputArgument::REQUIRED,
- $this->trans('commands.site.maintenance.arguments.mode')
- )
- ->setAliases(['sma']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $mode = $input->getArgument('mode');
- $stateName = 'system.maintenance_mode';
- $modeMessage = null;
- $cacheRebuild = true;
-
- if ('ON' === strtoupper($mode)) {
- $this->state->set($stateName, true);
- $modeMessage = 'commands.site.maintenance.messages.maintenance-on';
- }
- if ('OFF' === strtoupper($mode)) {
- $this->state->set($stateName, false);
- $modeMessage = 'commands.site.maintenance.messages.maintenance-off';
- }
-
- if ($modeMessage === null) {
- $modeMessage = 'commands.site.maintenance.errors.invalid-mode';
- $cacheRebuild = false;
- }
-
- $this->getIo()->info($this->trans($modeMessage));
-
- if ($cacheRebuild) {
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Site/ModeCommand.php b/vendor/drupal/console/src/Command/Site/ModeCommand.php
deleted file mode 100644
index b91d49440..000000000
--- a/vendor/drupal/console/src/Command/Site/ModeCommand.php
+++ /dev/null
@@ -1,258 +0,0 @@
-configFactory = $configFactory;
- $this->configurationManager = $configurationManager;
- $this->appRoot = $appRoot;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('site:mode')
- ->setDescription($this->trans('commands.site.mode.description'))
- ->addArgument(
- 'environment',
- InputArgument::REQUIRED,
- $this->trans('commands.site.mode.arguments.environment')
- )
- ->setAliases(['smo']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $environment = $input->getArgument('environment');
-
- if (!in_array($environment, ['dev', 'prod'])) {
- $this->getIo()->error($this->trans('commands.site.mode.messages.invalid-env'));
- return 1;
- }
-
- $loadedConfigurations = $this->loadConfigurations($environment);
-
- $configurationOverrideResult = $this->overrideConfigurations(
- $loadedConfigurations['configurations']
- );
-
- foreach ($configurationOverrideResult as $configName => $result) {
- $this->getIo()->info(
- $this->trans('commands.site.mode.messages.configuration') . ':',
- false
- );
- $this->getIo()->comment($configName);
-
- $tableHeader = [
- $this->trans('commands.site.mode.messages.configuration-key'),
- $this->trans('commands.site.mode.messages.original'),
- $this->trans('commands.site.mode.messages.updated'),
- ];
-
- $this->getIo()->table($tableHeader, $result);
- }
-
- $servicesOverrideResult = $this->processServicesFile(
- $environment,
- $loadedConfigurations['services']
- );
-
- if (!empty($servicesOverrideResult)) {
- $this->getIo()->info(
- $this->trans('commands.site.mode.messages.new-services-settings')
- );
-
- $tableHeaders = [
- $this->trans('commands.site.mode.messages.service'),
- $this->trans('commands.site.mode.messages.service-parameter'),
- $this->trans('commands.site.mode.messages.service-value'),
- ];
-
- $this->getIo()->table($tableHeaders, $servicesOverrideResult);
- }
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- }
-
- protected function overrideConfigurations($configurations)
- {
- $result = [];
- foreach ($configurations as $configName => $options) {
- $config = $this->configFactory->getEditable($configName);
- foreach ($options as $key => $value) {
- $original = $config->get($key);
- if (is_bool($original)) {
- $original = $original? 'true' : 'false';
- }
- $updated = $value;
- if (is_bool($updated)) {
- $updated = $updated? 'true' : 'false';
- }
-
- $result[$configName][] = [
- 'configuration' => $key,
- 'original' => $original,
- 'updated' => $updated,
- ];
- $config->set($key, $value);
- }
- $config->save();
- }
-
- return $result;
- }
-
- protected function processServicesFile($environment, $servicesSettings)
- {
- $directory = sprintf(
- '%s/%s',
- $this->appRoot,
- \Drupal::service('site.path')
- );
-
- $settingsServicesFile = $directory . '/services.yml';
-
- if (!file_exists($settingsServicesFile)) {
- // Copying default services
- $defaultServicesFile = $this->appRoot . '/sites/default/default.services.yml';
- if (!copy($defaultServicesFile, $settingsServicesFile)) {
- $this->getIo()->error(
- sprintf(
- '%s: %s/services.yml',
- $this->trans('commands.site.mode.messages.error-copying-file'),
- $directory
- )
- );
-
- return [];
- }
- }
-
- $yaml = new Yaml();
-
- $services = $yaml->parse(file_get_contents($settingsServicesFile));
-
- $result = [];
- foreach ($servicesSettings as $service => $parameters) {
- if (is_array($parameters)) {
- foreach ($parameters as $parameter => $value) {
- $services['parameters'][$service][$parameter] = $value;
- // Set values for output
- $result[$parameter]['service'] = $service;
- $result[$parameter]['parameter'] = $parameter;
- if (is_bool($value)) {
- $value = $value ? 'true' : 'false';
- }
- $result[$parameter]['value'] = $value;
- }
- } else {
- $services['parameters'][$service] = $parameters;
- // Set values for output
- $result[$service]['service'] = $service;
- $result[$service]['parameter'] = '';
- if (is_bool($parameters)) {
- $value = $parameters ? 'true' : 'false';
- }
- $result[$service]['value'] = $value;
- }
- }
-
- if (file_put_contents($settingsServicesFile, $yaml->dump($services))) {
- $this->getIo()->commentBlock(
- sprintf(
- $this->trans('commands.site.mode.messages.services-file-overwritten'),
- $settingsServicesFile
- )
- );
- } else {
- $this->getIo()->error(
- sprintf(
- '%s : %s/services.yml',
- $this->trans('commands.site.mode.messages.error-writing-file'),
- $directory
- )
- );
-
- return [];
- }
-
- sort($result);
- return $result;
- }
-
- protected function loadConfigurations($env)
- {
- $configFile = $this->configurationManager
- ->getVendorCoreDirectory() . 'site.mode.yml';
-
- $siteModeConfiguration = Yaml::parse(file_get_contents($configFile));
- $configKeys = array_keys($siteModeConfiguration);
-
- $configurationSettings = [];
- foreach ($configKeys as $configKey) {
- $siteModeConfigurationItem = $siteModeConfiguration[$configKey];
- foreach ($siteModeConfigurationItem as $setting => $parameters) {
- if (array_key_exists($env, $parameters)) {
- $configurationSettings[$configKey][$setting] = $parameters[$env];
- } else {
- foreach ($parameters as $parameter => $value) {
- $configurationSettings[$configKey][$setting][$parameter] = $value[$env];
- }
- }
- }
- }
-
- return $configurationSettings;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Site/StatisticsCommand.php b/vendor/drupal/console/src/Command/Site/StatisticsCommand.php
deleted file mode 100644
index 04880b318..000000000
--- a/vendor/drupal/console/src/Command/Site/StatisticsCommand.php
+++ /dev/null
@@ -1,235 +0,0 @@
-drupalApi = $drupalApi;
- $this->entityQuery = $entityQuery;
- $this->extensionManager = $extensionManager;
- $this->moduleHandler = $moduleHandler;
- parent::__construct();
- }
-
- /**
- * @{@inheritdoc}
- */
- public function configure()
- {
- $this
- ->setName('site:statistics')
- ->setDescription($this->trans('commands.site.statistics.description'))
- ->setHelp($this->trans('commands.site.statistics.help'))
- ->setAliases(['sst']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $bundles = $this->drupalApi->getBundles();
- foreach ($bundles as $bundleType => $bundleName) {
- $key = sprintf(
- $this->trans('commands.site.statistics.messages.node-type'),
- $bundleName
- );
- $statistics[$key] = $this->getNodeTypeCount($bundleType);
- }
- $statistics[$this->trans('commands.site.statistics.messages.comments')] = $this->getCommentCount();
- $statistics[$this->trans('commands.site.statistics.messages.vocabulary')] = $this->getTaxonomyVocabularyCount();
- $statistics[$this->trans('commands.site.statistics.messages.taxonomy-terms')] = $this->getTaxonomyTermCount();
- $statistics[$this->trans('commands.site.statistics.messages.files')] = $this->getFileCount();
- $statistics[$this->trans('commands.site.statistics.messages.users')] = $this->getUserCount();
- $statistics[$this->trans('commands.site.statistics.messages.views')] = $this->getViewCount();
- $statistics[$this->trans('commands.site.statistics.messages.modules-enabled')] = $this->getModuleCount(true);
- $statistics[$this->trans('commands.site.statistics.messages.modules-disabled')] = $this->getModuleCount(false);
- $statistics[$this->trans('commands.site.statistics.messages.themes-enabled')] = $this->getThemeCount(true);
- $statistics[$this->trans('commands.site.statistics.messages.themes-disabled')] = $this->getThemeCount(false);
-
- $this->statisticsList($statistics);
- }
-
-
- /**
- * @param $nodeType
- * @return mixed
- */
- private function getNodeTypeCount($nodeType)
- {
- $nodesPerType = $this->entityQuery->get('node')->condition('type', $nodeType)->count();
- $nodes = $nodesPerType->execute();
-
- return $nodes;
- }
-
- /**
- * @return mixed
- */
- private function getCommentCount()
- {
- if (!$this->moduleHandler->moduleExists('comment')) {
- return 0;
- }
-
- $entityQuery = $this->entityQuery->get('comment')->count();
- $comments = $entityQuery->execute();
-
- return $comments;
- }
-
- /**
- * @return mixed
- */
- private function getTaxonomyVocabularyCount()
- {
- $entityQuery = $this->entityQuery->get('taxonomy_vocabulary')->count();
- $vocabularies = $entityQuery->execute();
-
- return $vocabularies;
- }
-
- /**
- * @return mixed
- */
- private function getTaxonomyTermCount()
- {
- $entityQuery = $this->entityQuery->get('taxonomy_term')->count();
- $terms = $entityQuery->execute();
-
- return $terms;
- }
-
- /**
- * @return mixed
- */
- private function getFileCount()
- {
- $entityQuery = $this->entityQuery->get('file')->count();
- $files = $entityQuery->execute();
-
- return $files;
- }
-
- /**
- * @return mixed
- */
- private function getUserCount()
- {
- $entityQuery = $this->entityQuery->get('user')->count();
- $users = $entityQuery->execute();
-
- return $users;
- }
-
- /**
- * @param bool|TRUE $status
- * @return int
- */
- private function getModuleCount($status = true)
- {
- if ($status) {
- return count($this->extensionManager->discoverModules()->showCore()->showNoCore()->showInstalled()->getList());
- }
-
- return count($this->extensionManager->discoverModules()->showCore()->showNoCore()->showUninstalled()->getList());
- }
-
- /**
- * @param bool|TRUE $status
- * @return int
- */
- private function getThemeCount($status = true)
- {
- if ($status) {
- return count($this->extensionManager->discoverThemes()->showCore()->showNoCore()->showInstalled()->getList());
- }
-
- return count($this->extensionManager->discoverThemes()->showCore()->showNoCore()->showUninstalled()->getList());
- }
-
- /**
- * @return mixed
- */
- private function getViewCount($status = true, $tag = 'default')
- {
- $entityQuery = $this->entityQuery->get('view')->condition('tag', 'default', '<>')->count();
- $views = $entityQuery->execute();
-
- return $views;
- }
-
- /**
- * @param mixed $statistics
- */
- private function statisticsList($statistics)
- {
- $tableHeader =[
- $this->trans('commands.site.statistics.messages.stat-name'),
- $this->trans('commands.site.statistics.messages.stat-quantity'),
- ];
-
- $tableRows = [];
- foreach ($statistics as $type => $amount) {
- $tableRows[] = [
- $type,
- $amount
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows);
- }
-}
diff --git a/vendor/drupal/console/src/Command/Site/StatusCommand.php b/vendor/drupal/console/src/Command/Site/StatusCommand.php
deleted file mode 100644
index be38be1aa..000000000
--- a/vendor/drupal/console/src/Command/Site/StatusCommand.php
+++ /dev/null
@@ -1,262 +0,0 @@
-systemManager = $systemManager;
- $this->settings = $settings;
- $this->configFactory = $configFactory;
- $this->themeHandler = $themeHandler;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('site:status')
- ->setDescription($this->trans('commands.site.status.description'))
- ->addOption(
- 'format',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.site.status.options.format'),
- 'table'
- )
- ->setAliases(['ss']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- // Make sure all modules are loaded.
- $this->container->get('module_handler')->loadAll();
-
- $systemData = $this->getSystemData();
- $connectionData = $this->getConnectionData();
- $themeInfo = $this->getThemeData();
- $directoryData = $this->getDirectoryData();
-
- $siteData = array_merge(
- $systemData,
- $connectionData,
- $themeInfo,
- $directoryData
- );
-
- $format = $input->getOption('format');
-
- if ('table' === $format) {
- $this->showDataAsTable($siteData);
- }
-
- if ('json' === $format) {
- $output->writeln(json_encode($siteData, JSON_PRETTY_PRINT));
- }
- }
-
- protected function getSystemData()
- {
- if (!$this->systemManager) {
- return [];
- }
-
- $requirements = $this->systemManager->listRequirements();
- $systemData = [];
-
- foreach ($requirements as $key => $requirement) {
- if ($requirement['title'] instanceof \Drupal\Core\StringTranslation\TranslatableMarkup) {
- $title = $requirement['title']->render();
- } else {
- $title = $requirement['title'];
- }
-
- $systemData['system'][$title] = strip_tags($requirement['value']);
- }
-
- if ($this->settings) {
- try {
- $hashSalt = $this->settings->getHashSalt();
- } catch (\Exception $e) {
- $hashSalt = '';
- }
- $systemData['system'][$this->trans('commands.site.status.messages.hash-salt')] = $hashSalt;
- $systemData['system'][$this->trans('commands.site.status.messages.console')] = $this->getApplication()->getVersion();
- }
-
- return $systemData;
- }
-
- protected function getConnectionData()
- {
- $connectionInfo = Database::getConnectionInfo();
-
- $connectionData = [];
- foreach ($this->connectionInfoKeys as $connectionInfoKey) {
- if ("password" == $connectionInfoKey) {
- continue;
- }
-
- $connectionKey = $this->trans('commands.site.status.messages.'.$connectionInfoKey);
- $connectionData['database'][$connectionKey] = $connectionInfo['default'][$connectionInfoKey];
- }
-
- $connectionData['database'][$this->trans('commands.site.status.messages.connection')] = sprintf(
- '%s//%s:%s@%s%s/%s',
- $connectionInfo['default']['driver'],
- $connectionInfo['default']['username'],
- $connectionInfo['default']['password'],
- $connectionInfo['default']['host'],
- $connectionInfo['default']['port'] ? ':'.$connectionInfo['default']['port'] : '',
- $connectionInfo['default']['database']
- );
-
- return $connectionData;
- }
-
- protected function getThemeData()
- {
- $config = $this->configFactory->get('system.theme');
-
- return [
- 'theme' => [
- $this->trans('commands.site.status.messages.theme_default') => $config->get('default'),
- $this->trans('commands.site.status.messages.theme_admin') => $config->get('admin'),
- ],
- ];
- }
-
- protected function getDirectoryData()
- {
- $systemTheme = $this->configFactory->get('system.theme');
-
- $themeDefaultDirectory = '';
- $themeAdminDirectory = '';
- try {
- $themeDefault = $this->themeHandler->getTheme(
- $systemTheme->get('default')
- );
- $themeDefaultDirectory = sprintf('/%s', $themeDefault->getpath());
-
- $themeAdmin = $this->themeHandler->getTheme(
- $systemTheme->get('admin')
- );
- $themeAdminDirectory = sprintf('/%s', $themeAdmin->getpath());
- } catch (\Exception $e) {
- }
-
- $systemFile = $this->configFactory->get('system.file');
-
- return [
- 'directory' => [
- $this->trans('commands.site.status.messages.directory-root') => $this->appRoot,
- $this->trans('commands.site.status.messages.directory-temporary') => $systemFile->get('path.temporary'),
- $this->trans('commands.site.status.messages.directory-theme-default') => $themeDefaultDirectory,
- $this->trans('commands.site.status.messages.directory-theme-admin') => $themeAdminDirectory,
- ],
- ];
- }
-
- protected function showDataAsTable($siteData)
- {
- if (empty($siteData)) {
- return [];
- }
- $this->getIo()->newLine();
- foreach ($this->groups as $group) {
- $tableRows = [];
- $groupData = $siteData[$group];
- $this->getIo()->comment($this->trans('commands.site.status.messages.'.$group));
-
- foreach ($groupData as $key => $item) {
- $tableRows[] = [$key, $item];
- }
-
- $this->getIo()->table([], $tableRows, 'compact');
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/SnippetCommand.php b/vendor/drupal/console/src/Command/SnippetCommand.php
deleted file mode 100644
index 0f2bc162b..000000000
--- a/vendor/drupal/console/src/Command/SnippetCommand.php
+++ /dev/null
@@ -1,128 +0,0 @@
-consoleRoot = $consoleRoot;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('snippet')
- ->addOption(
- 'file',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.snippet.options.file')
- )
- ->addOption(
- 'code',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.snippet.options.code')
- )
- ->addOption(
- 'show-code',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.snippet.options.show-code')
- )
- ->setDescription($this->trans('commands.snippet.description'))
- ->setHelp($this->trans('commands.snippet.help'));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $file = $input->getOption('file');
- $code = $input->getOption('code');
- $showCode = $input->getOption('show-code');
-
- if ($code) {
- eval($code);
- return 0;
- }
-
- if (!$file) {
- $this->getIo()->error($this->trans('commands.snippet.errors.invalid-options'));
-
- return 1;
- }
-
- $file = $this->getFileAsAbsolutePath($file);
- if (!$file) {
- $this->getIo()->error($this->trans('commands.snippet.errors.invalid-file'));
-
- return 1;
- }
-
- if ($showCode) {
- $code = file_get_contents($file);
- $this->getIo()->writeln($code);
- }
-
- include_once $file;
-
- return 0;
- }
-
- private function getFileAsAbsolutePath($file)
- {
- $fs = new Filesystem();
-
- if ($fs->isAbsolutePath($file)) {
- return $fs->exists($file)?$file:null;
- }
-
- $files = [
- $this->consoleRoot.'/'.$file,
- $this->appRoot.'/'.$file
- ];
-
- foreach ($files as $file) {
- if ($fs->exists($file)) {
- return $file;
- }
- }
-
- return null;
- }
-}
diff --git a/vendor/drupal/console/src/Command/State/DeleteCommand.php b/vendor/drupal/console/src/Command/State/DeleteCommand.php
deleted file mode 100644
index a88cff279..000000000
--- a/vendor/drupal/console/src/Command/State/DeleteCommand.php
+++ /dev/null
@@ -1,114 +0,0 @@
-state = $state;
- $this->keyValue = $keyValue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('state:delete')
- ->setDescription($this->trans('commands.state.delete.description'))
- ->addArgument(
- 'name',
- InputArgument::OPTIONAL,
- $this->trans('commands.state.delete.arguments.name')
- )->setAliases(['std']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $name = $input->getArgument('name');
- if (!$name) {
- $names = array_keys($this->keyValue->get('state')->getAll());
- $name = $this->getIo()->choiceNoList(
- $this->trans('commands.state.delete.arguments.name'),
- $names
- );
- $input->setArgument('name', $name);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $name = $input->getArgument('name');
- if (!$name) {
- $this->getIo()->error($this->trans('commands.state.delete.messages.enter-name'));
-
- return 1;
- }
-
- if (!$this->state->get($name)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.state.delete.messages.state-not-exists'),
- $name
- )
- );
-
- return 1;
- }
-
- try {
- $this->state->delete($name);
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.state.delete.messages.deleted'),
- $name
- )
- );
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/State/OverrideCommand.php b/vendor/drupal/console/src/Command/State/OverrideCommand.php
deleted file mode 100644
index 50385ceba..000000000
--- a/vendor/drupal/console/src/Command/State/OverrideCommand.php
+++ /dev/null
@@ -1,133 +0,0 @@
-state = $state;
- $this->keyValue = $keyValue;
- parent::__construct();
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('state:override')
- ->setDescription($this->trans('commands.state.override.description'))
- ->addArgument(
- 'key',
- InputArgument::OPTIONAL,
- $this->trans('commands.state.override.arguments.key')
- )
- ->addArgument(
- 'value',
- InputArgument::OPTIONAL,
- $this->trans('commands.state.override.arguments.value')
- )->setAliases(['sto']);
- }
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $key = $input->getArgument('key');
- $value = $input->getArgument('value');
-
- if (!$key) {
- $names = array_keys($this->keyValue->get('state')->getAll());
- $key = $this->getIo()->choiceNoList(
- $this->trans('commands.state.override.arguments.key'),
- $names
- );
- $input->setArgument('key', $key);
- }
- if (!$value) {
- $value = $this->getIo()->ask(
- $this->trans('commands.state.override.arguments.value')
- );
- $input->setArgument('value', $value);
- }
- }
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $key = $input->getArgument('key');
- $value = $input->getArgument('value');
-
- if (!$key) {
- $this->getIo()->error($this->trans('commands.state.override.errors.no-key'));
-
- return 1;
- }
-
- if (!$value) {
- $this->getIo()->error($this->trans('commands.state.override.errors.no-value'));
-
- return 1;
- }
-
- if ($key && $value) {
- $originalValue = Yaml::encode($this->state->get($key));
- $overrideValue = is_array($value)?Yaml::encode($value):$value;
- $this->state->set($key, $overrideValue);
- $tableHeaders = [
- $this->trans('commands.state.override.messages.key'),
- $this->trans('commands.state.override.messages.original'),
- $this->trans('commands.state.override.messages.override')
- ];
-
- $tableRows[] = [$key, $originalValue, $overrideValue];
-
- $this->getIo()->table(
- $tableHeaders,
- $tableRows
- );
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Taxonomy/DeleteTermCommand.php b/vendor/drupal/console/src/Command/Taxonomy/DeleteTermCommand.php
deleted file mode 100644
index 4ec6b38d6..000000000
--- a/vendor/drupal/console/src/Command/Taxonomy/DeleteTermCommand.php
+++ /dev/null
@@ -1,140 +0,0 @@
-entityTypeManager = $entityTypeManager;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('taxonomy:term:delete')
- ->setDescription($this->trans('commands.taxonomy.term.delete.description'))
- ->addArgument(
- 'vid',
- InputArgument::REQUIRED
- )->setAliases(['ttd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $vid = $input->getArgument('vid');
-
- if ($vid === 'all') {
- $vid = $vid;
- } elseif (!in_array($vid, array_keys($this->getVocabularies()))) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.taxonomy.term.delete.messages.invalid-vocabulary'),
- $vid
- )
- );
- return;
- }
- $this->deleteExistingTerms($vid);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --vid argument
- $vid = $input->getArgument('vid');
- if (!$vid) {
- $vid = $this->getIo()->choiceNoList(
- $this->trans('commands.taxonomy.term.delete.vid'),
- array_keys($this->getVocabularies())
- );
- $input->setArgument('vid', $vid);
- }
- }
-
- /**
- * Destroy all existing terms
- *
- * @param $vid
- */
- private function deleteExistingTerms($vid = null)
- {
- $termStorage = $this->entityTypeManager->getStorage('taxonomy_term');
- //Load all vocabularies
- $vocabularies = $this->getVocabularies();
-
- if ($vid === 'all') {
- $vid = array_keys($vocabularies);
- } else {
- $vid = [$vid];
- }
-
- foreach ($vid as $item) {
- $vocabulary = $vocabularies[$item];
- $terms = $termStorage->loadTree($vocabulary->id());
-
- if (empty($terms)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.taxonomy.term.delete.messages.nothing'),
- $item
- )
- );
- } else {
- foreach ($terms as $term) {
- $treal = $termStorage->load($term->tid);
-
- if ($treal !== null) {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.taxonomy.term.delete.messages.processing'),
- $term->name
- )
- );
- $treal->delete();
- }
- }
- }
- }
- }
-
- private function getVocabularies()
- {
- return $this->entityTypeManager->getStorage('taxonomy_vocabulary')
- ->loadMultiple();
- }
-}
diff --git a/vendor/drupal/console/src/Command/Test/RunCommand.php b/vendor/drupal/console/src/Command/Test/RunCommand.php
deleted file mode 100644
index feefd6b93..000000000
--- a/vendor/drupal/console/src/Command/Test/RunCommand.php
+++ /dev/null
@@ -1,279 +0,0 @@
-appRoot = $appRoot;
- $this->test_discovery = $test_discovery;
- $this->moduleHandler = $moduleHandler;
- $this->dateFormatter = $dateFormatter;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('test:run')
- ->setDescription($this->trans('commands.test.run.description'))
- ->addArgument(
- 'test-class',
- InputArgument::REQUIRED,
- $this->trans('commands.test.run.arguments.test-class')
- )
- ->addArgument(
- 'test-methods',
- InputArgument::IS_ARRAY | InputArgument::OPTIONAL,
- $this->trans('commands.test.run.arguments.test-methods')
- )
- ->addOption(
- 'url',
- null,
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.test.run.arguments.url')
- )
- ->setAliases(['ter']);
- }
-
- /*
- * Set Server variable to be used in test cases.
- */
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- //Registers namespaces for disabled modules.
- $this->test_discovery->registerTestNamespaces();
-
- $testClass = $input->getArgument('test-class');
- $testMethods = $input->getArgument('test-methods');
-
- $url = $input->getOption('url');
-
- if (!$url) {
- $this->getIo()->error($this->trans('commands.test.run.messages.url-required'));
- return null;
- }
-
- $this->setEnvironment($url);
-
- // Create simpletest test id
- $testId = db_insert('simpletest_test_id')
- ->useDefaults(['test_id'])
- ->execute();
-
- if (is_subclass_of($testClass, 'PHPUnit_Framework_TestCase')) {
- $this->getIo()->info($this->trans('commands.test.run.messages.phpunit-pending'));
- return null;
- } else {
- if (!class_exists($testClass)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.test.run.messages.invalid-class'),
- $testClass
- )
- );
-
- return 1;
- }
-
- $test = new $testClass($testId);
- $this->getIo()->info($this->trans('commands.test.run.messages.starting-test'));
- Timer::start('run-tests');
-
- $test->run($testMethods);
-
- $end = Timer::stop('run-tests');
-
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.test-duration') . ': ' . $this->dateFormatter->formatInterval($end['time'] / 1000)
- );
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.test-pass') . ': ' . $test->results['#pass']
- );
- $this->getIo()->commentBlock(
- $this->trans('commands.test.run.messages.test-fail') . ': ' . $test->results['#fail']
- );
- $this->getIo()->commentBlock(
- $this->trans('commands.test.run.messages.test-exception') . ': ' . $test->results['#exception']
- );
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.test-debug') . ': ' . $test->results['#debug']
- );
-
- $this->moduleHandler->invokeAll(
- 'test_finished',
- [$test->results]
- );
-
- $this->getIo()->newLine();
- $this->getIo()->info($this->trans('commands.test.run.messages.test-summary'));
- $this->getIo()->newLine();
-
- $currentClass = null;
- $currentGroup = null;
- $currentStatus = null;
-
- $messages = $this->simpletestScriptLoadMessagesByTestIds([$testId]);
-
- foreach ($messages as $message) {
- if ($currentClass === null || $currentClass != $message->test_class) {
- $currentClass = $message->test_class;
- $this->getIo()->comment($message->test_class);
- }
-
- if ($currentGroup === null || $currentGroup != $message->message_group) {
- $currentGroup = $message->message_group;
- }
-
- if ($currentStatus === null || $currentStatus != $message->status) {
- $currentStatus = $message->status;
- if ($message->status == 'fail') {
- $this->getIo()->error($this->trans('commands.test.run.messages.group') . ':' . $message->message_group . ' ' . $this->trans('commands.test.run.messages.status') . ':' . $message->status);
- $this->getIo()->newLine();
- } else {
- $this->getIo()->info($this->trans('commands.test.run.messages.group') . ':' . $message->message_group . ' ' . $this->trans('commands.test.run.messages.status') . ':' . $message->status);
- $this->getIo()->newLine();
- }
- }
-
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.file') . ': ' . str_replace($this->appRoot, '', $message->file)
- );
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.method') . ': ' . $message->function
- );
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.line') . ': ' . $message->line
- );
- $this->getIo()->simple(
- $this->trans('commands.test.run.messages.message') . ': ' . $message->message
- );
- $this->getIo()->newLine();
- }
- return null;
- }
- }
-
- protected function setEnvironment($url)
- {
- $base_url = 'http://';
- $port = '80';
-
- $parsed_url = parse_url($url);
- $host = $parsed_url['host'] . (isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '');
- $path = isset($parsed_url['path']) ? rtrim(rtrim($parsed_url['path']), '/') : '';
- $port = (isset($parsed_url['port']) ? $parsed_url['port'] : $port);
- if ($path == '/') {
- $path = '';
- }
- // If the passed URL schema is 'https' then setup the $_SERVER variables
- // properly so that testing will run under HTTPS.
- if ($parsed_url['scheme'] == 'https') {
- $_SERVER['HTTPS'] = 'on';
- }
-
-
- if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {
- $base_url = 'https://';
- }
- $base_url .= $host;
- if ($path !== '') {
- $base_url .= $path;
- }
- putenv('SIMPLETEST_BASE_URL=' . $base_url);
- $_SERVER['HTTP_HOST'] = $host;
- $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
- $_SERVER['SERVER_ADDR'] = '127.0.0.1';
- $_SERVER['SERVER_PORT'] = $port;
- $_SERVER['SERVER_SOFTWARE'] = null;
- $_SERVER['SERVER_NAME'] = 'localhost';
- $_SERVER['REQUEST_URI'] = $path . '/';
- $_SERVER['REQUEST_METHOD'] = 'GET';
- $_SERVER['SCRIPT_NAME'] = $path . '/index.php';
- $_SERVER['SCRIPT_FILENAME'] = $path . '/index.php';
- $_SERVER['PHP_SELF'] = $path . '/index.php';
- $_SERVER['HTTP_USER_AGENT'] = 'Drupal Console';
- }
-
- /*
- * Get Simletests log after execution
- */
-
- protected function simpletestScriptLoadMessagesByTestIds($test_ids)
- {
- $results = [];
-
- foreach ($test_ids as $test_id) {
- $result = \Drupal::database()->query(
- "SELECT * FROM {simpletest} WHERE test_id = :test_id ORDER BY test_class, message_group, status", [
- ':test_id' => $test_id,
- ]
- )->fetchAll();
- if ($result) {
- $results = array_merge($results, $result);
- }
- }
-
- return $results;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Theme/DownloadCommand.php b/vendor/drupal/console/src/Command/Theme/DownloadCommand.php
deleted file mode 100644
index 9e77211e9..000000000
--- a/vendor/drupal/console/src/Command/Theme/DownloadCommand.php
+++ /dev/null
@@ -1,125 +0,0 @@
-drupalApi = $drupalApi;
- $this->httpClient = $httpClient;
- $this->appRoot = $appRoot;
- parent::__construct();
- }
-
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('theme:download')
- ->setDescription($this->trans('commands.theme.download.description'))
- ->addArgument(
- 'theme',
- InputArgument::REQUIRED,
- $this->trans('commands.theme.download.arguments.theme')
- )
- ->addArgument(
- 'version',
- InputArgument::OPTIONAL,
- $this->trans('commands.theme.download.arguments.version')
- )
- ->addOption(
- 'composer',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.theme.download.options.composer')
- )->setAliases(['thd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $theme = $input->getArgument('theme');
- $version = $input->getArgument('version');
- $composer = $input->getOption('composer');
-
- if ($composer) {
- if (!is_array($theme)) {
- $theme = [$theme];
- }
- $this->get('chain_queue')->addCommand(
- 'module:download',
- [
- 'module' => $theme,
- '--composer' => true
- ],
- true,
- true
- );
- } else {
- $this->downloadProject($theme, $version, 'theme');
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $theme = $input->getArgument('theme');
- $version = $input->getArgument('version');
- $composer = $input->getOption('composer');
-
- if (!$version && !$composer) {
- $version = $this->releasesQuestion($theme);
- $input->setArgument('version', $version);
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/Theme/InstallCommand.php b/vendor/drupal/console/src/Command/Theme/InstallCommand.php
deleted file mode 100644
index a63acc79f..000000000
--- a/vendor/drupal/console/src/Command/Theme/InstallCommand.php
+++ /dev/null
@@ -1,100 +0,0 @@
-setName('theme:install')
- ->setDescription($this->trans('commands.theme.install.description'))
- ->addArgument(
- 'theme',
- InputArgument::IS_ARRAY,
- $this->trans('commands.theme.install.options.theme')
- )
- ->addOption(
- 'set-default',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.theme.install.options.set-default')
- )->setAliases(['thi']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $titleTranslatableString = 'commands.theme.install.messages.disabled-themes';
- $questionTranslatableString = 'commands.theme.install.questions.theme';
- $autocompleteAvailableThemes = $this->getAutoCompleteList();
- $this->getThemeArgument($titleTranslatableString, $questionTranslatableString, $autocompleteAvailableThemes);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $config = $this->configFactory->getEditable('system.theme');
-
- $this->themeHandler->refreshInfo();
- $theme = $input->getArgument('theme');
- $default = $input->getOption('set-default');
-
- if ($default && count($theme) > 1) {
- $this->getIo()->error($this->trans('commands.theme.install.messages.invalid-theme-default'));
-
- return 1;
- }
-
- $this->prepareThemesArrays($theme);
- if (count($this->getUninstalledThemes()) > 0) {
- try {
- if ($this->themeHandler->install($theme)) {
- if (count($this->getUninstalledThemes()) > 1) {
- $this->setInfoMessage('commands.theme.install.messages.themes-success', $this->getUninstalledThemes());
- } else {
- if ($default) {
- // Set the default theme.
- $config->set('default', $theme[0])->save();
- $this->setInfoMessage('commands.theme.install.messages.theme-default-success', array_shift($this->getUninstalledThemes()));
- } else {
- $this->setInfoMessage('commands.theme.install.messages.theme-success', array_shift($this->getUninstalledThemes()));
- }
- }
- }
- } catch (UnmetDependenciesException $e) {
- $this->setErrorMessage('commands.theme.install.messages.dependencies', $theme);
- return 1;
- }
- } elseif (empty($this->getUninstalledThemes()) && count($this->getAvailableThemes()) > 0) {
- if (count($this->getAvailableThemes()) > 1) {
- $this->setInfoMessage('commands.theme.install.messages.themes-nothing', $this->getAvailableThemes());
- } else {
- $this->setInfoMessage('commands.theme.install.messages.theme-nothing', $this->getAvailableThemes());
- }
- } else {
- if (count($this->getUnavailableThemes()) > 1) {
- $this->setErrorMessage('commands.theme.install.messages.themes-missing', $this->getUnavailableThemes());
- } else {
- $this->setErrorMessage('commands.theme.install.messages.themes-missing', $this->getUnavailableThemes());
- }
- }
-
- // Run cache rebuild to see changes in Web UI
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Theme/PathCommand.php b/vendor/drupal/console/src/Command/Theme/PathCommand.php
deleted file mode 100644
index 05501731e..000000000
--- a/vendor/drupal/console/src/Command/Theme/PathCommand.php
+++ /dev/null
@@ -1,103 +0,0 @@
-extensionManager = $extensionManager;
- $this->themeHandler = $themeHandler;
- parent::__construct();
- }
-
- protected function configure()
- {
- $this
- ->setName('theme:path')
- ->setDescription($this->trans('commands.theme.path.description'))
- ->addArgument(
- 'theme',
- InputArgument::REQUIRED,
- $this->trans('commands.theme.path.arguments.theme')
- )
- ->addOption(
- 'absolute',
- null,
- InputOption::VALUE_NONE,
- $this->trans('commands.theme.path.options.absolute')
- )->setAliases(['thp']);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $theme = $input->getArgument('theme');
-
- $fullPath = $input->getOption('absolute');
-
- if (!in_array($theme, $this->getThemeList())) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.theme.path.messages.invalid-theme-name'),
- $theme
- )
- );
- return;
- }
- $theme = $this->extensionManager->getTheme($theme);
-
- $this->getIo()->info(
- $theme->getPath($fullPath)
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- // --theme argument
- $theme = $input->getArgument('theme');
- if (!$theme) {
- $theme = $this->getIo()->choiceNoList(
- $this->trans('commands.theme.path.arguments.theme'),
- $this->getThemeList()
- );
- $input->setArgument('theme', $theme);
- }
- }
-
- protected function getThemeList()
- {
- return array_keys($this->themeHandler->rebuildThemeData());
- }
-}
diff --git a/vendor/drupal/console/src/Command/Theme/ThemeBaseCommand.php b/vendor/drupal/console/src/Command/Theme/ThemeBaseCommand.php
deleted file mode 100644
index eb3c1e976..000000000
--- a/vendor/drupal/console/src/Command/Theme/ThemeBaseCommand.php
+++ /dev/null
@@ -1,286 +0,0 @@
-configFactory = $configFactory;
- $this->themeHandler = $themeHandler;
- $this->chainQueue = $chainQueue;
- $this->themes = $this->themeHandler->rebuildThemeData();
- parent::__construct();
- }
-
- /**
- * Gets the list of themes available on the website.
- *
- * @return array themes from site.
- */
- public function getThemes()
- {
- return $this->themes;
- }
-
- /**
- * Gets unavailable themes.
- *
- * @return array
- * Available themes from input.
- */
- public function getAvailableThemes()
- {
- return $this->availableThemes;
- }
-
- /**
- * Gets unavailable themes.
- *
- * @return array
- * Unavailable themes from input.
- */
- public function getUnavailableThemes()
- {
- return $this->unavailableThemes;
- }
-
- /**
- * Gets uninstalled themes.
- *
- * @return array
- * Uninstalled themes from input.
- */
- public function getUninstalledThemes()
- {
- return $this->uninstalledThemes;
- }
-
- /**
- * Adds available theme.
- *
- * @param string $themeMachineName
- * Theme machine name.
- * @param string $themeName
- * Theme name.
- */
- public function addAvailableTheme($themeMachineName, $themeName)
- {
- $this->availableThemes[$themeMachineName] = $themeName;
- }
-
- /**
- * Adds unavailable theme.
- *
- * @param string $themeMachineName
- * Theme machine name.
- * @param string $themeName
- * Theme name.
- */
- public function addUnavailableTheme($themeMachineName, $themeName)
- {
- $this->unavailableThemes[$themeMachineName] = $themeName;
- }
-
- /**
- * Adds uninstall theme.
- *
- * @param string $themeMachineName
- * Theme machine name.
- * @param string $themeName
- * Theme name.
- */
- public function addUninstalledTheme($themeMachineName, $themeName)
- {
- $this->uninstalledThemes[$themeMachineName] = $themeName;
- }
-
- /**
- * Prepare theme arrays: available, unavailable, uninstalled.
- *
- * @param array $themes
- * Themes passed from a user.
- */
- protected function prepareThemesArrays($themes)
- {
- $siteThemes = $this->getThemes();
- foreach ($themes as $themeName) {
- if (isset($siteThemes[$themeName]) && $siteThemes[$themeName]->status == 1) {
- $this->addAvailableTheme($themeName, $siteThemes[$themeName]->info['name']);
- } elseif (isset($siteThemes[$themeName]) && $siteThemes[$themeName]->status == 0) {
- $this->addUninstalledTheme($themeName, $siteThemes[$themeName]->info['name']);
- } else {
- $this->addUnavailableTheme($themeName, $themeName);
- }
- }
- }
-
- /**
- * Gets list of themes for autocomplete based on status.
- *
- * @param int $status
- * Status of the themes.
- *
- * @return array
- * Themes list.
- */
- protected function getAutocompleteList($status = 1)
- {
- $theme_list = [];
- foreach ($this->getThemes() as $theme_id => $theme) {
- if (!empty($theme->info['hidden'])) {
- continue;
- }
-
- if (!empty($theme->status == $status)) {
- continue;
- }
- $theme_list[$theme_id] = $theme->getName();
- }
-
- return $theme_list;
- }
-
- /**
- * Sets message of type 'info'.
- *
- * @param string $translationString
- * String which will be replaced with translation.
- * @param string $value
- * The value to be include into the string.
- */
- protected function setInfoMessage($translationString, $value)
- {
- $this->setMessage('info', $translationString, $value);
- }
-
- /**
- * Sets message of type 'error'.
- *
- * @param string $translationString
- * String which will be replaced with translation.
- * @param string $value
- * The value to be include into the string.
- */
- protected function setErrorMessage($translationString, $value)
- {
- $this->setMessage('error', $translationString, $value);
- }
-
- /**
- * Sets message in Drupal Console.
- *
- * @param string $type
- * Type of the message: info, error and etc.
- * @param string $translationString
- * String which will be replaced with translation.
- * @param string $value
- * The value to be include into the string.
- */
- protected function setMessage($type, $translationString, $value)
- {
- $text = is_array($value) ? implode(',', $value) : $value;
- $this->getIo()->{$type}(
- sprintf(
- $this->trans($translationString),
- $text
- )
- );
- }
-
-
- /**
- * @param string $title
- * @param string $question
- * @param array $theme_list
- */
- protected function getThemeArgument($title, $question, $theme_list) {
- $input = $this->getIo()->getInput();
- $theme = $input->getArgument('theme');
-
- if (!$theme) {
- $this->getIo()->info($this->trans($title));
- $theme_list_install = [];
- while (TRUE) {
- $theme_name = $this->getIo()->choiceNoList(
- $this->trans($question),
- array_keys($theme_list),
- '',
- TRUE
- );
-
- if (empty($theme_name) || is_numeric($theme_name)) {
- break;
- }
-
- $theme_list_install[] = $theme_name;
-
- if (array_search($theme_name, $theme_list_install, TRUE) >= 0) {
- unset($theme_list[$theme_name]);
- }
- }
- }
- }
-
-}
diff --git a/vendor/drupal/console/src/Command/Theme/UninstallCommand.php b/vendor/drupal/console/src/Command/Theme/UninstallCommand.php
deleted file mode 100644
index e4574e872..000000000
--- a/vendor/drupal/console/src/Command/Theme/UninstallCommand.php
+++ /dev/null
@@ -1,92 +0,0 @@
-setName('theme:uninstall')
- ->setDescription($this->trans('commands.theme.uninstall.description'))
- ->addArgument(
- 'theme',
- InputArgument::IS_ARRAY,
- $this->trans('commands.theme.uninstall.options.theme')
- )
- ->setAliases(['thu']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $titleTranslatableString = 'commands.theme.uninstall.messages.installed-themes';
- $questionTranslatableString = 'commands.theme.uninstall.questions.theme';
- $autocompleteAvailableThemes = $this->getAutoCompleteList(0);
- $this->getThemeArgument($titleTranslatableString, $questionTranslatableString, $autocompleteAvailableThemes);
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $config = $this->configFactory->getEditable('system.theme');
- $this->themeHandler->refreshInfo();
- $theme = $input->getArgument('theme');
- $this->prepareThemesArrays($theme);
-
- if (count($this->getAvailableThemes()) > 0) {
- try {
- foreach ($this->getAvailableThemes() as $themeKey => $themeName) {
- if ($themeKey === $config->get('default')) {
- $this->setInfoMessage('commands.theme.uninstall.messages.error-default-theme', $this->getAvailableThemes());
- return 1;
- }
-
- if ($themeKey === $config->get('admin')) {
- $this->setErrorMessage('commands.theme.uninstall.messages.error-admin-theme', $this->getAvailableThemes());
- return 1;
- }
- }
-
- $this->themeHandler->uninstall($theme);
-
- if (count($this->getAvailableThemes()) > 1) {
- $this->setInfoMessage('commands.theme.uninstall.messages.themes-success', $this->getAvailableThemes());
- } else {
- $this->setInfoMessage('commands.theme.uninstall.messages.theme-success', array_shift($this->getAvailableThemes()));
- }
- } catch (UnmetDependenciesException $e) {
- $this->setErrorMessage('commands.theme.uninstall.messages.dependencies', $this->getMessage());
- return 1;
- }
- } elseif (empty($this->getAvailableThemes()) && count($this->getUninstalledThemes()) > 0) {
- if (count($this->getUninstalledThemes()) > 1) {
- $this->setInfoMessage('commands.theme.uninstall.messages.themes-nothing', $this->getUninstalledThemes());
- } else {
- $this->setInfoMessage('commands.theme.uninstall.messages.theme-nothing', $this->getUninstalledThemes());
- }
- } else {
- if (count($this->getUnavailableThemes()) > 1) {
- $this->setErrorMessage('commands.theme.uninstall.messages.themes-missing', $this->getUnavailableThemes());
- } else {
- $this->setErrorMessage('commands.theme.uninstall.messages.theme-missing', $this->getUnavailableThemes());
- }
- }
-
- // Run cache rebuild to see changes in Web UI
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Update/EntitiesCommand.php b/vendor/drupal/console/src/Command/Update/EntitiesCommand.php
deleted file mode 100644
index f77fbad13..000000000
--- a/vendor/drupal/console/src/Command/Update/EntitiesCommand.php
+++ /dev/null
@@ -1,96 +0,0 @@
-state = $state;
- $this->entityDefinitionUpdateManager = $entityDefinitionUpdateManager;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('update:entities')
- ->setDescription($this->trans('commands.update.entities.description'))
- ->setAliases(['upe']);
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- //$state = $this->getDrupalService('state');
- $this->getIo()->info($this->trans('commands.site.maintenance.messages.maintenance-on'));
- $this->getIo()->info($this->trans('commands.update.entities.messages.start'));
- $this->state->set('system.maintenance_mode', true);
-
- try {
- $this->entityDefinitionUpdateManager->applyUpdates();
- /* @var EntityStorageException $e */
- } catch (EntityStorageException $e) {
- /* @var Error $variables */
- $variables = Error::decodeException($e);
- $this->getIo()->errorLite($this->trans('commands.update.entities.messages.error'));
- $this->getIo()->error(strtr('%type: @message in %function (line %line of %file).', $variables));
- }
-
- $this->state->set('system.maintenance_mode', false);
- $this->getIo()->info($this->trans('commands.update.entities.messages.end'));
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
- $this->getIo()->info($this->trans('commands.site.maintenance.messages.maintenance-off'));
- }
-}
diff --git a/vendor/drupal/console/src/Command/Update/ExecuteCommand.php b/vendor/drupal/console/src/Command/Update/ExecuteCommand.php
deleted file mode 100644
index 90a91072d..000000000
--- a/vendor/drupal/console/src/Command/Update/ExecuteCommand.php
+++ /dev/null
@@ -1,344 +0,0 @@
-site = $site;
- $this->state = $state;
- $this->moduleHandler = $moduleHandler;
- $this->postUpdateRegistry = $postUpdateRegistry;
- $this->extensionManager = $extensionManager;
- $this->chainQueue = $chainQueue;
- parent::__construct();
- }
-
- /**
- * @inheritdoc
- */
- protected function configure()
- {
- $this
- ->setName('update:execute')
- ->setDescription($this->trans('commands.update.execute.description'))
- ->addArgument(
- 'module',
- InputArgument::OPTIONAL,
- $this->trans('commands.common.options.module'),
- 'all'
- )
- ->addArgument(
- 'update-n',
- InputArgument::OPTIONAL,
- $this->trans('commands.update.execute.options.update-n'),
- '9000'
- )
- ->setAliases(['upex']);
- }
-
- /**
- * @inheritdoc
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->module = $input->getArgument('module');
- $this->update_n = (int)$input->getArgument('update-n');
-
- $this->site->loadLegacyFile('/core/includes/install.inc');
- $this->site->loadLegacyFile('/core/includes/update.inc');
-
- drupal_load_updates();
- update_fix_compatibility();
-
- $start = $this->getUpdates($this->module!=='all'?$this->module:null);
- $updates = update_resolve_dependencies($start);
- $dependencyMap = [];
- foreach ($updates as $function => $update) {
- $dependencyMap[$function] = !empty($update['reverse_paths']) ? array_keys($update['reverse_paths']) : [];
- }
-
- if (!$this->checkUpdates($start, $updates)) {
- if ($this->module === 'all') {
- $this->getIo()->warning(
- sprintf(
- $this->trans(
- 'commands.update.execute.messages.no-pending-updates'
- )
- )
- );
- } else {
- $this->getIo()->warning(
- sprintf(
- $this->trans(
- 'commands.update.execute.messages.no-module-updates'
- ),
- $this->module
- )
- );
- }
-
- return 0;
- }
-
- $maintenanceMode = $this->state->get('system.maintenance_mode', false);
-
- if (!$maintenanceMode) {
- $this->getIo()->info($this->trans('commands.site.maintenance.description'));
- $this->state->set('system.maintenance_mode', true);
- }
-
- try {
- $this->runUpdates(
- $updates
- );
-
- // Post Updates are only safe to run after all schemas have been updated.
- if (!$this->getUpdates()) {
- $this->runPostUpdates();
- }
- } catch (\Exception $e) {
- watchdog_exception('update', $e);
- $this->getIo()->error($e->getMessage());
- return 1;
- }
-
- if (!$maintenanceMode) {
- $this->state->set('system.maintenance_mode', false);
- $this->getIo()->info($this->trans('commands.site.maintenance.messages.maintenance-off'));
- }
-
- if (!$this->getUpdates()) {
- $this->chainQueue->addCommand('update:entities');
- }
-
- $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
-
- return 0;
- }
-
- /**
- * @param array $start
- * @param array $updates
- *
- * @return bool true if the selected module/update number exists.
- */
- private function checkUpdates(
- array $start,
- array $updates
- ) {
- if (!$start || !$updates) {
- return false;
- }
-
- if ($this->module !== 'all') {
- $module = $this->module;
- $hooks = array_keys($updates);
- $hooks = array_map(
- function ($v) use ($module) {
- return (int)str_replace(
- $module.'_update_',
- '',
- $v
- );
- },
- $hooks
- );
-
- if ((int)min($hooks) > (int)$this->update_n) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * @param array $updates
- */
- private function runUpdates(
- array $updates
- ) {
- $this->getIo()->info(
- $this->trans('commands.update.execute.messages.executing-required-previous-updates')
- );
-
- foreach ($updates as $function => $update) {
- if (!$update['allowed']) {
- continue;
- }
-
- if ($this->module !== 'all' && $update['number'] > $this->update_n) {
- break;
- }
-
- $this->getIo()->comment(
- sprintf(
- $this->trans('commands.update.execute.messages.executing-update'),
- $update['number'],
- $update['module']
- )
- );
-
- $this->moduleHandler->loadInclude($update['module'], 'install');
-
- $this->executeUpdate(
- $function,
- $context
- );
-
- drupal_set_installed_schema_version(
- $update['module'],
- $update['number']
- );
- }
- }
-
- /**
- * @return bool
- */
- private function runPostUpdates()
- {
- $postUpdates = $this->postUpdateRegistry->getPendingUpdateInformation();
- foreach ($postUpdates as $module => $updates) {
- foreach ($updates['pending'] as $updateName => $update) {
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.update.execute.messages.executing-update'),
- $updateName,
- $module
- )
- );
-
- $function = sprintf(
- '%s_post_update_%s',
- $module,
- $updateName
- );
- drupal_flush_all_caches();
- $this->executeUpdate(
- $function,
- $context
- );
- $this->postUpdateRegistry->registerInvokedUpdates([$function]);
- }
- }
-
- return true;
- }
-
- protected function getUpdates($module = null)
- {
- $start = $this->getUpdateList();
- if ($module) {
- if (isset($start[$module])) {
- $start = [
- $module => $start[$module]
- ];
- } else {
- $start = [];
- }
- }
-
- return $start;
- }
-
- // Copy of protected \Drupal\system\Controller\DbUpdateController::getModuleUpdates.
- protected function getUpdateList()
- {
- $start = [];
- $updates = update_get_update_list();
- foreach ($updates as $module => $update) {
- $start[$module] = $update['start'];
- }
-
- return $start;
- }
-
- private function executeUpdate($function, &$context)
- {
- if (!$context || !array_key_exists('sandbox', $context)) {
- $context['sandbox'] = [];
- }
-
- if (function_exists($function)) {
- $function($context['sandbox']);
- }
-
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/CreateCommand.php b/vendor/drupal/console/src/Command/User/CreateCommand.php
deleted file mode 100644
index 10e47cadf..000000000
--- a/vendor/drupal/console/src/Command/User/CreateCommand.php
+++ /dev/null
@@ -1,268 +0,0 @@
-database = $database;
- $this->entityTypeManager = $entityTypeManager;
- $this->dateFormatter = $dateFormatter;
- $this->drupalApi = $drupalApi;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('user:create')
- ->setDescription($this->trans('commands.user.create.description'))
- ->setHelp($this->trans('commands.user.create.help'))
- ->addArgument(
- 'username',
- InputArgument::OPTIONAL,
- $this->trans('commands.user.create.options.username')
- )
- ->addArgument(
- 'password',
- InputArgument::OPTIONAL,
- $this->trans('commands.user.create.options.password')
- )
- ->addOption(
- 'roles',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.user.create.options.roles')
- )
- ->addOption(
- 'email',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.user.create.options.email')
- )
- ->addOption(
- 'status',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.user.create.options.status')
- )->setAliases(['uc']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $username = $input->getArgument('username');
- $password = $input->getArgument('password');
- $roles = $input->getOption('roles');
- $email = $input->getOption('email');
- $status = $input->getOption('status');
-
- $user = $this->createUser(
- $username,
- $password,
- $roles,
- $email,
- $status
- );
-
- $tableHeader = ['Field', 'Value'];
-
- $tableFields = [
- $this->trans('commands.user.create.messages.user-id'),
- $this->trans('commands.user.create.messages.username'),
- $this->trans('commands.user.create.messages.password'),
- $this->trans('commands.user.create.messages.email'),
- $this->trans('commands.user.create.messages.roles'),
- $this->trans('commands.user.create.messages.created'),
- $this->trans('commands.user.create.messages.status'),
- ];
-
- if ($user['success']) {
- $tableData = array_map(
- function ($field, $value) {
- return [$field, $value];
- },
- $tableFields,
- $user['success']
- );
-
- $this->getIo()->table($tableHeader, $tableData);
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.create.messages.user-created'),
- $user['success']['username']
- )
- );
-
- return 0;
- }
-
- if ($user['error']) {
- $this->getIo()->error($user['error']['error']);
-
- return 1;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $username = $input->getArgument('username');
- if (!$username) {
- $username = $this->getIo()->ask(
- $this->trans('commands.user.create.questions.username')
- );
-
- $input->setArgument('username', $username);
- }
-
- $password = $input->getArgument('password');
- if (!$password) {
- $password = $this->getIo()->askEmpty(
- $this->trans('commands.user.create.questions.password')
- );
-
- $input->setArgument('password', $password);
- }
-
- $roles = $input->getOption('roles');
- if (!$roles) {
- $systemRoles = $this->drupalApi->getRoles(false, false, false);
- $roles = $this->getIo()->choice(
- $this->trans('commands.user.create.questions.roles'),
- array_values($systemRoles),
- null,
- true
- );
-
- $roles = array_map(
- function ($role) use ($systemRoles) {
- return array_search($role, $systemRoles);
- },
- $roles
- );
-
- $input->setOption('roles', $roles);
- }
-
- $email = $input->getOption('email');
- if (!$email) {
- $email = $this->getIo()->askEmpty(
- $this->trans('commands.user.create.questions.email')
- );
-
- $input->setOption('email', $email);
- }
-
- $status = $input->getOption('status');
- if (!$status) {
- $status = $this->getIo()->choice(
- $this->trans('commands.user.create.questions.status'),
- [0, 1],
- 1
- );
-
- $input->setOption('status', $status);
- }
- }
-
- private function createUser($username, $password, $roles, $email = null, $status = null)
- {
- $user = User::create(
- [
- 'name' => $username,
- 'mail' => $email ?: $username . '@example.com',
- 'pass' => $password?:user_password(),
- 'status' => $status,
- 'roles' => $roles,
- 'created' => REQUEST_TIME,
- ]
- );
-
- $result = [];
-
- try {
- $user->save();
-
- $result['success'] = [
- 'user-id' => $user->id(),
- 'username' => $user->getUsername(),
- 'password' => $password,
- 'email' => $user->getEmail(),
- 'roles' => implode(', ', $roles),
- 'created' => $this->dateFormatter->format(
- $user->getCreatedTime(),
- 'custom',
- 'Y-m-d h:i:s'
- ),
- 'status' => $status
-
- ];
- } catch (\Exception $e) {
- $result['error'] = [
- 'vid' => $user->id(),
- 'name' => $user->get('name'),
- 'error' => 'Error: ' . get_class($e) . ', code: ' . $e->getCode() . ', message: ' . $e->getMessage()
- ];
- }
-
- return $result;
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/DeleteCommand.php b/vendor/drupal/console/src/Command/User/DeleteCommand.php
deleted file mode 100644
index 15f391587..000000000
--- a/vendor/drupal/console/src/Command/User/DeleteCommand.php
+++ /dev/null
@@ -1,196 +0,0 @@
-entityQuery = $entityQuery;
- $this->drupalApi = $drupalApi;
- parent::__construct($entityTypeManager);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('user:delete')
- ->setDescription($this->trans('commands.user.delete.description'))
- ->addOption(
- 'user',
- null,
- InputOption::VALUE_OPTIONAL,
- $this->trans('commands.user.delete.options.user')
- )
- ->addOption(
- 'roles',
- null,
- InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
- $this->trans('commands.user.delete.options.roles')
- )->setAliases(['ud']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $user = $this->getUserOption();
-
- $roles = $input->getOption('roles');
-
- if (!$user && !$roles) {
- $systemRoles = $this->drupalApi->getRoles(false, false, false);
- $roles = $this->getIo()->choice(
- $this->trans('commands.user.delete.questions.roles'),
- array_values($systemRoles),
- null,
- true
- );
-
- $roles = array_map(
- function ($role) use ($systemRoles) {
- return array_search($role, $systemRoles);
- },
- $roles
- );
-
- $input->setOption('roles', $roles);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $user = $input->getOption('user');
-
- if ($user) {
- $userEntity = $this->getUserEntity($user);
- if (!$userEntity) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.user.delete.errors.invalid-user'),
- $user
- )
- );
-
- return 1;
- }
-
- if ($userEntity->id() <= 1) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.user.delete.errors.invalid-user'),
- $user
- )
- );
-
- return 1;
- }
-
- try {
- $userEntity->delete();
- $this->getIo()->info(
- sprintf(
- $this->trans('commands.user.delete.messages.user-deleted'),
- $userEntity->getUsername()
- )
- );
-
- return 0;
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
- }
-
- $roles = $input->getOption('roles');
-
- if ($roles) {
- $roles = is_array($roles)?$roles:[$roles];
-
- $query = $this->entityQuery
- ->get('user')
- ->condition('roles', array_values($roles), 'IN')
- ->condition('uid', 1, '>');
- $results = $query->execute();
-
- $users = $this->entityTypeManager
- ->getStorage('user')
- ->loadMultiple($results);
-
- $tableHeader = [
- $this->trans('commands.user.debug.messages.user-id'),
- $this->trans('commands.user.debug.messages.username'),
- ];
-
- $tableRows = [];
- foreach ($users as $user => $userEntity) {
- try {
- $userEntity->delete();
- $tableRows['success'][] = [$user, $userEntity->getUsername()];
- } catch (\Exception $e) {
- $tableRows['error'][] = [$user, $userEntity->getUsername()];
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
- }
-
- if ($tableRows['success']) {
- $this->getIo()->table($tableHeader, $tableRows['success']);
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.delete.messages.users-deleted'),
- count($tableRows['success'])
- )
- );
-
- return 0;
- }
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/LoginCleanAttemptsCommand.php b/vendor/drupal/console/src/Command/User/LoginCleanAttemptsCommand.php
deleted file mode 100644
index b8c3a40ef..000000000
--- a/vendor/drupal/console/src/Command/User/LoginCleanAttemptsCommand.php
+++ /dev/null
@@ -1,114 +0,0 @@
-database = $database;
- parent::__construct($entityTypeManager);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this->
- setName('user:login:clear:attempts')
- ->setDescription($this->trans('commands.user.login.clear.attempts.description'))
- ->setHelp($this->trans('commands.user.login.clear.attempts.help'))
- ->addArgument(
- 'user',
- InputArgument::REQUIRED,
- $this->trans('commands.user.login.clear.attempts.arguments.user')
- )
- ->setAliases(['ulca']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->getUserArgument();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $user = $input->getArgument('user');
- $userEntity = $this->getUserEntity($user);
-
- if (!$userEntity) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.user.login.clear.attempts.errors.invalid-user'),
- $user
- )
- );
-
- return 1;
- }
-
- // Define event name and identifier.
- $event = 'user.failed_login_user';
- // Identifier is created by uid and IP address,
- // Then we defined a generic identifier.
- $identifier = "{$userEntity->id()}-";
-
- // Retrieve current database connection.
- $schema = $this->database->schema();
- $flood = $schema->findTables('flood');
-
- if (!$flood) {
- $this->getIo()->error(
- $this->trans('commands.user.login.clear.attempts.errors.no-flood')
- );
-
- return 1;
- }
-
- // Clear login attempts.
- $this->database->delete('flood')
- ->condition('event', $event)
- ->condition('identifier', $this->database->escapeLike($identifier) . '%', 'LIKE')
- ->execute();
-
- // Command executed successful.
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.login.clear.attempts.messages.successful'),
- $userEntity->getUsername()
- )
- );
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/LoginUrlCommand.php b/vendor/drupal/console/src/Command/User/LoginUrlCommand.php
deleted file mode 100644
index f67eb84ee..000000000
--- a/vendor/drupal/console/src/Command/User/LoginUrlCommand.php
+++ /dev/null
@@ -1,89 +0,0 @@
-setName('user:login:url')
- ->setDescription($this->trans('commands.user.login.url.description'))
- ->addArgument(
- 'user',
- InputArgument::REQUIRED,
- $this->trans('commands.user.login.url.options.user'),
- null
- )
- ->setAliases(['ulu']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->getUserArgument();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $user = $input->getArgument('user');
- $userEntity = $this->getUserEntity($user);
-
- if (!$userEntity) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.user.login.url.errors.invalid-user'),
- $user
- )
- );
-
- return 1;
- }
-
- $url = user_pass_reset_url($userEntity) . '/login';
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.login.url.messages.url'),
- $userEntity->getUsername()
- )
- );
-
- $this->getIo()->simple($url);
- $this->getIo()->newLine();
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/PasswordHashCommand.php b/vendor/drupal/console/src/Command/User/PasswordHashCommand.php
deleted file mode 100644
index 795e005ad..000000000
--- a/vendor/drupal/console/src/Command/User/PasswordHashCommand.php
+++ /dev/null
@@ -1,88 +0,0 @@
-password = $password;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('user:password:hash')
- ->setDescription($this->trans('commands.user.password.hash.description'))
- ->setHelp($this->trans('commands.user.password.hash.help'))
- ->addArgument(
- 'password',
- InputArgument::IS_ARRAY,
- $this->trans('commands.user.password.hash.options.password')
- )
- ->setAliases(['uph']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $password = $input->getArgument('password');
- if (!$password) {
- $password = $this->getIo()->ask(
- $this->trans('commands.user.password.hash.questions.password')
- );
-
- $input->setArgument('password', [$password]);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $passwords = $input->getArgument('password');
-
- $tableHeader = [
- $this->trans('commands.user.password.hash.messages.password'),
- $this->trans('commands.user.password.hash.messages.hash'),
- ];
-
- $tableRows = [];
- foreach ($passwords as $password) {
- $tableRows[] = [
- $password,
- $this->password->hash($password),
- ];
- }
-
- $this->getIo()->table($tableHeader, $tableRows, 'compact');
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/PasswordResetCommand.php b/vendor/drupal/console/src/Command/User/PasswordResetCommand.php
deleted file mode 100644
index 827d49a18..000000000
--- a/vendor/drupal/console/src/Command/User/PasswordResetCommand.php
+++ /dev/null
@@ -1,141 +0,0 @@
-database = $database;
- $this->chainQueue = $chainQueue;
- parent::__construct($entityTypeManager);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('user:password:reset')
- ->setDescription($this->trans('commands.user.password.reset.description'))
- ->setHelp($this->trans('commands.user.password.reset.help'))
- ->addArgument(
- 'user',
- InputArgument::REQUIRED,
- $this->trans('commands.user.password.reset.options.user')
- )
- ->addArgument(
- 'password',
- InputArgument::REQUIRED,
- $this->trans('commands.user.password.reset.options.password')
- )
- ->setAliases(['upr']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $this->getUserArgument();
-
- $password = $input->getArgument('password');
- if (!$password) {
- $password = $this->getIo()->ask(
- $this->trans('commands.user.password.hash.questions.password')
- );
-
- $input->setArgument('password', $password);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $user = $input->getArgument('user');
-
- $userEntity = $this->getUserEntity($user);
-
- if (!$userEntity) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.user.password.reset.errors.invalid-user'),
- $user
- )
- );
-
- return 1;
- }
-
- $password = $input->getArgument('password');
- if (!$password) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.user.password.reset.errors.empty-password'),
- $password
- )
- );
-
- return 1;
- }
-
- try {
- $userEntity->setPassword($password);
- $userEntity->save();
-
- $schema = $this->database->schema();
- $flood = $schema->findTables('flood');
-
- if ($flood) {
- $this->chainQueue
- ->addCommand('user:login:clear:attempts', ['user' => $user]);
- }
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.password.reset.messages.reset-successful'),
- $user
- )
- );
- return 0;
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/RoleCommand.php b/vendor/drupal/console/src/Command/User/RoleCommand.php
deleted file mode 100644
index 71d618aaf..000000000
--- a/vendor/drupal/console/src/Command/User/RoleCommand.php
+++ /dev/null
@@ -1,129 +0,0 @@
-drupalApi = $drupalApi;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('user:role')
- ->setDescription($this->trans('commands.user.role.description'))
- ->addArgument(
- 'operation',
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.user.role.arguments.operation')
- )
- ->addArgument(
- 'user',
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.user.role.arguments.user')
- )
- ->addArgument(
- 'role',
- InputOption::VALUE_REQUIRED,
- $this->trans('commands.user.role.arguments.roles')
- )->setAliases(['ur']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $operation = $input->getArgument('operation');
- $user = $input->getArgument('user');
- $role = $input->getArgument('role');
-
- if (!$operation || !$user || !$role) {
- throw new \Exception(
- $this->trans('commands.user.role.messages.bad-arguments')
- );
- }
-
- $systemRoles = $this->drupalApi->getRoles();
-
- if (is_numeric($user)) {
- $userObject = user_load($user);
- } else {
- $userObject = user_load_by_name($user);
- }
-
-
- if (!is_object($userObject)) {
- if (!filter_var($user, FILTER_VALIDATE_EMAIL) === false) {
- $userObject = user_load_by_mail($user);
- }
- }
-
- if (!is_object($userObject)) {
- $this->getIo()->error(sprintf($this->trans('commands.user.role.messages.no-user-found'), $user));
- return 1;
- }
-
- if (!array_key_exists($role, $systemRoles)) {
- $this->getIo()->error(sprintf($this->trans('commands.user.role.messages.no-role-found'), $role));
- return 1;
- }
-
- if ("add" == $operation) {
- $userObject->addRole($role);
- $userObject->save();
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.role.messages.add-success'),
- $userObject->name->value . " (" . $userObject->mail->value . ") ",
- $role
- )
- );
- }
-
- if ("remove" == $operation) {
- $userObject->removeRole($role);
- $userObject->save();
-
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.user.role.messages.remove-success'),
- $userObject->name->value . " (" . $userObject->mail->value . ") ",
- $role
- )
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Command/User/UserBase.php b/vendor/drupal/console/src/Command/User/UserBase.php
deleted file mode 100644
index 623934717..000000000
--- a/vendor/drupal/console/src/Command/User/UserBase.php
+++ /dev/null
@@ -1,102 +0,0 @@
-entityTypeManager = $entityTypeManager;
- parent::__construct();
- }
-
- /**
- * @param $user mixed
- *
- * @return mixed
- */
- public function getUserEntity($user)
- {
- if (is_numeric($user)) {
- $userEntity = $this->entityTypeManager
- ->getStorage('user')
- ->load($user);
- } else {
- $userEntity = reset(
- $this->entityTypeManager
- ->getStorage('user')
- ->loadByProperties(['name' => $user])
- );
- }
-
- return $userEntity;
- }
-
- /***
- * @return array users from site
- */
- public function getUsers()
- {
- $userStorage = $this->entityTypeManager->getStorage('user');
- $users = $userStorage->loadMultiple();
-
- $userList = [];
- foreach ($users as $userId => $user) {
- $userList[$userId] = $user->getUsername();
- }
-
- return $userList;
- }
-
- private function userQuestion($user)
- {
- if (!$user) {
- $user = $this->getIo()->choiceNoList(
- $this->trans('commands.user.password.reset.questions.user'),
- $this->getUsers()
- );
- }
-
- return $user;
- }
-
- public function getUserOption()
- {
- $input = $this->getIo()->getInput();
-
- $user = $this->userQuestion($input->getOption('user'));
- $input->setOption('user', $user);
-
- return $user;
- }
-
- public function getUserArgument()
- {
- $input = $this->getIo()->getInput();
-
- $user = $this->userQuestion($input->getArgument('user'));
- $input->setArgument('user', $user);
-
- return $user;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Views/DisableCommand.php b/vendor/drupal/console/src/Command/Views/DisableCommand.php
deleted file mode 100644
index dbee8f139..000000000
--- a/vendor/drupal/console/src/Command/Views/DisableCommand.php
+++ /dev/null
@@ -1,111 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->entityQuery = $entityQuery;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('views:disable')
- ->setDescription($this->trans('commands.views.disable.description'))
- ->addArgument(
- 'view-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.views.arguments.view-id')
- )
- ->setAliases(['vd']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $viewId = $input->getArgument('view-id');
- if (!$viewId) {
- $views = $this->entityQuery
- ->get('view')
- ->condition('status', 1)
- ->execute();
- $viewId = $this->getIo()->choiceNoList(
- $this->trans('commands.debug.views.arguments.view-id'),
- $views
- );
- $input->setArgument('view-id', $viewId);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $viewId = $input->getArgument('view-id');
-
- $view = $this->entityTypeManager->getStorage('view')->load($viewId);
-
- if (empty($view)) {
- $this->getIo()->error(sprintf($this->trans('commands.debug.views.messages.not-found'), $viewId));
-
- return 1;
- }
-
- try {
- $view->disable()->save();
-
- $this->getIo()->success(sprintf($this->trans('commands.views.disable.messages.disabled-successfully'), $view->get('label')));
- } catch (\Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Command/Views/EnableCommand.php b/vendor/drupal/console/src/Command/Views/EnableCommand.php
deleted file mode 100644
index 5102bbf68..000000000
--- a/vendor/drupal/console/src/Command/Views/EnableCommand.php
+++ /dev/null
@@ -1,120 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->entityQuery = $entityQuery;
- parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('views:enable')
- ->setDescription($this->trans('commands.views.enable.description'))
- ->addArgument(
- 'view-id',
- InputArgument::OPTIONAL,
- $this->trans('commands.debug.views.arguments.view-id')
- )
- ->setAliases(['ve']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $viewId = $input->getArgument('view-id');
- if (!$viewId) {
- $views = $this->entityQuery
- ->get('view')
- ->condition('status', 0)
- ->execute();
- $viewId = $this->getIo()->choiceNoList(
- $this->trans('commands.debug.views.arguments.view-id'),
- $views
- );
- $input->setArgument('view-id', $viewId);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $viewId = $input->getArgument('view-id');
-
- $view = $this->entityTypeManager->getStorage('view')->load($viewId);
-
- if (empty($view)) {
- $this->getIo()->error(
- sprintf(
- $this->trans('commands.debug.views.messages.not-found'),
- $viewId
- )
- );
- return 1;
- }
-
- try {
- $view->enable()->save();
- $this->getIo()->success(
- sprintf(
- $this->trans('commands.views.enable.messages.enabled-successfully'),
- $view->get('label')
- )
- );
- } catch (Exception $e) {
- $this->getIo()->error($e->getMessage());
-
- return 1;
- }
-
- return 0;
- }
-}
diff --git a/vendor/drupal/console/src/Extension/Discovery.php b/vendor/drupal/console/src/Extension/Discovery.php
deleted file mode 100644
index cc66a80c5..000000000
--- a/vendor/drupal/console/src/Extension/Discovery.php
+++ /dev/null
@@ -1,25 +0,0 @@
-root . '/' . parent::getPath();
- }
-
- return parent::getPath();
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getControllerPath($fullPath = false)
- {
- return $this->getSourcePath($fullPath) . '/Controller';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getAjaxPath($fullPath = false)
- {
- return $this->getSourcePath($fullPath) . '/Ajax';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getConfigInstallDirectory($fullPath = false)
- {
- return $this->getPath($fullPath) .'/config/install';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getConfigOptionalDirectory($fullPath = false)
- {
- return $this->getPath($fullPath) .'/config/optional';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getSourcePath($fullPath=false)
- {
- return $this->getPath($fullPath) . '/src';
- }
-
- /**
- * @param string $authenticationType
- * @param boolean $fullPath
- * @return string
- */
- public function getAuthenticationPath($authenticationType, $fullPath = false)
- {
- return $this->getSourcePath($fullPath) .'/Authentication/' . $authenticationType;
- }
-
- /**
- * @param $fullPath
- * @return string
- */
- public function getFormPath($fullPath = false)
- {
- return $this->getSourcePath($fullPath) . '/Form';
- }
-
- /**
- * @param $fullPath
- * @return string
- */
- public function getRoutingPath($fullPath = false)
- {
- return $this->getSourcePath($fullPath) . '/Routing';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getCommandDirectory($fullPath=false)
- {
- return $this->getSourcePath($fullPath) . '/Command/';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getGeneratorDirectory($fullPath=false)
- {
- return $this->getSourcePath($fullPath) . '/Generator/';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getEntityPath($fullPath = false)
- {
- return $this->getSourcePath($fullPath) . '/Entity';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getTemplatePath($fullPath = false)
- {
- return $this->getPath($fullPath) . '/templates';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getTestsPath($fullPath = false)
- {
- return $this->getPath($fullPath) . '/tests';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getTestsSourcePath($fullPath = false)
- {
- return $this->getTestsPath($fullPath) . '/src';
- }
-
- /**
- * @param bool $fullPath
- * @return string
- */
- public function getJsTestsPath($fullPath = false)
- {
- return $this->getTestsSourcePath($fullPath) . '/FunctionalJavascript';
- }
-}
diff --git a/vendor/drupal/console/src/Extension/Manager.php b/vendor/drupal/console/src/Extension/Manager.php
deleted file mode 100644
index 8ad304887..000000000
--- a/vendor/drupal/console/src/Extension/Manager.php
+++ /dev/null
@@ -1,404 +0,0 @@
-site = $site;
- $this->httpClient = $httpClient;
- $this->appRoot = $appRoot;
- $this->initialize();
- }
-
- /**
- * @return $this
- */
- public function showInstalled()
- {
- $this->filters['showInstalled'] = true;
- return $this;
- }
-
- /**
- * @return $this
- */
- public function showUninstalled()
- {
- $this->filters['showUninstalled'] = true;
- return $this;
- }
-
- /**
- * @return $this
- */
- public function showCore()
- {
- $this->filters['showCore'] = true;
- return $this;
- }
-
- /**
- * @return $this
- */
- public function showNoCore()
- {
- $this->filters['showNoCore'] = true;
- return $this;
- }
-
- /**
- * @param boolean $nameOnly
- * @return array
- */
- public function getList($nameOnly = false)
- {
- return $this->getExtensions($this->extension, $nameOnly);
- }
-
- /**
- * @return $this
- */
- public function discoverModules()
- {
- $this->initialize();
- $this->discoverExtension('module');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function discoverThemes()
- {
- $this->initialize();
- $this->discoverExtension('theme');
-
- return $this;
- }
-
- /**
- * @return $this
- */
- public function discoverProfiles()
- {
- $this->initialize();
- $this->discoverExtension('profile');
-
- return $this;
- }
-
- /**
- * @param string $extension
- */
- private function discoverExtension($extension)
- {
- $this->extension = $extension;
- $this->extensions[$extension] = $this->discoverExtensions($extension);
-
- return $this;
- }
-
- /**
- * initializeFilters
- */
- private function initialize()
- {
- $this->extension = 'module';
- $this->extensions = [
- 'module' => [],
- 'theme' => [],
- 'profile' => [],
- ];
- $this->filters = [
- 'showInstalled' => false,
- 'showUninstalled' => false,
- 'showCore' => false,
- 'showNoCore' => false
- ];
- }
-
- /**
- * @param string $type
- * @param bool|false $nameOnly
- * @return array
- */
- private function getExtensions(
- $type = 'module',
- $nameOnly = false
- ) {
- $showInstalled = $this->filters['showInstalled'];
- $showUninstalled = $this->filters['showUninstalled'];
- $showCore = $this->filters['showCore'];
- $showNoCore = $this->filters['showNoCore'];
-
- $extensions = [];
- if (!array_key_exists($type, $this->extensions)) {
- return $extensions;
- }
-
- foreach ($this->extensions[$type] as $extension) {
- $name = $extension->getName();
-
- $isInstalled = false;
- if (property_exists($extension, 'status')) {
- $isInstalled = ($extension->status)?true:false;
- }
- if (!$showInstalled && $isInstalled) {
- continue;
- }
- if (!$showUninstalled && !$isInstalled) {
- continue;
- }
- if (!$showCore && $extension->origin == 'core') {
- continue;
- }
- if (!$showNoCore && $extension->origin != 'core') {
- continue;
- }
-
- $extensions[$name] = $extension;
- }
-
-
- return $nameOnly?array_keys($extensions):$extensions;
- }
-
- /**
- * @param string $type
- * @return \Drupal\Core\Extension\Extension[]
- */
- private function discoverExtensions($type)
- {
- if ($type === 'module') {
- $this->site->loadLegacyFile('/core/modules/system/system.module');
- system_rebuild_module_data();
- }
-
- if ($type === 'theme') {
- $themeHandler = \Drupal::service('theme_handler');
- $themeHandler->rebuildThemeData();
- }
-
- /*
- * @see Remove DrupalExtensionDiscovery subclass once
- * https://www.drupal.org/node/2503927 is fixed.
- */
- $discovery = new Discovery($this->appRoot);
- $discovery->reset();
-
- return $discovery->scan($type);
- }
-
- /**
- * @param string $name
- * @return \Drupal\Console\Extension\Extension
- */
- public function getModule($name)
- {
- if ($extension = $this->getExtension('module', $name)) {
- return $this->createExtension($extension);
- }
-
- return null;
- }
-
- /**
- * @param string $name
- * @return \Drupal\Console\Extension\Extension
- */
- public function getProfile($name)
- {
- if ($extension = $this->getExtension('profile', $name)) {
- return $this->createExtension($extension);
- }
-
- return null;
- }
-
- /**
- * @param string $name
- * @return \Drupal\Console\Extension\Extension
- */
- public function getTheme($name)
- {
- if ($extension = $this->getExtension('theme', $name)) {
- return $this->createExtension($extension);
- }
-
- return null;
- }
-
- /**
- * @param string $type
- * @param string $name
- *
- * @return \Drupal\Core\Extension\Extension
- */
- private function getExtension($type, $name)
- {
- if (!$this->extensions[$type]) {
- $this->discoverExtension($type);
- }
-
- if (array_key_exists($name, $this->extensions[$type])) {
- return $this->extensions[$type][$name];
- }
-
- return null;
- }
-
- /**
- * @param \Drupal\Core\Extension\Extension $extension
- * @return \Drupal\Console\Extension\Extension
- */
- private function createExtension($extension)
- {
- $consoleExtension = new Extension(
- $this->appRoot,
- $extension->getType(),
- $extension->getPathname(),
- $extension->getExtensionFilename()
- );
- $consoleExtension->unserialize($extension->serialize());
-
- return $consoleExtension;
- }
-
- /**
- * @param string $testType
- * @param $fullPath
- * @return string
- */
- public function getTestPath($testType, $fullPath = false)
- {
- return $this->getPath($fullPath) . '/Tests/' . $testType;
- }
-
- public function validateModuleFunctionExist($moduleName, $function, $moduleFile = null)
- {
- //Load module file to prevent issue of missing functions used in update
- $module = $this->getModule($moduleName);
- $modulePath = $module->getPath();
- if ($moduleFile) {
- $this->site->loadLegacyFile($modulePath . '/' . $moduleFile);
- } else {
- $this->site->loadLegacyFile($modulePath . '/' . $module->getName() . '.module');
- }
-
- if (function_exists($function)) {
- return true;
- }
- return false;
- }
-
- /**
- * @param string $moduleName
- * @param string $pluginType
- * @return string
- */
- public function getPluginPath($moduleName, $pluginType)
- {
- $module = $this->getModule($moduleName);
-
- return $module->getPath() . '/src/Plugin/' . $pluginType;
- }
-
- public function getDrupalExtension($type, $name)
- {
- $extension = $this->getExtension($type, $name);
- return $this->createExtension($extension);
- }
-
- /**
- * @param array $extensions
- * @param string $type
- * @return array
- */
- public function checkExtensions(array $extensions, $type = 'module')
- {
- $checkextensions = [
- 'local_extensions' => [],
- 'drupal_extensions' => [],
- 'no_extensions' => [],
- ];
-
- $local_extensions = $this->discoverExtension($type)
- ->showInstalled()
- ->showUninstalled()
- ->showCore()
- ->showNoCore()
- ->getList(true);
-
- foreach ($extensions as $extension) {
- if (in_array($extension, $local_extensions)) {
- $checkextensions['local_extensions'][] = $extension;
- } else {
- try {
- $response = $this->httpClient->head('https://www.drupal.org/project/' . $extension);
- $header_link = $response->getHeader('link');
- if (empty($header_link[0])) {
- $checkextensions['no_extensions'][] = $extension;
- } else {
- $checkextensions['drupal_extensions'][] = $extension;
- }
- } catch (ClientException $e) {
- $checkextensions['no_extensions'][] = $extension;
- }
- }
- }
-
- return $checkextensions;
- }
-}
diff --git a/vendor/drupal/console/src/Generator/AjaxCommandGenerator.php b/vendor/drupal/console/src/Generator/AjaxCommandGenerator.php
deleted file mode 100644
index fe5408d67..000000000
--- a/vendor/drupal/console/src/Generator/AjaxCommandGenerator.php
+++ /dev/null
@@ -1,65 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $class = $parameters['class_name'];
- $module = $parameters['module'];
- $js_name = $parameters['js_name'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $moduleDir = $moduleInstance->getPath();
- $this->renderFile(
- 'module/src/Ajax/ajax-command.php.twig',
- $moduleInstance->getAjaxPath() . '/' . $class . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/js/commands.php.twig',
- $moduleDir . '/js/' .$js_name. '.js',
- $parameters
- );
-
- $this->renderFile(
- 'module/module-libraries.yml.twig',
- $moduleDir . '/' . $module . '.libraries.yml',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/AuthenticationProviderGenerator.php b/vendor/drupal/console/src/Generator/AuthenticationProviderGenerator.php
deleted file mode 100644
index 2380df164..000000000
--- a/vendor/drupal/console/src/Generator/AuthenticationProviderGenerator.php
+++ /dev/null
@@ -1,72 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class = $parameters['class'];
- $provider_id = $parameters['provider_id'];
- $moduleInstance = $this->extensionManager->getModule($module);
- $modulePath = $moduleInstance->getPath() . '/' . $module;
-
- $this->renderFile(
- 'module/src/Authentication/Provider/authentication-provider.php.twig',
- $moduleInstance->getAuthenticationPath('Provider') . '/' . $class . '.php',
- $parameters
- );
-
- $parameters = array_merge($parameters, [
- 'module' => $module,
- 'class' => $class,
- 'class_path' => sprintf('Drupal\%s\Authentication\Provider\%s', $module, $class),
- 'name' => 'authentication.' . $module,
- 'services' => [
- ['name' => 'config.factory'],
- ['name' => 'entity_type.manager'],
- ],
- 'file_exists' => file_exists($modulePath . '.services.yml'),
- 'tags' => [
- 'name' => 'authentication_provider',
- 'provider_id' => $provider_id,
- 'priority' => '100',
- ],
- ]);
-
- $this->renderFile(
- 'module/services.yml.twig',
- $modulePath . '.services.yml',
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/BreakPointGenerator.php b/vendor/drupal/console/src/Generator/BreakPointGenerator.php
deleted file mode 100644
index ff3e820b9..000000000
--- a/vendor/drupal/console/src/Generator/BreakPointGenerator.php
+++ /dev/null
@@ -1,48 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $theme_path = $this->extensionManager->getTheme($parameters['theme'])->getPath();
-
- $this->renderFile(
- 'theme/breakpoints.yml.twig',
- $theme_path . '/' . $parameters['machine_name'] . '.breakpoints.yml',
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/CacheContextGenerator.php b/vendor/drupal/console/src/Generator/CacheContextGenerator.php
deleted file mode 100644
index 4c936ab6b..000000000
--- a/vendor/drupal/console/src/Generator/CacheContextGenerator.php
+++ /dev/null
@@ -1,63 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $cache_context = $parameters['ache_context'];
- $class = $parameters['class'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $modulePath = $moduleInstance->getPath() . '/' . $module;
-
- $parameters = array_merge($parameters, [
- 'name' => 'cache_context.' . $cache_context,
- 'class_path' => sprintf('Drupal\%s\CacheContext\%s', $module, $class),
- 'tags' => ['name' => 'cache.context'],
- 'file_exists' => file_exists($modulePath . '.services.yml'),
- ]);
-
- $this->renderFile(
- 'module/src/cache-context.php.twig',
- $moduleInstance->getSourcePath() . '/CacheContext/' . $class . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/services.yml.twig',
- $modulePath . '.services.yml',
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/CommandGenerator.php b/vendor/drupal/console/src/Generator/CommandGenerator.php
deleted file mode 100644
index 70e486d5a..000000000
--- a/vendor/drupal/console/src/Generator/CommandGenerator.php
+++ /dev/null
@@ -1,134 +0,0 @@
-extensionManager = $extensionManager;
- $this->translatorManager = $translatorManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $extension = $parameters['extension'];
- $extensionType = $parameters['extension_type'];
- $name = $parameters['name'];
- $class = $parameters['class_name'];
- $class_generator = $parameters['class_generator'];
- $generator = $parameters['generator'];
-
- $command_key = str_replace(':', '.', $name);
-
- $extensionInstance = $this->extensionManager
- ->getDrupalExtension($extensionType, $extension);
-
- $extensionObjectPath = $extensionInstance->getPath();
-
- $parameters = array_merge(
- $parameters, [
- 'command_key' => $command_key,
- 'tags' => [ 'name' => 'drupal.command' ],
- 'class_path' => sprintf('Drupal\%s\Command\%s', $extension, $class),
- 'file_exists' => file_exists($extensionObjectPath . '/console.services.yml'),
- ]
- );
-
- $commandServiceName = $extension . '.' . str_replace(':', '_', $name);
- $generatorServiceName = $commandServiceName . '_generator';
-
- if ($generator) {
- $machineName = str_replace('.', '_', $generatorServiceName);
- $parameters['services'][$generatorServiceName] = [
- 'name' => $generatorServiceName,
- 'machine_name' => $machineName,
- 'camel_case_name' => 'generator',
- 'class' => 'Drupal\Console\Core\Generator\GeneratorInterface',
- 'short' => 'GeneratorInterface',
- ];
- }
-
- $this->renderFile(
- 'module/src/Command/command.php.twig',
- $extensionInstance->getCommandDirectory() . $class . '.php',
- $parameters
- );
-
- $parameters['name'] = $commandServiceName;
-
- $this->renderFile(
- 'module/services.yml.twig',
- $extensionObjectPath . '/console.services.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/src/Command/console/translations/en/command.yml.twig',
- $extensionObjectPath . '/console/translations/en/' . $command_key . '.yml'
- );
-
- if ($generator) {
- $parameters = array_merge(
- $parameters,
- [
- 'name' => $generatorServiceName,
- 'class_name' => $class_generator,
- 'services' => [],
- 'tags' => [ 'name' => 'drupal.generator' ],
- 'class_path' => sprintf('Drupal\%s\Generator\%s', $extension, $class_generator),
- 'file_exists' => file_exists($extensionObjectPath . '/console.services.yml'),
- ]
- );
-
- $this->renderFile(
- 'module/src/Generator/generator.php.twig',
- $extensionInstance->getGeneratorDirectory() . $class_generator . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/services.yml.twig',
- $extensionObjectPath .'/console.services.yml',
- $parameters,
- FILE_APPEND
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Generator/ControllerGenerator.php b/vendor/drupal/console/src/Generator/ControllerGenerator.php
deleted file mode 100644
index 49d51e510..000000000
--- a/vendor/drupal/console/src/Generator/ControllerGenerator.php
+++ /dev/null
@@ -1,62 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $class = $parameters['class_name'];
- $test = $parameters['test'];
- $module = $parameters['module'];
- $moduleInstance = $this->extensionManager->getModule($module);
-
- $this->renderFile(
- 'module/src/Controller/controller.php.twig',
- $moduleInstance->getControllerPath() . '/' . $class . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/routing-controller.yml.twig',
- $moduleInstance->getPath() . '/' . $module . '.routing.yml',
- $parameters,
- FILE_APPEND
- );
-
- if ($test) {
- $this->renderFile(
- 'module/Tests/Controller/controller.php.twig',
- $moduleInstance->getTestPath('Controller') . '/' . $class . 'Test.php',
- $parameters
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Generator/DatabaseSettingsGenerator.php b/vendor/drupal/console/src/Generator/DatabaseSettingsGenerator.php
deleted file mode 100644
index 46673fbc2..000000000
--- a/vendor/drupal/console/src/Generator/DatabaseSettingsGenerator.php
+++ /dev/null
@@ -1,47 +0,0 @@
-kernel = $kernel;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $settingsFile = $this->kernel->getSitePath() . '/settings.php';
- if (!is_writable($settingsFile)) {
- return false;
- }
- return $this->renderFile(
- 'database/add.php.twig',
- $settingsFile,
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/DockerInitGenerator.php b/vendor/drupal/console/src/Generator/DockerInitGenerator.php
deleted file mode 100644
index f2d254c8a..000000000
--- a/vendor/drupal/console/src/Generator/DockerInitGenerator.php
+++ /dev/null
@@ -1,41 +0,0 @@
-getVolumeConfiguration();
-
- $dockerComposeFile = $parameters['docker_compose_file'];
- unset($parameters['docker_compose_file']);
-
- $this->renderFile(
- 'files/docker-compose.yml.twig',
- $dockerComposeFile,
- $parameters
- );
- }
-
- protected function getVolumeConfiguration() {
- $volumeConfiguration = [
- 'darwin' => ':cached'
- ];
-
- $osType = strtolower(PHP_OS);
-
- return array_key_exists($osType, $volumeConfiguration)?$volumeConfiguration[$osType]:'';
- }
-}
diff --git a/vendor/drupal/console/src/Generator/DotenvInitGenerator.php b/vendor/drupal/console/src/Generator/DotenvInitGenerator.php
deleted file mode 100644
index 93ec14734..000000000
--- a/vendor/drupal/console/src/Generator/DotenvInitGenerator.php
+++ /dev/null
@@ -1,48 +0,0 @@
-drupalFinder
- ->getDrupalRoot() . '/sites/default/settings.php';
- $settingsFileContent = file_get_contents($settingsFile);
-
- $settingsTwigContent = $this->renderer->render(
- 'files/settings.php.twig',
- $parameters
- );
-
- file_put_contents(
- $settingsFile,
- $settingsFileContent .
- $settingsTwigContent
- );
-
- $fs->chmod($settingsFile, 0666);
-
- // Create .env File
- $envFile = $this->drupalFinder->getComposerRoot() . '/.env';
- $this->renderFile(
- 'files/.env.dist.twig',
- $envFile,
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/EntityBundleGenerator.php b/vendor/drupal/console/src/Generator/EntityBundleGenerator.php
deleted file mode 100644
index dcee1ec87..000000000
--- a/vendor/drupal/console/src/Generator/EntityBundleGenerator.php
+++ /dev/null
@@ -1,85 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $bundleName = $parameters['bundle_name'];
- $moduleDir = $this->extensionManager->getModule($module)->getPath();
-
- /**
- * Generate core.entity_form_display.node.{ bundle_name }.default.yml
- */
- $this->renderFile(
- 'module/src/Entity/Bundle/core.entity_form_display.node.default.yml.twig',
- $moduleDir . '/config/install/core.entity_form_display.node.' . $bundleName . '.default.yml',
- $parameters
- );
-
- /**
- * Generate core.entity_view_display.node.{ bundle_name }.default.yml
- */
- $this->renderFile(
- 'module/src/Entity/Bundle/core.entity_view_display.node.default.yml.twig',
- $moduleDir . '/config/install/core.entity_view_display.node.' . $bundleName . '.default.yml',
- $parameters
- );
-
- /**
- * Generate core.entity_view_display.node.{ bundle_name }.teaser.yml
- */
- $this->renderFile(
- 'module/src/Entity/Bundle/core.entity_view_display.node.teaser.yml.twig',
- $moduleDir . '/config/install/core.entity_view_display.node.' . $bundleName . '.teaser.yml',
- $parameters
- );
-
- /**
- * Generate field.field.node.{ bundle_name }.body.yml
- */
- $this->renderFile(
- 'module/src/Entity/Bundle/field.field.node.body.yml.twig',
- $moduleDir . '/config/install/field.field.node.' . $bundleName . '.body.yml',
- $parameters
- );
-
- /**
- * Generate node.type.{ bundle_name }.yml
- */
- $this->renderFile(
- 'module/src/Entity/Bundle/node.type.yml.twig',
- $moduleDir . '/config/install/node.type.' . $bundleName . '.yml',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/EntityConfigGenerator.php b/vendor/drupal/console/src/Generator/EntityConfigGenerator.php
deleted file mode 100644
index 2f53fed38..000000000
--- a/vendor/drupal/console/src/Generator/EntityConfigGenerator.php
+++ /dev/null
@@ -1,104 +0,0 @@
-extensionManager = $extensionManager;
- }
-
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $entity_name = $parameters['entity_name'];
- $entity_class = $parameters['entity_class'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $moduleDir = $moduleInstance->getPath();
- $modulePath = $moduleDir . '/' . $module;
- $moduleSourcePath = $moduleInstance->getSourcePath() . '/' . $entity_class;
- $moduleFormPath = $moduleInstance->getFormPath() . '/' . $entity_class;
- $moduleEntityPath = $moduleInstance->getEntityPath() . '/' . $entity_class;
-
- $this->renderFile(
- 'module/config/schema/entity.schema.yml.twig',
- $moduleDir . '/config/schema/' . $entity_name . '.schema.yml',
- $parameters
- );
-
- $this->renderFile(
- 'module/links.menu-entity-config.yml.twig',
- $modulePath . '.links.menu.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/links.action-entity.yml.twig',
- $modulePath . '.links.action.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/src/Entity/interface-entity.php.twig',
- $moduleEntityPath . 'Interface.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Entity/entity.php.twig',
- $moduleEntityPath . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/entity-route-provider.php.twig',
- $moduleSourcePath . 'HtmlRouteProvider.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Form/entity.php.twig',
- $moduleFormPath . 'Form.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Form/entity-delete.php.twig',
- $moduleFormPath . 'DeleteForm.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/entity-listbuilder.php.twig',
- $moduleSourcePath . 'ListBuilder.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/EntityContentGenerator.php b/vendor/drupal/console/src/Generator/EntityContentGenerator.php
deleted file mode 100644
index 158c0895f..000000000
--- a/vendor/drupal/console/src/Generator/EntityContentGenerator.php
+++ /dev/null
@@ -1,285 +0,0 @@
-extensionManager = $extensionManager;
- $this->site = $site;
- $this->twigrenderer = $twigrenderer;
- }
-
- public function setIo($io)
- {
- $this->io = $io;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $entity_name = $parameters['entity_name'];
- $entity_class = $parameters['entity_class'];
- $bundle_entity_type = $parameters['bundle_entity_type'];
- $is_translatable = $parameters['is_translatable'];
- $revisionable = $parameters['revisionable'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $moduleDir = $moduleInstance->getPath();
- $modulePath = $moduleDir . '/' . $module;
- $moduleSourcePath = $moduleInstance->getSourcePath() . '/' . $entity_class;
- $moduleFormPath = $moduleInstance->getFormPath() . '/' . $entity_class;
- $moduleEntityPath = $moduleInstance->getEntityPath() . '/' . $entity_class;
- $moduleTemplatePath = $moduleInstance->getTemplatePath() . '/';
- $moduleFileName = $modulePath . '.module';
-
- $this->renderFile(
- 'module/permissions-entity-content.yml.twig',
- $modulePath . '.permissions.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/links.menu-entity-content.yml.twig',
- $modulePath . '.links.menu.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/links.task-entity-content.yml.twig',
- $modulePath . '.links.task.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/links.action-entity-content.yml.twig',
- $modulePath . '.links.action.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/src/accesscontrolhandler-entity-content.php.twig',
- $moduleSourcePath . 'AccessControlHandler.php',
- $parameters
- );
-
- if ($is_translatable) {
- $this->renderFile(
- 'module/src/entity-translation-handler.php.twig',
- $moduleSourcePath . 'TranslationHandler.php',
- $parameters
- );
- }
-
- $this->renderFile(
- 'module/src/Entity/interface-entity-content.php.twig',
- $moduleEntityPath . 'Interface.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Entity/entity-content.php.twig',
- $moduleEntityPath . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/entity-content-route-provider.php.twig',
- $moduleSourcePath . 'HtmlRouteProvider.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Entity/entity-content-views-data.php.twig',
- $moduleEntityPath . 'ViewsData.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/listbuilder-entity-content.php.twig',
- $moduleSourcePath . 'ListBuilder.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Entity/Form/entity-settings.php.twig',
- $moduleFormPath . 'SettingsForm.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Entity/Form/entity-content.php.twig',
- $moduleFormPath . 'Form.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Entity/Form/entity-content-delete.php.twig',
- $moduleFormPath . 'DeleteForm.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/entity-content-page.php.twig',
- $moduleDir . '/' . $entity_name . '.page.inc',
- $parameters
- );
-
- $this->renderFile(
- 'module/templates/entity-html.twig',
- $moduleTemplatePath . $entity_name . '.html.twig',
- $parameters
- );
-
- if ($revisionable) {
- $this->renderFile(
- 'module/src/Entity/Form/entity-content-revision-delete.php.twig',
- $moduleFormPath . 'RevisionDeleteForm.php',
- $parameters
- );
- $this->renderFile(
- 'module/src/Entity/Form/entity-content-revision-revert-translation.php.twig',
- $moduleFormPath . 'RevisionRevertTranslationForm.php',
- $parameters
- );
- $this->renderFile(
- 'module/src/Entity/Form/entity-content-revision-revert.php.twig',
- $moduleFormPath . 'RevisionRevertForm.php',
- $parameters
- );
- $this->renderFile(
- 'module/src/entity-storage.php.twig',
- $moduleSourcePath . 'Storage.php',
- $parameters
- );
- $this->renderFile(
- 'module/src/interface-entity-storage.php.twig',
- $moduleSourcePath . 'StorageInterface.php',
- $parameters
- );
- $this->renderFile(
- 'module/src/Controller/entity-controller.php.twig',
- $moduleInstance->getControllerPath() . '/' . $entity_class . 'Controller.php',
- $parameters
- );
- }
-
- if ($bundle_entity_type) {
- $this->renderFile(
- 'module/templates/entity-with-bundle-content-add-list-html.twig',
- $moduleTemplatePath . '/' . str_replace('_', '-', $entity_name) . '-content-add-list.html.twig',
- $parameters
- );
-
- // Check for hook_theme() in module file and warn ...
- // Check if the module file exists.
- if (!file_exists($moduleFileName)) {
- $this->renderFile(
- 'module/module.twig',
- $moduleFileName,
- [
- 'machine_name' => $module,
- 'description' => '',
- ]
- );
- }
- $module_file_contents = file_get_contents($moduleFileName);
- if (strpos($module_file_contents, 'function ' . $module . '_theme') !== false) {
- $this->io->warning(
- [
- 'It looks like you have a hook_theme already declared',
- 'Please manually merge the two hook_theme() implementations in',
- $moduleFileName
- ]
- );
- }
-
- $this->renderFile(
- 'module/src/Entity/entity-content-with-bundle.theme.php.twig',
- $moduleFileName,
- $parameters,
- FILE_APPEND
- );
-
- if (strpos($module_file_contents, 'function ' . $module . '_theme_suggestions_' . $entity_name) !== false) {
- $this->io->warning(
- [
- 'It looks like you have a hook_theme_suggestions_HOOK already declared',
- 'Please manually merge the two hook_theme_suggestions_HOOK() implementations in',
- $moduleFileName
- ]
- );
- }
-
- $this->renderFile(
- 'module/src/Entity/entity-content-with-bundle.theme_hook_suggestions.php.twig',
- $moduleFileName,
- $parameters,
- FILE_APPEND
- );
- }
-
- $content = $this->twigrenderer->render(
- 'module/src/Entity/entity-content.theme.php.twig',
- $parameters
- );
-
-
- //@TODO:
- /**
- if ($this->isLearning()) {
- $this->io->commentBlock(
- [
- 'Add this to your hook_theme:',
- $content
- ]
- );
- }
- */
- }
-}
diff --git a/vendor/drupal/console/src/Generator/EventSubscriberGenerator.php b/vendor/drupal/console/src/Generator/EventSubscriberGenerator.php
deleted file mode 100644
index 661ea7449..000000000
--- a/vendor/drupal/console/src/Generator/EventSubscriberGenerator.php
+++ /dev/null
@@ -1,60 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class = $parameters['class'];
- $moduleInstance = $this->extensionManager->getModule($module);
- $modulePath = $moduleInstance->getPath() . '/' . $module;
- $parameters = array_merge($parameters,
- [
- 'class_path' => sprintf('Drupal\%s\EventSubscriber\%s', $module, $class),
- 'tags' => ['name' => 'event_subscriber'],
- 'file_exists' => file_exists($modulePath . '.services.yml'),
- ]);
-
- $this->renderFile(
- 'module/src/event-subscriber.php.twig',
- $moduleInstance->getSourcePath() . '/EventSubscriber/' . $class . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/services.yml.twig',
- $modulePath . '.services.yml',
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/FormAlterGenerator.php b/vendor/drupal/console/src/Generator/FormAlterGenerator.php
deleted file mode 100644
index 47d91533c..000000000
--- a/vendor/drupal/console/src/Generator/FormAlterGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $module_path = $this->extensionManager->getModule($module)->getPath();
-
- $this->renderFile(
- 'module/src/Form/form-alter.php.twig',
- $module_path . '/' . $module . '.module',
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/FormGenerator.php b/vendor/drupal/console/src/Generator/FormGenerator.php
deleted file mode 100644
index 957c6bb4f..000000000
--- a/vendor/drupal/console/src/Generator/FormGenerator.php
+++ /dev/null
@@ -1,102 +0,0 @@
-extensionManager = $extensionManager;
- $this->stringConverter = $stringConverter;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $class_name = $parameters['class_name'];
- $form_type = $parameters['form_type'];
- $module = $parameters['module_name'];
- $config_file = $parameters['config_file'];
- $menu_link_gen = $parameters['menu_link_gen'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $moduleDir = $moduleInstance->getPath();
- $modulePath = $moduleDir . '/' . $module;
-
- $class_name_short = strtolower(
- $this->stringConverter->removeSuffix($class_name)
- );
-
- $parameters = array_merge($parameters, [
- 'class_name_short' => $class_name_short
- ]);
-
- if ($form_type == 'ConfigFormBase') {
- $template = 'module/src/Form/form-config.php.twig';
- $parameters['config_form'] = true;
- } else {
- $template = 'module/src/Form/form.php.twig';
- $parameters['config_form'] = false;
- }
-
- $this->renderFile(
- 'module/routing-form.yml.twig',
- $modulePath . '.routing.yml',
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- $template,
- $moduleInstance->getFormPath() . '/' . $class_name . '.php',
- $parameters
- );
-
- // Render defaults YML file.
- if ($config_file == true) {
- $this->renderFile(
- 'module/config/install/field.default.yml.twig',
- $moduleDir . '/config/install/' . $module . '.' . $class_name_short . '.yml',
- $parameters
- );
- }
-
- if ($menu_link_gen == true) {
- $this->renderFile(
- 'module/links.menu.yml.twig',
- $modulePath . '.links.menu.yml',
- $parameters,
- FILE_APPEND
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Generator/HelpGenerator.php b/vendor/drupal/console/src/Generator/HelpGenerator.php
deleted file mode 100644
index ae812282c..000000000
--- a/vendor/drupal/console/src/Generator/HelpGenerator.php
+++ /dev/null
@@ -1,50 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['machine_name'];
- $moduleFilePath = $this->extensionManager->getModule($module)->getPath() . '/' . $module . '.module';
-
- $parameters = array_merge($parameters, [
- 'file_exists' => file_exists($moduleFilePath),
- ]);
-
- $this->renderFile(
- 'module/help.php.twig',
- $moduleFilePath,
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/JsTestGenerator.php b/vendor/drupal/console/src/Generator/JsTestGenerator.php
deleted file mode 100644
index 846b6f08e..000000000
--- a/vendor/drupal/console/src/Generator/JsTestGenerator.php
+++ /dev/null
@@ -1,49 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $class = $parameters['class'];
- $module = $parameters['module'];
-
- $this->renderFile(
- 'module/src/Tests/js-test.php.twig',
- $this->extensionManager->getModule($module)->getJsTestsPath() . "/$class.php",
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/ModuleFileGenerator.php b/vendor/drupal/console/src/Generator/ModuleFileGenerator.php
deleted file mode 100644
index 86054b0b7..000000000
--- a/vendor/drupal/console/src/Generator/ModuleFileGenerator.php
+++ /dev/null
@@ -1,49 +0,0 @@
-renderFile(
- 'module/module-file.twig',
- $moduleFilePath,
- $parameters
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Generator/ModuleGenerator.php b/vendor/drupal/console/src/Generator/ModuleGenerator.php
deleted file mode 100644
index 04ea95096..000000000
--- a/vendor/drupal/console/src/Generator/ModuleGenerator.php
+++ /dev/null
@@ -1,163 +0,0 @@
-renderFile(
- 'module/info.yml.twig',
- $moduleDirectory . '/' . $machineName . '.info.yml',
- $parameters
- );
-
- if (!empty($featuresBundle)) {
- $this->renderFile(
- 'module/features.yml.twig',
- $moduleDirectory . '/' . $machineName . '.features.yml',
- [
- 'bundle' => $featuresBundle,
- ]
- );
- }
-
- if ($moduleFile) {
- $this->createModuleFile($moduleDirectory, $parameters);
- }
-
- if ($composer) {
- $this->renderFile(
- 'module/composer.json.twig',
- $moduleDirectory . '/' . 'composer.json',
- $parameters
- );
- }
-
- if ($test) {
- $this->renderFile(
- 'module/src/Tests/load-test.php.twig',
- $moduleDirectory . '/tests/src/Functional/' . 'LoadTest.php',
- $parameters
- );
- }
- if ($twigTemplate) {
- // If module file is not created earlier, create now.
- if (!$moduleFile) {
- // Generate '.module' file.
- $this->createModuleFile($moduleDirectory, $parameters);
- }
- $this->renderFile(
- 'module/module-twig-template-append.twig',
- $moduleDirectory . '/' . $machineName . '.module',
- $parameters,
- FILE_APPEND
- );
- $moduleDirectory .= '/templates/';
- if (file_exists($moduleDirectory)) {
- if (!is_dir($moduleDirectory)) {
- throw new \RuntimeException(
- sprintf(
- 'Unable to generate the templates directory as the target directory "%s" exists but is a file.',
- realpath($moduleDirectory)
- )
- );
- }
- $files = scandir($moduleDirectory);
- if ($files != ['.', '..']) {
- throw new \RuntimeException(
- sprintf(
- 'Unable to generate the templates directory as the target directory "%s" is not empty.',
- realpath($moduleDirectory)
- )
- );
- }
- if (!is_writable($moduleDirectory)) {
- throw new \RuntimeException(
- sprintf(
- 'Unable to generate the templates directory as the target directory "%s" is not writable.',
- realpath($moduleDirectory)
- )
- );
- }
- }
- $this->renderFile(
- 'module/twig-template-file.twig',
- $moduleDirectory . str_replace('_', '-', $machineName) . '.html.twig',
- $parameters
- );
- }
- }
-
- /**
- * Generate the '.module' file.
- *
- * @param string $dir
- * The directory name.
- * @param array $parameters
- * The parameter array.
- */
- protected function createModuleFile($dir, $parameters)
- {
- $this->renderFile(
- 'module/module.twig',
- $dir . '/' . $parameters['machine_name'] . '.module',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PermissionGenerator.php b/vendor/drupal/console/src/Generator/PermissionGenerator.php
deleted file mode 100644
index a7086ea73..000000000
--- a/vendor/drupal/console/src/Generator/PermissionGenerator.php
+++ /dev/null
@@ -1,56 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module_name'];
- $learning = $parameters['learning'];
-
- $this->renderFile(
- 'module/permission.yml.twig',
- $this->extensionManager->getModule($module)->getPath() . '/' . $module . '.permissions.yml',
- $parameters,
- FILE_APPEND
- );
-
- $content = $this->renderer->render(
- 'module/permission-routing.yml.twig',
- $parameters
- );
-
- if ($learning) {
- echo 'You can use this permission in the routing file like this:' . PHP_EOL;
- echo $content;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginBlockGenerator.php b/vendor/drupal/console/src/Generator/PluginBlockGenerator.php
deleted file mode 100644
index b8271391b..000000000
--- a/vendor/drupal/console/src/Generator/PluginBlockGenerator.php
+++ /dev/null
@@ -1,78 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $inputs = $parameters['inputs'];
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- // Consider the type when determining a default value. Figure out what
- // the code looks like for the default value tht we need to generate.
- foreach ($inputs as &$input) {
- $default_code = '$this->t(\'\')';
- if ($input['default_value'] == '') {
- switch ($input['type']) {
- case 'checkbox':
- case 'number':
- case 'weight':
- case 'radio':
- $default_code = 0;
- break;
-
- case 'radios':
- case 'checkboxes':
- $default_code = 'array()';
- break;
- }
- } elseif (substr($input['default_value'], 0, 1) == '$') {
- // If they want to put in code, let them, they're programmers.
- $default_code = $input['default_value'];
- } elseif (is_numeric($input['default_value'])) {
- $default_code = $input['default_value'];
- } elseif (preg_match('/^(true|false)$/i', $input['default_value'])) {
- // Coding Standards
- $default_code = strtoupper($input['default_value']);
- } else {
- $default_code = '$this->t(\'' . $input['default_value'] . '\')';
- }
- $input['default_code'] = $default_code;
- }
-
- $this->renderFile(
- 'module/src/Plugin/Block/block.php.twig',
- $this->extensionManager->getPluginPath($module, 'Block') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginCKEditorButtonGenerator.php b/vendor/drupal/console/src/Generator/PluginCKEditorButtonGenerator.php
deleted file mode 100644
index 782080d06..000000000
--- a/vendor/drupal/console/src/Generator/PluginCKEditorButtonGenerator.php
+++ /dev/null
@@ -1,45 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $class_name = $parameters['class_name'];
- $module = $parameters['module'];
-
- $this->renderFile(
- 'module/src/Plugin/CKEditorPlugin/ckeditorbutton.php.twig',
- $this->extensionManager->getPluginPath($module, 'CKEditorPlugin') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginConditionGenerator.php b/vendor/drupal/console/src/Generator/PluginConditionGenerator.php
deleted file mode 100644
index a96fefb17..000000000
--- a/vendor/drupal/console/src/Generator/PluginConditionGenerator.php
+++ /dev/null
@@ -1,52 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
- $context_definition_id = $parameters['context_definition_id'];
- $parameters['context_id'] = str_replace('entity:', '', $context_definition_id);
-
- $this->renderFile(
- 'module/src/Plugin/Condition/condition.php.twig',
- $this->extensionManager->getPluginPath($module, 'Condition') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginFieldFormatterGenerator.php b/vendor/drupal/console/src/Generator/PluginFieldFormatterGenerator.php
deleted file mode 100644
index df2b85e94..000000000
--- a/vendor/drupal/console/src/Generator/PluginFieldFormatterGenerator.php
+++ /dev/null
@@ -1,40 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/Field/FieldFormatter/fieldformatter.php.twig',
- $this->extensionManager->getPluginPath($module, 'Field/FieldFormatter') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginFieldTypeGenerator.php b/vendor/drupal/console/src/Generator/PluginFieldTypeGenerator.php
deleted file mode 100644
index 99e8e6a04..000000000
--- a/vendor/drupal/console/src/Generator/PluginFieldTypeGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/Field/FieldType/fieldtype.php.twig',
- $this->extensionManager->getPluginPath($module, 'Field/FieldType') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php b/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php
deleted file mode 100644
index 909239282..000000000
--- a/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/Field/FieldWidget/fieldwidget.php.twig',
- $this->extensionManager->getPluginPath($module, 'Field/FieldWidget') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginImageEffectGenerator.php b/vendor/drupal/console/src/Generator/PluginImageEffectGenerator.php
deleted file mode 100644
index 88856063b..000000000
--- a/vendor/drupal/console/src/Generator/PluginImageEffectGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/ImageEffect/imageeffect.php.twig',
- $this->extensionManager->getPluginPath($module, 'ImageEffect') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginImageFormatterGenerator.php b/vendor/drupal/console/src/Generator/PluginImageFormatterGenerator.php
deleted file mode 100644
index 96bf54680..000000000
--- a/vendor/drupal/console/src/Generator/PluginImageFormatterGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/Field/FieldFormatter/imageformatter.php.twig',
- $this->extensionManager->getPluginPath($module, 'Field/FieldFormatter') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginMailGenerator.php b/vendor/drupal/console/src/Generator/PluginMailGenerator.php
deleted file mode 100644
index fed3e275c..000000000
--- a/vendor/drupal/console/src/Generator/PluginMailGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/Mail/mail.php.twig',
- $this->extensionManager->getPluginPath($module, 'Mail') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginMigrateProcessGenerator.php b/vendor/drupal/console/src/Generator/PluginMigrateProcessGenerator.php
deleted file mode 100644
index c193d5d40..000000000
--- a/vendor/drupal/console/src/Generator/PluginMigrateProcessGenerator.php
+++ /dev/null
@@ -1,45 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/migrate/process/process.php.twig',
- $this->extensionManager->getPluginPath($module, 'migrate') . '/process/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginMigrateSourceGenerator.php b/vendor/drupal/console/src/Generator/PluginMigrateSourceGenerator.php
deleted file mode 100644
index 01876d6a0..000000000
--- a/vendor/drupal/console/src/Generator/PluginMigrateSourceGenerator.php
+++ /dev/null
@@ -1,45 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/migrate/source/source.php.twig',
- $this->extensionManager->getPluginPath($module, 'migrate') . '/source/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginRestResourceGenerator.php b/vendor/drupal/console/src/Generator/PluginRestResourceGenerator.php
deleted file mode 100644
index 6ecb6c74d..000000000
--- a/vendor/drupal/console/src/Generator/PluginRestResourceGenerator.php
+++ /dev/null
@@ -1,46 +0,0 @@
-extensionManager = $extensionManager;
- }
-
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module_name'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/src/Plugin/Rest/Resource/rest.php.twig',
- $this->extensionManager->getPluginPath($module, 'rest') . '/resource/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginRulesActionGenerator.php b/vendor/drupal/console/src/Generator/PluginRulesActionGenerator.php
deleted file mode 100644
index 9a4f5592d..000000000
--- a/vendor/drupal/console/src/Generator/PluginRulesActionGenerator.php
+++ /dev/null
@@ -1,52 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
- $plugin_id = $parameters['plugin_id'];
-
- $this->renderFile(
- 'module/src/Plugin/Action/rulesaction.php.twig',
- $this->extensionManager->getPluginPath($module, 'Action') . '/' . $class_name . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/system.action.action.yml.twig',
- $this->extensionManager->getModule($module)->getPath() . '/config/install/system.action.' . $plugin_id . '.yml',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginSkeletonGenerator.php b/vendor/drupal/console/src/Generator/PluginSkeletonGenerator.php
deleted file mode 100644
index ce118a755..000000000
--- a/vendor/drupal/console/src/Generator/PluginSkeletonGenerator.php
+++ /dev/null
@@ -1,49 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $className = $parameters['class_name'];
- $module = $parameters['module'];
- $pluginMetaData = $parameters['plugin_metadata'];
-
- $parameters['plugin_annotation'] = array_pop(explode('\\', $pluginMetaData['pluginAnnotation']));
- $parameters['plugin_interface'] = array_pop(explode('\\', $pluginMetaData['pluginInterface']));
-
- $this->renderFile(
- 'module/src/Plugin/skeleton.php.twig',
- $this->extensionManager->getModule($module)->getPath() . '/src/' . $pluginMetaData['subdir'] . '/' . $className . '.php',
- array_merge($parameters, $pluginMetaData)
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginTypeAnnotationGenerator.php b/vendor/drupal/console/src/Generator/PluginTypeAnnotationGenerator.php
deleted file mode 100644
index 3276b0e1f..000000000
--- a/vendor/drupal/console/src/Generator/PluginTypeAnnotationGenerator.php
+++ /dev/null
@@ -1,81 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $moduleSourcePath = $moduleInstance->getSourcePath();
- $modulePath = $moduleInstance->getPath() . '/' . $module;
- $modulePluginClass = $moduleSourcePath . '/Plugin/' . $class_name;
- $moduleServiceYaml = $modulePath . '.services.yml';
- $parameters['file_exists'] = file_exists($moduleServiceYaml);
- $directory = $modulePluginClass;
-
- if (!is_dir($directory)) {
- mkdir($directory, 0777, true);
- }
-
- $this->renderFile(
- 'module/src/Annotation/plugin-type.php.twig',
- $moduleSourcePath . '/Annotation/' . $class_name . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/plugin-type-annotation-base.php.twig',
- $modulePluginClass . 'Base.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/plugin-type-annotation-interface.php.twig',
- $modulePluginClass . 'Interface.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/plugin-type-annotation-manager.php.twig',
- $modulePluginClass . 'Manager.php',
- $parameters
- );
- $this->renderFile(
- 'module/plugin-annotation-services.yml.twig',
- $moduleServiceYaml,
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginTypeYamlGenerator.php b/vendor/drupal/console/src/Generator/PluginTypeYamlGenerator.php
deleted file mode 100644
index 8d61185c5..000000000
--- a/vendor/drupal/console/src/Generator/PluginTypeYamlGenerator.php
+++ /dev/null
@@ -1,71 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
- $plugin_file_name = $parameters['plugin_file_name'];
-
- $moduleInstance = $this->extensionManager->getModule($module);
- $modulePath = $moduleInstance->getPath() . '/' . $module;
- $moduleSourcePlugin = $moduleInstance->getSourcePath() . '/' . $class_name;
- $moduleServiceYaml = $modulePath . '.services.yml';
- $parameters['file_exists'] = file_exists($moduleServiceYaml);
-
- $this->renderFile(
- 'module/src/yaml-plugin-manager.php.twig',
- $moduleSourcePlugin . 'Manager.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/yaml-plugin-manager-interface.php.twig',
- $moduleSourcePlugin . 'ManagerInterface.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/plugin-yaml-services.yml.twig',
- $moduleServiceYaml,
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/plugin.yml.twig',
- $modulePath . '.' . $plugin_file_name . '.yml',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PluginViewsFieldGenerator.php b/vendor/drupal/console/src/Generator/PluginViewsFieldGenerator.php
deleted file mode 100644
index 997162e69..000000000
--- a/vendor/drupal/console/src/Generator/PluginViewsFieldGenerator.php
+++ /dev/null
@@ -1,51 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class_name = $parameters['class_name'];
-
- $this->renderFile(
- 'module/module.views.inc.twig',
- $this->extensionManager->getModule($module)->getPath() . '/' . $module . '.views.inc',
- $parameters
- );
-
- $this->renderFile(
- 'module/src/Plugin/Views/field/field.php.twig',
- $this->extensionManager->getPluginPath($module, 'views/field') . '/' . $class_name . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/PostUpdateGenerator.php b/vendor/drupal/console/src/Generator/PostUpdateGenerator.php
deleted file mode 100644
index a9185dfbb..000000000
--- a/vendor/drupal/console/src/Generator/PostUpdateGenerator.php
+++ /dev/null
@@ -1,48 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $postUpdateFile = $this->extensionManager->getModule($module)->getPath() . '/' . $module . '.post_update.php';
-
- $parameters['file_exists'] = file_exists($postUpdateFile);
-
- $this->renderFile(
- 'module/post-update.php.twig',
- $postUpdateFile,
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/ProfileGenerator.php b/vendor/drupal/console/src/Generator/ProfileGenerator.php
deleted file mode 100644
index b66b0f54a..000000000
--- a/vendor/drupal/console/src/Generator/ProfileGenerator.php
+++ /dev/null
@@ -1,72 +0,0 @@
-renderFile(
- 'profile/info.yml.twig',
- $profilePath . '.info.yml',
- $parameters
- );
-
- $this->renderFile(
- 'profile/profile.twig',
- $profilePath . '.profile',
- $parameters
- );
-
- $this->renderFile(
- 'profile/install.twig',
- $profilePath . '.install',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/RouteSubscriberGenerator.php b/vendor/drupal/console/src/Generator/RouteSubscriberGenerator.php
deleted file mode 100644
index 71e2a4b43..000000000
--- a/vendor/drupal/console/src/Generator/RouteSubscriberGenerator.php
+++ /dev/null
@@ -1,57 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class = $parameters['class'];
- $moduleInstance = $this->extensionManager->getModule($module);
- $moduleServiceYaml = $moduleInstance->getPath() . '/' . $module . '.services.yml';
- $parameters['class_path'] = sprintf('Drupal\%s\Routing\%s', $module, $class);
- $parameters['tags'] = ['name' => 'event_subscriber'];
- $parameters['file_exists'] = file_exists($moduleServiceYaml);
-
- $this->renderFile(
- 'module/src/Routing/route-subscriber.php.twig',
- $moduleInstance->getRoutingPath() . '/' . $class . '.php',
- $parameters
- );
-
- $this->renderFile(
- 'module/services.yml.twig',
- $moduleServiceYaml,
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/ServiceGenerator.php b/vendor/drupal/console/src/Generator/ServiceGenerator.php
deleted file mode 100644
index 8e552764c..000000000
--- a/vendor/drupal/console/src/Generator/ServiceGenerator.php
+++ /dev/null
@@ -1,89 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class = $parameters['class'];
- $path_service = $parameters['path_service'];
-
- $parameters['interface'] = $parameters['interface'] ? ($parameters['interface_name'] ?: $class . 'Interface') : false;
- $interface = $parameters['interface'];
- $moduleServiceYaml = $this->extensionManager->getModule($module)->getPath() . '/' . $module . '.services.yml';
- $parameters['class_path'] = sprintf('Drupal\%s\%s', $module, $class);
- $parameters['file_exists'] = file_exists($moduleServiceYaml);
-
- $this->renderFile(
- 'module/services.yml.twig',
- $moduleServiceYaml,
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/src/service.php.twig',
- $this->setDirectory($path_service, 'service.php.twig', $module, $class),
- $parameters
- );
-
- if ($interface) {
- $this->renderFile(
- 'module/src/service-interface.php.twig',
- $this->setDirectory($path_service, 'interface.php.twig', $module, $interface),
- $parameters
- );
- }
- }
-
- protected function setDirectory($target, $template, $module, $class)
- {
- $default_path = '/modules/custom/' . $module . '/src/';
- $directory = '';
- $modulePath = $this->extensionManager->getModule($module)->getPath();
-
- switch ($template) {
- case 'service.php.twig':
- case 'interface.php.twig':
- $default_target = $modulePath . '/src/' . $class . '.php';
- $custom_target = $modulePath . '/' . $target . '/' . $class . '.php';
-
- $directory = (strcmp($target, $default_path) == 0) ? $default_target : $custom_target;
- break;
- default:
- // code...
- break;
- }
-
- return $directory;
- }
-}
diff --git a/vendor/drupal/console/src/Generator/ThemeGenerator.php b/vendor/drupal/console/src/Generator/ThemeGenerator.php
deleted file mode 100644
index 5ae64db2a..000000000
--- a/vendor/drupal/console/src/Generator/ThemeGenerator.php
+++ /dev/null
@@ -1,104 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $dir = $parameters['dir'];
- $breakpoints = $parameters['breakpoints'];
- $libraries = $parameters['libraries'];
- $machine_name = $parameters['machine_name'];
- $parameters['type'] = 'theme';
-
- $dir = ($dir == '/' ? '': $dir) . '/' . $machine_name;
- if (file_exists($dir)) {
- if (!is_dir($dir)) {
- throw new \RuntimeException(
- sprintf(
- 'Unable to generate the bundle as the target directory "%s" exists but is a file.',
- realpath($dir)
- )
- );
- }
- $files = scandir($dir);
- if ($files != ['.', '..']) {
- throw new \RuntimeException(
- sprintf(
- 'Unable to generate the bundle as the target directory "%s" is not empty.',
- realpath($dir)
- )
- );
- }
- if (!is_writable($dir)) {
- throw new \RuntimeException(
- sprintf(
- 'Unable to generate the bundle as the target directory "%s" is not writable.',
- realpath($dir)
- )
- );
- }
- }
-
- $themePath = $dir . '/' . $machine_name;
-
- $this->renderFile(
- 'theme/info.yml.twig',
- $themePath . '.info.yml',
- $parameters
- );
-
- $this->renderFile(
- 'theme/theme.twig',
- $themePath . '.theme',
- $parameters
- );
-
- if ($libraries) {
- $this->renderFile(
- 'theme/libraries.yml.twig',
- $themePath . '.libraries.yml',
- $parameters
- );
- }
-
- if ($breakpoints) {
- $this->renderFile(
- 'theme/breakpoints.yml.twig',
- $themePath . '.breakpoints.yml',
- $parameters
- );
- }
- }
-}
diff --git a/vendor/drupal/console/src/Generator/TwigExtensionGenerator.php b/vendor/drupal/console/src/Generator/TwigExtensionGenerator.php
deleted file mode 100644
index 7ba148416..000000000
--- a/vendor/drupal/console/src/Generator/TwigExtensionGenerator.php
+++ /dev/null
@@ -1,62 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $class = $parameters['class'];
- $modulePath = $this->extensionManager->getModule($module)->getPath();
- $moduleServiceYaml = $modulePath . '/' . $module . '.services.yml';
- $parameters['class_path'] = sprintf('Drupal\%s\TwigExtension\%s', $module, $class);
- $parameters['tags'] = ['name' => 'twig.extension'];
- $parameters['file_exists'] = file_exists($moduleServiceYaml);
-
- $this->renderFile(
- 'module/services.yml.twig',
- $moduleServiceYaml,
- $parameters,
- FILE_APPEND
- );
-
- $this->renderFile(
- 'module/src/TwigExtension/twig-extension.php.twig',
- $modulePath . '/src/TwigExtension/' . $class . '.php',
- $parameters
- );
- }
-}
diff --git a/vendor/drupal/console/src/Generator/UpdateGenerator.php b/vendor/drupal/console/src/Generator/UpdateGenerator.php
deleted file mode 100644
index 157a0fe2b..000000000
--- a/vendor/drupal/console/src/Generator/UpdateGenerator.php
+++ /dev/null
@@ -1,53 +0,0 @@
-extensionManager = $extensionManager;
- }
-
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
- $module = $parameters['module'];
- $update_number = $parameters['update_number'];
- $updateFile = $this->extensionManager->getModule($module)->getPath() . '/' . $module . '.install';
-
- $parameters = [
- 'module' => $module,
- 'update_number' => $update_number,
- 'file_exists' => file_exists($updateFile)
- ];
-
- $this->renderFile(
- 'module/update.php.twig',
- $updateFile,
- $parameters,
- FILE_APPEND
- );
- }
-}
diff --git a/vendor/drupal/console/src/Override/ConfigSubscriber.php b/vendor/drupal/console/src/Override/ConfigSubscriber.php
deleted file mode 100644
index 2452f01d6..000000000
--- a/vendor/drupal/console/src/Override/ConfigSubscriber.php
+++ /dev/null
@@ -1,26 +0,0 @@
-stopPropagation();
- return true;
- }
-}
diff --git a/vendor/drupal/console/src/Plugin/ScriptHandler.php b/vendor/drupal/console/src/Plugin/ScriptHandler.php
deleted file mode 100644
index 3c13f15ba..000000000
--- a/vendor/drupal/console/src/Plugin/ScriptHandler.php
+++ /dev/null
@@ -1,28 +0,0 @@
-getComposer()->getPackage()->getRequires());
- if (!$packages) {
- return;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Utils/AnnotationValidator.php b/vendor/drupal/console/src/Utils/AnnotationValidator.php
deleted file mode 100644
index 9e46c4c42..000000000
--- a/vendor/drupal/console/src/Utils/AnnotationValidator.php
+++ /dev/null
@@ -1,121 +0,0 @@
-annotationCommandReader = $annotationCommandReader;
- $this->extensionManager = $extensionManager;
- }
-
- /**
- * @param $class
- * @return bool
- */
- public function isValidCommand($class)
- {
- $annotation = $this->annotationCommandReader->readAnnotation($class);
- if (!$annotation) {
- return true;
- }
-
- $dependencies = $this->extractDependencies($annotation);
-
- if (!$dependencies) {
- return true;
- }
-
- foreach ($dependencies as $dependency) {
- if (!$this->isExtensionInstalled($dependency)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * @param $extension
- * @return bool
- */
- protected function isExtensionInstalled($extension)
- {
- if (!$this->extensions) {
- $modules = $this->extensionManager->discoverModules()
- ->showCore()
- ->showNoCore()
- ->showInstalled()
- ->getList(true);
-
- $themes = $this->extensionManager->discoverThemes()
- ->showCore()
- ->showNoCore()
- ->showInstalled()
- ->getList(true);
-
- $profiles = $this->extensionManager->discoverProfiles()
- ->showCore()
- ->showNoCore()
- ->showInstalled()
- ->getList(true);
-
- $this->extensions = array_merge(
- $modules,
- $themes,
- $profiles
- );
- }
-
- return in_array($extension, $this->extensions);
- }
-
- /**
- * @param $annotation
- * @return array
- */
- protected function extractDependencies($annotation)
- {
- $dependencies = [];
- $extension = array_key_exists('extension', $annotation) ? $annotation['extension'] : null;
- $extensionType = array_key_exists('extensionType', $annotation) ? $annotation['extensionType'] : null;
- if ($extension && $extensionType != 'library') {
- $dependencies[] = $annotation['extension'];
- }
- if (array_key_exists('dependencies', $annotation)) {
- $dependencies = array_merge($dependencies, $annotation['dependencies']);
- }
-
- return $dependencies;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/Base.php b/vendor/drupal/console/src/Utils/Create/Base.php
deleted file mode 100644
index 01f00c53a..000000000
--- a/vendor/drupal/console/src/Utils/Create/Base.php
+++ /dev/null
@@ -1,141 +0,0 @@
-entityTypeManager = $entityTypeManager;
- $this->entityFieldManager = $entityFieldManager;
- $this->dateFormatter = $dateFormatter;
- $this->drupalApi = $drupalApi;
- }
-
- /**
- * @param $entity
- * @return array
- */
- private function getFields($entity)
- {
- $entityTypeId = $entity->getEntityType()->id();
- $bundle = $entity->bundle();
-
- $fields = array_filter(
- $this->entityFieldManager->getFieldDefinitions($entityTypeId, $bundle), function ($fieldDefinition) {
- return $fieldDefinition instanceof FieldConfigInterface;
- }
- );
-
- return $fields;
- }
-
- /**
- * @param
- * @param $entity
- */
- protected function generateFieldSampleData($entity)
- {
- $fields = $this->getFields($entity);
-
- /* @var \Drupal\field\FieldConfigInterface[] $fields */
- foreach ($fields as $field) {
- $fieldName = $field->getFieldStorageDefinition()->getName();
- $cardinality = $field->getFieldStorageDefinition()->getCardinality();
- if ($cardinality == FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED) {
- $cardinality = rand(1, 5);
- }
-
- $entity->$fieldName->generateSampleItems($cardinality);
- }
- }
-
- /**
- * Returns the random data generator.
- *
- * @return \Drupal\Component\Utility\Random
- * The random data generator.
- */
- protected function getRandom()
- {
- if (!$this->random) {
- $this->random = new Random();
- }
-
- return $this->random;
- }
-
- /**
- * Retrieve a random Uid of enabled users.
- *
- * @return array
- */
- protected function getUserId()
- {
- if (!$this->users) {
- $userStorage = $this->entityTypeManager->getStorage('user');
-
- $this->users = $userStorage->loadByProperties(['status' => true]);
- }
-
- return array_rand($this->users);
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/CommentData.php b/vendor/drupal/console/src/Utils/Create/CommentData.php
deleted file mode 100644
index 3d9a1f8d6..000000000
--- a/vendor/drupal/console/src/Utils/Create/CommentData.php
+++ /dev/null
@@ -1,73 +0,0 @@
-entityTypeManager->getStorage('comment')->create(
- [
- 'entity_id' => $nid,
- 'entity_type' => 'node',
- 'field_name' => 'comment',
- 'created' => REQUEST_TIME - mt_rand(0, $timeRange),
- 'uid' => $this->getUserID(),
- 'status' => true,
- 'subject' => $this->getRandom()->sentences(mt_rand(1, $titleWords), true),
- 'language' => 'und',
- 'comment_body' => ['und' => ['random body']],
- ]
- );
-
- $this->generateFieldSampleData($comment);
-
- $comment->save();
- $comments['success'][] = [
- 'nid' => $nid,
- 'cid' => $comment->id(),
- 'title' => $comment->getSubject(),
- 'created' => $this->dateFormatter->format(
- $comment->getCreatedTime(),
- 'custom',
- 'Y-m-d h:i:s'
- ),
- ];
- } catch (\Exception $error) {
- $comments['error'][] = $error->getMessage();
- }
- }
-
- return $comments;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/NodeData.php b/vendor/drupal/console/src/Utils/Create/NodeData.php
deleted file mode 100644
index f4d1f41fe..000000000
--- a/vendor/drupal/console/src/Utils/Create/NodeData.php
+++ /dev/null
@@ -1,75 +0,0 @@
-drupalApi->getBundles();
- for ($i = 0; $i < $limit; $i++) {
- try {
- $contentType = $contentTypes[array_rand($contentTypes)];
- $node = $this->entityTypeManager->getStorage('node')->create(
- [
- 'nid' => null,
- 'type' => $contentType,
- 'created' => REQUEST_TIME - mt_rand(0, $timeRange),
- 'uid' => $this->getUserID(),
- 'title' => $this->getRandom()->sentences(mt_rand(1, $titleWords), true),
- 'revision' => mt_rand(0, 1),
- 'status' => true,
- 'promote' => mt_rand(0, 1),
- 'langcode' => $language
- ]
- );
-
- $this->generateFieldSampleData($node);
- $node->save();
- $nodes['success'][] = [
- 'nid' => $node->id(),
- 'node_type' => $bundles[$contentType],
- 'title' => $node->getTitle(),
- 'created' => $this->dateFormatter->format(
- $node->getCreatedTime(),
- 'custom',
- 'Y-m-d h:i:s'
- )
- ];
- } catch (\Exception $error) {
- $nodes['error'][] = $error->getMessage();
- }
- }
-
- return $nodes;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/RoleData.php b/vendor/drupal/console/src/Utils/Create/RoleData.php
deleted file mode 100644
index 53fb21686..000000000
--- a/vendor/drupal/console/src/Utils/Create/RoleData.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getRandom()->word(mt_rand(6, 12));
-
- $role = $this->entityTypeManager->getStorage('user_role')->create(
- [
- 'id' => $rolename,
- 'label' => $rolename,
- 'originalId' => $rolename
- ]
- );
-
- $role->save();
-
- $roles['success'][] = [
- 'role-id' => $role->id(),
- 'role-name' => $role->get('label')
- ];
- } catch (\Exception $error) {
- $roles['error'][] = $error->getMessage();
- }
- }
-
- return $roles;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/TermData.php b/vendor/drupal/console/src/Utils/Create/TermData.php
deleted file mode 100644
index 1c1e838ab..000000000
--- a/vendor/drupal/console/src/Utils/Create/TermData.php
+++ /dev/null
@@ -1,65 +0,0 @@
-drupalApi->getVocabularies();
- $terms = [];
- for ($i = 0; $i < $limit; $i++) {
- try {
- $vocabulary = $vocabularies[array_rand($vocabularies)];
- $term = $this->entityTypeManager->getStorage('taxonomy_term')->create(
- [
- 'vid' => $vocabulary,
- 'name' => $this->getRandom()->sentences(mt_rand(1, $nameWords), true),
- 'description' => [
- 'value' => $this->getRandom()->sentences(mt_rand(1, $nameWords)),
- 'format' => 'full_html',
- ],
- 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
- ]
- );
- $term->save();
- $terms['success'][] = [
- 'tid' => $term->id(),
- 'vocabulary' => $siteVocabularies[$vocabulary],
- 'name' => $term->getName(),
- ];
- } catch (\Exception $error) {
- $terms['error'][] = $error->getMessage();
- }
- }
-
- return $terms;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/UserData.php b/vendor/drupal/console/src/Utils/Create/UserData.php
deleted file mode 100644
index 51a66d78b..000000000
--- a/vendor/drupal/console/src/Utils/Create/UserData.php
+++ /dev/null
@@ -1,80 +0,0 @@
-drupalApi->getRoles();
- $users = [];
- for ($i = 0; $i < $limit; $i++) {
- try {
- $username = $this->getRandom()->word(mt_rand(6, 12));
-
- $user = $this->entityTypeManager->getStorage('user')->create(
- [
- 'name' => $username,
- 'mail' => $username . '@example.com',
- 'pass' => $password?:$this->getRandom()->word(mt_rand(8, 16)),
- 'status' => mt_rand(0, 1),
- 'roles' => $roles[array_rand($roles)],
- 'created' => REQUEST_TIME - mt_rand(0, $timeRange),
- ]
- );
-
- $user->save();
-
- $userRoles = [];
- foreach ($user->getRoles() as $userRole) {
- if (!empty($siteRoles[$userRole])) {
- $userRoles[] = $siteRoles[$userRole];
- }
- }
-
- $users['success'][] = [
- 'user-id' => $user->id(),
- 'username' => $user->getUsername(),
- 'roles' => implode(', ', $userRoles),
- 'created' => $this->dateFormatter->format(
- $user->getCreatedTime(),
- 'custom',
- 'Y-m-d h:i:s'
- )
- ];
- } catch (\Exception $error) {
- $users['error'][] = $error->getMessage();
- }
- }
-
- return $users;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Create/VocabularyData.php b/vendor/drupal/console/src/Utils/Create/VocabularyData.php
deleted file mode 100644
index 5a7dc3ef1..000000000
--- a/vendor/drupal/console/src/Utils/Create/VocabularyData.php
+++ /dev/null
@@ -1,60 +0,0 @@
-entityTypeManager->getStorage('taxonomy_vocabulary')->create(
- [
- 'name' => $this->getRandom()->sentences(mt_rand(1, $nameWords), true),
- 'description' => $this->getRandom()->sentences(mt_rand(1, $nameWords)),
- 'vid' => Unicode::strtolower($this->getRandom()->name()),
- 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
- 'weight' => mt_rand(0, 10),
- ]
- );
- $vocabulary->save();
- $vocabularies['success'][] = [
- 'vid' => $vocabulary->id(),
- 'vocabulary' => $vocabulary->get('name'),
- ];
- } catch (\Exception $error) {
- $vocabularies['error'][] = $error->getMessage();
- }
- }
-
- return $vocabularies;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/DrupalApi.php b/vendor/drupal/console/src/Utils/DrupalApi.php
deleted file mode 100644
index 64a740585..000000000
--- a/vendor/drupal/console/src/Utils/DrupalApi.php
+++ /dev/null
@@ -1,362 +0,0 @@
-appRoot = $appRoot;
- $this->entityTypeManager = $entityTypeManager;
- $this->httpClient = $httpClient;
- }
-
- /**
- * @return string
- */
- public function getDrupalVersion()
- {
- return \Drupal::VERSION;
- }
-
- /**
- * Auxiliary function to get all available drupal caches.
- *
- * @return \Drupal\Core\Cache\CacheBackendInterface[] The all available drupal caches
- */
- public function getCaches()
- {
- if (!$this->caches) {
- foreach (Cache::getBins() as $name => $bin) {
- $this->caches[$name] = $bin;
- }
- }
-
- return $this->caches;
- }
-
- /**
- * Validate if a string is a valid cache.
- *
- * @param string $cache The cache name
- *
- * @return mixed The cache name if valid or FALSE if not valid
- */
- public function isValidCache($cache)
- {
- // Get the valid caches
- $caches = $this->getCaches();
- $cacheKeys = array_keys($caches);
- $cacheKeys[] = 'all';
-
- if (!in_array($cache, array_values($cacheKeys))) {
- return false;
- }
-
- return $cache;
- }
-
- /**
- * @return array
- */
- public function getBundles()
- {
- if (!$this->bundles) {
- $nodeTypes = $this->entityTypeManager->getStorage('node_type')->loadMultiple();
-
- foreach ($nodeTypes as $nodeType) {
- $this->bundles[$nodeType->id()] = $nodeType->label();
- }
- }
-
- return $this->bundles;
- }
-
- /**
- * @return array
- */
- public function getVocabularies()
- {
- if (!$this->vocabularies) {
- $vocabularies = $this->entityTypeManager->getStorage('taxonomy_vocabulary')->loadMultiple();
-
- foreach ($vocabularies as $vocabulary) {
- $this->vocabularies[$vocabulary->id()] = $vocabulary->label();
- }
- }
-
- return $this->vocabularies;
- }
-
- /**
- * @param bool|FALSE $reset
- * @param bool|FALSE $authenticated
- * @param bool|FALSE $anonymous
- *
- * @return array
- */
- public function getRoles($reset=false, $authenticated=false, $anonymous=false)
- {
- if ($reset || !$this->roles) {
- $roles = $this->entityTypeManager->getStorage('user_role')->loadMultiple();
- if (!$authenticated) {
- unset($roles['authenticated']);
- }
- if (!$anonymous) {
- unset($roles['anonymous']);
- }
- foreach ($roles as $role) {
- $this->roles[$role->id()] = $role->label();
- }
- }
-
- return $this->roles;
- }
-
- /**
- * @param $module
- * @param $limit
- * @param $stable
- * @return array
- * @throws \Exception
- */
- public function getProjectReleases($module, $limit = 10, $stable = false)
- {
- if (!$module) {
- return [];
- }
-
- $projectPageResponse = $this->httpClient->getUrlAsString(
- sprintf(
- 'https://updates.drupal.org/release-history/%s/8.x',
- $module
- )
- );
-
- if ($projectPageResponse->getStatusCode() != 200) {
- throw new \Exception('Invalid path.');
- }
-
- $releases = [];
- $crawler = new Crawler($projectPageResponse->getBody()->getContents());
- $filter = './project/releases/release/version';
- if ($stable) {
- $filter = './project/releases/release[not(version_extra)]/version';
- }
-
- foreach ($crawler->filterXPath($filter) as $element) {
- $releases[] = $element->nodeValue;
- }
-
- if (count($releases)>$limit) {
- array_splice($releases, $limit);
- }
-
- return $releases;
- }
-
- /**
- * @param $project
- * @param $release
- * @param null $destination
- * @return null|string
- */
- public function downloadProjectRelease($project, $release, $destination = null)
- {
- if (!$release) {
- $releases = $this->getProjectReleases($project, 1);
- $release = current($releases);
- }
-
- if (!$destination) {
- $destination = sprintf(
- '%s/%s.tar.gz',
- sys_get_temp_dir(),
- $project
- );
- }
-
- $releaseFilePath = sprintf(
- 'https://ftp.drupal.org/files/projects/%s-%s.tar.gz',
- $project,
- $release
- );
-
- if ($this->downloadFile($releaseFilePath, $destination)) {
- return $destination;
- }
-
- return null;
- }
-
- public function downloadFile($url, $destination)
- {
- $this->httpClient->get($url, ['sink' => $destination]);
-
- return file_exists($destination);
- }
-
- /**
- * Gets Drupal modules releases from Packagist API.
- *
- * @param string $module
- * @param int $limit
- * @param bool $unstable
- *
- * @return array
- */
- public function getPackagistModuleReleases($module, $limit = 10, $unstable = true)
- {
- if (!trim($module)) {
- return [];
- }
-
- return $this->getComposerReleases(
- sprintf(
- 'http://packagist.drupal-composer.org/packages/drupal/%s.json',
- trim($module)
- ),
- $limit,
- $unstable
- );
- }
-
- /**
- * Gets Drupal releases from Packagist API.
- *
- * @param string $url
- * @param int $limit
- * @param bool $unstable
- *
- * @return array
- */
- private function getComposerReleases($url, $limit = 10, $unstable = false)
- {
- if (!$url) {
- return [];
- }
-
- $packagistResponse = $this->httpClient->getUrlAsString($url);
-
- if ($packagistResponse->getStatusCode() != 200) {
- throw new \Exception('Invalid path.');
- }
-
- try {
- $packagistJson = json_decode(
- $packagistResponse->getBody()->getContents()
- );
- } catch (\Exception $e) {
- return [];
- }
-
- $versions = array_keys((array)$packagistJson->package->versions);
-
- // Remove Drupal 7 versions
- $i = 0;
- foreach ($versions as $version) {
- if (0 === strpos($version, "7.") || 0 === strpos($version, "dev-7.")) {
- unset($versions[$i]);
- }
- $i++;
- }
-
- if (!$unstable) {
- foreach ($versions as $key => $version) {
- if (strpos($version, "-")) {
- unset($versions[$key]);
- }
- }
- }
-
- if (is_array($versions)) {
- return array_slice($versions, 0, $limit);
- }
-
- return [];
- }
-
- /**
- * @Todo: Remove when issue https://www.drupal.org/node/2556025 get resolved
- *
- * Rebuilds all caches even when Drupal itself does not work.
- *
- * @param \Composer\Autoload\ClassLoader $class_loader
- * The class loader.
- * @param \Symfony\Component\HttpFoundation\Request $request
- * The current request.
- *
- * @see rebuild.php
- */
- public function drupal_rebuild($class_loader, \Symfony\Component\HttpFoundation\Request $request)
- {
- // Remove Drupal's error and exception handlers; they rely on a working
- // service container and other subsystems and will only cause a fatal error
- // that hides the actual error.
- restore_error_handler();
- restore_exception_handler();
-
- // Force kernel to rebuild php cache.
- \Drupal\Core\PhpStorage\PhpStorageFactory::get('twig')->deleteAll();
-
- // Bootstrap up to where caches exist and clear them.
- $kernel = new \Drupal\Core\DrupalKernel('prod', $class_loader);
- $kernel->setSitePath(\Drupal\Core\DrupalKernel::findSitePath($request));
-
- // Invalidate the container.
- $kernel->invalidateContainer();
-
- // Prepare a NULL request.
- $kernel->prepareLegacyRequest($request);
-
- foreach (Cache::getBins() as $bin) {
- $bin->deleteAll();
- }
-
- // Disable recording of cached pages.
- \Drupal::service('page_cache_kill_switch')->trigger();
-
- drupal_flush_all_caches();
-
- // Restore Drupal's error and exception handlers.
- // @see \Drupal\Core\DrupalKernel::boot()
- set_error_handler('_drupal_error_handler');
- set_exception_handler('_drupal_exception_handler');
- }
-}
diff --git a/vendor/drupal/console/src/Utils/MigrateExecuteMessageCapture.php b/vendor/drupal/console/src/Utils/MigrateExecuteMessageCapture.php
deleted file mode 100644
index bc0565e30..000000000
--- a/vendor/drupal/console/src/Utils/MigrateExecuteMessageCapture.php
+++ /dev/null
@@ -1,49 +0,0 @@
-messages[] = $message;
- }
-
- /**
- * Clear out any captured messages.
- */
- public function clear()
- {
- $this->messages = [];
- }
-
- /**
- * Return any captured messages.
- *
- * @return array
- */
- public function getMessages()
- {
- return $this->messages;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Site.php b/vendor/drupal/console/src/Utils/Site.php
deleted file mode 100644
index f3baffc05..000000000
--- a/vendor/drupal/console/src/Utils/Site.php
+++ /dev/null
@@ -1,241 +0,0 @@
-appRoot = $appRoot;
- $this->configurationManager = $configurationManager;
- }
-
- public function loadLegacyFile($legacyFile, $relative = true)
- {
- if ($relative) {
- $legacyFile = realpath(
- sprintf('%s/%s', $this->appRoot, $legacyFile)
- );
- }
-
- if (file_exists($legacyFile)) {
- include_once $legacyFile;
-
- return true;
- }
-
- return false;
- }
-
- /**
- * @return array
- */
- public function getStandardLanguages()
- {
- $standardLanguages = LanguageManager::getStandardLanguageList();
- $languages = [];
- foreach ($standardLanguages as $langcode => $standardLanguage) {
- $languages[$langcode] = $standardLanguage[0];
- }
-
- return $languages;
- }
-
- /**
- * @return array
- */
- public function getDatabaseTypes()
- {
- $this->loadLegacyFile('/core/includes/install.inc');
- $this->setMinimalContainerPreKernel();
-
- $driverDirectories = [
- $this->appRoot . '/core/lib/Drupal/Core/Database/Driver',
- $this->appRoot . '/drivers/lib/Drupal/Driver/Database'
- ];
-
- $driverDirectories = array_filter(
- $driverDirectories,
- function ($directory) {
- return is_dir($directory);
- }
- );
-
- $finder = new Finder();
- $finder->directories()
- ->in($driverDirectories)
- ->depth('== 0');
-
- $databases = [];
- foreach ($finder as $driver_folder) {
- if (file_exists($driver_folder->getRealpath() . '/Install/Tasks.php')) {
- $driver = $driver_folder->getBasename();
- $installer = db_installer_object($driver);
- // Verify if database is installable
- if ($installer->installable()) {
- $reflection = new \ReflectionClass($installer);
- $install_namespace = $reflection->getNamespaceName();
- // Cut the trailing \Install from namespace.
- $driver_class = substr($install_namespace, 0, strrpos($install_namespace, '\\'));
- $databases[$driver] = ['namespace' => $driver_class, 'name' =>$installer->name()];
- }
- }
- }
-
- return $databases;
- }
-
- protected function setMinimalContainerPreKernel()
- {
- // Create a minimal mocked container to support calls to t() in the pre-kernel
- // base system verification code paths below. The strings are not actually
- // used or output for these calls.
- $container = new ContainerBuilder();
- $container->setParameter('language.default_values', Language::$defaultValues);
- $container
- ->register('language.default', 'Drupal\Core\Language\LanguageDefault')
- ->addArgument('%language.default_values%');
- $container
- ->register('string_translation', 'Drupal\Core\StringTranslation\TranslationManager')
- ->addArgument(new Reference('language.default'));
-
- // Register the stream wrapper manager.
- $container
- ->register('stream_wrapper_manager', 'Drupal\Core\StreamWrapper\StreamWrapperManager')
- ->addMethodCall('setContainer', [new Reference('service_container')]);
- $container
- ->register('file_system', 'Drupal\Core\File\FileSystem')
- ->addArgument(new Reference('stream_wrapper_manager'))
- ->addArgument(Settings::getInstance())
- ->addArgument((new LoggerChannelFactory())->get('file'));
-
- \Drupal::setContainer($container);
- }
-
- public function getDatabaseTypeDriver($driver)
- {
- // We cannot use Database::getConnection->getDriverClass() here, because
- // the connection object is not yet functional.
- $task_class = "Drupal\\Core\\Database\\Driver\\{$driver}\\Install\\Tasks";
- if (class_exists($task_class)) {
- return new $task_class();
- } else {
- $task_class = "Drupal\\Driver\\Database\\{$driver}\\Install\\Tasks";
- return new $task_class();
- }
- }
-
- /**
- * @return mixed
- */
- public function getAutoload()
- {
- $autoLoadFile = $this->appRoot.'/autoload.php';
-
- return include $autoLoadFile;
- }
-
- /**
- * @return boolean
- */
- public function multisiteMode($uri)
- {
- if ($uri != 'default') {
- return true;
- }
-
- return false;
- }
-
- /**
- * @return boolean
- */
- public function validMultisite($uri)
- {
- $multiSiteFile = sprintf(
- '%s/sites/sites.php',
- $this->appRoot
- );
-
- if (file_exists($multiSiteFile)) {
- include $multiSiteFile;
- } else {
- return false;
- }
-
- if (isset($sites[$uri]) && is_dir($this->appRoot . "/sites/" . $sites[$uri])) {
- return true;
- }
-
- return false;
- }
-
- public function getCachedServicesFile()
- {
- if (!$this->cacheServicesFile) {
- $configFactory = \Drupal::configFactory();
- $siteId = $configFactory->get('system.site')
- ->get('uuid');
-
- $directory = \Drupal::service('stream_wrapper.temporary')
- ->getDirectoryPath();
-
- $this->cacheServicesFile = $directory . '/' . $siteId .
- '-console.services.yml';
- }
-
- return $this->cacheServicesFile;
- }
-
- public function cachedServicesFileExists()
- {
- return file_exists($this->getCachedServicesFile());
- }
-
- public function removeCachedServicesFile()
- {
- if ($this->cachedServicesFileExists()) {
- unlink($this->getCachedServicesFile());
- }
- }
-
- /**
- * @param string $root
- */
- public function setRoot($root)
- {
- $this->root = $root;
- }
-}
diff --git a/vendor/drupal/console/src/Utils/TranslatorManager.php b/vendor/drupal/console/src/Utils/TranslatorManager.php
deleted file mode 100644
index 835433c50..000000000
--- a/vendor/drupal/console/src/Utils/TranslatorManager.php
+++ /dev/null
@@ -1,115 +0,0 @@
-language
- );
-
- if (!is_dir($languageDirectory)) {
- return;
- }
- $finder = new Finder();
- $finder->files()
- ->name('*.yml')
- ->in($languageDirectory);
- foreach ($finder as $file) {
- $resource = $languageDirectory . '/' . $file->getBasename();
- $filename = $file->getBasename('.yml');
- $key = 'commands.' . $filename;
- try {
- $this->loadTranslationByFile($resource, $key);
- } catch (ParseException $e) {
- echo $key . '.yml ' . $e->getMessage();
- }
- }
- }
-
- /**
- * @param $module
- */
- private function addResourceTranslationsByModule($module)
- {
- if (!\Drupal::moduleHandler()->moduleExists($module)) {
- return;
- }
- $extensionPath = \Drupal::moduleHandler()->getModule($module)->getPath();
- $this->addResourceTranslationsByExtensionPath(
- $extensionPath
- );
- }
-
- /**
- * @param $theme
- */
- private function addResourceTranslationsByTheme($theme)
- {
- $extensionPath = \Drupal::service('theme_handler')->getTheme($theme)->getPath();
- $this->addResourceTranslationsByExtensionPath(
- $extensionPath
- );
- }
-
- /**
- * @param $library
- */
- private function addResourceTranslationsByLibrary($library)
- {
- /** @var \Drupal\Console\Core\Utils\DrupalFinder $drupalFinder */
- $drupalFinder = \Drupal::service('console.drupal_finder');
- $path = $drupalFinder->getComposerRoot() . '/vendor/' . $library;
- $this->addResourceTranslationsByExtensionPath(
- $path
- );
- }
-
- /**
- * @param $extension
- * @param $type
- */
- public function addResourceTranslationsByExtension($extension, $type)
- {
- if (array_search($extension, $this->extensions) !== false) {
- return;
- }
-
- $this->extensions[] = $extension;
- if ($type == 'module') {
- $this->addResourceTranslationsByModule($extension);
- return;
- }
- if ($type == 'theme') {
- $this->addResourceTranslationsByTheme($extension);
- return;
- }
- if ($type == 'library') {
- $this->addResourceTranslationsByLibrary($extension);
- return;
- }
- }
-}
diff --git a/vendor/drupal/console/src/Utils/Validator.php b/vendor/drupal/console/src/Utils/Validator.php
deleted file mode 100644
index b70b93aee..000000000
--- a/vendor/drupal/console/src/Utils/Validator.php
+++ /dev/null
@@ -1,408 +0,0 @@
-extensionManager = $extensionManager;
- $this->translatorManager = $translatorManager;
- }
-
- public function validateModuleName($module)
- {
- if (!empty($module)) {
- return $module;
- } else {
- throw new \InvalidArgumentException(sprintf('Module name "%s" is invalid.', $module));
- }
- }
-
- public function validateClassName($class_name)
- {
- if (preg_match(self::REGEX_CLASS_NAME, $class_name)) {
- return $class_name;
- } else {
- throw new \InvalidArgumentException(
- sprintf(
- 'Class name "%s" is invalid, it must starts with a letter or underscore, followed by any number of letters, numbers, or underscores.',
- $class_name
- )
- );
- }
- }
-
- public function validateBundleTitle($bundle_title)
- {
- if (!empty($bundle_title)) {
- return $bundle_title;
- } else {
- throw new \InvalidArgumentException(sprintf('Bundle title "%s" is invalid.', $bundle_title));
- }
- }
-
- public function validateCommandName($class_name)
- {
- if (preg_match(self::REGEX_COMMAND_CLASS_NAME, $class_name)) {
- return $class_name;
- } elseif (preg_match(self::REGEX_CLASS_NAME, $class_name)) {
- throw new \InvalidArgumentException(
- sprintf(
- 'Command name "%s" is invalid, it must end with the word \'Command\'',
- $class_name
- )
- );
- } else {
- throw new \InvalidArgumentException(
- sprintf(
- 'Command name "%s" is invalid, it must starts with a letter or underscore, followed by any number of letters, numbers, or underscores and then with the word \'Command\'.',
- $class_name
- )
- );
- }
- }
-
- public function validateControllerName($class_name)
- {
- if (preg_match(self::REGEX_CONTROLLER_CLASS_NAME, $class_name)) {
- return $class_name;
- } elseif (preg_match(self::REGEX_CLASS_NAME, $class_name)) {
- throw new \InvalidArgumentException(
- sprintf(
- 'Controller name "%s" is invalid, it must end with the word \'Controller\'',
- $class_name
- )
- );
- } else {
- throw new \InvalidArgumentException(
- sprintf(
- 'Controller name "%s" is invalid, it must starts with a letter or underscore, followed by any number of letters, numbers, or underscores and then with the word \'Controller\'.',
- $class_name
- )
- );
- }
- }
-
- public function validateMachineName($machine_name)
- {
- if (preg_match(self::REGEX_MACHINE_NAME, $machine_name)) {
- return $machine_name;
- } else {
- throw new \InvalidArgumentException(
- sprintf(
- 'Machine name "%s" is invalid, it must contain only lowercase letters, numbers and underscores.',
- $machine_name
- )
- );
- }
- }
-
- public function validateModulePath($module_path, $create = false)
- {
- if (strlen($module_path) > 1 && $module_path[strlen($module_path)-1] == "/") {
- $module_path = substr($module_path, 0, -1);
- }
-
- if (is_dir($module_path)) {
- chmod($module_path, 0755);
- return $module_path;
- }
-
-
- if ($create && mkdir($module_path, 0755, true)) {
- return $module_path;
- }
-
- throw new \InvalidArgumentException(
- sprintf(
- 'Path "%s" is invalid. You need to provide a valid path.',
- $module_path
- )
- );
- }
-
- public function validateMachineNameList($list)
- {
- $list_checked = [
- 'success' => [],
- 'fail' => [],
- ];
-
- if (empty($list)) {
- return [];
- }
-
- $list = explode(',', $this->removeSpaces($list));
- foreach ($list as $key => $module) {
- if (!empty($module)) {
- if (preg_match(self::REGEX_MACHINE_NAME, $module)) {
- $list_checked['success'][] = $module;
- } else {
- $list_checked['fail'][] = $module;
- }
- }
- }
-
- return $list_checked;
- }
-
- /**
- * Validate if service name exist.
- *
- * @param string $service Service name
- * @param array $services Array of services
- *
- * @return string
- */
- public function validateServiceExist($service, $services)
- {
- if ($service == '') {
- return null;
- }
-
- if (!in_array($service, array_values($services))) {
- throw new \InvalidArgumentException(sprintf('Service "%s" is invalid.', $service));
- }
-
- return $service;
- }
-
- /**
- * Validate if service name exist.
- *
- * @param string $service Service name
- * @param array $services Array of services
- *
- * @return string
- */
- public function validatePluginManagerServiceExist($service, $services)
- {
- if ($service == '') {
- return null;
- }
-
- if (!in_array($service, array_values($services))) {
- throw new \InvalidArgumentException(sprintf('Plugin "%s" is invalid.', $service));
- }
-
- return $service;
- }
-
- /**
- * Validate if event name exist.
- *
- * @param string $event Event name
- * @param array $events Array of events
- *
- * @return string
- */
- public function validateEventExist($event, $events)
- {
- if ($event == '') {
- return null;
- }
-
- if (!in_array($event, array_values($events))) {
- throw new \InvalidArgumentException(sprintf('Event "%s" is invalid.', $event));
- }
-
- return $event;
- }
-
- /**
- * Validates if class name have spaces between words.
- *
- * @param string $name
- *
- * @return string
- */
- public function validateSpaces($name)
- {
- $string = $this->removeSpaces($name);
- if ($string == $name) {
- return $name;
- } else {
- throw new \InvalidArgumentException(
- sprintf(
- 'The name "%s" is invalid, spaces between words are not allowed.',
- $name
- )
- );
- }
- }
-
- public function removeSpaces($name)
- {
- return preg_replace(self::REGEX_REMOVE_SPACES, '', $name);
- }
-
- /**
- * @param $moduleList
- * @return array
- */
- public function getMissingModules($moduleList)
- {
- $modules = $this->extensionManager->discoverModules()
- ->showInstalled()
- ->showUninstalled()
- ->showNoCore()
- ->showCore()
- ->getList(true);
-
- return array_diff($moduleList, $modules);
- }
-
- /**
- * @param $moduleList
- * @return array
- */
- public function getUninstalledModules($moduleList)
- {
- $modules = $this->extensionManager->discoverModules()
- ->showInstalled()
- ->showNoCore()
- ->showCore()
- ->getList(true);
-
- return array_diff($moduleList, $modules);
- }
-
- /**
- * @param string $extensions_list
- * @param string $type
- * @param DrupalStyle $io
- *
- * @return array
- */
- public function validateExtensions($extensions_list, $type, DrupalStyle $io)
- {
- $extensions = $this->validateMachineNameList($extensions_list);
- // Check if all extensions are available
- if ($extensions) {
- $checked_extensions = $this->extensionManager->checkExtensions($extensions['success'], $type);
- if (!empty($checked_extensions['no_extensions'])) {
- $io->warning(
- sprintf(
- $this->translatorManager->trans('commands.generate.module.warnings.module-unavailable'),
- implode(', ', $checked_extensions['no_extensions'])
- )
- );
- }
- $extensions = $extensions['success'];
- }
-
- return $extensions;
- }
-
- /**
- * Validate if http methods exist.
- *
- * @param array $httpMethods Array http methods.
- * @param array $availableHttpMethods Array of available http methods.
- *
- * @return string
- */
- public function validateHttpMethods($httpMethods, $availableHttpMethods)
- {
- if (empty($httpMethods)) {
- return null;
- }
-
- $missing_methods = array_diff(array_values($httpMethods), array_keys($availableHttpMethods));
- if (!empty($missing_methods)) {
- throw new \InvalidArgumentException(sprintf('HTTP methods "%s" are invalid.', implode(', ', $missing_methods)));
- }
-
- return $httpMethods;
- }
-
- /**
- * Validates role existence or non existence.
- *
- * @param string $role
- * Role machine name.
- * @param array $roles
- * Array of available roles.
- * @param bool $checkExistence
- * To check existence or non existence.
- *
- * @return string|null
- * Role machine name.
- */
- private function validateRole($role, $roles, $checkExistence = true)
- {
- if (empty($roles)) {
- return null;
- }
-
- $roleExists = array_key_exists($role, $roles);
- $condition = $checkExistence ? !$roleExists : $roleExists;
- if ($condition) {
- $errorMessage = $checkExistence ? "Role %s doesn't exist" : 'Role %s already exists';
- throw new \InvalidArgumentException(sprintf($errorMessage, $role));
- }
-
- return $role;
- }
-
- /**
- * Validate if the role already exists.
- *
- * @param string $role
- * Role machine name.
- * @param array $roles
- * Array of available roles.
- *
- * @return string|null
- * Role machine name.
- */
- public function validateRoleExistence($role, $roles) {
- return $this->validateRole($role, $roles, true);
- }
-
- /**
- * Validate if the role doesn't exist.
- *
- * @param string $role
- * Role machine name.
- * @param array $roles
- * Array of available roles.
- *
- * @return string|null
- * Role machine name.
- */
- public function validateRoleNotExistence($role, $roles) {
- return $this->validateRole($role, $roles, false);
- }
-}
diff --git a/vendor/drupal/console/src/Zippy/Adapter/TarGzGNUTarForWindowsAdapter.php b/vendor/drupal/console/src/Zippy/Adapter/TarGzGNUTarForWindowsAdapter.php
deleted file mode 100644
index 143c8b94a..000000000
--- a/vendor/drupal/console/src/Zippy/Adapter/TarGzGNUTarForWindowsAdapter.php
+++ /dev/null
@@ -1,36 +0,0 @@
- '{{ database }}',
- 'username' => '{{ username }}',
- 'password' => '{{ password }}',
- 'host' => '{{ host }}',
- 'port' => '{{ port }}',
- 'driver' => '{{ driver }}',
- 'prefix' => '{{ prefix }}',
-];
diff --git a/vendor/drupal/console/templates/files/.env.dist.twig b/vendor/drupal/console/templates/files/.env.dist.twig
deleted file mode 100644
index 316076390..000000000
--- a/vendor/drupal/console/templates/files/.env.dist.twig
+++ /dev/null
@@ -1,25 +0,0 @@
-{{ yaml_comment('commands.dotenv.init.messages.template-env') }}
-
-# ENV
-ENVIRONMENT={{ environment }}
-
-# Database
-DATABASE_NAME={{ database_name }}
-DATABASE_USER={{ database_user }}
-DATABASE_PASSWORD={{ database_password }}
-DATABASE_HOST={{ database_host }}
-DATABASE_PORT={{ database_port }}
-
-# HOST
-HOST_NAME={{ host_name }}
-HOST_PORT={{ host_port }}
-
-# Default values for drupal-composer
-DRUPAL_ROOT={{ drupal_root }}
-SERVER_ROOT={{ server_root }}
-
-{% if load_settings is defined %}
-# SETTINGS
-SETTINGS_BAR=baz
-SETTINGS_LOREM=ipsum
-{% endif %}
diff --git a/vendor/drupal/console/templates/files/.gitignore.dist b/vendor/drupal/console/templates/files/.gitignore.dist
deleted file mode 100644
index 2be09c853..000000000
--- a/vendor/drupal/console/templates/files/.gitignore.dist
+++ /dev/null
@@ -1,7 +0,0 @@
-
-# dotenv file
-.env
-
-# backup files
-*.original
-*.backup
\ No newline at end of file
diff --git a/vendor/drupal/console/templates/files/docker-compose.yml.twig b/vendor/drupal/console/templates/files/docker-compose.yml.twig
deleted file mode 100644
index 974a31d0a..000000000
--- a/vendor/drupal/console/templates/files/docker-compose.yml.twig
+++ /dev/null
@@ -1,73 +0,0 @@
-version: "2.3"
-
-services:
- mariadb:
- image: wodby/mariadb:10.2-3.0.2
- env_file: ./.env
- environment:
- MYSQL_RANDOM_ROOT_PASSWORD: 'true'
- MYSQL_DATABASE: ${DATABASE_NAME}
- MYSQL_USER: ${DATABASE_USER}
- MYSQL_PASSWORD: ${DATABASE_PASSWORD}
- volumes:
- - mysqldata:/var/lib/mysql
- # Uncomment next line and place DDb dump.sql file(s) here
- # - ./mariadb-init:/docker-entrypoint-initdb.d
- healthcheck:
- test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
- timeout: 20s
- retries: 10
-
- php:
- image: wodby/drupal-php:7.0-2.4.3
- env_file: ./.env
- environment:
- PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
- DB_HOST: ${DATABASE_HOST}
- DB_USER: ${DATABASE_USER}
- DB_PASSWORD: ${DATABASE_PASSWORD}
- DB_NAME: ${DATABASE_NAME}
- DB_DRIVER: mysql
- volumes:
- - ./:${DRUPAL_ROOT}{{ volume_configuration }}
- depends_on:
- mariadb:
- condition: service_healthy
-
- nginx:
- image: wodby/drupal-nginx:8-1.13-2.4.2
- env_file: ./.env
- depends_on:
- - php
- environment:
- NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
- NGINX_ERROR_LOG_LEVEL: debug
- NGINX_BACKEND_HOST: php
- NGINX_SERVER_ROOT: ${SERVER_ROOT}
- volumes:
- - ./:${DRUPAL_ROOT}{{ volume_configuration }}
- labels:
- - 'traefik.backend=nginx'
- - 'traefik.port=80'
- - 'traefik.frontend.rule=Host:${HOST_NAME}'
-
- mailhog:
- image: mailhog/mailhog
- env_file: ./.env
- labels:
- - 'traefik.backend=mailhog'
- - 'traefik.port=8025'
- - 'traefik.frontend.rule=Host:mailhog.${HOST_NAME}'
-
- traefik:
- image: traefik
- env_file: ./.env
- command: -c /dev/null --web --docker --logLevel=INFO
- ports:
- - '${HOST_PORT}:80'
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
-
-volumes:
- mysqldata:
- driver: "local"
diff --git a/vendor/drupal/console/templates/files/settings.php.twig b/vendor/drupal/console/templates/files/settings.php.twig
deleted file mode 100644
index d98d00d5a..000000000
--- a/vendor/drupal/console/templates/files/settings.php.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-{% if load_from_env is defined %}
-{{ yaml_comment('commands.dotenv.init.messages.load-from-env') }}
-{% endif %}
-
-# Load environment
-$env = getenv('ENVIRONMENT');
-
-{% if load_settings is defined %}
-{{ yaml_comment('commands.dotenv.init.messages.load-settings') }}
-{% endif %}
-$base_path = $app_root . '/' . $site_path;
-$servicesFile = $base_path . '/services.'.$env.'.yml';
-$settingsFile = $base_path . '/settings.'.$env.'.php';
-
-// Load services definition file.
-if (file_exists($servicesFile)) {
- $settings['container_yamls'][] = $servicesFile;
-}
-
-// Load settings file.
-if (file_exists($settingsFile)) {
- include $settingsFile;
-}
-
-$databases['default']['default'] = array (
- 'database' => getenv('DATABASE_NAME'),
- 'username' => getenv('DATABASE_USER'),
- 'password' => getenv('DATABASE_PASSWORD'),
- 'prefix' => '',
- 'host' => getenv('DATABASE_HOST'),
- 'port' => getenv('DATABASE_PORT'),
- 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
- 'driver' => 'mysql',
-);
diff --git a/vendor/drupal/console/templates/module/Tests/Controller/controller.php.twig b/vendor/drupal/console/templates/module/Tests/Controller/controller.php.twig
deleted file mode 100644
index d963c6652..000000000
--- a/vendor/drupal/console/templates/module/Tests/Controller/controller.php.twig
+++ /dev/null
@@ -1,47 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Tests\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Tests;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\simpletest\WebTestBase;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides automated tests for the {{module}} module.
- */
-class {{class_name}}Test extends WebTestBase {% endblock %}
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public static function getInfo() {
- return [
- 'name' => "{{module}} {{class_name}}'s controller functionality",
- 'description' => 'Test Unit for module {{module}} and controller {{class_name}}.',
- 'group' => 'Other',
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function setUp() {
- parent::setUp();
- }
-
- /**
- * Tests {{module}} functionality.
- */
- public function test{{class_name}}() {
- // Check that the basic functions of module {{module}}.
- $this->assertEquals(TRUE, TRUE, 'Test Unit Generated via Drupal Console.');
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/composer.json.twig b/vendor/drupal/console/templates/module/composer.json.twig
deleted file mode 100644
index 232f89d3e..000000000
--- a/vendor/drupal/console/templates/module/composer.json.twig
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "drupal/{{ machine_name }}",
- "type": "drupal-{{ type }}",
- "description": "{{ description }}",
- "keywords": ["Drupal"],
- "license": "GPL-2.0+",
- "homepage": "https://www.drupal.org/project/{{ machine_name }}",
- "minimum-stability": "dev",
- "support": {
- "issues": "https://www.drupal.org/project/issues/{{ machine_name }}",
- "source": "http://cgit.drupalcode.org/{{ machine_name }}"
- },
- "require": { }
-}
diff --git a/vendor/drupal/console/templates/module/config/install/field.default.yml.twig b/vendor/drupal/console/templates/module/config/install/field.default.yml.twig
deleted file mode 100644
index d25f3b029..000000000
--- a/vendor/drupal/console/templates/module/config/install/field.default.yml.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-{{ module_name }}:
-{% for input in inputs %}
-{% if input.default_value is defined and input.default_value|length %}
-{% if input.default_value is iterable %}
- {{ input.name }}:
-{% for value in input.default_value %}
- - {{ value }}
-{% endfor %}
-{% else %}
-{% if input.type in ['checkbox','number','radio'] %}
- {{ input.name }}: {{ input.default_value }}
-{% else %}
- {{ input.name }}: "{{ input.default_value }}"
-{% endif %}
-{% endif %}
-{% endif %}
-{% endfor %}
diff --git a/vendor/drupal/console/templates/module/config/schema/entity.schema.yml.twig b/vendor/drupal/console/templates/module/config/schema/entity.schema.yml.twig
deleted file mode 100644
index 91f111cd2..000000000
--- a/vendor/drupal/console/templates/module/config/schema/entity.schema.yml.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ module }}.{{ entity_name }}.*:
- type: config_entity
- label: '{{ label }} config'
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- uuid:
- type: string
diff --git a/vendor/drupal/console/templates/module/entity-content-page.php.twig b/vendor/drupal/console/templates/module/entity-content-page.php.twig
deleted file mode 100644
index 4b855e446..000000000
--- a/vendor/drupal/console/templates/module/entity-content-page.php.twig
+++ /dev/null
@@ -1,34 +0,0 @@
-{% extends "base/file.php.twig" %}
-
-{% block file_path %}
-{{ entity_name }}.page.inc{% endblock %}
-{% block extra_info %}
- *
- * Page callback for {{ label }} entities.
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Render\Element;
-{% endblock %}
-
-{% block file_methods %}
-/**
- * Prepares variables for {{ label }} templates.
- *
- * Default template: {{ entity_name }}.html.twig.
- *
- * @param array $variables
- * An associative array containing:
- * - elements: An associative array containing the user information and any
- * - attributes: HTML attributes for the containing element.
- */
-function template_preprocess_{{ entity_name | machine_name }}(array &$variables) {
- // Fetch {{ entity_class }} Entity Object.
- ${{ entity_name | machine_name }} = $variables['elements']['#{{ entity_name }}'];
-
- // Helpful $content variable for templates.
- foreach (Element::children($variables['elements']) as $key) {
- $variables['content'][$key] = $variables['elements'][$key];
- }
-}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/features.yml.twig b/vendor/drupal/console/templates/module/features.yml.twig
deleted file mode 100644
index 894cdfd40..000000000
--- a/vendor/drupal/console/templates/module/features.yml.twig
+++ /dev/null
@@ -1 +0,0 @@
-bundle: {{ bundle }}
diff --git a/vendor/drupal/console/templates/module/help.php.twig b/vendor/drupal/console/templates/module/help.php.twig
deleted file mode 100644
index 28248c1e5..000000000
--- a/vendor/drupal/console/templates/module/help.php.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{% block file_methods %}
-{% if not file_exists %}
-{% include 'module/php_tag.php.twig' %}
-{% endif %}
-use Drupal\Core\Routing\RouteMatchInterface;
-/**
- * Implements hook_help().
- */
-function {{machine_name}}_help($route_name, RouteMatchInterface $route_match) {
- switch ($route_name) {
- // Main module help for the {{ machine_name }} module.
- case 'help.page.{{ machine_name }}':
- $output = '';
- $output .= '' . t('About') . '
';
- $output .= '' . t('{{ description|escape }}') . '
';
- return $output;
-
- default:
- }
-}
-
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/info.yml.twig b/vendor/drupal/console/templates/module/info.yml.twig
deleted file mode 100644
index e3e1f4382..000000000
--- a/vendor/drupal/console/templates/module/info.yml.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-name: '{{ module }}'
-type: {{ type }}
-description: '{{ description }}'
-core: {{ core }}
-package: '{{ package }}'
-{% if dependencies %}
-dependencies:
-{% for dependency in dependencies %}
- - {{ dependency }}
-{% endfor %}
-{% endif %}
diff --git a/vendor/drupal/console/templates/module/js/commands.php.twig b/vendor/drupal/console/templates/module/js/commands.php.twig
deleted file mode 100644
index 1c37459dc..000000000
--- a/vendor/drupal/console/templates/module/js/commands.php.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-(function ($, Drupal) {
-Drupal.AjaxCommands.prototype.{{ method }} = function (ajax, response, status) {
- console.log(response.message);
-}
-})(jQuery, Drupal);
\ No newline at end of file
diff --git a/vendor/drupal/console/templates/module/links.action-entity-content.yml.twig b/vendor/drupal/console/templates/module/links.action-entity-content.yml.twig
deleted file mode 100644
index 4422abc38..000000000
--- a/vendor/drupal/console/templates/module/links.action-entity-content.yml.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-entity.{{ entity_name }}.add_form:
-{# Note: a content entity with bundles will add via a dedicated controller. #}
-{% if not bundle_entity_type %}
- route_name: entity.{{ entity_name }}.add_form
-{% else %}
- route_name: entity.{{ entity_name }}.add_page
-{% endif %}
- title: 'Add {{ label }}'
- appears_on:
- - entity.{{ entity_name }}.collection
diff --git a/vendor/drupal/console/templates/module/links.action-entity.yml.twig b/vendor/drupal/console/templates/module/links.action-entity.yml.twig
deleted file mode 100644
index 2be50635c..000000000
--- a/vendor/drupal/console/templates/module/links.action-entity.yml.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-entity.{{ entity_name }}.add_form:
- route_name: entity.{{ entity_name }}.add_form
- title: 'Add {{ label }}'
- appears_on:
- - entity.{{ entity_name }}.collection
-
diff --git a/vendor/drupal/console/templates/module/links.menu-entity-config.yml.twig b/vendor/drupal/console/templates/module/links.menu-entity-config.yml.twig
deleted file mode 100644
index 0afe1feeb..000000000
--- a/vendor/drupal/console/templates/module/links.menu-entity-config.yml.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-{# Initial new line ensures that the new definitions starts on a new line #}
-
-# {{ label }} menu items definition
-entity.{{ entity_name }}.collection:
- title: '{{ label }}'
- route_name: entity.{{ entity_name }}.collection
- description: 'List {{ label }} (bundles)'
- parent: system.admin_structure
- weight: 99
-
diff --git a/vendor/drupal/console/templates/module/links.menu-entity-content.yml.twig b/vendor/drupal/console/templates/module/links.menu-entity-content.yml.twig
deleted file mode 100644
index cd92a67ad..000000000
--- a/vendor/drupal/console/templates/module/links.menu-entity-content.yml.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-{# Initial new line ensures that the new definitions starts on a new line #}
-
-# {{ label }} menu items definition
-entity.{{ entity_name }}.collection:
- title: '{{ label }} list'
- route_name: entity.{{ entity_name }}.collection
- description: 'List {{ label }} entities'
- parent: system.admin_structure
- weight: 100
-
-{# Note: a content entity with bundles will have the settings configured on the bundle (config) entity. #}
-{% if not bundle_entity_type %}
-{{ entity_name }}.admin.structure.settings:
- title: '{{ label }} settings'
- description: 'Configure {{ label }} entities'
- route_name: {{ entity_name }}.settings
- parent: system.admin_structure
-{% endif %}
diff --git a/vendor/drupal/console/templates/module/links.menu.yml.twig b/vendor/drupal/console/templates/module/links.menu.yml.twig
deleted file mode 100644
index 0842ba6a0..000000000
--- a/vendor/drupal/console/templates/module/links.menu.yml.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ module_name }}.{{form_id}}:
- title: '{{ menu_link_title }}'
- route_name: {{ module_name }}.{{form_id}}
- description: '{{ menu_link_desc }}'
- parent: {{ menu_parent }}
- weight: 99
-
diff --git a/vendor/drupal/console/templates/module/links.task-entity-content.yml.twig b/vendor/drupal/console/templates/module/links.task-entity-content.yml.twig
deleted file mode 100644
index 206389c77..000000000
--- a/vendor/drupal/console/templates/module/links.task-entity-content.yml.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-# {{ label }} routing definition
-{# Note: a content entity with bundles will have the settings configured on the bundle (config) entity. #}
-{% if not bundle_entity_type %}
-{{ entity_name }}.settings_tab:
- route_name: {{ entity_name }}.settings
- title: 'Settings'
- base_route: {{ entity_name }}.settings
-{% endif %}
-
-entity.{{ entity_name }}.canonical:
- route_name: entity.{{ entity_name }}.canonical
- base_route: entity.{{ entity_name }}.canonical
- title: 'View'
-
-entity.{{ entity_name }}.edit_form:
- route_name: entity.{{ entity_name }}.edit_form
- base_route: entity.{{ entity_name }}.canonical
- title: 'Edit'
-{% if revisionable %}
-
-entity.{{ entity_name }}.version_history:
- route_name: entity.{{ entity_name }}.version_history
- base_route: entity.{{ entity_name }}.canonical
- title: 'Revisions'
-{% endif %}
-
-entity.{{ entity_name }}.delete_form:
- route_name: entity.{{ entity_name }}.delete_form
- base_route: entity.{{ entity_name }}.canonical
- title: Delete
- weight: 10
-
diff --git a/vendor/drupal/console/templates/module/module-file.twig b/vendor/drupal/console/templates/module/module-file.twig
deleted file mode 100644
index 9dc8767de..000000000
--- a/vendor/drupal/console/templates/module/module-file.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-{% extends "base/file.php.twig" %}
-
-{% block file_path %}{{machine_name}}.module.{% endblock %}
-
-
diff --git a/vendor/drupal/console/templates/module/module-libraries.yml.twig b/vendor/drupal/console/templates/module/module-libraries.yml.twig
deleted file mode 100644
index 6a668a321..000000000
--- a/vendor/drupal/console/templates/module/module-libraries.yml.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-{{ module }}-library:
- js:
- js/{{ js_name }}.js: {}
- dependencies:
- - core/drupal.ajax
diff --git a/vendor/drupal/console/templates/module/module-twig-template-append.twig b/vendor/drupal/console/templates/module/module-twig-template-append.twig
deleted file mode 100644
index bb516bde8..000000000
--- a/vendor/drupal/console/templates/module/module-twig-template-append.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-
-/**
- * Implements hook_theme().
- */
-function {{machine_name}}_theme() {
- return [
- '{{machine_name}}' => [
- 'render element' => 'children',
- ],
- ];
-}
diff --git a/vendor/drupal/console/templates/module/module.twig b/vendor/drupal/console/templates/module/module.twig
deleted file mode 100644
index 53540372f..000000000
--- a/vendor/drupal/console/templates/module/module.twig
+++ /dev/null
@@ -1,25 +0,0 @@
-{% extends "base/file.php.twig" %}
-
-{% block file_path %}{{machine_name}}.module{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Routing\RouteMatchInterface;
-{% endblock %}
-
-{% block file_methods %}
-/**
- * Implements hook_help().
- */
-function {{machine_name}}_help($route_name, RouteMatchInterface $route_match) {
- switch ($route_name) {
- // Main module help for the {{ machine_name }} module.
- case 'help.page.{{ machine_name }}':
- $output = '';
- $output .= '' . t('About') . '
';
- $output .= '' . t('{{ description|escape }}') . '
';
- return $output;
-
- default:
- }
-}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/module.views.inc.twig b/vendor/drupal/console/templates/module/module.views.inc.twig
deleted file mode 100644
index 98e755c13..000000000
--- a/vendor/drupal/console/templates/module/module.views.inc.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends "base/file.php.twig" %}
-
-{% block file_path %}{{ module }}\{{ module }}.views.inc.{% endblock %}
-
-{% block extra_info %} * Provide a custom views field data that isn't tied to any other module.{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
-use Drupal\Core\Render\Markup;
-use Drupal\field\FieldConfigInterface;
-use Drupal\field\FieldStorageConfigInterface;
-use Drupal\system\ActionConfigEntityInterface;
-{% endblock %}
-
-{% block file_methods %}
-/**
-* Implements hook_views_data().
-*/
-function {{module}}_views_data() {
-
- $data['views']['table']['group'] = t('Custom Global');
- $data['views']['table']['join'] = [
- // #global is a special flag which allows a table to appear all the time.
- '#global' => [],
- ];
-
-
- $data['views']['{{ class_machine_name }}'] = [
- 'title' => t('{{ title }}'),
- 'help' => t('{{ description }}'),
- 'field' => [
- 'id' => '{{ class_machine_name }}',
- ],
- ];
-
- return $data;
-}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/permission-routing.yml.twig b/vendor/drupal/console/templates/module/permission-routing.yml.twig
deleted file mode 100644
index 203f8f9c0..000000000
--- a/vendor/drupal/console/templates/module/permission-routing.yml.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-{% block routing_file %}
-{% endblock %}
-{% if permissions|length %}
- {% for permission in permissions %}
- {{ module_name }}.route:
- requirements:
- _permission: {{ permission.permission }}:
- {% endfor %}
-{% endif %}
-
diff --git a/vendor/drupal/console/templates/module/permission.yml.twig b/vendor/drupal/console/templates/module/permission.yml.twig
deleted file mode 100644
index 423e5ee27..000000000
--- a/vendor/drupal/console/templates/module/permission.yml.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-{% if permissions|length %}
-
-{% for permission in permissions %}
-{{ permission.permission }}:
- title: '{{ permission.title }}'
- description: '{{ permission.description }}'
-{% if permission.restrict_access != 'none' %}
- restrict access: {{ permission.restrict_access }}
-{% endif %}
-{% endfor %}
-{% endif %}
diff --git a/vendor/drupal/console/templates/module/permissions-entity-content.yml.twig b/vendor/drupal/console/templates/module/permissions-entity-content.yml.twig
deleted file mode 100644
index 73e8b6804..000000000
--- a/vendor/drupal/console/templates/module/permissions-entity-content.yml.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-add {{ label|lower }} entities:
- title: 'Create new {{ label }} entities'
-
-administer {{ label|lower }} entities:
- title: 'Administer {{ label }} entities'
- description: 'Allow to access the administration form to configure {{ label }} entities.'
- restrict access: true
-
-delete {{ label|lower }} entities:
- title: 'Delete {{ label }} entities'
-
-edit {{ label|lower }} entities:
- title: 'Edit {{ label }} entities'
-
-view published {{ label|lower }} entities:
- title: 'View published {{ label }} entities'
-
-view unpublished {{ label|lower }} entities:
- title: 'View unpublished {{ label }} entities'
-{% if revisionable %}
-
-view all {{ label|lower }} revisions:
- title: 'View all {{ label }} revisions'
-
-revert all {{ label|lower }} revisions:
- title: 'Revert all {{ label }} revisions'
- description: 'Role requires permission view {{ label }} revisions and edit rights for {{ label|lower }} entities in question or administer {{ label|lower }} entities.'
-
-delete all {{ label|lower }} revisions:
- title: 'Delete all revisions'
- description: 'Role requires permission to view {{ label }} revisions and delete rights for {{ label|lower }} entities in question or administer {{ label|lower }} entities.'
-{% endif %}
diff --git a/vendor/drupal/console/templates/module/php_tag.php.twig b/vendor/drupal/console/templates/module/php_tag.php.twig
deleted file mode 100644
index b3d9bbc7f..000000000
--- a/vendor/drupal/console/templates/module/php_tag.php.twig
+++ /dev/null
@@ -1 +0,0 @@
- '{{ method }}',
- 'message' => 'My Awesome Message',
- ];
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Annotation/plugin-type.php.twig b/vendor/drupal/console/templates/module/src/Annotation/plugin-type.php.twig
deleted file mode 100644
index 1298f2e0d..000000000
--- a/vendor/drupal/console/templates/module/src/Annotation/plugin-type.php.twig
+++ /dev/null
@@ -1,42 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Annotation\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Annotation;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Annotation\Plugin;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines a {{ label }} item annotation object.
- *
- * @see \Drupal\{{ module }}\Plugin\{{ class_name }}Manager
- * @see plugin_api
- *
- * @Annotation
- */
-class {{ class_name }} extends Plugin {% endblock %}
-{% block class_methods %}
-
- /**
- * The plugin ID.
- *
- * @var string
- */
- public $id;
-
- /**
- * The label of the plugin.
- *
- * @var \Drupal\Core\Annotation\Translation
- *
- * @ingroup plugin_translatable
- */
- public $label;
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Authentication/Provider/authentication-provider.php.twig b/vendor/drupal/console/templates/module/src/Authentication/Provider/authentication-provider.php.twig
deleted file mode 100644
index c516d0511..000000000
--- a/vendor/drupal/console/templates/module/src/Authentication/Provider/authentication-provider.php.twig
+++ /dev/null
@@ -1,112 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Authentication\Provider\{{class}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Authentication\Provider;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Authentication\AuthenticationProviderInterface;
-use Drupal\Core\Config\ConfigFactoryInterface;
-use Drupal\Core\Entity\EntityTypeManagerInterface;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
-use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
-use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class }}.
- */
-class {{ class }} implements AuthenticationProviderInterface {% endblock %}
-{% block class_variables %}
- /**
- * The config factory.
- *
- * @var \Drupal\Core\Config\ConfigFactoryInterface
- */
- protected $configFactory;
-
- /**
- * The entity type manager.
- *
- * @var \Drupal\Core\Entity\EntityTypeManagerInterface
- */
- protected $entityTypeManager;
-{% endblock %}
-
-{% block class_construct %}
-
- /**
- * Constructs a HTTP basic authentication provider object.
- *
- * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
- * The config factory.
- * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
- * The entity type manager service.
- */
- public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
- $this->configFactory = $config_factory;
- $this->entityTypeManager = $entity_type_manager;
- }
-{% endblock %}
-
-{% block class_create %}
-{% endblock %}
-
-{% block class_methods %}
-
- /**
- * Checks whether suitable authentication credentials are on the request.
- *
- * @param \Symfony\Component\HttpFoundation\Request $request
- * The request object.
- *
- * @return bool
- * TRUE if authentication credentials suitable for this provider are on the
- * request, FALSE otherwise.
- */
- public function applies(Request $request) {
- // If you return TRUE and the method Authentication logic fails,
- // you will get out from Drupal navigation if you are logged in.
- return FALSE;
- }
-
- /**
- * {@inheritdoc}
- */
- public function authenticate(Request $request) {
- $consumer_ip = $request->getClientIp();
- $ips = [];
- if (in_array($consumer_ip, $ips)) {
- // Return Anonymous user.
- return $this->entityTypeManager->getStorage('user')->load(0);
- }
- else {
- throw new AccessDeniedHttpException();
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function cleanup(Request $request) {}
-
- /**
- * {@inheritdoc}
- */
- public function handleException(GetResponseForExceptionEvent $event) {
- $exception = $event->getException();
- if ($exception instanceof AccessDeniedHttpException) {
- $event->setException(
- new UnauthorizedHttpException('Invalid consumer origin.', $exception)
- );
- return TRUE;
- }
- return FALSE;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Command/command.php.twig b/vendor/drupal/console/templates/module/src/Command/command.php.twig
deleted file mode 100644
index 0b16f4f5d..000000000
--- a/vendor/drupal/console/templates/module/src/Command/command.php.twig
+++ /dev/null
@@ -1,85 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{extension}}\Command\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{extension}}\Command;
-{% endblock %}
-
-{% block use_class %}
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-{% if container_aware %}
-use Drupal\Console\Core\Command\ContainerAwareCommand;
-{% else %}
-use Drupal\Console\Core\Command\Command;
-{% endif %}
-use Drupal\Console\Annotations\DrupalCommand;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class_name }}.
- *
- * @DrupalCommand (
- * extension="{{extension}}",
- * extensionType="{{ extension_type }}"
- * )
- */
-class {{ class_name }} extends {% if container_aware %}ContainerAwareCommand{% else %}Command{% endif %} {% endblock %}
-{% block class_construct %}
-{% if services is not empty %}
-
- /**
- * Constructs a new {{ class_name }} object.
- */
- public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
-{{ serviceClassInitialization(services) }}
- parent::__construct();
- }
-{% endif %}
-{% endblock %}
-
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- protected function configure() {
- $this
- ->setName('{{ name }}')
- ->setDescription($this->trans('commands.{{ command_key }}.description'));
- }
-
-{% if initialize %}
- /**
- * {@inheritdoc}
- */
- protected function initialize(InputInterface $input, OutputInterface $output) {
- parent::initialize($input, $output);
- $this->getIo()->info('initialize');
- }
-
-{% endif %}
-{% if interact %}
- /**
- * {@inheritdoc}
- */
- protected function interact(InputInterface $input, OutputInterface $output) {
- $this->getIo()->info('interact');
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output) {
- $this->getIo()->info('execute');
- $this->getIo()->info($this->trans('commands.{{ command_key }}.messages.success'));
-{% if class_generator %}
- $this->generator->generate([]);
-{% endif %}
- }
-
-{%- endblock -%}
diff --git a/vendor/drupal/console/templates/module/src/Command/console/translations/en/command.yml.twig b/vendor/drupal/console/templates/module/src/Command/console/translations/en/command.yml.twig
deleted file mode 100644
index 203b89327..000000000
--- a/vendor/drupal/console/templates/module/src/Command/console/translations/en/command.yml.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-description: 'Drupal Console generated command.'
-options: {}
-arguments: {}
-messages:
- success: 'I am a new generated command.'
\ No newline at end of file
diff --git a/vendor/drupal/console/templates/module/src/Controller/controller.php.twig b/vendor/drupal/console/templates/module/src/Controller/controller.php.twig
deleted file mode 100644
index 568f3b450..000000000
--- a/vendor/drupal/console/templates/module/src/Controller/controller.php.twig
+++ /dev/null
@@ -1,69 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Controller\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Controller;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Controller\ControllerBase;
-{% if services is not empty %}
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endif %}
-{% endblock %}
-{% block class_declaration %}
-/**
- * Class {{ class_name }}.
- */
-class {{ class_name }} extends ControllerBase {% endblock %}
-{% block class_construct %}
-{% if services is not empty %}
-
- /**
- * Constructs a new {{ class_name }} object.
- */
- public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
-{{ serviceClassInitialization(services) }}
- }
-{% endif %}
-{% endblock %}
-{% block class_create %}
-{% if services is not empty %}
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container) {
- return new static(
-{{ serviceClassInjection(services) }}
- );
- }
-
-{% endif %}
-{% endblock %}
-{% block class_methods %}
-{% for route in routes %}
- /**
- * {{ route.method | capitalize }}.
- *
- * @return string
- * Return Hello string.
- */
- public function {{route.method}}({{ argumentsFromRoute(route.path)|join(', ') }}) {
-{% if argumentsFromRoute(route.path) is not empty %}
- return [
- '#type' => 'markup',
- '#markup' => $this->t('Implement method: {{route.method}} with parameter(s): {{ argumentsFromRoute(route.path)|join(', ') }}'),
- ];
-{% else %}
- return [
- '#type' => 'markup',
- '#markup' => $this->t('Implement method: {{route.method}}')
- ];
-{% endif %}
- }
-{% endfor %}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Controller/entity-controller.php.twig b/vendor/drupal/console/templates/module/src/Controller/entity-controller.php.twig
deleted file mode 100644
index 7e340e0e3..000000000
--- a/vendor/drupal/console/templates/module/src/Controller/entity-controller.php.twig
+++ /dev/null
@@ -1,175 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Controller\{{ entity_class }}Controller.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Controller;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Utility\Xss;
-use Drupal\Core\Controller\ControllerBase;
-use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
-use Drupal\Core\Url;
-use Drupal\{{ module }}\Entity\{{ entity_class }}Interface;
-{% endblock %}
-{% block class_declaration %}
-/**
- * Class {{ entity_class }}Controller.
- *
- * Returns responses for {{ label }} routes.
- */
-class {{ entity_class }}Controller extends ControllerBase implements ContainerInjectionInterface {% endblock %}
-
-{% block class_methods %}
- /**
- * Displays a {{ label }} revision.
- *
- * @param int ${{ entity_name }}_revision
- * The {{ label }} revision ID.
- *
- * @return array
- * An array suitable for drupal_render().
- */
- public function revisionShow(${{ entity_name }}_revision) {
- ${{ entity_name }} = $this->entityManager()->getStorage('{{ entity_name }}')->loadRevision(${{ entity_name }}_revision);
- $view_builder = $this->entityManager()->getViewBuilder('{{ entity_name }}');
-
- return $view_builder->view(${{ entity_name }});
- }
-
- /**
- * Page title callback for a {{ label }} revision.
- *
- * @param int ${{ entity_name }}_revision
- * The {{ label }} revision ID.
- *
- * @return string
- * The page title.
- */
- public function revisionPageTitle(${{ entity_name }}_revision) {
- ${{ entity_name }} = $this->entityManager()->getStorage('{{ entity_name }}')->loadRevision(${{ entity_name }}_revision);
- return $this->t('Revision of %title from %date', ['%title' => ${{ entity_name }}->label(), '%date' => format_date(${{ entity_name }}->getRevisionCreationTime())]);
- }
-
- /**
- * Generates an overview table of older revisions of a {{ label }} .
- *
- * @param \Drupal\{{ module }}\Entity\{{ entity_class }}Interface ${{ entity_name }}
- * A {{ label }} object.
- *
- * @return array
- * An array as expected by drupal_render().
- */
- public function revisionOverview({{ entity_class }}Interface ${{ entity_name }}) {
- $account = $this->currentUser();
- $langcode = ${{ entity_name }}->language()->getId();
- $langname = ${{ entity_name }}->language()->getName();
- $languages = ${{ entity_name }}->getTranslationLanguages();
- $has_translations = (count($languages) > 1);
- ${{ entity_name }}_storage = $this->entityManager()->getStorage('{{ entity_name }}');
-
- $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => ${{ entity_name }}->label()]) : $this->t('Revisions for %title', ['%title' => ${{ entity_name }}->label()]);
- $header = [$this->t('Revision'), $this->t('Operations')];
-
- $revert_permission = (($account->hasPermission("revert all {{ label|lower }} revisions") || $account->hasPermission('administer {{ label|lower }} entities')));
- $delete_permission = (($account->hasPermission("delete all {{ label|lower }} revisions") || $account->hasPermission('administer {{ label|lower }} entities')));
-
- $rows = [];
-
- $vids = ${{ entity_name }}_storage->revisionIds(${{ entity_name }});
-
- $latest_revision = TRUE;
-
- foreach (array_reverse($vids) as $vid) {
- /** @var \Drupal\{{ module }}\{{ entity_class }}Interface $revision */
- $revision = ${{ entity_name }}_storage->loadRevision($vid);
- // Only show revisions that are affected by the language that is being
- // displayed.
- if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {
- $username = [
- '#theme' => 'username',
- '#account' => $revision->getRevisionUser(),
- ];
-
- // Use revision link to link to revisions that are not active.
- $date = \Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');
- if ($vid != ${{ entity_name }}->getRevisionId()) {
- $link = $this->l($date, new Url('entity.{{ entity_name }}.revision', ['{{ entity_name }}' => ${{ entity_name }}->id(), '{{ entity_name }}_revision' => $vid]));
- }
- else {
- $link = ${{ entity_name }}->link($date);
- }
-
- $row = [];
- $column = [
- 'data' => [
- '#type' => 'inline_template',
- '#template' => '{{ '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}{{ message }}
{% endif %}' }}',
- '#context' => [
- 'date' => $link,
- 'username' => \Drupal::service('renderer')->renderPlain($username),
- 'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],
- ],
- ],
- ];
- $row[] = $column;
-
- if ($latest_revision) {
- $row[] = [
- 'data' => [
- '#prefix' => '',
- '#markup' => $this->t('Current revision'),
- '#suffix' => '',
- ],
- ];
- foreach ($row as &$current) {
- $current['class'] = ['revision-current'];
- }
- $latest_revision = FALSE;
- }
- else {
- $links = [];
- if ($revert_permission) {
- $links['revert'] = [
- 'title' => $this->t('Revert'),
-{% if is_translatable %}
- 'url' => $has_translations ?
- Url::fromRoute('entity.{{ entity_name }}.translation_revert', ['{{ entity_name }}' => ${{ entity_name }}->id(), '{{ entity_name }}_revision' => $vid, 'langcode' => $langcode]) :
- Url::fromRoute('entity.{{ entity_name }}.revision_revert', ['{{ entity_name }}' => ${{ entity_name }}->id(), '{{ entity_name }}_revision' => $vid]),
-{% else %}
- 'url' => Url::fromRoute('entity.{{ entity_name }}.revision_revert', ['{{ entity_name }}' => ${{ entity_name }}->id(), '{{ entity_name }}_revision' => $vid]),
-{% endif %}
- ];
- }
-
- if ($delete_permission) {
- $links['delete'] = [
- 'title' => $this->t('Delete'),
- 'url' => Url::fromRoute('entity.{{ entity_name }}.revision_delete', ['{{ entity_name }}' => ${{ entity_name }}->id(), '{{ entity_name }}_revision' => $vid]),
- ];
- }
-
- $row[] = [
- 'data' => [
- '#type' => 'operations',
- '#links' => $links,
- ],
- ];
- }
-
- $rows[] = $row;
- }
- }
-
- $build['{{ entity_name }}_revisions_table'] = [
- '#theme' => 'table',
- '#rows' => $rows,
- '#header' => $header,
- ];
-
- return $build;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_form_display.node.default.yml.twig b/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_form_display.node.default.yml.twig
deleted file mode 100644
index ebba75283..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_form_display.node.default.yml.twig
+++ /dev/null
@@ -1,60 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.node.{{ bundle_name }}.body
- - node.type.{{ bundle_name }}
- module:
- - path
- - text
-id: node.{{ bundle_name }}.default
-targetEntityType: node
-bundle: {{ bundle_name }}
-mode: default
-content:
- body:
- type: text_textarea_with_summary
- weight: 31
- settings:
- rows: 9
- summary_rows: 3
- placeholder: ''
- third_party_settings: { }
- created:
- type: datetime_timestamp
- weight: 10
- settings: { }
- third_party_settings: { }
- path:
- type: path
- weight: 30
- settings: { }
- third_party_settings: { }
- promote:
- type: boolean_checkbox
- settings:
- display_label: true
- weight: 15
- third_party_settings: { }
- sticky:
- type: boolean_checkbox
- settings:
- display_label: true
- weight: 16
- third_party_settings: { }
- title:
- type: string_textfield
- weight: -5
- settings:
- size: 60
- placeholder: ''
- third_party_settings: { }
- uid:
- type: entity_reference_autocomplete
- weight: 5
- settings:
- match_operator: CONTAINS
- size: 60
- placeholder: ''
- third_party_settings: { }
-hidden: { }
diff --git a/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_view_display.node.default.yml.twig b/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_view_display.node.default.yml.twig
deleted file mode 100644
index c9366b438..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_view_display.node.default.yml.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - field.field.node.{{ bundle_name }}.body
- - node.type.{{ bundle_name }}
- module:
- - text
- - user
-id: node.{{ bundle_name }}.default
-targetEntityType: node
-bundle: {{ bundle_name }}
-mode: default
-content:
- body:
- label: hidden
- type: text_default
- weight: 101
- settings: { }
- third_party_settings: { }
- links:
- weight: 100
-hidden: { }
diff --git a/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_view_display.node.teaser.yml.twig b/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_view_display.node.teaser.yml.twig
deleted file mode 100644
index 461257c58..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Bundle/core.entity_view_display.node.teaser.yml.twig
+++ /dev/null
@@ -1,25 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - core.entity_view_mode.node.teaser
- - field.field.node.{{ bundle_name }}.body
- - node.type.{{ bundle_name }}
- module:
- - text
- - user
-id: node.{{ bundle_name }}.teaser
-targetEntityType: node
-bundle: {{ bundle_name }}
-mode: teaser
-content:
- body:
- label: hidden
- type: text_summary_or_trimmed
- weight: 101
- settings:
- trim_length: 600
- third_party_settings: { }
- links:
- weight: 100
-hidden: { }
diff --git a/vendor/drupal/console/templates/module/src/Entity/Bundle/field.field.node.body.yml.twig b/vendor/drupal/console/templates/module/src/Entity/Bundle/field.field.node.body.yml.twig
deleted file mode 100644
index 1caa57317..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Bundle/field.field.node.body.yml.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-langcode: en
-status: true
-dependencies:
- config:
- - field.storage.node.body
- - node.type.{{ bundle_name }}
- module:
- - text
-id: node.{{ bundle_name }}.body
-field_name: body
-entity_type: node
-bundle: {{ bundle_name }}
-label: Body
-description: ''
-required: false
-translatable: true
-default_value: { }
-default_value_callback: ''
-settings:
- display_summary: true
-field_type: text_with_summary
diff --git a/vendor/drupal/console/templates/module/src/Entity/Bundle/node.type.yml.twig b/vendor/drupal/console/templates/module/src/Entity/Bundle/node.type.yml.twig
deleted file mode 100644
index d69ac618d..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Bundle/node.type.yml.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-langcode: en
-status: true
-dependencies:
- module:
- - menu_ui
-third_party_settings:
- menu_ui:
- available_menus:
- - main
- parent: 'main:'
-name: '{{ bundle_title }}'
-type: {{ bundle_name }}
-description: 'Generated by Drupal Console'
-help: ''
-new_revision: false
-preview_mode: 1
-display_submitted: true
diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-delete.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-delete.php.twig
deleted file mode 100644
index 13e104627..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-delete.php.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}DeleteForm.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\ContentEntityDeleteForm;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a form for deleting {{ label }} entities.
- *
- * @ingroup {{module}}
- */
-class {{ entity_class }}DeleteForm extends ContentEntityDeleteForm {% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-delete.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-delete.php.twig
deleted file mode 100644
index 02674ac11..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-delete.php.twig
+++ /dev/null
@@ -1,131 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}RevisionDeleteForm.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Database\Connection;
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Form\ConfirmFormBase;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a form for deleting a {{ label }} revision.
- *
- * @ingroup {{module}}
- */
-class {{ entity_class }}RevisionDeleteForm extends ConfirmFormBase {% endblock %}
-{% block class_methods %}
-
- /**
- * The {{ label }} revision.
- *
- * @var \Drupal\{{module}}\Entity\{{ entity_class }}Interface
- */
- protected $revision;
-
- /**
- * The {{ label }} storage.
- *
- * @var \Drupal\Core\Entity\EntityStorageInterface
- */
- protected ${{ entity_class }}Storage;
-
- /**
- * The database connection.
- *
- * @var \Drupal\Core\Database\Connection
- */
- protected $connection;
-
- /**
- * Constructs a new {{ entity_class }}RevisionDeleteForm.
- *
- * @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
- * The entity storage.
- * @param \Drupal\Core\Database\Connection $connection
- * The database connection.
- */
- public function __construct(EntityStorageInterface $entity_storage, Connection $connection) {
- $this->{{ entity_class }}Storage = $entity_storage;
- $this->connection = $connection;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container) {
- $entity_manager = $container->get('entity.manager');
- return new static(
- $entity_manager->getStorage('{{ entity_name }}'),
- $container->get('database')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormId() {
- return '{{ entity_name }}_revision_delete_confirm';
- }
-
- /**
- * {@inheritdoc}
- */
- public function getQuestion() {
- return t('Are you sure you want to delete the revision from %revision-date?', ['%revision-date' => format_date($this->revision->getRevisionCreationTime())]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCancelUrl() {
- return new Url('entity.{{ entity_name }}.version_history', ['{{ entity_name }}' => $this->revision->id()]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConfirmText() {
- return t('Delete');
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildForm(array $form, FormStateInterface $form_state, ${{ entity_name }}_revision = NULL) {
- $this->revision = $this->{{ entity_class }}Storage->loadRevision(${{ entity_name }}_revision);
- $form = parent::buildForm($form, $form_state);
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- $this->{{ entity_class }}Storage->deleteRevision($this->revision->getRevisionId());
-
- $this->logger('content')->notice('{{ label }}: deleted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
- drupal_set_message(t('Revision from %revision-date of {{ label }} %title has been deleted.', ['%revision-date' => format_date($this->revision->getRevisionCreationTime()), '%title' => $this->revision->label()]));
- $form_state->setRedirect(
- 'entity.{{ entity_name }}.canonical',
- ['{{ entity_name }}' => $this->revision->id()]
- );
- if ($this->connection->query('SELECT COUNT(DISTINCT vid) FROM {{ '{'~entity_name~'_field_revision}' }} WHERE id = :id', [':id' => $this->revision->id()])->fetchField() > 1) {
- $form_state->setRedirect(
- 'entity.{{ entity_name }}.version_history',
- ['{{ entity_name }}' => $this->revision->id()]
- );
- }
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-revert-translation.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-revert-translation.php.twig
deleted file mode 100644
index 0c38ba5b3..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-revert-translation.php.twig
+++ /dev/null
@@ -1,123 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}RevisionRevertTranslationForm.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Datetime\DateFormatterInterface;
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Language\LanguageManagerInterface;
-use Drupal\{{module}}\Entity\{{ entity_class }}Interface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a form for reverting a {{ label }} revision for a single translation.
- *
- * @ingroup {{module}}
- */
-class {{ entity_class }}RevisionRevertTranslationForm extends {{ entity_class }}RevisionRevertForm {% endblock %}
-{% block class_methods %}
-
- /**
- * The language to be reverted.
- *
- * @var string
- */
- protected $langcode;
-
- /**
- * The language manager.
- *
- * @var \Drupal\Core\Language\LanguageManagerInterface
- */
- protected $languageManager;
-
- /**
- * Constructs a new {{ entity_class }}RevisionRevertTranslationForm.
- *
- * @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
- * The {{ label }} storage.
- * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
- * The date formatter service.
- * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
- * The language manager.
- */
- public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager) {
- parent::__construct($entity_storage, $date_formatter);
- $this->languageManager = $language_manager;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container) {
- return new static(
- $container->get('entity.manager')->getStorage('{{ entity_name }}'),
- $container->get('date.formatter'),
- $container->get('language_manager')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormId() {
- return '{{ entity_name }}_revision_revert_translation_confirm';
- }
-
- /**
- * {@inheritdoc}
- */
- public function getQuestion() {
- return t('Are you sure you want to revert @language translation to the revision from %revision-date?', ['@language' => $this->languageManager->getLanguageName($this->langcode), '%revision-date' => $this->dateFormatter->format($this->revision->getRevisionCreationTime())]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildForm(array $form, FormStateInterface $form_state, ${{ entity_name }}_revision = NULL, $langcode = NULL) {
- $this->langcode = $langcode;
- $form = parent::buildForm($form, $form_state, ${{ entity_name }}_revision);
-
- $form['revert_untranslated_fields'] = [
- '#type' => 'checkbox',
- '#title' => $this->t('Revert content shared among translations'),
- '#default_value' => FALSE,
- ];
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function prepareRevertedRevision({{ entity_class }}Interface $revision, FormStateInterface $form_state) {
- $revert_untranslated_fields = $form_state->getValue('revert_untranslated_fields');
-
- /** @var \Drupal\{{module}}\Entity\{{ entity_class }}Interface $default_revision */
- $latest_revision = $this->{{ entity_class }}Storage->load($revision->id());
- $latest_revision_translation = $latest_revision->getTranslation($this->langcode);
-
- $revision_translation = $revision->getTranslation($this->langcode);
-
- foreach ($latest_revision_translation->getFieldDefinitions() as $field_name => $definition) {
- if ($definition->isTranslatable() || $revert_untranslated_fields) {
- $latest_revision_translation->set($field_name, $revision_translation->get($field_name)->getValue());
- }
- }
-
- $latest_revision_translation->setNewRevision();
- $latest_revision_translation->isDefaultRevision(TRUE);
- $revision->setRevisionCreationTime(REQUEST_TIME);
-
- return $latest_revision_translation;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-revert.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-revert.php.twig
deleted file mode 100644
index 4077d9417..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content-revision-revert.php.twig
+++ /dev/null
@@ -1,157 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}RevisionRevertForm.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Datetime\DateFormatterInterface;
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Form\ConfirmFormBase;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
-use Drupal\{{module}}\Entity\{{ entity_class }}Interface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a form for reverting a {{ label }} revision.
- *
- * @ingroup {{module}}
- */
-class {{ entity_class }}RevisionRevertForm extends ConfirmFormBase {% endblock %}
-{% block class_methods %}
-
- /**
- * The {{ label }} revision.
- *
- * @var \Drupal\{{module}}\Entity\{{ entity_class }}Interface
- */
- protected $revision;
-
- /**
- * The {{ label }} storage.
- *
- * @var \Drupal\Core\Entity\EntityStorageInterface
- */
- protected ${{ entity_class }}Storage;
-
- /**
- * The date formatter service.
- *
- * @var \Drupal\Core\Datetime\DateFormatterInterface
- */
- protected $dateFormatter;
-
- /**
- * Constructs a new {{ entity_class }}RevisionRevertForm.
- *
- * @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
- * The {{ label }} storage.
- * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
- * The date formatter service.
- */
- public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter) {
- $this->{{ entity_class }}Storage = $entity_storage;
- $this->dateFormatter = $date_formatter;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container) {
- return new static(
- $container->get('entity.manager')->getStorage('{{ entity_name }}'),
- $container->get('date.formatter')
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormId() {
- return '{{ entity_name }}_revision_revert_confirm';
- }
-
- /**
- * {@inheritdoc}
- */
- public function getQuestion() {
- return t('Are you sure you want to revert to the revision from %revision-date?', ['%revision-date' => $this->dateFormatter->format($this->revision->getRevisionCreationTime())]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCancelUrl() {
- return new Url('entity.{{ entity_name }}.version_history', ['{{ entity_name }}' => $this->revision->id()]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConfirmText() {
- return t('Revert');
- }
-
- /**
- * {@inheritdoc}
- */
- public function getDescription() {
- return '';
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildForm(array $form, FormStateInterface $form_state, ${{ entity_name }}_revision = NULL) {
- $this->revision = $this->{{ entity_class }}Storage->loadRevision(${{ entity_name }}_revision);
- $form = parent::buildForm($form, $form_state);
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- // The revision timestamp will be updated when the revision is saved. Keep
- // the original one for the confirmation message.
- $original_revision_timestamp = $this->revision->getRevisionCreationTime();
-
- $this->revision = $this->prepareRevertedRevision($this->revision, $form_state);
- $this->revision->revision_log = t('Copy of the revision from %date.', ['%date' => $this->dateFormatter->format($original_revision_timestamp)]);
- $this->revision->save();
-
- $this->logger('content')->notice('{{ label }}: reverted %title revision %revision.', ['%title' => $this->revision->label(), '%revision' => $this->revision->getRevisionId()]);
- drupal_set_message(t('{{ label }} %title has been reverted to the revision from %revision-date.', ['%title' => $this->revision->label(), '%revision-date' => $this->dateFormatter->format($original_revision_timestamp)]));
- $form_state->setRedirect(
- 'entity.{{ entity_name }}.version_history',
- ['{{ entity_name }}' => $this->revision->id()]
- );
- }
-
- /**
- * Prepares a revision to be reverted.
- *
- * @param \Drupal\{{module}}\Entity\{{ entity_class }}Interface $revision
- * The revision to be reverted.
- * @param \Drupal\Core\Form\FormStateInterface $form_state
- * The current state of the form.
- *
- * @return \Drupal\{{module}}\Entity\{{ entity_class }}Interface
- * The prepared revision ready to be stored.
- */
- protected function prepareRevertedRevision({{ entity_class }}Interface $revision, FormStateInterface $form_state) {
- $revision->setNewRevision();
- $revision->isDefaultRevision(TRUE);
- $revision->setRevisionCreationTime(REQUEST_TIME);
-
- return $revision;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig
deleted file mode 100644
index e21dc7499..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-content.php.twig
+++ /dev/null
@@ -1,83 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}Form.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\ContentEntityForm;
-use Drupal\Core\Form\FormStateInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Form controller for {{ label }} edit forms.
- *
- * @ingroup {{module}}
- */
-class {{ entity_class }}Form extends ContentEntityForm {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function buildForm(array $form, FormStateInterface $form_state) {
- /* @var $entity \Drupal\{{module}}\Entity\{{ entity_class }} */
- $form = parent::buildForm($form, $form_state);
-{% if revisionable %}
-
- if (!$this->entity->isNew()) {
- $form['new_revision'] = [
- '#type' => 'checkbox',
- '#title' => $this->t('Create new revision'),
- '#default_value' => FALSE,
- '#weight' => 10,
- ];
- }
-{% endif %}
-
- $entity = $this->entity;
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function save(array $form, FormStateInterface $form_state) {
- $entity = $this->entity;
-{% if revisionable %}
-
- // Save as a new revision if requested to do so.
- if (!$form_state->isValueEmpty('new_revision') && $form_state->getValue('new_revision') != FALSE) {
- $entity->setNewRevision();
-
- // If a new revision is created, save the current user as revision author.
- $entity->setRevisionCreationTime(REQUEST_TIME);
- $entity->setRevisionUserId(\Drupal::currentUser()->id());
- }
- else {
- $entity->setNewRevision(FALSE);
- }
-{% endif %}
-
- $status = parent::save($form, $form_state);
-
- switch ($status) {
- case SAVED_NEW:
- drupal_set_message($this->t('Created the %label {{ label }}.', [
- '%label' => $entity->label(),
- ]));
- break;
-
- default:
- drupal_set_message($this->t('Saved the %label {{ label }}.', [
- '%label' => $entity->label(),
- ]));
- }
- $form_state->setRedirect('entity.{{ entity_name }}.canonical', ['{{ entity_name }}' => $entity->id()]);
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/Form/entity-settings.php.twig b/vendor/drupal/console/templates/module/src/Entity/Form/entity-settings.php.twig
deleted file mode 100644
index aa71845e4..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/Form/entity-settings.php.twig
+++ /dev/null
@@ -1,61 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}SettingsForm.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Form\FormBase;
-use Drupal\Core\Form\FormStateInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ entity_class }}SettingsForm.
- *
- * @ingroup {{module}}
- */
-class {{ entity_class }}SettingsForm extends FormBase {% endblock %}
-{% block class_methods %}
- /**
- * Returns a unique string identifying the form.
- *
- * @return string
- * The unique string identifying the form.
- */
- public function getFormId() {
- return '{{ entity_class|lower }}_settings';
- }
-
- /**
- * Form submission handler.
- *
- * @param array $form
- * An associative array containing the structure of the form.
- * @param \Drupal\Core\Form\FormStateInterface $form_state
- * The current state of the form.
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- // Empty implementation of the abstract submit class.
- }
-
- /**
- * Defines the settings form for {{ label }} entities.
- *
- * @param array $form
- * An associative array containing the structure of the form.
- * @param \Drupal\Core\Form\FormStateInterface $form_state
- * The current state of the form.
- *
- * @return array
- * Form definition array.
- */
- public function buildForm(array $form, FormStateInterface $form_state) {
- $form['{{ entity_class|lower }}_settings']['#markup'] = 'Settings form for {{ label }} entities. Manage field settings here.';
- return $form;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity-content-views-data.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity-content-views-data.php.twig
deleted file mode 100644
index c8ee2645b..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/entity-content-views-data.php.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Entity\{{ entity_class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Entity;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\views\EntityViewsData;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides Views data for {{ label }} entities.
- */
-class {{ entity_class }}ViewsData extends EntityViewsData {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function getViewsData() {
- $data = parent::getViewsData();
-
- // Additional information for Views integration, such as table joins, can be
- // put here.
-
- return $data;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme.php.twig
deleted file mode 100644
index 6c3a7b79a..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme.php.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% block hook_theme %}
-
-/**
- * Implements hook_theme().
- */
-function {{ module }}_theme() {
- $theme = [];
-{% include '/module/src/Entity/entity-content.theme.php.twig' with {'entity_name': entity_name, } %}
- $theme['{{ entity_name }}_content_add_list'] = [
- 'render element' => 'content',
- 'variables' => ['content' => NULL],
- 'file' => '{{ entity_name }}.page.inc',
- ];
- return $theme;
-}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme_hook_suggestions.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme_hook_suggestions.php.twig
deleted file mode 100644
index 77ea4dfbb..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme_hook_suggestions.php.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-{% block hook_theme_suggestions_hook %}
-
-/**
-* Implements hook_theme_suggestions_HOOK().
-*/
-function {{ module }}_theme_suggestions_{{ entity_name }}(array $variables) {
- $suggestions = [];
- $entity = $variables['elements']['#{{ entity_name }}'];
- $sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
-
- $suggestions[] = '{{ entity_name }}__' . $sanitized_view_mode;
- $suggestions[] = '{{ entity_name }}__' . $entity->bundle();
- $suggestions[] = '{{ entity_name }}__' . $entity->bundle() . '__' . $sanitized_view_mode;
- $suggestions[] = '{{ entity_name }}__' . $entity->id();
- $suggestions[] = '{{ entity_name }}__' . $entity->id() . '__' . $sanitized_view_mode;
- return $suggestions;
-}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity-content.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity-content.php.twig
deleted file mode 100644
index 2925ac629..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/entity-content.php.twig
+++ /dev/null
@@ -1,333 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Entity\{{ entity_class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Entity;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Field\BaseFieldDefinition;
-{% if revisionable %}
-use Drupal\Core\Entity\RevisionableContentEntityBase;
-use Drupal\Core\Entity\RevisionableInterface;
-{% else %}
-use Drupal\Core\Entity\ContentEntityBase;
-{% endif %}
-use Drupal\Core\Entity\EntityChangedTrait;
-use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\user\UserInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines the {{ label }} entity.
- *
- * @ingroup {{ module }}
- *
- * @ContentEntityType(
- * id = "{{ entity_name }}",
- * label = @Translation("{{ label }}"),
-{% if bundle_entity_type %}
- * bundle_label = @Translation("{{ label }} type"),
-{% endif %}
- * handlers = {
-{% if revisionable %}
- * "storage" = "Drupal\{{ module }}\{{ entity_class }}Storage",
-{% endif %}
- * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
- * "list_builder" = "Drupal\{{ module }}\{{ entity_class }}ListBuilder",
- * "views_data" = "Drupal\{{ module }}\Entity\{{ entity_class }}ViewsData",
-{% if is_translatable %}
- * "translation" = "Drupal\{{ module }}\{{ entity_class }}TranslationHandler",
-{% endif %}
- *
- * "form" = {
- * "default" = "Drupal\{{ module }}\Form\{{ entity_class }}Form",
- * "add" = "Drupal\{{ module }}\Form\{{ entity_class }}Form",
- * "edit" = "Drupal\{{ module }}\Form\{{ entity_class }}Form",
- * "delete" = "Drupal\{{ module }}\Form\{{ entity_class }}DeleteForm",
- * },
- * "access" = "Drupal\{{ module }}\{{ entity_class }}AccessControlHandler",
- * "route_provider" = {
- * "html" = "Drupal\{{ module }}\{{ entity_class }}HtmlRouteProvider",
- * },
- * },
- * base_table = "{{ entity_name }}",
-{% if is_translatable %}
- * data_table = "{{ entity_name }}_field_data",
-{% endif %}
-{% if revisionable %}
- * revision_table = "{{ entity_name }}_revision",
- * revision_data_table = "{{ entity_name }}_field_revision",
-{% endif %}
-{% if is_translatable %}
- * translatable = TRUE,
-{% endif %}
- * admin_permission = "administer {{ label|lower }} entities",
- * entity_keys = {
- * "id" = "id",
-{% if revisionable %}
- * "revision" = "vid",
-{% endif %}
-{% if bundle_entity_type %}
- * "bundle" = "type",
-{% endif %}
- * "label" = "name",
- * "uuid" = "uuid",
- * "uid" = "user_id",
- * "langcode" = "langcode",
- * "status" = "status",
- * },
- * links = {
- * "canonical" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}",
-{% if bundle_entity_type %}
- * "add-page" = "{{ base_path }}/{{ entity_name }}/add",
- * "add-form" = "{{ base_path }}/{{ entity_name }}/add/{{ '{'~bundle_entity_type~'}' }}",
-{% else %}
- * "add-form" = "{{ base_path }}/{{ entity_name }}/add",
-{% endif %}
- * "edit-form" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/edit",
- * "delete-form" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/delete",
-{% if revisionable %}
- * "version-history" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/revisions",
- * "revision" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/revisions/{{ '{'~entity_name~'_revision}' }}/view",
- * "revision_revert" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/revisions/{{ '{'~entity_name~'_revision}' }}/revert",
- * "revision_delete" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/revisions/{{ '{'~entity_name~'_revision}' }}/delete",
-{% if is_translatable %}
- * "translation_revert" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/revisions/{{ '{'~entity_name~'_revision}' }}/revert/{langcode}",
-{% endif %}
-{% endif %}
- * "collection" = "{{ base_path }}/{{ entity_name }}",
- * },
-{% if bundle_entity_type %}
- * bundle_entity_type = "{{ bundle_entity_type }}",
- * field_ui_base_route = "entity.{{ bundle_entity_type }}.edit_form"
-{% else %}
- * field_ui_base_route = "{{ entity_name }}.settings"
-{% endif %}
- * )
- */
-class {{ entity_class }} extends {% if revisionable %}RevisionableContentEntityBase{% else %}ContentEntityBase{% endif %} implements {{ entity_class }}Interface {% endblock %}
-
-{% block use_trait %}
- use EntityChangedTrait;
-{% endblock %}
-
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public static function preCreate(EntityStorageInterface $storage_controller, array &$values) {
- parent::preCreate($storage_controller, $values);
- $values += [
- 'user_id' => \Drupal::currentUser()->id(),
- ];
- }
-{% if revisionable %}
-
- /**
- * {@inheritdoc}
- */
- protected function urlRouteParameters($rel) {
- $uri_route_parameters = parent::urlRouteParameters($rel);
-
- if ($rel === 'revision_revert' && $this instanceof RevisionableInterface) {
- $uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
- }
- elseif ($rel === 'revision_delete' && $this instanceof RevisionableInterface) {
- $uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
- }
-
- return $uri_route_parameters;
- }
-
- /**
- * {@inheritdoc}
- */
- public function preSave(EntityStorageInterface $storage) {
- parent::preSave($storage);
-
- foreach (array_keys($this->getTranslationLanguages()) as $langcode) {
- $translation = $this->getTranslation($langcode);
-
- // If no owner has been set explicitly, make the anonymous user the owner.
- if (!$translation->getOwner()) {
- $translation->setOwnerId(0);
- }
- }
-
- // If no revision author has been set explicitly, make the {{ entity_name }} owner the
- // revision author.
- if (!$this->getRevisionUser()) {
- $this->setRevisionUserId($this->getOwnerId());
- }
- }
-{% endif %}
-
- /**
- * {@inheritdoc}
- */
- public function getName() {
- return $this->get('name')->value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setName($name) {
- $this->set('name', $name);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCreatedTime() {
- return $this->get('created')->value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setCreatedTime($timestamp) {
- $this->set('created', $timestamp);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getOwner() {
- return $this->get('user_id')->entity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getOwnerId() {
- return $this->get('user_id')->target_id;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setOwnerId($uid) {
- $this->set('user_id', $uid);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setOwner(UserInterface $account) {
- $this->set('user_id', $account->id());
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isPublished() {
- return (bool) $this->getEntityKey('status');
- }
-
- /**
- * {@inheritdoc}
- */
- public function setPublished($published) {
- $this->set('status', $published ? TRUE : FALSE);
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
- $fields = parent::baseFieldDefinitions($entity_type);
-
- $fields['user_id'] = BaseFieldDefinition::create('entity_reference')
- ->setLabel(t('Authored by'))
- ->setDescription(t('The user ID of author of the {{ label }} entity.'))
- ->setRevisionable(TRUE)
- ->setSetting('target_type', 'user')
- ->setSetting('handler', 'default')
- ->setTranslatable(TRUE)
- ->setDisplayOptions('view', [
- 'label' => 'hidden',
- 'type' => 'author',
- 'weight' => 0,
- ])
- ->setDisplayOptions('form', [
- 'type' => 'entity_reference_autocomplete',
- 'weight' => 5,
- 'settings' => [
- 'match_operator' => 'CONTAINS',
- 'size' => '60',
- 'autocomplete_type' => 'tags',
- 'placeholder' => '',
- ],
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayConfigurable('view', TRUE);
-
- $fields['name'] = BaseFieldDefinition::create('string')
- ->setLabel(t('Name'))
- ->setDescription(t('The name of the {{ label }} entity.'))
-{% if revisionable %}
- ->setRevisionable(TRUE)
-{% endif %}
- ->setSettings([
- 'max_length' => 50,
- 'text_processing' => 0,
- ])
- ->setDefaultValue('')
- ->setDisplayOptions('view', [
- 'label' => 'above',
- 'type' => 'string',
- 'weight' => -4,
- ])
- ->setDisplayOptions('form', [
- 'type' => 'string_textfield',
- 'weight' => -4,
- ])
- ->setDisplayConfigurable('form', TRUE)
- ->setDisplayConfigurable('view', TRUE)
- ->setRequired(TRUE);
-
- $fields['status'] = BaseFieldDefinition::create('boolean')
- ->setLabel(t('Publishing status'))
- ->setDescription(t('A boolean indicating whether the {{ label }} is published.'))
-{% if revisionable %}
- ->setRevisionable(TRUE)
-{% endif %}
- ->setDefaultValue(TRUE)
- ->setDisplayOptions('form', [
- 'type' => 'boolean_checkbox',
- 'weight' => -3,
- ]);
-
- $fields['created'] = BaseFieldDefinition::create('created')
- ->setLabel(t('Created'))
- ->setDescription(t('The time that the entity was created.'));
-
- $fields['changed'] = BaseFieldDefinition::create('changed')
- ->setLabel(t('Changed'))
- ->setDescription(t('The time that the entity was last edited.'));
-{% if revisionable and is_translatable %}
-
- $fields['revision_translation_affected'] = BaseFieldDefinition::create('boolean')
- ->setLabel(t('Revision translation affected'))
- ->setDescription(t('Indicates if the last edit of a translation belongs to current revision.'))
- ->setReadOnly(TRUE)
- ->setRevisionable(TRUE)
- ->setTranslatable(TRUE);
-{% endif %}
-
- return $fields;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity-content.theme.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity-content.theme.php.twig
deleted file mode 100644
index afa9d750c..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/entity-content.theme.php.twig
+++ /dev/null
@@ -1,7 +0,0 @@
-{% block hook_theme %}
- $theme['{{ entity_name }}'] = [
- 'render element' => 'elements',
- 'file' => '{{ entity_name }}.page.inc',
- 'template' => '{{ entity_name }}',
- ];
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity.php.twig
deleted file mode 100644
index 03efd8791..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/entity.php.twig
+++ /dev/null
@@ -1,72 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Entity\{{ entity_class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Entity;
-{% endblock %}
-
-{% block use_class %}
-{% if bundle_of %}
-use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
-{% else %}
-use Drupal\Core\Config\Entity\ConfigEntityBase;
-{% endif %}
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines the {{ label }} entity.
- *
- * @ConfigEntityType(
- * id = "{{ entity_name }}",
- * label = @Translation("{{ label }}"),
- * handlers = {
- * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
- * "list_builder" = "Drupal\{{ module }}\{{ entity_class }}ListBuilder",
- * "form" = {
- * "add" = "Drupal\{{ module }}\Form\{{ entity_class }}Form",
- * "edit" = "Drupal\{{ module }}\Form\{{ entity_class }}Form",
- * "delete" = "Drupal\{{ module }}\Form\{{ entity_class }}DeleteForm"
- * },
- * "route_provider" = {
- * "html" = "Drupal\{{ module }}\{{ entity_class }}HtmlRouteProvider",
- * },
- * },
- * config_prefix = "{{ entity_name }}",
- * admin_permission = "administer site configuration",
-{% if bundle_of %}
- * bundle_of = "{{ bundle_of }}",
-{% endif %}
- * entity_keys = {
- * "id" = "id",
- * "label" = "label",
- * "uuid" = "uuid"
- * },
- * links = {
- * "canonical" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}",
- * "add-form" = "{{ base_path }}/{{ entity_name }}/add",
- * "edit-form" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/edit",
- * "delete-form" = "{{ base_path }}/{{ entity_name }}/{{ '{'~entity_name~'}' }}/delete",
- * "collection" = "{{ base_path }}/{{ entity_name }}"
- * }
- * )
- */
-class {{ entity_class }} extends {% if bundle_of %}ConfigEntityBundleBase{% else %}ConfigEntityBase{% endif %} implements {{ entity_class }}Interface {% endblock %}
-{% block class_methods %}
- /**
- * The {{ label }} ID.
- *
- * @var string
- */
- protected $id;
-
- /**
- * The {{ label }} label.
- *
- * @var string
- */
- protected $label;
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/interface-entity-content.php.twig b/vendor/drupal/console/templates/module/src/Entity/interface-entity-content.php.twig
deleted file mode 100644
index e1d7dfdca..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/interface-entity-content.php.twig
+++ /dev/null
@@ -1,128 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Entity\{{ entity_class }}Interface.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Entity;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\ContentEntityInterface;
-{% if revisionable %}
-use Drupal\Core\Entity\RevisionLogInterface;
-{% endif %}
-use Drupal\Core\Entity\EntityChangedInterface;
-use Drupal\user\EntityOwnerInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides an interface for defining {{ label }} entities.
- *
- * @ingroup {{module}}
- */
-interface {{ entity_class }}Interface extends ContentEntityInterface{% if revisionable %}, RevisionLogInterface{% endif %}, EntityChangedInterface, EntityOwnerInterface {% endblock %}
-{% block class_methods %}
- // Add get/set methods for your configuration properties here.
-
- /**
- * Gets the {{ label }} name.
- *
- * @return string
- * Name of the {{ label }}.
- */
- public function getName();
-
- /**
- * Sets the {{ label }} name.
- *
- * @param string $name
- * The {{ label }} name.
- *
- * @return \Drupal\{{ module }}\Entity\{{ entity_class }}Interface
- * The called {{ label }} entity.
- */
- public function setName($name);
-
- /**
- * Gets the {{ label }} creation timestamp.
- *
- * @return int
- * Creation timestamp of the {{ label }}.
- */
- public function getCreatedTime();
-
- /**
- * Sets the {{ label }} creation timestamp.
- *
- * @param int $timestamp
- * The {{ label }} creation timestamp.
- *
- * @return \Drupal\{{ module }}\Entity\{{ entity_class }}Interface
- * The called {{ label }} entity.
- */
- public function setCreatedTime($timestamp);
-
- /**
- * Returns the {{ label }} published status indicator.
- *
- * Unpublished {{ label }} are only visible to restricted users.
- *
- * @return bool
- * TRUE if the {{ label }} is published.
- */
- public function isPublished();
-
- /**
- * Sets the published status of a {{ label }}.
- *
- * @param bool $published
- * TRUE to set this {{ label }} to published, FALSE to set it to unpublished.
- *
- * @return \Drupal\{{ module }}\Entity\{{ entity_class }}Interface
- * The called {{ label }} entity.
- */
- public function setPublished($published);
-{% if revisionable %}
-
- /**
- * Gets the {{ label }} revision creation timestamp.
- *
- * @return int
- * The UNIX timestamp of when this revision was created.
- */
- public function getRevisionCreationTime();
-
- /**
- * Sets the {{ label }} revision creation timestamp.
- *
- * @param int $timestamp
- * The UNIX timestamp of when this revision was created.
- *
- * @return \Drupal\{{ module }}\Entity\{{ entity_class }}Interface
- * The called {{ label }} entity.
- */
- public function setRevisionCreationTime($timestamp);
-
- /**
- * Gets the {{ label }} revision author.
- *
- * @return \Drupal\user\UserInterface
- * The user entity for the revision author.
- */
- public function getRevisionUser();
-
- /**
- * Sets the {{ label }} revision author.
- *
- * @param int $uid
- * The user ID of the revision author.
- *
- * @return \Drupal\{{ module }}\Entity\{{ entity_class }}Interface
- * The called {{ label }} entity.
- */
- public function setRevisionUserId($uid);
-{% endif %}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Entity/interface-entity.php.twig b/vendor/drupal/console/templates/module/src/Entity/interface-entity.php.twig
deleted file mode 100644
index bf8b7694d..000000000
--- a/vendor/drupal/console/templates/module/src/Entity/interface-entity.php.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Entity\{{ entity_class }}Interface.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Entity;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Config\Entity\ConfigEntityInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides an interface for defining {{ label }} entities.
- */
-interface {{ entity_class }}Interface extends ConfigEntityInterface {% endblock %}
-{% block class_methods %}
- // Add get/set methods for your configuration properties here.{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Form/entity-delete.php.twig b/vendor/drupal/console/templates/module/src/Form/entity-delete.php.twig
deleted file mode 100644
index be3afd8d5..000000000
--- a/vendor/drupal/console/templates/module/src/Form/entity-delete.php.twig
+++ /dev/null
@@ -1,61 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Form\{{ entity_class }}DeleteForm.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityConfirmFormBase;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Url;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Builds the form to delete {{ label }} entities.
- */
-class {{ entity_class }}DeleteForm extends EntityConfirmFormBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function getQuestion() {
- return $this->t('Are you sure you want to delete %name?', ['%name' => $this->entity->label()]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCancelUrl() {
- return new Url('entity.{{ entity_name }}.collection');
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConfirmText() {
- return $this->t('Delete');
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- $this->entity->delete();
-
- drupal_set_message(
- $this->t('content @type: deleted @label.',
- [
- '@type' => $this->entity->bundle(),
- '@label' => $this->entity->label(),
- ]
- )
- );
-
- $form_state->setRedirectUrl($this->getCancelUrl());
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Form/entity.php.twig b/vendor/drupal/console/templates/module/src/Form/entity.php.twig
deleted file mode 100644
index 0ce40406a..000000000
--- a/vendor/drupal/console/templates/module/src/Form/entity.php.twig
+++ /dev/null
@@ -1,73 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Form\{{ entity_class }}Form.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityForm;
-use Drupal\Core\Form\FormStateInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ entity_class }}Form.
- */
-class {{ entity_class }}Form extends EntityForm {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function form(array $form, FormStateInterface $form_state) {
- $form = parent::form($form, $form_state);
-
- ${{ entity_name | machine_name }} = $this->entity;
- $form['label'] = [
- '#type' => 'textfield',
- '#title' => $this->t('Label'),
- '#maxlength' => 255,
- '#default_value' => ${{ entity_name | machine_name }}->label(),
- '#description' => $this->t("Label for the {{ label }}."),
- '#required' => TRUE,
- ];
-
- $form['id'] = [
- '#type' => 'machine_name',
- '#default_value' => ${{ entity_name | machine_name }}->id(),
- '#machine_name' => [
- 'exists' => '\Drupal\{{ module }}\Entity\{{ entity_class }}::load',
- ],
- '#disabled' => !${{ entity_name | machine_name }}->isNew(),
- ];
-
- /* You will need additional form elements for your custom properties. */
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function save(array $form, FormStateInterface $form_state) {
- ${{ entity_name | machine_name }} = $this->entity;
- $status = ${{ entity_name | machine_name }}->save();
-
- switch ($status) {
- case SAVED_NEW:
- drupal_set_message($this->t('Created the %label {{ label }}.', [
- '%label' => ${{ entity_name | machine_name }}->label(),
- ]));
- break;
-
- default:
- drupal_set_message($this->t('Saved the %label {{ label }}.', [
- '%label' => ${{ entity_name | machine_name }}->label(),
- ]));
- }
- $form_state->setRedirectUrl(${{ entity_name | machine_name }}->toUrl('collection'));
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig b/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig
deleted file mode 100644
index f4bf25b18..000000000
--- a/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig
+++ /dev/null
@@ -1,63 +0,0 @@
-
-{% block use_class %}
-use Drupal\Core\Form\FormStateInterface;
-{% endblock %}
-
-{% block file_methods %}
-{% if form_id is not empty %}
-/**
- * Implements hook_form_FORM_ID_alter() on behalf of {{ module }}.module.
-{% if metadata.class is defined %}
- * @see \{{ metadata.class }} method {{ metadata.method }} at {{ metadata.file }}
-{% endif %}
- */
-function {{ module }}_form_{{ form_id }}_alter(&$form, FormStateInterface $form_state) {
- drupal_set_message('{{ module }}_form_{{ form_id }}_alter() executed.');
-{% else %}
-/**
- * Implements hook_form_alter() on behalf of {{ module }}.module.
- */
-function {{ module }}_form_alter(&$form, FormStateInterface $form_state, $form_id) {
- // Change form id here
- if ($form_id == 'form_test_alter_form') {
- drupal_set_message('form_test_form_alter() executed.');
-{% endif %}
-
-{%- if metadata.unset -%}
-{% for field in metadata.unset %}
- $form['{{ field }}']['#access'] = FALSE;
-{% endfor %}
-{% endif %}
-
-{% if inputs %}
-{% for input in inputs %}
- $form['{{ input.name }}'] = [
- '#type' => '{{ input.type }}',
- '#title' => t('{{ input.label|e }}'),
- {%- if input.description is defined and input.description is defined -%}
- '#description' => t('{{ input.description|e }}'),
- {% endif %}
- {%- if input.options is defined and input.options|length -%}
- '#options' => {{ input.options }},
- {% endif %}
- {%- if input.maxlength is defined and input.maxlength|length -%}
- '#maxlength' => {{ input.maxlength }},
- {% endif %}
- {%- if input.size is defined and input.size|length -%}
- '#size' => {{ input.size }},
- {% endif %}
- {%- if input.default_value is defined and input.default_value|length -%}
- '#default_value' => '{{ input.default_value }}',
- {% endif %}
- {%- if input.weight is defined and input.weight|length -%}
- '#weight' => '{{ input.weight }}',
- {% endif %}
- ];
-
-{% endfor %}
-{% endif %}
-{% if form_id is empty %}
- }
-{% endif %}
-}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Form/form-config.php.twig b/vendor/drupal/console/templates/module/src/Form/form-config.php.twig
deleted file mode 100644
index 1dc6e75f2..000000000
--- a/vendor/drupal/console/templates/module/src/Form/form-config.php.twig
+++ /dev/null
@@ -1,122 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-Drupal\{{module_name}}\Form\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module_name}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Form\ConfigFormBase;
-use Drupal\Core\Form\FormStateInterface;
-{% if services is not empty %}
-use Drupal\Core\Config\ConfigFactoryInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endif %}
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class_name }}.
- */
-class {{ class_name }} extends ConfigFormBase {% endblock %}
-{% block class_construct %}
-{% if services is not empty %}
- /**
- * Constructs a new {{ class_name }} object.
- */
- public function __construct(
- ConfigFactoryInterface $config_factory,
- {{ servicesAsParameters(services)|join(',\n ') }}
- ) {
- parent::__construct($config_factory);
- {{ serviceClassInitialization(services) }}
- }
-
-{% endif %}
-{% endblock %}
-
-{% block class_create %}
-{% if services is not empty %}
- public static function create(ContainerInterface $container) {
- return new static(
- $container->get('config.factory'),
- {{ serviceClassInjection(services) }}
- );
- }
-
-{% endif %}
-{% endblock %}
-
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- protected function getEditableConfigNames() {
- return [
- '{{module_name}}.{{class_name_short}}',
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormId() {
- return '{{form_id}}';
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildForm(array $form, FormStateInterface $form_state) {
- $config = $this->config('{{module_name}}.{{class_name_short}}');
-{% for input in inputs %}
-{% if input.fieldset is defined and input.fieldset is not empty %}
- $form['{{ input.fieldset }}']['{{ input.name }}'] = [
-{% else %}
- $form['{{ input.name }}'] = [
-{% endif %}
- '#type' => '{{ input.type }}',
- '#title' => $this->t('{{ input.label|e }}'),
-{% if input.description is defined and input.description|length %}
- '#description' => $this->t('{{ input.description|e }}'),
-{% endif %}
-{% if input.options is defined and input.options is not empty %}
- '#options' => {{ input.options }},
-{% endif %}
-{% if input.maxlength is defined and input.maxlength is not empty %}
- '#maxlength' => {{ input.maxlength }},
-{% endif %}
-{% if input.size is defined and input.size is not empty %}
- '#size' => {{ input.size }},
-{% endif %}
-{% if input.type != 'password_confirm' and input.type != 'fieldset' %}
- '#default_value' => $config->get('{{ input.name }}'),
-{% endif %}
- ];
-{% endfor %}
- return parent::buildForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function validateForm(array &$form, FormStateInterface $form_state) {
- parent::validateForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- parent::submitForm($form, $form_state);
-
- $this->config('{{module_name}}.{{class_name_short}}')
-{% for input in inputs %}
- ->set('{{ input.name }}', $form_state->getValue('{{ input.name }}'))
-{% endfor %}
- ->save();
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Form/form.php.twig b/vendor/drupal/console/templates/module/src/Form/form.php.twig
deleted file mode 100644
index c2bd37c80..000000000
--- a/vendor/drupal/console/templates/module/src/Form/form.php.twig
+++ /dev/null
@@ -1,115 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module_name}}\Form\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module_name}}\Form;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Form\FormBase;
-use Drupal\Core\Form\FormStateInterface;
-{% if services is not empty %}
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endif %}
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class_name }}.
- */
-class {{ class_name }} extends FormBase {% endblock %}
-{% block class_construct %}
-{% if services is not empty %}
- /**
- * Constructs a new {{ class_name }} object.
- */
- public function __construct(
- {{ servicesAsParameters(services)|join(',\n ') }}
- ) {
-{{ serviceClassInitialization(services) }}
- }
-
-{% endif %}
-{% endblock %}
-
-{% block class_create %}
-{% if services is not empty %}
- public static function create(ContainerInterface $container) {
- return new static(
-{{ serviceClassInjection(services) }}
- );
- }
-
-{% endif %}
-{% endblock %}
-
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public function getFormId() {
- return '{{form_id}}';
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildForm(array $form, FormStateInterface $form_state) {
-{% for input in inputs %}
-{% if input.fieldset is defined and input.fieldset|length %}
- $form['{{ input.fieldset }}']['{{ input.name }}'] = [
-{% else %}
- $form['{{ input.name }}'] = [
-{% endif %}
- '#type' => '{{ input.type }}',
- '#title' => $this->t('{{ input.label|e }}'),
-{% if input.description is defined and input.description|length %}
- '#description' => $this->t('{{ input.description|e }}'),
-{% endif %}
-{% if input.options is defined and input.options|length %}
- '#options' => {{ input.options }},
-{% endif %}
-{% if input.maxlength is defined and input.maxlength|length %}
- '#maxlength' => {{ input.maxlength }},
-{% endif %}
-{% if input.size is defined and input.size|length %}
- '#size' => {{ input.size }},
-{% endif %}
-{% if input.default_value is defined and input.default_value|length %}
- '#default_value' => {{ input.default_value }},
-{% endif %}
-{% if input.weight is defined and input.weight|length %}
- '#weight' => '{{ input.weight }}',
-{% endif %}
- ];
-{% endfor %}
- $form['submit'] = [
- '#type' => 'submit',
- '#value' => $this->t('Submit'),
- ];
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function validateForm(array &$form, FormStateInterface $form_state) {
- parent::validateForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function submitForm(array &$form, FormStateInterface $form_state) {
- // Display result.
- foreach ($form_state->getValues() as $key => $value) {
- drupal_set_message($key . ': ' . $value);
- }
-
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Generator/generator.php.twig b/vendor/drupal/console/templates/module/src/Generator/generator.php.twig
deleted file mode 100644
index 00f749668..000000000
--- a/vendor/drupal/console/templates/module/src/Generator/generator.php.twig
+++ /dev/null
@@ -1,38 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{extension}}\Generator\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{extension}}\Generator;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Console\Core\Generator\Generator;
-use Drupal\Console\Core\Generator\GeneratorInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class_name }}
- *
- * @package Drupal\Console\Generator
- */
-class {{ class_name }} extends Generator implements GeneratorInterface
-{% endblock %}
-
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function generate(array $parameters)
- {
-// Example how to render a twig template using the renderFile method
-// $this->renderFile(
-// 'path/to/file.php.twig',
-// 'path/to/file.php',
-// $parameters
-// );
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Action/rulesaction.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Action/rulesaction.php.twig
deleted file mode 100644
index fb0812528..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Action/rulesaction.php.twig
+++ /dev/null
@@ -1,44 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\Action\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\Action;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Action\ActionBase;
-use Drupal\Core\Session\AccountInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a '{{class_name}}' action.
- *
- * @Action(
- * id = "{{plugin_id}}",
- * label = @Translation("{{label}}"),
- * type = "{{type}}",
- * )
- */
-class {{class_name}} extends ActionBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function execute($object = NULL) {
- // Insert code here.
- }
-
- /**
- * {@inheritdoc}
- */
- public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
- $access = $object->status->access('edit', $account, TRUE)
- ->andIf($object->access('update', $account, TRUE));
-
- return $return_as_object ? $access : $access->isAllowed();
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Block/block.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Block/block.php.twig
deleted file mode 100644
index 7bc5cf477..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Block/block.php.twig
+++ /dev/null
@@ -1,138 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\Block\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\Block;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Block\BlockBase;
-{% if inputs %}
-use Drupal\Core\Form\FormStateInterface;
-{% endif %}
-{% if services is not empty %}
-use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endif %}
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a '{{class_name}}' block.
- *
- * @Block(
- * id = "{{plugin_id}}",
- * admin_label = @Translation("{{label}}"),
- * )
- */
-class {{class_name}} extends BlockBase {% if services is not empty %}implements ContainerFactoryPluginInterface {% endif %}{% endblock %}
-{% block class_construct %}
-{% if services is not empty %}
- /**
- * Constructs a new {{class_name}} object.
- *
- * @param array $configuration
- * A configuration array containing information about the plugin instance.
- * @param string $plugin_id
- * The plugin_id for the plugin instance.
- * @param string $plugin_definition
- * The plugin implementation definition.
- */
- public function __construct(
- array $configuration,
- $plugin_id,
- $plugin_definition,
- {{ servicesAsParameters(services)|join(', \n\t') }}
- ) {
- parent::__construct($configuration, $plugin_id, $plugin_definition);
-{{ serviceClassInitialization(services) }}
- }
-{% endif %}
-{% endblock %}
-{% block class_create %}
-{% if services is not empty %}
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
-{{ serviceClassInjection(services) }}
- );
- }
-{% endif %}
-{% endblock %}
-{% block class_methods %}
-{% if inputs %}
- /**
- * {@inheritdoc}
- */
- public function defaultConfiguration() {
- return [
-{% for input in inputs %}
- {% if input.default_value is defined and input.default_value|length %}
- '{{ input.name }}' => {{ input.default_value }},
- {% endif %}
-{% endfor %}
- ] + parent::defaultConfiguration();
- }
-
- /**
- * {@inheritdoc}
- */
- public function blockForm($form, FormStateInterface $form_state) {
-{% for input in inputs %}
- $form['{{ input.name }}'] = [
- '#type' => '{{ input.type }}',
- '#title' => $this->t('{{ input.label|escape }}'),
-{% if input.description is defined and input.description is not empty %}
- '#description' => $this->t('{{ input.description|e }}'),
-{% endif %}
-{% if input.options is defined and input.options|length %}
- '#options' => {{ input.options }},
-{% endif %}
- '#default_value' => $this->configuration['{{ input.name }}'],
-{% if input.maxlength is defined and input.maxlength|length %}
- '#maxlength' => {{ input.maxlength }},
-{% endif %}
-{% if input.size is defined and input.size|length %}
- '#size' => {{ input.size }},
-{% endif %}
-{% if input.weight is defined and input.weight|length %}
- '#weight' => '{{ input.weight }}',
-{% endif %}
- ];
-{% endfor %}
-
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
- public function blockSubmit($form, FormStateInterface $form_state) {
-{% for input in inputs %}
- $this->configuration['{{ input.name }}'] = $form_state->getValue('{{ input.name }}');
-{% endfor %}
- }
-
-{% endif %}
- /**
- * {@inheritdoc}
- */
- public function build() {
- $build = [];
-{% for input in inputs %}
- $build['{{plugin_id}}_{{ input.name }}']['#markup'] = '' . $this->configuration['{{ input.name }}'] . '
';
-{% else %}
- $build['{{plugin_id}}']['#markup'] = 'Implement {{class_name}}.';
-{% endfor %}
-
- return $build;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/CKEditorPlugin/ckeditorbutton.php.twig b/vendor/drupal/console/templates/module/src/Plugin/CKEditorPlugin/ckeditorbutton.php.twig
deleted file mode 100644
index 0e16747fb..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/CKEditorPlugin/ckeditorbutton.php.twig
+++ /dev/null
@@ -1,86 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\CKEditorPlugin\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin\CKEditorPlugin;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\ckeditor\CKEditorPluginBase;
-use Drupal\editor\Entity\Editor;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines the "{{ plugin_id }}" plugin.
- *
- * NOTE: The plugin ID ('id' key) corresponds to the CKEditor plugin name.
- * It is the first argument of the CKEDITOR.plugins.add() function in the
- * plugin.js file.
- *
- * @CKEditorPlugin(
- * id = "{{ plugin_id }}",
- * label = @Translation("{{ label }}")
- * )
- */
-class {{ class_name }} extends CKEditorPluginBase {% endblock %}
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- *
- * NOTE: The keys of the returned array corresponds to the CKEditor button
- * names. They are the first argument of the editor.ui.addButton() or
- * editor.ui.addRichCombo() functions in the plugin.js file.
- */
- public function getButtons() {
- // Make sure that the path to the image matches the file structure of
- // the CKEditor plugin you are implementing.
- return [
- '{{ button_name }}' => [
- 'label' => t('{{ label }}'),
- 'image' => '{{ button_icon_path }}',
- ],
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFile() {
- // Make sure that the path to the plugin.js matches the file structure of
- // the CKEditor plugin you are implementing.
- return drupal_get_path('module', '{{ module }}') . '/js/plugins/{{ plugin_id }}/plugin.js';
- }
-
- /**
- * {@inheritdoc}
- */
- public function isInternal() {
- return FALSE;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getDependencies(Editor $editor) {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getLibraries(Editor $editor) {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConfig(Editor $editor) {
- return [];
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Condition/condition.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Condition/condition.php.twig
deleted file mode 100644
index c782c90f5..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Condition/condition.php.twig
+++ /dev/null
@@ -1,129 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\Condition\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin\Condition;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Condition\ConditionPluginBase;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Plugin\Context\ContextDefinition;
-{% endblock %}
-
-{% block class_declaration %}
-/**
-* Provides a '{{ label }}' condition to enable a condition based in module selected status.
-*
-* @Condition(
-* id = "{{ plugin_id }}",
-* label = @Translation("{{ label }}"),
-* context = {
-* "{{ context_id }}" = @ContextDefinition("{{ context_definition_id }}", required = {{ context_definition_required }} , label = @Translation("{{ context_definition_label }}"))
-* }
-* )
-*
-*/
-class {{ class_name }} extends ConditionPluginBase {% endblock %}
-{% block class_methods %}
-/**
-* {@inheritdoc}
-*/
-public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
-{
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition
- );
-}
-
-/**
- * Creates a new {{ class_name }} object.
- *
- * @param array $configuration
- * The plugin configuration, i.e. an array with configuration values keyed
- * by configuration option name. The special key 'context' may be used to
- * initialize the defined contexts by setting it to an array of context
- * values keyed by context names.
- * @param string $plugin_id
- * The plugin_id for the plugin instance.
- * @param mixed $plugin_definition
- * The plugin implementation definition.
- */
- public function __construct(array $configuration, $plugin_id, $plugin_definition) {
- parent::__construct($configuration, $plugin_id, $plugin_definition);
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
- // Sort all modules by their names.
- $modules = system_rebuild_module_data();
- uasort($modules, 'system_sort_modules_by_info_name');
-
- $options = [NULL => t('Select a module')];
- foreach($modules as $module_id => $module) {
- $options[$module_id] = $module->info['name'];
- }
-
- $form['module'] = [
- '#type' => 'select',
- '#title' => $this->t('Select a module to validate'),
- '#default_value' => $this->configuration['module'],
- '#options' => $options,
- '#description' => $this->t('Module selected status will be use to evaluate condition.'),
- ];
-
- return parent::buildConfigurationForm($form, $form_state);
- }
-
-/**
- * {@inheritdoc}
- */
- public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
- $this->configuration['module'] = $form_state->getValue('module');
- parent::submitConfigurationForm($form, $form_state);
- }
-
-/**
- * {@inheritdoc}
- */
- public function defaultConfiguration() {
- return ['module' => ''] + parent::defaultConfiguration();
- }
-
-/**
- * Evaluates the condition and returns TRUE or FALSE accordingly.
- *
- * @return bool
- * TRUE if the condition has been met, FALSE otherwise.
- */
- public function evaluate() {
- if (empty($this->configuration['module']) && !$this->isNegated()) {
- return TRUE;
- }
-
- $module = $this->configuration['module'];
- $modules = system_rebuild_module_data();
-
- return $modules[$module]->status;
- }
-
-/**
- * Provides a human readable summary of the condition's configuration.
- */
- public function summary()
- {
- $module = $this->getContextValue('module');
- $modules = system_rebuild_module_data();
-
- $status = ($modules[$module]->status)?t('enabled'):t('disabled');
-
- return t('The module @module is @status.', ['@module' => $module, '@status' => $status]);
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldFormatter/fieldformatter.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Field/FieldFormatter/fieldformatter.php.twig
deleted file mode 100644
index c1147c44c..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldFormatter/fieldformatter.php.twig
+++ /dev/null
@@ -1,93 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\Field\FieldFormatter\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin\Field\FieldFormatter;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Utility\Html;
-use Drupal\Core\Field\FieldItemInterface;
-use Drupal\Core\Field\FieldItemListInterface;
-use Drupal\Core\Field\FormatterBase;
-use Drupal\Core\Form\FormStateInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Plugin implementation of the '{{ plugin_id }}' formatter.
- *
- * @FieldFormatter(
- * id = "{{ plugin_id }}",
- * label = @Translation("{{ label }}"){% if field_type %},
- * field_types = {
- * "{{ field_type }}"
- * }
-{% else %}
-
- * At least one field_types annotation array entry is necessary to display this formatter in the UI.
- * ex. field_types = { "field_type" }
-{% endif %}
- * )
- */
-class {{ class_name }} extends FormatterBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public static function defaultSettings() {
- return [
- // Implement default settings.
- ] + parent::defaultSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
- return [
- // Implement settings form.
- ] + parent::settingsForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $summary = [];
- // Implement settings summary.
-
- return $summary;
- }
-
- /**
- * {@inheritdoc}
- */
- public function viewElements(FieldItemListInterface $items, $langcode) {
- $elements = [];
-
- foreach ($items as $delta => $item) {
- $elements[$delta] = ['#markup' => $this->viewValue($item)];
- }
-
- return $elements;
- }
-
- /**
- * Generate the output appropriate for one field item.
- *
- * @param \Drupal\Core\Field\FieldItemInterface $item
- * One field item.
- *
- * @return string
- * The textual output generated.
- */
- protected function viewValue(FieldItemInterface $item) {
- // The text value has no text format assigned to it, so the user input
- // should equal the output, including newlines.
- return nl2br(Html::escape($item->value));
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldFormatter/imageformatter.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Field/FieldFormatter/imageformatter.php.twig
deleted file mode 100644
index 92059a4d4..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldFormatter/imageformatter.php.twig
+++ /dev/null
@@ -1,224 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\Field\FieldFormatter\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin\Field\FieldFormatter;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\image\Plugin\Field\FieldFormatter\ImageFormatterBase;
-use Drupal\Core\Entity\EntityStorageInterface;
-use Drupal\Core\Field\FieldItemListInterface;
-use Drupal\Core\Field\FieldDefinitionInterface;
-use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Url;
-use Drupal\Core\Utility\LinkGeneratorInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Cache\Cache;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Plugin implementation of the '{{ plugin_id }}' formatter.
- *
- * @FieldFormatter(
- * id = "{{ plugin_id }}",
- * label = @Translation("{{ label }}"),
- * field_types = {
- * "image"
- * }
- * )
- */
-class {{ class_name }} extends ImageFormatterBase implements ContainerFactoryPluginInterface {% endblock %}
-{% block class_methods %}
-/**
- * The current user.
- *
- * @var \Drupal\Core\Session\AccountInterface
- */
- protected $currentUser;
-
-/**
- * The link generator.
- *
- * @var \Drupal\Core\Utility\LinkGeneratorInterface
- */
- protected $linkGenerator;
-
-/**
- * The image style entity storage.
- *
- * @var \Drupal\Core\Entity\EntityStorageInterface
- */
- protected $imageStyleStorage;
-
-/**
- * Constructs a new {{ class_name }} object.
- *
- * @param string $plugin_id
- * The plugin_id for the formatter.
- * @param mixed $plugin_definition
- * The plugin implementation definition.
- * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
- * The definition of the field to which the formatter is associated.
- * @param array $settings
- * The formatter settings.
- * @param string $label
- * The formatter label display setting.
- * @param string $view_mode
- * The view mode.
- * @param array $third_party_settings
- * Any third party settings settings.
- * @param \Drupal\Core\Session\AccountInterface $current_user
- * The current user.
- * @param \Drupal\Core\Utility\LinkGeneratorInterface $link_generator
- * The link generator service.
- * @param \Drupal\Core\Entity\EntityStorageInterface $image_style_storage
- * The entity storage for the image.
- */
- public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, AccountInterface $current_user, LinkGeneratorInterface $link_generator, EntityStorageInterface $image_style_storage) {
- parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
- $this->currentUser = $current_user;
- $this->linkGenerator = $link_generator;
- $this->imageStyleStorage = $image_style_storage;
- }
-
-/**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $plugin_id,
- $plugin_definition,
- $configuration['field_definition'],
- $configuration['settings'],
- $configuration['label'],
- $configuration['view_mode'],
- $configuration['third_party_settings'],
- $container->get('current_user'),
- $container->get('link_generator'),
- $container->get('entity_type.manager')->getStorage('image_style')
- );
- }
-
-/**
- * {@inheritdoc}
- */
- public static function defaultSettings() {
- return [
- 'image_style' => '',
- 'image_link' => '',
- ] + parent::defaultSettings();
- }
-
-/**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
- $image_styles = image_style_options(FALSE);
- $element['image_style'] = [
- '#title' => t('Image style'),
- '#type' => 'select',
- '#default_value' => $this->getSetting('image_style'),
- '#empty_option' => t('None (original image)'),
- '#options' => $image_styles,
- '#description' => [
- '#markup' => $this->linkGenerator->generate($this->t('Configure Image Styles'), new Url('entity.image_style.collection')),
- '#access' => $this->currentUser->hasPermission('administer image styles'),
- ],
- ];
-
- return $element;
- }
-
-/**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $summary = [];
- $image_styles = image_style_options(FALSE);
-
- // Unset possible 'No defined styles' option.
- unset($image_styles['']);
-
- // Styles could be lost because of enabled/disabled modules that defines
- // their styles in code.
- $image_style_setting = $this->getSetting('image_style');
- if (isset($image_styles[$image_style_setting])) {
- $summary[] = t('Image style: @style', ['@style' => $image_styles[$image_style_setting]]);
- }
- else {
- $summary[] = t('Original image');
- }
-
- return $summary;
- }
-
-/**
- * {@inheritdoc}
- */
- public function viewElements(FieldItemListInterface $items, $langcode) {
- $elements = [];
- $files = $this->getEntitiesToView($items, $langcode);
-
- // Early opt-out if the field is empty.
- if (empty($files)) {
- return $elements;
- }
-
- $url = NULL;
- $image_link_setting = $this->getSetting('image_link');
- // Check if the formatter involves a link.
- if ($image_link_setting == 'content') {
- $entity = $items->getEntity();
- if (!$entity->isNew()) {
- $url = $entity->toUrl();
- }
- }
- elseif ($image_link_setting == 'file') {
- $link_file = TRUE;
- }
-
- $image_style_setting = $this->getSetting('image_style');
-
- // Collect cache tags to be added for each item in the field.
- $cache_tags = [];
- if (!empty($image_style_setting)) {
- $image_style = $this->imageStyleStorage->load($image_style_setting);
- $cache_tags = $image_style->getCacheTags();
- }
-
- foreach ($files as $delta => $file) {
- if (isset($link_file)) {
- $image_uri = $file->getFileUri();
- $url = Url::fromUri(file_create_url($image_uri));
- }
-
- $cache_tags = Cache::mergeTags($cache_tags, $file->getCacheTags());
-
- // Extract field item attributes for the theme function, and unset them
- // from the $item so that the field template does not re-render them.
- $item = $file->_referringItem;
- $item_attributes = $item->_attributes;
- unset($item->_attributes);
-
- $elements[$delta] = [
- '#theme' => 'image_formatter',
- '#item' => $item,
- '#item_attributes' => $item_attributes,
- '#image_style' => $image_style_setting,
- '#url' => $url,
- '#cache' => [
- 'tags' => $cache_tags,
- ],
- ];
- }
-
- return $elements;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldType/fieldtype.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Field/FieldType/fieldtype.php.twig
deleted file mode 100644
index a9208b836..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldType/fieldtype.php.twig
+++ /dev/null
@@ -1,143 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\Field\FieldType\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin\Field\FieldType;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Utility\Random;
-use Drupal\Core\Field\FieldDefinitionInterface;
-use Drupal\Core\Field\FieldItemBase;
-use Drupal\Core\Field\FieldStorageDefinitionInterface;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\StringTranslation\TranslatableMarkup;
-use Drupal\Core\TypedData\DataDefinition;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Plugin implementation of the '{{ plugin_id }}' field type.
- *
- * @FieldType(
- * id = "{{ plugin_id }}",
- * label = @Translation("{{ label }}"),
- * description = @Translation("{{ description }}"){% if default_widget or default_formatter %},
-{% endif %}
-{% if default_widget %}
- * default_widget = "{{ default_widget }}"{% if default_widget and default_formatter %},
-{% endif %}
-{% else %}
-{% endif %}
-{% if default_formatter %}
- * default_formatter = "{{ default_formatter }}"
-{% else %}
-{% endif %}
- * )
- */
-class {{ class_name }} extends FieldItemBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public static function defaultStorageSettings() {
- return [
- 'max_length' => 255,
- 'is_ascii' => FALSE,
- 'case_sensitive' => FALSE,
- ] + parent::defaultStorageSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
- // Prevent early t() calls by using the TranslatableMarkup.
- $properties['value'] = DataDefinition::create('string')
- ->setLabel(new TranslatableMarkup('Text value'))
- ->setSetting('case_sensitive', $field_definition->getSetting('case_sensitive'))
- ->setRequired(TRUE);
-
- return $properties;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function schema(FieldStorageDefinitionInterface $field_definition) {
- $schema = [
- 'columns' => [
- 'value' => [
- 'type' => $field_definition->getSetting('is_ascii') === TRUE ? 'varchar_ascii' : 'varchar',
- 'length' => (int) $field_definition->getSetting('max_length'),
- 'binary' => $field_definition->getSetting('case_sensitive'),
- ],
- ],
- ];
-
- return $schema;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getConstraints() {
- $constraints = parent::getConstraints();
-
- if ($max_length = $this->getSetting('max_length')) {
- $constraint_manager = \Drupal::typedDataManager()->getValidationConstraintManager();
- $constraints[] = $constraint_manager->create('ComplexData', [
- 'value' => [
- 'Length' => [
- 'max' => $max_length,
- 'maxMessage' => t('%name: may not be longer than @max characters.', [
- '%name' => $this->getFieldDefinition()->getLabel(),
- '@max' => $max_length
- ]),
- ],
- ],
- ]);
- }
-
- return $constraints;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
- $random = new Random();
- $values['value'] = $random->word(mt_rand(1, $field_definition->getSetting('max_length')));
- return $values;
- }
-
- /**
- * {@inheritdoc}
- */
- public function storageSettingsForm(array &$form, FormStateInterface $form_state, $has_data) {
- $elements = [];
-
- $elements['max_length'] = [
- '#type' => 'number',
- '#title' => t('Maximum length'),
- '#default_value' => $this->getSetting('max_length'),
- '#required' => TRUE,
- '#description' => t('The maximum length of the field in characters.'),
- '#min' => 1,
- '#disabled' => $has_data,
- ];
-
- return $elements;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isEmpty() {
- $value = $this->get('value')->getValue();
- return $value === NULL || $value === '';
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldWidget/fieldwidget.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Field/FieldWidget/fieldwidget.php.twig
deleted file mode 100644
index 86e88fc90..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Field/FieldWidget/fieldwidget.php.twig
+++ /dev/null
@@ -1,97 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\Field\FieldWidget\{{ class_name }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin\Field\FieldWidget;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Field\FieldItemListInterface;
-use Drupal\Core\Field\WidgetBase;
-use Drupal\Core\Form\FormStateInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Plugin implementation of the '{{ plugin_id }}' widget.
- *
- * @FieldWidget(
- * id = "{{ plugin_id }}",
- * label = @Translation("{{ label }}"){% if field_type %},
- * field_types = {
- * "{{ field_type }}"
- * }
-{% else %}
-
- * At least one field_types annotation array entry is necessary to display this formatter in the UI.
- * ex. field_types = { "field_type" }
-{% endif %}
- * )
- */
-class {{ class_name }} extends WidgetBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public static function defaultSettings() {
- return [
- 'size' => 60,
- 'placeholder' => '',
- ] + parent::defaultSettings();
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsForm(array $form, FormStateInterface $form_state) {
- $elements = [];
-
- $elements['size'] = [
- '#type' => 'number',
- '#title' => t('Size of textfield'),
- '#default_value' => $this->getSetting('size'),
- '#required' => TRUE,
- '#min' => 1,
- ];
- $elements['placeholder'] = [
- '#type' => 'textfield',
- '#title' => t('Placeholder'),
- '#default_value' => $this->getSetting('placeholder'),
- '#description' => t('Text that will be shown inside the field until a value is entered. This hint is usually a sample value or a brief description of the expected format.'),
- ];
-
- return $elements;
- }
-
- /**
- * {@inheritdoc}
- */
- public function settingsSummary() {
- $summary = [];
-
- $summary[] = t('Textfield size: @size', ['@size' => $this->getSetting('size')]);
- if (!empty($this->getSetting('placeholder'))) {
- $summary[] = t('Placeholder: @placeholder', ['@placeholder' => $this->getSetting('placeholder')]);
- }
-
- return $summary;
- }
-
- /**
- * {@inheritdoc}
- */
- public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
- $element['value'] = $element + [
- '#type' => 'textfield',
- '#default_value' => isset($items[$delta]->value) ? $items[$delta]->value : NULL,
- '#size' => $this->getSetting('size'),
- '#placeholder' => $this->getSetting('placeholder'),
- '#maxlength' => $this->getFieldSetting('max_length'),
- ];
-
- return $element;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/ImageEffect/imageeffect.php.twig b/vendor/drupal/console/templates/module/src/Plugin/ImageEffect/imageeffect.php.twig
deleted file mode 100644
index b1b1dfd70..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/ImageEffect/imageeffect.php.twig
+++ /dev/null
@@ -1,35 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\ImageEffect\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\ImageEffect;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Image\ImageInterface;
-use Drupal\image\ImageEffectBase;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a '{{class_name}}' image effect.
- *
- * @ImageEffect(
- * id = "{{plugin_id}}",
- * label = @Translation("{{label}}"),
- * description = @Translation("{{description}}")
- * )
- */
-class {{ class_name }} extends ImageEffectBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function applyEffect(ImageInterface $image) {
- // Implement Image Effect.
- return imagefilter($image->getToolkit()->getResource());
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Mail/mail.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Mail/mail.php.twig
deleted file mode 100644
index 878b3eea2..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Mail/mail.php.twig
+++ /dev/null
@@ -1,85 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\Mail\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\Mail;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Mail\Plugin\Mail\PhpMail;
-{% if services is not empty %}
-use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endif %}
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a '{{class_name}}' mail plugin.
- *
- * @Mail(
- * id = "{{plugin_id}}",
- * label = @Translation("{{label}}")
- * )
- */
-class {{class_name}} extends PhpMail {% if services is not empty %}implements ContainerFactoryPluginInterface {% endif %}
-{% endblock %}
-
-{% block class_construct %}
-{% if services is not empty %}
- /**
- * Constructs a new {{class_name}} object.
- *
- * @param array $configuration
- * A configuration array containing information about the plugin instance.
- * @param string $plugin_id
- * The plugin_id for the plugin instance.
- * @param string $plugin_definition
- * The plugin implementation definition.
- */
- public function __construct(
- array $configuration,
- $plugin_id,
- $plugin_definition,
- {{ servicesAsParameters(services)|join(', \n\t') }}
- ) {
- parent::__construct($configuration, $plugin_id, $plugin_definition);
-{{ serviceClassInitialization(services) }}
- }
-
-{% endif %}
-{% endblock %}
-
-{% block class_create %}
-{% if services is not empty %}
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
-{{ serviceClassInjection(services) }}
- );
- }
-{% endif %}
-{% endblock %}
-
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public function format(array $message) {
- }
-
- /**
- * {@inheritdoc}
- */
- public function mail(array $message) {
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Rest/Resource/rest.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Rest/Resource/rest.php.twig
deleted file mode 100644
index e2a620d95..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Rest/Resource/rest.php.twig
+++ /dev/null
@@ -1,118 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module_name}}\Plugin\rest\resource\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module_name}}\Plugin\rest\resource;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Session\AccountProxyInterface;
-use Drupal\rest\ModifiedResourceResponse;
-use Drupal\rest\Plugin\ResourceBase;
-use Drupal\rest\ResourceResponse;
-use Psr\Log\LoggerInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a resource to get view modes by entity and bundle.
- *
- * @RestResource(
- * id = "{{ plugin_id }}",
- * label = @Translation("{{ plugin_label }}"),
- * uri_paths = {
- * "canonical" = "/{{ plugin_url }}"
- * }
- * )
- */
-class {{ class_name }} extends ResourceBase {% endblock %}
-
-{% block class_variables %}
- /**
- * A current user instance.
- *
- * @var \Drupal\Core\Session\AccountProxyInterface
- */
- protected $currentUser;
-{% endblock %}
-
-{% block class_construct %}
-
- /**
- * Constructs a new {{ class_name }} object.
- *
- * @param array $configuration
- * A configuration array containing information about the plugin instance.
- * @param string $plugin_id
- * The plugin_id for the plugin instance.
- * @param mixed $plugin_definition
- * The plugin implementation definition.
- * @param array $serializer_formats
- * The available serialization formats.
- * @param \Psr\Log\LoggerInterface $logger
- * A logger instance.
- * @param \Drupal\Core\Session\AccountProxyInterface $current_user
- * A current user instance.
- */
- public function __construct(
- array $configuration,
- $plugin_id,
- $plugin_definition,
- array $serializer_formats,
- LoggerInterface $logger,
- AccountProxyInterface $current_user) {
- parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer_formats, $logger);
-
- $this->currentUser = $current_user;
- }
-{% endblock %}
-
-{% block class_create %}
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
- $container->getParameter('serializer.formats'),
- $container->get('logger.factory')->get('{{module_name}}'),
- $container->get('current_user')
- );
- }
-{% endblock %}
-
-{% block class_methods %}
-{% for state, state_settings in plugin_states %}
-
- /**
- * Responds to {{ state }} requests.
- *
- * @param \Drupal\Core\Entity\EntityInterface $entity
- * The entity object.
- *
- * @return \Drupal\rest\{{ state_settings.response_class }}
- * The HTTP response object.
- *
- * @throws \Symfony\Component\HttpKernel\Exception\HttpException
- * Throws exception expected.
- */
- public function {{ state|lower }}(EntityInterface $entity) {
-
- // You must to implement the logic of your REST Resource here.
- // Use current user after pass authentication to validate access.
- if (!$this->currentUser->hasPermission('access content')) {
- throw new AccessDeniedHttpException();
- }
-
- return new {{ state_settings.response_class }}({{ (state == 'DELETE') ? 'NULL' : '$entity' }}, {{ state_settings.http_code }});
- }
-{% endfor %}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/Views/field/field.php.twig b/vendor/drupal/console/templates/module/src/Plugin/Views/field/field.php.twig
deleted file mode 100644
index dba1baae6..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/Views/field/field.php.twig
+++ /dev/null
@@ -1,69 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\views\field\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\views\field;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\Component\Utility\Random;
-use Drupal\views\Plugin\views\field\FieldPluginBase;
-use Drupal\views\ResultRow;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * A handler to provide a field that is completely custom by the administrator.
- *
- * @ingroup views_field_handlers
- *
- * @ViewsField("{{ class_machine_name }}")
- */
-class {{ class_name }} extends FieldPluginBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function usesGroupBy() {
- return FALSE;
- }
-
- /**
- * {@inheritdoc}
- */
- public function query() {
- // Do nothing -- to override the parent query.
- }
-
- /**
- * {@inheritdoc}
- */
- protected function defineOptions() {
- $options = parent::defineOptions();
-
- $options['hide_alter_empty'] = ['default' => FALSE];
- return $options;
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildOptionsForm(&$form, FormStateInterface $form_state) {
- parent::buildOptionsForm($form, $form_state);
- }
-
- /**
- * {@inheritdoc}
- */
- public function render(ResultRow $values) {
- // Return a random text, here you can include your custom logic.
- // Include any namespace required to call the method required to generate
- // the desired output.
- $random = new Random();
- return $random->name();
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/migrate/process/process.php.twig b/vendor/drupal/console/templates/module/src/Plugin/migrate/process/process.php.twig
deleted file mode 100644
index 148d433f1..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/migrate/process/process.php.twig
+++ /dev/null
@@ -1,33 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\migrate\process\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\migrate\process;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\migrate\ProcessPluginBase;
-use Drupal\migrate\MigrateExecutableInterface;
-use Drupal\migrate\Row;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a '{{class_name}}' migrate process plugin.
- *
- * @MigrateProcessPlugin(
- * id = "{{plugin_id}}"
- * )
- */
-class {{class_name}} extends ProcessPluginBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
- // Plugin logic goes here.
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/migrate/source/source.php.twig b/vendor/drupal/console/templates/module/src/Plugin/migrate/source/source.php.twig
deleted file mode 100644
index 1f8ee6e23..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/migrate/source/source.php.twig
+++ /dev/null
@@ -1,55 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\migrate\source\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\migrate\source;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\migrate\Plugin\migrate\source\SqlBase;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a '{{class_name}}' migrate source.
- *
- * @MigrateSource(
- * id = "{{plugin_id}}"
- * )
- */
-class {{class_name}} extends SqlBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function query() {
-
- return $this->select('{{table}}', '{{alias}}')
- ->fields('{{alias}}'){% if group_by %}
- ->groupBy('{{alias}}.{{group_by}}')
- {% endif %};
- }
-
- /**
- * {@inheritdoc}
- */
- public function fields() {
- $fields = [
- {% for field in fields %}
- '{{field.id}}' => $this->t('{{field.description}}'),
- {% endfor %}
-];
- return $fields;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getIds() {
- return [
- ];
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Plugin/skeleton.php.twig b/vendor/drupal/console/templates/module/src/Plugin/skeleton.php.twig
deleted file mode 100644
index 5bce614ab..000000000
--- a/vendor/drupal/console/templates/module/src/Plugin/skeleton.php.twig
+++ /dev/null
@@ -1,98 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Plugin\{{ plugin }}\{{class_name}}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Plugin\{{ plugin }};
-{% endblock %}
-
-{% block use_class %}
-{% if pluginInterface is not empty %}
-use {{ pluginInterface }};
-{% endif %}
-
-{% if services is not empty %}
-use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
-{% endif %}
-{% endblock %}
-
-{% block class_declaration %}
-{% if pluginAnnotation is not empty %}
-/**
- * @{{ plugin_annotation }}(
-{% for property in pluginAnnotationProperties %}
-{% if property.name == 'id' %}
- * id = "{{- plugin_id }}",
-{% elseif property.type == "\\Drupal\\Core\\Annotation\\Translation" %}
- * {{ property.name }} = @Translation("{{property.description}}"),
-{% else %}
- * {{ property.name }} = "{{ property.type }}",
-{% endif %}
-{% endfor %}
- * )
- */
-{% endif %}
-class {{class_name}} implements {% if plugin_interface is not empty %} {{ plugin_interface }} {% endif %}{% if services is not empty %}, ContainerFactoryPluginInterface {% endif %}{% endblock %}
-{% block class_construct %}
-{% if services is not empty %}
- /**
- * Constructs a new {{class_name}} object.
- *
- * @param array $configuration
- * A configuration array containing information about the plugin instance.
- * @param string $plugin_id
- * The plugin_id for the plugin instance.
- * @param string $plugin_definition
- * The plugin implementation definition.
- */
- public function __construct(
- array $configuration,
- $plugin_id,
- $plugin_definition,
- {{ servicesAsParameters(services)|join(', \n\t') }}
- ) {
- parent::__construct($configuration, $plugin_id, $plugin_definition);
-{{ serviceClassInitialization(services) }}
- }
-{% endif %}
-{% endblock %}
-{% block class_create %}
-{% if services is not empty %}
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
- return new static(
- $configuration,
- $plugin_id,
- $plugin_definition,
-{{ serviceClassInjection(services) }}
- );
- }
-{% endif %}
-{% endblock %}
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public function build() {
- $build = [];
-
- // Implement your logic
-
- return $build;
- }
-
- {% for method in pluginInterfaceMethods %}
- /**
- * {@inheritdoc}
- */
- {{ method.declaration }} {
- // {{ method.description }}
- }
- {% endfor %}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Routing/route-subscriber.php.twig b/vendor/drupal/console/templates/module/src/Routing/route-subscriber.php.twig
deleted file mode 100644
index 83cb44946..000000000
--- a/vendor/drupal/console/templates/module/src/Routing/route-subscriber.php.twig
+++ /dev/null
@@ -1,28 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\Routing\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\Routing;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Routing\RouteSubscriberBase;
-use Symfony\Component\Routing\RouteCollection;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class }}.
- *
- * Listens to the dynamic route events.
- */
-class {{ class }} extends RouteSubscriberBase {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- protected function alterRoutes(RouteCollection $collection) {
- }{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Tests/js-test.php.twig b/vendor/drupal/console/templates/module/src/Tests/js-test.php.twig
deleted file mode 100644
index f7cf5593c..000000000
--- a/vendor/drupal/console/templates/module/src/Tests/js-test.php.twig
+++ /dev/null
@@ -1,56 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\Tests\{{ module }}\FunctionalJavascript\{{ class }}
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\Tests\{{ module }}\FunctionalJavascript;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * JavaScript tests.
- *
- * @ingroup {{ module }}
- *
- * @group {{ module }}
- */
-class {{ class }} extends JavaScriptTestBase {% endblock %}
-{% block class_methods %}
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = ['{{ module }}'];
-
- /**
- * A user with permission to administer site configuration.
- *
- * @var \Drupal\user\UserInterface
- */
- protected $user;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->user = $this->drupalCreateUser(['administer site configuration']);
- $this->drupalLogin($this->user);
- }
-
- /**
- * Tests that the home page loads with a 200 response.
- */
- public function testFrontpage() {
- $this->drupalGet(Url::fromRoute(''));
- $page = $this->getSession()->getPage();
- $this->assertSession()->statusCodeEquals(200);
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/Tests/load-test.php.twig b/vendor/drupal/console/templates/module/src/Tests/load-test.php.twig
deleted file mode 100644
index d9fa076de..000000000
--- a/vendor/drupal/console/templates/module/src/Tests/load-test.php.twig
+++ /dev/null
@@ -1,54 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\Tests\{{ machine_name }}\Functional\LoadTest
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\Tests\{{ machine_name }}\Functional;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Url;
-use Drupal\Tests\BrowserTestBase;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Simple test to ensure that main page loads with module enabled.
- *
- * @group {{ machine_name }}
- */
-class LoadTest extends BrowserTestBase {% endblock %}
-{% block class_methods %}
- /**
- * Modules to enable.
- *
- * @var array
- */
- public static $modules = ['{{ machine_name }}'];
-
- /**
- * A user with permission to administer site configuration.
- *
- * @var \Drupal\user\UserInterface
- */
- protected $user;
-
- /**
- * {@inheritdoc}
- */
- protected function setUp() {
- parent::setUp();
- $this->user = $this->drupalCreateUser(['administer site configuration']);
- $this->drupalLogin($this->user);
- }
-
- /**
- * Tests that the home page loads with a 200 response.
- */
- public function testLoad() {
- $this->drupalGet(Url::fromRoute(''));
- $this->assertSession()->statusCodeEquals(200);
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/TwigExtension/twig-extension.php.twig b/vendor/drupal/console/templates/module/src/TwigExtension/twig-extension.php.twig
deleted file mode 100644
index d829d560c..000000000
--- a/vendor/drupal/console/templates/module/src/TwigExtension/twig-extension.php.twig
+++ /dev/null
@@ -1,96 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\TwigExtension\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\TwigExtension;
-{% endblock %}
-
-{% block use_class %}
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class }}.
- */
-class {{ class }} extends \Twig_Extension {% endblock %}
-
-{% set properties = services[1:] %}
-{% block class_properties %}
- {% for service in properties %}
-
- /**
- * {{ service.class }} definition.
- *
- * @var {{ service.short }}
- */
- protected ${{service.camel_case_name}};
- {% endfor %}
-{% endblock %}
-
-{% block class_construct %}
- {% if services|length > 1 %}
-
- /**
- * Constructs a new {{ class }} object.
- */
- public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
- parent::__construct($renderer);
- {{ serviceClassInitialization(properties) }}
- }
- {% endif %}
-{% endblock %}
-
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public function getTokenParsers() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getNodeVisitors() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFilters() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getTests() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFunctions() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getOperators() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function getName() {
- return '{{ name }}';
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/accesscontrolhandler-entity-content.php.twig b/vendor/drupal/console/templates/module/src/accesscontrolhandler-entity-content.php.twig
deleted file mode 100644
index 728a276ee..000000000
--- a/vendor/drupal/console/templates/module/src/accesscontrolhandler-entity-content.php.twig
+++ /dev/null
@@ -1,55 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ entity_class }}AccessControlHandler.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityAccessControlHandler;
-use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Access\AccessResult;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Access controller for the {{ label }} entity.
- *
- * @see \Drupal\{{module}}\Entity\{{ entity_class }}.
- */
-class {{ entity_class }}AccessControlHandler extends EntityAccessControlHandler {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
- /** @var \Drupal\{{ module }}\Entity\{{ entity_class }}Interface $entity */
- switch ($operation) {
- case 'view':
- if (!$entity->isPublished()) {
- return AccessResult::allowedIfHasPermission($account, 'view unpublished {{ label|lower }} entities');
- }
- return AccessResult::allowedIfHasPermission($account, 'view published {{ label|lower }} entities');
-
- case 'update':
- return AccessResult::allowedIfHasPermission($account, 'edit {{ label|lower }} entities');
-
- case 'delete':
- return AccessResult::allowedIfHasPermission($account, 'delete {{ label|lower }} entities');
- }
-
- // Unknown operation, no opinion.
- return AccessResult::neutral();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
- return AccessResult::allowedIfHasPermission($account, 'add {{ label|lower }} entities');
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/cache-context.php.twig b/vendor/drupal/console/templates/module/src/cache-context.php.twig
deleted file mode 100644
index 87a7b4c19..000000000
--- a/vendor/drupal/console/templates/module/src/cache-context.php.twig
+++ /dev/null
@@ -1,54 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\CacheContext;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Cache\CacheableMetadata;
-use Drupal\Core\Cache\Context\CacheContextInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
-* Class {{ class }}.
-*/
-class {{ class }} implements CacheContextInterface {% endblock %}
-
-{% block class_construct %}
-
- /**
- * Constructs a new {{ class }} object.
- */
- public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
- {{ serviceClassInitialization(services) }}
- }
-
-{% endblock %}
-
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public static function getLabel() {
- drupal_set_message('Lable of cache context');
- }
-
- /**
- * {@inheritdoc}
- */
- public function getContext() {
- // Actual logic of context variation will lie here.
- }
-
- /**
- * {@inheritdoc}
- */
- public function getCacheableMetadata() {
- return new CacheableMetadata();
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/entity-content-route-provider.php.twig b/vendor/drupal/console/templates/module/src/entity-content-route-provider.php.twig
deleted file mode 100644
index afaa8908a..000000000
--- a/vendor/drupal/console/templates/module/src/entity-content-route-provider.php.twig
+++ /dev/null
@@ -1,212 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\{{ entity_class }}HtmlRouteProvider.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
-use Symfony\Component\Routing\Route;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides routes for {{ label }} entities.
- *
- * @see \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
- * @see \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
- */
-class {{ entity_class }}HtmlRouteProvider extends AdminHtmlRouteProvider {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function getRoutes(EntityTypeInterface $entity_type) {
- $collection = parent::getRoutes($entity_type);
-
- $entity_type_id = $entity_type->id();
-{% if revisionable %}
-
- if ($history_route = $this->getHistoryRoute($entity_type)) {
- $collection->add("entity.{$entity_type_id}.version_history", $history_route);
- }
-
- if ($revision_route = $this->getRevisionRoute($entity_type)) {
- $collection->add("entity.{$entity_type_id}.revision", $revision_route);
- }
-
- if ($revert_route = $this->getRevisionRevertRoute($entity_type)) {
- $collection->add("entity.{$entity_type_id}.revision_revert", $revert_route);
- }
-
- if ($delete_route = $this->getRevisionDeleteRoute($entity_type)) {
- $collection->add("entity.{$entity_type_id}.revision_delete", $delete_route);
- }
-{% if is_translatable %}
-
- if ($translation_route = $this->getRevisionTranslationRevertRoute($entity_type)) {
- $collection->add("{$entity_type_id}.revision_revert_translation_confirm", $translation_route);
- }
-{% endif %}
-{% endif %}
-
- if ($settings_form_route = $this->getSettingsFormRoute($entity_type)) {
- $collection->add("$entity_type_id.settings", $settings_form_route);
- }
-
- return $collection;
- }
-{% if revisionable %}
-
- /**
- * Gets the version history route.
- *
- * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
- * The entity type.
- *
- * @return \Symfony\Component\Routing\Route|null
- * The generated route, if available.
- */
- protected function getHistoryRoute(EntityTypeInterface $entity_type) {
- if ($entity_type->hasLinkTemplate('version-history')) {
- $route = new Route($entity_type->getLinkTemplate('version-history'));
- $route
- ->setDefaults([
- '_title' => "{$entity_type->getLabel()} revisions",
- '_controller' => '\Drupal\{{ module }}\Controller\{{ entity_class }}Controller::revisionOverview',
- ])
- ->setRequirement('_permission', 'access {{ label|lower }} revisions')
- ->setOption('_admin_route', TRUE);
-
- return $route;
- }
- }
-
- /**
- * Gets the revision route.
- *
- * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
- * The entity type.
- *
- * @return \Symfony\Component\Routing\Route|null
- * The generated route, if available.
- */
- protected function getRevisionRoute(EntityTypeInterface $entity_type) {
- if ($entity_type->hasLinkTemplate('revision')) {
- $route = new Route($entity_type->getLinkTemplate('revision'));
- $route
- ->setDefaults([
- '_controller' => '\Drupal\{{ module }}\Controller\{{ entity_class }}Controller::revisionShow',
- '_title_callback' => '\Drupal\{{ module }}\Controller\{{ entity_class }}Controller::revisionPageTitle',
- ])
- ->setRequirement('_permission', 'access {{ label|lower }} revisions')
- ->setOption('_admin_route', TRUE);
-
- return $route;
- }
- }
-
- /**
- * Gets the revision revert route.
- *
- * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
- * The entity type.
- *
- * @return \Symfony\Component\Routing\Route|null
- * The generated route, if available.
- */
- protected function getRevisionRevertRoute(EntityTypeInterface $entity_type) {
- if ($entity_type->hasLinkTemplate('revision_revert')) {
- $route = new Route($entity_type->getLinkTemplate('revision_revert'));
- $route
- ->setDefaults([
- '_form' => '\Drupal\{{ module }}\Form\{{ entity_class }}RevisionRevertForm',
- '_title' => 'Revert to earlier revision',
- ])
- ->setRequirement('_permission', 'revert all {{ label|lower }} revisions')
- ->setOption('_admin_route', TRUE);
-
- return $route;
- }
- }
-
- /**
- * Gets the revision delete route.
- *
- * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
- * The entity type.
- *
- * @return \Symfony\Component\Routing\Route|null
- * The generated route, if available.
- */
- protected function getRevisionDeleteRoute(EntityTypeInterface $entity_type) {
- if ($entity_type->hasLinkTemplate('revision_delete')) {
- $route = new Route($entity_type->getLinkTemplate('revision_delete'));
- $route
- ->setDefaults([
- '_form' => '\Drupal\{{ module }}\Form\{{ entity_class }}RevisionDeleteForm',
- '_title' => 'Delete earlier revision',
- ])
- ->setRequirement('_permission', 'delete all {{ label|lower }} revisions')
- ->setOption('_admin_route', TRUE);
-
- return $route;
- }
- }
-{% if is_translatable %}
-
- /**
- * Gets the revision translation revert route.
- *
- * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
- * The entity type.
- *
- * @return \Symfony\Component\Routing\Route|null
- * The generated route, if available.
- */
- protected function getRevisionTranslationRevertRoute(EntityTypeInterface $entity_type) {
- if ($entity_type->hasLinkTemplate('translation_revert')) {
- $route = new Route($entity_type->getLinkTemplate('translation_revert'));
- $route
- ->setDefaults([
- '_form' => '\Drupal\{{ module }}\Form\{{ entity_class }}RevisionRevertTranslationForm',
- '_title' => 'Revert to earlier revision of a translation',
- ])
- ->setRequirement('_permission', 'revert all {{ label|lower }} revisions')
- ->setOption('_admin_route', TRUE);
-
- return $route;
- }
- }
-{% endif %}
-{% endif %}
-
- /**
- * Gets the settings form route.
- *
- * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
- * The entity type.
- *
- * @return \Symfony\Component\Routing\Route|null
- * The generated route, if available.
- */
- protected function getSettingsFormRoute(EntityTypeInterface $entity_type) {
- if (!$entity_type->getBundleEntityType()) {
- $route = new Route("/admin/structure/{$entity_type->id()}/settings");
- $route
- ->setDefaults([
- '_form' => 'Drupal\{{ module }}\Form\{{ entity_class }}SettingsForm',
- '_title' => "{$entity_type->getLabel()} settings",
- ])
- ->setRequirement('_permission', $entity_type->getAdminPermission())
- ->setOption('_admin_route', TRUE);
-
- return $route;
- }
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/entity-listbuilder.php.twig b/vendor/drupal/console/templates/module/src/entity-listbuilder.php.twig
deleted file mode 100644
index 60f611419..000000000
--- a/vendor/drupal/console/templates/module/src/entity-listbuilder.php.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ entity_class }}ListBuilder.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
-use Drupal\Core\Entity\EntityInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides a listing of {{ label }} entities.
- */
-class {{ entity_class }}ListBuilder extends ConfigEntityListBuilder {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function buildHeader() {
- $header['label'] = $this->t('{{ label }}');
- $header['id'] = $this->t('Machine name');
- return $header + parent::buildHeader();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildRow(EntityInterface $entity) {
- $row['label'] = $entity->label();
- $row['id'] = $entity->id();
- // You probably want a few more properties here...
- return $row + parent::buildRow($entity);
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/entity-route-provider.php.twig b/vendor/drupal/console/templates/module/src/entity-route-provider.php.twig
deleted file mode 100644
index 860d7b307..000000000
--- a/vendor/drupal/console/templates/module/src/entity-route-provider.php.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\{{ entity_class }}HtmlRouteProvider.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityTypeInterface;
-use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
-use Symfony\Component\Routing\Route;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides routes for {{ label }} entities.
- *
- * @see Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
- * @see Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
- */
-class {{ entity_class }}HtmlRouteProvider extends AdminHtmlRouteProvider {% endblock %}
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function getRoutes(EntityTypeInterface $entity_type) {
- $collection = parent::getRoutes($entity_type);
-
- // Provide your custom entity routes here.
-
- return $collection;
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/entity-storage.php.twig b/vendor/drupal/console/templates/module/src/entity-storage.php.twig
deleted file mode 100644
index 01aec1cc4..000000000
--- a/vendor/drupal/console/templates/module/src/entity-storage.php.twig
+++ /dev/null
@@ -1,67 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\{{ entity_class }}Storage.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Language\LanguageInterface;
-use Drupal\{{ module }}\Entity\{{ entity_class }}Interface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines the storage handler class for {{ label }} entities.
- *
- * This extends the base storage class, adding required special handling for
- * {{ label }} entities.
- *
- * @ingroup {{ module }}
- */
-class {{ entity_class }}Storage extends SqlContentEntityStorage implements {{ entity_class }}StorageInterface {% endblock %}
-
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- public function revisionIds({{ entity_class }}Interface $entity) {
- return $this->database->query(
- 'SELECT vid FROM {{ '{'~entity_name~'_revision}' }} WHERE id=:id ORDER BY vid',
- [':id' => $entity->id()]
- )->fetchCol();
- }
-
- /**
- * {@inheritdoc}
- */
- public function userRevisionIds(AccountInterface $account) {
- return $this->database->query(
- 'SELECT vid FROM {{ '{'~entity_name~'_field_revision}' }} WHERE uid = :uid ORDER BY vid',
- [':uid' => $account->id()]
- )->fetchCol();
- }
-
- /**
- * {@inheritdoc}
- */
- public function countDefaultLanguageRevisions({{ entity_class }}Interface $entity) {
- return $this->database->query('SELECT COUNT(*) FROM {{ '{'~entity_name~'_field_revision}' }} WHERE id = :id AND default_langcode = 1', [':id' => $entity->id()])
- ->fetchField();
- }
-
- /**
- * {@inheritdoc}
- */
- public function clearRevisionsLanguage(LanguageInterface $language) {
- return $this->database->update('{{ entity_name }}_revision')
- ->fields(['langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED])
- ->condition('langcode', $language->getId())
- ->execute();
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/entity-translation-handler.php.twig b/vendor/drupal/console/templates/module/src/entity-translation-handler.php.twig
deleted file mode 100644
index 4ca6378ec..000000000
--- a/vendor/drupal/console/templates/module/src/entity-translation-handler.php.twig
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\content_translation\ContentTranslationHandler;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines the translation handler for {{ entity_name }}.
- */
-class {{ entity_class }}TranslationHandler extends ContentTranslationHandler {% endblock %}
-{% block class_methods %}
- // Override here the needed methods from ContentTranslationHandler.
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/event-subscriber.php.twig b/vendor/drupal/console/templates/module/src/event-subscriber.php.twig
deleted file mode 100644
index e79389234..000000000
--- a/vendor/drupal/console/templates/module/src/event-subscriber.php.twig
+++ /dev/null
@@ -1,56 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}}\EventSubscriber;
-{% endblock %}
-
-{% block use_class %}
-use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-use Symfony\Component\EventDispatcher\Event;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class }}.
- */
-class {{ class }} implements EventSubscriberInterface {% endblock %}
-
-{% block class_construct %}
-
- /**
- * Constructs a new {{ class }} object.
- */
- public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
-{{ serviceClassInitialization(services) }}
- }
-
-{% endblock %}
-
-{% block class_methods %}
- /**
- * {@inheritdoc}
- */
- static function getSubscribedEvents() {
-{% for event_name, callback in events %}
- $events['{{ event_name }}'] = ['{{ callback }}'];
-{% endfor %}
-
- return $events;
- }
-
-{% for event_name, callback in events %}
- /**
- * This method is called whenever the {{ event_name }} event is
- * dispatched.
- *
- * @param GetResponseEvent $event
- */
- public function {{ callback }}(Event $event) {
- drupal_set_message('Event {{ event_name }} thrown by Subscriber in module {{ module }}.', 'status', TRUE);
- }
-{% endfor %}
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/interface-entity-storage.php.twig b/vendor/drupal/console/templates/module/src/interface-entity-storage.php.twig
deleted file mode 100644
index 050b28708..000000000
--- a/vendor/drupal/console/templates/module/src/interface-entity-storage.php.twig
+++ /dev/null
@@ -1,70 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\{{ entity_class }}StorageInterface.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\ContentEntityStorageInterface;
-use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Language\LanguageInterface;
-use Drupal\{{ module }}\Entity\{{ entity_class }}Interface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines the storage handler class for {{ label }} entities.
- *
- * This extends the base storage class, adding required special handling for
- * {{ label }} entities.
- *
- * @ingroup {{ module }}
- */
-interface {{ entity_class }}StorageInterface extends ContentEntityStorageInterface {% endblock %}
-
-{% block class_methods %}
- /**
- * Gets a list of {{ label }} revision IDs for a specific {{ label }}.
- *
- * @param \Drupal\{{ module }}\Entity\{{ entity_class }}Interface $entity
- * The {{ label }} entity.
- *
- * @return int[]
- * {{ label }} revision IDs (in ascending order).
- */
- public function revisionIds({{ entity_class }}Interface $entity);
-
- /**
- * Gets a list of revision IDs having a given user as {{ label }} author.
- *
- * @param \Drupal\Core\Session\AccountInterface $account
- * The user entity.
- *
- * @return int[]
- * {{ label }} revision IDs (in ascending order).
- */
- public function userRevisionIds(AccountInterface $account);
-
- /**
- * Counts the number of revisions in the default language.
- *
- * @param \Drupal\{{ module }}\Entity\{{ entity_class }}Interface $entity
- * The {{ label }} entity.
- *
- * @return int
- * The number of revisions in the default language.
- */
- public function countDefaultLanguageRevisions({{ entity_class }}Interface $entity);
-
- /**
- * Unsets the language for all {{ label }} with the given language.
- *
- * @param \Drupal\Core\Language\LanguageInterface $language
- * The language object.
- */
- public function clearRevisionsLanguage(LanguageInterface $language);
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/listbuilder-entity-content.php.twig b/vendor/drupal/console/templates/module/src/listbuilder-entity-content.php.twig
deleted file mode 100644
index 46af6648c..000000000
--- a/vendor/drupal/console/templates/module/src/listbuilder-entity-content.php.twig
+++ /dev/null
@@ -1,48 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ entity_class }}ListBuilder.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Entity\EntityInterface;
-use Drupal\Core\Entity\EntityListBuilder;
-use Drupal\Core\Link;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines a class to build a listing of {{ label }} entities.
- *
- * @ingroup {{ module }}
- */
-class {{ entity_class }}ListBuilder extends EntityListBuilder {% endblock %}
-{% block class_methods %}
-
- /**
- * {@inheritdoc}
- */
- public function buildHeader() {
- $header['id'] = $this->t('{{ label }} ID');
- $header['name'] = $this->t('Name');
- return $header + parent::buildHeader();
- }
-
- /**
- * {@inheritdoc}
- */
- public function buildRow(EntityInterface $entity) {
- /* @var $entity \Drupal\{{module}}\Entity\{{ entity_class }} */
- $row['id'] = $entity->id();
- $row['name'] = Link::createFromRoute(
- $entity->label(),
- 'entity.{{ entity_name }}.edit_form',
- ['{{ entity_name }}' => $entity->id()]
- );
- return $row + parent::buildRow($entity);
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/plugin-type-annotation-base.php.twig b/vendor/drupal/console/templates/module/src/plugin-type-annotation-base.php.twig
deleted file mode 100644
index 59e30b33f..000000000
--- a/vendor/drupal/console/templates/module/src/plugin-type-annotation-base.php.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\{{ class_name }}Base.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Plugin\PluginBase;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Base class for {{ label }} plugins.
- */
-abstract class {{ class_name }}Base extends PluginBase implements {{ class_name }}Interface {% endblock %}
-{% block class_methods %}
-
- // Add common methods and abstract methods for your plugin type here.
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/plugin-type-annotation-interface.php.twig b/vendor/drupal/console/templates/module/src/plugin-type-annotation-interface.php.twig
deleted file mode 100644
index bd8e51ede..000000000
--- a/vendor/drupal/console/templates/module/src/plugin-type-annotation-interface.php.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\{{ class_name }}Interface.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Plugin\PluginInspectionInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines an interface for {{ label }} plugins.
- */
-interface {{ class_name }}Interface extends PluginInspectionInterface {% endblock %}
-{% block class_methods %}
-
- // Add get/set methods for your plugin type here.
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/plugin-type-annotation-manager.php.twig b/vendor/drupal/console/templates/module/src/plugin-type-annotation-manager.php.twig
deleted file mode 100644
index 2ed39b5df..000000000
--- a/vendor/drupal/console/templates/module/src/plugin-type-annotation-manager.php.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\Plugin\{{ class_name }}Manager.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }}\Plugin;
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Core\Plugin\DefaultPluginManager;
-use Drupal\Core\Cache\CacheBackendInterface;
-use Drupal\Core\Extension\ModuleHandlerInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides the {{ label }} plugin manager.
- */
-class {{ class_name }}Manager extends DefaultPluginManager {% endblock %}
-{% block class_methods %}
-
- /**
- * Constructs a new {{ class_name }}Manager object.
- *
- * @param \Traversable $namespaces
- * An object that implements \Traversable which contains the root paths
- * keyed by the corresponding namespace to look for plugin implementations.
- * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
- * Cache backend instance to use.
- * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
- * The module handler to invoke the alter hook with.
- */
- public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
- parent::__construct('Plugin/{{ class_name }}', $namespaces, $module_handler, 'Drupal\{{ module }}\Plugin\{{ class_name }}Interface', 'Drupal\{{ module }}\Annotation\{{ class_name }}');
-
- $this->alterInfo('{{ module }}_{{ machine_name }}_info');
- $this->setCacheBackend($cache_backend, '{{ module }}_{{ machine_name }}_plugins');
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/service-interface.php.twig b/vendor/drupal/console/templates/module/src/service-interface.php.twig
deleted file mode 100644
index 9989f83e4..000000000
--- a/vendor/drupal/console/templates/module/src/service-interface.php.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends "base/interface.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ interface }}.
-{% endblock %}
-
-{% block namespace_interface %}
-namespace Drupal\{{module}};
-{% endblock %}
-
-{% block interface_declaration %}
-/**
- * Interface {{ interface }}.
- */
-interface {{ interface }} {% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/service.php.twig b/vendor/drupal/console/templates/module/src/service.php.twig
deleted file mode 100644
index 1347bfa56..000000000
--- a/vendor/drupal/console/templates/module/src/service.php.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{module}}\{{ class }}.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{module}};{% endblock %}
-
-{% block class_declaration %}
-/**
- * Class {{ class }}.
- */
-class {{ class }}{% if(interface is defined and interface) %} implements {{ interface }}{% endif %} {% endblock %}
-{% block class_construct %}
- /**
- * Constructs a new {{ class }} object.
- */
- public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
-{{ serviceClassInitialization(services) }}
- }
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/yaml-plugin-manager-interface.php.twig b/vendor/drupal/console/templates/module/src/yaml-plugin-manager-interface.php.twig
deleted file mode 100644
index eccf24ba4..000000000
--- a/vendor/drupal/console/templates/module/src/yaml-plugin-manager-interface.php.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\{{ class_name }}ManagerInterface.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Plugin\PluginManagerInterface;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Defines an interface for {{ plugin_name }} managers.
- */
-interface {{ class_name }}ManagerInterface extends PluginManagerInterface {% endblock %}
-{% block class_methods %}
- // Add getters and other public methods for {{ plugin_name }} managers.
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/src/yaml-plugin-manager.php.twig b/vendor/drupal/console/templates/module/src/yaml-plugin-manager.php.twig
deleted file mode 100644
index 89a4aa16b..000000000
--- a/vendor/drupal/console/templates/module/src/yaml-plugin-manager.php.twig
+++ /dev/null
@@ -1,76 +0,0 @@
-{% extends "base/class.php.twig" %}
-
-{% block file_path %}
-\Drupal\{{ module }}\{{ class_name }}Manager.
-{% endblock %}
-
-{% block namespace_class %}
-namespace Drupal\{{ module }};
-{% endblock %}
-
-{% block use_class %}
-use Drupal\Component\Plugin\Exception\PluginException;
-use Drupal\Core\Cache\CacheBackendInterface;
-use Drupal\Core\Extension\ModuleHandlerInterface;
-use Drupal\Core\Plugin\DefaultPluginManager;
-use Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator;
-use Drupal\Core\Plugin\Discovery\YamlDiscovery;
-{% endblock %}
-
-{% block class_declaration %}
-/**
- * Provides the default {{ plugin_name }} manager.
- */
-class {{ class_name }}Manager extends DefaultPluginManager implements {{ class_name }}ManagerInterface {% endblock %}
-{% block class_methods %}
- /**
- * Provides default values for all {{ plugin_name }} plugins.
- *
- * @var array
- */
- protected $defaults = [
- // Add required and optional plugin properties.
- 'id' => '',
- 'label' => '',
- ];
-
- /**
- * Constructs a new {{ class_name }}Manager object.
- *
- * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
- * The module handler.
- * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
- * Cache backend instance to use.
- */
- public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
- // Add more services as required.
- $this->moduleHandler = $module_handler;
- $this->setCacheBackend($cache_backend, '{{ plugin_name }}', ['{{ plugin_name }}']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getDiscovery() {
- if (!isset($this->discovery)) {
- $this->discovery = new YamlDiscovery('{{ plugin_file_name }}', $this->moduleHandler->getModuleDirectories());
- $this->discovery->addTranslatableProperty('label', 'label_context');
- $this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery);
- }
- return $this->discovery;
- }
-
- /**
- * {@inheritdoc}
- */
- public function processDefinition(&$definition, $plugin_id) {
- parent::processDefinition($definition, $plugin_id);
-
- // You can add validation of the plugin definition here.
- if (empty($definition['id'])) {
- throw new PluginException(sprintf('Example plugin property (%s) definition "is" is required.', $plugin_id));
- }
- }
-
- // Add other methods here as defined in the {{ class_name }}ManagerInterface.
-{% endblock %}
diff --git a/vendor/drupal/console/templates/module/system.action.action.yml.twig b/vendor/drupal/console/templates/module/system.action.action.yml.twig
deleted file mode 100644
index 28aec1595..000000000
--- a/vendor/drupal/console/templates/module/system.action.action.yml.twig
+++ /dev/null
@@ -1,11 +0,0 @@
-id: {{ plugin_id }}
-label: '{{ label }}'
-status: true
-langcode: en
-type: {{ type }}
-plugin: {{ plugin_id }}
-dependencies:
- module:
- - {{ type }}
- - {{ module }}
-
diff --git a/vendor/drupal/console/templates/module/templates/entity-html.twig b/vendor/drupal/console/templates/module/templates/entity-html.twig
deleted file mode 100644
index 4fd6b968a..000000000
--- a/vendor/drupal/console/templates/module/templates/entity-html.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{{ '{#' }}
-/**
- * @file {{ entity_name }}.html.twig
- * Default theme implementation to present {{ label }} data.
- *
- * This template is used when viewing {{ label }} pages.
- *
- *
- * Available variables:
- * - content: A list of content items. Use 'content' to print all content, or
- * - attributes: HTML attributes for the container element.
- *
- * @see template_preprocess_{{ entity_name }}()
- *
- * @ingroup themeable
- */
-{{ '#}' }}
-
- {{ '{%' }} if content {{ '%}' }}
- {{ '{{' }}- content -{{ '}}' }}
- {{ '{%' }} endif {{ '%}' }}
-
diff --git a/vendor/drupal/console/templates/module/templates/entity-with-bundle-content-add-list-html.twig b/vendor/drupal/console/templates/module/templates/entity-with-bundle-content-add-list-html.twig
deleted file mode 100644
index 56815434f..000000000
--- a/vendor/drupal/console/templates/module/templates/entity-with-bundle-content-add-list-html.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-{{ '{#' }}
-/**
- * @file
- * Default theme implementation to present a list of custom content entity types/bundles.
- *
- * Available variables:
- * - types: A collection of all the available custom entity types/bundles.
- * Each type/bundle contains the following:
- * - link: A link to add a content entity of this type.
- * - description: A description of this content entity types/bundle.
- *
- * @see template_preprocess_{{ entity_name }}_content_add_list()
- *
- * @ingroup themeable
- */
-{{ '#}' }}
-{{ '{%' }} spaceless {{ '%}' }}
-
- {{ '{%' }} for type in types {{ '%}' }}
- - {{ '{{' }} type.link {{ '}}' }}
- {{ '{%' }} endfor {{ '%}' }}
-
-{{ '{%' }} endspaceless {{ '%}' }}
diff --git a/vendor/drupal/console/templates/module/twig-template-file.twig b/vendor/drupal/console/templates/module/twig-template-file.twig
deleted file mode 100644
index 91e43c8f8..000000000
--- a/vendor/drupal/console/templates/module/twig-template-file.twig
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/vendor/drupal/console/templates/module/update.php.twig b/vendor/drupal/console/templates/module/update.php.twig
deleted file mode 100644
index 2f8d005f1..000000000
--- a/vendor/drupal/console/templates/module/update.php.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-{% block file_methods %}
-{% if not file_exists %}
-{% include 'module/php_tag.php.twig' %}
-{% endif %}
-/**
- * Implements hook_update_N() on Module {{ module }} Update # {{ update_number }}.
- */
-function {{ module }}_update_{{ update_number }}(&$sandbox) {
- drupal_set_message('Module {{ module }} Update # {{ update_number }} () was executed successfully.');
-}
-
-{% endblock %}
diff --git a/vendor/drupal/console/templates/profile/info.yml.twig b/vendor/drupal/console/templates/profile/info.yml.twig
deleted file mode 100644
index 9cb7478a1..000000000
--- a/vendor/drupal/console/templates/profile/info.yml.twig
+++ /dev/null
@@ -1,23 +0,0 @@
-name: {{ profile }}
-type: {{ type }}
-description: '{{ description }}'
-core: {{ core }}
-{% if distribution %}
-
-distribution:
- name: '{{ distribution }}'
-{% endif %}
-{% if dependencies %}
-
-dependencies:
-{% for dependency in dependencies %}
- - '{{ dependency }}'
-{% endfor %}
-{% endif %}
-{% if themes %}
-
-themes:
-{% for theme in themes %}
- - '{{ theme }}'
-{% endfor %}
-{% endif %}
diff --git a/vendor/drupal/console/templates/profile/install.twig b/vendor/drupal/console/templates/profile/install.twig
deleted file mode 100644
index ea8ffeebe..000000000
--- a/vendor/drupal/console/templates/profile/install.twig
+++ /dev/null
@@ -1,21 +0,0 @@
-addClass('no-js');
-
- // Don't display the site name twice on the front page (and potentially others)
- /*if (isset($variables['head_title_array']['title']) && isset($variables['head_title_array']['name']) && ($variables['head_title_array']['title'] == $variables['head_title_array']['name'])) {
- $variables['head_title'] = $variables['head_title_array']['name'];
- }*/
-}
-
-/**
- * Implements hook_page_attachments_alter().
- */
-function {{ machine_name }}_page_attachments_alter(array &$page) {
- // Tell IE to use latest rendering engine (not to use compatibility mode).
- /*$ie_edge = [
- '#type' => 'html_tag',
- '#tag' => 'meta',
- '#attributes' => [
- 'http-equiv' => 'X-UA-Compatible',
- 'content' => 'IE=edge',
- ],
- ];
- $page['#attached']['html_head'][] = [$ie_edge, 'ie_edge'];*/
-}
-
-/**
- * Implements hook_preprocess_page() for page.html.twig.
- */
-function {{ machine_name }}_preprocess_page(array &$variables) {
-
-}
-
-/**
- * Implements hook_theme_suggestions_page_alter().
- */
-function {{ machine_name }}_theme_suggestions_page_alter(array &$suggestions, array $variables) {
-
-}
-
-/**
- * Implements hook_theme_suggestions_node_alter().
- */
-function {{ machine_name }}_theme_suggestions_node_alter(array &$suggestions, array $variables) {
- /*$node = $variables['elements']['#node'];
-
- if ($variables['elements']['#view_mode'] == "full") {
-
- }*/
-}
-
-/**
- * Implements hook_preprocess_HOOK() for Block document templates.
- */
-function {{ machine_name }}_preprocess_block(array &$variables) {
-
-}
-
-/**
- * Implements hook_theme_suggestions_field_alter().
- */
-function {{ machine_name }}_theme_suggestions_field_alter(array &$suggestions, array $variables) {
- /*$element = $variables['element'];
- $suggestions[] = 'field__' . $element['#view_mode'];
- $suggestions[] = 'field__' . $element['#view_mode'] . '__' . $element['#field_name'];*/
-}
-
-/**
- * Implements hook_theme_suggestions_field_alter().
- */
-function {{ machine_name }}_theme_suggestions_fieldset_alter(array &$suggestions, array $variables) {
- /*$element = $variables['element'];
- if (isset($element['#attributes']['class']) && in_array('form-composite', $element['#attributes']['class'])) {
- $suggestions[] = 'fieldset__form_composite';
- }*/
-}
-
-/**
- * Implements hook_preprocess_node().
- */
-function {{ machine_name }}_preprocess_node(array &$variables) {
- // Default to turning off byline/submitted.
- //$variables['display_submitted'] = FALSE;
-}
-
-/**
- * Implements hook_theme_suggestions_views_view_alter().
- */
-function {{ machine_name }}_theme_suggestions_views_view_alter(array &$suggestions, array $variables) {
-
-}
-
-/**
- * Implements hook_preprocess_form().
- */
-function {{ machine_name }}_preprocess_form(array &$variables) {
- //$variables['attributes']['novalidate'] = 'novalidate';
-}
-
-/**
- * Implements hook_preprocess_select().
- */
-function {{ machine_name }}_preprocess_select(array &$variables) {
- //$variables['attributes']['class'][] = 'select-chosen';
-}
-
-/**
- * Implements hook_preprocess_field().
- */
-function {{ machine_name }}_preprocess_field(array &$variables, $hook) {
- /*switch ($variables['element']['#field_name']) {
- }*/
-}
-
-/**
- * Implements hook_preprocess_details().
- */
-function {{ machine_name }}_preprocess_details(array &$variables) {
- /*$variables['attributes']['class'][] = 'details';
- $variables['summary_attributes']['class'] = 'summary';*/
-}
-
-/**
- * Implements hook_theme_suggestions_details_alter().
- */
-function {{ machine_name }}_theme_suggestions_details_alter(array &$suggestions, array $variables) {
-
-}
-
-/**
- * Implements hook_preprocess_menu_local_task().
- */
-function {{ machine_name }}_preprocess_menu_local_task(array &$variables) {
- //$variables['element']['#link']['url']->setOption('attributes', ['class'=>'rounded']);
-}
diff --git a/vendor/drupal/console/uninstall.services.yml b/vendor/drupal/console/uninstall.services.yml
deleted file mode 100644
index 51c6ea63c..000000000
--- a/vendor/drupal/console/uninstall.services.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-services:
- console.site:
- class: Drupal\Console\Utils\Site
- arguments: ['@app.root', '@console.configuration_manager']
- console.extension_manager:
- class: Drupal\Console\Extension\Manager
- arguments: ['@console.site', '@http_client', '@app.root']
- # Commands
- console.server:
- class: Drupal\Console\Command\ServerCommand
- arguments: ['@app.root', '@console.configuration_manager']
- tags:
- - { name: drupal.command }
- console.site_install:
- class: Drupal\Console\Command\Site\InstallCommand
- arguments: ['@console.extension_manager', '@console.site', '@console.configuration_manager', '@app.root']
- tags:
- - { name: drupal.command }
- console.multisite_new:
- class: Drupal\Console\Command\Multisite\NewCommand
- arguments: ['@app.root']
- tags:
- - { name: drupal.command }
- console.multisite_update:
- class: Drupal\Console\Command\Multisite\UpdateCommand
- arguments: ['@app.root']
- tags:
- - { name: drupal.command }
- console.dotenv_init:
- class: \Drupal\Console\Command\DotenvInitCommand
- arguments: ['@console.dotenv_init_generator']
- tags:
- - { name: drupal.command }
- console.dotenv_debug:
- class: \Drupal\Console\Command\Debug\DotenvCommand
- arguments: ['@console.drupal_finder']
- tags:
- - { name: drupal.command}
- console.docker_init:
- class: \Drupal\Console\Command\DockerInitCommand
- arguments: ['@console.docker_init_generator']
- tags:
- - { name: drupal.command }
- # Generators
- console.dotenv_init_generator:
- class: Drupal\Console\Generator\DotenvInitGenerator
- tags:
- - { name: drupal.generator }
- console.docker_init_generator:
- class: Drupal\Console\Generator\DockerInitGenerator
- tags:
- - { name: drupal.generator }
- # Drupal services
- http_client:
- class: GuzzleHttp\Client
-
diff --git a/vendor/drush/drush/.circleci/config.yml b/vendor/drush/drush/.circleci/config.yml
deleted file mode 100644
index e27fe42d2..000000000
--- a/vendor/drush/drush/.circleci/config.yml
+++ /dev/null
@@ -1,61 +0,0 @@
-# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
-defaults: &defaults
- working_directory: ~/drush
- environment:
- TZ: "/usr/share/zoneinfo/America/Los_Angeles"
- TERM: dumb
- UNISH_NO_TIMEOUTS: y
- UNISH_DB_URL: mysql://root:@127.0.0.1
- UNISH_TMP: /tmp
- PHPUNIT_ARGS: ""
-
-version: 2
-jobs:
- build:
- <<: *defaults
- docker:
- - image: circleci/php:7.1-apache-node
- environment:
- - MYSQL_HOST=127.0.0.1
- - image: circleci/mysql:5.7.18
- steps:
- - checkout
- - run: $HOME/drush/.circleci/setup.sh
- - run: unish.sut.php
- - run: unish.phpunit.php $PHPUNIT_ARGS
-
- build_highest:
- <<: *defaults
- docker:
- - image: circleci/php:7.1-apache-node
- environment:
- - MYSQL_HOST=127.0.0.1
- - COMPOSER=composer-highest.json
- - image: circleci/mysql:5.7.18
- steps:
- - checkout
- - run: $HOME/drush/.circleci/setup.sh
- - run: unish.sut.php
- - run: unish.phpunit.php $PHPUNIT_ARGS
-
- build_56:
- <<: *defaults
- docker:
- - image: circleci/php:5.6-apache-node
- environment:
- - MYSQL_HOST=127.0.0.1
- - image: circleci/mysql:5.7.18
- steps:
- - checkout
- - run: $HOME/drush/.circleci/setup.sh
- - run: unish.sut.php
- - run: unish.phpunit.php $PHPUNIT_ARGS
-
-workflows:
- version: 2
- build_test:
- jobs:
- - build
- - build_highest
- - build_56
-
diff --git a/vendor/drush/drush/.circleci/setup.sh b/vendor/drush/drush/.circleci/setup.sh
deleted file mode 100755
index 648942e90..000000000
--- a/vendor/drush/drush/.circleci/setup.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# Install PHP extensions
-sudo docker-php-ext-install pdo_mysql
-
-# Install extension
-sudo apt-get install -y libpng-dev
-
-# Install PHP Extensions
-sudo docker-php-ext-install gd
-
-# Install Composer
-'curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer'
-
-# Display versions
-php -v
-composer --version
-
-# Install mysql-client
-sudo apt-get install mysql-client
-
-# Configure bash environment variables
-echo 'export PATH=~/.composer/vendor/bin:~/drush:$PATH' >> $BASH_ENV
-echo 'export HOME=/tmp/drush-sandbox/home' >> $BASH_ENV
-mkdir -p /tmp/drush-sandbox/home
-
-# Configure php.ini
-echo 'mbstring.http_input = pass' > $HOME/php.ini
-echo 'mbstring.http_output = pass' >> $HOME/php.ini
-echo 'memory_limit = -1' >> $HOME/php.ini
-echo 'sendmail_path = /bin/true' >> $HOME/php.ini
-echo 'date.timezone = "UTC"' >> $HOME/php.ini
-echo 'opcache.enable_cli = 0' >> $HOME/php.ini
-
-# Copy our php.ini configuration to the active php.ini file
-# We can't use `php -r 'print php_ini_loaded_file();` when there is no php.ini
-PHPINI_PATH="$(php -i | grep 'Configuration File (php.ini) Path' | sed -e 's#.*=> *##')/php.ini"
-cat $HOME/php.ini | sudo tee "$PHPINI_PATH" > /dev/null
diff --git a/vendor/drush/drush/.github/ISSUE_TEMPLATE/bug-report-or-support-request.md b/vendor/drush/drush/.github/ISSUE_TEMPLATE/bug-report-or-support-request.md
deleted file mode 100644
index 47d88176c..000000000
--- a/vendor/drush/drush/.github/ISSUE_TEMPLATE/bug-report-or-support-request.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-name: Bug report or support request
-about: For support requests, please use Drupal Answers instead. See http://drupal.stackexchange.com/questions/tagged/drush
-
----
-
-**Describe the bug**
-A clear and concise description of what the bug is.
-
-**To Reproduce**
-What did you do?
-
-**Expected behavior**
-What did you expect would happen?
-
-**Actual behavior**
-What happened instead?
-
-**Workaround**
-Is there another way to do the desired action?
-
-### System Configuration
-| Q | A
-| --------------- | ---
-| Drush version? | 9.x/8.x (please be specific, and try latest dev build)
-| Drupal version? | 7.x/8.x
-| PHP version | 5.6/7.1
-| OS? | Mac/Linux/Windows
-
-**Additional information**
-Add any other context about the problem here.
diff --git a/vendor/drush/drush/.github/ISSUE_TEMPLATE/documentation-request.md b/vendor/drush/drush/.github/ISSUE_TEMPLATE/documentation-request.md
deleted file mode 100644
index 4a5da8b3a..000000000
--- a/vendor/drush/drush/.github/ISSUE_TEMPLATE/documentation-request.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-name: Documentation request
-about: If you know what the documentation change should be, please consider submitting
- a pull request instead. If you do know where the documentation you need is, please
- submit a support request first.
-
----
-
-**Existing document**
-Please provide a link to the existing document that is unclear or incomplete.
-
-**What are you attempting to do**
-Please explain the task you are attempting to accomplish.
-
-**In what way is the existing documentation unclear or incomplete**
-Please explain any confusion or ambiguities in the existing documentation.
-
-**What should the documentation say instead?**
-To the best of your ability, explain what additional information would allow you to complete your task. If you already know what the documentation should say, please consider submitting a documentation pull request instead.
diff --git a/vendor/drush/drush/.github/ISSUE_TEMPLATE/feature_request.md b/vendor/drush/drush/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
index 066b2d920..000000000
--- a/vendor/drush/drush/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-
----
-
-**Is your feature request related to a problem? Please describe.**
-A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-
-**Describe the solution you'd like**
-A clear and concise description of what you want to happen.
-
-**Describe alternatives you've considered**
-A clear and concise description of any alternative solutions or features you've considered.
-
-**Additional context**
-Add any other context or screenshots about the feature request here.
diff --git a/vendor/drush/drush/.gitignore b/vendor/drush/drush/.gitignore
deleted file mode 100644
index b249cbb48..000000000
--- a/vendor/drush/drush/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-tests/phpunit.xml
-vendor
-box.phar
-drush.phar
-#The mkdocs output directory.
-site
-#The sami output directories
-api
-.sami-cache
-# IDE config
-.idea/
-# https://github.com/drush-ops/drush/issues/2688
-composer.lock
diff --git a/vendor/drush/drush/.travis.yml b/vendor/drush/drush/.travis.yml
deleted file mode 100644
index b2856901f..000000000
--- a/vendor/drush/drush/.travis.yml
+++ /dev/null
@@ -1,66 +0,0 @@
-# Configuration file for unit test runner at http://travis-ci.org/#!/drush-ops/drush
-branches:
- only:
- - master
- - 8.x
- - 7.x
- - 6.x
- - 5.x
- - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
-language: php
-
-# Cache Composer.
-cache:
- directories:
- - $HOME/.composer/cache
-
-# http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
-sudo: false
-
-matrix:
- include:
- - php: 7.2
- env: 'SCENARIO=isolation DEPENDENCIES=highest'
- - php: 7.2
- env: 'SCENARIO=isolation'
- - php: 7.0.11
- env: 'SCENARIO=isolation'
- - php: 5.6
- env: 'SCENARIO=isolation-phpunit4 DEPENDENCIES=lowest'
- - php: 5.6
- env: 'SCENARIO=isolation-phpunit4 DEPENDENCIES=lowest'
-
-env:
- global:
- # GitHub deploy
- - secure: VfYokT2CchfuBRJp9/gSwfVGPfsVfkZdDVEuNWEqxww3z4vq+5aLKqoCtPL54E5EIMjhyCE3GVo+biG35Gab1KOVgUs8zD1hAUWA1FPKfMFhoPDfI3ZJC2rX2T1iWK4ZR90pBtcPzS+2OObzTYz8go0PfeSTT6eq69Na1KcNLaE=
- - UNISH_NO_TIMEOUTS=y
- - UNISH_DB_URL=mysql://root:@127.0.0.1
- - UNISH_TMP=/tmp
-
-
-
-before_install:
- - echo 'mbstring.http_input = pass' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- - echo 'mbstring.http_output = pass' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- - echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
-
-# Build a System-Under-Test.
-install:
- - 'composer scenario "${SCENARIO}" "${DEPENDENCIES}"'
-
-before_script:
- - phpenv config-rm xdebug.ini
- - echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- # - echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
-
-script:
- - composer unit
-
-after_success:
- # Publish updated API documentation on every push to the master branch
- - git config --global user.email $GITHUB_USER_EMAIL
- - git config --global user.name "Drush Documentation Bot"
- - cd $TRAVIS_BUILD_DIR && build/scripts/publish-api-docs.sh
- # Background: https://github.com/drush-ops/drush/pull/1426
- #- ${PWD}/tests/testChildren.sh
diff --git a/vendor/drush/drush/CONTRIBUTING.md b/vendor/drush/drush/CONTRIBUTING.md
deleted file mode 100644
index e9da6e65f..000000000
--- a/vendor/drush/drush/CONTRIBUTING.md
+++ /dev/null
@@ -1,19 +0,0 @@
-Drush is built by people like you! Please [join us](https://github.com/drush-ops/drush).
-
-## Git and Pull requests
-* Contributions are submitted, reviewed, and accepted using GitHub pull requests. [Read this article](https://help.github.com/articles/using-pull-requests) for some details. We use the _Fork and Pull_ model, as described there.
-* The latest changes are in the `master` branch. PR's should initially target this branch.
-* Try to make clean commits that are easily readable (including descriptive commit messages!)
-* Test before you push. Get familiar with Unish, our test suite. See the test-specific [README.md](tests/README.md)
-* We maintain branches named 9.x, 8.x, etc. These are release branches. From these branches, we make new tags for patch and minor versions.
-
-## Coding style
-* Do write comments. You don't have to comment every line, but if you come up with something thats a bit complex/weird, just leave a comment. Bear in mind that you will probably leave the project at some point and that other people will read your code. Undocumented huge amounts of code are nearly worthless!
-* We use [PSR-2](http://www.php-fig.org/psr/psr-2/) in the /src directory. [Drupal's coding standards](https://drupal.org/coding-standards) are still used in the includes directory (deprecated code).
-* Don't overengineer. Don't try to solve any possible problem in one step, but try to solve problems as easy as possible and improve the solution over time!
-* Do generalize sooner or later! (if an old solution, quickly hacked together, poses more problems than it solves today, refactor it!)
-* Keep it compatible. Do not introduce changes to the public API, or configurations too casually. Don't make incompatible changes without good reasons!
-
-## Documentation
-* The docs are in the [docs](docs) and [examples](examples) folders in the git repository, so people can easily find the suitable docs for the current git revision. You can read these from within Drush, with the `drush topic` command.
-* Documentation should be kept up-to-date. This means, whenever you add a new API method, add a new hook or change the database model, pack the relevant changes to the docs in the same pull request.
diff --git a/vendor/drush/drush/README.md b/vendor/drush/drush/README.md
deleted file mode 100644
index 47bf9f843..000000000
--- a/vendor/drush/drush/README.md
+++ /dev/null
@@ -1,56 +0,0 @@
-Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes SQL queries and DB migrations, and misc utilities like run cron or clear cache. Developers love the `generate` command, which jump starts your coding project by writing ready-to-customize PHP and YML files. Drush can be extended by [3rd party commandfiles](https://www.drupal.org/project/project_module?f[2]=im_vid_3%3A4654).
-
-[![Latest Stable Version](https://poser.pugx.org/drush/drush/v/stable.png)](https://packagist.org/packages/drush/drush) [![Total Downloads](https://poser.pugx.org/drush/drush/downloads.png)](https://packagist.org/packages/drush/drush) [![Latest Unstable Version](https://poser.pugx.org/drush/drush/v/unstable.png)](https://packagist.org/packages/drush/drush) [![License](https://poser.pugx.org/drush/drush/license.png)](https://packagist.org/packages/drush/drush) [![Documentation Status](https://readthedocs.org/projects/drush/badge/?version=master)](https://readthedocs.org/projects/drush/?badge=master)
-
-| Code style | Isolation Tests | Functional Tests |
-| :--------: | :-------------: | :--------------: |
-| | | |
-
-Resources
------------
-* [Installing (and Upgrading)](http://docs.drush.org/en/master/install/)
-* [General Documentation](http://docs.drush.org)
-* [API Documentation](http://www.drush.org/api/master/index.html)
-* [Drush Commands](http://drushcommands.com)
-* Subscribe [this atom feed](https://github.com/drush-ops/drush/releases.atom) to receive notification of new releases. Also, [Version eye](https://www.versioneye.com/).
-* [Drush packages available via Composer](https://packagist.org/search/?type=drupal-drush)
-* [A list of modules that include Drush integration](https://www.drupal.org/project/project_module?f[2]=im_vid_3%3A4654&solrsort=ds_project_latest_release+desc)
-* Drush comes with a [full test suite](https://github.com/drush-ops/drush/blob/master/tests/README.md) powered by [PHPUnit](https://github.com/sebastianbergmann/phpunit). Each commit gets tested by the awesome [Travis CI continuous integration service](https://travis-ci.org/drush-ops/drush).
-
-Support
------------
-* Post support requests to [Drupal Answers](http://drupal.stackexchange.com/questions/tagged/drush). Tag question with 'drush'.
-* Report bugs and request features in the [GitHub Drush Issue Queue](https://github.com/drush-ops/drush/issues).
-* Use pull requests (PRs) to contribute to Drush.
-
-Code of Conduct
----------------
-The Drush project expects all participants to abide by the [Drupal Code of Conduct](https://www.drupal.org/dcoc).
-
-FAQ
-------
-
-> Q: What does "Drush" stand for?
-> A: The Drupal Shell.
->
-> Q: How do I pronounce Drush?
-> A: Some people pronounce the *dru* with a long 'u' like Dr*u*pal. Fidelity points
-> go to them, but they are in the minority. Most pronounce Drush so that it
-> rhymes with hush, rush, flush, etc. This is the preferred pronunciation.
->
-> Q: Does Drush have unit tests?
-> A: Drush has an excellent suite of unit tests. See
-> [tests/README.md](https://github.com/drush-ops/drush/blob/master/tests/README.md) for more information.
-
-
-Credits
------------
-
-* Originally developed by [Arto Bendiken](http://bendiken.net) for Drupal 4.7.
-* Redesigned by [Franz Heinzmann](http://unbiskant.org) in May 2007 for Drupal 5.
-* Maintained by [Moshe Weitzman](http://drupal.org/moshe) with much help from
- the folks listed at https://github.com/orgs/drush-ops/people.
-* Thanks to [JetBrains](https://www.jetbrains.com) for [supporting this project and open source software](https://www.jetbrains.com/buy/opensource/).
-
-![Drush Logo](drush_logo-black.png)
-[![PhpStorm Logo](misc/icon_PhpStorm.png)](https://www.jetbrains.com/phpstorm/)
diff --git a/vendor/drush/drush/build/scripts/publish-api-docs.sh b/vendor/drush/drush/build/scripts/publish-api-docs.sh
deleted file mode 100755
index a4c3d1bf1..000000000
--- a/vendor/drush/drush/build/scripts/publish-api-docs.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-# Test for master branch, or other branches matching 0.x, 1.x, etc.
-BRANCH_REGEX='^\(master\|9\.[0-9x.]*\)$'
-
-# Check to make sure that our build environment is right. Skip with no error otherwise.
-test -n "$TRAVIS" || { echo "This script is only designed to be run on Travis."; exit 0; }
-echo "$TRAVIS_BRANCH" | grep -q $BRANCH_REGEX || { echo "Skipping docs update for branch $TRAVIS_BRANCH - docs only updated for master branch and tagged builds."; exit 0; }
-test "$TRAVIS_PULL_REQUEST" == "false" || { echo "Skipping docs update -- not done on pull requests. (PR #$TRAVIS_PULL_REQUEST)"; exit 0; }
-test "${TRAVIS_PHP_VERSION:0:1}" == "7" || { echo "Skipping docs update for PHP $TRAVIS_PHP_VERSION -- only update for PHP 7 builds."; exit 0; }
-test "$TRAVIS_REPO_SLUG" == "drush-ops/drush" || { echo "Skipping docs update for repository $TRAVIS_REPO_SLUG -- do not build docs for forks."; exit 0; }
-
-# Check our requirements for running this script have been met.
-test -n "$GITHUB_TOKEN" || { echo "GITHUB_TOKEN environment variable must be set to run this script."; exit 1; }
-test -n "$(git config --global user.email)" || { echo 'Git user email not set. Use `git config --global user.email EMAIL`.'; exit 1; }
-test -n "$(git config --global user.name)" || { echo 'Git user name not set. Use `git config --global user.name NAME`.'; exit 1; }
-
-# Ensure that we exit on failure, and echo lines as they are executed.
-# We don't need to see our sanity-checks get echoed, so we turn this on after they are done.
-set -ev
-
-# Install Sami using the install script in composer.json
-composer sami-install
-
-# Build the API documentation using the api script in composer.json
-# We have Sami parse errors so ignore return value: https://stackoverflow.com/questions/35452147/allow-non-zero-return-codes-in-travis-ci-yml
-composer -v api || true
-
-echo "Create build $API_BUID_DIR dir if needed."
-
-# Check out the gh-pages branch using our Github token (defined at https://travis-ci.org/lcache/lcache/settings)
-API_BUILD_DIR="$HOME/.drush-build/gh-pages"
-if [ ! -d "$API_BUILD_DIR" ]
-then
- mkdir -p "$(dirname $API_BUILD_DIR)"
- git clone --quiet --branch=gh-pages https://${GITHUB_TOKEN}@github.com/drush-ops/drush "$API_BUILD_DIR" > /dev/null
-fi
-
-# Replace the old 'api' folder with the newly-built API documentation
-rm -rf "$API_BUILD_DIR/api"
-cp -R api "$API_BUILD_DIR"
-
-echo "Commit new API docs."
-
-# Commit any changes to the documentation
-cd "$API_BUILD_DIR"
-git add -A api
-git commit -m "Update API documentation from Travis build $TRAVIS_BUILD_NUMBER, '$TRAVIS_COMMIT'."
-git push
\ No newline at end of file
diff --git a/vendor/drush/drush/composer.json b/vendor/drush/drush/composer.json
deleted file mode 100644
index 56ff36e3c..000000000
--- a/vendor/drush/drush/composer.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "name": "drush/drush",
- "description": "Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.",
- "homepage": "http://www.drush.org",
- "license": "GPL-2.0-or-later",
- "minimum-stability": "dev",
- "prefer-stable": true,
- "authors": [
- { "name": "Moshe Weitzman", "email": "weitzman@tejasa.com" },
- { "name": "Owen Barton", "email": "drupal@owenbarton.com" },
- { "name": "Greg Anderson", "email": "greg.1.anderson@greenknowe.org" },
- { "name": "Jonathan Araña Cruz", "email": "jonhattan@faita.net" },
- { "name": "Jonathan Hedstrom", "email": "jhedstrom@gmail.com" },
- { "name": "Christopher Gervais", "email": "chris@ergonlogic.com" },
- { "name": "Dave Reid", "email": "dave@davereid.net" },
- { "name": "Damian Lee", "email": "damiankloip@googlemail.com" }
- ],
- "support": {
- "forum": "http://drupal.stackexchange.com/questions/tagged/drush",
- "irc": "irc://irc.freenode.org/drush",
- "slack": "https://drupal.slack.com/messages/C62H9CWQM"
- },
- "bin": [
- "drush"
- ],
- "require": {
- "php": ">=5.6.0",
- "ext-dom": "*",
- "chi-teck/drupal-code-generator": "^1.24.0",
- "composer/semver": "^1.4",
- "consolidation/annotated-command": "^2.8.1",
- "consolidation/config": "^1.1.0",
- "consolidation/output-formatters": "^3.1.12",
- "consolidation/robo": "^1.1.5",
- "consolidation/site-alias": "^1.1.2",
- "grasmash/yaml-expander": "^1.1.1",
- "league/container": "~2",
- "psr/log": "~1.0",
- "psy/psysh": "~0.6",
- "symfony/config": "~2.2|^3",
- "symfony/console": "~2.7|^3",
- "symfony/event-dispatcher": "~2.7|^3",
- "symfony/finder": "~2.7|^3",
- "symfony/process": "~2.7|^3",
- "symfony/var-dumper": "~2.7|^3|^4",
- "symfony/yaml": "~2.3|^3",
- "webflo/drupal-finder": "^1.1",
- "webmozart/path-util": "^2.1.0"
- },
- "require-dev": {
- "lox/xhprof": "dev-master",
- "g1a/composer-test-scenarios": "^2.2.0",
- "phpunit/phpunit": "^4.8.36|^5.5.4",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "autoload": {
- "psr-4": {
- "Drush\\": "src/",
- "Drush\\Internal\\": "internal-copy/",
- "Unish\\": "tests/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Drush\\": "isolation/src/"
- }
- },
- "config": {
- "optimize-autoloader": true,
- "preferred-install": "dist",
- "sort-packages": true,
- "platform": {
- "php": "5.6"
- }
- },
- "scripts": {
- "cs": "phpcs -n --standard=PSR2 src tests examples",
- "cbf": "phpcbf -n --standard=PSR2 src tests examples",
- "lint": [
- "find includes -name '*.inc' -print0 | xargs -0 -n1 php -l",
- "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
- "find tests -name '*.php' -print0 | xargs -0 -n1 php -l"
- ],
- "test": [
- "@lint",
- "@unit",
- "@cs",
- "@functional"
- ],
- "api": "PATH=$HOME/bin:$PATH sami.phar --ansi update sami-config.php",
- "sami-install": "mkdir -p $HOME/bin && curl --output $HOME/bin/sami.phar http://get.sensiolabs.org/sami.phar && chmod +x $HOME/bin/sami.phar",
- "scenario": "scenarios/install",
- "unit": "phpunit --colors=always",
- "functional": "./unish.phpunit.php",
- "post-update-cmd": [
- "create-scenario isolation --autoload-dir isolation --autoload-dir internal-copy --keep '\\(psr/log\\|consolidation/config\\|site-alias\\|var-dumper\\|symfony/finder\\|drupal-finder\\|path-util\\|sebastian/version\\|xhprof\\)' 'phpunit/phpunit:^5.5.4'",
- "create-scenario isolation-phpunit4 --base isolation --autoload-dir isolation --autoload-dir internal-copy 'phpunit/phpunit:^4.8.36'"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "9.x-dev"
- }
- }
-}
diff --git a/vendor/drush/drush/docs/bootstrap.md b/vendor/drush/drush/docs/bootstrap.md
deleted file mode 100644
index f7555e869..000000000
--- a/vendor/drush/drush/docs/bootstrap.md
+++ /dev/null
@@ -1,36 +0,0 @@
-The Drush Bootstrap Process
-===========================
-When preparing to run a command, Drush works by "bootstrapping" the Drupal environment in very much the same way that is done during a normal page request from the web server, so most Drush commands run in the context of a fully-initialized website.
-
-For efficiency and convenience, some Drush commands can work without first bootstrapping a Drupal site, or by only partially bootstrapping a site. This is faster than a full bootstrap. It is also a matter of convenience, because some commands are useful even when you don't have a working Drupal site.
-
-Commands may specify their bootstrap level with a `@bootstrap` annotation. Commands supplied by Drupal modules are always `@bootstrap full`.
-
-@bootstrap none
------------------------
-Only run Drush _preflight_, without considering Drupal at all. Any code that operates on the Drush installation, and not specifically any Drupal directory, should bootstrap to this phase.
-
-@bootstrap root
-------------------------------
-Set up and test for a valid Drupal root, either through the --root options, or evaluated based on the current working directory. Any code that interacts with an entire Drupal installation, and not a specific site on the Drupal installation should use this bootstrap phase.
-
-@bootstrap site
-------------------------------
-Set up a Drupal site directory and the correct environment variables to allow Drupal to find the configuration file. If no site is specified with the --uri options, Drush will assume the site is 'default', which mimics Drupal's behaviour. Note that it is necessary to specify a full URI, e.g. --uri=http://example.com, in order for certain Drush commands and Drupal modules to behave correctly. See the [example Config file](../examples/example.drush.yml) for more information. Any code that needs to modify or interact with a specific Drupal site's settings.php file should bootstrap to this phase.
-
-@bootstrap configuration
----------------------------------------
-Load the settings from the Drupal sites directory. This phase is analogous to the DRUPAL\_BOOTSTRAP\_CONFIGURATION bootstrap phase in Drupal itself, and this is also the first step where Drupal specific code is included. This phase is commonly used for code that interacts with the Drupal install API, as both install.php and update.php start at this phase.
-
-@bootstrap database
-----------------------------------
-Connect to the Drupal database using the database credentials loaded during the previous bootstrap phase. This phase is analogous to the DRUPAL\_BOOTSTRAP\_DATABASE bootstrap phase in Drupal. Any code that needs to interact with the Drupal database API needs to be bootstrapped to at least this phase.
-
-@bootstrap full
-------------------------------
-Fully initialize Drupal. This is analogous to the DRUPAL\_BOOTSTRAP\_FULL bootstrap phase in Drupal. Any code that interacts with the general Drupal API should be bootstrapped to this phase.
-
-@bootstrap max
----------------------
-This is not an actual bootstrap phase. Commands that use the "max" bootstrap level will cause Drush to bootstrap as far as possible, and then run the command regardless of the bootstrap phase that was reached. This is useful for Drush commands that work without a bootstrapped site, but that provide additional information or capabilities in the presence of a bootstrapped site. For example, `drush status` will show progressively more information the farther the site bootstraps.
-
diff --git a/vendor/drush/drush/docs/commands.md b/vendor/drush/drush/docs/commands.md
deleted file mode 100644
index d8ff70802..000000000
--- a/vendor/drush/drush/docs/commands.md
+++ /dev/null
@@ -1,77 +0,0 @@
-Creating Custom Drush Commands
-==============================
-
-Creating a new Drush command or porting a legacy command is easy. Follow the steps below.
-
-1. Run `drush generate drush-command-file`.
-1. Drush will prompt for the machine name of the module that should "own" the file.
- 1. (optional) Drush will also prompt for the path to a legacy command file to port. See [tips on porting command to Drush 9](https://weitzman.github.io/blog/port-to-drush9)
- 1. The module selected must already exist and be enabled. Use `drush generate module-standard` to create a new module.
-1. Drush will then report that it created a commandfile, a drush.services.yml file and a composer.json file. Edit those files as needed.
-1. Use the classes for the core Drush commands at [/src/Drupal/Commands](https://github.com/drush-ops/drush/tree/master/src/Drupal/Commands) as inspiration and documentation.
-1. See the [dependency injection docs](dependency-injection.md) for interfaces you can implement to gain access to Drush config, Drupal site aliases, etc.
-1. Once your two files are ready, run `drush cr` to get your command recognized by the Drupal container.
-
-Specifying the Services File
-================================
-
-A module's composer.json file stipulates the filename where the Drush services (e.g. the Drush command files) are defined. The default services file is `drush.services.yml`, which is defined in the extra section of the composer.json file as follows:
-```
- "extra": {
- "drush": {
- "services": {
- "drush.services.yml": "^9"
- }
- }
- }
-```
-If for some reason you need to load different services for different versions of Drush, simply define multiple services files in the `services` section. The first one found will be used. For example:
-```
- "extra": {
- "drush": {
- "services": {
- "drush-9-99.services.yml": "^9.99",
- "drush.services.yml": "^9"
- }
- }
- }
-```
-In this example, the file `drush-9-99.services.yml` loads commandfile classes that require features only available in Drush 9.99 and later, and drush.services.yml loads an older commandfile implementation for earlier versions of Drush.
-
-It is also possible to use [version ranges](https://getcomposer.org/doc/articles/versions.md#version-range) to exactly specify which version of Drush the services file should be used with (e.g. `"drush.services.yml": ">=9 <9.99"`).
-
-In Drush 9, the default services file, `drush.services.yml`, will be used in instances where there is no `services` section in the Drush extras of the project's composer.json file. In Drush 10, however, the services section must exist, and must name the services file to be used. If a future Drush extension is written such that it only works with Drush 10 and later, then its entry would read `"drush.services.yml": "^10"`, and Drush 9 would not load the extension's commands. It is all the same recommended that Drush 9 extensions explicitly declare their services file with an appropriate version constraint.
-
-Altering Drush Command Info
-===========================
-
-Drush command info (annotations) can be altered from other modules. This is done by creating and registering 'command info alterers'. Alterers are class services that are able to intercept and manipulate an existing command annotation.
-
-In order to alter an existing command info, follow the next steps:
-
-1. In the module that wants to alter a command info, add a service class that implements the `\Consolidation\AnnotatedCommand\CommandInfoAltererInterface`.
-1. In the module `drush.services.yml` declare a service pointing to this class and tag the service with the `drush.command_info_alterer` tag.
-1. In the class implement the alteration logic the `alterCommandInfo()` method.
-1. Along with the alter code, it's strongly recommended to log a debug message explaining what exactly was altered. This would allow the easy debugging. Also it's a good practice to inject the the logger in the class constructor.
-
-For an example, see the alterer class provided by the testing 'woot' module: `tests/resources/modules/d8/woot/src/WootCommandInfoAlterer.php`.
-
-Global Drush Commands
-==============================
-
-Commandfiles that don't ship inside Drupal modules are called 'global' commandfiles. See the [examples/Commands](/examples/Commands) folder for examples. In general, it's better to use modules to carry your Drush commands. If you still prefer using a global commandfiles, here are two examples of valid commandfile names and namespaces:
-
-1. Simple
- - Filename: $PROJECT_ROOT/drush/Commands/ExampleCommands.php
- - Namespace: Drush\Commands
-1. Nested (e.g. Commandfile is part of a Composer package)
- - Filename: $PROJECT_ROOT/drush/Commands/dev_modules/ExampleCommands.php
- - Namespace: Drush\Commands\dev_modules
-
-##### Tips
-1. The filename must be have a name like Commands/ExampleCommands.php
- 1. The prefix `Example` can be whatever string you want.
- 1. The file must end in `Commands.php`
-1. The directory above Commands must be one of:
- 1. A Folder listed in the 'include' option. include may be provided via config or via CLI.
- 1. ../drush, /drush or /sites/all/drush. These paths are relative to Drupal root.
diff --git a/vendor/drush/drush/docs/config-exporting.md b/vendor/drush/drush/docs/config-exporting.md
deleted file mode 100644
index 66aa9dcba..000000000
--- a/vendor/drush/drush/docs/config-exporting.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Exporting and Importing Configuration
-
-Drush provides commands to export, transfer, and import configuration files
-to and from a Drupal 8 site. Configuration can be altered by different
-methods in order to provide different behaviors in different environments;
-for example, a development server might be configured slightly differently
-than the production server.
-
-This document describes how to make simple value changes to configuration
-based on the environment, how to have a different set of enabled modules
-in different configurations without affecting your exported configuration
-values, and how to make more complex changes.
-
-## Simple Value Changes
-
-It is not necessary to alter the configuration system values to
-make simple value changes to configuration variables, as this may be
-done by the [configuration override system](https://www.drupal.org/node/1928898).
-
-The configuration override system allows you to change configuration
-values for a given instance of a site (e.g. the development server) by
-setting configuration variables in the site's settings.php file.
-For example, to change the name of a local development site:
-```
-$config['system.site']['name'] = 'Local Install of Awesome Widgets, Inc.';
-```
-Note that the configuration override system is a Drupal feature, not
-a Drush feature. It should be the preferred method for changing
-configuration values on a per-environment basis; however, it does not
-work for some things, such as enabling and disabling modules. For
-configuration changes not handled by the configuration override system,
-you can use Drush configuration filters.
-
-## Ignoring Development Modules
-
-Use the [Config Split](https://www.drupal.org/project/config_split) module to
-split off development configuration in a dedicated config directory.
diff --git a/vendor/drush/drush/docs/cron.md b/vendor/drush/drush/docs/cron.md
deleted file mode 100644
index 29d273720..000000000
--- a/vendor/drush/drush/docs/cron.md
+++ /dev/null
@@ -1,49 +0,0 @@
-Running Drupal cron tasks from Drush
-====================================
-
-Drupal cron tasks are often set up to be run via a wget call to cron.php; this same task can also be accomplished via the `drush cron` command, which circumvents the need to provide a web server interface to cron.
-
-Quick start
-----------
-
-If you just want to get started quickly, here is a crontab entry that will run cron once every hour at ten minutes after the hour:
-
- 10 * * * * /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 cd [DOCROOT] && ../vendor/bin/drush --uri=your.drupalsite.org --quiet cron
-
-You should set up crontab to run your cron tasks as the same user that runs the web server; for example, if you run your web server as the user www-data:
-
- sudo crontab -u www-data -e
-
-You might need to edit the crontab entry shown above slightly for your particular setup; for example, if you have installed Drush to some directory other than /usr/local/drush, then you will need to adjust the path to drush appropriately. We'll break down the meaning of each section of the crontab entry in the documentation that continues below.
-
-Setting the schedule
---------------------
-
-See `man 5 crontab` for information on how to format the information in a crontab entry. In the example above, the schedule for the crontab is set by the string `10 * * * *`. These fields are the minute, hour, day of month, month and day of week; `*` means essentially 'all values', so `10 * * * *` will run any time the minute == 10 (once every hour).
-
-Setting the PATH
-----------------
-
-We use /usr/bin/env to run Drush so that we can set up some necessary environment variables that Drush needs to execute. By default, cron will run each command with an empty PATH, which would not work well with Drush. To find out what your PATH needs to be, just type:
-
- echo $PATH
-
-Take the value that is output and place it into your crontab entry in the place of the one shown above. You can remove any entry that is known to not be of interest to Drush (e.g. /usr/games), or is only useful in a graphic environment (e.g. /usr/X11/bin).
-
-Setting COLUMNS
----------------
-
-When running Drush in a terminal, the number of columns will be automatically determined by Drush by way of the tput command, which queries the active terminal to determine what the width of the screen is. When running Drush from cron, there will not be any terminal set, and the call to tput will produce an error message. Spurious error messages are undesirable, as cron is often configured to send email whenever any output is produced, so it is important to make an effort to insure that successful runs of cron complete with no output.
-
-In some cases, Drush is smart enough to recognize that there is no terminal -- if the terminal value is empty or "dumb", for example. However, there are some "non-terminal" values that Drush does not recognize, such as "unknown." If you manually set `COLUMNS`, then Drush will respect your setting and will not attempt to call tput.
-
-Using --quiet
--------------
-
-By default, Drush will print a success message when the run of cron is completed. The --quiet flag will suppress these and other progress messages, again avoiding an unnecessary email message.
-
-Specifying the Drupal site to run
----------------------------------
-
-There are many ways to tell Drush which Drupal site to select for the active command, and any may be used here. The example uses `cd [DOCROOT]`, but you could also use the --root and --uri flags.
-
diff --git a/vendor/drush/drush/docs/dependency-injection.md b/vendor/drush/drush/docs/dependency-injection.md
deleted file mode 100644
index 76a3803cd..000000000
--- a/vendor/drush/drush/docs/dependency-injection.md
+++ /dev/null
@@ -1,76 +0,0 @@
-Dependency Injection
-==================
-
-Drush 9 command files obtain references to the resources they need through a technique called _dependency injection_. When using this programing paradigm, a class by convention will never use the `new` operator to instantiate dependencies. Instead, it will store the other objects it needs in class variables, and provide a way for other code to assign an object to that variable.
-
-Types of Injection
------------------------
-
-There are two ways that a class can receive its dependencies. One is called “constructor injection”, and the other is called “setter injection”.
-
-*Example of constructor injection:*
-```
- public function __construct(DependencyType $service)
- {
- $this->service = $service;
- }
-```
-
-*Example of setter injection:*
-```
- public function setService(DependencyType $service)
- {
- $this->service = $service;
- }
-```
-A class should use one or the other of these methods. The code that is responsible for providing the dependencies a class need is usually an object called the dependency injection container.
-
-Services Files
-------------------
-
-Drush command files can request that Drupal inject services by using a drush.services.yml file. See the document [commands](commands.md) for instructions on how to use the Drupal Code Generator to create a simple command file starter with a drush.services.yml file. An initial services file will look something like this:
-```
-services:
- my_module.commands:
- class: \Drupal\my_module\Commands\MyModuleiCommands
- tags:
- - { name: drush.command }
-```
-See the [Drupal Documentation](drupal.org) for details on how to inject Drupal services into your command file. The process is exactly the same as using a Drupal services.yml file to inject services into your module classes.
-
-Inflection
--------------
-
-Drush will also inject dependencies that it provides using a technique called inflection. Inflection is a kind of dependency injection that works by way of a set of provided inflection interfaces, one for each available service. Each of these interfaces will define one or more setter methods (usually only one); these will automatically be called by Drush when the commandfile object is instantiated. The command only needs to implement this method and save the provided object in a class field. There is usually a corresponding trait that may be included via a `use` statement to fulfill this requirement.
-
-For example:
-```
-aliasManager()->getSelf();
-$this->logger()->success(‘The current alias is {name}’, [‘name’ => $selfAlias]);
-}
-}
-```
-All Drush command files extend DrushCommands. DrushCommands implements ConfigAwareInterface, IOAwareInterface, LoggerAwareInterface, which gives access to `$this->getConfig()`, `$this->logger()` and other ways to do input and output. See the [IO documentation](io.md) for more information.
-
-Any additional services that are desired must be injected by implementing the appropriate inflection interface.
-
-Additional Interfaces:
-
-- AutoloaderAwareInterface: Provides access to the class loader.
-- SiteAliasManagerAwareInterface: The site alias manager [allows alias records to be obtained](site-alias-manager.md).
-- CustomEventAwareInterface: Allows command files to [define and fire custom events](hooks.md) that other command files can hook.
-- ContainerAwareInterface: Provides Drush's dependency injection container.
-
-Note that although the autoloader and Drush dependency injection container is available and may be injected into your command file if needed, this should be avoided. Favor using services that can be injected from Drupal or Drush. Some of the objects in the container are not part of the Drush public API, and may not maintain compatibility in minor and patch releases.
diff --git a/vendor/drush/drush/docs/examples.md b/vendor/drush/drush/docs/examples.md
deleted file mode 100644
index fd3f3020b..000000000
--- a/vendor/drush/drush/docs/examples.md
+++ /dev/null
@@ -1,13 +0,0 @@
-The _examples_ folder contains excellent example files which you may copy and edit as needed. Read the documentation right in the file. If you see an opportunity to improve the file, please submit a pull request.
-
-* [example.site.yml](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.site.yml). Example site alias definitions.
-* [example.bashrc](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.bashrc). Enhance your shell with lots of Drush niceties including bash completion.
-* [example.drush.yml](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.drush.yml). A Drush configuration file.
-* [example.prompt.sh](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.prompt.sh). Displays Git repository and Drush alias status in your prompt.
-* [git-bisect.example.sh](https://raw.githubusercontent.com/drush-ops/drush/master/examples/git-bisect.example.sh). Spelunking through Drush's git history with bisect.
-* [helloworld.script](https://raw.githubusercontent.com/drush-ops/drush/master/examples/helloworld.script). An example Drush script.
-* [PolicyCommands](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/PolicyCommands.php). A policy file can disallow prohibited commands/options etc.
-* [ArtCommands](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/ArtCommands.php). A fun example command inspired by a famous XKCD comic.
-* [SiteAliasAlterCommands](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/SiteAliasAlterCommands.php). An example of dynamically changing site alias definition.
-* [SyncViaHttpCommands](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/SyncViaHttpCommands.php). sql-sync modification that transfers via http instead of rsync.
-* [XkcdCommands](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/XkcdCommands.php). A fun example command that browses XKCD comics.
diff --git a/vendor/drush/drush/docs/generators.md b/vendor/drush/drush/docs/generators.md
deleted file mode 100644
index ac961d1dc..000000000
--- a/vendor/drush/drush/docs/generators.md
+++ /dev/null
@@ -1,29 +0,0 @@
-Overview
-==========================
-Generators jump start your coding by building all the boring boilerplate code for you. After running a `drush generate [foo]` command, you have a guide for where to insert your custom logic.
-
-Drush's generators reuse classes provided by the excellent [Drupal Code Generator](https://github.com/Chi-teck/drupal-code-generator) project. See its [Commands directory](https://github.com/Chi-teck/drupal-code-generator/tree/master/src/Command/Drupal_8) for inspiration.
-
-Writing Custom Generators
-==========================
-Drupal modules may supply their own Generators, just like they can supply Commands.
-
-See [Woot module](https://github.com/drush-ops/drush/blob/master/tests/resources/modules/d8/woot), which Drush uses for testing. Specifically,
-
- 1. Write a class similar to [ExampleGenerator](https://github.com/drush-ops/drush/tree/master/tests/resources/modules/d8/woot/src/Generators/). Implement your custom logic in the interact() method. Typically this class is placed in the src/Generators directory.
- 1. Add a .twig file to the same directory. This template specifies what gets output from the generator.
- 1. Add your class to your module's drush.services.yml file ([example](https://github.com/drush-ops/drush/blob/master/tests/resources/modules/d8/woot/drush.services.yml)). Use the tag `drush.generator` instead of `drush.command`.
- 1. Perform a `drush cache-rebuild` to compile your drush.services.yml changes into the Drupal container.
-
-Global Generators
-==============================
-
-Generators that don't ship inside Drupal modules are called 'global' generators. In general, its better to use modules to carry your generators. If you still prefer using a global generator, please note:
-
-1. The file's namespace should be `\Drush\Generators`.
-1. The filename must be have a name like Generators/FooGenerator.php
- 1. The prefix `Foo` can be whatever string you want. The file must end in `Generator.php`
- 1. The enclosing directory must be named `Generators`
-1. The directory above Generators must be one of:
- 1. A Folder listed in the 'include' option. include may be provided via config or via CLI.
- 1. ../drush, /drush or /sites/all/drush. These paths are relative to Drupal root.
\ No newline at end of file
diff --git a/vendor/drush/drush/docs/hooks.md b/vendor/drush/drush/docs/hooks.md
deleted file mode 100644
index df8a36383..000000000
--- a/vendor/drush/drush/docs/hooks.md
+++ /dev/null
@@ -1,47 +0,0 @@
-Core Hooks
-============
-All commandfiles may implement methods that are called by Drush at various times in the request cycle. To implement one, add a `@hook validate` (for example) to the top of your method.
-
-- [Documentation about available hooks](https://github.com/consolidation/annotated-command#hooks).
-- To see how core commands implement a hook, you can [search the Drush source code](https://github.com/drush-ops/drush/search?q=%40hook+validate&type=Code&utf8=%E2%9C%93). This link uses validate hook as an example.
-
-Custom Hooks
-============
-
-Drush commands can define custom events that other command files can hook. You can find examples in [CacheCommands](https://github.com/drush-ops/drush/blob/master/src/Commands/core/CacheCommands.php) and [SanitizeCommands](https://github.com/drush-ops/drush/blob/master/src/Drupal/Commands/sql/SanitizeCommands.php)
-
-First, the command must implement CustomEventAwareInterface and use CustomEventAwareTrait, as described in the [dependency injection](dependency-injection.md) documentation.
-
-Then, the command may ask the provided hook manager to return a list of handlers with a certain annotation. In the example below, the `my-event` label is used:
-```
- /**
- * This command uses a custom event 'my-event' to collect data. Note that
- * the event handlers will not be found unless the hook manager is
- * injected into this command handler object via `setHookManager()`
- * (defined in CustomEventAwareTrait).
- *
- * @command example:command
- */
- public function exampleCommand()
- {
- $myEventHandlers = $this->getCustomEventHandlers('my-event');
- $result = [];
- foreach ($myEventHandlers as $handler) {
- $result[] = $handler();
- }
- sort($result);
- return implode(',', $result);
- }
-```
-
-Other command handlers may provide implementations by implementing `@hook on-event my-event`.
-
-```
- /**
- * @hook on-event my-event
- */
- public function hookOne()
- {
- return 'one';
- }
-```
diff --git a/vendor/drush/drush/docs/index.md b/vendor/drush/drush/docs/index.md
deleted file mode 100644
index c104e2b0a..000000000
--- a/vendor/drush/drush/docs/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
-Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. Drush can be extended by [3rd party commandfiles](https://www.drupal.org/project/project_module?f[2]=im_vid_3%3A4654).
-
-[![Latest Stable Version](https://poser.pugx.org/drush/drush/v/stable.png)](https://packagist.org/packages/drush/drush) [![Total Downloads](https://poser.pugx.org/drush/drush/downloads.png)](https://packagist.org/packages/drush/drush) [![Latest Unstable Version](https://poser.pugx.org/drush/drush/v/unstable.png)](https://packagist.org/packages/drush/drush) [![License](https://poser.pugx.org/drush/drush/license.png)](https://packagist.org/packages/drush/drush)
-
-!!! note
-
- Go to the [Drush 8 docs](http://docs.drush.org/en/8.x) if you want prior version of Drush.
-
-
-Resources
------------
-* [Install documentation](http://docs.drush.org/en/master/install/)
-* [General documentation](http://docs.drush.org)
-* [API Documentation](www.drush.org/api/master/)
-* [Drush Commands](http://drushcommands.com)
-* Subscribe [this atom feed](https://github.com/drush-ops/drush/releases.atom) to receive notification on new releases. Also, [Version eye](https://www.versioneye.com/).
-* [Drush packages available via Composer](https://packagist.org/?query=drush)
-* [A list of modules that include Drush integration](https://www.drupal.org/project/project_module?f[2]=im_vid_3%3A4654&solrsort=ds_project_latest_release+desc)
-* Drush comes with a [full test suite](https://github.com/drush-ops/drush/blob/master/tests/README.md) powered by [PHPUnit](https://github.com/sebastianbergmann/phpunit). Each commit gets tested by the awesome [Travis.ci continuous integration service](https://travis-ci.org/drush-ops/drush).
-
-Support
------------
-
-Please take a moment to review the rest of the information in this file before
-pursuing one of the support options below.
-
-* Post support requests to [Drupal Answers](http://drupal.stackexchange.com/questions/tagged/drush).
-* Bug reports and feature requests should be reported in the [GitHub Drush Issue Queue](https://github.com/drush-ops/drush/issues).
-* Use pull requests (PRs) to contribute to Drush.
diff --git a/vendor/drush/drush/docs/install.md b/vendor/drush/drush/docs/install.md
deleted file mode 100644
index 08a5151b1..000000000
--- a/vendor/drush/drush/docs/install.md
+++ /dev/null
@@ -1,85 +0,0 @@
-!!! note
-
- Drush 9 only supports one install method. It requires that your Drupal 8 site be built with Composer and Drush be listed as a dependency.
-
- See the [Drush 8 docs](http://docs.drush.org/en/8.x) for installing prior versions of Drush.
-
-Install a site-local Drush and Drush Launcher.
------------------
-1. It is recommended that Drupal 8 sites be [built using Composer, with Drush listed as a dependency](https://github.com/drupal-composer/drupal-project). That project already includes Drush in its composer.json. If your Composer project doesn't yet depend on Drush, run `composer require drush/drush` to add it. After this step, you may call Drush via `vendor/bin/drush`.
-1. Optional. To be able to call `drush` from anywhere, install the [Drush Launcher](https://github.com/drush-ops/drush-launcher). That is a small program which listens on your $PATH and hands control to a site-local Drush that is in the /vendor directory of your Composer project.
-1. Optional. Run `drush init`. This edits ~/.bashrc so that Drush's custom prompt and bash integration are active.
-
-See [Usage](http://docs.drush.org/en/master/usage/) for details on using Drush.
-
-- Tip: To use a non-default PHP, [edit ~/.bashrc so that the desired PHP is in front of your $PATH](http://stackoverflow.com/questions/4145667/how-to-override-the-path-of-php-to-use-the-mamp-path/10653443#10653443). If that is not desirable, you can change your PATH for just one request: `PATH=/path/to/php:$PATH` drush status ...`
-- Tip: To use a custom php.ini for Drush requests, [see this comment](https://github.com/drush-ops/drush/issues/3294#issuecomment-370201342).
-
-!!! note
-
- Drush 9 cannot run commandfiles from Drush 8 and below (e.g. example.drush.inc). See our [guide on porting commandfiles](https://weitzman.github.io/blog/port-to-drush9). Also note that alias and config files use a new .yml format in Drush 9.
-
-Drupal Compatibility
------------------
-
-
- Drush Version
- Drush Branch
- PHP
- Supported Drupal versions
- Code Style
- Isolation Tests
- Functional Tests
-
-
- Drush 9
- master
- 5.6+
- D8.4+
-
-
-
-
-
-
-
-
-
-
-
- Drush 8
- 8.x
- 5.4.5+
- D6, D7, D8.3-
-
-
-
-
- -
-
-
-
-
-
-
- Drush 7
- 7.x
- 5.3.0+
- D6, D7
- Unsupported
-
-
- Drush 6
- 6.x
- 5.3.0+
- D6, D7
- Unsupported
-
-
- Drush 5
- 5.x
- 5.2.0+
- D6, D7
- Unsupported
-
-
diff --git a/vendor/drush/drush/docs/io.md b/vendor/drush/drush/docs/io.md
deleted file mode 100644
index edc06e87d..000000000
--- a/vendor/drush/drush/docs/io.md
+++ /dev/null
@@ -1,14 +0,0 @@
-Input / Output
-==============
-
-- The Input object holds information about the request such option and argument values. You may need to this information when coding a hook implementation. You don't need this object in your command callback method since these values are passed as parameters.
-- The Output object is rarely needed. Instead, return an object that gets formatted via the Output Formatter system. If you want to send additional output, use the io system (see below).
-
-The io() system
-====================
-- If you need to ask the user a question, or print non-object content, use the io() system.
-- A command callback gets access via `$this->io()`.
-- The main methods for gathering user input are `$this->io->choice()` and `$this->io()->confirm`.
-- You may use any of the methods described in the [Symfony Style docs](https://symfony.com/doc/current/console/style.html).
-
-
diff --git a/vendor/drush/drush/docs/repl.md b/vendor/drush/drush/docs/repl.md
deleted file mode 100644
index 09322380d..000000000
--- a/vendor/drush/drush/docs/repl.md
+++ /dev/null
@@ -1 +0,0 @@
-You can then use an interactive PHP REPL with your bootstrapped site (remote or local). It’s a Drupal code playground. You can do quick code experimentation, grab some data, or run Drush commands. This can also help with debugging certain issues. See [this blog post](http://blog.damiankloip.net/2015/drush-php) for an introduction. Run `help` for a list of commands.
diff --git a/vendor/drush/drush/docs/site-alias-manager.md b/vendor/drush/drush/docs/site-alias-manager.md
deleted file mode 100644
index 014f2246b..000000000
--- a/vendor/drush/drush/docs/site-alias-manager.md
+++ /dev/null
@@ -1,12 +0,0 @@
-Site Alias Manager
-==================
-
-The [Site Alias Manager (SAM)](https://github.com/consolidation/site-alias/blob/master/src/SiteAliasManager.php) service is used to retrieve information about one or all of the site aliases for the current installation.
-
-- An informative example is the [browse command](https://github.com/drush-ops/drush/blob/master/src/Commands/core/BrowseCommands.php)
-- A commandfile gets access to the SAM by implementing the SiteAliasManagerAwareInterface and *use*ing the SiteAliasManagerAwareTrait trait. Then you gain access via `$this->siteAliasManager()`.
-- If an alias was used for the current request, it is available via $this->siteAliasManager()->getself().
-- The SAM generally deals in [AliasRecord](https://github.com/consolidation/site-alias/blob/master/src/AliasRecord.php) objects. That is how any given site alias is represented. See its methods for determining things like whether the alias points to a local host or remote host.
-- [An example site alias file](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.site.yml).
-- [Dynamically alter site aliases](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/SiteAliasAlterCommands.php).
-- The SAM is also available for as [a standalone Composer project](https://github.com/consolidation/site-alias). More information available in the README there.
diff --git a/vendor/drush/drush/docs/usage.md b/vendor/drush/drush/docs/usage.md
deleted file mode 100644
index 677e79b74..000000000
--- a/vendor/drush/drush/docs/usage.md
+++ /dev/null
@@ -1,40 +0,0 @@
-Usage
------------
-
-Drush can be run in your shell by typing "drush" from within your project root directory or anywhere within Drupal.
-
- $ drush [options] [argument1] [argument2]
-
-Use the 'help' command to get a list of available options and commands:
-
- $ drush help
-
-For even more documentation, use the 'topic' command:
-
- $ drush topic
-
-Using the --uri option and --root options.
------------
-
-For multi-site installations, use a site alias or the --uri option to target a particular site.
-
- $ drush --uri=http://example.com pm:enable
-
-If you are outside the Composer project and not using a site alias, you need to specify --root and --uri for Drush to locate and bootstrap the right Drupal site.
-
-Site Aliases
-------------
-
-Drush lets you run commands on a remote server. Once defined, aliases can be referenced with the @ nomenclature, i.e.
-
-```bash
-# Run pending updates on staging site.
-$ drush @staging updatedb
-# Synchronize staging files to production
-$ drush rsync @staging:%files/ @live:%files
-# Synchronize database from production to local, excluding the cache table
-$ drush sql:sync --structure-tables-key=custom @live @self
-```
-
-See [example.site.yml](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.site.yml) for more information.
-
diff --git a/vendor/drush/drush/docs/using-drush-configuration.md b/vendor/drush/drush/docs/using-drush-configuration.md
deleted file mode 100644
index e031766de..000000000
--- a/vendor/drush/drush/docs/using-drush-configuration.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Drush Configuration
-===================
-
-Drush users may provide configuration via:
-
-1. yml files that are placed in specific directories. [See our example file](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.drush.yml) for more information. You may also add configuration to a site alias - [see example site alias](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.site.yml).
-1. Properly named environment variables are automatically used as configuration. To populate the options.uri config item, create an environment variable like so `DRUSH_OPTIONS_URI=http://example.com`. As you can see, variable names should be uppercased, prefixed with `DRUSH_`, and periods replaced with dashes.
-
-If you are authoring a commandfile and wish to access the user's configuration, see [Command Authoring](commands.md).
-
-The Drush configuration system has been factored out of Drush and shared with the world at [https://github.com/consolidation/config](https://github.com/consolidation/config). Feel free to use it for your projects. Lots more usage information is there.
-
-
diff --git a/vendor/drush/drush/dr.bat b/vendor/drush/drush/dr.bat
deleted file mode 100644
index 6087c717b..000000000
--- a/vendor/drush/drush/dr.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@ECHO OFF
-REM Running this file is equivalent to running `php drush`
-setlocal DISABLEDELAYEDEXPANSION
-SET BIN_TARGET=%~dp0drush
-php "%BIN_TARGET%" %*
diff --git a/vendor/drush/drush/drush b/vendor/drush/drush/drush
deleted file mode 100755
index 5318cb397..000000000
--- a/vendor/drush/drush/drush
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env php
-setConfigFileVariant(Drush::getMajorVersion());
-$environment->setLoader($loader);
-$environment->applyEnvironment();
-
-// Preflight and run
-$preflight = new Preflight($environment);
-$runtime = new Runtime($preflight);
-$status_code = $runtime->run($_SERVER['argv']);
-
-exit($status_code);
diff --git a/vendor/drush/drush/drush.yml b/vendor/drush/drush/drush.yml
deleted file mode 100644
index 63e5b3287..000000000
--- a/vendor/drush/drush/drush.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-#This is a Drush config file. Sites may override this config to change minimum PHP.
-drush:
- php:
- minimum-version: 5.6.0
diff --git a/vendor/drush/drush/drush_logo-black.png b/vendor/drush/drush/drush_logo-black.png
deleted file mode 100644
index 4275941ba..000000000
Binary files a/vendor/drush/drush/drush_logo-black.png and /dev/null differ
diff --git a/vendor/drush/drush/examples/Commands/ArtCommands.php b/vendor/drush/drush/examples/Commands/ArtCommands.php
deleted file mode 100644
index 1db55571a..000000000
--- a/vendor/drush/drush/examples/Commands/ArtCommands.php
+++ /dev/null
@@ -1,184 +0,0 @@
-getArt();
- $name = $data[$art]['name'];
- $description = $data[$art]['description'];
- $path = $data[$art]['path'];
- $msg = dt(
- 'Okay. Here is {art}: {description}',
- ['art' => $name, 'description' => $description]
- );
- $this->output()->writeln("\n" . $msg . "\n");
- $this->printFile($path);
- }
-
- /**
- * Show a table of information about available art.
- *
- * @command artwork:list
- * @aliases artls
- * @field-labels
- * name: Name
- * description: Description
- * path: Path
- * @default-fields name,description
- *
- * @return \Consolidation\OutputFormatters\StructuredData\RowsOfFields
- */
- public function listArt($options = ['format' => 'table'])
- {
- $data = $this->getArt();
- return new RowsOfFields($data);
- }
-
- /**
- * Commandfiles may also add topics. These will appear in
- * the list of topics when `drush topic` is executed.
- * To view the topic below, run `drush --include=/full/path/to/examples topic`
- */
-
- /**
- * Ruminations on the true meaning and philosophy of artwork.
- *
- * @command artwork:explain
- * @hidden
- * @topic
- */
- public function ruminate()
- {
- self::printFile(__DIR__ . '/art-topic.md');
- }
-
- /**
- * Return the available built-in art. Any Drush commandfile may provide
- * more art by implementing a 'drush-art' on-event hook. This on-event
- * hook is defined in the 'findArt' method beolw.
- *
- * @hook on-event drush-art
- */
- public function builtInArt()
- {
- return [
- 'drush' => [
- 'name' => 'Drush',
- 'description' => 'The Drush logo.',
- 'path' => __DIR__ . '/art/drush-nocolor.txt',
- ],
- 'sandwich' => [
- 'name' => 'Sandwich',
- 'description' => 'A tasty meal with bread often consumed at lunchtime.',
- 'path' => __DIR__ . '/art/sandwich-nocolor.txt',
- ],
- ];
- }
-
- /**
- * @hook interact artwork:show
- */
- public function interact(InputInterface $input, OutputInterface $output, AnnotationData $annotationData)
- {
- $io = new DrushStyle($input, $output);
-
- // If the user did not specify any artwork, then prompt for one.
- $art = $input->getArgument('art');
- if (empty($art)) {
- $data = $this->getArt();
- $selections = $this->convertArtListToKeyValue($data);
- $selection = $io->choice('Select art to display', $selections);
- $input->setArgument('art', $selection);
- }
- }
-
- /**
- * @hook validate artwork:show
- */
- public function artValidate(CommandData $commandData)
- {
- $art = $commandData->input()->getArgument('art');
- $data = $this->getArt();
- if (!isset($data[$art])) {
- throw new \Exception(dt('I do not have any art called "{name}".', ['name' => $art]));
- }
- }
-
- /**
- * Get a list of available artwork. Cache result for future fast access.
- */
- protected function getArt()
- {
- if (!isset($this->arts)) {
- $this->arts = $this->findArt();
- }
- return $this->arts;
- }
-
- /**
- * Use custom defined on-event hook 'drush-art' to find available artwork.
- */
- protected function findArt()
- {
- $arts = [];
- $handlers = $this->getCustomEventHandlers('drush-art');
- foreach ($handlers as $handler) {
- $handlerResult = $handler();
- $arts = array_merge($arts, $handlerResult);
- }
- return $arts;
- }
-
- /**
- * Given a list of artwork, converte to a 'key' => 'Name: Description' array.
- * @param array $data
- * @return array
- */
- protected function convertArtListToKeyValue($data)
- {
- $result = [];
- foreach ($data as $key => $item) {
- $result[$key] = $item['name'] . ': ' . $item['description'];
- }
- return $result;
- }
-}
diff --git a/vendor/drush/drush/examples/Commands/PolicyCommands.php b/vendor/drush/drush/examples/Commands/PolicyCommands.php
deleted file mode 100644
index 962f41f48..000000000
--- a/vendor/drush/drush/examples/Commands/PolicyCommands.php
+++ /dev/null
@@ -1,60 +0,0 @@
-input()->getArgument('destination') == '@prod') {
- throw new \Exception(dt('Per !file, you may never overwrite the production database.', ['!file' => __FILE__]));
- }
- }
-
- /**
- * Limit rsync operations to production site.
- *
- * hook validate core:rsync
- */
- public function rsyncValidate(CommandData $commandData)
- {
- if (preg_match("/^@prod/", $commandData->input()->getArgument('destination'))) {
- throw new \Exception(dt('Per !file, you may never rsync to the production site.', ['!file' => __FILE__]));
- }
- }
-
- /**
- * Unauthorized may not execute updates.
- *
- * @hook validate updatedb
- */
- public function validateUpdateDb(CommandData $commandData)
- {
- if (!$commandData->input()->getOption('secret') == 'mysecret') {
- throw new \Exception(dt('UpdateDb command requires a secret token per site policy.'));
- }
- }
-
- /**
- * @hook option updatedb
- * @option secret A required token else user may not run updatedb command.
- */
- public function optionsetUpdateDb($options = ['secret' => self::REQ])
- {
- }
-}
diff --git a/vendor/drush/drush/examples/Commands/SiteAliasAlterCommands.php b/vendor/drush/drush/examples/Commands/SiteAliasAlterCommands.php
deleted file mode 100644
index c085847ba..000000000
--- a/vendor/drush/drush/examples/Commands/SiteAliasAlterCommands.php
+++ /dev/null
@@ -1,39 +0,0 @@
-siteAliasManager()->getSelf();
- if ($self->isRemote()) {
- // Always pass along ssh keys.
- if (!$self->has('ssh.options')) {
- // Don't edit the alias - edit the general config service instead.
- $this->getConfig()->set('ssh.options', '-o ForwardAgent=yes');
- }
-
- // Change the SSH user.
- $input->setOption('remote-user', 'mw2');
- }
- }
-}
diff --git a/vendor/drush/drush/examples/Commands/SyncViaHttpCommands.php b/vendor/drush/drush/examples/Commands/SyncViaHttpCommands.php
deleted file mode 100644
index 93769dd86..000000000
--- a/vendor/drush/drush/examples/Commands/SyncViaHttpCommands.php
+++ /dev/null
@@ -1,96 +0,0 @@
-input()->getOption('http-sync');
- if (!empty($sql_dump_download_url)) {
- $user = $commandData->input()->getOption('http-sync-user');
- $password = $commandData->input()->getOption('http-sync-password');
- $source_dump_file = $this->downloadFile($sql_dump_download_url, $user, $password);
- $commandData->input()->setOption('target-dump', $source_dump_file);
- $commandData->input()->setOption('no-dump', true);
- $commandData->input()->setOption('no-sync', true);
- }
- }
-
- /**
- * Downloads a file.
- *
- * Optionally uses user authentication, using either wget or curl, as available.
- */
- protected function downloadFile($url, $user = false, $password = false, $destination = false, $overwrite = true)
- {
- static $use_wget;
- if ($use_wget === null) {
- $use_wget = drush_shell_exec('which wget');
- }
-
- $destination_tmp = drush_tempnam('download_file');
- if ($use_wget) {
- if ($user && $password) {
- drush_shell_exec("wget -q --timeout=30 --user=%s --password=%s -O %s %s", $user, $password, $destination_tmp, $url);
- } else {
- drush_shell_exec("wget -q --timeout=30 -O %s %s", $destination_tmp, $url);
- }
- } else {
- if ($user && $password) {
- drush_shell_exec("curl -s -L --connect-timeout 30 --user %s:%s -o %s %s", $user, $password, $destination_tmp, $url);
- } else {
- drush_shell_exec("curl -s -L --connect-timeout 30 -o %s %s", $destination_tmp, $url);
- }
- }
- if (!Drush::simulate()) {
- if (!drush_file_not_empty($destination_tmp) && $file = @file_get_contents($url)) {
- @file_put_contents($destination_tmp, $file);
- }
- if (!drush_file_not_empty($destination_tmp)) {
- // Download failed.
- throw new \Exception(dt("The URL !url could not be downloaded.", ['!url' => $url]));
- }
- }
- if ($destination) {
- $fs = new Filesystem();
- $fs->rename($destination_tmp, $destination, $overwrite);
- return $destination;
- }
- return $destination_tmp;
- }
-}
diff --git a/vendor/drush/drush/examples/Commands/XkcdCommands.php b/vendor/drush/drush/examples/Commands/XkcdCommands.php
deleted file mode 100644
index 830c1b3b1..000000000
--- a/vendor/drush/drush/examples/Commands/XkcdCommands.php
+++ /dev/null
@@ -1,55 +0,0 @@
- 'open', 'google-custom-search-api-key' => 'AIzaSyDpE01VDNNT73s6CEeJRdSg5jukoG244ek'])
- {
- if (empty($search)) {
- $this->startBrowser('http://xkcd.com');
- } elseif (is_numeric($search)) {
- $this->startBrowser('http://xkcd.com/' . $search);
- } elseif ($search == 'random') {
- $xkcd_response = @json_decode(file_get_contents('http://xkcd.com/info.0.json'));
- if (!empty($xkcd_response->num)) {
- $this->startBrowser('http://xkcd.com/' . rand(1, $xkcd_response->num));
- }
- } else {
- // This uses an API key with a limited number of searches per.
- $search_response = @json_decode(file_get_contents('https://www.googleapis.com/customsearch/v1?key=' . $options['google-custom-search-api-key'] . '&cx=012652707207066138651:zudjtuwe28q&q=' . $search));
- if (!empty($search_response->items)) {
- foreach ($search_response->items as $item) {
- $this->startBrowser($item->link);
- }
- } else {
- throw new \Exception(dt('The search failed or produced no results.'));
- }
- }
- }
-}
diff --git a/vendor/drush/drush/examples/Commands/art-topic.md b/vendor/drush/drush/examples/Commands/art-topic.md
deleted file mode 100644
index 53e3b00f4..000000000
--- a/vendor/drush/drush/examples/Commands/art-topic.md
+++ /dev/null
@@ -1,6 +0,0 @@
-I have discovered a truly marvelous proof that it is impossible to
-separate a piece of art into two cubes, or four pieces of art into two
-fourth of a piece of art, or in general, any artwork larger than the
-second into two like artistic expressions.
-
-This text file is too narrow to contain it.
diff --git a/vendor/drush/drush/examples/Commands/art/drush-nocolor.txt b/vendor/drush/drush/examples/Commands/art/drush-nocolor.txt
deleted file mode 100644
index 4c96e0180..000000000
--- a/vendor/drush/drush/examples/Commands/art/drush-nocolor.txt
+++ /dev/null
@@ -1,73 +0,0 @@
-
- .`
- `++++++++++
- ,'',+++#####++
- ;;,,,,++#######+
- ',,,,,++#######+
- ',,,,,++#######+:
- ;,,,,:+########++
- :,,,,'+########++ .
- .,,,,,++########++ ,'''';+++.
- ,'+++. ;,,,,,++#########+ `',,,,,++#++:
- ',++++++ ',,,,,++#########+; :;,,,,;++###++;
- ',+++##+++` ';''++++#########+++++,,,,,+++#####++;
- ',+++#####++'`'',;++++##############++++,,+++#######++.
- ',;++#######+++,:+++'##################+++++##########++
- ',,++#########'++++'#######################+###########++
- ';'+++###########++####################################++
- ':::++#################################################+;
- ':::++###############################################++
- ::::;++#############################################++
- ':::+++############################################+'
- ':::++###########################################++
- `;:::++##########################################+`
- ':::;++#########################################++
- ''''++##########################################+:
- ,,,,'+###########################################++
- ',,.++############################################+,
- `:,,;+#############################################++
- ',,,++##############################################+
- ',,,++##############################################++;.
- :,,,'+###############################################+++++++++:
- `;';,,++#####################################################++++'
- .'';,,,,,+++########################################################++
-;';,,,,;++++++#########################################################++
-;,;++++++++#############################################################+
-,,,+++#################################################################++
-.,,++###################################################################+
-.,,++#################################################################@#+
-.:,++############################,` .##################################++
-`:,++########################## ################ #######+++++++
- ;,++########################: .############ ###++++++.
- ',++#######################; ########## ###+:
- '++++##################### :###### :##+
- :++++++++++#############` ###: .#++
- ,+++++############ :#++
- ',,;+############ ##+,
- ;,,++########### `###, ##+
- '::++########### ######' #++
- ;:;+########### ########## ##+`
- '::++########### :###' `#### #++
- .':;+############ .#### #### ###++
- ',':++############; ###### ##### #####.,#####+,
- ',,,:'++####################### ######.###########@++
- :,,,,,++#########################################@@@++
- ',,,,,'+#########################################@@@@#+;
- :,,,,,,++################### `########+ #######@@@@@@++`
- ',,,,,++##################### #######@@@@@@@@++
- ',,,,,'+#######################+ ;######+#@@@@@@@@@++
- ',,,,++####################################+++++@@@@@@@++
- ',,++####################################++;:'++#@@@@#+;
- ''+###########+++#####################+++ '':+++@@#++
- ++#########+++:++++###############++++ ,'+++#++
- .++#######+++ ,++++++##########+++ `'+++
- .++#####++: ':;++++#########+; .
- `++###++ ;::::,++#######@+,
- +++++ ::::,++#####@@#+
- ++' ;:::,++##@@@@@#+
- '::::;+@@@@@@@++
- '::::,+#@@@@@@++
- ,'::,+#@@@@@@++
- ':,++@@@@@@+;
- ':++@##++++.
-
diff --git a/vendor/drush/drush/examples/Commands/art/sandwich-nocolor.txt b/vendor/drush/drush/examples/Commands/art/sandwich-nocolor.txt
deleted file mode 100644
index b3b92deaf..000000000
--- a/vendor/drush/drush/examples/Commands/art/sandwich-nocolor.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-::::::::::::::::::::::::::::::::::MMMMMMMMMMMM:::::::::::::::::::::::::::::::::
-:::::::::::::::::::::::::MMMMMMMM:::::::::::MM:::::::::::::::::::::::::::::::::
-:::::::::::::::::::MMMMM::::::::::::::::::::MMMM:::::::::::::::::::::::::::::::
-::::::::::::::MMMMM:::::::::M::::::::M::::::::::MMMM:::::::::::::::::::::::::::
-::::::::::MMMM::M:::::::::::::::::::::::::::::::::::MMMM:::::::::::::::::::::::
-:::::::MMM::::::::::::::::::::::::::::::::::::::::::::::MMMM:::::::::::::::::::
-:::::MM:::::::::::::::::::::::::::::::::::::::::::::::::::::MMMM:::::::::::::::
-:::::M::::::::::::::::::::::::::::::::::::::::::::::::::::::::::MMM::::::::::::
-:::::MMM$MM::::::::::::::::::::::::::::::::::::::::::::::::::::::::MMM:::::::::
-:::::M$$$$$MM:::::::::::::::::::::::::::::::::::::::::::::M::::::::::MMM:::::::
-::MMMMM$M$$$$MM:::::::::M:::::::::::::::::::::::::::::::::::::::::::MMMMM::::::
-::MIIIMMMM$M$$$MM:::::::::::::::::::::::::::::::::::::::::::MMMMMMM$$$$M:::::::
-:::MIIIIIIMM$$$$$MM::::::::::::::M:::::::::::::::::::MMMMMMM$$$$$$$$$$$$:::::::
-:MMIIIIIIIIMM$$$$$$MMM::::::::::::::::::::::::MMMMMM$$$$$$$$$$$$$$$$$$$$M::::::
-MIIMMMMMIIIIIMMM$$$$$$MM:::::::::::::::MMMMMM$$$$$$$$$$$$$$$$$$$$$$$$$$$M::::::
-MMM:MM:MMMMIIIIMMM$$$$$$MM:::::::MMMMMMM$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$MMMMM::
-::M::::MM::IIIIIIMM$$$$$$$$MMMMM$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$MMMMMMMMMIIM:::
-::MM:::M::MIIMMIIIIIM$M$$$$M$$$$$$$$$$$$$$$$$$$$$$$$$$$$MMMMMMMIIIIIMMMMMMM::::
-::::MM::MMMMM:MIIIIIIMM$M$$M$$$$$$$$$$$$$$$$$$$$$$MMMMMMMIIIIIIIIIIIM::MMM:::::
-::::::$MM:::::MIIIMMIIIMM$M$$$$$$$$$$$$$$$$MMMMMMIMMMIIIIM:::MMMIIIIM:::::MM:::
-::::::$$$MM:::::M::MIIIMMMM$M$$$$$$$MMMMMMIIIIIIMMM:MMMMM:::::::::::::MMMMMM:::
-::::::M$$$$MM:MMM::MMM:::MIMMMMMMMMMMIIMMIIIIIIIMM+M:::::MMMM::::MMMMM$M:::::::
-::::::MM$M$$$M+$$M::::::MIIIIIIIMIIIIM::::MIIIIIM:MM::::M$$M+MM$$$$$$$$::::::::
-:::::::MMM$$$$$$$M:::::::MIIIIIM::MMM:::::::MMMM::::::::M$$M$$$$$$$$$$$M:::::::
-::::::::::MM$$$$$$$MM::::MMMMMM:::::::::::::::::::MMMMMMM$$$$$$$$$$$$$$M:::::::
-::::::::::::MM$M$$$$$MM:MM$$$$M::::::::::MMMMMMM$$$$$$$$$$$$$$$$$$MMMMM::::::::
-::::::::::::::MMM$M$$$$MM$$$$$M:MMMMMMM$$$$$$$$$$$$$$$$$$$$$MMMMMM:::::::::::::
-:::::::::::::::::MMM$M$M$$$$$$MMM$$$$$$$$$$$$$$$$$$$$$$MMMMM:M:M:::::::::::::::
-:::::::::::::::::::MMMM$$M$$$$$$M$$$$$$$$$$$$$$$$$MMMMMM::::::M::::::::::::::::
-::::::::::::::::::::::MMMMM$$$$$M$$$$$$$$$$$$$MMMMM::::::::::::::::::::::::::::
-:::::::::::::::::::::::::MMMM$M$M$$$$$$$$$MMMMM::::::::::::::::::::::::::::::::
-::::::::::::::::::::::::::::MMMMM$$$$MMMM::::::::::::::::::::::::::::::::::::::
-:::::::::::::::::::::::::::::::MMMMM:::::::::::::::::::::::::::::::::::::::::::
-:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
diff --git a/vendor/drush/drush/examples/Commands/art/sandwich.txt b/vendor/drush/drush/examples/Commands/art/sandwich.txt
deleted file mode 100644
index dac8ca02e..000000000
--- a/vendor/drush/drush/examples/Commands/art/sandwich.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-[0;5;37;47m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[0m
-[0;5;37;47m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[0m
-[0;5;37;47m . . . . . . . . . . .:[0;1;37;47m8 [0;1;30;47m;t;;t;;;;:.[0;1;37;47m.:;%SX88[0;5;37;47m8@X%t;.. . . . [0m
-[0;5;37;47m . . .. . . . . . .[0;1;37;47m%[0;1;30;47mt%;[0;1;37;47m%[0;5;37;47m@%%%%%%%%%%X@88[0;1;37;47m88XS%t;.[0;1;30;47m..:;ttt%[0;5;37;47mX. .[0m
-[0;5;37;47m . . . . . . . . .X[0;5;33;40m:[0;5;37;47m8%X%%%XS%%%%%%%XS%%%%%@%%%%X%%%@%S[0;5;37;40m8[0;1;30;47m8[0;5;37;47m . [0m
-[0;5;37;47m . . . . . . . . X[0;1;30;47m@[0;5;33;40m [0;5;37;47m@%%%X[0;5;1;33;47m8[0;5;37;47mX%%%[0;5;1;33;47m8[0;5;37;47m8%%%[0;5;1;33;47m8[0;5;37;47mX%%%%%%%%%X[0;1;33;47mX[0;1;37;47mt[0;1;33;47m@[0;1;30;47m8[0;37;43m@[0;1;30;43m8[0;33;47m8[0;1;30;47m@[0;5;37;47m. .[0m
-[0;5;37;47m . . . . . . . .[0;1;37;47mt[0;1;30;47m@t[0;5;37;47mS;%%[0;5;1;33;47m8[0;5;37;47mXSX%[0;5;1;33;47m@[0;5;37;47mXSX%[0;5;1;33;47m@[0;5;37;47mXSS%[0;5;1;33;47m8[0;5;37;47m@[0;5;1;33;47m@[0;5;37;47m8[0;5;1;33;47m8[0;5;37;47mX[0;5;1;33;47m@[0;5;37;47m8[0;33;47m8[0;1;31;43m8[0;33;47mX8[0;1;33;47mSS[0;1;37;47m [0;1;33;47mS[0;5;33;40m;[0;1;37;47mS[0;5;37;47m. [0m
-[0;5;37;47m . . . . . . .@[0;1;30;47m%X[0;1;37;47mS[0;5;37;47m%%%%%S8[0;5;1;33;47m@[0;5;37;47mX%[0;5;1;33;47m@[0;5;37;47m8%[0;5;1;33;47mX[0;5;37;47mXSS[0;5;1;33;47mX[0;5;37;47mX%S@SSSX8[0;33;47m8[0;1;31;43m8[0;1;37;47m.;[0;1;33;47m@[0;1;37;47m [0;1;33;47m8[0;5;37;41m8[0;1;30;43m8[0;35;41m@[0;1;37;47m [0;5;37;47m. . [0m
-[0;5;37;47m . . . . . :[0;1;37;47m.[0;1;30;47m8:[0;5;37;47mS%%%XS[0;5;1;33;47m8[0;5;37;47mX[0;5;1;33;47m@[0;5;37;47m@X%S@SSS[0;5;1;33;47mS[0;5;37;47m8SX[0;5;1;33;47mS[0;5;37;47mX[0;5;1;33;47mX[0;5;37;47mX%[0;5;1;33;47mX[0;5;37;47m8[0;1;33;47m8[0;5;33;41mX[0;1;37;47m:;[0;5;37;43m@[0;1;31;41m8[0;5;31;41m@[0;1;31;41m:[0;33;41mS[0;5;33;41m [0;5;33;43m [0;1;31;41m8[0;5;33;40m8[0;1;37;47mS[0;5;37;47m. .[0m
-[0;5;37;47m . . . .[0;1;37;47m8[0;1;30;47m%S[0;1;37;47m8[0;5;37;47m%%%%%%[0;5;1;33;47m8[0;5;37;47m@SSSX[0;5;1;33;47mX[0;5;37;47mX[0;5;1;33;47mS[0;5;37;47mX[0;5;1;33;47mS[0;5;37;47mXSX[0;5;1;33;47mS[0;5;37;47mXSSS8[0;5;1;33;47mS[0;5;37;47m8[0;1;31;47m8[0;1;31;43m8[0;1;37;47m :[0;37;43m@[0;33;41m%[0;35;41m:[0;1;31;41m%[0;30;41mX[0;33;41mX[0;1;33;43m:[0;31;43m%[0;33;42m8[0;1;32;42m%[0;30;42m:[0;5;31;40mX[0;5;37;47m: [0m
-[0;5;37;47m . . .[0;1;37;47m:[0;1;30;47m8 [0;5;37;47m%%%%@%%[0;5;1;33;47m8[0;5;37;47m@S%%[0;5;1;33;47mX[0;5;37;47mXSXSSS[0;5;1;33;47mS[0;5;37;47m8[0;5;1;33;47mS[0;5;37;47m@X[0;5;1;33;47m%[0;5;37;47mX[0;5;1;33;47mS[0;5;37;47mX[0;5;1;33;47mX[0;5;37;41m8[0;33;47m8[0;1;37;47m ;[0;37;43m@[0;5;31;41mX[0;1;30;41m;[0;30;41mS[0;33;41mX[0;31;43m8[0;1;31;43m8[0;31;43mX[0;33;42m8;[0;1;30;42m%[0;5;37;40mX[0;1;30;47m8[0;1;30;40m8[0;5;37;47mt. [0m
-[0;5;37;47m . . [0;1;37;47m8[0;5;37;40m8[0;1;37;47mS[0;5;37;47m%S%%%%[0;5;1;33;47m8[0;5;37;47mXSSXS[0;5;1;33;47mX[0;5;37;47m@@[0;5;1;33;47mS[0;5;37;47m@[0;5;1;33;47m%[0;5;37;47mX[0;5;1;33;47mS[0;5;37;47m8@SS[0;5;1;33;47m%[0;5;37;47m@S[0;5;1;33;47m%[0;5;37;47m8[0;5;37;41m8[0;33;47m8[0;1;37;47m [0;5;37;43m8[0;5;37;41m8[0;33;41m@[0;1;31;41mS[0;33;41m:[0;31;40m8[0;1;33;43m.[0;5;33;41m [0;1;30;43m.[0;33;42m;[0;30;42m.[0;32;40m@[0;5;33;40m%[0;5;37;40mX[0;5;33;40m:[0;33;47m@[0;5;33;40m8[0;5;37;47m;. [0m
-[0;5;37;47m . . [0;5;33;40m [0;5;37;40m8[0;33;47m8[0;5;33;40m.[0;33;47m88888[0;1;30;47m8[0;1;33;47m8[0;33;47m@X[0;1;33;47mX[0;1;37;47m [0;5;37;47m888888[0;5;1;33;47m%[0;5;37;47mX[0;5;1;33;47m%[0;5;37;47m@X[0;5;1;33;47mX[0;1;37;47m [0;5;37;41m8[0;33;47m8[0;1;33;47mSS[0;5;37;41m8[0;1;30;41m@[0;30;41m@[0;1;30;41m;[0;33;41mS[0;31;43m@[0;1;31;43m8[0;1;30;43m.[0;1;32;42m%;[0;5;33;40m8[0;1;30;47m@[0;1;33;47mS%%[0;1;37;47m:[0;33;47m8[0;5;35;40m [0;5;37;47m .[0m
-[0;5;37;47m . . [0;5;33;40m [0;1;33;47mS%[0;1;37;47m:[0;5;37;43m8[0;1;37;47m [0;1;33;47m@SSS[0;1;35;47mS[0;5;37;43m8[0;1;37;47m [0;1;33;47m@[0;1;31;47m@[0;5;37;43m8[0;1;31;47m@[0;5;37;43m8[0;5;33;41m [0;1;33;47m8[0;5;33;41m [0;1;33;47m8[0;5;37;41m8[0;1;31;47m888[0;1;33;47m8[0;5;37;41m8[0;1;31;47m8[0;1;33;47m@%S[0;5;35;41m:[0;1;30;41m8[0;1;31;41m:[0;31;40mS[0;1;31;43m8[0;5;33;43m [0;5;31;41m@[0;1;30;43m.[0;1;32;42m.%[0;1;30;42mS[0;5;33;40m [0;1;33;47mSX[0;33;47mX8[0;1;30;43m8[0;1;30;47m8[0;5;37;47m8;. .[0m
-[0;5;37;47m . . [0;1;30;47m%[0;5;33;40m:[0;37;43m8[0;5;33;41mS[0;1;30;47m8[0;5;37;41m8[0;33;47m8[0;1;31;47m8@[0;1;33;47m8[0;1;31;47m8[0;1;33;47mS[0;1;31;47mX[0;1;33;47mS[0;1;37;47m [0;1;33;47mS[0;1;37;47m [0;1;33;47mS[0;1;37;47m::X[0;1;33;47m@[0;1;37;47m.[0;5;37;43m8[0;1;37;47m.[0;5;37;43m8[0;1;37;47m [0;1;33;47mX%[0;1;31;47mS[0;5;33;41m%[0;35;41m8[0;1;30;41mX:[0;33;41mX[0;1;31;43m88[0;1;30;43m.[0;1;32;42m.[0;30;42m%[0;5;33;40m [0;33;47m@@[0;5;33;40m.[0;1;30;47mS[0;1;37;47m.%[0;5;37;47m% .;. . [0m
-[0;5;37;47m . .X[0;1;30;47mX[0;5;32;40m8[0;30;41m@[0;5;31;41m8;;%%t;;;;[0;30;41m:[0;1;31;41m@[0;5;31;41mX@888888@[0;5;33;41m8[0;1;31;41m8[0;30;41m8[0;1;30;43m8[0;1;31;43m88[0;1;33;43m.[0;1;31;43m8[0;32;43m8[0;1;32;42mS;[0;5;32;40m8[0;1;30;47m:[0;1;33;47m8[0;5;35;40m [0;1;37;47m [0;5;37;47m... . . .[0m
-[0;5;37;47m . . 8[0;5;33;40m.[0;33;42m;[0;30;42m;[0;31;43m@[0;1;31;43m8[0;33;41m@[0;31;40m8[0;30;41m:[0;1;31;41m%%%%%t[0;30;41m.8[0;31;40m@[0;30;41m%[0;1;31;41mttX@8[0;33;41m@[0;1;31;41m@[0;35;41m@[0;1;30;41mS[0;31;40m8[0;1;30;43m%[0;5;1;33;41m8[0;5;33;43m [0;33;41mX[0;32;43m8[0;1;32;42mS;[0;1;30;42mX[0;5;33;40m:[0;33;47m@[0;5;33;40m;[0;1;37;47m [0;5;37;47m:... . . . . .[0m
-[0;5;37;47m . t[0;5;37;40mS[0;33;42m:[0;1;32;42m8[0;31;40m@[0;31;43m;[0;1;31;43m88[0;1;33;43m.[0;5;33;41m;[0;31;43m:8[0;33;41m88[0;1;31;41m8[0;31;43mX8[0;5;33;41mS[0;5;33;43m:[0;5;33;41m.[0;1;33;43mt[0;31;43mX8[0;33;41m888[0;1;31;41m8[0;31;43mX[0;1;31;43m88[0;5;33;43m [0;5;31;41m [0;31;43mS[0;30;42m8[0;33;42mt[0;1;30;42mS[0;5;33;40mt[0;1;30;47mS[0;33;47m8[0;1;30;47m8[0;1;37;47m [0;5;37;47m:.. . . . . . . [0m
-[0;5;37;47m .:[0;5;32;40mX[0;1;32;42m;;[0;1;30;42m:[0;33;42mt[0;1;30;42m%[0;33;42m;tt[0;30;42m%8[0;32;40m8[0;1;30;42m8[0;30;42mS@[0;31;40m8[0;33;42mX[0;30;42mS[0;33;42m88[0;31;43m8[0;32;43m@[0;31;43m8[0;1;30;43m.:tt[0;31;43m@[0;1;30;43m;[0;33;41m88[0;1;32;42m.[0;1;30;42mt[0;5;33;40mX[0;1;30;47mX[0;1;33;47mX[0;33;47m8[0;5;33;40m:[0;1;37;47m:[0;5;37;47m:... . . . . . . .[0m
-[0;5;37;47m .:[0;1;37;47mX8S[0;5;33;40mt[0;1;37;47m:[0;1;33;47m8[0;33;47mSX[0;1;33;47mS[0;1;37;47m [0;1;33;47mXS[0;33;47m8@[0;1;33;47mX[0;1;37;47m [0;33;47m8[0;5;33;40m.[0;33;47m8[0;5;37;40m%[0;1;30;47m8[0;1;30;43m8[0;1;30;47m8[0;5;33;40m%X8[0;1;30;42m@@X[0;5;33;40m8[0;5;32;40m8[0;5;33;40mt[0;33;47mX[0;1;33;47mS[0;33;47m8[0;5;37;40mt[0;1;37;47m;[0;5;37;47m . . . . . . . . . [0m
-[0;5;37;47m . [0;5;33;40m:[0;1;30;47m8[0;1;30;43m8[0;1;30;47m8[0;37;43m8[0;5;35;40m.[0;1;31;43m8[0;1;30;47m8[0;1;30;43m8[0;1;30;47m8[0;33;47m888[0;1;31;47m8[0;1;33;47mX[0;33;47m@[0;1;33;47m@X[0;1;37;47m [0;1;33;47m@[0;1;37;47m [0;1;33;47mX[0;1;37;47m [0;1;33;47mX%S%[0;1;37;47m;[0;1;33;47m8[0;1;30;47m8[0;5;37;40m;[0;5;37;47m8t .. . . . . . . . .[0m
-[0;5;37;47m ... ..: . .@@888[0;1;37;47m%St [0;1;30;47m@[0;1;37;47m [0;1;30;47m@[0;1;37;47m [0;1;30;47m8SS[0;1;37;47m [0;5;37;47m8:; . . . . . . . . . . .[0m
-[0;5;37;47m . . . ..::. ..:;;::::. ... . . . . . . . . . . . .[0m
-[0;5;37;47m .. . . . . .. . . . . .. . . . . . . . . . . . . . [0m
diff --git a/vendor/drush/drush/examples/example.bashrc b/vendor/drush/drush/examples/example.bashrc
deleted file mode 100644
index a31204616..000000000
--- a/vendor/drush/drush/examples/example.bashrc
+++ /dev/null
@@ -1,239 +0,0 @@
-# -*- mode: shell-script; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
-#
-# Example bash aliases to improve your Drush experience with bash.
-# Use `drush init` to copy this file to your home directory, rename and
-# customize it to suit, and source it from your ~/.bashrc file.
-#
-# Creates aliases to common Drush commands that work in a global context:
-#
-# dr - drush
-# ddd - drush drupal-directory
-# ev - drush php-eval
-# sa - drush site-alias
-# sa - drush site-alias --local-only (show local site aliases)
-# st - drush core-status
-# use - drush site-set
-#
-# Aliases for Drush commands that work on the current drupal site:
-#
-# cr - drush cache-rebuild
-# en - drush pm-enable
-# pml - drush pm-list
-# unin - drush pm-uninstall
-# updb - drush updatedb
-# q - drush sql-query
-#
-# Provides several common shell commands to work better with Drush:
-#
-# ddd @dev - print the path to the root directory of @dev
-# cdd @dev - change the current working directory to @dev
-# lsd @dev - ls root folder of @dev
-# lsd %files - ls "files" directory of current site
-# lsd @dev:%devel - ls devel module directory in @dev
-# @dev st - drush @dev core-status
-# dssh @live - ssh to the remote server @live points at
-# gitd @live pull - run `git pull` on the drupal root of @live
-#
-# Drush site alias expansion is also done for the cpd command:
-#
-# cpd -R @site1:%files @site2:%files
-#
-# Note that the 'cpd' alias only works for local sites. Use
-# `drush rsync` or gitd` to move files between remote sites.
-#
-# Aliases are also possible for the following standard
-# commands. Uncomment their definitions below as desired.
-#
-# cd - cddl [*]
-# ls - lsd
-# cp - cpd
-# ssh - dssh
-# git - gitd
-#
-# These standard commands behave exactly the same as they always
-# do, unless a Drush site specification such as @dev or @live:%files
-# is used in one of the arguments.
-
-# Aliases for common Drush commands that work in a global context.
-alias dr='drush'
-alias ddd='drush drupal:directory'
-alias ev='drush php:eval'
-alias sa='drush site:alias'
-alias st='drush core:status'
-alias use='drush site:set'
-
-# Aliases for Drush commands that work on the current drupal site
-alias cr='drush cache:rebuild'
-alias en='drush pm:enable'
-alias pml='drush pm:list'
-alias unin='drush pm:uninstall'
-alias updb='drush updatedb'
-alias q='drush sql:query'
-
-# Overrides for standard shell commands. Uncomment to enable. Alias
-# cd='cdd' if you want to be able to use cd @remote to ssh to a
-# remote site.
-
-# alias cd='cddl'
-# alias ls='lsd'
-# alias cp='cpd'
-# alias ssh='dssh'
-# alias git='gitd'
-
-# We extend the cd command to allow convenient
-# shorthand notations, such as:
-# cd @site1
-# cd %modules
-# cd %devel
-# cd @site2:%files
-# You must use 'cddl' instead of 'cd' if you are not using
-# the optional 'cd' alias from above.
-# This is the "local-only" version of the function;
-# see the cdd function, below, for an expanded implementation
-# that will ssh to the remote server when a remote site
-# specification is used.
-function cddl() {
- fastcddl "$1"
- use @self
-}
-
-# Use this function instead of 'cddl' if you have a very large number
-# of alias files, and the 'cddl' function is getting too slow as a result.
-# This function does not automatically set your prompt to the site that
-# you 'cd' to, as 'cddl' does.
-function fastcddl() {
- s="$1"
- if [ -z "$s" ]
- then
- builtin cd
- elif [ "${s:0:1}" == "@" ] || [ "${s:0:1}" == "%" ]
- then
- d="$(drush drupal:directory $1 --local-only 2>/dev/null)"
- if [ $? == 0 ]
- then
- echo "cd $d";
- builtin cd "$d";
- else
- t="$(drush site-alias $1 >/dev/null 2>/dev/null)"
- if [ $? == 0 ]
- then
- echo "Cannot cd to remote site $s"
- else
- echo "Cannot cd to $s"
- fi
- fi
- else
- builtin cd "$s";
- fi
-}
-
-# Works just like the `cddl` shell alias above, with one additional
-# feature: `cdd @remote-site` works like `ssh @remote-site`,
-# whereas cd above will fail unless the site alias is local. If
-# you prefer this behavior, you can add `alias cd='cdd'` to your .bashrc
-function cdd() {
- s="$1"
- if [ -z "$s" ]
- then
- builtin cd
- elif [ "${s:0:1}" == "@" ] || [ "${s:0:1}" == "%" ]
- then
- d="$(drush drupal:directory $s 2>/dev/null)"
- rh="$(drush sa ${s%%:*} --fields=host --format=list)"
- if [ -z "$rh" ]
- then
- echo "cd $d"
- builtin cd "$d"
- else
- if [ -n "$d" ]
- then
- c="cd \"$d\" \; bash"
- drush -s ${s%%:*} ssh --tty
- drush ${s%%:*} ssh --tty
- else
- drush ssh ${s%%:*}
- fi
- fi
- else
- builtin cd "$s"
- fi
-}
-
-# Allow `git @site gitcommand` as a shortcut for `cd @site; git gitcommand`.
-# Also works on remote sites, though.
-function gitd() {
- s="$1"
- if [ -n "$s" ] && [ ${s:0:1} == "@" ] || [ ${s:0:1} == "%" ]
- then
- d="$(drush drupal-directory $s 2>/dev/null)"
- rh="$(drush sa ${s%%:*} --fields=host --format=list)"
- if [ -n "$rh" ]
- then
- drush ${s%%:*} ssh "cd '$d' ; git ${@:2}"
- else
- echo cd "$d" \; git "${@:2}"
- (
- cd "$d"
- "git" "${@:2}"
- )
- fi
- else
- "git" "$@"
- fi
-}
-
-# Get a directory listing on @site or @site:%files, etc, for local or remote sites.
-function lsd() {
- p=()
- r=
- for a in "$@" ; do
- if [ ${a:0:1} == "@" ] || [ ${a:0:1} == "%" ]
- then
- p[${#p[@]}]="$(drush drupal:directory $a 2>/dev/null)"
- if [ ${a:0:1} == "@" ]
- then
- rh="$(drush sa ${a%:*} --fields=host --format=list)"
- if [ -n "$rh" ]
- then
- r=${a%:*}
- fi
- fi
- elif [ -n "$a" ]
- then
- p[${#p[@]}]="$a"
- fi
- done
- if [ -n "$r" ]
- then
- drush $r ssh 'ls "${p[@]}"'
- else
- "ls" "${p[@]}"
- fi
-}
-
-# Copy files from or to @site or @site:%files, etc; local sites only.
-function cpd() {
- p=()
- for a in "$@" ; do
- if [ ${a:0:1} == "@" ] || [ ${a:0:1} == "%" ]
- then
- p[${#p[@]}]="$(drush drupal:directory $a --local-only 2>/dev/null)"
- elif [ -n "$a" ]
- then
- p[${#p[@]}]="$a"
- fi
- done
- "cp" "${p[@]}"
-}
-
-# This alias allows `dssh @site` to work like `drush @site ssh`.
-# Ssh commands, such as `dssh @site ls /tmp`, are also supported.
-function dssh() {
- d="$1"
- if [ ${d:0:1} == "@" ]
- then
- drush "$d" ssh "${@:2}"
- else
- "ssh" "$@"
- fi
-}
diff --git a/vendor/drush/drush/examples/example.drush.yml b/vendor/drush/drush/examples/example.drush.yml
deleted file mode 100644
index 5fe48dc45..000000000
--- a/vendor/drush/drush/examples/example.drush.yml
+++ /dev/null
@@ -1,165 +0,0 @@
-#
-# Examples of valid statements for a Drush runtime config (drush.yml) file.
-#
-# Use this file to cut down on typing out lengthy and repetitive command line
-# options in the Drush commands you use and to avoid mistakes.
-#
-# The Drush configuration system has been factored out and shared with
-# the world at https://github.com/consolidation/config. Feel free to use it
-# for your projects. Lots more usage information is there.
-
-# Directories and Discovery
-#
-# Rename this file to drush.yml and copy it to one of the places listed below
-# in order of precedence:
-#
-# 1. Drupal site folder (e.g. sites/{default|example.com}/drush.yml).
-# 2. Drupal /drush and sites/all/drush folders, or the /drush folder
-# in the directory above the Drupal root.
-# 3. In any location, as specified by the --config (-c) option.
-# 4. User's .drush folder (i.e. ~/.drush/drush.yml).
-# 5. System wide configuration folder (e.g. /etc/drush/drush.yml or C:\ProgramData\Drush\drush.yml).
-#
-# If a configuration file is found in any of the above locations, it will be
-# loaded and merged with other configuration files in the search list.
-#
-# Version-specific configuration
-#
-# Drush started using yml files for configuration in version 9; earlier versions
-# of Drush will never attempt to load a drush.yml file. It is also possible
-# to limit the version of Drush that will load a configuration file by placing
-# the Drush major version number in the filename, e.g. drush9.yml.
-
-# Environment variables
-#
-# Your Drush config file may reference environment variables using a syntax like ${env.home}.
-# For example see the drush.paths examples below.
-#
-# An alternative way to populate Drush configuration is to define environment variables that
-# correspond to config keys. For example, to populate the options.uri config item,
-# create an environment variable `DRUSH_OPTIONS_URI=http://example.com`.
-# As you can see, variable names should be uppercased, prefixed with `DRUSH_`, and periods
-# replaced with dashes.
-
-drush:
- paths:
- # Specify config files to load.
- config:
- # Load any personal config files. Is silently skipped if not found. Filename must be drush.yml
- - ${env.home}/.drush/config/drush.yml
-
-
- # Specify folders to search for Drush command files. These locations
- # are always merged with include paths defined on the command line or
- # in other configuration files. On the command line, paths may be separated
- # by a colon (:) on Unix-based systems or a semi-colon (;) on Windows,
- # or multiple --include options may be provided. Drush 8 and earlier did
- # a deep search in ~/.drush and /usr/share/drush/commands when loading
- # command files.
- include:
- - '${env.home}/.drush/commands'
- - /usr/share/drush/commands
-
- # Specify the folders to search for Drush alias files (*.site.yml). These
- # locations are always merged with alias paths defined on the command line
- # or in other configuration files. On the command line, paths may be
- # separated by a colon (:) on Unix-based systems or a semi-colon (;) on
- # Windows, or multiple --alias-path options may be provided. Note that
- # Drush 8 and earlier did a deep search in ~/.drush and /etc/drush when
- # loading alias files.
- alias-path:
- - '${env.home}/.drush/sites'
- - /etc/drush/sites
-
- # Specify a folder where Drush should store its file based caches. If unspecified, defaults to $HOME/.drush.
- cache-directory: /tmp/.drush
-
-# This section is for setting global options.
-options:
- # Specify the base_url that should be used when generating links.
- # Not recommended if you have more than one Drupal site on your system.
- uri: 'http://example.com/subdir'
-
- # Specify your Drupal core base directory (useful if you use symlinks).
- # Not recommended if you have more than one Drupal root on your system.
- root: '/home/USER/workspace/drupal-6'
-
- # Enable verbose mode.
- verbose: true
-
-# This section is for setting command-specific options.
-command:
- sql:
- dump:
- options:
- # Uncomment to omit cache and similar tables (including during a sql:sync).
-# structure-tables-key: common
- php:
- script:
- options:
- # Additional folders to search for scripts.
-# script-path: 'sites/all/scripts:profiles/myprofile/scripts'
- core:
- rsync:
- options:
- # Ensure all rsync commands use verbose output.
-# verbose: true
-
- site:
- install:
- options:
- # Set a predetermined username and password when using site-install.
-# account-name: 'alice'
-# account-pass: 'secret'
-
-
-#
-# The sections below are configuration thats consulted by various commands, outside
-# of the option system.
-#
-
-sql:
- # An explicit list of tables which should be included in sql-dump and sql-sync.
- tables:
- common:
- - user
- - permissions
- - role_permissions
- - role
- # List of tables whose *data* is skipped by the 'sql-dump' and 'sql-sync'
- # commands when the "--structure-tables-key=common" option is provided.
- # You may add specific tables to the existing array or add a new element.
- structure-tables:
- common:
- - cache
- - 'cache_*'
- - history
- - 'search_*'
- - 'sessions'
- - 'watchdog'
- # List of tables to be omitted entirely from SQL dumps made by the 'sql-dump'
- # and 'sql-sync' commands when the "--skip-tables-key=common" option is
- # provided on the command line. This is useful if your database contains
- # non-Drupal tables used by some other application or during a migration for
- # example. You may add new tables to the existing array or add a new element.
- skip-tables:
- common:
- - 'migration_*'
-
-ssh:
- # Specify options to pass to ssh in backend invoke. The default is to prohibit
- # password authentication, and is included here, so you may add additional
- # parameters without losing the default configuration.
- options: '-o PasswordAuthentication=no'
-
-notify:
- # Notify when command takes more than 30 seconds.
- duration: 30
- # Specify a command to run. Defaults to Notification Center (OSX) or libnotify (Linux)
-# cmd: /path/to/program
- # See src/Commands/core/NotifyCommands.php for more configuration settings.
-
-xh:
- # Start profiling via xhprof/tideways and show a link to the run report.
-# link: http://xhprof.local
- # See src/Commands/core/XhprofCommands.php for more configuration settings.
diff --git a/vendor/drush/drush/examples/example.prompt.sh b/vendor/drush/drush/examples/example.prompt.sh
deleted file mode 100644
index adeab9301..000000000
--- a/vendor/drush/drush/examples/example.prompt.sh
+++ /dev/null
@@ -1,100 +0,0 @@
-# -*- mode: shell-script; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
-#
-# Example PS1 prompt.
-#
-# Use `drush init` to copy this to ~/.drush/drush.prompt.sh, and source it in
-# ~/.bashrc or ~/.bash_profile.
-#
-# Note that your Bash session must already have the __git_ps1 function available.
-# Typically this is provided by git-prompt.sh, see instructions for downloading
-# and including this file here:
-# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
-#
-# Features:
-#
-# Displays Git repository and Drush alias status in your prompt.
-
-__drush_ps1() {
- f="${TMPDIR:-/tmp/}/drush-env-${USER}/drush-drupal-site-$$"
- if [ -f $f ]
- then
- __DRUPAL_SITE=$(cat "$f")
- else
- __DRUPAL_SITE="$DRUPAL_SITE"
- fi
-
- # Set DRUSH_PS1_SHOWCOLORHINTS to a non-empty value and define a
- # __drush_ps1_colorize_alias() function for color hints in your Drush PS1
- # prompt. See example.prompt.sh for an example implementation.
- if [ -n "${__DRUPAL_SITE-}" ] && [ -n "${DRUSH_PS1_SHOWCOLORHINTS-}" ]; then
- __drush_ps1_colorize_alias
- fi
-
- [[ -n "$__DRUPAL_SITE" ]] && printf "${1:- (%s)}" "$__DRUPAL_SITE"
-}
-
-if [ -n "$(type -t __git_ps1)" ] && [ "$(type -t __git_ps1)" = function ] && [ "$(type -t __drush_ps1)" ] && [ "$(type -t __drush_ps1)" = function ]; then
-
- # This line enables color hints in your Drush prompt. Modify the below
- # __drush_ps1_colorize_alias() to customize your color theme.
- DRUSH_PS1_SHOWCOLORHINTS=true
-
- # Git offers various prompt customization options as well as seen in
- # https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh.
- # Adjust the following lines to enable the corresponding features:
- #
- GIT_PS1_SHOWDIRTYSTATE=true
- GIT_PS1_SHOWUPSTREAM=auto
- # GIT_PS1_SHOWSTASHSTATE=true
- # GIT_PS1_SHOWUNTRACKEDFILES=true
- GIT_PS1_SHOWCOLORHINTS=true
-
- # The following line sets your bash prompt according to this example:
- #
- # username@hostname ~/working-directory (git-branch)[@drush-alias] $
- #
- # See http://ss64.com/bash/syntax-prompt.html for customization options.
- export PROMPT_COMMAND='__git_ps1 "\u@\h \w" "$(__drush_ps1 "[%s]") \\\$ "'
-
- # PROMPT_COMMAND is used in the example above rather than PS1 because neither
- # Git nor Drush color hints are compatible with PS1. If you don't want color
- # hints, however, and prefer to use PS1, you can still do so by commenting out
- # the PROMPT_COMMAND line above and uncommenting the PS1 line below:
- #
- # export PS1='\u@\h \w$(__git_ps1 " (%s)")$(__drush_ps1 "[%s]")\$ '
-
- __drush_ps1_colorize_alias() {
- if [[ -n ${ZSH_VERSION-} ]]; then
- local COLOR_BLUE='%F{blue}'
- local COLOR_CYAN='%F{cyan}'
- local COLOR_GREEN='%F{green}'
- local COLOR_MAGENTA='%F{magenta}'
- local COLOR_RED='%F{red}'
- local COLOR_WHITE='%F{white}'
- local COLOR_YELLOW='%F{yellow}'
- local COLOR_NONE='%f'
- else
- # Using \[ and \] around colors is necessary to prevent issues with
- # command line editing/browsing/completion.
- local COLOR_BLUE='\[\e[94m\]'
- local COLOR_CYAN='\[\e[36m\]'
- local COLOR_GREEN='\[\e[32m\]'
- local COLOR_MAGENTA='\[\e[35m\]'
- local COLOR_RED='\[\e[91m\]'
- local COLOR_WHITE='\[\e[37m\]'
- local COLOR_YELLOW='\[\e[93m\]'
- local COLOR_NONE='\[\e[0m\]'
- fi
-
- # Customize your color theme below.
- case "$__DRUPAL_SITE" in
- *.live|*.prod) local ENV_COLOR="$COLOR_RED" ;;
- *.stage|*.test) local ENV_COLOR="$COLOR_YELLOW" ;;
- *.local) local ENV_COLOR="$COLOR_GREEN" ;;
- *) local ENV_COLOR="$COLOR_BLUE" ;;
- esac
-
- __DRUPAL_SITE="${ENV_COLOR}${__DRUPAL_SITE}${COLOR_NONE}"
- }
-
-fi
diff --git a/vendor/drush/drush/examples/example.site.yml b/vendor/drush/drush/examples/example.site.yml
deleted file mode 100644
index b200cf066..000000000
--- a/vendor/drush/drush/examples/example.site.yml
+++ /dev/null
@@ -1,242 +0,0 @@
-#
-# Example of valid statements for an alias file.
-
-# Basic Alias File Usage
-#
-# In its most basic form, the Drush site alias feature provides a way
-# for teams to share short names that refer to the live and staging sites
-# (usually remote) for a given Drupal site.
-#
-# 1. Make a local working clone of your Drupal site and then
-# `cd` to the project work to select it.
-# 2. Add an alias file called $PROJECT/drush/sites/self.site.yml,
-# where $PROJECT is the project root (location of composer.json file).
-# 3. Run remote commands against the shared live or stage sites
-#
-# Following these steps, a cache:rebuild on the live environment would be:
-#
-# $ drush @live cache:rebuild
-#
-# The site alias file should be named `self.site.yml` because this name is
-# special, and is used to define the different environments (usually remote)
-# of the current Drupal site.
-#
-# The contents of the alias file should look something like the example below:
-#
-# @code
-# # File: self.site.yml
-# live:
-# host: server.domain.com
-# user: www-admin
-# root: /other/path/to/live/drupal
-# uri: http://example.com
-# stage:
-# host: server.domain.com
-# user: www-admin
-# root: /other/path/to/stage/drupal
-# uri: http://stage.example.com
-# @endcode
-#
-# The top-level element names (`live` and `stage` in the example above) are
-# used to identify the different environments available for this site. These
-# may be used on the command line to select a different target environment
-# to operate on by prepending an `@` character, e.g. `@live` or `@stage`.
-#
-# All of the available aliases for a site's environments may be listed via:
-#
-# $ drush site:alias @self
-#
-# The elements of a site alias environment are:
-#
-# - 'host': The fully-qualified domain name of the remote system
-# hosting the Drupal instance. **Important Note: The remote-host option
-# must be omitted for local sites, as this option controls various
-# operations, such as whether or not rsync parameters are for local or
-# remote machines, and so on.
-# - 'user': The username to log in as when using ssh or rsync.
-# - 'root': The Drupal root; must not be specified as a relative path.
-# - 'uri': The value of --uri should always be the same as
-# when the site is being accessed from a web browser (e.g. http://example.com)
-#
-# Drush uses ssh to run commands on remote systems; all team members should
-# install ssh keys on the target servers (e.g. via ssh-add).
-
-# Advanced Site Alias File Usage
-#
-# It is also possible to create site alias files that reference other
-# sites on the same local system. Site alias files for other local sites
-# are usually stored in the directory `~/.drush/sites`; however, Drush does
-# not search this location for alias files by default. To use this location,
-# you must add the path in your Drush configuration file. For example,
-# to re-add both of the default user alias path from Drush 8, put the following
-# in your ~/.drush/drush.yml configuration file:
-#
-# @code
-# drush:
-# paths:
-# alias-path:
-# - '${env.home}/.drush/sites'
-# - /etc/drush/sites
-# @endcode
-#
-# The command `drush core:init` will automatically configure your
-# ~/.drush/drush.yml configuration file to add `~/.drush/sites` and
-# `/etc/drush/sites` as locations where alias files may be placed.
-#
-# A canonical alias named "example" that points to a local
-# Drupal site named "http://example.com" looks like this:
-#
-# @code
-# File: example.site.yml
-# dev:
-# root: /path/to/drupal
-# uri: http://example.com
-# @endcode
-#
-# Note that the first part of the filename (in this case "example")
-# defines the name of the site alias, and the top-level key ("dev")
-# defines the name of the environment.
-#
-# With these definitions in place, it is possible to run commands targeting
-# the dev environment of the target site via:
-#
-# $ drush @example.dev status
-#
-# This command is equivalent to the longer form:
-#
-# $ drush --root=/path/to/drupal --uri=http://example.com status
-#
-# See "Additional Site Alias Options" below for more information.
-
-# Converting Legacy Alias Files
-#
-# To convert legacy alias (*.aliases.drushrc.php) to yml, run the
-# site:alias-convert command.
-
-# Altering aliases:
-#
-# See examples/Commands/SiteAliasAlterCommands.php for an example.
-
-# Environment variables:
-#
-# It is no longer possible to set environment variables from within an alias.
-# This is a planned feature.
-
-# Additional Site Alias Options
-#
-# Aliases are commonly used to define short names for
-# local or remote Drupal installations; however, an alias
-# is really nothing more than a collection of options.
-#
-# - 'os': The operating system of the remote server. Valid values
-# are 'Windows' and 'Linux'. Be sure to set this value for all remote
-# aliases because the default value is PHP_OS if 'remote-host'
-# is not set, and 'Linux' (or $options['remote-os']) if it is. Therefore,
-# if you set a 'remote-host' value, and your remote OS is Windows, if you
-# do not set the 'OS' value, it will default to 'Linux' and could cause
-# unintended consequences, particularly when running 'drush sql-sync'.
-# - 'ssh': Contains settings used to control how ssh commands are generated
-# when running remote commands.
-# - 'options': Contains additional commandline options for the ssh command
-# itself, e.g. "-p 100"
-# - 'tty': Usually, Drush will decide whether or not to create a tty (via
-# the ssh '--t' option) based on whether the local Drush command is running
-# interactively or not. To force Drush to always or never create a tty,
-# set the 'ssh.tty' option to 'true' or 'false', respectively.
-# - 'paths': An array of aliases for common rsync targets.
-# Relative aliases are always taken from the Drupal root.
-# - 'files': Path to 'files' directory. This will be looked up if not
-# specified.
-# - 'drush-script': Path to the remote Drush command.
-# - 'command': These options will only be set if the alias
-# is used with the specified command. In the example below, the option
-# `--no-dump` will be selected whenever the @stage alias
-# is used in any of the following ways:
-# - `drush @stage sql-sync @self @live`
-# - `drush sql-sync @stage @live`
-# - `drush sql-sync @live @stage`
-# NOTE: Setting boolean options broke with Symfony 3. This will be fixed
-# in a future release. See: https://github.com/drush-ops/drush/issues/2956
-#
-# Complex example:
-#
-# @code
-# # File: remote.site.yml
-# live:
-# host: server.domain.com
-# user: www-admin
-# root: /other/path/to/drupal
-# uri: http://example.com
-# ssh:
-# options: '-p 100'
-# paths:
-# drush-script: '/path/to/drush'
-# command:
-# site:
-# install:
-# options:
-# admin-password: 'secret-secret'
-# @endcode
-
-# Site Alias Files for Service Providers
-#
-# There are a number of service providers that manage Drupal sites as a
-# service. Drush allows service providers to create collections of site alias
-# files to reference all of the sites available to a single user. In order
-# to so this, a new location must be defined in your Drush configuration
-# file:
-#
-# @code
-# drush:
-# paths:
-# alias-path:
-# - '${env.home}/.drush/sites/provider-name'
-# @endcode
-#
-# Site aliases stored in this directory may then be referenced by its
-# full alias name, including its location, e.g.:
-#
-# $ drush @provider-name.example.dev
-#
-# Such alias files may still be referenced by their shorter name, e.g.
-# `@example.dev`. Note that it is necessary to individually list every
-# location where site alias files may be stored; Drush never does recursive
-# (deep) directory searches for alias files.
-#
-# The `site:alias` command may also be used to list all of the sites and
-# environments in a given location, e.g.:
-#
-# $ drush site:alias @provider-name
-#
-# Add the option `--format=list` to show only the names of each site and
-# environment without also showing the values in each alias record.
-
-# Developer Information
-#
-# See https://github.com/consolidation/site-alias for more developer
-# information about Site Aliases.
-#
-# An example appears below. Edit to suit and remove the @code / @endcode and
-# leading hashes to enable.
-#
-# @code
-# # File: mysite.site.yml
-# stage:
-# uri: http://stage.example.com
-# root: /path/to/remote/drupal/root
-# host: mystagingserver.myisp.com
-# user: publisher
-# os: Linux
-# paths:
-# - files: sites/mydrupalsite.com/files
-# - custom: /my/custom/path
-# command:
-# sql:
-# sync:
-# options:
-# no-dump: true
-# dev:
-# root: /path/to/docroot
-# uri: https://dev.example.com
-# @endcode
-
diff --git a/vendor/drush/drush/examples/git-bisect.example.sh b/vendor/drush/drush/examples/git-bisect.example.sh
deleted file mode 100755
index e5347ffdc..000000000
--- a/vendor/drush/drush/examples/git-bisect.example.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env sh
-
-#
-# Git bisect is a helpful way to discover which commit an error
-# occurred in. This example file gives simple instructions for
-# using git bisect with Drush to quickly find erroneous commits
-# in Drush commands or Drupal modules, presuming that you can
-# trigger the error condition via Drush (e.g. using `drush php-eval`).
-#
-# Follow these simple steps:
-#
-# $ git bisect start
-# $ git bisect bad # Tell git that the current commit does not work
-# $ git bisect good bcadd5a # Tell drush that the commithash 12345 worked fine
-# $ git bisect run mytestscript.sh
-#
-# 'git bisect run' will continue to call 'git bisect good' and 'git bisect bad',
-# based on whether the script's exit code was 0 or 1, respectively.
-#
-# Replace 'mytestscript.sh' in the example above with a custom script that you
-# write yourself. Use the example script at the end of this document as a
-# guide. Replace the example command with one that calls the Drush command
-# that you would like to test, and replace the 'grep' string with a value
-# that appears when the error exists in the commit, but does not appear when
-# commit is okay.
-#
-# If you are using Drush to test Drupal or an external Drush module, use:
-#
-# $ git bisect run drush mycommand --strict=2
-#
-# This presumes that there is one or more '[warning]' or '[error]'
-# messages emitted when there is a problem, and no warnings or errors
-# when the commit is okay. Omit '--strict=2' to ignore warnings, and
-# signal failure only when 'error' messages are emitted.
-#
-# If you need to test for an error condition explicitly, to find errors
-# that do not return any warning or error log messages on their own, you
-# can use the Drush php-eval command to force an error when `myfunction()`
-# returns FALSE. Replace 'myfunction()' with the name of an appropriate
-# function in your module that can be used to detect the error condition
-# you are looking for.
-#
-# $ git bisect run drush ev 'if(!myfunction()) { return drush_set_error("ERR"); }'
-#
-drush mycommand --myoption 2>&1 | grep -q 'string that indicates there was a problem'
-if [ $? == 0 ] ; then
- exit 1
-else
- exit 0
-fi
diff --git a/vendor/drush/drush/examples/helloworld.script b/vendor/drush/drush/examples/helloworld.script
deleted file mode 100755
index fcb1e9ff3..000000000
--- a/vendor/drush/drush/examples/helloworld.script
+++ /dev/null
@@ -1,27 +0,0 @@
-output()->writeln("Hello world!");
-$this->output()->writeln("The extra options/arguments to this command were:");
-$this->output()->writeln(print_r($extra, true));
-
-
-
-//
-// We can check which site was bootstrapped via
-// the '@self' alias, which is defined only if
-// there is a bootstrapped site.
-//
-$self = Drush::aliasManager()->getSelf();;
-if (empty($self->root())) {
- $this->output()->writeln('No bootstrapped site.');
-}
-else {
- $this->output()->writeln('The following site is bootstrapped:');
- $this->output()->writeln(print_r($self->legacyRecord(), true));
-}
diff --git a/vendor/drush/drush/includes/backend.inc b/vendor/drush/drush/includes/backend.inc
deleted file mode 100644
index 5f750b50a..000000000
--- a/vendor/drush/drush/includes/backend.inc
+++ /dev/null
@@ -1,1304 +0,0 @@
->>');
-define('DRUSH_BACKEND_OUTPUT_DELIMITER', DRUSH_BACKEND_OUTPUT_START . '%s<< "\\0"]);
- $packet_regex = str_replace("\n", "", $packet_regex);
- $data['output'] = preg_replace("/$packet_regex/s", '', drush_backend_output_collect(NULL));
-
- if (drush_get_context('DRUSH_QUIET', FALSE)) {
- ob_end_clean();
- }
-
- $result_object = drush_backend_get_result();
- if (isset($result_object)) {
- $data['object'] = $result_object;
- }
-
- $error = drush_get_error();
- $data['error_status'] = ($error) ? $error : DRUSH_SUCCESS;
-
- $data['log'] = drush_get_log(); // Append logging information
- // The error log is a more specific version of the log, and may be used by calling
- // scripts to check for specific errors that have occurred.
- $data['error_log'] = drush_get_error_log();
- // If there is a @self record, then include it in the result
- $self_record = drush_sitealias_get_record('@self');
- if (!empty($self_record)) {
- $site_context = drush_get_context('site', []);
- unset($site_context['config-file']);
- unset($site_context['context-path']);
- unset($self_record['loaded-config']);
- unset($self_record['#name']);
- $data['self'] = array_merge($site_context, $self_record);
- }
-
- // Return the options that were set at the end of the process.
- $data['context'] = drush_get_merged_options();
- printf("\0" . DRUSH_BACKEND_OUTPUT_DELIMITER, json_encode($data));
-}
-
-/**
- * Callback to collect backend command output.
- */
-function drush_backend_output_collect($string) {
- static $output = '';
- if (!isset($string)) {
- return $output;
- }
-
- $output .= $string;
- return $string;
-}
-
-/**
- * Output buffer functions that discards all output but backend packets.
- */
-function drush_backend_output_discard($string) {
- $packet_regex = strtr(sprintf(DRUSH_BACKEND_PACKET_PATTERN, "([^\0]*)"), ["\0" => "\\0"]);
- $packet_regex = str_replace("\n", "", $packet_regex);
- if (preg_match_all("/$packet_regex/s", $string, $matches)) {
- return implode('', $matches[0]);
- }
-}
-
-/**
- * Output a backend packet if we're running as backend.
- *
- * @param packet
- * The packet to send.
- * @param data
- * Data for the command.
- *
- * @return
- * A boolean indicating whether the command was output.
- */
-function drush_backend_packet($packet, $data) {
- if (\Drush\Drush::backend()) {
- $data['packet'] = $packet;
- $data = json_encode($data);
- // We use 'fwrite' instead of 'drush_print' here because
- // this backend packet is out-of-band data.
- fwrite(STDERR, sprintf(DRUSH_BACKEND_PACKET_PATTERN, $data));
- return TRUE;
- }
-
- return FALSE;
-}
-
-/**
- * Parse output returned from a Drush command.
- *
- * @param string
- * The output of a drush command
- * @param integrate
- * Integrate the errors and log messages from the command into the current process.
- * @param outputted
- * Whether output has already been handled.
- *
- * @return
- * An associative array containing the data from the external command, or the string parameter if it
- * could not be parsed successfully.
- */
-function drush_backend_parse_output($string, $backend_options = [], $outputted = FALSE) {
- $regex = sprintf(DRUSH_BACKEND_OUTPUT_DELIMITER, '(.*)');
-
- preg_match("/$regex/s", $string, $match);
-
- if (!empty($match) && $match[1]) {
- // we have our JSON encoded string
- $output = $match[1];
- // remove the match we just made and any non printing characters
- $string = trim(str_replace(sprintf(DRUSH_BACKEND_OUTPUT_DELIMITER, $match[1]), '', $string));
- }
-
- if (!empty($output)) {
- $data = json_decode($output, TRUE);
- if (is_array($data)) {
- _drush_backend_integrate($data, $backend_options, $outputted);
- return $data;
- }
- }
- return $string;
-}
-
-/**
- * Integrate log messages and error statuses into the current
- * process.
- *
- * Output produced by the called script will be printed if we didn't print it
- * on the fly, errors will be set, and log messages will be logged locally, if
- * not already logged.
- *
- * @param data
- * The associative array returned from the external command.
- * @param outputted
- * Whether output has already been handled.
- */
-function _drush_backend_integrate($data, $backend_options, $outputted) {
- // In 'integrate' mode, logs and errors have already been handled
- // by drush_backend_packet (sender) drush_backend_parse_packets (receiver - us)
- // during incremental output. We therefore do not need to call drush_set_error
- // or drush_log here. The exception is if the sender is an older version of
- // Drush (version 4.x) that does not send backend packets, then we will
- // not have processed the log entries yet, and must print them here.
- $received_packets = drush_get_context('DRUSH_RECEIVED_BACKEND_PACKETS', FALSE);
- if (is_array($data['log']) && $backend_options['log'] && (!$received_packets)) {
- foreach($data['log'] as $log) {
- $message = is_array($log['message']) ? implode("\n", $log['message']) : $log['message'];
- if (isset($backend_options['#output-label'])) {
- $message = $backend_options['#output-label'] . $message;
- }
- if (isset($log['error']) && $backend_options['integrate']) {
- drush_set_error($log['error'], $message);
- }
- elseif ($backend_options['integrate']) {
- drush_log($message, $log['type']);
- }
- }
- }
- // Output will either be printed, or buffered to the drush_backend_output command.
- // If the output has already been printed, then we do not need to show it again on a failure.
- if (!$outputted) {
- if (drush_cmp_error('DRUSH_APPLICATION_ERROR') && !empty($data['output'])) {
- drush_set_error("DRUSH_APPLICATION_ERROR", dt("Output from failed command :\n !output", ['!output' => $data['output']]));
- }
- elseif ($backend_options['output']) {
- _drush_backend_print_output($data['output'], $backend_options);
- }
- }
-}
-
-/**
- * Supress log message output during backend integrate.
- */
-function _drush_backend_integrate_log($entry) {
-}
-
-/**
- * Call an external command using proc_open.
- *
- * @param cmds
- * An array of records containing the following elements:
- * 'cmd' - The command to execute, already properly escaped
- * 'post-options' - An associative array that will be JSON encoded
- * and passed to the script being called. Objects are not allowed,
- * as they do not json_decode gracefully.
- * 'backend-options' - Options that control the operation of the backend invoke
- * - OR -
- * An array of commands to execute. These commands already need to be properly escaped.
- * In this case, post-options will default to empty, and a default output label will
- * be generated.
- * @param data
- * An associative array that will be JSON encoded and passed to the script being called.
- * Objects are not allowed, as they do not json_decode gracefully.
- *
- * @return
- * False if the command could not be executed, or did not return any output.
- * If it executed successfully, it returns an associative array containing the command
- * called, the output of the command, and the error code of the command.
- */
-function _drush_backend_proc_open($cmds, $process_limit, $context = NULL) {
- $descriptorspec = [
- 0 => ["pipe", "r"], // stdin is a pipe that the child will read from
- 1 => ["pipe", "w"], // stdout is a pipe that the child will write to
- ];
-
- $open_processes = [];
- $bucket = [];
- $process_limit = max($process_limit, 1);
- $is_windows = drush_is_windows();
- // Loop through processes until they all close, having a nap as needed.
- $nap_time = 0;
- while (count($open_processes) || count($cmds)) {
- $nap_time++;
- if (count($cmds) && (count($open_processes) < $process_limit)) {
- // Pop the site and command (key / value) from the cmds array
- end($cmds);
- $cmd = current($cmds);
- $site = key($cmds);
- unset($cmds[$site]);
-
- if (is_array($cmd)) {
- $c = $cmd['cmd'];
- $post_options = $cmd['post-options'];
- $backend_options = $cmd['backend-options'];
- }
- else {
- $c = $cmd;
- $post_options = [];
- $backend_options = [];
- }
- $backend_options += [
- '#output-label' => '',
- '#process-read-size' => 4096,
- ];
- $process = [];
- drush_log($backend_options['#output-label'] . $c);
- $process['process'] = proc_open($c, $descriptorspec, $process['pipes'], null, null, ['context' => $context]);
- if (is_resource($process['process'])) {
- if ($post_options) {
- fwrite($process['pipes'][0], json_encode($post_options)); // pass the data array in a JSON encoded string
- }
- // If we do not close stdin here, then we cause a deadlock;
- // see: http://drupal.org/node/766080#comment-4309936
- // If we reimplement interactive commands to also use
- // _drush_proc_open, then clearly we would need to keep
- // this open longer.
- fclose($process['pipes'][0]);
-
- $process['info'] = stream_get_meta_data($process['pipes'][1]);
- stream_set_blocking($process['pipes'][1], FALSE);
- stream_set_timeout($process['pipes'][1], 1);
- $bucket[$site]['cmd'] = $c;
- $bucket[$site]['output'] = '';
- $bucket[$site]['remainder'] = '';
- $bucket[$site]['backend-options'] = $backend_options;
- $bucket[$site]['end_of_output'] = FALSE;
- $bucket[$site]['outputted'] = FALSE;
- $open_processes[$site] = $process;
- }
- // Reset the $nap_time variable as there might be output to process next
- // time around:
- $nap_time = 0;
- }
- // Set up to call stream_select(). See:
- // http://php.net/manual/en/function.stream-select.php
- // We can't use stream_select on Windows, because it doesn't work for
- // streams returned by proc_open.
- if (!$is_windows) {
- $ss_result = 0;
- $read_streams = [];
- $write_streams = [];
- $except_streams = [];
- foreach ($open_processes as $site => &$current_process) {
- if (isset($current_process['pipes'][1])) {
- $read_streams[] = $current_process['pipes'][1];
- }
- }
- // Wait up to 2s for data to become ready on one of the read streams.
- if (count($read_streams)) {
- $ss_result = stream_select($read_streams, $write_streams, $except_streams, 2);
- // If stream_select returns a error, then fallback to using $nap_time.
- if ($ss_result !== FALSE) {
- $nap_time = 0;
- }
- }
- }
-
- foreach ($open_processes as $site => &$current_process) {
- if (isset($current_process['pipes'][1])) {
- // Collect output from stdout
- $bucket[$site][1] = '';
- $info = stream_get_meta_data($current_process['pipes'][1]);
-
- if (!feof($current_process['pipes'][1]) && !$info['timed_out']) {
- $string = $bucket[$site]['remainder'] . fread($current_process['pipes'][1], $backend_options['#process-read-size']);
- $bucket[$site]['remainder'] = '';
- $output_end_pos = strpos($string, DRUSH_BACKEND_OUTPUT_START);
- if ($output_end_pos !== FALSE) {
- $trailing_string = substr($string, 0, $output_end_pos);
- $trailing_remainder = '';
- // If there is any data in the trailing string (characters prior
- // to the backend output start), then process any backend packets
- // embedded inside.
- if (strlen($trailing_string) > 0) {
- drush_backend_parse_packets($trailing_string, $trailing_remainder, $bucket[$site]['backend-options']);
- }
- // If there is any data remaining in the trailing string after
- // the backend packets are removed, then print it.
- if (strlen($trailing_string) > 0) {
- _drush_backend_print_output($trailing_string . $trailing_remainder, $bucket[$site]['backend-options']);
- $bucket[$site]['outputted'] = TRUE;
- }
- $bucket[$site]['end_of_output'] = TRUE;
- }
- if (!$bucket[$site]['end_of_output']) {
- drush_backend_parse_packets($string, $bucket[$site]['remainder'], $bucket[$site]['backend-options']);
- // Pass output through.
- _drush_backend_print_output($string, $bucket[$site]['backend-options']);
- if (strlen($string) > 0) {
- $bucket[$site]['outputted'] = TRUE;
- }
- }
- $bucket[$site][1] .= $string;
- $bucket[$site]['output'] .= $string;
- $info = stream_get_meta_data($current_process['pipes'][1]);
- flush();
-
- // Reset the $nap_time variable as there might be output to process
- // next time around:
- if (strlen($string) > 0) {
- $nap_time = 0;
- }
- }
- else {
- fclose($current_process['pipes'][1]);
- unset($current_process['pipes'][1]);
- // close the pipe , set a marker
-
- // Reset the $nap_time variable as there might be output to process
- // next time around:
- $nap_time = 0;
- }
- }
- else {
- // if both pipes are closed for the process, remove it from active loop and add a new process to open.
- $bucket[$site]['code'] = proc_close($current_process['process']);
- unset($open_processes[$site]);
-
- // Reset the $nap_time variable as there might be output to process next
- // time around:
- $nap_time = 0;
- }
- }
-
- // We should sleep for a bit if we need to, up to a maximum of 1/10 of a
- // second.
- if ($nap_time > 0) {
- usleep(max($nap_time * 500, 100000));
- }
- }
- return $bucket;
- // TODO: Handle bad proc handles
- //}
- //return FALSE;
-}
-
-
-
-/**
- * Print the output received from a call to backend invoke,
- * adding the label to the head of each line if necessary.
- */
-function _drush_backend_print_output($output_string, $backend_options) {
- if ($backend_options['output'] && !empty($output_string)) {
- $output_label = array_key_exists('#output-label', $backend_options) ? $backend_options['#output-label'] : FALSE;
- if (!empty($output_label)) {
- // Remove one, and only one newline from the end of the
- // string. Else we'll get an extra 'empty' line.
- foreach (explode("\n", preg_replace('/\\n$/', '', $output_string)) as $line) {
- fwrite(STDOUT, $output_label . rtrim($line) . "\n");
- }
- }
- else {
- fwrite(STDOUT, $output_string);
- }
- }
-}
-
-/**
- * Parse out and remove backend packet from the supplied string and
- * invoke the commands.
- */
-function drush_backend_parse_packets(&$string, &$remainder, $backend_options) {
- $remainder = '';
- $packet_regex = strtr(sprintf(DRUSH_BACKEND_PACKET_PATTERN, "([^\0]*)"), ["\0" => "\\0"]);
- $packet_regex = str_replace("\n", "", $packet_regex);
- if (preg_match_all("/$packet_regex/s", $string, $match, PREG_PATTERN_ORDER)) {
- drush_set_context('DRUSH_RECEIVED_BACKEND_PACKETS', TRUE);
- foreach ($match[1] as $packet_data) {
- $entry = (array) json_decode($packet_data);
- if (is_array($entry) && isset($entry['packet'])) {
- $function = 'drush_backend_packet_' . $entry['packet'];
- if (function_exists($function)) {
- $function($entry, $backend_options);
- }
- else {
- drush_log(dt("Unknown backend packet @packet", ['@packet' => $entry['packet']]), LogLevel::INFO);
- }
- }
- else {
- drush_log(dt("Malformed backend packet"), LogLevel::ERROR);
- drush_log(dt("Bad packet: @packet", ['@packet' => print_r($entry, TRUE)]), LogLevel::DEBUG);
- drush_log(dt("String is: @str", ['@str' => $packet_data]), LogLevel::DEBUG);
- }
- }
- $string = preg_replace("/$packet_regex/s", '', $string);
- }
- // Check to see if there is potentially a partial packet remaining.
- // We only care about the last null; if there are any nulls prior
- // to the last one, they would have been removed above if they were
- // valid drush packets.
- $embedded_null = strrpos($string, "\0");
- if ($embedded_null !== FALSE) {
- // We will consider everything after $embedded_null to be part of
- // the $remainder string if:
- // - the embedded null is less than strlen(DRUSH_BACKEND_OUTPUT_START)
- // from the end of $string (that is, there might be a truncated
- // backend packet header, or the truncated backend output start
- // after the null)
- // OR
- // - the embedded null is followed by DRUSH_BACKEND_PACKET_START
- // (that is, the terminating null for that packet has not been
- // read into our buffer yet)
- if (($embedded_null + strlen(DRUSH_BACKEND_OUTPUT_START) >= strlen($string)) || (substr($string, $embedded_null + 1, strlen(DRUSH_BACKEND_PACKET_START)) == DRUSH_BACKEND_PACKET_START)) {
- $remainder = substr($string, $embedded_null);
- $string = substr($string, 0, $embedded_null);
- }
- }
-}
-
-/**
- * Backend command for setting errors.
- */
-function drush_backend_packet_set_error($data, $backend_options) {
- if (!$backend_options['integrate']) {
- return;
- }
- $output_label = "";
- if (array_key_exists('#output-label', $backend_options)) {
- $output_label = $backend_options['#output-label'];
- }
- drush_set_error($data['error'], $data['message'], $output_label);
-}
-
-/**
- * Default options for backend_invoke commands.
- */
-function _drush_backend_adjust_options($site_record, $command, $command_options, $backend_options) {
- // By default, if the caller does not specify a value for 'output', but does
- // specify 'integrate' === FALSE, then we will set output to FALSE. Otherwise we
- // will allow it to default to TRUE.
- if ((array_key_exists('integrate', $backend_options)) && ($backend_options['integrate'] === FALSE) && (!array_key_exists('output', $backend_options))) {
- $backend_options['output'] = FALSE;
- }
- $has_site_specification = array_key_exists('root', $site_record) || array_key_exists('uri', $site_record);
- $result = $backend_options + [
- 'method' => 'GET',
- 'output' => TRUE,
- 'log' => TRUE,
- 'integrate' => TRUE,
- 'backend' => TRUE,
- 'dispatch-using-alias' => !$has_site_specification,
- ];
- // Convert '#integrate' et. al. into backend options
- foreach ($command_options as $key => $value) {
- if (substr($key,0,1) === '#') {
- $result[substr($key,1)] = $value;
- }
- }
- return $result;
-}
-
-/**
- * Execute a new local or remote command in a new process.
- *
- * @deprecated as of Drush 9.4.0 and will be removed in Drush 10. Instead, use
- * drush_invoke_process().
- *
- * @param invocations
- * An array of command records to execute. Each record should contain:
- * 'site':
- * An array containing information used to generate the command.
- * 'remote-host'
- * Optional. A remote host to execute the drush command on.
- * 'remote-user'
- * Optional. Defaults to the current user. If you specify this, you can choose which module to send.
- * 'ssh-options'
- * Optional. Defaults to "-o PasswordAuthentication=no"
- * '#env-vars'
- * Optional. An associative array of environmental variables to prefix the Drush command with.
- * 'path-aliases'
- * Optional; contains paths to folders and executables useful to the command.
- * '%drush-script'
- * Optional. Defaults to the current drush.php file on the local machine, and
- * to simply 'drush' (the drush script in the current PATH) on remote servers.
- * You may also specify a different drush.php script explicitly. You will need
- * to set this when calling drush on a remote server if 'drush' is not in the
- * PATH on that machine.
- * 'command':
- * A defined drush command such as 'cron', 'status' or any of the available ones such as 'drush pm'.
- * 'args':
- * An array of arguments for the command.
- * 'options'
- * Optional. An array containing options to pass to the remote script.
- * Array items with a numeric key are treated as optional arguments to the
- * command.
- * 'backend-options':
- * Optional. Additional parameters that control the operation of the invoke.
- * 'method'
- * Optional. Defaults to 'GET'.
- * If this parameter is set to 'POST', the $data array will be passed
- * to the script being called as a JSON encoded string over the STDIN
- * pipe of that process. This is preferable if you have to pass
- * sensitive data such as passwords and the like.
- * For any other value, the $data array will be collapsed down into a
- * set of command line options to the script.
- * 'integrate'
- * Optional. Defaults to TRUE.
- * If TRUE, any error statuses will be integrated into the current
- * process. This might not be what you want, if you are writing a
- * command that operates on multiple sites.
- * 'log'
- * Optional. Defaults to TRUE.
- * If TRUE, any log messages will be integrated into the current
- * process.
- * 'output'
- * Optional. Defaults to TRUE.
- * If TRUE, output from the command will be synchronously printed to
- * stdout.
- * 'drush-script'
- * Optional. Defaults to the current drush.php file on the local
- * machine, and to simply 'drush' (the drush script in the current
- * PATH) on remote servers. You may also specify a different drush.php
- * script explicitly. You will need to set this when calling drush on
- * a remote server if 'drush' is not in the PATH on that machine.
- * 'dispatch-using-alias'
- * Optional. Defaults to FALSE.
- * If specified as a non-empty value the drush command will be
- * dispatched using the alias name on the command line, instead of
- * the options from the alias being added to the command line
- * automatically.
- * @param common_options
- * Optional. Merged in with the options for each invocation.
- * @param backend_options
- * Optional. Merged in with the backend options for each invocation.
- * @param default_command
- * Optional. Used as the 'command' for any invocation that does not
- * define a command explicitly.
- * @param default_site
- * Optional. Used as the 'site' for any invocation that does not
- * define a site explicitly.
- * @param context
- * Optional. Passed in to proc_open if provided.
- *
- * @return
- * If the command could not be completed successfully, FALSE.
- * If the command was completed, this will return an associative array containing the data from drush_backend_output().
- */
-function drush_backend_invoke_concurrent($invocations, $common_options = [], $common_backend_options = [], $default_command = NULL, $default_site = NULL, $context = NULL) {
- $index = 0;
-
- // Slice and dice our options in preparation to build a command string
- $invocation_options = [];
- foreach ($invocations as $invocation) {
- $site_record = isset($invocation['site']) ? $invocation['site'] : $default_site;
- // NULL is a synonym to '@self', although the latter is preferred.
- if (!isset($site_record)) {
- $site_record = '@self';
- }
- // If the first parameter is not a site alias record,
- // then presume it is an alias name, and try to look up
- // the alias record.
- if (!is_array($site_record)) {
- $site_record = drush_sitealias_get_record($site_record);
- }
- $command = isset($invocation['command']) ? $invocation['command'] : $default_command;
- $args = isset($invocation['args']) ? $invocation['args'] : [];
- $command_options = isset($invocation['options']) ? $invocation['options'] : [];
- $backend_options = isset($invocation['backend-options']) ? $invocation['backend-options'] : [];
- // If $backend_options is passed in as a bool, interpret that as the value for 'integrate'
- if (!is_array($common_backend_options)) {
- $integrate = (bool)$common_backend_options;
- $common_backend_options = ['integrate' => $integrate];
- }
-
- $command_options += $common_options;
- $backend_options += $common_backend_options;
-
- $backend_options = _drush_backend_adjust_options($site_record, $command, $command_options, $backend_options);
- $backend_options += [
- 'drush-script' => NULL,
- ];
-
- // Insure that contexts such as DRUSH_SIMULATE and NO_COLOR are included.
- $command_options += _drush_backend_get_global_contexts($site_record);
-
- // Add in command-specific options as well
- // $command_options += drush_command_get_command_specific_options($site_record, $command);
-
- $is_remote = array_key_exists('remote-host', $site_record);
-
- // Add in preflight option contexts (--include et. al)
- $preflightContextOptions = \Drush\Drush::config()->get(PreflightArgs::DRUSH_RUNTIME_CONTEXT_NAMESPACE, []);
- $preflightContextOptions['local'] = \Drush\Drush::config()->get('runtime.local', false);
- // If the command is local, also include the paths context.
- if (!$is_remote) {
- $preflightContextOptions += \Drush\Drush::config()->get(PreflightArgs::DRUSH_CONFIG_PATH_NAMESPACE, []);
- }
- foreach ($preflightContextOptions as $key => $value) {
- if ($value) {
- $command_options[$key] = $value;
- }
- }
-
- // If the caller has requested it, don't pull the options from the alias
- // into the command line, but use the alias name for dispatching.
- if (!empty($backend_options['dispatch-using-alias']) && isset($site_record['#name'])) {
- list($post_options, $commandline_options, $drush_global_options) = _drush_backend_classify_options([], $command_options, $backend_options);
- $site_record_to_dispatch = '@' . ltrim($site_record['#name'], '@');
- }
- else {
- list($post_options, $commandline_options, $drush_global_options) = _drush_backend_classify_options($site_record, $command_options, $backend_options);
- $site_record_to_dispatch = '';
- }
- if (array_key_exists('backend-simulate', $backend_options)) {
- $drush_global_options['simulate'] = TRUE;
- }
- $site_record += ['path-aliases' => [], '#env-vars' => []];
- $site_record['path-aliases'] += [
- '%drush-script' => $backend_options['drush-script'],
- ];
-
- $site = (array_key_exists('#name', $site_record) && !array_key_exists($site_record['#name'], $invocation_options)) ? $site_record['#name'] : $index++;
- $invocation_options[$site] = [
- 'site-record' => $site_record,
- 'site-record-to-dispatch' => $site_record_to_dispatch,
- 'command' => $command,
- 'args' => $args,
- 'post-options' => $post_options,
- 'drush-global-options' => $drush_global_options,
- 'commandline-options' => $commandline_options,
- 'command-options' => $command_options,
- 'backend-options' => $backend_options,
- ];
- }
-
- // Calculate the length of the longest output label
- $max_name_length = 0;
- $label_separator = '';
- if (!array_key_exists('no-label', $common_options) && (count($invocation_options) > 1)) {
- $label_separator = array_key_exists('label-separator', $common_options) ? $common_options['label-separator'] : ' >> ';
- foreach ($invocation_options as $site => $item) {
- $backend_options = $item['backend-options'];
- if (!array_key_exists('#output-label', $backend_options)) {
- if (is_numeric($site)) {
- $backend_options['#output-label'] = ' * [@self.' . $site;
- $label_separator = '] ';
- }
- else {
- $backend_options['#output-label'] = $site;
- }
- $invocation_options[$site]['backend-options']['#output-label'] = $backend_options['#output-label'];
- }
- $name_len = strlen($backend_options['#output-label']);
- if ($name_len > $max_name_length) {
- $max_name_length = $name_len;
- }
- if (array_key_exists('#label-separator', $backend_options)) {
- $label_separator = $backend_options['#label-separator'];
- }
- }
- }
- // Now pad out the output labels and add the label separator.
- $reserve_margin = $max_name_length + strlen($label_separator);
- foreach ($invocation_options as $site => $item) {
- $backend_options = $item['backend-options'] + ['#output-label' => ''];
- $invocation_options[$site]['backend-options']['#output-label'] = str_pad($backend_options['#output-label'], $max_name_length, " ") . $label_separator;
- if ($reserve_margin) {
- $invocation_options[$site]['drush-global-options']['reserve-margin'] = $reserve_margin;
- }
- }
-
- // Now take our prepared options and generate the command strings
- $cmds = [];
- foreach ($invocation_options as $site => $item) {
- $site_record = $item['site-record'];
- $site_record_to_dispatch = $item['site-record-to-dispatch'];
- $command = $item['command'];
- $args = $item['args'];
- $post_options = $item['post-options'];
- $commandline_options = $item['commandline-options'];
- $command_options = $item['command-options'];
- $drush_global_options = $item['drush-global-options'];
- $backend_options = $item['backend-options'];
- $is_remote = array_key_exists('remote-host', $site_record);
- $is_different_site =
- $is_remote ||
- (isset($site_record['root']) && ($site_record['root'] != drush_get_context('DRUSH_DRUPAL_ROOT'))) ||
- (isset($site_record['uri']) && ($site_record['uri'] != drush_get_context('DRUSH_SELECTED_URI')));
- $os = drush_os($site_record);
- // If the caller did not pass in a specific path to drush, then we will
- // use a default value. For commands that are being executed on the same
- // machine, we will use DRUSH_COMMAND, which is the path to the drush.php
- // that is running right now.
- $drush_path = $site_record['path-aliases']['%drush-script'];
- if (!$drush_path && !$is_remote && $is_different_site) {
- $drush_path = DRUSH_COMMAND;
- }
- $env_vars = $site_record['#env-vars'];
- $php = array_key_exists('php', $site_record) ? $site_record['php'] : (array_key_exists('php', $command_options) ? $command_options['php'] : NULL);
- $drush_command_path = drush_build_drush_command($drush_path, $php, $os, $is_remote, $env_vars);
- $cmd = _drush_backend_generate_command($site_record, $drush_command_path . " " . _drush_backend_argument_string($drush_global_options, $os) . " " . $site_record_to_dispatch . " " . $command, $args, $commandline_options, $backend_options) . ' 2>&1';
- $cmds[$site] = [
- 'cmd' => $cmd,
- 'post-options' => $post_options,
- 'backend-options' => $backend_options,
- ];
- }
-
- return _drush_backend_invoke($cmds, $common_backend_options, $context);
-}
-
-/**
- * Find all of the drush contexts that are used to cache global values and
- * return them in an associative array.
- */
-function _drush_backend_get_global_contexts($site_record) {
- $result = [];
- $global_option_list = drush_get_global_options(FALSE);
- foreach ($global_option_list as $global_key => $global_metadata) {
- if (is_array($global_metadata)) {
- $value = '';
- if (!array_key_exists('never-propagate', $global_metadata)) {
- if ((array_key_exists('propagate', $global_metadata))) {
- $value = drush_get_option($global_key);
- }
- elseif ((array_key_exists('propagate-cli-value', $global_metadata))) {
- $value = drush_get_option($global_key, '', 'cli');
- }
- elseif ((array_key_exists('context', $global_metadata))) {
- // If the context is declared to be a 'local-context-only',
- // then only put it in if this is a local dispatch.
- if (!array_key_exists('local-context-only', $global_metadata) || !array_key_exists('remote-host', $site_record)) {
- $value = drush_get_context($global_metadata['context'], []);
- }
- }
- if (!empty($value) || ($value === '0')) {
- $result[$global_key] = $value;
- }
- }
- }
- }
- return $result;
-}
-
-/**
- * Take all of the values in the $command_options array, and place each of
- * them into one of the following result arrays:
- *
- * - $post_options: options to be encoded as JSON and written to the
- * standard input of the drush subprocess being executed.
- * - $commandline_options: options to be placed on the command line of the drush
- * subprocess.
- * - $drush_global_options: the drush global options also go on the command
- * line, but appear before the drush command name rather than after it.
- *
- * Also, this function may modify $backend_options.
- */
-function _drush_backend_classify_options($site_record, $command_options, &$backend_options) {
- // In 'POST' mode (the default, remove everything (except the items marked 'never-post'
- // in the global option list) from the commandline options and put them into the post options.
- // The post options will be json-encoded and sent to the command via stdin
- $global_option_list = drush_get_global_options(FALSE); // These should be in the command line.
- $additional_global_options = [];
- if (array_key_exists('additional-global-options', $backend_options)) {
- $additional_global_options = $backend_options['additional-global-options'];
- $command_options += $additional_global_options;
- }
- $method_post = ((!array_key_exists('method', $backend_options)) || ($backend_options['method'] == 'POST'));
- $post_options = [];
- $commandline_options = [];
- $drush_global_options = [];
- $drush_local_options = [];
- $additional_backend_options = [];
- foreach ($site_record as $key => $value) {
- if (!in_array($key, drush_sitealias_site_selection_keys())) {
- if ($key[0] == '#') {
- $backend_options[$key] = $value;
- }
- if (!isset($command_options[$key])) {
- if (array_key_exists($key, $global_option_list)) {
- $command_options[$key] = $value;
- }
- }
- }
- }
- if (array_key_exists('drush-local-options', $backend_options)) {
- $drush_local_options = $backend_options['drush-local-options'];
- $command_options += $drush_local_options;
- }
- if (!empty($backend_options['backend']) && empty($backend_options['interactive']) && empty($backend_options['fork'])) {
- $drush_global_options['backend'] = '2';
- }
- foreach ($command_options as $key => $value) {
- $global = array_key_exists($key, $global_option_list);
- $propagate = TRUE;
- $special = FALSE;
- if ($global) {
- $propagate = (!array_key_exists('never-propagate', $global_option_list[$key]));
- $special = (array_key_exists('never-post', $global_option_list[$key]));
- if ($propagate) {
- // We will allow 'merge-pathlist' contexts to be propogated. Right now
- // these are all 'local-context-only' options; if we allowed them to
- // propogate remotely, then we would need to get the right path separator
- // for the remote machine.
- if (is_array($value) && array_key_exists('merge-pathlist', $global_option_list[$key])) {
- $value = implode(PATH_SEPARATOR, $value);
- }
- }
- }
- // Just remove options that are designated as non-propagating
- if ($propagate === TRUE) {
- // In METHOD POST, move command options to post options
- if ($method_post && ($special === FALSE)) {
- $post_options[$key] = $value;
- }
- // In METHOD GET, ignore options with array values
- elseif (!is_array($value)) {
- if ($global || array_key_exists($key, $additional_global_options)) {
- $drush_global_options[$key] = $value;
- }
- else {
- $commandline_options[$key] = $value;
- }
- }
- }
- }
- return [$post_options, $commandline_options, $drush_global_options, $additional_backend_options];
-}
-
-/**
- * Create a new pipe with proc_open, and attempt to parse the output.
- *
- * We use proc_open instead of exec or others because proc_open is best
- * for doing bi-directional pipes, and we need to pass data over STDIN
- * to the remote script.
- *
- * Exec also seems to exhibit some strangeness in keeping the returned
- * data intact, in that it modifies the newline characters.
- *
- * @param cmd
- * The complete command line call to use.
- * @param post_options
- * An associative array to json-encode and pass to the remote script on stdin.
- * @param backend_options
- * Options for the invocation.
- *
- * @return
- * If no commands were executed, FALSE.
- *
- * If one command was executed, this will return an associative array containing
- * the data from drush_backend_output(). The result code is stored
- * in $result['error_status'] (0 == no error).
- *
- * If multiple commands were executed, this will return an associative array
- * containing one item, 'concurrent', which will contain a list of the different
- * backend invoke results from each concurrent command.
- */
-function _drush_backend_invoke($cmds, $common_backend_options = [], $context = NULL) {
- if (\Drush\Drush::simulate() && !array_key_exists('override-simulated', $common_backend_options) && !array_key_exists('backend-simulate', $common_backend_options)) {
- foreach ($cmds as $cmd) {
- drush_print(dt('Simulating backend invoke: !cmd', ['!cmd' => $cmd['cmd']]));
- }
- return FALSE;
- }
- foreach ($cmds as $cmd) {
- drush_log(dt('Backend invoke: !cmd', ['!cmd' => $cmd['cmd']]), 'command');
- }
- if (!empty($common_backend_options['interactive']) || !empty($common_backend_options['fork'])) {
- foreach ($cmds as $cmd) {
- $exec_cmd = $cmd['cmd'];
- if (array_key_exists('fork', $common_backend_options)) {
- $exec_cmd .= ' --quiet &';
- }
-
- $result_code = drush_shell_proc_open($exec_cmd);
- $ret = ['error_status' => $result_code];
- }
- }
- else {
- $process_limit = drush_get_option_override($common_backend_options, 'concurrency', 1);
- $procs = _drush_backend_proc_open($cmds, $process_limit, $context);
- $procs = is_array($procs) ? $procs : [$procs];
-
- $ret = [];
- foreach ($procs as $site => $proc) {
- if (($proc['code'] == DRUSH_APPLICATION_ERROR) && isset($common_backend_options['integrate'])) {
- drush_set_error('DRUSH_APPLICATION_ERROR', dt("The external command could not be executed due to an application error."));
- }
-
- if ($proc['output']) {
- $values = drush_backend_parse_output($proc['output'], $proc['backend-options'], $proc['outputted']);
- if (is_array($values)) {
- $values['site'] = $site;
- if (empty($ret)) {
- $ret = $values;
- }
- elseif (!array_key_exists('concurrent', $ret)) {
- $ret = ['concurrent' => [$ret, $values]];
- }
- else {
- $ret['concurrent'][] = $values;
- }
- }
- else {
- $ret = drush_set_error('DRUSH_FRAMEWORK_ERROR', dt("The command could not be executed successfully (returned: !return, code: !code)", ["!return" => $proc['output'], "!code" => $proc['code']]));
- }
- }
- }
- }
- return empty($ret) ? FALSE : $ret;
-}
-
-/**
- * Helper function that generates an anonymous site alias specification for
- * the given parameters.
- */
-function drush_backend_generate_sitealias($backend_options) {
- // Ensure default values.
- $backend_options += [
- 'remote-host' => NULL,
- 'remote-user' => NULL,
- 'ssh-options' => NULL,
- 'drush-script' => NULL,
- 'env-vars' => NULL
- ];
- return [
- 'remote-host' => $backend_options['remote-host'],
- 'remote-user' => $backend_options['remote-user'],
- 'ssh-options' => $backend_options['ssh-options'],
- '#env-vars' => $backend_options['env-vars'],
- 'path-aliases' => [
- '%drush-script' => $backend_options['drush-script'],
- ],
- ];
-}
-
-/**
- * Generate a command to execute.
- *
- * @param site_record
- * An array containing information used to generate the command.
- * 'remote-host'
- * Optional. A remote host to execute the drush command on.
- * 'remote-user'
- * Optional. Defaults to the current user. If you specify this, you can choose which module to send.
- * 'ssh-options'
- * Optional. Defaults to "-o PasswordAuthentication=no"
- * '#env-vars'
- * Optional. An associative array of environmental variables to prefix the Drush command with.
- * 'path-aliases'
- * Optional; contains paths to folders and executables useful to the command.
- * '%drush-script'
- * Optional. Defaults to the current drush.php file on the local machine, and
- * to simply 'drush' (the drush script in the current PATH) on remote servers.
- * You may also specify a different drush.php script explicitly. You will need
- * to set this when calling drush on a remote server if 'drush' is not in the
- * PATH on that machine.
- * @param command
- * A defined drush command such as 'cron', 'status' or any of the available ones such as 'drush pm'.
- * @param args
- * An array of arguments for the command.
- * @param command_options
- * Optional. An array containing options to pass to the remote script.
- * Array items with a numeric key are treated as optional arguments to the
- * command. This parameter is a reference, as any options that have been
- * represented as either an option, or an argument will be removed. This
- * allows you to pass the left over options as a JSON encoded string,
- * without duplicating data.
- * @param backend_options
- * Optional. An array of options for the invocation.
- * @see drush_backend_invoke for documentation.
- *
- * @return
- * A text string representing a fully escaped command.
- */
-function _drush_backend_generate_command($site_record, $command, $args = [], $command_options = [], $backend_options = []) {
- $site_record += [
- 'remote-host' => NULL,
- 'remote-user' => NULL,
- 'ssh-options' => NULL,
- 'path-aliases' => [],
- ];
- $backend_options += [
- '#tty' => FALSE,
- ];
-
- $hostname = $site_record['remote-host'];
- $username = $site_record['remote-user'];
- $ssh_options = $site_record['ssh-options']; // TODO: update this (maybe make $site_record an AliasRecord)
- $os = drush_os($site_record);
-
- if (drush_is_local_host($hostname)) {
- $hostname = null;
- }
-
- foreach ($command_options as $key => $arg) {
- if (is_numeric($key)) {
- $args[] = $arg;
- unset($command_options[$key]);
- }
- }
-
- $cmd[] = $command;
- foreach ($args as $arg) {
- $cmd[] = drush_escapeshellarg($arg, $os);
- }
- $option_str = _drush_backend_argument_string($command_options, $os);
- if (!empty($option_str)) {
- $cmd[] = " " . $option_str;
- }
- $command = implode(' ', array_filter($cmd, 'strlen'));
- if (isset($hostname)) {
- $username = (isset($username)) ? drush_escapeshellarg($username) . "@" : '';
- $ssh_options = $site_record['ssh-options']; // TODO: update
- $ssh_options = (isset($ssh_options)) ? $ssh_options : \Drush\Drush::config()->get('ssh.options', "-o PasswordAuthentication=no");
-
- $ssh_cmd[] = "ssh";
- $ssh_cmd[] = $ssh_options;
- if ($backend_options['#tty']) {
- $ssh_cmd[] = '-t';
- }
- $ssh_cmd[] = $username . drush_escapeshellarg($hostname);
- $ssh_cmd[] = drush_escapeshellarg($command . ' 2>&1');
-
- // Remove NULLs and separate with spaces
- $command = implode(' ', array_filter($ssh_cmd, 'strlen'));
- }
-
- return $command;
-}
-
-/**
- * Map the options to a string containing all the possible arguments and options.
- *
- * @param data
- * Optional. An array containing options to pass to the remote script.
- * Array items with a numeric key are treated as optional arguments to the command.
- * This parameter is a reference, as any options that have been represented as either an option, or an argument will be removed.
- * This allows you to pass the left over options as a JSON encoded string, without duplicating data.
- * @param method
- * Optional. Defaults to 'GET'.
- * If this parameter is set to 'POST', the $data array will be passed to the script being called as a JSON encoded string over
- * the STDIN pipe of that process. This is preferable if you have to pass sensitive data such as passwords and the like.
- * For any other value, the $data array will be collapsed down into a set of command line options to the script.
- * @return
- * A properly formatted and escaped set of arguments and options to append to the drush.php shell command.
- */
-function _drush_backend_argument_string($data, $os = NULL) {
- $options = [];
-
- foreach ($data as $key => $value) {
- if (!is_array($value) && !is_object($value) && isset($value)) {
- if (substr($key,0,1) != '#') {
- $options[$key] = $value;
- }
- }
- }
-
- $option_str = '';
- foreach ($options as $key => $value) {
- $option_str .= _drush_escape_option($key, $value, $os);
- }
-
- return $option_str;
-}
-
-/**
- * Return a properly formatted and escaped command line option
- *
- * @param key
- * The name of the option.
- * @param value
- * The value of the option.
- *
- * @return
- * If the value is set to TRUE, this function will return " --key"
- * In other cases it will return " --key='value'"
- */
-function _drush_escape_option($key, $value = TRUE, $os = NULL) {
- if ($value !== TRUE) {
- $option_str = " --$key=" . drush_escapeshellarg($value, $os);
- }
- else {
- $option_str = " --$key";
- }
- return $option_str;
-}
-
-/**
- * Read options fron STDIN during POST requests.
- *
- * This function will read any text from the STDIN pipe,
- * and attempts to generate an associative array if valid
- * JSON was received.
- *
- * @return
- * An associative array of options, if successfull. Otherwise FALSE.
- */
-function _drush_backend_get_stdin() {
- $fp = fopen('php://stdin', 'r');
- // Windows workaround: we cannot count on stream_get_contents to
- // return if STDIN is reading from the keyboard. We will therefore
- // check to see if there are already characters waiting on the
- // stream (as there always should be, if this is a backend call),
- // and if there are not, then we will exit.
- // This code prevents drush from hanging forever when called with
- // --backend from the commandline; however, overall it is still
- // a futile effort, as it does not seem that backend invoke can
- // successfully write data to that this function can read,
- // so the argument list and command always come out empty. :(
- // Perhaps stream_get_contents is the problem, and we should use
- // the technique described here:
- // http://bugs.php.net/bug.php?id=30154
- // n.b. the code in that issue passes '0' for the timeout in stream_select
- // in a loop, which is not recommended.
- // Note that the following DOES work:
- // drush ev 'print(json_encode(array("test" => "XYZZY")));' | drush status --backend
- // So, redirecting input is okay, it is just the proc_open that is a problem.
- if (drush_is_windows()) {
- // Note that stream_select uses reference parameters, so we need variables (can't pass a constant NULL)
- $read = [$fp];
- $write = NULL;
- $except = NULL;
- // Question: might we need to wait a bit for STDIN to be ready,
- // even if the process that called us immediately writes our parameters?
- // Passing '100' for the timeout here causes us to hang indefinitely
- // when called from the shell.
- $changed_streams = stream_select($read, $write, $except, 0);
- // Return on error (FALSE) or no changed streams (0).
- // Oh, according to http://php.net/manual/en/function.stream-select.php,
- // stream_select will return FALSE for streams returned by proc_open.
- // That is not applicable to us, is it? Our stream is connected to a stream
- // created by proc_open, but is not a stream returned by proc_open.
- if ($changed_streams < 1) {
- return FALSE;
- }
- }
- stream_set_blocking($fp, FALSE);
- $string = stream_get_contents($fp);
- fclose($fp);
- if (trim($string)) {
- return json_decode($string, TRUE);
- }
- return FALSE;
-}
diff --git a/vendor/drush/drush/includes/batch.inc b/vendor/drush/drush/includes/batch.inc
deleted file mode 100644
index 77be5f338..000000000
--- a/vendor/drush/drush/includes/batch.inc
+++ /dev/null
@@ -1,371 +0,0 @@
-id();
- return _drush_backend_batch_process($command, $args, $options);
-}
-
-/**
- * Process sets from the specified batch.
- *
- * This function is called by the worker process that is spawned by the
- * drush_backend_batch_process function.
- *
- * The command called needs to call this function after it's special bootstrap
- * requirements have been taken care of.
- *
- * @param int $id
- * The batch ID of the batch being processed.
- */
-function drush_batch_command($id) {
- include_once(DRUSH_DRUPAL_CORE . '/includes/batch.inc');
- return _drush_batch_command($id);
-}
-
-/**
- * Main loop for the Drush batch API.
- *
- * Saves a record of the batch into the database, and progressively call $command to
- * process the operations.
- *
- * @param command
- * The command to call to process the batch.
- *
- */
-function _drush_backend_batch_process($command = 'batch-process', $args, $options) {
- $result = NULL;
-
- $batch =& batch_get();
-
- if (isset($batch)) {
- $process_info = [
- 'current_set' => 0,
- ];
- $batch += $process_info;
-
- // The batch is now completely built. Allow other modules to make changes
- // to the batch so that it is easier to reuse batch processes in other
- // enviroments.
- \Drupal::moduleHandler()->alter('batch', $batch);
-
- // Assign an arbitrary id: don't rely on a serial column in the 'batch'
- // table, since non-progressive batches skip database storage completely.
- $batch['id'] = db_next_id();
- $args[] = $batch['id'];
-
- $batch['progressive'] = TRUE;
-
- // Move operations to a job queue. Non-progressive batches will use a
- // memory-based queue.
- foreach ($batch['sets'] as $key => $batch_set) {
- _batch_populate_queue($batch, $key);
- }
-
- // Store the batch.
- /** @var \Drupal\Core\Batch\BatchStorage $batch_storage */
- $batch_storage = \Drupal::service('batch.storage');
- $batch_storage->create($batch);
- $finished = FALSE;
-
- while (!$finished) {
- $result = drush_invoke_process('@self', $command, $args);
- $finished = drush_get_error() || !$result || (isset($result['context']['drush_batch_process_finished']) && $result['context']['drush_batch_process_finished'] == TRUE);
- }
- }
-
- return $result;
-}
-
-
-/**
- * Initialize the batch command and call the worker function.
- *
- * Loads the batch record from the database and sets up the requirements
- * for the worker, such as registering the shutdown function.
- *
- * @param id
- * The batch id of the batch being processed.
- */
-function _drush_batch_command($id) {
- $batch =& batch_get();
-
- $data = db_query("SELECT batch FROM {batch} WHERE bid = :bid", [
- ':bid' => $id
- ])->fetchField();
-
- if ($data) {
- $batch = unserialize($data);
- }
- else {
- return FALSE;
- }
-
- if (!isset($batch['running'])) {
- $batch['running'] = TRUE;
- }
-
- // Register database update for end of processing.
- register_shutdown_function('_drush_batch_shutdown');
-
- if (_drush_batch_worker()) {
- return _drush_batch_finished();
- }
-}
-
-
-/**
- * Process batch operations
- *
- * Using the current $batch process each of the operations until the batch
- * has been completed or half of the available memory for the process has been
- * reached.
- */
-function _drush_batch_worker() {
- $batch =& batch_get();
- $current_set =& _batch_current_set();
- $set_changed = TRUE;
-
- if (empty($current_set['start'])) {
- $current_set['start'] = microtime(TRUE);
- }
- $queue = _batch_queue($current_set);
- while (!$current_set['success']) {
- // If this is the first time we iterate this batch set in the current
- // request, we check if it requires an additional file for functions
- // definitions.
- if ($set_changed && isset($current_set['file']) && is_file($current_set['file'])) {
- include_once DRUPAL_ROOT . '/' . $current_set['file'];
- }
-
- $task_message = '';
- // Assume a single pass operation and set the completion level to 1 by
- // default.
- $finished = 1;
-
- if ($item = $queue->claimItem()) {
- list($function, $args) = $item->data;
-
- // Build the 'context' array and execute the function call.
- $batch_context = [
- 'sandbox' => &$current_set['sandbox'],
- 'results' => &$current_set['results'],
- 'finished' => &$finished,
- 'message' => &$task_message,
- ];
- // Magic wrap to catch changes to 'message' key.
- $batch_context = new DrushBatchContext($batch_context);
-
- // Tolerate recoverable errors.
- // See https://github.com/drush-ops/drush/issues/1930
- $halt_on_error = \Drush\Drush::config()->get('runtime.php.halt-on-error', TRUE);
- \Drush\Drush::config()->set('runtime.php.halt-on-error', FALSE);
- $message = call_user_func_array($function, array_merge($args, [&$batch_context]));
- if (!empty($message)) {
- drush_print(strip_tags($message), 2);
- }
- \Drush\Drush::config()->set('runtime.php.halt-on-error', $halt_on_error);
-
- $finished = $batch_context['finished'];
- if ($finished >= 1) {
- // Make sure this step is not counted twice when computing $current.
- $finished = 0;
- // Remove the processed operation and clear the sandbox.
- $queue->deleteItem($item);
- $current_set['count']--;
- $current_set['sandbox'] = [];
- }
- }
-
- // When all operations in the current batch set are completed, browse
- // through the remaining sets, marking them 'successfully processed'
- // along the way, until we find a set that contains operations.
- // _batch_next_set() executes form submit handlers stored in 'control'
- // sets (see form_execute_handlers()), which can in turn add new sets to
- // the batch.
- $set_changed = FALSE;
- $old_set = $current_set;
- while (empty($current_set['count']) && ($current_set['success'] = TRUE) && _batch_next_set()) {
- $current_set = &_batch_current_set();
- $current_set['start'] = microtime(TRUE);
- $set_changed = TRUE;
- }
-
- // At this point, either $current_set contains operations that need to be
- // processed or all sets have been completed.
- $queue = _batch_queue($current_set);
-
- // If we are in progressive mode, break processing after 1 second.
- if (drush_memory_limit() > 0 && (memory_get_usage() * 2) >= drush_memory_limit()) {
- drush_log(dt("Batch process has consumed in excess of 50% of available memory. Starting new thread"), LogLevel::BATCH);
- // Record elapsed wall clock time.
- $current_set['elapsed'] = round((microtime(TRUE) - $current_set['start']) * 1000, 2);
- break;
- }
- }
-
- // Reporting 100% progress will cause the whole batch to be considered
- // processed. If processing was paused right after moving to a new set,
- // we have to use the info from the new (unprocessed) set.
- if ($set_changed && isset($current_set['queue'])) {
- // Processing will continue with a fresh batch set.
- $remaining = $current_set['count'];
- $total = $current_set['total'];
- $progress_message = $current_set['init_message'];
- $task_message = '';
- }
- else {
- // Processing will continue with the current batch set.
- $remaining = $old_set['count'];
- $total = $old_set['total'];
- $progress_message = $old_set['progress_message'];
- }
-
- $current = $total - $remaining + $finished;
- $percentage = _batch_api_percentage($total, $current);
- return ($percentage == 100);
-}
-
-/**
- * End the batch processing:
- * Call the 'finished' callbacks to allow custom handling of results,
- * and resolve page redirection.
- */
-function _drush_batch_finished() {
- $results = [];
-
- $batch = &batch_get();
-
- // Execute the 'finished' callbacks for each batch set, if defined.
- foreach ($batch['sets'] as $id => $batch_set) {
- if (isset($batch_set['finished'])) {
- // Check if the set requires an additional file for function definitions.
- if (isset($batch_set['file']) && is_file($batch_set['file'])) {
- include_once DRUPAL_ROOT . '/' . $batch_set['file'];
- }
- if (is_callable($batch_set['finished'])) {
- $queue = _batch_queue($batch_set);
- $operations = $queue->getAllItems();
- $elapsed = $batch_set['elapsed'] / 1000;
- $elapsed = drush_drupal_major_version() >=8 ? \Drupal::service('date.formatter')->formatInterval($elapsed) : format_interval($elapsed);
- call_user_func_array($batch_set['finished'], [$batch_set['success'], $batch_set['results'], $operations, $elapsed]);
- $results[$id] = $batch_set['results'];
- }
- }
- }
-
- // Clean up the batch table and unset the static $batch variable.
- if (drush_drupal_major_version() >= 8) {
- /** @var \Drupal\Core\Batch\BatchStorage $batch_storage */
- $batch_storage = \Drupal::service('batch.storage');
- $batch_storage->delete($batch['id']);
- }
- else {
- db_delete('batch')
- ->condition('bid', $batch['id'])
- ->execute();
- }
-
- foreach ($batch['sets'] as $batch_set) {
- if ($queue = _batch_queue($batch_set)) {
- $queue->deleteQueue();
- }
- }
- $_batch = $batch;
- $batch = NULL;
- drush_set_option('drush_batch_process_finished', TRUE);
-
- return $results;
-}
-
-/**
- * Shutdown function: store the batch data for next request,
- * or clear the table if the batch is finished.
- */
-function _drush_batch_shutdown() {
- if ($batch = batch_get()) {
- if (drush_drupal_major_version() >= 8) {
- /** @var \Drupal\Core\Batch\BatchStorage $batch_storage */
- $batch_storage = \Drupal::service('batch.storage');
- $batch_storage->update($batch);
- }
- else {
- db_update('batch')
- ->fields(['batch' => serialize($batch)])
- ->condition('bid', $batch['id'])
- ->execute();
- }
- }
-}
diff --git a/vendor/drush/drush/includes/bootstrap.inc b/vendor/drush/drush/includes/bootstrap.inc
deleted file mode 100644
index 55277ae25..000000000
--- a/vendor/drush/drush/includes/bootstrap.inc
+++ /dev/null
@@ -1,117 +0,0 @@
-get($cid);
- $mess = $ret ? "HIT" : "MISS";
- drush_log(dt("Cache !mess cid: !cid", ['!mess' => $mess, '!cid' => $cid]), LogLevel::DEBUG);
- return $ret;
-}
-
-/**
- * Return data from the persistent cache when given an array of cache IDs.
- *
- * @param array $cids
- * An array of cache IDs for the data to retrieve. This is passed by
- * reference, and will have the IDs successfully returned from cache removed.
- * @param string $bin
- * The cache bin where the data is stored.
- *
- * @return
- * An array of the items successfully returned from cache indexed by cid.
- */
-function drush_cache_get_multiple(array &$cids, $bin = 'default') {
- return _drush_cache_get_object($bin)->getMultiple($cids);
-}
-
-/**
- * Store data in the persistent cache.
- *
- * @param string $cid
- * The cache ID of the data to store.
- *
- * @param $data
- * The data to store in the cache.
- * @param string $bin
- * The cache bin to store the data in.
- * @param $expire
- * One of the following values:
- * - DRUSH_CACHE_PERMANENT: Indicates that the item should never be removed
- * unless explicitly told to using drush_cache_clear_all() with a cache ID.
- * - DRUSH_CACHE_TEMPORARY: Indicates that the item should be removed at
- * the next general cache wipe.
- * - A Unix timestamp: Indicates that the item should be kept at least until
- * the given time, after which it behaves like DRUSH_CACHE_TEMPORARY.
- *
- * @return bool
- */
-function drush_cache_set($cid, $data, $bin = 'default', $expire = DRUSH_CACHE_PERMANENT) {
- $ret = _drush_cache_get_object($bin)->set($cid, $data, $expire);
- if ($ret) drush_log(dt("Cache SET cid: !cid", ['!cid' => $cid]), LogLevel::DEBUG);
- return $ret;
-}
-
-/**
- * Expire data from the cache.
- *
- * If called without arguments, expirable entries will be cleared from all known
- * cache bins.
- *
- * @param string $cid
- * If set, the cache ID to delete. Otherwise, all cache entries that can
- * expire are deleted.
- * @param string $bin
- * If set, the bin $bin to delete from. Mandatory
- * argument if $cid is set.
- * @param bool $wildcard
- * If $wildcard is TRUE, cache IDs starting with $cid are deleted in
- * addition to the exact cache ID specified by $cid. If $wildcard is
- * TRUE and $cid is '*' then the entire bin $bin is emptied.
- */
-function drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE) {
- if (!isset($cid) && !isset($bin)) {
- foreach (drush_cache_get_bins() as $bin) {
- _drush_cache_get_object($bin)->clear();
- }
- return;
- }
- return _drush_cache_get_object($bin)->clear($cid, $wildcard);
-}
-
-/**
- * Check if a cache bin is empty.
- *
- * A cache bin is considered empty if it does not contain any valid data for any
- * cache ID.
- *
- * @param $bin
- * The cache bin to check.
- *
- * @return
- * TRUE if the cache bin specified is empty.
- */
-function _drush_cache_is_empty($bin) {
- return _drush_cache_get_object($bin)->isEmpty();
-}
-
-/**
- * Return drush cache bins and any bins added by hook_drush_flush_caches().
- */
-function drush_cache_get_bins() {
- $drush = ['default'];
- return $drush;
- // return array_merge(drush_command_invoke_all('drush_flush_caches'), $drush);
-}
-
-/**
- * Create a cache id from a given prefix, contexts, and additional parameters.
- *
- * @param prefix
- * A human readable cid prefix that will not be hashed.
- * @param contexts
- * Array of drush contexts that will be used to build a unique hash.
- * @param params
- * Array of any addition parameters to be hashed.
- *
- * @return
- * A cache id string.
- */
-function drush_get_cid($prefix, $contexts = [], $params = []) {
- $cid = [];
-
- foreach ($contexts as $context) {
- $c = drush_get_context($context);
- if (!empty($c)) {
- $cid[] = is_scalar($c) ? $c : serialize($c);
- }
- }
-
- foreach ($params as $param) {
- $cid[] = $param;
- }
-
- return Drush::getVersion() . '-' . $prefix . '-' . md5(implode("", $cid));
-}
diff --git a/vendor/drush/drush/includes/command.inc b/vendor/drush/drush/includes/command.inc
deleted file mode 100644
index 910e2e6a0..000000000
--- a/vendor/drush/drush/includes/command.inc
+++ /dev/null
@@ -1,100 +0,0 @@
-legacyRecord();
- }
-
- $invocations[] = [
- 'site' => $site_alias_record,
- 'command' => $command_name,
- 'args' => $commandline_args
- ];
- $invoke_multiple = drush_get_option_override($backend_options, 'invoke-multiple', 0);
- if ($invoke_multiple) {
- $invocations = array_fill(0, $invoke_multiple, $invocations[0]);
- }
-
- return drush_backend_invoke_concurrent($invocations, $commandline_options, $backend_options);
-}
-
-/**
- * Substrings to ignore during commandfile and site alias searching.
- * TODO: Do we do any searching in the new code that should be filtered like this?
- */
-function drush_filename_blacklist() {
- $blacklist = ['.', '..', 'drush_make', 'examples', 'tests', 'disabled', 'gitcache', 'cache'];
- for ($v=4; $v<=(DRUSH_MAJOR_VERSION)+3; ++$v) {
- if ($v != DRUSH_MAJOR_VERSION) {
- $blacklist[] = 'drush' . $v;
- }
- }
- $blacklist = array_merge($blacklist, drush_get_option_list('exclude'));
- return $blacklist;
-}
diff --git a/vendor/drush/drush/includes/context.inc b/vendor/drush/drush/includes/context.inc
deleted file mode 100644
index 7c320713c..000000000
--- a/vendor/drush/drush/includes/context.inc
+++ /dev/null
@@ -1,531 +0,0 @@
- $info) {
- if (is_array($info)) {
- // For any option with a short form, check to see if the short form was set in the
- // options. If it was, then rename it to its long form.
- if (array_key_exists('short-form', $info) && array_key_exists($info['short-form'], $options)) {
- if (!array_key_exists($name, $options) || !array_key_exists('merge-pathlist', $info)) {
- $options[$name] = $options[$info['short-form']];
- }
- else {
- $options[$name] = array_merge((array)$options[$name], (array)$options[$info['short-form']]);
- }
- unset($options[$info['short-form']]);
- }
- }
- }
-}
-
-/**
- * There are certain options such as 'site-aliases' and 'command-specific'
- * that must be merged together if defined in multiple drush configuration
- * files. If we did not do this merge, then the last configuration file
- * that defined any of these properties would overwrite all of the options
- * that came before in previously-loaded configuration files. We place
- * all of them into their own context so that this does not happen.
- */
-function drush_set_config_special_contexts(&$options) {
- if (isset($options) && is_array($options)) {
- $has_command_specific = array_key_exists('command-specific', $options);
- // Change the keys of the site aliases from 'alias' to '@alias'
- if (array_key_exists('site-aliases', $options)) {
- $user_aliases = $options['site-aliases'];
- $options['site-aliases'] = [];
- foreach ($user_aliases as $alias_name => $alias_value) {
- if (substr($alias_name,0,1) != '@') {
- $alias_name = "@$alias_name";
- }
- $options['site-aliases'][$alias_name] = $alias_value;
- }
- }
- // Expand -s into --simulate, etc.
- drush_expand_short_form_options($options);
-
- foreach (drush_get_global_options() as $name => $info) {
- if (is_array($info)) {
- // For any global option with the 'merge-pathlist' or 'merge-associative' flag, set its
- // value in the specified context. The option is 'merged' because we
- // load $options with the value from the context prior to including the
- // configuration file. If the configuration file sets $option['special'][] = 'value',
- // then the configuration will be merged. $option['special'] = array(...), on the
- // other hand, will replace rather than merge the values together.
- if ((array_key_exists($name, $options)) && (array_key_exists('merge', $info) || (array_key_exists('merge-pathlist', $info) || array_key_exists('merge-associative', $info)))) {
- $context = array_key_exists('context', $info) ? $info['context'] : $name;
- $cache =& drush_get_context($context);
- $value = $options[$name];
- if (!is_array($value) && array_key_exists('merge-pathlist', $info)) {
- $value = explode(PATH_SEPARATOR, $value);
- }
- if (array_key_exists('merge-associative', $info)) {
- foreach ($value as $subkey => $subvalue) {
- $cache[$subkey] = array_merge(isset($cache[$subkey]) ? $cache[$subkey] : [], $subvalue);
- }
- }
- else {
- $cache = array_unique(array_merge($cache, $value));
- }
- // Once we have moved the option to its special context, we
- // can remove it from its option context -- unless 'propagate-cli-value'
- // is set, in which case we need to let it stick around in options
- // in case it is needed in backend invoke.
- if (!array_key_exists('propagate-cli-value', $info)) {
- unset($options[$name]);
- }
- }
- }
- }
-
- // If command-specific options were set and if we already have
- // a command, then apply the command-specific options immediately.
- if ($has_command_specific) {
- drush_command_default_options();
- }
- }
-}
-
-/**
- * Set a specific context.
- *
- * @param context
- * Any of the default defined contexts.
- * @param value
- * The value to store in the context
- *
- * @return
- * An associative array of the settings specified in the request context.
- */
-function drush_set_context($context, $value) {
- $cache =& drush_get_context($context);
- $cache = $value;
- return $value;
-}
-
-
-/**
- * Return a specific context, or the whole context cache
- *
- * This function provides a storage mechanism for any information
- * the currently running process might need to communicate.
- *
- * This avoids the use of globals, and constants.
- *
- * Functions that operate on the context cache, can retrieve a reference
- * to the context cache using :
- * $cache = &drush_get_context($context);
- *
- * This is a private function, because it is meant as an internal
- * generalized API for writing static cache functions, not as a general
- * purpose function to be used inside commands.
- *
- * Code that modifies the reference directly might have unexpected consequences,
- * such as modifying the arguments after they have already been parsed and dispatched
- * to the callbacks.
- *
- * @param context
- * Optional. Any of the default defined contexts.
- *
- * @return
- * If context is not supplied, the entire context cache will be returned.
- * Otherwise only the requested context will be returned.
- * If the context does not exist yet, it will be initialized to an empty array.
- */
-function &drush_get_context($context = NULL, $default = NULL) {
- static $cache = [];
- if (isset($context)) {
- if (!isset($cache[$context])) {
- $default = !isset($default) ? [] : $default;
- $cache[$context] = $default;
- }
- return $cache[$context];
- }
- return $cache;
-}
-
-/**
- * Set the arguments passed to the drush.php script.
- *
- * This function will set the 'arguments' context of the current running script.
- *
- * When initially called by drush_parse_args, the entire list of arguments will
- * be populated. Once the command is dispatched, this will be set to only the remaining
- * arguments to the command (i.e. the command name is removed).
- *
- * @param arguments
- * Command line arguments, as an array.
- */
-function drush_set_arguments($arguments) {
- drush_set_context('arguments', $arguments);
-}
-
-/**
- * Gets the command line arguments passed to Drush.
- *
- * @return array
- * An indexed array of arguments. Until Drush has dispatched the command, the
- * array will include the command name as the first element. After that point
- * the array will not include the command name.
- *
- * @see drush_set_arguments()
- */
-function drush_get_arguments() {
- return drush_get_context('arguments');
-}
-
-/**
- * Set the command being executed.
- *
- * Drush_dispatch will set the correct command based on it's
- * matching of the script arguments retrieved from drush_get_arguments
- * to the implemented commands specified by drush_get_commands.
- *
- * @param
- * A numerically indexed array of command components.
- */
-function drush_set_command($command) {
- drush_set_context('command', $command);
-}
-
-/**
- * Return the command being executed.
- */
-function drush_get_command() {
- return drush_get_context('command');
-}
-
-/**
- * Get the value for an option.
- *
- * If the first argument is an array, then it checks whether one of the options
- * exists and return the value of the first one found. Useful for allowing both
- * -h and --host-name
- *
- * @param option
- * The name of the option to get
- * @param default
- * Optional. The value to return if the option has not been set
- * @param context
- * Optional. The context to check for the option. If this is set, only this context will be searched.
- */
-function drush_get_option($option, $default = NULL, $context = NULL) {
- // Uncomment when fumigating.
-// $backtrace = debug_backtrace()[1];
-// if (!strpos($backtrace['file'], 'engines') && !strpos($backtrace['file'], 'preflight') && !strpos($backtrace['file'], 'backend')) {
-// drush_log('drush_get_option() has been deprecated and is unreliable. Called by '. $backtrace['function']. ' in '. $backtrace['file']. ':'. $backtrace['line'], LogLevel::WARNING);
-// }
-
- $value = NULL;
-
- if ($context) {
- // We have a definite context to check for the presence of an option.
- $value = _drush_get_option($option, drush_get_context($context));
- }
- else {
- // We are not checking a specific context, so check them in a predefined order of precedence.
- $contexts = drush_context_names();
-
- foreach ($contexts as $context) {
- $value = _drush_get_option($option, drush_get_context($context));
-
- if ($value !== NULL) {
- return $value;
- }
- }
- }
-
- if ($value !== NULL) {
- return $value;
- }
-
- return $default;
-}
-
-/**
- * Get the value for an option and return it as a list. If the
- * option in question is passed on the command line, its value should
- * be a comma-separated list (e.g. --flag=1,2,3). If the option
- * was set in a drushrc.php file, then its value may be either a
- * comma-separated list or an array of values (e.g. $option['flag'] = array('1', '2', '3')).
- *
- * @param option
- * The name of the option to get
- * @param default
- * Optional. The value to return if the option has not been set
- * @param context
- * Optional. The context to check for the option. If this is set, only this context will be searched.
- */
-function drush_get_option_list($option, $default = [], $context = NULL) {
- $result = drush_get_option($option, $default, $context);
-
- if (!is_array($result)) {
- $result = array_map('trim', array_filter(explode(',', $result)));
- }
-
- return $result;
-}
-
-/**
- * Get the value for an option, but first checks the provided option overrides.
- *
- * The feature of drush_get_option that allows a list of option names
- * to be passed in an array is NOT supported.
- *
- * @param option_overrides
- * An array to check for values before calling drush_get_option.
- * @param option
- * The name of the option to get.
- * @param default
- * Optional. The value to return if the option has not been set.
- * @param context
- * Optional. The context to check for the option. If this is set, only this context will be searched.
- *
- */
-function drush_get_option_override($option_overrides, $option, $default = NULL, $context = NULL) {
- return drush_sitealias_get_option($option_overrides, $option, $default, '', $context);
-}
-
-/**
- * Get an option out of the specified alias. If it has not been
- * set in the alias, then get it via drush_get_option.
- *
- * @param site_alias_record
- * An array of options for an alias record.
- * @param option
- * The name of the option to get.
- * @param default
- * Optional. The value to return if the option does not exist in the site record and has not been set in a context.
- * @param context
- * Optional. The context to check for the option. If this is set, only this context will be searched.
- */
-function drush_sitealias_get_option($site_alias_record, $option, $default = NULL, $prefix = '', $context = NULL) {
- if (is_array($site_alias_record) && array_key_exists($option, $site_alias_record)) {
- return $site_alias_record[$option];
- }
- else {
- return drush_get_option($prefix . $option, $default, $context);
- }
-}
-
-/**
- * Get all of the values for an option in every context.
- *
- * @param option
- * The name of the option to get
- * @return
- * An array whose key is the context name and value is
- * the specific value for the option in that context.
- */
-function drush_get_context_options($option, $flatten = FALSE) {
- $result = [];
-
- $contexts = drush_context_names();
- foreach ($contexts as $context) {
- $value = _drush_get_option($option, drush_get_context($context));
-
- if ($value !== NULL) {
- if ($flatten && is_array($value)) {
- $result = array_merge($value, $result);
- }
- else {
- $result[$context] = $value;
- }
- }
- }
-
- return $result;
-}
-
-/**
- * Retrieves a collapsed list of all options.
- */
-function drush_get_merged_options() {
- $contexts = drush_context_names();
- $cache = drush_get_context();
- $result = [];
- foreach (array_reverse($contexts) as $context) {
- if (array_key_exists($context, $cache)) {
- $result = array_merge($result, $cache[$context]);
- }
- }
-
- return $result;
-}
-
-/**
- * Helper function to recurse through possible option names
- */
-function _drush_get_option($option, $context) {
- if (is_array($option)) {
- foreach ($option as $current) {
- $current_value = _drush_get_option($current, $context);
- if (isset($current_value)) {
- return $current_value;
- }
- }
- }
- elseif (array_key_exists('no-' . $option, $context)) {
- return FALSE;
- }
- elseif (array_key_exists($option, $context)) {
- return $context[$option];
- }
-
- return NULL;
-}
-
-/**
- * Set an option in one of the option contexts.
- *
- * @param option
- * The option to set.
- * @param value
- * The value to set it to.
- * @param context
- * Optional. Which context to set it in.
- * @return
- * The value parameter. This allows for neater code such as
- * $myvalue = drush_set_option('http_host', $_SERVER['HTTP_HOST']);
- * Without having to constantly type out the value parameter.
- */
-function drush_set_option($option, $value, $context = 'process') {
- $cache =& drush_get_context($context);
- $cache[$option] = $value;
- return $value;
-}
-
-/**
- * A small helper function to set the value in the default context
- */
-function drush_set_default($option, $value) {
- return drush_set_option($option, $value, 'default');
-}
-
-/**
- * Remove a setting from a specific context.
- *
- * @param
- * Option to be unset
- * @param
- * Context in which to unset the value in.
- */
-function drush_unset_option($option, $context = NULL) {
- if ($context != NULL) {
- $cache =& drush_get_context($context);
- if (array_key_exists($option, $cache)) {
- unset($cache[$option]);
- }
- }
- else {
- $contexts = drush_context_names();
-
- foreach ($contexts as $context) {
- drush_unset_option($option, $context);
- }
- }
-}
\ No newline at end of file
diff --git a/vendor/drush/drush/includes/drupal.inc b/vendor/drush/drush/includes/drupal.inc
deleted file mode 100644
index a45d4acc8..000000000
--- a/vendor/drush/drush/includes/drupal.inc
+++ /dev/null
@@ -1,49 +0,0 @@
-bootstrapObjectForRoot($drupal_root);
- if ($bootstrap) {
- $version = $bootstrap->getVersion($drupal_root);
- }
- }
- }
- return $version;
-}
-
-function drush_drupal_cache_clear_all() {
- drush_invoke_process('@self', 'cache-rebuild');
-}
-
-/**
- * Returns the Drupal major version number (6, 7, 8 ...)
- */
-function drush_drupal_major_version($drupal_root = NULL) {
- $major_version = FALSE;
- if ($version = drush_drupal_version($drupal_root)) {
- $version_parts = explode('.', $version);
- if (is_numeric($version_parts[0])) {
- $major_version = (integer)$version_parts[0];
- }
- }
- return $major_version;
-}
diff --git a/vendor/drush/drush/includes/drush.inc b/vendor/drush/drush/includes/drush.inc
deleted file mode 100644
index acebd95e9..000000000
--- a/vendor/drush/drush/includes/drush.inc
+++ /dev/null
@@ -1,740 +0,0 @@
- 'r', 'short-has-arg' => TRUE, 'never-post' => TRUE, 'description' => "Drupal root directory to use.", 'example-value' => 'path'];
- $options['uri'] = ['short-form' => 'l', 'short-has-arg' => TRUE, 'never-post' => TRUE, 'description' => 'URI of the drupal site to use.', 'example-value' => 'http://example.com:8888'];
- $options['verbose'] = ['short-form' => 'v', 'context' => 'DRUSH_VERBOSE', 'description' => 'Display extra information about the command.', 'symfony-conflict' => TRUE];
- $options['debug'] = ['short-form' => 'd', 'context' => 'DRUSH_DEBUG', 'description' => 'Display even more information.'];
- $options['yes'] = ['short-form' => 'y', 'context' => 'DRUSH_AFFIRMATIVE', 'description' => "Assume 'yes' as answer to all prompts."];
- $options['no'] = ['short-form' => 'n', 'context' => 'DRUSH_NEGATIVE', 'description' => "Assume 'no' as answer to all prompts."];
- $options['help'] = ['short-form' => 'h', 'description' => "This help system."];
-
- if (!$brief) {
- $options['simulate'] = ['short-form' => 's', 'context' => 'DRUSH_SIMULATE', 'never-propagate' => TRUE, 'description' => "Simulate all relevant actions (don't actually change the system).", 'symfony-conflict' => TRUE];
- $options['pipe'] = ['short-form' => 'p', 'hidden' => TRUE, 'description' => "Emit a compact representation of the command for scripting."];
- $options['php'] = ['description' => "The absolute path to your PHP interpreter, if not 'php' in the path.", 'example-value' => '/path/to/file', 'never-propagate' => TRUE];
- $options['interactive'] = ['short-form' => 'ia', 'description' => "Force interactive mode for commands run on multiple targets (e.g. `drush @site1,@site2 cc --ia`).", 'never-propagate' => TRUE];
- $options['tty'] = ['hidden' => TRUE, 'description' => "Force allocation of tty for remote commands", 'never-propagate' => TRUE];
- $options['quiet'] = ['short-form' => 'q', 'description' => 'Suppress non-error messages.'];
- $options['include'] = ['short-form' => 'i', 'short-has-arg' => TRUE, 'context' => 'DRUSH_INCLUDE', 'never-post' => TRUE, 'propagate-cli-value' => TRUE, 'merge-pathlist' => TRUE, 'description' => "A list of additional directory paths to search for Drush commands. Commandfiles should be placed in a subfolder called 'Commands'.", 'example-value' => '/path/dir'];
- $options['exclude'] = ['propagate-cli-value' => TRUE, 'never-post' => TRUE, 'merge-pathlist' => TRUE, 'description' => "A list of files and directory paths to exclude from consideration when searching for drush commandfiles.", 'example-value' => '/path/dir'];
- $options['config'] = ['short-form' => 'c', 'short-has-arg' => TRUE, 'context' => 'DRUSH_CONFIG', 'never-post' => TRUE, 'propagate-cli-value' => TRUE, 'merge-pathlist' => TRUE, 'description' => "Specify an additional config file to load. See example.drush.yml", 'example-value' => '/path/file'];
- $options['backend'] = ['short-form' => 'b', 'never-propagate' => TRUE, 'description' => "Hide all output and return structured data."];
- $options['choice'] = ['description' => "Provide an answer to a multiple-choice prompt.", 'example-value' => 'number'];
- $options['search-depth'] = ['description' => "Control the depth that drush will search for alias files.", 'example-value' => 'number'];
- $options['ignored-modules'] = ['description' => "Exclude some modules from consideration when searching for drush command files.", 'example-value' => 'token,views'];
- $options['no-label'] = ['description' => "Remove the site label that drush includes in multi-site command output (e.g. `drush @site1,@site2 status`)."];
- $options['label-separator'] = ['description' => "Specify the separator to use in multi-site command output (e.g. `drush @sites pm-list --label-separator=',' --format=csv`).", 'example-value' => ','];
- $options['show-invoke'] = ['description' => "Show all function names which could have been called for the current command. See drush_invoke()."];
- $options['cache-default-class'] = ['description' => "A cache backend class that implements CacheInterface. Defaults to JSONCache.", 'example-value' => 'JSONCache'];
- $options['cache-class-'] = ['description' => "A cache backend class that implements CacheInterface to use for a specific cache bin.", 'example-value' => 'className'];
- $options['early'] = ['description' => "Include a file (with relative or full path) and call the drush_early_hook() function (where 'hook' is the filename)"];
- $options['alias-path'] = ['context' => 'ALIAS_PATH', 'local-context-only' => TRUE, 'merge-pathlist' => TRUE, 'propagate-cli-value' => TRUE, 'description' => "Specifies the list of paths where drush will search for alias files.", 'example-value' => '/path/alias1:/path/alias2'];
- $options['confirm-rollback'] = ['description' => 'Wait for confirmation before doing a rollback when something goes wrong.'];
- $options['php-options'] = ['hidden' => TRUE, 'description' => "Options to pass to `php` when running drush. Only effective when specified in a site alias definition.", 'never-propagate' => TRUE, 'example-value' => '-d error_reporting="E_ALL"'];
- $options['halt-on-error'] = ['propagate-cli-value' => TRUE, 'description' => "Manage recoverable errors. Values: 1=Execution halted. 0=Execution continues."];
- $options['remote-host'] = ['hidden' => TRUE, 'description' => 'Remote site to execute drush command on. Managed by site alias.', 'example-value' => 'http://example.com'];
- $options['remote-user'] = ['hidden' => TRUE, 'description' => 'User account to use with a remote drush command. Managed by site alias.', 'example-value' => 'www-data'];
- $options['remote-os'] = ['hidden' => TRUE, 'description' => 'The operating system used on the remote host. Managed by site alias.', 'example-value' => 'linux'];
- $options['site-list'] = ['hidden' => TRUE, 'description' => 'List of sites to run commands on. Managed by site alias.', 'example-value' => '@site1,@site2'];
- $options['reserve-margin'] = ['hidden' => TRUE, 'description' => 'Remove columns from formatted opions. Managed by multi-site command handling.', 'example-value' => 'number'];
- $options['strict'] = ['propagate' => TRUE, 'description' => 'Return an error on unrecognized options. --strict=0: Allow unrecognized options.'];
- $options['command-specific'] = ['hidden' => TRUE, 'merge-associative' => TRUE, 'description' => 'Command-specific options.'];
- $options['site-aliases'] = ['hidden' => TRUE, 'merge-associative' => TRUE, 'description' => 'List of site aliases.'];
- $options['shell-aliases'] = ['hidden' => TRUE, 'merge' => TRUE, 'never-propagate' => TRUE, 'description' => 'List of shell aliases.'];
- $options['path-aliases'] = ['hidden' => TRUE, 'never-propagate' => TRUE, 'description' => 'Path aliases from site alias.'];
- $options['ssh-options'] = ['never-propagate' => TRUE, 'description' => 'A string of extra options that will be passed to the ssh command', 'example-value' => '-p 100'];
- $options['drush-coverage'] = ['hidden' => TRUE, 'never-post' => TRUE, 'propagate-cli-value' => TRUE, 'description' => 'File to save code coverage data into.'];
- $options['local'] = ['propagate' => TRUE, 'description' => 'Don\'t look in global locations for commandfiles, config, and site aliases'];
- }
- return $options;
-}
-
-/**
- * Calls a given function, passing through all arguments unchanged.
- *
- * This should be used when calling possibly mutative or destructive functions
- * (e.g. unlink() and other file system functions) so that can be suppressed
- * if the simulation mode is enabled.
- *
- * Important: Call @see drush_op_system() to execute a shell command,
- * or @see drush_shell_exec() to execute a shell command and capture the
- * shell output.
- *
- * @param $callable
- * The name of the function. Any additional arguments are passed along.
- * @return
- * The return value of the function, or TRUE if simulation mode is enabled.
- *
- */
-function drush_op($callable) {
- $args_printed = [];
- $args = func_get_args();
- array_shift($args); // Skip function name
- foreach ($args as $arg) {
- $args_printed[] = is_scalar($arg) ? $arg : (is_array($arg) ? 'Array' : 'Object');
- }
-
- if (!is_array($callable)) {
- $callable_string = $callable;
- }
- else {
- if (is_object($callable[0])) {
- $callable_string = get_class($callable[0]) . '::' . $callable[1];
- }
- else {
- $callable_string = implode('::', $callable);
- }
- }
-
- // Special checking for drush_op('system')
- if ($callable == 'system') {
- drush_log(dt("Do not call drush_op('system'); use drush_op_system instead"), LogLevel::DEBUG);
- }
-
- if (\Drush\Drush::verbose() || \Drush\Drush::simulate()) {
- drush_log(sprintf("Calling %s(%s)", $callable_string, implode(", ", $args_printed)), LogLevel::DEBUG);
- }
-
- if (\Drush\Drush::simulate()) {
- return TRUE;
- }
-
- return drush_call_user_func_array($callable, $args);
-}
-
-/**
- * Mimic cufa but still call function directly. See http://drupal.org/node/329012#comment-1260752
- */
-function drush_call_user_func_array($function, $args = []) {
- if (is_array($function)) {
- // $callable is a method so always use CUFA.
- return call_user_func_array($function, $args);
- }
-
- switch (count($args)) {
- case 0: return $function(); break;
- case 1: return $function($args[0]); break;
- case 2: return $function($args[0], $args[1]); break;
- case 3: return $function($args[0], $args[1], $args[2]); break;
- case 4: return $function($args[0], $args[1], $args[2], $args[3]); break;
- case 5: return $function($args[0], $args[1], $args[2], $args[3], $args[4]); break;
- case 6: return $function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break;
- case 7: return $function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6]); break;
- case 8: return $function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7]); break;
- case 9: return $function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8]); break;
- default: return call_user_func_array($function,$args);
- }
-}
-
-/**
- * Determines the MIME content type of the specified file.
- *
- * The power of this function depends on whether the PHP installation
- * has either mime_content_type() or finfo installed -- if not, only tar,
- * gz, zip and bzip2 types can be detected.
- *
- * If mime type can't be obtained, an error will be set.
- *
- * @return mixed
- * The MIME content type of the file or FALSE.
- */
-function drush_mime_content_type($filename) {
- $content_type = drush_attempt_mime_content_type($filename);
- if ($content_type) {
- drush_log(dt('Mime type for !file is !mt', ['!file' => $filename, '!mt' => $content_type]), LogLevel::INFO);
- return $content_type;
- }
- return drush_set_error('MIME_CONTENT_TYPE_UNKNOWN', dt('Unable to determine mime type for !file.', ['!file' => $filename]));
-}
-
-/**
- * Works like drush_mime_content_type, but does not set an error
- * if the type is unknown.
- */
-function drush_attempt_mime_content_type($filename) {
- $content_type = FALSE;
- if (class_exists('finfo')) {
- $finfo = new finfo(FILEINFO_MIME_TYPE);
- $content_type = $finfo->file($filename);
- if ($content_type == 'application/octet-stream') {
- drush_log(dt('Mime type for !file is application/octet-stream.', ['!file' => $filename]), LogLevel::DEBUG);
- $content_type = FALSE;
- }
- }
- // If apache is configured in such a way that all files are considered
- // octet-stream (e.g with mod_mime_magic and an http conf that's serving all
- // archives as octet-stream for other reasons) we'll detect mime types on our
- // own by examing the file's magic header bytes.
- if (!$content_type) {
- drush_log(dt('Examining !file headers.', ['!file' => $filename]), LogLevel::DEBUG);
- if ($file = fopen($filename, 'rb')) {
- $first = fread($file, 2);
- fclose($file);
-
- if ($first !== FALSE) {
- // Interpret the two bytes as a little endian 16-bit unsigned int.
- $data = unpack('v', $first);
- switch ($data[1]) {
- case 0x8b1f:
- // First two bytes of gzip files are 0x1f, 0x8b (little-endian).
- // See http://www.gzip.org/zlib/rfc-gzip.html#header-trailer
- $content_type = 'application/x-gzip';
- break;
-
- case 0x4b50:
- // First two bytes of zip files are 0x50, 0x4b ('PK') (little-endian).
- // See http://en.wikipedia.org/wiki/Zip_(file_format)#File_headers
- $content_type = 'application/zip';
- break;
-
- case 0x5a42:
- // First two bytes of bzip2 files are 0x5a, 0x42 ('BZ') (big-endian).
- // See http://en.wikipedia.org/wiki/Bzip2#File_format
- $content_type = 'application/x-bzip2';
- break;
-
- default:
- drush_log(dt('Unable to determine mime type from header bytes 0x!hex of !file.', ['!hex' => dechex($data[1]), '!file' => $filename,]), LogLevel::DEBUG);
- }
- }
- else {
- drush_log(dt('Unable to read !file.', ['!file' => $filename]), LogLevel::WARNING);
- }
- }
- else {
- drush_log(dt('Unable to open !file.', ['!file' => $filename]), LogLevel::WARNING);
- }
- }
-
- // 3. Lastly if above methods didn't work, try to guess the mime type from
- // the file extension. This is useful if the file has no identificable magic
- // header bytes (for example tarballs).
- if (!$content_type) {
- drush_log(dt('Examining !file extension.', ['!file' => $filename]), LogLevel::DEBUG);
-
- // Remove querystring from the filename, if present.
- $filename = basename(current(explode('?', $filename, 2)));
- $extension_mimetype = [
- '.tar' => 'application/x-tar',
- '.sql' => 'application/octet-stream',
- ];
- foreach ($extension_mimetype as $extension => $ct) {
- if (substr($filename, -strlen($extension)) === $extension) {
- $content_type = $ct;
- break;
- }
- }
- }
- return $content_type;
-}
-
-/**
- * Check whether a file is a supported tarball.
- *
- * @return mixed
- * The file content type if it's a tarball. FALSE otherwise.
- */
-function drush_file_is_tarball($path) {
- $content_type = drush_attempt_mime_content_type($path);
- $supported = [
- 'application/x-bzip2',
- 'application/x-gzip',
- 'application/x-tar',
- 'application/x-zip',
- 'application/zip',
- ];
- if (in_array($content_type, $supported)) {
- return $content_type;
- }
- return FALSE;
-}
-
-/**
- * @defgroup logging Logging information to be provided as output.
- * @{
- *
- * These functions are primarily for diagnostic purposes, but also provide an overview of tasks that were taken
- * by drush.
- */
-
-/**
- * Add a log message to the log history.
- *
- * This function calls the callback stored in the 'DRUSH_LOG_CALLBACK' context with
- * the resulting entry at the end of execution.
- *
- * This allows you to replace it with custom logging implementations if needed,
- * such as logging to a file or logging to a database (drupal or otherwise).
- *
- * The default callback is the Drush\Log\Logger class with prints the messages
- * to the shell.
- *
- * @param message
- * String containing the message to be logged.
- * @param type
- * The type of message to be logged. Common types are 'warning', 'error', 'success' and 'notice'.
- * A type of 'ok' or 'success' can also be supplied to flag something that worked.
- * If you want your log messages to print to screen without the user entering
- * a -v or --verbose flag, use type 'ok' or 'notice', this prints log messages out to
- * STDERR, which prints to screen (unless you have redirected it). All other
- * types of messages will be assumed to be info.
- *
- * @deprecated
- * Use this->logger()->warning (for example) from an Annotated command method.
- */
-function drush_log($message, $type = LogLevel::INFO, $error = null) {
- $entry = [
- 'type' => $type,
- 'message' => $message,
- 'timestamp' => microtime(TRUE),
- 'memory' => memory_get_usage(),
- ];
- $entry['error'] = $error;
-
- return _drush_log($entry);
-}
-
-/**
- * Call the default logger, or the user's log callback, as
- * appropriate.
- */
-function _drush_log($entry) {
- $callback = drush_get_context('DRUSH_LOG_CALLBACK');
- if (!$callback) {
- $callback = Drush::logger();
- }
- if ($callback instanceof LoggerInterface) {
- _drush_log_to_logger($callback, $entry);
- }
- elseif ($callback) {
- $log =& drush_get_context('DRUSH_LOG', []);
- $log[] = $entry;
- drush_backend_packet('log', $entry);
- return $callback($entry);
- }
-}
-
-// Maintain compatibility with extensions that hook into
-// DRUSH_LOG_CALLBACK (e.g. drush_ctex_bonus)
-function _drush_print_log($entry) {
- $drush_logger = Drush::logger();
- if ($drush_logger) {
- _drush_log_to_logger($drush_logger, $entry);
- }
-}
-
-function _drush_log_to_logger($logger, $entry) {
- $context = $entry;
- $log_level = $entry['type'];
- $message = $entry['message'];
- unset($entry['type']);
- unset($entry['message']);
-
- $logger->log($log_level, $message, $context);
-}
-
-function drush_log_has_errors($types = [LogLevel::WARNING, LogLevel::ERROR, LogLevel::FAILED]) {
- $log =& drush_get_context('DRUSH_LOG', []);
- foreach ($log as $entry) {
- if (in_array($entry['type'], $types)) {
- return TRUE;
- }
- }
- return FALSE;
-}
-
-/**
- * Backend command callback. Add a log message to the log history.
- *
- * @param entry
- * The log entry.
- */
-function drush_backend_packet_log($entry, $backend_options) {
- if (!$backend_options['log']) {
- return;
- }
- if (!is_string($entry['message'])) {
- $entry['message'] = implode("\n", (array)$entry['message']);
- }
- $entry['message'] = $entry['message'];
- if (array_key_exists('#output-label', $backend_options)) {
- $entry['message'] = $backend_options['#output-label'] . $entry['message'];
- }
-
- // If integrate is FALSE, then log messages are stored in DRUSH_LOG,
- // but are -not- printed to the console.
- if ($backend_options['integrate']) {
- _drush_log($entry);
- }
- else {
- $log =& drush_get_context('DRUSH_LOG', []);
- $log[] = $entry;
- // Yes, this looks odd, but we might in fact be a backend command
- // that ran another backend command.
- drush_backend_packet('log', $entry);
- }
-}
-
-/**
- * Retrieve the log messages from the log history
- *
- * @return
- * Entire log history
- */
-function drush_get_log() {
- return drush_get_context('DRUSH_LOG', []);
-}
-
-/**
- * Run print_r on a variable and log the output.
- */
-function dlm($object) {
- drush_log(print_r($object, TRUE));
-}
-
-// Copy of format_size() in Drupal.
-function drush_format_size($size) {
- if ($size < DRUSH_KILOBYTE) {
- // format_plural() not always available.
- return dt('@count bytes', ['@count' => $size]);
- }
- else {
- $size = $size / DRUSH_KILOBYTE; // Convert bytes to kilobytes.
- $units = [
- dt('@size KB', []),
- dt('@size MB', []),
- dt('@size GB', []),
- dt('@size TB', []),
- dt('@size PB', []),
- dt('@size EB', []),
- dt('@size ZB', []),
- dt('@size YB', []),
- ];
- foreach ($units as $unit) {
- if (round($size, 2) >= DRUSH_KILOBYTE) {
- $size = $size / DRUSH_KILOBYTE;
- }
- else {
- break;
- }
- }
- return str_replace('@size', round($size, 2), $unit);
- }
-}
-
-/**
- * @} End of "defgroup logging".
- */
-
-/**
- * @defgroup errorhandling Managing errors that occur in the Drush framework.
- * @{
- * Functions that manage the current error status of the Drush framework.
- *
- * These functions operate by maintaining a static variable that is a equal to the constant DRUSH_FRAMEWORK_ERROR if an
- * error has occurred.
- * This error code is returned at the end of program execution, and provide the shell or calling application with
- * more information on how to diagnose any problems that may have occurred.
- */
-
-/**
- * Set an error code for the error handling system.
- *
- * @param \Drupal\Component\Render\MarkupInterface|string $error
- * A text string identifying the type of error.
- * @param null|string $message
- * Optional. Error message to be logged. If no message is specified,
- * hook_drush_help will be consulted, using a key of 'error:MY_ERROR_STRING'.
- * @param null|string $output_label
- * Optional. Label to prepend to the error message.
- *
- * @return bool
- * Always returns FALSE, to allow returning false in the calling functions,
- * such as return drush_set_error('DRUSH_FRAMEWORK_ERROR')
.
- */
-function drush_set_error($error, $message = null, $output_label = "") {
- $error_code =& drush_get_context('DRUSH_ERROR_CODE', DRUSH_SUCCESS);
- $error_code = DRUSH_FRAMEWORK_ERROR;
-
- $error_log =& drush_get_context('DRUSH_ERROR_LOG', []);
-
- if (is_numeric($error)) {
- $error = 'DRUSH_FRAMEWORK_ERROR';
- }
- elseif (!is_string($error)) {
- // Typical case: D8 TranslatableMarkup, implementing MarkupInterface.
- $error = "$error";
- }
-
- $message = ($message) ? $message : ''; // drush_command_invoke_all('drush_help', 'error:' . $error);
-
- if (is_array($message)) {
- $message = implode("\n", $message);
- }
-
- $error_log[$error][] = $message;
- if (!drush_backend_packet('set_error', ['error' => $error, 'message' => $message])) {
- drush_log(($message) ? $output_label . $message : $output_label . $error, LogLevel::ERROR, $error);
- }
-
- return FALSE;
-}
-
-/**
- * Return the current error handling status
- *
- * @return
- * The current aggregate error status
- */
-function drush_get_error() {
- return drush_get_context('DRUSH_ERROR_CODE', DRUSH_SUCCESS);
-}
-
-/**
- * Return the current list of errors that have occurred.
- *
- * @return
- * An associative array of error messages indexed by the type of message.
- */
-function drush_get_error_log() {
- return drush_get_context('DRUSH_ERROR_LOG', []);
-}
-
-/**
- * Check if a specific error status has been set.
- *
- * @param error
- * A text string identifying the error that has occurred.
- * @return
- * TRUE if the specified error has been set, FALSE if not
- */
-function drush_cmp_error($error) {
- $error_log = drush_get_error_log();
-
- if (is_numeric($error)) {
- $error = 'DRUSH_FRAMEWORK_ERROR';
- }
-
- return array_key_exists($error, $error_log);
-}
-
-/**
- * Clear error context.
- */
-function drush_clear_error() {
- drush_set_context('DRUSH_ERROR_CODE', DRUSH_SUCCESS);
-}
-
-/**
- * Turn PHP error handling off.
- *
- * This is commonly used while bootstrapping Drupal for install
- * or updates.
- *
- * This also records the previous error_reporting setting, in
- * case it wasn't recorded previously.
- *
- * @see drush_errors_off()
- */
-function drush_errors_off() {
- drush_get_context('DRUSH_ERROR_REPORTING', error_reporting(0));
- ini_set('display_errors', FALSE);
-}
-
-/**
- * Turn PHP error handling on.
- *
- * We default to error_reporting() here just in
- * case drush_errors_on() is called before drush_errors_off() and
- * the context is not yet set.
- *
- * @arg $errors string
- * The default error level to set in drush. This error level will be
- * carried through further drush_errors_on()/off() calls even if not
- * provided in later calls.
- *
- * @see error_reporting()
- * @see drush_errors_off()
- */
-function drush_errors_on($errors = null) {
- if (!isset($errors)) {
- $errors = error_reporting();
- }
- else {
- drush_set_context('DRUSH_ERROR_REPORTING', $errors);
- }
- error_reporting(drush_get_context('DRUSH_ERROR_REPORTING', $errors));
- ini_set('display_errors', TRUE);
-}
-
-/**
- * @} End of "defgroup errorhandling".
- */
-
-/**
- * Get the PHP memory_limit value in bytes.
- */
-function drush_memory_limit() {
- $value = trim(ini_get('memory_limit'));
- $last = strtolower($value[strlen($value)-1]);
- $size = (int) substr($value, 0, -1);
- switch ($last) {
- case 'g':
- $size *= DRUSH_KILOBYTE;
- case 'm':
- $size *= DRUSH_KILOBYTE;
- case 'k':
- $size *= DRUSH_KILOBYTE;
- }
-
- return $size;
-}
-
-
-/**
- * Form an associative array from a linear array.
- *
- * This function walks through the provided array and constructs an associative
- * array out of it. The keys of the resulting array will be the values of the
- * input array. The values will be the same as the keys unless a function is
- * specified, in which case the output of the function is used for the values
- * instead.
- *
- * @param $array
- * A linear array.
- * @param $function
- * A name of a function to apply to all values before output.
- *
- * @return
- * An associative array.
- */
-function drush_map_assoc($array, $function = NULL) {
- // array_combine() fails with empty arrays:
- // http://bugs.php.net/bug.php?id=34857.
- $array = !empty($array) ? array_combine($array, $array) : [];
- if (is_callable($function)) {
- $array = array_map($function, $array);
- }
- return $array;
-}
diff --git a/vendor/drush/drush/includes/environment.inc b/vendor/drush/drush/includes/environment.inc
deleted file mode 100644
index a4717048c..000000000
--- a/vendor/drush/drush/includes/environment.inc
+++ /dev/null
@@ -1,297 +0,0 @@
-get('runtime.php.notices', LogLevel::INFO);
- $halt_on_error = Drush::config()->get('runtime.php.halt-on-error', (drush_drupal_major_version() != 6));
-
- // Bitmask value that constitutes an error needing to be logged.
- $error = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR;
- if ($errno & $error) {
- $type = 'error';
- }
-
- // Bitmask value that constitutes a warning being logged.
- $warning = E_WARNING | E_CORE_WARNING | E_COMPILE_WARNING | E_USER_WARNING;
- if ($errno & $warning) {
- $type = LogLevel::WARNING;
- }
-
- drush_log($message . ' ' . basename($filename) . ':' . $line, $type);
-
- if ($errno == E_RECOVERABLE_ERROR && $halt_on_error) {
- drush_log(dt('E_RECOVERABLE_ERROR encountered; aborting. To ignore recoverable errors, run again with --no-halt-on-error'), 'error');
- exit(DRUSH_APPLICATION_ERROR);
- }
-
- return TRUE;
- }
-}
-
-/**
- * Evalute the environment after an abnormal termination and
- * see if we can determine any configuration settings that the user might
- * want to adjust.
- */
-function _drush_postmortem() {
- // Make sure that the memory limit has been bumped up from the minimum default value of 32M.
- $php_memory_limit = drush_memory_limit();
- if (($php_memory_limit > 0) && ($php_memory_limit <= 32*DRUSH_KILOBYTE*DRUSH_KILOBYTE)) {
- drush_set_error('DRUSH_MEMORY_LIMIT', dt('Your memory limit is set to !memory_limit; Drush needs as much memory to run as Drupal. !php_ini_msg', ['!memory_limit' => $php_memory_limit / (DRUSH_KILOBYTE*DRUSH_KILOBYTE) . 'M', '!php_ini_msg' => _drush_php_ini_loaded_file_message()]));
- }
-}
-
-/**
- * Converts a Windows path (dir1\dir2\dir3) into a Unix path (dir1/dir2/dir3).
- * Also converts a cygwin "drive emulation" path (/cygdrive/c/dir1) into a
- * proper drive path, still with Unix slashes (c:/dir1).
- */
-function _drush_convert_path($path) {
- $path = str_replace('\\','/', $path);
- if (drush_is_windows() && !drush_is_cygwin()) {
- $path = preg_replace('/^\/cygdrive\/([A-Za-z])(.*)$/', '\1:\2', $path);
- }
-
- return $path;
-}
-
-/**
- * Build a drush command suitable for use for Drush to call itself.
- * Used in backend_invoke.
- */
-function drush_build_drush_command($drush_path = NULL, $php = NULL, $os = NULL, $remote_command = FALSE, $environment_variables = []) {
- $os = _drush_get_os($os);
- $additional_options = '';
- $prefix = '';
- if (!$drush_path) {
- if (!$remote_command) {
- $drush_path = DRUSH_COMMAND;
- }
- else {
- $drush_path = 'drush'; // drush_is_windows($os) ? 'drush.bat' : 'drush';
- }
- }
- // If the path to drush points to drush.php, then we will need to
- // run it via php rather than direct execution. By default, we
- // will use 'php' unless something more specific was passed in
- // via the --php flag.
- if (substr($drush_path, -4) == ".php") {
- if (!isset($php)) {
- $php = Drush::config()->get('php', 'php');
- }
- if (isset($php) && ($php != "php")) {
- $additional_options .= ' --php=' . drush_escapeshellarg($php, $os);
- }
- // We will also add in the php options from --php-options
- $prefix .= drush_escapeshellarg($php, $os);
- $php_options = implode(' ', drush_get_context_options('php-options'));
- if (!empty($php_options)) {
- $prefix .= ' ' . $php_options;
- $additional_options .= ' --php-options=' . drush_escapeshellarg($php_options, $os);
- }
- }
- else {
- // Set environment variables to propogate config to redispatched calls.
- if (drush_has_bash($os)) {
- if ($php) {
- $environment_variables['DRUSH_PHP'] = $php;
- }
- if ($php_options_alias = drush_get_option('php-options', NULL, 'alias')) {
- $environment_variables['PHP_OPTIONS'] = $php_options_alias;
- }
- $columns = drush_get_context('DRUSH_COLUMNS');
- if (($columns) && ($columns != 80)) {
- $environment_variables['COLUMNS'] = $columns;
- }
- }
- }
-
- // Add environmental variables, if present
- if (!empty($environment_variables)) {
- $prefix .= ' env';
- foreach ($environment_variables as $key=>$value) {
- $prefix .= ' ' . drush_escapeshellarg($key, $os) . '=' . drush_escapeshellarg($value, $os);
- }
- }
-
- return trim($prefix . ' ' . drush_escapeshellarg($drush_path, $os) . $additional_options);
-}
-
-/**
- * Check if the operating system is Winodws
- * running some variant of cygwin -- either
- * Cygwin or the MSYSGIT shell. If you care
- * which is which, test mingw first.
- */
-function drush_is_cygwin($os = NULL) {
- return _drush_test_os($os, ["CYGWIN","CWRSYNC","MINGW"]);
-}
-
-function drush_is_mingw($os = NULL) {
- return _drush_test_os($os, ["MINGW"]);
-}
-
-/**
- * Check if the operating system is OS X.
- * This will return TRUE for Mac OS X (Darwin).
- */
-function drush_is_osx($os = NULL) {
- return _drush_test_os($os, ["DARWIN"]);
-}
-
-/**
- * Checks if the operating system has bash.
- *
- * MinGW has bash, but PHP isn't part of MinGW and hence doesn't run in bash.
- */
-function drush_has_bash($os = NULL) {
- return (drush_is_cygwin($os) && !drush_is_mingw($os)) || !drush_is_windows($os);
-}
-
-/**
- * Checks operating system and returns supported bit bucket folder.
- */
-function drush_bit_bucket() {
- return drush_has_bash() ? '/dev/null' : 'nul';
-}
-
-/**
- * Return the OS we are running under.
- *
- * @return string
- * Linux
- * WIN* (e.g. WINNT)
- * CYGWIN
- * MINGW* (e.g. MINGW32)
- */
-function _drush_get_os($os = NULL) {
- // In most cases, $os will be NULL and PHP_OS will be returned. However, if an
- // OS is specified in $os, return that instead.
- return $os ?: PHP_OS;
-}
-
-function _drush_test_os($os, $os_list_to_check) {
- $os = _drush_get_os($os);
- foreach ($os_list_to_check as $test) {
- if (strtoupper(substr($os, 0, strlen($test))) == strtoupper($test)) {
- return TRUE;
- }
- }
- return FALSE;
-}
-
-/**
- * Make a determination whether or not the given
- * host is local or not.
- *
- * @param host
- * A hostname, 'localhost' or '127.0.0.1'.
- * @return
- * True if the host is local.
- */
-function drush_is_local_host($host) {
- // Check to see if the provided host is "local".
- // @see hook_drush_sitealias_alter() in drush.api.php.
- return $host == 'localhost' || $host == '127.0.0.1';
-}
-
-/**
- * Determine whether current OS is a Windows variant.
- */
-function drush_is_windows($os = NULL) {
- return strtoupper(substr(_drush_get_os($os), 0, 3)) === 'WIN';
-}
-
-function drush_escapeshellarg($arg, $os = NULL, $raw = FALSE) {
- // Short-circuit escaping for simple params (keep stuff readable)
- if (preg_match('|^[a-zA-Z0-9.:/_-]*$|', $arg)) {
- return $arg;
- }
- elseif (drush_is_windows($os)) {
- return _drush_escapeshellarg_windows($arg, $raw);
- }
- else {
- return _drush_escapeshellarg_linux($arg, $raw);
- }
-}
-
-/**
- * Linux version of escapeshellarg().
- *
- * This is intended to work the same way that escapeshellarg() does on
- * Linux. If we need to escape a string that will be used remotely on
- * a Linux system, then we need our own implementation of escapeshellarg,
- * because the Windows version behaves differently.
- */
-function _drush_escapeshellarg_linux($arg, $raw = FALSE) {
- // For single quotes existing in the string, we will "exit"
- // single-quote mode, add a \' and then "re-enter"
- // single-quote mode. The result of this is that
- // 'quote' becomes '\''quote'\''
- $arg = preg_replace('/\'/', '\'\\\'\'', $arg);
-
- // Replace "\t", "\n", "\r", "\0", "\x0B" with a whitespace.
- // Note that this replacement makes Drush's escapeshellarg work differently
- // than the built-in escapeshellarg in PHP on Linux, as these characters
- // usually are NOT replaced. However, this was done deliberately to be more
- // conservative when running _drush_escapeshellarg_linux on Windows
- // (this can happen when generating a command to run on a remote Linux server.)
- $arg = str_replace(["\t", "\n", "\r", "\0", "\x0B"], ' ', $arg);
-
- // Only wrap with quotes when needed.
- if(!$raw) {
- // Add surrounding quotes.
- $arg = "'" . $arg . "'";
- }
-
- return $arg;
-}
-
-/**
- * Windows version of escapeshellarg().
- */
-function _drush_escapeshellarg_windows($arg, $raw = FALSE) {
- // Double up existing backslashes
- $arg = preg_replace('/\\\/', '\\\\\\\\', $arg);
-
- // Double up double quotes
- $arg = preg_replace('/"/', '""', $arg);
-
- // Double up percents.
- // $arg = preg_replace('/%/', '%%', $arg);
-
- // Only wrap with quotes when needed.
- if(!$raw) {
- // Add surrounding quotes.
- $arg = '"' . $arg . '"';
- }
-
- return $arg;
-}
diff --git a/vendor/drush/drush/includes/exec.inc b/vendor/drush/drush/includes/exec.inc
deleted file mode 100644
index 22add245a..000000000
--- a/vendor/drush/drush/includes/exec.inc
+++ /dev/null
@@ -1,409 +0,0 @@
-&1', $output, $result);
- _drush_shell_exec_output_set($output);
-
- if (Drush::debug()) {
- foreach ($output as $line) {
- drush_print($line, 2);
- }
- }
-
- // Exit code 0 means success.
- return ($result == 0);
- }
- }
- else {
- return TRUE;
- }
-}
-
-/**
- * Determine whether 'which $command' can find
- * a command on this system.
- */
-function drush_which($command) {
- exec("which $command 2>&1", $output, $result);
- return ($result == 0);
-}
-
-/**
- * Build an SSH string including an optional fragment of bash. Commands that use
- * this should also merge drush_shell_proc_build_options() into their
- * command options. @see ssh_drush_command().
- *
- * @param array $site
- * A site alias record.
- * @param string $command
- * An optional bash fragment.
- * @param string $cd
- * An optional directory to change into before executing the $command. Set to
- * boolean TRUE to change into $site['root'] if available.
- * @param boolean $interactive
- * Force creation of a tty
- * @return string
- * A string suitable for execution with drush_shell_remote_exec().
- *
- */
-function drush_shell_proc_build(AliasRecord $site, $command = '', $cd = NULL, $interactive = FALSE) {
- // Build up the command. TODO: We maybe refactor this soon.
- $hostname = $site->remoteHostWithUser();
- $ssh_options = $site->getConfig(Drush::config(), 'ssh.options', "-o PasswordAuthentication=no");
- $os = drush_os($site);
- if ($site->get('tty') || $interactive) {
- $ssh_options .= ' -t';
- }
-
- $cmd = "ssh " . $ssh_options . " " . $hostname;
-
- if ($cd === TRUE) {
- if ($site->hasRoot()) {
- $cd = $site->root();
- }
- else {
- $cd = FALSE;
- }
- }
- if ($cd) {
- $command = 'cd ' . drush_escapeshellarg($cd, $os) . ' && ' . $command;
- }
-
- if (!empty($command)) {
- $cmd .= " " . drush_escapeshellarg($command, $os);
- }
-
- return $cmd;
-}
-
-/**
- * Execute bash command using proc_open().
- *
- * @returns
- * Exit code from launched application
- * 0 no error
- * 1 general error
- * 127 command not found
- */
-function drush_shell_proc_open($cmd) {
- if (Drush::verbose() || Drush::simulate()) {
- drush_print("Calling proc_open($cmd);", 0, STDERR);
- }
- if (!Drush::simulate()) {
- $process = proc_open($cmd, [0 => STDIN, 1 => STDOUT, 2 => STDERR], $pipes);
- $proc_status = proc_get_status($process);
- $exit_code = proc_close($process);
- return ($proc_status["running"] ? $exit_code : $proc_status["exitcode"] );
- }
- return 0;
-}
-
-/**
- * Determine the appropriate os value for the
- * specified site record
- *
- * @returns
- * NULL for 'same as local machine', 'Windows' or 'Linux'.
- */
-function drush_os($site_record = NULL) {
- if (!$site_record instanceof AliasRecord) {
- return legacy_drush_os($site_record);
- }
- // n.b. $options['remote-os'] has become 'ssh.os' in drush.yml
- return $site_record->getConfig(Drush::config(), 'ssh.os', 'Linux');
-}
-
-function legacy_drush_os($site_record = NULL) {
- // Default to $os = NULL, meaning 'same as local machine'
- $os = NULL;
- // If the site record has an 'os' element, use it
- if (isset($site_record) && array_key_exists('os', $site_record)) {
- $os = $site_record['os'];
- }
- // Otherwise, we will assume that all remote machines are Linux
- // (or whatever value 'remote-os' is set to in drush.yml).
- elseif (isset($site_record) && array_key_exists('remote-host', $site_record) && !empty($site_record['remote-host'])) {
- $os = Drush::config()->get('ssh.os', 'Linux');
- }
-
- return $os;
-}
-
-/**
- * Make an attempt to simply wrap the arg with the
- * kind of quote characters it does not already contain.
- * If it contains both kinds, then this function reverts to drush_escapeshellarg.
- */
-function drush_wrap_with_quotes($arg) {
- $has_double = strpos($arg, '"') !== FALSE;
- $has_single = strpos($arg, "'") !== FALSE;
- if ($has_double && $has_single) {
- return drush_escapeshellarg($arg);
- }
- elseif ($has_double) {
- return "'" . $arg . "'";
- }
- else {
- return '"' . $arg . '"';
- }
-}
-
-/**
- * Platform-dependent version of escapeshellarg().
- * Given the target platform, return an appropriately-escaped
- * string. The target platform may be omitted for args that
- * are /known/ to be for the local machine.
- * Use raw to get an unquoted version of the escaped arg.
- * Notice that you can't add quotes later until you know the platform.
- */
-
-/**
- * Stores output for the most recent shell command.
- * This should only be run from drush_shell_exec().
- *
- * @param array|bool $output
- * The output of the most recent shell command.
- * If this is not set the stored value will be returned.
- */
-function _drush_shell_exec_output_set($output = FALSE) {
- static $stored_output;
- if ($output === FALSE) return $stored_output;
- $stored_output = $output;
-}
-
-/**
- * Returns the output of the most recent shell command as an array of lines.
- */
-function drush_shell_exec_output() {
- return _drush_shell_exec_output_set();
-}
-
-/**
- * Starts a background browser/tab for the current site or a specified URL.
- *
- * Uses a non-blocking proc_open call, so Drush execution will continue.
- *
- * @param $uri
- * Optional URI or site path to open in browser. If omitted, or if a site path
- * is specified, the current site home page uri will be prepended if the sites
- * hostname resolves.
- * @return
- * TRUE if browser was opened, FALSE if browser was disabled by the user or a,
- * default browser could not be found.
- */
-function drush_start_browser($uri = NULL, $sleep = FALSE, $port = FALSE, $browser = true) {
- if ($browser) {
- // We can only open a browser if we have a DISPLAY environment variable on
- // POSIX or are running Windows or OS X.
- if (!Drush::simulate() && !getenv('DISPLAY') && !drush_is_windows() && !drush_is_osx()) {
- drush_log(dt('No graphical display appears to be available, not starting browser.'), LogLevel::INFO);
- return FALSE;
- }
- $host = parse_url($uri, PHP_URL_HOST);
- if (!$host) {
- // Build a URI for the current site, if we were passed a path.
- $site = drush_get_context('DRUSH_URI');
- $host = parse_url($site, PHP_URL_HOST);
- $uri = $site . '/' . ltrim($uri, '/');
- }
- // Validate that the host part of the URL resolves, so we don't attempt to
- // open the browser for http://default or similar invalid hosts.
- $hosterror = (gethostbynamel($host) === FALSE);
- $iperror = (ip2long($host) && gethostbyaddr($host) == $host);
- if (!Drush::simulate() && ($hosterror || $iperror)) {
- drush_log(dt('!host does not appear to be a resolvable hostname or IP, not starting browser. You may need to use the --uri option in your command or site alias to indicate the correct URL of this site.', ['!host' => $host]), LogLevel::WARNING);
- return FALSE;
- }
- if ($port) {
- $uri = str_replace($host, "localhost:$port", $uri);
- }
- if ($browser === TRUE) {
- // See if we can find an OS helper to open URLs in default browser.
- if (drush_shell_exec('which xdg-open')) {
- $browser = 'xdg-open';
- }
- else if (drush_shell_exec('which open')) {
- $browser = 'open';
- }
- else if (!drush_has_bash()) {
- $browser = 'start';
- }
- else {
- // Can't find a valid browser.
- $browser = FALSE;
- }
- }
- $prefix = '';
- if ($sleep) {
- $prefix = 'sleep ' . $sleep . ' && ';
- }
- if ($browser) {
- drush_log(dt('Opening browser !browser at !uri', ['!browser' => $browser, '!uri' => $uri]));
- if (!Drush::simulate()) {
- $pipes = [];
- proc_close(proc_open($prefix . $browser . ' ' . drush_escapeshellarg($uri) . ' 2> ' . drush_bit_bucket() . ' &', [], $pipes));
- }
- return TRUE;
- }
- }
- return FALSE;
-}
-
-/**
- * @} End of "defgroup commandwrappers".
- */
diff --git a/vendor/drush/drush/includes/filesystem.inc b/vendor/drush/drush/includes/filesystem.inc
deleted file mode 100644
index e72afdf42..000000000
--- a/vendor/drush/drush/includes/filesystem.inc
+++ /dev/null
@@ -1,361 +0,0 @@
- $dest)));
- }
- elseif ($overwrite === FILE_EXISTS_MERGE) {
- // $overwrite flag may indicate we should merge instead.
- drush_log(dt('Merging existing !dest directory', array('!dest' => $dest)));
- }
- }
- // $src readable?
- if (!is_readable($src)) {
- return drush_set_error('DRUSH_SOURCE_NOT_EXISTS', dt('Source directory !src is not readable or does not exist.', array('!src' => $src)));
- }
- // $dest writable?
- if (!is_writable(dirname($dest))) {
- return drush_set_error('DRUSH_DESTINATION_NOT_WRITABLE', dt('Destination directory !dest is not writable.', array('!dest' => dirname($dest))));
- }
- // Try to do a recursive copy.
- if (@_drush_recursive_copy($src, $dest)) {
- return TRUE;
- }
-
- return drush_set_error('DRUSH_COPY_DIR_FAILURE', dt('Unable to copy !src to !dest.', array('!src' => $src, '!dest' => $dest)));
-}
-
-/**
- * Internal function called by drush_copy_dir; do not use directly.
- */
-function _drush_recursive_copy($src, $dest) {
- // all subdirectories and contents:
- if(is_dir($src)) {
- if (!mkdir($dest)) {
- return FALSE;
- }
- $dir_handle = opendir($src);
- while($file = readdir($dir_handle)) {
- if ($file != "." && $file != "..") {
- if (_drush_recursive_copy("$src/$file", "$dest/$file") !== TRUE) {
- return FALSE;
- }
- }
- }
- closedir($dir_handle);
- }
- elseif (is_link($src)) {
- symlink(readlink($src), $dest);
- }
- elseif (!copy($src, $dest)) {
- return FALSE;
- }
-
- // Preserve file modification time.
- // https://github.com/drush-ops/drush/pull/1146
- touch($dest, filemtime($src));
-
- // Preserve execute permission.
- if (!is_link($src) && (!function_exists('drush_is_windows') || !drush_is_windows())) {
- // Get execute bits of $src.
- $execperms = fileperms($src) & 0111;
- // Apply execute permissions if any.
- if ($execperms > 0) {
- $perms = fileperms($dest) | $execperms;
- chmod($dest, $perms);
- }
- }
-
- return TRUE;
-}
-
-/**
- * Recursively create a directory tree.
- *
- * @param path
- * Path to directory to create.
- *
- * @throws IOException On any directory creation failure
- * @deprecated See \Symfony\Component\Filesystem\Filesystem::mkdir.
- */
-function drush_mkdir($path) {
- $fs = new Filesystem();
- $fs->mkdir($path);
- return true;
-}
-
-/*
- * Determine if program exists on user's PATH.
- *
- * @return bool|null
- */
-function drush_program_exists($program) {
- if (drush_has_bash()) {
- $bucket = drush_bit_bucket();
-
- // Remove environment variables (eg. PGPASSFILE=) before testing program.
- $program = preg_replace('#^([A-Z0-9]+=.+? )+#', '', $program);
-
- // Dont't use drush_op_system() since we don't want output during tests.
- system("command -v $program > $bucket 2>&1", $result_code);
- return $result_code === 0 ? TRUE : FALSE;
- }
-}
-
-/**
- * Save a string to a temporary file. Does not depend on Drupal's API.
- * The temporary file will be automatically deleted when drush exits.
- *
- * @param string $data
- * @param string $suffix
- * Append string to filename. use of this parameter if is discouraged. @see
- * drush_tempnam().
- * @return string
- * A path to the file.
- */
-function drush_save_data_to_temp_file($data, $suffix = NULL) {
- static $fp;
-
- $file = drush_tempnam('drush_', NULL, $suffix);
- $fp = fopen($file, "w");
- fwrite($fp, $data);
- $meta_data = stream_get_meta_data($fp);
- $file = $meta_data['uri'];
- fclose($fp);
-
- return $file;
-}
-
-/**
- * Returns the path to a temporary directory.
- *
- * @deprecated Use $this->getConfig()->tmp() in a ConfigAware command.
- */
-function drush_find_tmp() {
- return Drush::config()->tmp();
-}
-
-/**
- * Creates a temporary file, and registers it so that
- * it will be deleted when drush exits. Whenever possible,
- * drush_save_data_to_temp_file() should be used instead
- * of this function.
- *
- * @param string $suffix
- * Append this suffix to the filename. Use of this parameter is discouraged as
- * it can break the guarantee of tempname(). See http://www.php.net/manual/en/function.tempnam.php#42052.
- * Originally added to support Oracle driver.
- */
-function drush_tempnam($pattern, $tmp_dir = NULL, $suffix = '') {
- if ($tmp_dir == NULL) {
- $tmp_dir = Drush::config()->tmp();
- }
- $tmp_file = tempnam($tmp_dir, $pattern);
- drush_register_file_for_deletion($tmp_file);
- $tmp_file_with_suffix = $tmp_file . $suffix;
- drush_register_file_for_deletion($tmp_file_with_suffix);
- return $tmp_file_with_suffix;
-}
-
-/**
- * Creates a temporary directory and return its path.
- */
-function drush_tempdir() {
- $tmp_dir = Path::join(Drush::config()->tmp(), 'drush_tmp_' . uniqid(time() . '_'));
-
- $fs = new Filesystem();
- $fs->mkdir($tmp_dir);
- drush_register_file_for_deletion($tmp_dir);
-
- return $tmp_dir;
-}
-
-/**
- * Any file passed in to this function will be deleted
- * when drush exits.
- */
-function drush_register_file_for_deletion($file = NULL) {
- static $registered_files = array();
-
- if (isset($file)) {
- if (empty($registered_files)) {
- register_shutdown_function('_drush_delete_registered_files');
- }
- $registered_files[] = $file;
- }
-
- return $registered_files;
-}
-
-/**
- * Delete all of the registered temporary files.
- */
-function _drush_delete_registered_files() {
- $files_to_delete = drush_register_file_for_deletion();
-
- foreach ($files_to_delete as $file) {
- // We'll make sure that the file still exists, just
- // in case someone came along and deleted it, even
- // though they did not need to.
- if (file_exists($file)) {
- if (is_dir($file)) {
- drush_delete_dir($file, TRUE);
- }
- else {
- @chmod($file, 0777); // Make file writeable
- unlink($file);
- }
- }
- }
-}
-
-/**
- * Test to see if a file exists and is not empty
- */
-function drush_file_not_empty($file_to_test) {
- if (file_exists($file_to_test)) {
- clearstatcache();
- $stat = stat($file_to_test);
- if ($stat['size'] > 0) {
- return TRUE;
- }
- }
- return FALSE;
-}
-
-/**
- * Return 'TRUE' if one directory is located anywhere inside
- * the other.
- */
-function drush_is_nested_directory($base_dir, $test_is_nested) {
- $common = Path::getLongestCommonBasePath([$test_is_nested, $base_dir]);
- return $common == Path::canonicalize($base_dir);
-}
-
-/**
- * @} End of "defgroup filesystemfunctions".
- */
diff --git a/vendor/drush/drush/includes/output.inc b/vendor/drush/drush/includes/output.inc
deleted file mode 100644
index d8f4f92aa..000000000
--- a/vendor/drush/drush/includes/output.inc
+++ /dev/null
@@ -1,91 +0,0 @@
->logger()->$method($message) is often a better choice than this function.
- * That gets your confirmation message (for example) into the logs for this
- * drush request. Consider that Drush requests may be executed remotely and
- * non interactively.
- *
- * @param $message
- * The message to print.
- * @param $indent
- * The indentation (space chars)
- * @param $handle
- * File handle to write to. NULL will write
- * to standard output, STDERR will write to the standard
- * error. See http://php.net/manual/en/features.commandline.io-streams.php
- * @param $newline
- * Add a "\n" to the end of the output. Defaults to TRUE.
- *
- * @deprecated
- * Use $this->output()->writeln() in a command method.
- */
-function drush_print($message = '', $indent = 0, $handle = NULL, $newline = TRUE) {
- $msg = str_repeat(' ', $indent) . (string)$message;
- if ($newline) {
- $msg .= "\n";
- }
- if (($charset = drush_get_option('output_charset')) && function_exists('iconv')) {
- $msg = iconv('UTF-8', $charset, $msg);
- }
- if (!$handle) {
- $handle = STDOUT;
- }
- fwrite($handle, $msg);
-}
-
-/**
- * Rudimentary translation system, akin to Drupal's t() function.
- *
- * @param string
- * String to process, possibly with replacement item.
- * @param array
- * An associative array of replacement items.
- *
- * @return
- * The processed string.
- */
-function dt($string, $args = []) {
- return StringUtils::interpolate($string, $args);
-}
-
-/**
- * Convert html to readable text. Compatible API to
- * drupal_html_to_text, but less functional. Caller
- * might prefer to call drupal_html_to_text if there
- * is a bootstrapped Drupal site available.
- *
- * @param string $html
- * The html text to convert.
- *
- * @return string
- * The plain-text representation of the input.
- */
-function drush_html_to_text($html, $allowed_tags = NULL) {
- $replacements = [
- '
' => '------------------------------------------------------------------------------',
- '- ' => ' * ',
- '
' => '===== ',
- '
' => ' =====',
- '' => '---- ',
- '
' => ' ----',
- '' => '::: ',
- '
' => ' :::',
- '
' => "\n",
- ];
- $text = str_replace(array_keys($replacements), array_values($replacements), $html);
- return html_entity_decode(preg_replace('/ *<[^>]*> */', ' ', $text));
-}
-
-/**
- * @} End of "defgroup outputfunctions".
- */
diff --git a/vendor/drush/drush/includes/preflight.inc b/vendor/drush/drush/includes/preflight.inc
deleted file mode 100644
index bcba3e638..000000000
--- a/vendor/drush/drush/includes/preflight.inc
+++ /dev/null
@@ -1,119 +0,0 @@
- $error['message'], '!file' => $error['file'], '!line' => $error['line']]);
- }
- // We did not reach the end of the drush_main function,
- // this generally means somewhere in the code a call to exit(),
- // was made. We catch this, so that we can trigger an error in
- // those cases.
- drush_set_error("DRUSH_NOT_COMPLETED", dt("Drush command terminated abnormally due to an unrecoverable error.!message", ['!message' => $php_error_message]));
- // Attempt to give the user some advice about how to fix the problem
- _drush_postmortem();
- }
-
- if (Drush::backend()) {
- drush_backend_output();
- }
-
- // This way drush_return_status() will always be the last shutdown function (unless other shutdown functions register shutdown functions...)
- // and won't prevent other registered shutdown functions (IE from numerous cron methods) from running by calling exit() before they get a chance.
- register_shutdown_function('drush_return_status');
-}
-
-/**
- * Shutdown function to save code coverage data.
- */
-function drush_coverage_shutdown() {
- if ($file_name = drush_get_context('DRUSH_CODE_COVERAGE', FALSE)) {
- $data = xdebug_get_code_coverage();
- xdebug_stop_code_coverage();
-
- // If coverage dump file contains anything, merge in the old data before
- // saving. This happens if the current drush command invoked another drush
- // command.
- if (file_exists($file_name) && $content = file_get_contents($file_name)) {
- $merge_data = unserialize($content);
- if (is_array($merge_data)) {
- foreach ($merge_data as $file => $lines) {
- if (!isset($data[$file])) {
- $data[$file] = $lines;
- }
- else {
- foreach ($lines as $num => $executed) {
- if (!isset($data[$file][$num])) {
- $data[$file][$num] = $executed;
- }
- else {
- $data[$file][$num] = ($executed == 1 ? $executed : $data[$file][$num]);
- }
- }
- }
- }
- }
- }
-
- file_put_contents($file_name, serialize($data));
- }
-}
-
-function drush_return_status() {
- // If a specific exit code was set, then use it.
- $exit_code = drush_get_context('DRUSH_EXIT_CODE');
- if (empty($exit_code)) {
- $exit_code = (drush_get_error()) ? DRUSH_FRAMEWORK_ERROR : DRUSH_SUCCESS;
- }
-
- exit($exit_code);
-}
diff --git a/vendor/drush/drush/includes/site_install.inc b/vendor/drush/drush/includes/site_install.inc
deleted file mode 100644
index 4e15f4cf5..000000000
--- a/vendor/drush/drush/includes/site_install.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-get($alias);
- if (empty($alias_record)) {
- return [];
- }
- $config_record = $alias_record->exportConfig();
- $exported_config = $config_record->export();
- return isset($exported_config['options']) ? $exported_config['options'] : [];
-}
-
-/**
- * Determines whether a given site alias is for a remote site.
- *
- * @param string $alias
- * An alias name or site specification.
- *
- * @return bool
- * Returns TRUE if the alias refers to a remote site, FALSE if it does not, or NULL is unsure.
- */
-function drush_sitealias_is_remote_site($alias) {
- if (is_array($alias) && !empty($alias['remote-host'])) {
- return TRUE;
- }
- if (!is_string($alias) || !strlen($alias)) {
- return NULL;
- }
-
- $site_record = drush_sitealias_get_record($alias);
- if ($site_record) {
- if (!empty($site_record['remote-host'])) {
- return TRUE;
- }
- else {
- return FALSE;
- }
- }
- else {
- drush_set_error('Unrecognized site alias.');
- }
-}
-
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/Escaper.php b/vendor/drush/drush/internal-copy/Config/Yaml/Escaper.php
deleted file mode 100644
index c86885a44..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/Escaper.php
+++ /dev/null
@@ -1,101 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Drush\Internal\Config\Yaml;
-
-/**
- * Escaper encapsulates escaping rules for single and double-quoted
- * YAML strings.
- *
- * @author Matthew Lewinski
- *
- * @internal
- */
-class Escaper
-{
- // Characters that would cause a dumped string to require double quoting.
- const REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9";
-
- // Mapping arrays for escaping a double quoted string. The backslash is
- // first to ensure proper escaping because str_replace operates iteratively
- // on the input arrays. This ordering of the characters avoids the use of strtr,
- // which performs more slowly.
- private static $escapees = array('\\', '\\\\', '\\"', '"',
- "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07",
- "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f",
- "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17",
- "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f",
- "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9",
- );
- private static $escaped = array('\\\\', '\\"', '\\\\', '\\"',
- '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a',
- '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f',
- '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17',
- '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f',
- '\\N', '\\_', '\\L', '\\P',
- );
-
- /**
- * Determines if a PHP value would require double quoting in YAML.
- *
- * @param string $value A PHP value
- *
- * @return bool True if the value would require double quotes
- */
- public static function requiresDoubleQuoting($value)
- {
- return 0 < preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value);
- }
-
- /**
- * Escapes and surrounds a PHP value with double quotes.
- *
- * @param string $value A PHP value
- *
- * @return string The quoted, escaped string
- */
- public static function escapeWithDoubleQuotes($value)
- {
- return sprintf('"%s"', str_replace(self::$escapees, self::$escaped, $value));
- }
-
- /**
- * Determines if a PHP value would require single quoting in YAML.
- *
- * @param string $value A PHP value
- *
- * @return bool True if the value would require single quotes
- */
- public static function requiresSingleQuoting($value)
- {
- // Determines if a PHP value is entirely composed of a value that would
- // require single quoting in YAML.
- if (in_array(strtolower($value), array('null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off'))) {
- return true;
- }
-
- // Determines if the PHP value contains any single characters that would
- // cause it to require single quoting in YAML.
- return 0 < preg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ \- ? | < > = ! % @ ` ]/x', $value);
- }
-
- /**
- * Escapes and surrounds a PHP value with single quotes.
- *
- * @param string $value A PHP value
- *
- * @return string The quoted, escaped string
- */
- public static function escapeWithSingleQuotes($value)
- {
- return sprintf("'%s'", str_replace('\'', '\'\'', $value));
- }
-}
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/Exception/ExceptionInterface.php b/vendor/drush/drush/internal-copy/Config/Yaml/Exception/ExceptionInterface.php
deleted file mode 100644
index 266a2f6f1..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/Exception/ExceptionInterface.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Drush\Internal\Config\Yaml\Exception;
-
-/**
- * Exception interface for all exceptions thrown by the component.
- *
- * @author Fabien Potencier
- */
-interface ExceptionInterface
-{
-}
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/Exception/ParseException.php b/vendor/drush/drush/internal-copy/Config/Yaml/Exception/ParseException.php
deleted file mode 100644
index eca5a3265..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/Exception/ParseException.php
+++ /dev/null
@@ -1,139 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Drush\Internal\Config\Yaml\Exception;
-
-/**
- * Exception class thrown when an error occurs during parsing.
- *
- * @author Fabien Potencier
- */
-class ParseException extends RuntimeException
-{
- private $parsedFile;
- private $parsedLine;
- private $snippet;
- private $rawMessage;
-
- /**
- * @param string $message The error message
- * @param int $parsedLine The line where the error occurred
- * @param string|null $snippet The snippet of code near the problem
- * @param string|null $parsedFile The file name where the error occurred
- * @param \Exception|null $previous The previous exception
- */
- public function __construct($message, $parsedLine = -1, $snippet = null, $parsedFile = null, \Exception $previous = null)
- {
- $this->parsedFile = $parsedFile;
- $this->parsedLine = $parsedLine;
- $this->snippet = $snippet;
- $this->rawMessage = $message;
-
- $this->updateRepr();
-
- parent::__construct($this->message, 0, $previous);
- }
-
- /**
- * Gets the snippet of code near the error.
- *
- * @return string The snippet of code
- */
- public function getSnippet()
- {
- return $this->snippet;
- }
-
- /**
- * Sets the snippet of code near the error.
- *
- * @param string $snippet The code snippet
- */
- public function setSnippet($snippet)
- {
- $this->snippet = $snippet;
-
- $this->updateRepr();
- }
-
- /**
- * Gets the filename where the error occurred.
- *
- * This method returns null if a string is parsed.
- *
- * @return string The filename
- */
- public function getParsedFile()
- {
- return $this->parsedFile;
- }
-
- /**
- * Sets the filename where the error occurred.
- *
- * @param string $parsedFile The filename
- */
- public function setParsedFile($parsedFile)
- {
- $this->parsedFile = $parsedFile;
-
- $this->updateRepr();
- }
-
- /**
- * Gets the line where the error occurred.
- *
- * @return int The file line
- */
- public function getParsedLine()
- {
- return $this->parsedLine;
- }
-
- /**
- * Sets the line where the error occurred.
- *
- * @param int $parsedLine The file line
- */
- public function setParsedLine($parsedLine)
- {
- $this->parsedLine = $parsedLine;
-
- $this->updateRepr();
- }
-
- private function updateRepr()
- {
- $this->message = $this->rawMessage;
-
- $dot = false;
- if ('.' === substr($this->message, -1)) {
- $this->message = substr($this->message, 0, -1);
- $dot = true;
- }
-
- if (null !== $this->parsedFile) {
- $this->message .= sprintf(' in %s', json_encode($this->parsedFile, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
- }
-
- if ($this->parsedLine >= 0) {
- $this->message .= sprintf(' at line %d', $this->parsedLine);
- }
-
- if ($this->snippet) {
- $this->message .= sprintf(' (near "%s")', $this->snippet);
- }
-
- if ($dot) {
- $this->message .= '.';
- }
- }
-}
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/Exception/RuntimeException.php b/vendor/drush/drush/internal-copy/Config/Yaml/Exception/RuntimeException.php
deleted file mode 100644
index 37f65205e..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/Exception/RuntimeException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Drush\Internal\Config\Yaml\Exception;
-
-/**
- * Exception class thrown when an error occurs during parsing.
- *
- * @author Romain Neutron
- */
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/Inline.php b/vendor/drush/drush/internal-copy/Config/Yaml/Inline.php
deleted file mode 100644
index 1e3a49888..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/Inline.php
+++ /dev/null
@@ -1,833 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Drush\Internal\Config\Yaml;
-
-use Drush\Internal\Config\Yaml\Exception\ParseException;
-use Drush\Internal\Config\Yaml\Exception\DumpException;
-use Drush\Internal\Config\Yaml\Tag\TaggedValue;
-
-/**
- * Inline implements a YAML parser/dumper for the YAML inline syntax.
- *
- * @author Fabien Potencier
- *
- * @internal
- */
-class Inline
-{
- const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')';
-
- public static $parsedLineNumber;
-
- private static $exceptionOnInvalidType = false;
- private static $objectSupport = false;
- private static $objectForMap = false;
- private static $constantSupport = false;
-
- /**
- * Converts a YAML string to a PHP value.
- *
- * @param string $value A YAML string
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- * @param array $references Mapping of variable names to values
- *
- * @return mixed A PHP value
- *
- * @throws ParseException
- */
- public static function parse($value, $flags = 0, $references = array())
- {
- if (is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (func_num_args() >= 3 && !is_array($references)) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if ($references) {
- $flags |= Yaml::PARSE_OBJECT;
- }
-
- if (func_num_args() >= 4) {
- @trigger_error('Passing a boolean flag to toggle object for map support is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(3)) {
- $flags |= Yaml::PARSE_OBJECT_FOR_MAP;
- }
- }
-
- if (func_num_args() >= 5) {
- $references = func_get_arg(4);
- } else {
- $references = array();
- }
- }
-
- self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
- self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);
- self::$objectForMap = (bool) (Yaml::PARSE_OBJECT_FOR_MAP & $flags);
- self::$constantSupport = (bool) (Yaml::PARSE_CONSTANT & $flags);
-
- $value = trim($value);
-
- if ('' === $value) {
- return '';
- }
-
- if (2 /* MB_OVERLOAD_STRING */ & (int) ini_get('mbstring.func_overload')) {
- $mbEncoding = mb_internal_encoding();
- mb_internal_encoding('ASCII');
- }
-
- $i = 0;
- $tag = self::parseTag($value, $i, $flags);
- switch ($value[$i]) {
- case '[':
- $result = self::parseSequence($value, $flags, $i, $references);
- ++$i;
- break;
- case '{':
- $result = self::parseMapping($value, $flags, $i, $references);
- ++$i;
- break;
- default:
- $result = self::parseScalar($value, $flags, null, $i, null === $tag, $references);
- }
-
- if (null !== $tag) {
- return new TaggedValue($tag, $result);
- }
-
- // some comments are allowed at the end
- if (preg_replace('/\s+#.*$/A', '', substr($value, $i))) {
- throw new ParseException(sprintf('Unexpected characters near "%s".', substr($value, $i)));
- }
-
- if (isset($mbEncoding)) {
- mb_internal_encoding($mbEncoding);
- }
-
- return $result;
- }
-
- /**
- * Dumps a given PHP variable to a YAML string.
- *
- * @param mixed $value The PHP variable to convert
- * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
- *
- * @return string The YAML string representing the PHP value
- *
- * @throws DumpException When trying to dump PHP resource
- */
- public static function dump($value, $flags = 0)
- {
- if (is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (func_num_args() >= 3) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::DUMP_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(2)) {
- $flags |= Yaml::DUMP_OBJECT;
- }
- }
-
- switch (true) {
- case is_resource($value):
- if (Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
- throw new DumpException(sprintf('Unable to dump PHP resources in a YAML file ("%s").', get_resource_type($value)));
- }
-
- return 'null';
- case $value instanceof \DateTimeInterface:
- return $value->format('c');
- case is_object($value):
- if ($value instanceof TaggedValue) {
- return '!'.$value->getTag().' '.self::dump($value->getValue(), $flags);
- }
-
- if (Yaml::DUMP_OBJECT & $flags) {
- return '!php/object:'.serialize($value);
- }
-
- if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \stdClass || $value instanceof \ArrayObject)) {
- return self::dumpArray($value, $flags & ~Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
- }
-
- if (Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
- throw new DumpException('Object support when dumping a YAML file has been disabled.');
- }
-
- return 'null';
- case is_array($value):
- return self::dumpArray($value, $flags);
- case null === $value:
- return 'null';
- case true === $value:
- return 'true';
- case false === $value:
- return 'false';
- case ctype_digit($value):
- return is_string($value) ? "'$value'" : (int) $value;
- case is_numeric($value):
- $locale = setlocale(LC_NUMERIC, 0);
- if (false !== $locale) {
- setlocale(LC_NUMERIC, 'C');
- }
- if (is_float($value)) {
- $repr = (string) $value;
- if (is_infinite($value)) {
- $repr = str_ireplace('INF', '.Inf', $repr);
- } elseif (floor($value) == $value && $repr == $value) {
- // Preserve float data type since storing a whole number will result in integer value.
- $repr = '!!float '.$repr;
- }
- } else {
- $repr = is_string($value) ? "'$value'" : (string) $value;
- }
- if (false !== $locale) {
- setlocale(LC_NUMERIC, $locale);
- }
-
- return $repr;
- case '' == $value:
- return "''";
- case self::isBinaryString($value):
- return '!!binary '.base64_encode($value);
- case Escaper::requiresDoubleQuoting($value):
- return Escaper::escapeWithDoubleQuotes($value);
- case Escaper::requiresSingleQuoting($value):
- case Parser::preg_match('{^[0-9]+[_0-9]*$}', $value):
- case Parser::preg_match(self::getHexRegex(), $value):
- case Parser::preg_match(self::getTimestampRegex(), $value):
- return Escaper::escapeWithSingleQuotes($value);
- default:
- return $value;
- }
- }
-
- /**
- * Check if given array is hash or just normal indexed array.
- *
- * @internal
- *
- * @param array|\ArrayObject|\stdClass $value The PHP array or array-like object to check
- *
- * @return bool true if value is hash array, false otherwise
- */
- public static function isHash($value)
- {
- if ($value instanceof \stdClass || $value instanceof \ArrayObject) {
- return true;
- }
-
- $expectedKey = 0;
-
- foreach ($value as $key => $val) {
- if ($key !== $expectedKey++) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * Dumps a PHP array to a YAML string.
- *
- * @param array $value The PHP array to dump
- * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
- *
- * @return string The YAML string representing the PHP array
- */
- private static function dumpArray($value, $flags)
- {
- // array
- if (($value || Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE & $flags) && !self::isHash($value)) {
- $output = array();
- foreach ($value as $val) {
- $output[] = self::dump($val, $flags);
- }
-
- return sprintf('[%s]', implode(', ', $output));
- }
-
- // hash
- $output = array();
- foreach ($value as $key => $val) {
- $output[] = sprintf('%s: %s', self::dump($key, $flags), self::dump($val, $flags));
- }
-
- return sprintf('{ %s }', implode(', ', $output));
- }
-
- /**
- * Parses a YAML scalar.
- *
- * @param string $scalar
- * @param int $flags
- * @param string[] $delimiters
- * @param int &$i
- * @param bool $evaluate
- * @param array $references
- *
- * @return string
- *
- * @throws ParseException When malformed inline YAML string is parsed
- *
- * @internal
- */
- public static function parseScalar($scalar, $flags = 0, $delimiters = null, &$i = 0, $evaluate = true, $references = array(), $legacyOmittedKeySupport = false)
- {
- if (in_array($scalar[$i], array('"', "'"))) {
- // quoted scalar
- $output = self::parseQuotedScalar($scalar, $i);
-
- if (null !== $delimiters) {
- $tmp = ltrim(substr($scalar, $i), ' ');
- if (!in_array($tmp[0], $delimiters)) {
- throw new ParseException(sprintf('Unexpected characters (%s).', substr($scalar, $i)));
- }
- }
- } else {
- // "normal" string
- if (!$delimiters) {
- $output = substr($scalar, $i);
- $i += strlen($output);
-
- // remove comments
- if (Parser::preg_match('/[ \t]+#/', $output, $match, PREG_OFFSET_CAPTURE)) {
- $output = substr($output, 0, $match[0][1]);
- }
- } elseif (Parser::preg_match('/^(.'.($legacyOmittedKeySupport ? '+' : '*').'?)('.implode('|', $delimiters).')/', substr($scalar, $i), $match)) {
- $output = $match[1];
- $i += strlen($output);
- } else {
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', $scalar));
- }
-
- // a non-quoted string cannot start with @ or ` (reserved) nor with a scalar indicator (| or >)
- if ($output && ('@' === $output[0] || '`' === $output[0] || '|' === $output[0] || '>' === $output[0])) {
- throw new ParseException(sprintf('The reserved indicator "%s" cannot start a plain scalar; you need to quote the scalar.', $output[0]));
- }
-
- if ($output && '%' === $output[0]) {
- @trigger_error(sprintf('Not quoting the scalar "%s" starting with the "%%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0 on line %d.', $output, self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
-
- if ($evaluate) {
- $output = self::evaluateScalar($output, $flags, $references);
- }
- }
-
- return $output;
- }
-
- /**
- * Parses a YAML quoted scalar.
- *
- * @param string $scalar
- * @param int &$i
- *
- * @return string
- *
- * @throws ParseException When malformed inline YAML string is parsed
- */
- private static function parseQuotedScalar($scalar, &$i)
- {
- if (!Parser::preg_match('/'.self::REGEX_QUOTED_STRING.'/Au', substr($scalar, $i), $match)) {
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', substr($scalar, $i)));
- }
-
- $output = substr($match[0], 1, strlen($match[0]) - 2);
-
- $unescaper = new Unescaper();
- if ('"' == $scalar[$i]) {
- $output = $unescaper->unescapeDoubleQuotedString($output);
- } else {
- $output = $unescaper->unescapeSingleQuotedString($output);
- }
-
- $i += strlen($match[0]);
-
- return $output;
- }
-
- /**
- * Parses a YAML sequence.
- *
- * @param string $sequence
- * @param int $flags
- * @param int &$i
- * @param array $references
- *
- * @return array
- *
- * @throws ParseException When malformed inline YAML string is parsed
- */
- private static function parseSequence($sequence, $flags, &$i = 0, $references = array())
- {
- $output = array();
- $len = strlen($sequence);
- ++$i;
-
- // [foo, bar, ...]
- while ($i < $len) {
- if (']' === $sequence[$i]) {
- return $output;
- }
- if (',' === $sequence[$i] || ' ' === $sequence[$i]) {
- ++$i;
-
- continue;
- }
-
- $tag = self::parseTag($sequence, $i, $flags);
- switch ($sequence[$i]) {
- case '[':
- // nested sequence
- $value = self::parseSequence($sequence, $flags, $i, $references);
- break;
- case '{':
- // nested mapping
- $value = self::parseMapping($sequence, $flags, $i, $references);
- break;
- default:
- $isQuoted = in_array($sequence[$i], array('"', "'"));
- $value = self::parseScalar($sequence, $flags, array(',', ']'), $i, null === $tag, $references);
-
- // the value can be an array if a reference has been resolved to an array var
- if (is_string($value) && !$isQuoted && false !== strpos($value, ': ')) {
- // embedded mapping?
- try {
- $pos = 0;
- $value = self::parseMapping('{'.$value.'}', $flags, $pos, $references);
- } catch (\InvalidArgumentException $e) {
- // no, it's not
- }
- }
-
- --$i;
- }
-
- if (null !== $tag) {
- $value = new TaggedValue($tag, $value);
- }
-
- $output[] = $value;
-
- ++$i;
- }
-
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', $sequence));
- }
-
- /**
- * Parses a YAML mapping.
- *
- * @param string $mapping
- * @param int $flags
- * @param int &$i
- * @param array $references
- *
- * @return array|\stdClass
- *
- * @throws ParseException When malformed inline YAML string is parsed
- */
- private static function parseMapping($mapping, $flags, &$i = 0, $references = array())
- {
- $output = array();
- $len = strlen($mapping);
- ++$i;
- $allowOverwrite = false;
-
- // {foo: bar, bar:foo, ...}
- while ($i < $len) {
- switch ($mapping[$i]) {
- case ' ':
- case ',':
- ++$i;
- continue 2;
- case '}':
- if (self::$objectForMap) {
- return (object) $output;
- }
-
- return $output;
- }
-
- // key
- $isKeyQuoted = in_array($mapping[$i], array('"', "'"), true);
- $key = self::parseScalar($mapping, $flags, array(':', ' '), $i, false, array(), true);
-
- if (':' !== $key && false === $i = strpos($mapping, ':', $i)) {
- break;
- }
-
- if (':' === $key) {
- @trigger_error(sprintf('Omitting the key of a mapping is deprecated and will throw a ParseException in 4.0 on line %d.', self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
-
- if (!(Yaml::PARSE_KEYS_AS_STRINGS & $flags)) {
- $evaluatedKey = self::evaluateScalar($key, $flags, $references);
-
- if ('' !== $key && $evaluatedKey !== $key && !is_string($evaluatedKey) && !is_int($evaluatedKey)) {
- @trigger_error(sprintf('Implicit casting of incompatible mapping keys to strings is deprecated since version 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line %d.', self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
- }
-
- if (':' !== $key && !$isKeyQuoted && (!isset($mapping[$i + 1]) || !in_array($mapping[$i + 1], array(' ', ',', '[', ']', '{', '}'), true))) {
- @trigger_error(sprintf('Using a colon after an unquoted mapping key that is not followed by an indication character (i.e. " ", ",", "[", "]", "{", "}") is deprecated since version 3.2 and will throw a ParseException in 4.0 on line %d.', self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
-
- if ('<<' === $key) {
- $allowOverwrite = true;
- }
-
- while ($i < $len) {
- if (':' === $mapping[$i] || ' ' === $mapping[$i]) {
- ++$i;
-
- continue;
- }
-
- $tag = self::parseTag($mapping, $i, $flags);
- switch ($mapping[$i]) {
- case '[':
- // nested sequence
- $value = self::parseSequence($mapping, $flags, $i, $references);
- // Spec: Keys MUST be unique; first one wins.
- // Parser cannot abort this mapping earlier, since lines
- // are processed sequentially.
- // But overwriting is allowed when a merge node is used in current block.
- if ('<<' === $key) {
- foreach ($value as $parsedValue) {
- $output += $parsedValue;
- }
- } elseif ($allowOverwrite || !isset($output[$key])) {
- if (null !== $tag) {
- $output[$key] = new TaggedValue($tag, $value);
- } else {
- $output[$key] = $value;
- }
- } elseif (isset($output[$key])) {
- @trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line %d.', $key, self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
- break;
- case '{':
- // nested mapping
- $value = self::parseMapping($mapping, $flags, $i, $references);
- // Spec: Keys MUST be unique; first one wins.
- // Parser cannot abort this mapping earlier, since lines
- // are processed sequentially.
- // But overwriting is allowed when a merge node is used in current block.
- if ('<<' === $key) {
- $output += $value;
- } elseif ($allowOverwrite || !isset($output[$key])) {
- if (null !== $tag) {
- $output[$key] = new TaggedValue($tag, $value);
- } else {
- $output[$key] = $value;
- }
- } elseif (isset($output[$key])) {
- @trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line %d.', $key, self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
- break;
- default:
- $value = self::parseScalar($mapping, $flags, array(',', '}'), $i, null === $tag, $references);
- // Spec: Keys MUST be unique; first one wins.
- // Parser cannot abort this mapping earlier, since lines
- // are processed sequentially.
- // But overwriting is allowed when a merge node is used in current block.
- if ('<<' === $key) {
- $output += $value;
- } elseif ($allowOverwrite || !isset($output[$key])) {
- if (null !== $tag) {
- $output[$key] = new TaggedValue($tag, $value);
- } else {
- $output[$key] = $value;
- }
- } elseif (isset($output[$key])) {
- @trigger_error(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line %d.', $key, self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
- --$i;
- }
- ++$i;
-
- continue 2;
- }
- }
-
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', $mapping));
- }
-
- /**
- * Evaluates scalars and replaces magic values.
- *
- * @param string $scalar
- * @param int $flags
- * @param array $references
- *
- * @return mixed The evaluated YAML string
- *
- * @throws ParseException when object parsing support was disabled and the parser detected a PHP object or when a reference could not be resolved
- */
- private static function evaluateScalar($scalar, $flags, $references = array())
- {
- $scalar = trim($scalar);
- $scalarLower = strtolower($scalar);
-
- if (0 === strpos($scalar, '*')) {
- if (false !== $pos = strpos($scalar, '#')) {
- $value = substr($scalar, 1, $pos - 2);
- } else {
- $value = substr($scalar, 1);
- }
-
- // an unquoted *
- if (false === $value || '' === $value) {
- throw new ParseException('A reference must contain at least one character.');
- }
-
- if (!array_key_exists($value, $references)) {
- throw new ParseException(sprintf('Reference "%s" does not exist.', $value));
- }
-
- return $references[$value];
- }
-
- switch (true) {
- case 'null' === $scalarLower:
- case '' === $scalar:
- case '~' === $scalar:
- return;
- case 'true' === $scalarLower:
- return true;
- case 'false' === $scalarLower:
- return false;
- case '!' === $scalar[0]:
- switch (true) {
- case 0 === strpos($scalar, '!str'):
- return (string) substr($scalar, 5);
- case 0 === strpos($scalar, '! '):
- return (int) self::parseScalar(substr($scalar, 2), $flags);
- case 0 === strpos($scalar, '!php/object:'):
- if (self::$objectSupport) {
- return unserialize(substr($scalar, 12));
- }
-
- if (self::$exceptionOnInvalidType) {
- throw new ParseException('Object support when parsing a YAML file has been disabled.');
- }
-
- return;
- case 0 === strpos($scalar, '!!php/object:'):
- if (self::$objectSupport) {
- @trigger_error(sprintf('The !!php/object tag to indicate dumped PHP objects is deprecated since version 3.1 and will be removed in 4.0. Use the !php/object tag instead on line %d.', self::$parsedLineNumber + 1), E_USER_DEPRECATED);
-
- return unserialize(substr($scalar, 13));
- }
-
- if (self::$exceptionOnInvalidType) {
- throw new ParseException('Object support when parsing a YAML file has been disabled.');
- }
-
- return;
- case 0 === strpos($scalar, '!php/const:'):
- if (self::$constantSupport) {
- if (defined($const = substr($scalar, 11))) {
- return constant($const);
- }
-
- throw new ParseException(sprintf('The constant "%s" is not defined.', $const));
- }
- if (self::$exceptionOnInvalidType) {
- throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Have you forgotten to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar));
- }
-
- return;
- case 0 === strpos($scalar, '!!float '):
- return (float) substr($scalar, 8);
- case 0 === strpos($scalar, '!!binary '):
- return self::evaluateBinaryScalar(substr($scalar, 9));
- default:
- @trigger_error(sprintf('Using the unquoted scalar value "%s" is deprecated since version 3.3 and will be considered as a tagged value in 4.0. You must quote it on line %d.', $scalar, self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
-
- // Optimize for returning strings.
- // no break
- case '+' === $scalar[0] || '-' === $scalar[0] || '.' === $scalar[0] || is_numeric($scalar[0]):
- switch (true) {
- case Parser::preg_match('{^[+-]?[0-9][0-9_]*$}', $scalar):
- $scalar = str_replace('_', '', (string) $scalar);
- // omitting the break / return as integers are handled in the next case
- // no break
- case ctype_digit($scalar):
- $raw = $scalar;
- $cast = (int) $scalar;
-
- return '0' == $scalar[0] ? octdec($scalar) : (((string) $raw == (string) $cast) ? $cast : $raw);
- case '-' === $scalar[0] && ctype_digit(substr($scalar, 1)):
- $raw = $scalar;
- $cast = (int) $scalar;
-
- return '0' == $scalar[1] ? octdec($scalar) : (((string) $raw === (string) $cast) ? $cast : $raw);
- case is_numeric($scalar):
- case Parser::preg_match(self::getHexRegex(), $scalar):
- $scalar = str_replace('_', '', $scalar);
-
- return '0x' === $scalar[0].$scalar[1] ? hexdec($scalar) : (float) $scalar;
- case '.inf' === $scalarLower:
- case '.nan' === $scalarLower:
- return -log(0);
- case '-.inf' === $scalarLower:
- return log(0);
- case Parser::preg_match('/^(-|\+)?[0-9][0-9,]*(\.[0-9_]+)?$/', $scalar):
- case Parser::preg_match('/^(-|\+)?[0-9][0-9_]*(\.[0-9_]+)?$/', $scalar):
- if (false !== strpos($scalar, ',')) {
- @trigger_error(sprintf('Using the comma as a group separator for floats is deprecated since version 3.2 and will be removed in 4.0 on line %d.', self::$parsedLineNumber + 1), E_USER_DEPRECATED);
- }
-
- return (float) str_replace(array(',', '_'), '', $scalar);
- case Parser::preg_match(self::getTimestampRegex(), $scalar):
- if (Yaml::PARSE_DATETIME & $flags) {
- // When no timezone is provided in the parsed date, YAML spec says we must assume UTC.
- return new \DateTime($scalar, new \DateTimeZone('UTC'));
- }
-
- $timeZone = date_default_timezone_get();
- date_default_timezone_set('UTC');
- $time = strtotime($scalar);
- date_default_timezone_set($timeZone);
-
- return $time;
- }
- }
-
- return (string) $scalar;
- }
-
- /**
- * @param string $value
- * @param int &$i
- * @param int $flags
- *
- * @return null|string
- */
- private static function parseTag($value, &$i, $flags)
- {
- if ('!' !== $value[$i]) {
- return;
- }
-
- $tagLength = strcspn($value, " \t\n", $i + 1);
- $tag = substr($value, $i + 1, $tagLength);
-
- $nextOffset = $i + $tagLength + 1;
- $nextOffset += strspn($value, ' ', $nextOffset);
-
- // Is followed by a scalar
- if (!isset($value[$nextOffset]) || !in_array($value[$nextOffset], array('[', '{'), true)) {
- // Manage scalars in {@link self::evaluateScalar()}
- return;
- }
-
- // Built-in tags
- if ($tag && '!' === $tag[0]) {
- throw new ParseException(sprintf('The built-in tag "!%s" is not implemented.', $tag));
- }
-
- if (Yaml::PARSE_CUSTOM_TAGS & $flags) {
- $i = $nextOffset;
-
- return $tag;
- }
-
- throw new ParseException(sprintf('Tags support is not enabled. Enable the `Yaml::PARSE_CUSTOM_TAGS` flag to use "!%s".', $tag));
- }
-
- /**
- * @param string $scalar
- *
- * @return string
- *
- * @internal
- */
- public static function evaluateBinaryScalar($scalar)
- {
- $parsedBinaryData = self::parseScalar(preg_replace('/\s/', '', $scalar));
-
- if (0 !== (strlen($parsedBinaryData) % 4)) {
- throw new ParseException(sprintf('The normalized base64 encoded data (data without whitespace characters) length must be a multiple of four (%d bytes given).', strlen($parsedBinaryData)));
- }
-
- if (!Parser::preg_match('#^[A-Z0-9+/]+={0,2}$#i', $parsedBinaryData)) {
- throw new ParseException(sprintf('The base64 encoded data (%s) contains invalid characters.', $parsedBinaryData));
- }
-
- return base64_decode($parsedBinaryData, true);
- }
-
- private static function isBinaryString($value)
- {
- return !preg_match('//u', $value) || preg_match('/[^\x00\x07-\x0d\x1B\x20-\xff]/', $value);
- }
-
- /**
- * Gets a regex that matches a YAML date.
- *
- * @return string The regular expression
- *
- * @see http://www.yaml.org/spec/1.2/spec.html#id2761573
- */
- private static function getTimestampRegex()
- {
- return <<[0-9][0-9][0-9][0-9])
- -(?P[0-9][0-9]?)
- -(?P[0-9][0-9]?)
- (?:(?:[Tt]|[ \t]+)
- (?P[0-9][0-9]?)
- :(?P[0-9][0-9])
- :(?P[0-9][0-9])
- (?:\.(?P[0-9]*))?
- (?:[ \t]*(?PZ|(?P[-+])(?P[0-9][0-9]?)
- (?::(?P[0-9][0-9]))?))?)?
- $~x
-EOF;
- }
-
- /**
- * Gets a regex that matches a YAML number in hexadecimal notation.
- *
- * @return string
- */
- private static function getHexRegex()
- {
- return '~^0x[0-9a-f_]++$~i';
- }
-}
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/LICENSE b/vendor/drush/drush/internal-copy/Config/Yaml/LICENSE
deleted file mode 100644
index 17d16a133..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2004-2017 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/vendor/drush/drush/internal-copy/Config/Yaml/Parser.php b/vendor/drush/drush/internal-copy/Config/Yaml/Parser.php
deleted file mode 100644
index 92de98dce..000000000
--- a/vendor/drush/drush/internal-copy/Config/Yaml/Parser.php
+++ /dev/null
@@ -1,1087 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Drush\Internal\Config\Yaml;
-
-use Drush\Internal\Config\Yaml\Exception\ParseException;
-use Drush\Internal\Config\Yaml\Tag\TaggedValue;
-
-/**
- * Parser parses YAML strings to convert them to PHP arrays.
- *
- * @author Fabien Potencier
- */
-class Parser
-{
- const TAG_PATTERN = '(?P![\w!.\/:-]+)';
- const BLOCK_SCALAR_HEADER_PATTERN = '(?P\||>)(?P\+|\-|\d+|\+\d+|\-\d+|\d+\+|\d+\-)?(?P +#.*)?';
-
- private $offset = 0;
- private $totalNumberOfLines;
- private $lines = array();
- private $currentLineNb = -1;
- private $currentLine = '';
- private $refs = array();
- private $skippedLineNumbers = array();
- private $locallySkippedLineNumbers = array();
-
- public function __construct()
- {
- if (func_num_args() > 0) {
- @trigger_error(sprintf('The constructor arguments $offset, $totalNumberOfLines, $skippedLineNumbers of %s are deprecated and will be removed in 4.0', self::class), E_USER_DEPRECATED);
-
- $this->offset = func_get_arg(0);
- if (func_num_args() > 1) {
- $this->totalNumberOfLines = func_get_arg(1);
- }
- if (func_num_args() > 2) {
- $this->skippedLineNumbers = func_get_arg(2);
- }
- }
- }
-
- /**
- * Parses a YAML string to a PHP value.
- *
- * @param string $value A YAML string
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- *
- * @return mixed A PHP value
- *
- * @throws ParseException If the YAML is not valid
- */
- public function parse($value, $flags = 0)
- {
- if (is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (func_num_args() >= 3) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(2)) {
- $flags |= Yaml::PARSE_OBJECT;
- }
- }
-
- if (func_num_args() >= 4) {
- @trigger_error('Passing a boolean flag to toggle object for map support is deprecated since version 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(3)) {
- $flags |= Yaml::PARSE_OBJECT_FOR_MAP;
- }
- }
-
- if (false === preg_match('//u', $value)) {
- throw new ParseException('The YAML value does not appear to be valid UTF-8.');
- }
-
- $this->refs = array();
-
- $mbEncoding = null;
- $e = null;
- $data = null;
-
- if (2 /* MB_OVERLOAD_STRING */ & (int) ini_get('mbstring.func_overload')) {
- $mbEncoding = mb_internal_encoding();
- mb_internal_encoding('UTF-8');
- }
-
- try {
- $data = $this->doParse($value, $flags);
- } catch (\Exception $e) {
- } catch (\Throwable $e) {
- }
-
- if (null !== $mbEncoding) {
- mb_internal_encoding($mbEncoding);
- }
-
- $this->lines = array();
- $this->currentLine = '';
- $this->refs = array();
- $this->skippedLineNumbers = array();
- $this->locallySkippedLineNumbers = array();
-
- if (null !== $e) {
- throw $e;
- }
-
- return $data;
- }
-
- private function doParse($value, $flags)
- {
- $this->currentLineNb = -1;
- $this->currentLine = '';
- $value = $this->cleanup($value);
- $this->lines = explode("\n", $value);
- $this->locallySkippedLineNumbers = array();
-
- if (null === $this->totalNumberOfLines) {
- $this->totalNumberOfLines = count($this->lines);
- }
-
- if (!$this->moveToNextLine()) {
- return null;
- }
-
- $data = array();
- $context = null;
- $allowOverwrite = false;
-
- while ($this->isCurrentLineEmpty()) {
- if (!$this->moveToNextLine()) {
- return null;
- }
- }
-
- // Resolves the tag and returns if end of the document
- if (null !== ($tag = $this->getLineTag($this->currentLine, $flags, false)) && !$this->moveToNextLine()) {
- return new TaggedValue($tag, '');
- }
-
- do {
- if ($this->isCurrentLineEmpty()) {
- continue;
- }
-
- // tab?
- if ("\t" === $this->currentLine[0]) {
- throw new ParseException('A YAML file cannot contain tabs as indentation.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
- }
-
- $isRef = $mergeNode = false;
- if (self::preg_match('#^\-((?P\s+)(?P.+))?$#u', rtrim($this->currentLine), $values)) {
- if ($context && 'mapping' == $context) {
- throw new ParseException('You cannot define a sequence item when in a mapping', $this->getRealCurrentLineNb() + 1, $this->currentLine);
- }
- $context = 'sequence';
-
- if (isset($values['value']) && self::preg_match('#^&(?P[^ ]+) *(?P.*)#u', $values['value'], $matches)) {
- $isRef = $matches['ref'];
- $values['value'] = $matches['value'];
- }
-
- if (isset($values['value'][1]) && '?' === $values['value'][0] && ' ' === $values['value'][1]) {
- @trigger_error(sprintf('Starting an unquoted string with a question mark followed by a space is deprecated since version 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line %d.', $this->getRealCurrentLineNb() + 1), E_USER_DEPRECATED);
- }
-
- // array
- if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) {
- $data[] = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true), $flags);
- } elseif (null !== $subTag = $this->getLineTag(ltrim($values['value'], ' '), $flags)) {
- $data[] = new TaggedValue(
- $subTag,
- $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true), $flags)
- );
- } else {
- if (isset($values['leadspaces'])
- && self::preg_match('#^(?P'.Inline::REGEX_QUOTED_STRING.'|[^ \'"\{\[].*?) *\:(\s+(?P