minor #27947 Rename Contract to Contracts (fabpot)

This PR was merged into the 4.2-dev branch.

Discussion
----------

Rename Contract to Contracts

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

To avoid confusions between the composer name and the namespace.

Commits
-------

682836da9c renamed Contract to Contracts
This commit is contained in:
Fabien Potencier 2018-07-13 19:14:30 +02:00
commit e379146909
30 changed files with 25 additions and 25 deletions

View File

@ -120,7 +120,7 @@
"Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/", "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/",
"Symfony\\Bundle\\": "src/Symfony/Bundle/", "Symfony\\Bundle\\": "src/Symfony/Bundle/",
"Symfony\\Component\\": "src/Symfony/Component/", "Symfony\\Component\\": "src/Symfony/Component/",
"Symfony\\Contract\\": "src/Symfony/Contract/" "Symfony\\Contracts\\": "src/Symfony/Contracts/"
}, },
"classmap": [ "classmap": [
"src/Symfony/Component/Intl/Resources/stubs" "src/Symfony/Component/Intl/Resources/stubs"

View File

@ -24,7 +24,7 @@ use Symfony\Component\Form\Exception\RuntimeException;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\Options; use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
abstract class DoctrineType extends AbstractType implements ResetInterface abstract class DoctrineType extends AbstractType implements ResetInterface
{ {

View File

@ -14,7 +14,7 @@ namespace Symfony\Bridge\Monolog;
use Monolog\Logger as BaseLogger; use Monolog\Logger as BaseLogger;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Logger. * Logger.

View File

@ -15,7 +15,7 @@ use Monolog\Logger;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
class DebugProcessor implements DebugLoggerInterface, ResetInterface class DebugProcessor implements DebugLoggerInterface, ResetInterface
{ {

View File

@ -94,7 +94,7 @@ use Symfony\Component\WebLink\HttpHeaderSerializer;
use Symfony\Component\Workflow; use Symfony\Component\Workflow;
use Symfony\Component\Yaml\Command\LintCommand as BaseYamlLintCommand; use Symfony\Component\Yaml\Command\LintCommand as BaseYamlLintCommand;
use Symfony\Component\Yaml\Yaml; use Symfony\Component\Yaml\Yaml;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* FrameworkExtension. * FrameworkExtension.

View File

@ -19,7 +19,7 @@ use Symfony\Component\Cache\Exception\InvalidArgumentException;
use Symfony\Component\Cache\PruneableInterface; use Symfony\Component\Cache\PruneableInterface;
use Symfony\Component\Cache\ResettableInterface; use Symfony\Component\Cache\ResettableInterface;
use Symfony\Component\Cache\Traits\GetTrait; use Symfony\Component\Cache\Traits\GetTrait;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Chains several adapters together. * Chains several adapters together.

View File

@ -16,7 +16,7 @@ use Symfony\Component\Cache\CacheInterface;
use Symfony\Component\Cache\CacheItem; use Symfony\Component\Cache\CacheItem;
use Symfony\Component\Cache\PruneableInterface; use Symfony\Component\Cache\PruneableInterface;
use Symfony\Component\Cache\ResettableInterface; use Symfony\Component\Cache\ResettableInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* An adapter that collects data about all cache calls. * An adapter that collects data about all cache calls.

View File

@ -13,7 +13,7 @@ namespace Symfony\Component\Cache;
use Doctrine\Common\Cache\CacheProvider; use Doctrine\Common\Cache\CacheProvider;
use Psr\Cache\CacheItemPoolInterface; use Psr\Cache\CacheItemPoolInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>

View File

@ -11,7 +11,7 @@
namespace Symfony\Component\Cache; namespace Symfony\Component\Cache;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Resets a pool's local state. * Resets a pool's local state.

View File

@ -15,7 +15,7 @@ use Psr\SimpleCache\CacheInterface;
use Symfony\Component\Cache\Exception\InvalidArgumentException; use Symfony\Component\Cache\Exception\InvalidArgumentException;
use Symfony\Component\Cache\PruneableInterface; use Symfony\Component\Cache\PruneableInterface;
use Symfony\Component\Cache\ResettableInterface; use Symfony\Component\Cache\ResettableInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Chains several caches together. * Chains several caches together.

View File

@ -14,7 +14,7 @@ namespace Symfony\Component\Cache\Simple;
use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\CacheInterface;
use Symfony\Component\Cache\PruneableInterface; use Symfony\Component\Cache\PruneableInterface;
use Symfony\Component\Cache\ResettableInterface; use Symfony\Component\Cache\ResettableInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* An adapter that collects data about all cache calls. * An adapter that collects data about all cache calls.

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\Cache\Traits; namespace Symfony\Component\Cache\Traits;
use Symfony\Component\Cache\PruneableInterface; use Symfony\Component\Cache\PruneableInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* @author Nicolas Grekas <p@tchwork.com> * @author Nicolas Grekas <p@tchwork.com>

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\Console\Formatter; namespace Symfony\Component\Console\Formatter;
use Symfony\Component\Console\Exception\InvalidArgumentException; use Symfony\Component\Console\Exception\InvalidArgumentException;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* @author Jean-François Simon <contact@jfsimon.fr> * @author Jean-François Simon <contact@jfsimon.fr>

View File

@ -11,7 +11,7 @@
namespace Symfony\Component\DependencyInjection; namespace Symfony\Component\DependencyInjection;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* ResettableContainerInterface defines additional resetting functionality * ResettableContainerInterface defines additional resetting functionality

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\EventDispatcher\Debug; namespace Symfony\Component\EventDispatcher\Debug;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* @deprecated since Symfony 4.1 * @deprecated since Symfony 4.1

View File

@ -11,7 +11,7 @@
namespace Symfony\Component\ExpressionLanguage; namespace Symfony\Component\ExpressionLanguage;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Compiles a node to PHP code. * Compiles a node to PHP code.

View File

@ -13,7 +13,7 @@ namespace Symfony\Component\HttpKernel\DataCollector;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* DataCollectorInterface. * DataCollectorInterface.

View File

@ -16,7 +16,7 @@ use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* EventDataCollector. * EventDataCollector.

View File

@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\DependencyInjection; namespace Symfony\Component\HttpKernel\DependencyInjection;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Resets provided services. * Resets provided services.

View File

@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface; use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface; use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
/** /**

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\Security\Core\Authentication\Token\Storage; namespace Symfony\Component\Security\Core\Authentication\Token\Storage;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* TokenStorage contains a TokenInterface. * TokenStorage contains a TokenInterface.

View File

@ -11,7 +11,7 @@
namespace Symfony\Component\Stopwatch; namespace Symfony\Component\Stopwatch;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Stopwatch provides a way to profile code. * Stopwatch provides a way to profile code.

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\Validator\Validator; namespace Symfony\Component\Validator\Validator;
use Symfony\Component\Validator\Context\ExecutionContextInterface; use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Contract\Service\ResetInterface; use Symfony\Contracts\Service\ResetInterface;
/** /**
* Collects some data about validator calls. * Collects some data about validator calls.

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Symfony\Contract\Service; namespace Symfony\Contracts\Service;
/** /**
* Provides a way to reset an object to its initial state. * Provides a way to reset an object to its initial state.

View File

@ -19,7 +19,7 @@
"php": "^7.1.3" "php": "^7.1.3"
}, },
"autoload": { "autoload": {
"psr-4": { "Symfony\\Contract\\": "" }, "psr-4": { "Symfony\\Contracts\\": "" },
"exclude-from-classmap": [ "exclude-from-classmap": [
"**/Tests/" "**/Tests/"
] ]