- Issue created by @interlated
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
prem suthar โ made their first commit to this issueโs fork.
- ๐ฆ๐บAustralia interlated
Needs more work. Got error 'PHP message: Drupal\\Core\\DependencyInjection\\ContainerNotInitializedException: \\Drupal::$container is not initialized yet. \\Drupal::setContainer() must be called with a real container. in /web/core/lib/Drupal.php on line 169 #0 /web/core/lib/Drupal.php(197): Drupal::getContainer()\n#1 /web/modules/patched/delete_all/delete_all.module(10): Drupal::service('extension.list....')\n#2 /1/web/core/lib/Drupal/Core/Hook/HookCollectorPass.php(184): include_once('...')\n#3 /web/core/lib/Drupal/Core/Hook/HookCollectorPass.php(147): Drupal\\Core\\Hook\\HookCollectorPass->collectModuleHookImplementations('modules/patched...', 'delete_all', '/^(?(...', false)\n#4/web/core/lib/Drupal/Core/Hook/HookCollectorPass.php(78): Drupal\\Core\\Hook\\HookCollectorPass::collectAll...'
- ๐ฆ๐บAustralia interlated
include_once __DIR__ . '/includes/delete_all.content.batch.inc';
include_once __DIR__ . '/includes/delete_all.entities.batch.inc';
include_once __DIR__ . '/includes/delete_all.user.batch.inc';Fixes it. Probably should be changed to be more OO?
- First commit to issue fork.
- Merge request !8Issue #3296945 by Project Update Bot, phpsubbarao, dipakmdhrm, Ludo.R,... โ (Open) created by BenStallings
- Status changed to Needs review
2 days ago 8:52pm 3 July 2025 - ๐บ๐ธUnited States BenStallings
Phpstan now reports:
------ -----------------------------------------------------------------------
Line drush/delete_all.drush.inc
------ -----------------------------------------------------------------------
119 Class Drupal\delete_all\Controller\UserDeleteController constructor
invoked with 0 parameters, 1 required.
122 Function drush_get_option not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
143 Function drush_choice not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
147 Function drush_user_abort not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
154 Function drush_confirm not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
168 Function drush_user_abort not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
181 Class Drupal\delete_all\Controller\ContentDeleteController
constructor invoked with 0 parameters, 1 required.
184 Function drush_get_option not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
207 Function drush_choice not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
211 Function drush_user_abort not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
218 Function drush_confirm not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
232 Function drush_user_abort not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
260 Class Drupal\delete_all\Controller\EntityDeleteController constructor
invoked with 0 parameters, 1 required.
266 Function drush_get_option not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
272 Function drush_set_error not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
280 Function drush_choice not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
297 Function drush_get_option not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
304 Function drush_set_error not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
313 Function drush_choice not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
325 Function drush_confirm not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
345 Function drush_user_abort not found.
๐ก Learn more at https://phpstan.org/user-guide/discovering-symbols
------ -----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Controller/EntityDeleteController.php
------ ----------------------------------------------------------------------
29 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ---------------------------------------------------------------------- - ๐ฎ๐ณIndia jaydev bhatt Pune, Maharashtra
Fixed most of the phpcs, phpstan and cspell issues.
keeping in as needs work becuase it still show some warnings.