Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[console] Remove lazy service definition. #3442

Merged
merged 1 commit into from
Jul 16, 2017
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
1 change: 1 addition & 0 deletions bin/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Drupal\Console\Application;

set_time_limit(0);
error_reporting(-1);

$autoloaders = [];

Expand Down
1 change: 0 additions & 1 deletion config/services/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ services:
arguments: ['@console.drupal_api', '@console.site', '@class_loader', '@request_stack']
tags:
- { name: drupal.command }
lazy: true
11 changes: 0 additions & 11 deletions config/services/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,52 @@ services:
arguments: ['@config.factory', '@config.storage', '@config.storage.sync']
tags:
- { name: drupal.command }
lazy: true
console.config_diff:
class: Drupal\Console\Command\Config\DiffCommand
arguments: ['@config.storage', '@config.manager']
tags:
- { name: drupal.command }
lazy: true
console.config_edit:
class: Drupal\Console\Command\Config\EditCommand
arguments: ['@config.factory', '@config.storage', '@console.configuration_manager']
tags:
- { name: drupal.command }
lazy: true
console.config_export:
class: Drupal\Console\Command\Config\ExportCommand
arguments: ['@config.manager', '@config.storage']
tags:
- { name: drupal.command }
lazy: true
console.config_export_content_type:
class: Drupal\Console\Command\Config\ExportContentTypeCommand
arguments: ['@entity_type.manager', '@config.storage', '@console.extension_manager']
tags:
- { name: drupal.command }
lazy: true
console.config_export_single:
class: Drupal\Console\Command\Config\ExportSingleCommand
arguments: ['@entity_type.manager', '@config.storage', '@console.extension_manager']
tags:
- { name: drupal.command }
lazy: true
console.config_export_view:
class: Drupal\Console\Command\Config\ExportViewCommand
arguments: ['@entity_type.manager', '@config.storage', '@console.extension_manager']
tags:
- { name: drupal.command }
lazy: true
console.config_import:
class: Drupal\Console\Command\Config\ImportCommand
arguments: ['@config.storage', '@config.manager']
tags:
- { name: drupal.command }
lazy: true
console.config_import_single:
class: Drupal\Console\Command\Config\ImportSingleCommand
arguments: ['@config.storage', '@config.manager']
tags:
- { name: drupal.command }
lazy: true
console.config_override:
class: Drupal\Console\Command\Config\OverrideCommand
arguments: ['@config.storage', '@config.factory']
tags:
- { name: drupal.command }
lazy: true
console.config_validate:
class: Drupal\Console\Command\Config\ValidateCommand
tags:
- { name: drupal.command }
lazy: true
5 changes: 0 additions & 5 deletions config/services/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,23 @@ services:
arguments: ['@console.drupal_api', '@console.create_node_data']
tags:
- { name: drupal.command }
lazy: true
console.create_comments:
class: Drupal\Console\Command\Create\CommentsCommand
arguments: ['@console.create_comment_data']
tags:
- { name: drupal.command }
lazy: true
console.create_terms:
class: Drupal\Console\Command\Create\TermsCommand
arguments: ['@console.drupal_api', '@console.create_term_data']
tags:
- { name: drupal.command }
lazy: true
console.create_users:
class: Drupal\Console\Command\Create\UsersCommand
arguments: ['@console.drupal_api', '@console.create_user_data']
tags:
- { name: drupal.command }
lazy: true
console.create_vocabularies:
class: Drupal\Console\Command\Create\VocabulariesCommand
arguments: ['@console.create_vocabulary_data']
tags:
- { name: drupal.command }
lazy: true
2 changes: 0 additions & 2 deletions config/services/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ services:
arguments: ['@module_handler', '@lock', '@state', '@console.chain_queue']
tags:
- { name: drupal.command }
lazy: true
console.cron_release:
class: Drupal\Console\Command\Cron\ReleaseCommand
arguments: ['@lock','@console.chain_queue']
tags:
- { name: drupal.command }
lazy: true
9 changes: 0 additions & 9 deletions config/services/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,40 @@ services:
arguments: ['@console.database_settings_generator']
tags:
- { name: drupal.command }
lazy: true
console.database_client:
class: Drupal\Console\Command\Database\ClientCommand
tags:
- { name: drupal.command }
lazy: true
console.database_query:
class: Drupal\Console\Command\Database\QueryCommand
tags:
- { name: drupal.command }
lazy: true
console.database_connect:
class: Drupal\Console\Command\Database\ConnectCommand
tags:
- { name: drupal.command }
lazy: true
console.database_drop:
class: Drupal\Console\Command\Database\DropCommand
arguments: ['@database']
tags:
- { name: drupal.command }
lazy: true
console.database_dump:
class: Drupal\Console\Command\Database\DumpCommand
arguments: ['@app.root', '@console.shell_process']
tags:
- { name: drupal.command }
lazy: true
console.database_log_clear:
class: Drupal\Console\Command\Database\LogClearCommand
arguments: ['@database']
tags:
- { name: drupal.command }
lazy: true
console.database_log_poll:
class: Drupal\Console\Command\Database\LogPollCommand
arguments: ['@database', '@date.formatter', '@entity_type.manager', '@string_translation']
tags:
- { name: drupal.command }
lazy: true
console.database_restore:
class: Drupal\Console\Command\Database\RestoreCommand
arguments: ['@app.root']
tags:
- { name: drupal.command }
lazy: true
29 changes: 0 additions & 29 deletions config/services/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,166 +3,137 @@ services:
class: Drupal\Console\Command\Debug\ContainerCommand
tags:
- { name: drupal.command }
lazy: true
console.event_debug:
class: Drupal\Console\Command\Debug\EventCommand
arguments: ['@event_dispatcher']
tags:
- { name: drupal.command }
lazy: true
console.permission_debug:
class: Drupal\Console\Command\Debug\PermissionCommand
tags:
- { name: drupal.command }
lazy: true
console.plugin_debug:
class: Drupal\Console\Command\Debug\PluginCommand
tags:
- { name: drupal.command }
lazy: true
console.update_debug:
class: Drupal\Console\Command\Debug\UpdateCommand
arguments: ['@console.site', '@update.post_update_registry']
tags:
- { name: drupal.command }
lazy: true
console.user_debug:
class: Drupal\Console\Command\Debug\UserCommand
arguments: ['@entity_type.manager','@entity.query', '@console.drupal_api']
tags:
- { name: drupal.command }
lazy: true
console.views_debug:
class: Drupal\Console\Command\Debug\ViewsCommand
arguments: ['@entity_type.manager']
tags:
- { name: drupal.command }
lazy: true
console.views_plugins_debug:
class: Drupal\Console\Command\Debug\ViewsPluginsCommand
tags:
- { name: drupal.command }
lazy: true
console.state_debug:
class: Drupal\Console\Command\Debug\StateCommand
arguments: ['@state', '@keyvalue']
tags:
- { name: drupal.command }
lazy: true
console.theme_debug:
class: Drupal\Console\Command\Debug\ThemeCommand
arguments: ['@config.factory', '@theme_handler']
tags:
- { name: drupal.command }
lazy: true
console.router_debug:
class: Drupal\Console\Command\Debug\RouterCommand
arguments: ['@router.route_provider']
tags:
- { name: drupal.command }
lazy: true
console.queue_debug:
class: Drupal\Console\Command\Debug\QueueCommand
arguments: ['@plugin.manager.queue_worker']
tags:
- { name: drupal.command }
lazy: true
console.libraries_debug:
class: Drupal\Console\Command\Debug\LibrariesCommand
arguments: ['@module_handler', '@theme_handler', '@library.discovery', '@app.root']
tags:
- { name: drupal.command }
lazy: true
console.module_debug:
class: Drupal\Console\Command\Debug\ModuleCommand
arguments: ['@console.configuration_manager', '@console.site', '@http_client']
tags:
- { name: drupal.command }
lazy: true
console.image_styles_debug:
class: Drupal\Console\Command\Debug\ImageStylesCommand
arguments: ['@entity_type.manager']
tags:
- { name: drupal.command }
lazy: true
console.entity_debug:
class: Drupal\Console\Command\Debug\EntityCommand
arguments: ['@entity_type.repository', '@entity_type.manager']
tags:
- { name: drupal.command }
lazy: true
console.database_log_debug:
class: Drupal\Console\Command\Debug\DatabaseLogCommand
arguments: ['@database', '@date.formatter', '@entity_type.manager', '@string_translation']
tags:
- { name: drupal.command }
lazy: true
console.database_table_debug:
class: Drupal\Console\Command\Debug\DatabaseTableCommand
arguments: ['@console.redbean', '@database']
tags:
- { name: drupal.command }
lazy: true
console.cron_debug:
class: Drupal\Console\Command\Debug\CronCommand
arguments: ['@module_handler']
tags:
- { name: drupal.command }
lazy: true
console.breakpoints_debug:
class: Drupal\Console\Command\Debug\BreakpointsCommand
arguments: ['@breakpoint.manager', '@app.root']
tags:
- { name: drupal.command }
lazy: true
console.cache_context_debug:
class: Drupal\Console\Command\Debug\CacheContextCommand
tags:
- { name: drupal.command }
lazy: true
console.config_debug:
class: Drupal\Console\Command\Debug\ConfigCommand
arguments: ['@config.factory', '@config.storage']
tags:
- { name: drupal.command }
lazy: true
console.config_settings_debug:
class: Drupal\Console\Command\Debug\ConfigSettingsCommand
arguments: ['@settings']
tags:
- { name: drupal.command }
lazy: true
console.config_validate_debug:
class: Drupal\Console\Command\Debug\ConfigValidateCommand
tags:
- { name: drupal.command }
lazy: true
console.multisite_debug:
class: Drupal\Console\Command\Debug\MultisiteCommand
arguments: ['@app.root']
tags:
- { name: drupal.command }
lazy: true
console.migrate_debug:
class: Drupal\Console\Command\Debug\MigrateCommand
arguments: ['@?plugin.manager.migration']
tags:
- { name: drupal.command }
lazy: true
console.rest_debug:
class: Drupal\Console\Command\Debug\RestCommand
arguments: ['@?plugin.manager.rest']
tags:
- { name: drupal.command }
lazy: true
console.test_debug:
class: Drupal\Console\Command\Debug\TestCommand
arguments: ['@?test_discovery']
tags:
- { name: drupal.command }
lazy: true
console.feature_debug:
class: Drupal\Console\Command\Debug\FeaturesCommand
tags:
- { name: drupal.command }
lazy: true
1 change: 0 additions & 1 deletion config/services/entity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ services:
arguments: ['@entity_type.repository', '@entity_type.manager']
tags:
- { name: drupal.command }
lazy: true
1 change: 0 additions & 1 deletion config/services/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ services:
class: Drupal\Console\Command\Features\ImportCommand
tags:
- { name: drupal.command }
lazy: true
1 change: 0 additions & 1 deletion config/services/field.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ services:
arguments: ['@entity_type.manager', '@entity_field.manager']
tags:
- { name: drupal.command }
lazy: true
Loading