- Issue created by @maithri shetty
- Issue was unassigned.
- Status changed to Needs review
10 months ago 12:56pm 7 February 2024 - last update
10 months ago 9 pass - ๐ฎ๐ณIndia Raveen Kumar
Raveen Thakur โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia Raveen Kumar
Using dependency injection is a best practice in Drupal development. By injecting dependencies into classes rather than relying on Drupal's global functions or static methods, we can make our code more modular, testable, and maintainable.
- Open on Drupal.org โCore: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass -
johnv โ
committed 1e171eb9 on 8.x-1.x authored by
Maithri Shetty โ
Issue #3419767 by Maithri Shetty: Formatter/Widget should use dependency...
-
johnv โ
committed 1e171eb9 on 8.x-1.x authored by
Maithri Shetty โ
- Status changed to Fixed
9 months ago 2:47pm 14 February 2024 - ๐บ๐ธUnited States acemichael
I'm getting this fatal error after upgrade to 1.13
Error: Cannot instantiate abstract class Drupal\office_hours\EventSubscriber\OfficeHoursEventSubscriber in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core/lib/Drupal/Component/DependencyInjection/Container.php).
- ๐บ๐ฆUkraine lobodacyril
I have the same issue after update to 1.13:
Error: Cannot instantiate abstract class Drupal\office_hours\EventSubscriber\OfficeHoursEventSubscriber in Drupal\Component\DependencyInjection\Container->createService() (line 259 of /web/core/lib/Drupal/Component/DependencyInjection/Container.php).
- ๐ณ๐ฑNetherlands johnv
Please remove the office_hours.services.yml file and report back. The problem in caused in โจ Formatter: Add Event to allow other modules to modify values Fixed
Automatically closed - issue fixed for 2 weeks with no activity.