From a1afa6d98885e8b467b67afc1f8c151fca34eb2b Mon Sep 17 00:00:00 2001 From: Dimitrios Pantazis Date: Fri, 8 Nov 2024 16:05:46 +0200 Subject: [PATCH] adding the seating group path --- src/Tickets/Seating/AssetGroupPath.php | 47 ++++++++++++++++++++++++++ src/Tickets/Seating/Controller.php | 3 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 src/Tickets/Seating/AssetGroupPath.php diff --git a/src/Tickets/Seating/AssetGroupPath.php b/src/Tickets/Seating/AssetGroupPath.php new file mode 100644 index 0000000000..001fa81d60 --- /dev/null +++ b/src/Tickets/Seating/AssetGroupPath.php @@ -0,0 +1,47 @@ +plugin_path . 'build/', 'Seating/' ); + } +} diff --git a/src/Tickets/Seating/Controller.php b/src/Tickets/Seating/Controller.php index 7edade87f0..3c5f48c7b0 100644 --- a/src/Tickets/Seating/Controller.php +++ b/src/Tickets/Seating/Controller.php @@ -101,6 +101,7 @@ public function is_active(): bool { protected function do_register(): void { require_once __DIR__ . '/template-tags.php'; + $this->container->register( AssetGroupPath::class ); $this->container->singleton( Template::class ); $this->container->singleton( Localization::class ); $this->container->singleton( Session::class ); @@ -141,7 +142,7 @@ function () { * AJAX will power both frontend and backend, always register it. */ $this->container->register( Admin\Ajax::class ); - + $this->container->register( Settings::class ); if ( is_admin() ) {