From af1ebce4730401d3c8c3aaed12671584ff272346 Mon Sep 17 00:00:00 2001 From: ashfame Date: Fri, 27 Dec 2024 13:27:27 +0400 Subject: [PATCH] load observers registry + reorder require calls --- src/plugin/class-engine.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/plugin/class-engine.php b/src/plugin/class-engine.php index 898da322..a88e6840 100644 --- a/src/plugin/class-engine.php +++ b/src/plugin/class-engine.php @@ -8,17 +8,22 @@ class Engine { public function __construct() { require 'enum-subject-type.php'; + require 'class-subject.php'; + require 'class-schema.php'; require 'class-handlers-registry.php'; - require 'class-post-type-ui.php'; - require 'class-transformer.php'; + require 'class-observers-registry.php'; + require 'class-subjects-controller.php'; + require 'class-storage.php'; - require 'class-schema.php'; - require 'utils.php'; - require 'class-subject.php'; + + require 'class-post-type-ui.php'; + require 'class-transformer.php'; require 'class-ops.php'; + require 'utils.php'; + ( function () { new Transformer(); new Post_Type_UI( self::STORAGE_POST_TYPE );