Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/Command/Cache/RebuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Utils\DrupalApi;
use Drupal\Console\Utils\Site;
use Drupal\Console\Core\Style\DrupalStyle;
Expand All @@ -24,8 +23,6 @@
*/
class RebuildCommand extends Command
{
use CommandTrait;

/**
* @var DrupalApi
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Cache/TagInvalidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@

namespace Drupal\Console\Command\Cache;

use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class TagInvalidateCommand extends Command
{
use CommandTrait;

/**
* @var CacheTagsInvalidatorInterface
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/DeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Yaml\Exception\RuntimeException;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;

class DeleteCommand extends Command
{
use CommandTrait;

protected $allConfig = [];

/**
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Config\ConfigManager;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;

class DiffCommand extends Command
{
use CommandTrait;

/**
* @var CachedStorage
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/EditCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@
use Drupal\Component\Serialization\Yaml;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Config\ConfigFactory;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Core\Utils\ConfigurationManager;

class EditCommand extends Command
{
use CommandTrait;

/**
* @var ConfigFactory
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/ExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Symfony\Component\Filesystem\Filesystem;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Core\Config\ConfigManager;

class ExportCommand extends Command
{
use CommandTrait;

/**
* @var ConfigManager
*/
Expand Down
4 changes: 1 addition & 3 deletions src/Command/Config/ExportContentTypeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Command\Shared\ExportTrait;
use Drupal\Console\Extension\Manager;

class ExportContentTypeCommand extends Command
{
use CommandTrait;
use ModuleTrait;
use ExportTrait;

Expand Down
4 changes: 1 addition & 3 deletions src/Command/Config/ExportSingleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Config\CachedStorage;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Command\Shared\ExportTrait;
use Drupal\Console\Extension\Manager;
use Webmozart\PathUtil\Path;

class ExportSingleCommand extends Command
{
use CommandTrait;
use ExportTrait;

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Command/Config/ExportViewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Config\CachedStorage;
Expand All @@ -22,7 +21,6 @@

class ExportViewCommand extends Command
{
use CommandTrait;
use ModuleTrait;
use ExportTrait;

Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Config\ConfigManager;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\ConfigImporter;
Expand All @@ -21,8 +20,6 @@

class ImportCommand extends Command
{
use CommandTrait;

/**
* @var CachedStorage
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/ImportSingleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
namespace Drupal\Console\Command\Config;

use Drupal\config\StorageReplaceDataWrapper;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Config\ConfigImporter;
use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\ConfigManager;
use Drupal\Core\Config\StorageComparer;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -23,8 +22,6 @@

class ImportSingleCommand extends Command
{
use CommandTrait;

/**
* @var CachedStorage
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Config/OverrideCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\CachedStorage;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;

class OverrideCommand extends Command
{
use CommandTrait;

/**
* @var CachedStorage
*/
Expand Down
6 changes: 2 additions & 4 deletions src/Command/Config/ValidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Symfony\Component\Console\Input\InputArgument;
Expand All @@ -21,9 +20,8 @@
*
* @package Drupal\Console\Command\Config
*/
class ValidateCommand extends Command
class ValidateCommand extends ContainerAwareCommand
{
use ContainerAwareCommandTrait;
use SchemaCheckTrait;
use PrintConfigValidationTrait;

Expand Down
4 changes: 1 addition & 3 deletions src/Command/Create/CommentsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Command\Shared\CreateTrait;
use Drupal\Console\Utils\Create\CommentData;
use Drupal\Console\Core\Style\DrupalStyle;
Expand All @@ -23,7 +22,6 @@
class CommentsCommand extends Command
{
use CreateTrait;
use CommandTrait;

/**
* @var CommentData
Expand Down
4 changes: 1 addition & 3 deletions src/Command/Create/NodesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Annotations\DrupalCommand;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Command\Shared\CreateTrait;
use Drupal\Console\Utils\Create\NodeData;
use Drupal\Console\Utils\DrupalApi;
Expand All @@ -33,7 +32,6 @@
class NodesCommand extends Command
{
use CreateTrait;
use CommandTrait;

/**
* @var DrupalApi
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Create/TermsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Annotations\DrupalCommand;
use Drupal\Console\Utils\Create\TermData;
use Drupal\Console\Utils\DrupalApi;
Expand All @@ -30,8 +29,6 @@
*/
class TermsCommand extends Command
{
use CommandTrait;

/**
* @var DrupalApi
*/
Expand Down
4 changes: 1 addition & 3 deletions src/Command/Create/UsersCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Command\Shared\CreateTrait;
use Drupal\Console\Utils\Create\UserData;
use Drupal\Console\Utils\DrupalApi;
Expand All @@ -26,7 +25,6 @@
class UsersCommand extends Command
{
use CreateTrait;
use CommandTrait;

/**
* @var DrupalApi
Expand Down
4 changes: 1 addition & 3 deletions src/Command/Create/VocabulariesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Utils\Create\VocabularyData;
use Drupal\Console\Core\Style\DrupalStyle;

Expand All @@ -22,8 +22,6 @@
*/
class VocabulariesCommand extends Command
{
use CommandTrait;

/**
* @var VocabularyData
*/
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Cron/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Lock\LockBackendInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Core\Utils\ChainQueue;

class ExecuteCommand extends Command
{
use CommandTrait;

/**
* @var ModuleHandlerInterface
*/
Expand Down
4 changes: 1 addition & 3 deletions src/Command/Cron/ReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Lock\LockBackendInterface;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Core\Style\DrupalStyle;

class ReleaseCommand extends Command
{
use CommandTrait;

/**
* @var LockBackendInterface
*/
Expand Down
Loading