Completed
Branch EDTR/refactor-fast-api-fetch (d0e0df)
by
unknown
09:08 queued 34s
created
core/services/graphql/fields/GraphQLFieldInterface.php 1 patch
Indentation   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -15,99 +15,99 @@
 block discarded – undo
15 15
 interface GraphQLFieldInterface
16 16
 {
17 17
 
18
-    /**
19
-     * @return array
20
-     */
21
-    public function caps();
22
-
23
-
24
-    /**
25
-     * @return string
26
-     */
27
-    public function description();
28
-
29
-
30
-    /**
31
-     * @return string
32
-     */
33
-    public function key();
34
-
35
-
36
-    /**
37
-     * @return string
38
-     */
39
-    public function name();
40
-
41
-
42
-    /**
43
-     * @return string|string[]
44
-     */
45
-    public function type();
46
-
47
-
48
-    /**
49
-     * Convert the field to array to be
50
-     * able to pass as config to WP GraphQL
51
-     *
52
-     * @return array
53
-     */
54
-    public function toArray();
55
-
56
-
57
-    /**
58
-     * Whether the field should be used for
59
-     * mutation inputs.
60
-     *
61
-     * @return bool
62
-     */
63
-    public function useForInput();
64
-
65
-
66
-    /**
67
-     * Whether the field should be used for
68
-     * query outputs.
69
-     *
70
-     * @return bool
71
-     */
72
-    public function useForOutput();
73
-
74
-
75
-    /**
76
-     * Whether the field should resolve
77
-     * based on the user caps etc.
78
-     *
79
-     * @return boolean
80
-     */
81
-    public function shouldResolve();
82
-
83
-
84
-    /**
85
-     * Whether the field has an explicit resolver set.
86
-     *
87
-     * @return boolean
88
-     */
89
-    public function hasInternalResolver();
90
-
91
-
92
-    /**
93
-     * Whether the field has an explicit resolver set.
94
-     *
95
-     * @param mixed       $source  The source that's passed down the GraphQL queries
96
-     * @param array       $args    The inputArgs on the field
97
-     * @param AppContext  $context The AppContext passed down the GraphQL tree
98
-     * @param ResolveInfo $info    The ResolveInfo passed down the GraphQL tree
99
-     * @return mixed
100
-     * @throws LogicException
101
-     */
102
-    public function resolve($source, array $args, AppContext $context, ResolveInfo $info);
103
-
104
-
105
-    /**
106
-     * Checks if the format callback is set.
107
-     * If yes, then uses it to format the value.
108
-     *
109
-     * @param mixed $value
110
-     * @return mixed The formatted value.
111
-     */
112
-    public function mayBeFormatValue($value);
18
+	/**
19
+	 * @return array
20
+	 */
21
+	public function caps();
22
+
23
+
24
+	/**
25
+	 * @return string
26
+	 */
27
+	public function description();
28
+
29
+
30
+	/**
31
+	 * @return string
32
+	 */
33
+	public function key();
34
+
35
+
36
+	/**
37
+	 * @return string
38
+	 */
39
+	public function name();
40
+
41
+
42
+	/**
43
+	 * @return string|string[]
44
+	 */
45
+	public function type();
46
+
47
+
48
+	/**
49
+	 * Convert the field to array to be
50
+	 * able to pass as config to WP GraphQL
51
+	 *
52
+	 * @return array
53
+	 */
54
+	public function toArray();
55
+
56
+
57
+	/**
58
+	 * Whether the field should be used for
59
+	 * mutation inputs.
60
+	 *
61
+	 * @return bool
62
+	 */
63
+	public function useForInput();
64
+
65
+
66
+	/**
67
+	 * Whether the field should be used for
68
+	 * query outputs.
69
+	 *
70
+	 * @return bool
71
+	 */
72
+	public function useForOutput();
73
+
74
+
75
+	/**
76
+	 * Whether the field should resolve
77
+	 * based on the user caps etc.
78
+	 *
79
+	 * @return boolean
80
+	 */
81
+	public function shouldResolve();
82
+
83
+
84
+	/**
85
+	 * Whether the field has an explicit resolver set.
86
+	 *
87
+	 * @return boolean
88
+	 */
89
+	public function hasInternalResolver();
90
+
91
+
92
+	/**
93
+	 * Whether the field has an explicit resolver set.
94
+	 *
95
+	 * @param mixed       $source  The source that's passed down the GraphQL queries
96
+	 * @param array       $args    The inputArgs on the field
97
+	 * @param AppContext  $context The AppContext passed down the GraphQL tree
98
+	 * @param ResolveInfo $info    The ResolveInfo passed down the GraphQL tree
99
+	 * @return mixed
100
+	 * @throws LogicException
101
+	 */
102
+	public function resolve($source, array $args, AppContext $context, ResolveInfo $info);
103
+
104
+
105
+	/**
106
+	 * Checks if the format callback is set.
107
+	 * If yes, then uses it to format the value.
108
+	 *
109
+	 * @param mixed $value
110
+	 * @return mixed The formatted value.
111
+	 */
112
+	public function mayBeFormatValue($value);
113 113
 }
Please login to merge, or discard this patch.
core/services/graphql/GraphQLManager.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -16,39 +16,39 @@
 block discarded – undo
16 16
 class GraphQLManager
17 17
 {
18 18
 
19
-    /**
20
-     * @var TypesManager $types_manager
21
-     */
22
-    protected $types_manager;
23
-
24
-    /**
25
-     * @var ConnectionsManager $connections_manager
26
-     */
27
-    protected $connections_manager;
28
-
29
-
30
-    /**
31
-     * GraphQLManager constructor.
32
-     *
33
-     * @param TypesManager $types_manager
34
-     * @param ConnectionsManager $connections_manager
35
-     */
36
-    public function __construct(TypesManager $types_manager, ConnectionsManager $connections_manager)
37
-    {
38
-        $this->types_manager = $types_manager;
39
-        $this->connections_manager = $connections_manager;
40
-    }
41
-
42
-
43
-    /**
44
-     * @throws CollectionDetailsException
45
-     * @throws CollectionLoaderException
46
-     * @since $VID:$
47
-     */
48
-    public function init()
49
-    {
50
-        $this->types_manager->init();
51
-        $this->connections_manager->init();
52
-    }
19
+	/**
20
+	 * @var TypesManager $types_manager
21
+	 */
22
+	protected $types_manager;
23
+
24
+	/**
25
+	 * @var ConnectionsManager $connections_manager
26
+	 */
27
+	protected $connections_manager;
28
+
29
+
30
+	/**
31
+	 * GraphQLManager constructor.
32
+	 *
33
+	 * @param TypesManager $types_manager
34
+	 * @param ConnectionsManager $connections_manager
35
+	 */
36
+	public function __construct(TypesManager $types_manager, ConnectionsManager $connections_manager)
37
+	{
38
+		$this->types_manager = $types_manager;
39
+		$this->connections_manager = $connections_manager;
40
+	}
41
+
42
+
43
+	/**
44
+	 * @throws CollectionDetailsException
45
+	 * @throws CollectionLoaderException
46
+	 * @since $VID:$
47
+	 */
48
+	public function init()
49
+	{
50
+		$this->types_manager->init();
51
+		$this->connections_manager->init();
52
+	}
53 53
 
54 54
 }
55 55
\ No newline at end of file
Please login to merge, or discard this patch.
core/services/graphql/connections/ConnectionCollection.php 1 patch
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -21,86 +21,86 @@
 block discarded – undo
21 21
 class ConnectionCollection extends Collection
22 22
 {
23 23
 
24
-    const COLLECTION_NAME = 'espresso_graphql_connections';
24
+	const COLLECTION_NAME = 'espresso_graphql_connections';
25 25
 
26
-    /**
27
-     * @var CollectionLoader $loader
28
-     */
29
-    protected $loader;
26
+	/**
27
+	 * @var CollectionLoader $loader
28
+	 */
29
+	protected $loader;
30 30
 
31
-    /**
32
-     * ConnectionCollection constructor
33
-     *
34
-     * @throws InvalidInterfaceException
35
-     */
36
-    public function __construct()
37
-    {
38
-        parent::__construct(
39
-            'EventEspresso\core\services\graphql\connections\ConnectionInterface',
40
-            ConnectionCollection::COLLECTION_NAME
41
-        );
42
-    }
31
+	/**
32
+	 * ConnectionCollection constructor
33
+	 *
34
+	 * @throws InvalidInterfaceException
35
+	 */
36
+	public function __construct()
37
+	{
38
+		parent::__construct(
39
+			'EventEspresso\core\services\graphql\connections\ConnectionInterface',
40
+			ConnectionCollection::COLLECTION_NAME
41
+		);
42
+	}
43 43
 
44 44
 
45
-    /**
46
-     * @throws CollectionDetailsException
47
-     * @throws CollectionLoaderException
48
-     * @since $VID:$
49
-     */
50
-    private function loadCollection()
51
-    {
52
-        if (! $this->loader instanceof CollectionLoader) {
53
-            $this->loader = new CollectionLoader(
54
-                new CollectionDetails(
55
-                // collection name
56
-                    ConnectionCollection::COLLECTION_NAME,
57
-                    // collection interface
58
-                    'EventEspresso\core\services\graphql\connections\ConnectionInterface',
59
-                    // FQCNs for classes to add (all classes within each namespace will be loaded)
60
-                    apply_filters(
61
-                        'FHEE__EventEspresso_core_services_graphql_ConnectionCollection__loadCollection__collection_FQCNs',
62
-                        ['EventEspresso\core\domain\services\graphql\connections']
63
-                    ),
64
-                    // filepaths to classes to add
65
-                    array(),
66
-                    // file mask to use if parsing folder for files to add
67
-                    '',
68
-                    // what to use as identifier for collection entities
69
-                    // using CLASS NAME prevents duplicates (works like a singleton)
70
-                    CollectionDetails::ID_CLASS_NAME
71
-                ),
72
-                $this
73
-            );
74
-        }
75
-    }
45
+	/**
46
+	 * @throws CollectionDetailsException
47
+	 * @throws CollectionLoaderException
48
+	 * @since $VID:$
49
+	 */
50
+	private function loadCollection()
51
+	{
52
+		if (! $this->loader instanceof CollectionLoader) {
53
+			$this->loader = new CollectionLoader(
54
+				new CollectionDetails(
55
+				// collection name
56
+					ConnectionCollection::COLLECTION_NAME,
57
+					// collection interface
58
+					'EventEspresso\core\services\graphql\connections\ConnectionInterface',
59
+					// FQCNs for classes to add (all classes within each namespace will be loaded)
60
+					apply_filters(
61
+						'FHEE__EventEspresso_core_services_graphql_ConnectionCollection__loadCollection__collection_FQCNs',
62
+						['EventEspresso\core\domain\services\graphql\connections']
63
+					),
64
+					// filepaths to classes to add
65
+					array(),
66
+					// file mask to use if parsing folder for files to add
67
+					'',
68
+					// what to use as identifier for collection entities
69
+					// using CLASS NAME prevents duplicates (works like a singleton)
70
+					CollectionDetails::ID_CLASS_NAME
71
+				),
72
+				$this
73
+			);
74
+		}
75
+	}
76 76
 
77 77
 
78
-    /**
79
-     * @return CollectionInterface
80
-     * @throws CollectionDetailsException
81
-     * @throws CollectionLoaderException
82
-     * @since $VID:$
83
-     */
84
-    public function loadConnections()
85
-    {
86
-        $this->loadCollection();
87
-        return $this->loader->getCollection();
88
-    }
78
+	/**
79
+	 * @return CollectionInterface
80
+	 * @throws CollectionDetailsException
81
+	 * @throws CollectionLoaderException
82
+	 * @since $VID:$
83
+	 */
84
+	public function loadConnections()
85
+	{
86
+		$this->loadCollection();
87
+		return $this->loader->getCollection();
88
+	}
89 89
 
90 90
 
91
-    /**
92
-     * getIdentifier
93
-     * Overrides EventEspresso\core\services\collections\Collection::getIdentifier()
94
-     * If no $identifier is supplied, then the  fully qualified class name is used
95
-     *
96
-     * @param        $object
97
-     * @param mixed  $identifier
98
-     * @return bool
99
-     */
100
-    public function getIdentifier($object, $identifier = null)
101
-    {
102
-        return ! empty($identifier)
103
-            ? $identifier
104
-            : get_class($object);
105
-    }
91
+	/**
92
+	 * getIdentifier
93
+	 * Overrides EventEspresso\core\services\collections\Collection::getIdentifier()
94
+	 * If no $identifier is supplied, then the  fully qualified class name is used
95
+	 *
96
+	 * @param        $object
97
+	 * @param mixed  $identifier
98
+	 * @return bool
99
+	 */
100
+	public function getIdentifier($object, $identifier = null)
101
+	{
102
+		return ! empty($identifier)
103
+			? $identifier
104
+			: get_class($object);
105
+	}
106 106
 }
107 107
\ No newline at end of file
Please login to merge, or discard this patch.
core/EE_Dependency_Map.core.php 2 patches
Indentation   +1169 added lines, -1169 removed lines patch added patch discarded remove patch
@@ -21,1173 +21,1173 @@
 block discarded – undo
21 21
 class EE_Dependency_Map
22 22
 {
23 23
 
24
-    /**
25
-     * This means that the requested class dependency is not present in the dependency map
26
-     */
27
-    const not_registered = 0;
28
-
29
-    /**
30
-     * This instructs class loaders to ALWAYS return a newly instantiated object for the requested class.
31
-     */
32
-    const load_new_object = 1;
33
-
34
-    /**
35
-     * This instructs class loaders to return a previously instantiated and cached object for the requested class.
36
-     * IF a previously instantiated object does not exist, a new one will be created and added to the cache.
37
-     */
38
-    const load_from_cache = 2;
39
-
40
-    /**
41
-     * When registering a dependency,
42
-     * this indicates to keep any existing dependencies that already exist,
43
-     * and simply discard any new dependencies declared in the incoming data
44
-     */
45
-    const KEEP_EXISTING_DEPENDENCIES = 0;
46
-
47
-    /**
48
-     * When registering a dependency,
49
-     * this indicates to overwrite any existing dependencies that already exist using the incoming data
50
-     */
51
-    const OVERWRITE_DEPENDENCIES = 1;
52
-
53
-
54
-    /**
55
-     * @type EE_Dependency_Map $_instance
56
-     */
57
-    protected static $_instance;
58
-
59
-    /**
60
-     * @var ClassInterfaceCache $class_cache
61
-     */
62
-    private $class_cache;
63
-
64
-    /**
65
-     * @type RequestInterface $request
66
-     */
67
-    protected $request;
68
-
69
-    /**
70
-     * @type LegacyRequestInterface $legacy_request
71
-     */
72
-    protected $legacy_request;
73
-
74
-    /**
75
-     * @type ResponseInterface $response
76
-     */
77
-    protected $response;
78
-
79
-    /**
80
-     * @type LoaderInterface $loader
81
-     */
82
-    protected $loader;
83
-
84
-    /**
85
-     * @type array $_dependency_map
86
-     */
87
-    protected $_dependency_map = array();
88
-
89
-    /**
90
-     * @type array $_class_loaders
91
-     */
92
-    protected $_class_loaders = array();
93
-
94
-
95
-    /**
96
-     * EE_Dependency_Map constructor.
97
-     *
98
-     * @param ClassInterfaceCache $class_cache
99
-     */
100
-    protected function __construct(ClassInterfaceCache $class_cache)
101
-    {
102
-        $this->class_cache = $class_cache;
103
-        do_action('EE_Dependency_Map____construct', $this);
104
-    }
105
-
106
-
107
-    /**
108
-     * @return void
109
-     * @throws EE_Error
110
-     * @throws InvalidAliasException
111
-     */
112
-    public function initialize()
113
-    {
114
-        $this->_register_core_dependencies();
115
-        $this->_register_core_class_loaders();
116
-        $this->_register_core_aliases();
117
-    }
118
-
119
-
120
-    /**
121
-     * @singleton method used to instantiate class object
122
-     * @param ClassInterfaceCache|null $class_cache
123
-     * @return EE_Dependency_Map
124
-     */
125
-    public static function instance(ClassInterfaceCache $class_cache = null)
126
-    {
127
-        // check if class object is instantiated, and instantiated properly
128
-        if (! self::$_instance instanceof EE_Dependency_Map
129
-            && $class_cache instanceof ClassInterfaceCache
130
-        ) {
131
-            self::$_instance = new EE_Dependency_Map($class_cache);
132
-        }
133
-        return self::$_instance;
134
-    }
135
-
136
-
137
-    /**
138
-     * @param RequestInterface $request
139
-     */
140
-    public function setRequest(RequestInterface $request)
141
-    {
142
-        $this->request = $request;
143
-    }
144
-
145
-
146
-    /**
147
-     * @param LegacyRequestInterface $legacy_request
148
-     */
149
-    public function setLegacyRequest(LegacyRequestInterface $legacy_request)
150
-    {
151
-        $this->legacy_request = $legacy_request;
152
-    }
153
-
154
-
155
-    /**
156
-     * @param ResponseInterface $response
157
-     */
158
-    public function setResponse(ResponseInterface $response)
159
-    {
160
-        $this->response = $response;
161
-    }
162
-
163
-
164
-    /**
165
-     * @param LoaderInterface $loader
166
-     */
167
-    public function setLoader(LoaderInterface $loader)
168
-    {
169
-        $this->loader = $loader;
170
-    }
171
-
172
-
173
-    /**
174
-     * @param string $class
175
-     * @param array  $dependencies
176
-     * @param int    $overwrite
177
-     * @return bool
178
-     */
179
-    public static function register_dependencies(
180
-        $class,
181
-        array $dependencies,
182
-        $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES
183
-    ) {
184
-        return self::$_instance->registerDependencies($class, $dependencies, $overwrite);
185
-    }
186
-
187
-
188
-    /**
189
-     * Assigns an array of class names and corresponding load sources (new or cached)
190
-     * to the class specified by the first parameter.
191
-     * IMPORTANT !!!
192
-     * The order of elements in the incoming $dependencies array MUST match
193
-     * the order of the constructor parameters for the class in question.
194
-     * This is especially important when overriding any existing dependencies that are registered.
195
-     * the third parameter controls whether any duplicate dependencies are overwritten or not.
196
-     *
197
-     * @param string $class
198
-     * @param array  $dependencies
199
-     * @param int    $overwrite
200
-     * @return bool
201
-     */
202
-    public function registerDependencies(
203
-        $class,
204
-        array $dependencies,
205
-        $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES
206
-    ) {
207
-        $class = trim($class, '\\');
208
-        $registered = false;
209
-        if (empty(self::$_instance->_dependency_map[ $class ])) {
210
-            self::$_instance->_dependency_map[ $class ] = array();
211
-        }
212
-        // we need to make sure that any aliases used when registering a dependency
213
-        // get resolved to the correct class name
214
-        foreach ($dependencies as $dependency => $load_source) {
215
-            $alias = self::$_instance->getFqnForAlias($dependency);
216
-            if ($overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES
217
-                || ! isset(self::$_instance->_dependency_map[ $class ][ $alias ])
218
-            ) {
219
-                unset($dependencies[ $dependency ]);
220
-                $dependencies[ $alias ] = $load_source;
221
-                $registered = true;
222
-            }
223
-        }
224
-        // now add our two lists of dependencies together.
225
-        // using Union (+=) favours the arrays in precedence from left to right,
226
-        // so $dependencies is NOT overwritten because it is listed first
227
-        // ie: with A = B + C, entries in B take precedence over duplicate entries in C
228
-        // Union is way faster than array_merge() but should be used with caution...
229
-        // especially with numerically indexed arrays
230
-        $dependencies += self::$_instance->_dependency_map[ $class ];
231
-        // now we need to ensure that the resulting dependencies
232
-        // array only has the entries that are required for the class
233
-        // so first count how many dependencies were originally registered for the class
234
-        $dependency_count = count(self::$_instance->_dependency_map[ $class ]);
235
-        // if that count is non-zero (meaning dependencies were already registered)
236
-        self::$_instance->_dependency_map[ $class ] = $dependency_count
237
-            // then truncate the  final array to match that count
238
-            ? array_slice($dependencies, 0, $dependency_count)
239
-            // otherwise just take the incoming array because nothing previously existed
240
-            : $dependencies;
241
-        return $registered;
242
-    }
243
-
244
-
245
-    /**
246
-     * @param string $class_name
247
-     * @param string $loader
248
-     * @return bool
249
-     * @throws DomainException
250
-     */
251
-    public static function register_class_loader($class_name, $loader = 'load_core')
252
-    {
253
-        if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) {
254
-            throw new DomainException(
255
-                esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso')
256
-            );
257
-        }
258
-        // check that loader is callable or method starts with "load_" and exists in EE_Registry
259
-        if (! is_callable($loader)
260
-            && (
261
-                strpos($loader, 'load_') !== 0
262
-                || ! method_exists('EE_Registry', $loader)
263
-            )
264
-        ) {
265
-            throw new DomainException(
266
-                sprintf(
267
-                    esc_html__(
268
-                        '"%1$s" is not a valid loader method on EE_Registry.',
269
-                        'event_espresso'
270
-                    ),
271
-                    $loader
272
-                )
273
-            );
274
-        }
275
-        $class_name = self::$_instance->getFqnForAlias($class_name);
276
-        if (! isset(self::$_instance->_class_loaders[ $class_name ])) {
277
-            self::$_instance->_class_loaders[ $class_name ] = $loader;
278
-            return true;
279
-        }
280
-        return false;
281
-    }
282
-
283
-
284
-    /**
285
-     * @return array
286
-     */
287
-    public function dependency_map()
288
-    {
289
-        return $this->_dependency_map;
290
-    }
291
-
292
-
293
-    /**
294
-     * returns TRUE if dependency map contains a listing for the provided class name
295
-     *
296
-     * @param string $class_name
297
-     * @return boolean
298
-     */
299
-    public function has($class_name = '')
300
-    {
301
-        // all legacy models have the same dependencies
302
-        if (strpos($class_name, 'EEM_') === 0) {
303
-            $class_name = 'LEGACY_MODELS';
304
-        }
305
-        return isset($this->_dependency_map[ $class_name ]) ? true : false;
306
-    }
307
-
308
-
309
-    /**
310
-     * returns TRUE if dependency map contains a listing for the provided class name AND dependency
311
-     *
312
-     * @param string $class_name
313
-     * @param string $dependency
314
-     * @return bool
315
-     */
316
-    public function has_dependency_for_class($class_name = '', $dependency = '')
317
-    {
318
-        // all legacy models have the same dependencies
319
-        if (strpos($class_name, 'EEM_') === 0) {
320
-            $class_name = 'LEGACY_MODELS';
321
-        }
322
-        $dependency = $this->getFqnForAlias($dependency, $class_name);
323
-        return isset($this->_dependency_map[ $class_name ][ $dependency ])
324
-            ? true
325
-            : false;
326
-    }
327
-
328
-
329
-    /**
330
-     * returns loading strategy for whether a previously cached dependency should be loaded or a new instance returned
331
-     *
332
-     * @param string $class_name
333
-     * @param string $dependency
334
-     * @return int
335
-     */
336
-    public function loading_strategy_for_class_dependency($class_name = '', $dependency = '')
337
-    {
338
-        // all legacy models have the same dependencies
339
-        if (strpos($class_name, 'EEM_') === 0) {
340
-            $class_name = 'LEGACY_MODELS';
341
-        }
342
-        $dependency = $this->getFqnForAlias($dependency);
343
-        return $this->has_dependency_for_class($class_name, $dependency)
344
-            ? $this->_dependency_map[ $class_name ][ $dependency ]
345
-            : EE_Dependency_Map::not_registered;
346
-    }
347
-
348
-
349
-    /**
350
-     * @param string $class_name
351
-     * @return string | Closure
352
-     */
353
-    public function class_loader($class_name)
354
-    {
355
-        // all legacy models use load_model()
356
-        if (strpos($class_name, 'EEM_') === 0) {
357
-            return 'load_model';
358
-        }
359
-        // EE_CPT_*_Strategy classes like EE_CPT_Event_Strategy, EE_CPT_Venue_Strategy, etc
360
-        // perform strpos() first to avoid loading regex every time we load a class
361
-        if (strpos($class_name, 'EE_CPT_') === 0
362
-            && preg_match('/^EE_CPT_([a-zA-Z]+)_Strategy$/', $class_name)
363
-        ) {
364
-            return 'load_core';
365
-        }
366
-        $class_name = $this->getFqnForAlias($class_name);
367
-        return isset($this->_class_loaders[ $class_name ]) ? $this->_class_loaders[ $class_name ] : '';
368
-    }
369
-
370
-
371
-    /**
372
-     * @return array
373
-     */
374
-    public function class_loaders()
375
-    {
376
-        return $this->_class_loaders;
377
-    }
378
-
379
-
380
-    /**
381
-     * adds an alias for a classname
382
-     *
383
-     * @param string $fqcn      the class name that should be used (concrete class to replace interface)
384
-     * @param string $alias     the class name that would be type hinted for (abstract parent or interface)
385
-     * @param string $for_class the class that has the dependency (is type hinting for the interface)
386
-     * @throws InvalidAliasException
387
-     */
388
-    public function add_alias($fqcn, $alias, $for_class = '')
389
-    {
390
-        $this->class_cache->addAlias($fqcn, $alias, $for_class);
391
-    }
392
-
393
-
394
-    /**
395
-     * Returns TRUE if the provided fully qualified name IS an alias
396
-     * WHY?
397
-     * Because if a class is type hinting for a concretion,
398
-     * then why would we need to find another class to supply it?
399
-     * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`,
400
-     * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`.
401
-     * Don't go looking for some substitute.
402
-     * Whereas if a class is type hinting for an interface...
403
-     * then we need to find an actual class to use.
404
-     * So the interface IS the alias for some other FQN,
405
-     * and we need to find out if `Fully/Qualified/Namespace/SomeInterface`
406
-     * represents some other class.
407
-     *
408
-     * @param string $fqn
409
-     * @param string $for_class
410
-     * @return bool
411
-     */
412
-    public function isAlias($fqn = '', $for_class = '')
413
-    {
414
-        return $this->class_cache->isAlias($fqn, $for_class);
415
-    }
416
-
417
-
418
-    /**
419
-     * Returns a FQN for provided alias if one exists, otherwise returns the original $alias
420
-     * functions recursively, so that multiple aliases can be used to drill down to a FQN
421
-     *  for example:
422
-     *      if the following two entries were added to the _aliases array:
423
-     *          array(
424
-     *              'interface_alias'           => 'some\namespace\interface'
425
-     *              'some\namespace\interface'  => 'some\namespace\classname'
426
-     *          )
427
-     *      then one could use EE_Registry::instance()->create( 'interface_alias' )
428
-     *      to load an instance of 'some\namespace\classname'
429
-     *
430
-     * @param string $alias
431
-     * @param string $for_class
432
-     * @return string
433
-     */
434
-    public function getFqnForAlias($alias = '', $for_class = '')
435
-    {
436
-        return (string) $this->class_cache->getFqnForAlias($alias, $for_class);
437
-    }
438
-
439
-
440
-    /**
441
-     * Registers the core dependencies and whether a previously instantiated object should be loaded from the cache,
442
-     * if one exists, or whether a new object should be generated every time the requested class is loaded.
443
-     * This is done by using the following class constants:
444
-     *        EE_Dependency_Map::load_from_cache - loads previously instantiated object
445
-     *        EE_Dependency_Map::load_new_object - generates a new object every time
446
-     */
447
-    protected function _register_core_dependencies()
448
-    {
449
-        $this->_dependency_map = array(
450
-            'EE_Request_Handler'                                                                                          => array(
451
-                'EE_Request' => EE_Dependency_Map::load_from_cache,
452
-            ),
453
-            'EE_System'                                                                                                   => array(
454
-                'EE_Registry'                                 => EE_Dependency_Map::load_from_cache,
455
-                'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
456
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
457
-                'EE_Maintenance_Mode'                         => EE_Dependency_Map::load_from_cache,
458
-            ),
459
-            'EE_Session'                                                                                                  => array(
460
-                'EventEspresso\core\services\cache\TransientCacheStorage'  => EE_Dependency_Map::load_from_cache,
461
-                'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache,
462
-                'EventEspresso\core\services\request\Request'              => EE_Dependency_Map::load_from_cache,
463
-                'EventEspresso\core\services\session\SessionStartHandler'  => EE_Dependency_Map::load_from_cache,
464
-                'EE_Encryption'                                            => EE_Dependency_Map::load_from_cache,
465
-            ),
466
-            'EE_Cart'                                                                                                     => array(
467
-                'EE_Session' => EE_Dependency_Map::load_from_cache,
468
-            ),
469
-            'EE_Front_Controller'                                                                                         => array(
470
-                'EE_Registry'              => EE_Dependency_Map::load_from_cache,
471
-                'EE_Request_Handler'       => EE_Dependency_Map::load_from_cache,
472
-                'EE_Module_Request_Router' => EE_Dependency_Map::load_from_cache,
473
-            ),
474
-            'EE_Messenger_Collection_Loader'                                                                              => array(
475
-                'EE_Messenger_Collection' => EE_Dependency_Map::load_new_object,
476
-            ),
477
-            'EE_Message_Type_Collection_Loader'                                                                           => array(
478
-                'EE_Message_Type_Collection' => EE_Dependency_Map::load_new_object,
479
-            ),
480
-            'EE_Message_Resource_Manager'                                                                                 => array(
481
-                'EE_Messenger_Collection_Loader'    => EE_Dependency_Map::load_new_object,
482
-                'EE_Message_Type_Collection_Loader' => EE_Dependency_Map::load_new_object,
483
-                'EEM_Message_Template_Group'        => EE_Dependency_Map::load_from_cache,
484
-            ),
485
-            'EE_Message_Factory'                                                                                          => array(
486
-                'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
487
-            ),
488
-            'EE_messages'                                                                                                 => array(
489
-                'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
490
-            ),
491
-            'EE_Messages_Generator'                                                                                       => array(
492
-                'EE_Messages_Queue'                    => EE_Dependency_Map::load_new_object,
493
-                'EE_Messages_Data_Handler_Collection'  => EE_Dependency_Map::load_new_object,
494
-                'EE_Message_Template_Group_Collection' => EE_Dependency_Map::load_new_object,
495
-                'EEH_Parse_Shortcodes'                 => EE_Dependency_Map::load_from_cache,
496
-            ),
497
-            'EE_Messages_Processor'                                                                                       => array(
498
-                'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
499
-            ),
500
-            'EE_Messages_Queue'                                                                                           => array(
501
-                'EE_Message_Repository' => EE_Dependency_Map::load_new_object,
502
-            ),
503
-            'EE_Messages_Template_Defaults'                                                                               => array(
504
-                'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache,
505
-                'EEM_Message_Template'       => EE_Dependency_Map::load_from_cache,
506
-            ),
507
-            'EE_Message_To_Generate_From_Request'                                                                         => array(
508
-                'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
509
-                'EE_Request_Handler'          => EE_Dependency_Map::load_from_cache,
510
-            ),
511
-            'EventEspresso\core\services\commands\CommandBus'                                                             => array(
512
-                'EventEspresso\core\services\commands\CommandHandlerManager' => EE_Dependency_Map::load_from_cache,
513
-            ),
514
-            'EventEspresso\services\commands\CommandHandler'                                                              => array(
515
-                'EE_Registry'         => EE_Dependency_Map::load_from_cache,
516
-                'CommandBusInterface' => EE_Dependency_Map::load_from_cache,
517
-            ),
518
-            'EventEspresso\core\services\commands\CommandHandlerManager'                                                  => array(
519
-                'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
520
-            ),
521
-            'EventEspresso\core\services\commands\CompositeCommandHandler'                                                => array(
522
-                'EventEspresso\core\services\commands\CommandBus'     => EE_Dependency_Map::load_from_cache,
523
-                'EventEspresso\core\services\commands\CommandFactory' => EE_Dependency_Map::load_from_cache,
524
-            ),
525
-            'EventEspresso\core\services\commands\CommandFactory'                                                         => array(
526
-                'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
527
-            ),
528
-            'EventEspresso\core\services\commands\middleware\CapChecker'                                                  => array(
529
-                'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache,
530
-            ),
531
-            'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker'                                         => array(
532
-                'EE_Capabilities' => EE_Dependency_Map::load_from_cache,
533
-            ),
534
-            'EventEspresso\core\domain\services\capabilities\RegistrationsCapChecker'                                     => array(
535
-                'EE_Capabilities' => EE_Dependency_Map::load_from_cache,
536
-            ),
537
-            'EventEspresso\core\services\commands\registration\CreateRegistrationCommandHandler'                          => array(
538
-                'EventEspresso\core\domain\services\registration\CreateRegistrationService' => EE_Dependency_Map::load_from_cache,
539
-            ),
540
-            'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommandHandler'                     => array(
541
-                'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache,
542
-            ),
543
-            'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommandHandler'                    => array(
544
-                'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache,
545
-            ),
546
-            'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler'         => array(
547
-                'EventEspresso\core\domain\services\registration\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache,
548
-            ),
549
-            'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler' => array(
550
-                'EventEspresso\core\domain\services\registration\UpdateRegistrationService' => EE_Dependency_Map::load_from_cache,
551
-            ),
552
-            'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommandHandler'                              => array(
553
-                'EventEspresso\core\domain\services\ticket\CreateTicketLineItemService' => EE_Dependency_Map::load_from_cache,
554
-            ),
555
-            'EventEspresso\core\services\commands\ticket\CancelTicketLineItemCommandHandler'                              => array(
556
-                'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache,
557
-            ),
558
-            'EventEspresso\core\domain\services\registration\CancelRegistrationService'                                   => array(
559
-                'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache,
560
-            ),
561
-            'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler'                                  => array(
562
-                'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
563
-            ),
564
-            'EventEspresso\core\services\database\TableManager'                                                           => array(
565
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
566
-            ),
567
-            'EE_Data_Migration_Class_Base'                                                                                => array(
568
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
569
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
570
-            ),
571
-            'EE_DMS_Core_4_1_0'                                                                                           => array(
572
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
573
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
574
-            ),
575
-            'EE_DMS_Core_4_2_0'                                                                                           => array(
576
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
577
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
578
-            ),
579
-            'EE_DMS_Core_4_3_0'                                                                                           => array(
580
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
581
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
582
-            ),
583
-            'EE_DMS_Core_4_4_0'                                                                                           => array(
584
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
585
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
586
-            ),
587
-            'EE_DMS_Core_4_5_0'                                                                                           => array(
588
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
589
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
590
-            ),
591
-            'EE_DMS_Core_4_6_0'                                                                                           => array(
592
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
593
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
594
-            ),
595
-            'EE_DMS_Core_4_7_0'                                                                                           => array(
596
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
597
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
598
-            ),
599
-            'EE_DMS_Core_4_8_0'                                                                                           => array(
600
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
601
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
602
-            ),
603
-            'EE_DMS_Core_4_9_0' => array(
604
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
605
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
606
-            ),
607
-            'EE_DMS_Core_4_10_0' => array(
608
-                'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
609
-                'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
610
-                'EE_DMS_Core_4_9_0'                                  => EE_Dependency_Map::load_from_cache,
611
-            ),
612
-            'EventEspresso\core\services\assets\I18nRegistry'                                                             => array(
613
-                array(),
614
-                'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
615
-            ),
616
-            'EventEspresso\core\services\assets\Registry'                                                                 => array(
617
-                'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
618
-                'EventEspresso\core\services\assets\I18nRegistry'    => EE_Dependency_Map::load_from_cache,
619
-            ),
620
-            'EventEspresso\core\domain\entities\shortcodes\EspressoCancelled'                                             => array(
621
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
622
-            ),
623
-            'EventEspresso\core\domain\entities\shortcodes\EspressoCheckout'                                              => array(
624
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
625
-            ),
626
-            'EventEspresso\core\domain\entities\shortcodes\EspressoEventAttendees'                                        => array(
627
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
628
-            ),
629
-            'EventEspresso\core\domain\entities\shortcodes\EspressoEvents'                                                => array(
630
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
631
-            ),
632
-            'EventEspresso\core\domain\entities\shortcodes\EspressoThankYou'                                              => array(
633
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
634
-            ),
635
-            'EventEspresso\core\domain\entities\shortcodes\EspressoTicketSelector'                                        => array(
636
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
637
-            ),
638
-            'EventEspresso\core\domain\entities\shortcodes\EspressoTxnPage'                                               => array(
639
-                'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
640
-            ),
641
-            'EventEspresso\core\services\cache\BasicCacheManager'                                                         => array(
642
-                'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache,
643
-            ),
644
-            'EventEspresso\core\services\cache\PostRelatedCacheManager'                                                   => array(
645
-                'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache,
646
-            ),
647
-            'EventEspresso\core\domain\services\validation\email\EmailValidationService'                                  => array(
648
-                'EE_Registration_Config'                     => EE_Dependency_Map::load_from_cache,
649
-                'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
650
-            ),
651
-            'EventEspresso\core\domain\values\EmailAddress'                                                               => array(
652
-                null,
653
-                'EventEspresso\core\domain\services\validation\email\EmailValidationService' => EE_Dependency_Map::load_from_cache,
654
-            ),
655
-            'EventEspresso\core\services\orm\ModelFieldFactory'                                                           => array(
656
-                'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
657
-            ),
658
-            'LEGACY_MODELS'                                                                                               => array(
659
-                null,
660
-                'EventEspresso\core\services\database\ModelFieldFactory' => EE_Dependency_Map::load_from_cache,
661
-            ),
662
-            'EE_Module_Request_Router'                                                                                    => array(
663
-                'EE_Request' => EE_Dependency_Map::load_from_cache,
664
-            ),
665
-            'EE_Registration_Processor'                                                                                   => array(
666
-                'EE_Request' => EE_Dependency_Map::load_from_cache,
667
-            ),
668
-            'EventEspresso\core\services\notifications\PersistentAdminNoticeManager'                                      => array(
669
-                null,
670
-                'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache,
671
-                'EventEspresso\core\services\request\Request'                         => EE_Dependency_Map::load_from_cache,
672
-            ),
673
-            'EventEspresso\core\services\licensing\LicenseService'                                                        => array(
674
-                'EventEspresso\core\domain\services\pue\Stats'  => EE_Dependency_Map::load_from_cache,
675
-                'EventEspresso\core\domain\services\pue\Config' => EE_Dependency_Map::load_from_cache,
676
-            ),
677
-            'EE_Admin_Transactions_List_Table'                                                                            => array(
678
-                null,
679
-                'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache,
680
-            ),
681
-            'EventEspresso\core\domain\services\pue\Stats'                                                                => array(
682
-                'EventEspresso\core\domain\services\pue\Config'        => EE_Dependency_Map::load_from_cache,
683
-                'EE_Maintenance_Mode'                                  => EE_Dependency_Map::load_from_cache,
684
-                'EventEspresso\core\domain\services\pue\StatsGatherer' => EE_Dependency_Map::load_from_cache,
685
-            ),
686
-            'EventEspresso\core\domain\services\pue\Config'                                                               => array(
687
-                'EE_Network_Config' => EE_Dependency_Map::load_from_cache,
688
-                'EE_Config'         => EE_Dependency_Map::load_from_cache,
689
-            ),
690
-            'EventEspresso\core\domain\services\pue\StatsGatherer'                                                        => array(
691
-                'EEM_Payment_Method' => EE_Dependency_Map::load_from_cache,
692
-                'EEM_Event'          => EE_Dependency_Map::load_from_cache,
693
-                'EEM_Datetime'       => EE_Dependency_Map::load_from_cache,
694
-                'EEM_Ticket'         => EE_Dependency_Map::load_from_cache,
695
-                'EEM_Registration'   => EE_Dependency_Map::load_from_cache,
696
-                'EEM_Transaction'    => EE_Dependency_Map::load_from_cache,
697
-                'EE_Config'          => EE_Dependency_Map::load_from_cache,
698
-            ),
699
-            'EventEspresso\core\domain\services\admin\ExitModal'                                                          => array(
700
-                'EventEspresso\core\services\assets\Registry' => EE_Dependency_Map::load_from_cache,
701
-            ),
702
-            'EventEspresso\core\domain\services\admin\PluginUpsells'                                                      => array(
703
-                'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
704
-            ),
705
-            'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha'                                    => array(
706
-                'EE_Registration_Config' => EE_Dependency_Map::load_from_cache,
707
-                'EE_Session'             => EE_Dependency_Map::load_from_cache,
708
-            ),
709
-            'EventEspresso\caffeinated\modules\recaptcha_invisible\RecaptchaAdminSettings'                                => array(
710
-                'EE_Registration_Config' => EE_Dependency_Map::load_from_cache,
711
-            ),
712
-            'EventEspresso\modules\ticket_selector\ProcessTicketSelector'                                                 => array(
713
-                'EE_Core_Config'                                                          => EE_Dependency_Map::load_from_cache,
714
-                'EventEspresso\core\services\request\Request'                             => EE_Dependency_Map::load_from_cache,
715
-                'EE_Session'                                                              => EE_Dependency_Map::load_from_cache,
716
-                'EEM_Ticket'                                                              => EE_Dependency_Map::load_from_cache,
717
-                'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => EE_Dependency_Map::load_from_cache,
718
-            ),
719
-            'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker'                                     => array(
720
-                'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
721
-            ),
722
-            'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions'                              => array(
723
-                'EE_Core_Config'                             => EE_Dependency_Map::load_from_cache,
724
-                'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
725
-            ),
726
-            'EventEspresso\core\domain\services\custom_post_types\RegisterCustomPostTypes'                                => array(
727
-                'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache,
728
-            ),
729
-            'EventEspresso\core\domain\services\custom_post_types\RegisterCustomTaxonomies'                               => array(
730
-                'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache,
731
-            ),
732
-            'EE_CPT_Strategy'                                                                                             => array(
733
-                'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache,
734
-                'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache,
735
-            ),
736
-            'EventEspresso\core\services\loaders\ObjectIdentifier'                                                        => array(
737
-                'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache,
738
-            ),
739
-            'EventEspresso\core\domain\services\assets\CoreAssetManager'                                                  => array(
740
-                'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
741
-                'EE_Currency_Config'                                 => EE_Dependency_Map::load_from_cache,
742
-                'EE_Template_Config'                                 => EE_Dependency_Map::load_from_cache,
743
-                'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
744
-                'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
745
-            ),
746
-            'EventEspresso\core\domain\services\admin\privacy\policy\PrivacyPolicy' => array(
747
-                'EEM_Payment_Method' => EE_Dependency_Map::load_from_cache,
748
-                'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache
749
-            ),
750
-            'EventEspresso\core\domain\services\admin\privacy\export\ExportAttendee' => array(
751
-                'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
752
-            ),
753
-            'EventEspresso\core\domain\services\admin\privacy\export\ExportAttendeeBillingData' => array(
754
-                'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
755
-                'EEM_Payment_Method' => EE_Dependency_Map::load_from_cache
756
-            ),
757
-            'EventEspresso\core\domain\services\admin\privacy\export\ExportCheckins' => array(
758
-                'EEM_Checkin' => EE_Dependency_Map::load_from_cache,
759
-            ),
760
-            'EventEspresso\core\domain\services\admin\privacy\export\ExportRegistration' => array(
761
-                'EEM_Registration' => EE_Dependency_Map::load_from_cache,
762
-            ),
763
-            'EventEspresso\core\domain\services\admin\privacy\export\ExportTransaction' => array(
764
-                'EEM_Transaction' => EE_Dependency_Map::load_from_cache,
765
-            ),
766
-            'EventEspresso\core\domain\services\admin\privacy\erasure\EraseAttendeeData' => array(
767
-                'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
768
-            ),
769
-            'EventEspresso\core\domain\services\admin\privacy\erasure\EraseAnswers' => array(
770
-                'EEM_Answer' => EE_Dependency_Map::load_from_cache,
771
-                'EEM_Question' => EE_Dependency_Map::load_from_cache,
772
-            ),
773
-            'EventEspresso\core\CPTs\CptQueryModifier' => array(
774
-                null,
775
-                null,
776
-                null,
777
-                'EE_Request_Handler'                          => EE_Dependency_Map::load_from_cache,
778
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
779
-                'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
780
-            ),
781
-            'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' => array(
782
-                'EE_Registry' => EE_Dependency_Map::load_from_cache,
783
-                'EE_Config' => EE_Dependency_Map::load_from_cache
784
-            ),
785
-            'EventEspresso\core\services\editor\BlockRegistrationManager'                                                 => array(
786
-                'EventEspresso\core\services\assets\BlockAssetManagerCollection' => EE_Dependency_Map::load_from_cache,
787
-                'EventEspresso\core\domain\entities\editor\BlockCollection'      => EE_Dependency_Map::load_from_cache,
788
-                'EventEspresso\core\services\route_match\RouteMatchSpecificationManager' => EE_Dependency_Map::load_from_cache,
789
-                'EventEspresso\core\services\request\Request'                    => EE_Dependency_Map::load_from_cache,
790
-            ),
791
-            'EventEspresso\core\domain\entities\editor\CoreBlocksAssetManager' => array(
792
-                'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
793
-                'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
794
-                'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
795
-            ),
796
-            'EventEspresso\core\domain\services\blocks\EventAttendeesBlockRenderer' => array(
797
-                'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
798
-                'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
799
-            ),
800
-            'EventEspresso\core\domain\entities\editor\blocks\EventAttendees' => array(
801
-                'EventEspresso\core\domain\entities\editor\CoreBlocksAssetManager' => self::load_from_cache,
802
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
803
-                'EventEspresso\core\domain\services\blocks\EventAttendeesBlockRenderer' => self::load_from_cache,
804
-            ),
805
-            'EventEspresso\core\services\route_match\RouteMatchSpecificationDependencyResolver' => array(
806
-                'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache,
807
-                'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache,
808
-                'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache,
809
-            ),
810
-            'EventEspresso\core\services\route_match\RouteMatchSpecificationFactory' => array(
811
-                'EventEspresso\core\services\route_match\RouteMatchSpecificationDependencyResolver' => EE_Dependency_Map::load_from_cache,
812
-                'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
813
-            ),
814
-            'EventEspresso\core\services\route_match\RouteMatchSpecificationManager' => array(
815
-                'EventEspresso\core\services\route_match\RouteMatchSpecificationCollection' => EE_Dependency_Map::load_from_cache,
816
-                'EventEspresso\core\services\route_match\RouteMatchSpecificationFactory' => EE_Dependency_Map::load_from_cache,
817
-            ),
818
-            'EventEspresso\core\libraries\rest_api\CalculatedModelFields' => array(
819
-                'EventEspresso\core\libraries\rest_api\calculations\CalculatedModelFieldsFactory' => EE_Dependency_Map::load_from_cache
820
-            ),
821
-            'EventEspresso\core\libraries\rest_api\calculations\CalculatedModelFieldsFactory' => array(
822
-                'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
823
-            ),
824
-            'EventEspresso\core\libraries\rest_api\controllers\model\Read' => array(
825
-                'EventEspresso\core\libraries\rest_api\CalculatedModelFields' => EE_Dependency_Map::load_from_cache
826
-            ),
827
-            'EventEspresso\core\libraries\rest_api\calculations\Datetime' => array(
828
-                'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
829
-                'EEM_Registration' => EE_Dependency_Map::load_from_cache
830
-            ),
831
-            'EventEspresso\core\libraries\rest_api\calculations\Event' => array(
832
-                'EEM_Event' => EE_Dependency_Map::load_from_cache,
833
-                'EEM_Registration' => EE_Dependency_Map::load_from_cache
834
-            ),
835
-            'EventEspresso\core\libraries\rest_api\calculations\Registration' => array(
836
-                'EEM_Registration' => EE_Dependency_Map::load_from_cache
837
-            ),
838
-            'EventEspresso\core\services\session\SessionStartHandler' => array(
839
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
840
-            ),
841
-            'EE_URL_Validation_Strategy' => array(
842
-                null,
843
-                null,
844
-                'EventEspresso\core\services\validators\URLValidator' => EE_Dependency_Map::load_from_cache
845
-            ),
846
-            'EventEspresso\admin_pages\general_settings\OrganizationSettings' => array(
847
-                'EE_Registry'                                             => EE_Dependency_Map::load_from_cache,
848
-                'EE_Organization_Config'                                  => EE_Dependency_Map::load_from_cache,
849
-                'EE_Core_Config'                                          => EE_Dependency_Map::load_from_cache,
850
-                'EE_Network_Core_Config'                                  => EE_Dependency_Map::load_from_cache,
851
-                'EventEspresso\core\services\address\CountrySubRegionDao' => EE_Dependency_Map::load_from_cache,
852
-            ),
853
-            'EventEspresso\core\services\address\CountrySubRegionDao' => array(
854
-                'EEM_State'                                            => EE_Dependency_Map::load_from_cache,
855
-                'EventEspresso\core\services\validators\JsonValidator' => EE_Dependency_Map::load_from_cache
856
-            ),
857
-            'EventEspresso\core\domain\services\admin\ajax\WordpressHeartbeat' => array(
858
-                'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
859
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
860
-            ),
861
-            'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat' => array(
862
-                'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
863
-                'EE_Environment_Config'            => EE_Dependency_Map::load_from_cache,
864
-            ),
865
-            'EventEspresso\core\services\request\files\FilesDataHandler' => array(
866
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
867
-            ),
868
-            'EventEspressoBatchRequest\BatchRequestProcessor'                              => [
869
-                'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
870
-            ],
871
-            'EventEspresso\core\domain\services\admin\registrations\list_table\QueryBuilder' => [
872
-                null,
873
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
874
-                'EEM_Registration'  => EE_Dependency_Map::load_from_cache,
875
-            ],
876
-            'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\AttendeeFilterHeader' => [
877
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
878
-                'EEM_Attendee'  => EE_Dependency_Map::load_from_cache,
879
-            ],
880
-            'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\DateFilterHeader' => [
881
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
882
-                'EEM_Datetime'  => EE_Dependency_Map::load_from_cache,
883
-            ],
884
-            'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\EventFilterHeader' => [
885
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
886
-                'EEM_Event'  => EE_Dependency_Map::load_from_cache,
887
-            ],
888
-            'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\TicketFilterHeader' => [
889
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
890
-                'EEM_Ticket'  => EE_Dependency_Map::load_from_cache,
891
-            ],
892
-            'EventEspresso\core\services\graphql\GraphQLManager' => [
893
-                'EventEspresso\core\services\graphql\TypesManager'  => EE_Dependency_Map::load_from_cache,
894
-                'EventEspresso\core\services\graphql\ConnectionsManager'  => EE_Dependency_Map::load_from_cache,
895
-            ],
896
-            'EventEspresso\core\services\graphql\TypesManager' => [
897
-                'EventEspresso\core\services\graphql\types\TypeCollection' => EE_Dependency_Map::load_from_cache,
898
-            ],
899
-            'EventEspresso\core\services\graphql\ConnectionsManager' => [
900
-                'EventEspresso\core\services\graphql\connections\ConnectionCollection' => EE_Dependency_Map::load_from_cache,
901
-            ],
902
-            'EventEspresso\core\domain\services\graphql\types\Datetime' => [
903
-                'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
904
-            ],
905
-            'EventEspresso\core\domain\services\graphql\types\Event' => [
906
-                'EEM_Event' => EE_Dependency_Map::load_from_cache,
907
-            ],
908
-            'EventEspresso\core\domain\services\graphql\types\Ticket' => [
909
-                'EEM_Ticket' => EE_Dependency_Map::load_from_cache,
910
-            ],
911
-            'EventEspresso\core\domain\services\graphql\types\Venue' => [
912
-                'EEM_Venue' => EE_Dependency_Map::load_from_cache,
913
-            ],
914
-            'EventEspresso\core\domain\services\graphql\types\State' => [
915
-                'EEM_State' => EE_Dependency_Map::load_from_cache,
916
-            ],
917
-            'EventEspresso\core\domain\services\graphql\types\Country' => [
918
-                'EEM_Country' => EE_Dependency_Map::load_from_cache,
919
-            ],
920
-            'EventEspresso\core\domain\services\graphql\connections\EventDatetimesConnection' => [
921
-                'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
922
-            ],
923
-            'EventEspresso\core\domain\services\graphql\connections\DatetimeTicketsConnection' => [
924
-                'EEM_Ticket' => EE_Dependency_Map::load_from_cache,
925
-            ],
926
-            'EventEspresso\core\domain\services\graphql\connections\TicketDatetimesConnection' => [
927
-                'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
928
-            ],
929
-            'EventEspresso\core\domain\services\graphql\connections\EventVenuesConnection' => [
930
-                'EEM_Venue' => EE_Dependency_Map::load_from_cache,
931
-            ],
932
-        );
933
-    }
934
-
935
-
936
-    /**
937
-     * Registers how core classes are loaded.
938
-     * This can either be done by simply providing the name of one of the EE_Registry loader methods such as:
939
-     *        'EE_Request_Handler' => 'load_core'
940
-     *        'EE_Messages_Queue'  => 'load_lib'
941
-     *        'EEH_Debug_Tools'    => 'load_helper'
942
-     * or, if greater control is required, by providing a custom closure. For example:
943
-     *        'Some_Class' => function () {
944
-     *            return new Some_Class();
945
-     *        },
946
-     * This is required for instantiating dependencies
947
-     * where an interface has been type hinted in a class constructor. For example:
948
-     *        'Required_Interface' => function () {
949
-     *            return new A_Class_That_Implements_Required_Interface();
950
-     *        },
951
-     */
952
-    protected function _register_core_class_loaders()
953
-    {
954
-        $this->_class_loaders = array(
955
-            // load_core
956
-            'EE_Dependency_Map'                            => function () {
957
-                return $this;
958
-            },
959
-            'EE_Capabilities'                              => 'load_core',
960
-            'EE_Encryption'                                => 'load_core',
961
-            'EE_Front_Controller'                          => 'load_core',
962
-            'EE_Module_Request_Router'                     => 'load_core',
963
-            'EE_Registry'                                  => 'load_core',
964
-            'EE_Request'                                   => function () {
965
-                return $this->legacy_request;
966
-            },
967
-            'EventEspresso\core\services\request\Request'  => function () {
968
-                return $this->request;
969
-            },
970
-            'EventEspresso\core\services\request\Response' => function () {
971
-                return $this->response;
972
-            },
973
-            'EE_Base'                                      => 'load_core',
974
-            'EE_Request_Handler'                           => 'load_core',
975
-            'EE_Session'                                   => 'load_core',
976
-            'EE_Cron_Tasks'                                => 'load_core',
977
-            'EE_System'                                    => 'load_core',
978
-            'EE_Maintenance_Mode'                          => 'load_core',
979
-            'EE_Register_CPTs'                             => 'load_core',
980
-            'EE_Admin'                                     => 'load_core',
981
-            'EE_CPT_Strategy'                              => 'load_core',
982
-            // load_class
983
-            'EE_Registration_Processor'                    => 'load_class',
984
-            // load_lib
985
-            'EE_Message_Resource_Manager'                  => 'load_lib',
986
-            'EE_Message_Type_Collection'                   => 'load_lib',
987
-            'EE_Message_Type_Collection_Loader'            => 'load_lib',
988
-            'EE_Messenger_Collection'                      => 'load_lib',
989
-            'EE_Messenger_Collection_Loader'               => 'load_lib',
990
-            'EE_Messages_Processor'                        => 'load_lib',
991
-            'EE_Message_Repository'                        => 'load_lib',
992
-            'EE_Messages_Queue'                            => 'load_lib',
993
-            'EE_Messages_Data_Handler_Collection'          => 'load_lib',
994
-            'EE_Message_Template_Group_Collection'         => 'load_lib',
995
-            'EE_Payment_Method_Manager'                    => 'load_lib',
996
-            'EE_DMS_Core_4_1_0'                            => 'load_dms',
997
-            'EE_DMS_Core_4_2_0'                            => 'load_dms',
998
-            'EE_DMS_Core_4_3_0'                            => 'load_dms',
999
-            'EE_DMS_Core_4_5_0'                            => 'load_dms',
1000
-            'EE_DMS_Core_4_6_0'                            => 'load_dms',
1001
-            'EE_DMS_Core_4_7_0'                            => 'load_dms',
1002
-            'EE_DMS_Core_4_8_0'                            => 'load_dms',
1003
-            'EE_DMS_Core_4_9_0'                            => 'load_dms',
1004
-            'EE_DMS_Core_4_10_0'                            => 'load_dms',
1005
-            'EE_Messages_Generator'                        => static function () {
1006
-                return EE_Registry::instance()->load_lib(
1007
-                    'Messages_Generator',
1008
-                    array(),
1009
-                    false,
1010
-                    false
1011
-                );
1012
-            },
1013
-            'EE_Messages_Template_Defaults'                => static function ($arguments = array()) {
1014
-                return EE_Registry::instance()->load_lib(
1015
-                    'Messages_Template_Defaults',
1016
-                    $arguments,
1017
-                    false,
1018
-                    false
1019
-                );
1020
-            },
1021
-            // load_helper
1022
-            'EEH_Parse_Shortcodes'                         => static function () {
1023
-                if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) {
1024
-                    return new EEH_Parse_Shortcodes();
1025
-                }
1026
-                return null;
1027
-            },
1028
-            'EE_Template_Config'                           => static function () {
1029
-                return EE_Config::instance()->template_settings;
1030
-            },
1031
-            'EE_Currency_Config'                           => static function () {
1032
-                return EE_Config::instance()->currency;
1033
-            },
1034
-            'EE_Registration_Config'                       => static function () {
1035
-                return EE_Config::instance()->registration;
1036
-            },
1037
-            'EE_Core_Config'                               => static function () {
1038
-                return EE_Config::instance()->core;
1039
-            },
1040
-            'EventEspresso\core\services\loaders\Loader'   => static function () {
1041
-                return LoaderFactory::getLoader();
1042
-            },
1043
-            'EE_Network_Config'                            => static function () {
1044
-                return EE_Network_Config::instance();
1045
-            },
1046
-            'EE_Config'                                    => static function () {
1047
-                return EE_Config::instance();
1048
-            },
1049
-            'EventEspresso\core\domain\Domain'             => static function () {
1050
-                return DomainFactory::getEventEspressoCoreDomain();
1051
-            },
1052
-            'EE_Admin_Config'                              => static function () {
1053
-                return EE_Config::instance()->admin;
1054
-            },
1055
-            'EE_Organization_Config'                       => static function () {
1056
-                return EE_Config::instance()->organization;
1057
-            },
1058
-            'EE_Network_Core_Config'                       => static function () {
1059
-                return EE_Network_Config::instance()->core;
1060
-            },
1061
-            'EE_Environment_Config'                        => static function () {
1062
-                return EE_Config::instance()->environment;
1063
-            },
1064
-        );
1065
-    }
1066
-
1067
-
1068
-    /**
1069
-     * can be used for supplying alternate names for classes,
1070
-     * or for connecting interface names to instantiable classes
1071
-     *
1072
-     * @throws InvalidAliasException
1073
-     */
1074
-    protected function _register_core_aliases()
1075
-    {
1076
-        $aliases = array(
1077
-            'CommandBusInterface'                                                          => 'EventEspresso\core\services\commands\CommandBusInterface',
1078
-            'EventEspresso\core\services\commands\CommandBusInterface'                     => 'EventEspresso\core\services\commands\CommandBus',
1079
-            'CommandHandlerManagerInterface'                                               => 'EventEspresso\core\services\commands\CommandHandlerManagerInterface',
1080
-            'EventEspresso\core\services\commands\CommandHandlerManagerInterface'          => 'EventEspresso\core\services\commands\CommandHandlerManager',
1081
-            'CapChecker'                                                                   => 'EventEspresso\core\services\commands\middleware\CapChecker',
1082
-            'AddActionHook'                                                                => 'EventEspresso\core\services\commands\middleware\AddActionHook',
1083
-            'CapabilitiesChecker'                                                          => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker',
1084
-            'CapabilitiesCheckerInterface'                                                 => 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface',
1085
-            'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker',
1086
-            'CreateRegistrationService'                                                    => 'EventEspresso\core\domain\services\registration\CreateRegistrationService',
1087
-            'CreateRegistrationCommandHandler'                                             => 'EventEspresso\core\services\commands\registration\CreateRegistrationCommand',
1088
-            'CopyRegistrationDetailsCommandHandler'                                        => 'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommand',
1089
-            'CopyRegistrationPaymentsCommandHandler'                                       => 'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommand',
1090
-            'CancelRegistrationAndTicketLineItemCommandHandler'                            => 'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler',
1091
-            'UpdateRegistrationAndTransactionAfterChangeCommandHandler'                    => 'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler',
1092
-            'CreateTicketLineItemCommandHandler'                                           => 'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommand',
1093
-            'CreateTransactionCommandHandler'                                              => 'EventEspresso\core\services\commands\transaction\CreateTransactionCommandHandler',
1094
-            'CreateAttendeeCommandHandler'                                                 => 'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler',
1095
-            'TableManager'                                                                 => 'EventEspresso\core\services\database\TableManager',
1096
-            'TableAnalysis'                                                                => 'EventEspresso\core\services\database\TableAnalysis',
1097
-            'EspressoShortcode'                                                            => 'EventEspresso\core\services\shortcodes\EspressoShortcode',
1098
-            'ShortcodeInterface'                                                           => 'EventEspresso\core\services\shortcodes\ShortcodeInterface',
1099
-            'EventEspresso\core\services\shortcodes\ShortcodeInterface'                    => 'EventEspresso\core\services\shortcodes\EspressoShortcode',
1100
-            'EventEspresso\core\services\cache\CacheStorageInterface'                      => 'EventEspresso\core\services\cache\TransientCacheStorage',
1101
-            'LoaderInterface'                                                              => 'EventEspresso\core\services\loaders\LoaderInterface',
1102
-            'EventEspresso\core\services\loaders\LoaderInterface'                          => 'EventEspresso\core\services\loaders\Loader',
1103
-            'CommandFactoryInterface'                                                      => 'EventEspresso\core\services\commands\CommandFactoryInterface',
1104
-            'EventEspresso\core\services\commands\CommandFactoryInterface'                 => 'EventEspresso\core\services\commands\CommandFactory',
1105
-            'EmailValidatorInterface'                                                      => 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface',
1106
-            'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface'  => 'EventEspresso\core\domain\services\validation\email\EmailValidationService',
1107
-            'NoticeConverterInterface'                                                     => 'EventEspresso\core\services\notices\NoticeConverterInterface',
1108
-            'EventEspresso\core\services\notices\NoticeConverterInterface'                 => 'EventEspresso\core\services\notices\ConvertNoticesToEeErrors',
1109
-            'NoticesContainerInterface'                                                    => 'EventEspresso\core\services\notices\NoticesContainerInterface',
1110
-            'EventEspresso\core\services\notices\NoticesContainerInterface'                => 'EventEspresso\core\services\notices\NoticesContainer',
1111
-            'EventEspresso\core\services\request\RequestInterface'                         => 'EventEspresso\core\services\request\Request',
1112
-            'EventEspresso\core\services\request\ResponseInterface'                        => 'EventEspresso\core\services\request\Response',
1113
-            'EventEspresso\core\domain\DomainInterface'                                    => 'EventEspresso\core\domain\Domain',
1114
-            'Registration_Processor'                                                       => 'EE_Registration_Processor',
1115
-        );
1116
-        foreach ($aliases as $alias => $fqn) {
1117
-            if (is_array($fqn)) {
1118
-                foreach ($fqn as $class => $for_class) {
1119
-                    $this->class_cache->addAlias($class, $alias, $for_class);
1120
-                }
1121
-                continue;
1122
-            }
1123
-            $this->class_cache->addAlias($fqn, $alias);
1124
-        }
1125
-        if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
1126
-            $this->class_cache->addAlias(
1127
-                'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices',
1128
-                'EventEspresso\core\services\notices\NoticeConverterInterface'
1129
-            );
1130
-        }
1131
-    }
1132
-
1133
-
1134
-    /**
1135
-     * This is used to reset the internal map and class_loaders to their original default state at the beginning of the
1136
-     * request Primarily used by unit tests.
1137
-     */
1138
-    public function reset()
1139
-    {
1140
-        $this->_register_core_class_loaders();
1141
-        $this->_register_core_dependencies();
1142
-    }
1143
-
1144
-
1145
-    /**
1146
-     * PLZ NOTE: a better name for this method would be is_alias()
1147
-     * because it returns TRUE if the provided fully qualified name IS an alias
1148
-     * WHY?
1149
-     * Because if a class is type hinting for a concretion,
1150
-     * then why would we need to find another class to supply it?
1151
-     * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`,
1152
-     * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`.
1153
-     * Don't go looking for some substitute.
1154
-     * Whereas if a class is type hinting for an interface...
1155
-     * then we need to find an actual class to use.
1156
-     * So the interface IS the alias for some other FQN,
1157
-     * and we need to find out if `Fully/Qualified/Namespace/SomeInterface`
1158
-     * represents some other class.
1159
-     *
1160
-     * @deprecated 4.9.62.p
1161
-     * @param string $fqn
1162
-     * @param string $for_class
1163
-     * @return bool
1164
-     */
1165
-    public function has_alias($fqn = '', $for_class = '')
1166
-    {
1167
-        return $this->isAlias($fqn, $for_class);
1168
-    }
1169
-
1170
-
1171
-    /**
1172
-     * PLZ NOTE: a better name for this method would be get_fqn_for_alias()
1173
-     * because it returns a FQN for provided alias if one exists, otherwise returns the original $alias
1174
-     * functions recursively, so that multiple aliases can be used to drill down to a FQN
1175
-     *  for example:
1176
-     *      if the following two entries were added to the _aliases array:
1177
-     *          array(
1178
-     *              'interface_alias'           => 'some\namespace\interface'
1179
-     *              'some\namespace\interface'  => 'some\namespace\classname'
1180
-     *          )
1181
-     *      then one could use EE_Registry::instance()->create( 'interface_alias' )
1182
-     *      to load an instance of 'some\namespace\classname'
1183
-     *
1184
-     * @deprecated 4.9.62.p
1185
-     * @param string $alias
1186
-     * @param string $for_class
1187
-     * @return string
1188
-     */
1189
-    public function get_alias($alias = '', $for_class = '')
1190
-    {
1191
-        return $this->getFqnForAlias($alias, $for_class);
1192
-    }
24
+	/**
25
+	 * This means that the requested class dependency is not present in the dependency map
26
+	 */
27
+	const not_registered = 0;
28
+
29
+	/**
30
+	 * This instructs class loaders to ALWAYS return a newly instantiated object for the requested class.
31
+	 */
32
+	const load_new_object = 1;
33
+
34
+	/**
35
+	 * This instructs class loaders to return a previously instantiated and cached object for the requested class.
36
+	 * IF a previously instantiated object does not exist, a new one will be created and added to the cache.
37
+	 */
38
+	const load_from_cache = 2;
39
+
40
+	/**
41
+	 * When registering a dependency,
42
+	 * this indicates to keep any existing dependencies that already exist,
43
+	 * and simply discard any new dependencies declared in the incoming data
44
+	 */
45
+	const KEEP_EXISTING_DEPENDENCIES = 0;
46
+
47
+	/**
48
+	 * When registering a dependency,
49
+	 * this indicates to overwrite any existing dependencies that already exist using the incoming data
50
+	 */
51
+	const OVERWRITE_DEPENDENCIES = 1;
52
+
53
+
54
+	/**
55
+	 * @type EE_Dependency_Map $_instance
56
+	 */
57
+	protected static $_instance;
58
+
59
+	/**
60
+	 * @var ClassInterfaceCache $class_cache
61
+	 */
62
+	private $class_cache;
63
+
64
+	/**
65
+	 * @type RequestInterface $request
66
+	 */
67
+	protected $request;
68
+
69
+	/**
70
+	 * @type LegacyRequestInterface $legacy_request
71
+	 */
72
+	protected $legacy_request;
73
+
74
+	/**
75
+	 * @type ResponseInterface $response
76
+	 */
77
+	protected $response;
78
+
79
+	/**
80
+	 * @type LoaderInterface $loader
81
+	 */
82
+	protected $loader;
83
+
84
+	/**
85
+	 * @type array $_dependency_map
86
+	 */
87
+	protected $_dependency_map = array();
88
+
89
+	/**
90
+	 * @type array $_class_loaders
91
+	 */
92
+	protected $_class_loaders = array();
93
+
94
+
95
+	/**
96
+	 * EE_Dependency_Map constructor.
97
+	 *
98
+	 * @param ClassInterfaceCache $class_cache
99
+	 */
100
+	protected function __construct(ClassInterfaceCache $class_cache)
101
+	{
102
+		$this->class_cache = $class_cache;
103
+		do_action('EE_Dependency_Map____construct', $this);
104
+	}
105
+
106
+
107
+	/**
108
+	 * @return void
109
+	 * @throws EE_Error
110
+	 * @throws InvalidAliasException
111
+	 */
112
+	public function initialize()
113
+	{
114
+		$this->_register_core_dependencies();
115
+		$this->_register_core_class_loaders();
116
+		$this->_register_core_aliases();
117
+	}
118
+
119
+
120
+	/**
121
+	 * @singleton method used to instantiate class object
122
+	 * @param ClassInterfaceCache|null $class_cache
123
+	 * @return EE_Dependency_Map
124
+	 */
125
+	public static function instance(ClassInterfaceCache $class_cache = null)
126
+	{
127
+		// check if class object is instantiated, and instantiated properly
128
+		if (! self::$_instance instanceof EE_Dependency_Map
129
+			&& $class_cache instanceof ClassInterfaceCache
130
+		) {
131
+			self::$_instance = new EE_Dependency_Map($class_cache);
132
+		}
133
+		return self::$_instance;
134
+	}
135
+
136
+
137
+	/**
138
+	 * @param RequestInterface $request
139
+	 */
140
+	public function setRequest(RequestInterface $request)
141
+	{
142
+		$this->request = $request;
143
+	}
144
+
145
+
146
+	/**
147
+	 * @param LegacyRequestInterface $legacy_request
148
+	 */
149
+	public function setLegacyRequest(LegacyRequestInterface $legacy_request)
150
+	{
151
+		$this->legacy_request = $legacy_request;
152
+	}
153
+
154
+
155
+	/**
156
+	 * @param ResponseInterface $response
157
+	 */
158
+	public function setResponse(ResponseInterface $response)
159
+	{
160
+		$this->response = $response;
161
+	}
162
+
163
+
164
+	/**
165
+	 * @param LoaderInterface $loader
166
+	 */
167
+	public function setLoader(LoaderInterface $loader)
168
+	{
169
+		$this->loader = $loader;
170
+	}
171
+
172
+
173
+	/**
174
+	 * @param string $class
175
+	 * @param array  $dependencies
176
+	 * @param int    $overwrite
177
+	 * @return bool
178
+	 */
179
+	public static function register_dependencies(
180
+		$class,
181
+		array $dependencies,
182
+		$overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES
183
+	) {
184
+		return self::$_instance->registerDependencies($class, $dependencies, $overwrite);
185
+	}
186
+
187
+
188
+	/**
189
+	 * Assigns an array of class names and corresponding load sources (new or cached)
190
+	 * to the class specified by the first parameter.
191
+	 * IMPORTANT !!!
192
+	 * The order of elements in the incoming $dependencies array MUST match
193
+	 * the order of the constructor parameters for the class in question.
194
+	 * This is especially important when overriding any existing dependencies that are registered.
195
+	 * the third parameter controls whether any duplicate dependencies are overwritten or not.
196
+	 *
197
+	 * @param string $class
198
+	 * @param array  $dependencies
199
+	 * @param int    $overwrite
200
+	 * @return bool
201
+	 */
202
+	public function registerDependencies(
203
+		$class,
204
+		array $dependencies,
205
+		$overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES
206
+	) {
207
+		$class = trim($class, '\\');
208
+		$registered = false;
209
+		if (empty(self::$_instance->_dependency_map[ $class ])) {
210
+			self::$_instance->_dependency_map[ $class ] = array();
211
+		}
212
+		// we need to make sure that any aliases used when registering a dependency
213
+		// get resolved to the correct class name
214
+		foreach ($dependencies as $dependency => $load_source) {
215
+			$alias = self::$_instance->getFqnForAlias($dependency);
216
+			if ($overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES
217
+				|| ! isset(self::$_instance->_dependency_map[ $class ][ $alias ])
218
+			) {
219
+				unset($dependencies[ $dependency ]);
220
+				$dependencies[ $alias ] = $load_source;
221
+				$registered = true;
222
+			}
223
+		}
224
+		// now add our two lists of dependencies together.
225
+		// using Union (+=) favours the arrays in precedence from left to right,
226
+		// so $dependencies is NOT overwritten because it is listed first
227
+		// ie: with A = B + C, entries in B take precedence over duplicate entries in C
228
+		// Union is way faster than array_merge() but should be used with caution...
229
+		// especially with numerically indexed arrays
230
+		$dependencies += self::$_instance->_dependency_map[ $class ];
231
+		// now we need to ensure that the resulting dependencies
232
+		// array only has the entries that are required for the class
233
+		// so first count how many dependencies were originally registered for the class
234
+		$dependency_count = count(self::$_instance->_dependency_map[ $class ]);
235
+		// if that count is non-zero (meaning dependencies were already registered)
236
+		self::$_instance->_dependency_map[ $class ] = $dependency_count
237
+			// then truncate the  final array to match that count
238
+			? array_slice($dependencies, 0, $dependency_count)
239
+			// otherwise just take the incoming array because nothing previously existed
240
+			: $dependencies;
241
+		return $registered;
242
+	}
243
+
244
+
245
+	/**
246
+	 * @param string $class_name
247
+	 * @param string $loader
248
+	 * @return bool
249
+	 * @throws DomainException
250
+	 */
251
+	public static function register_class_loader($class_name, $loader = 'load_core')
252
+	{
253
+		if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) {
254
+			throw new DomainException(
255
+				esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso')
256
+			);
257
+		}
258
+		// check that loader is callable or method starts with "load_" and exists in EE_Registry
259
+		if (! is_callable($loader)
260
+			&& (
261
+				strpos($loader, 'load_') !== 0
262
+				|| ! method_exists('EE_Registry', $loader)
263
+			)
264
+		) {
265
+			throw new DomainException(
266
+				sprintf(
267
+					esc_html__(
268
+						'"%1$s" is not a valid loader method on EE_Registry.',
269
+						'event_espresso'
270
+					),
271
+					$loader
272
+				)
273
+			);
274
+		}
275
+		$class_name = self::$_instance->getFqnForAlias($class_name);
276
+		if (! isset(self::$_instance->_class_loaders[ $class_name ])) {
277
+			self::$_instance->_class_loaders[ $class_name ] = $loader;
278
+			return true;
279
+		}
280
+		return false;
281
+	}
282
+
283
+
284
+	/**
285
+	 * @return array
286
+	 */
287
+	public function dependency_map()
288
+	{
289
+		return $this->_dependency_map;
290
+	}
291
+
292
+
293
+	/**
294
+	 * returns TRUE if dependency map contains a listing for the provided class name
295
+	 *
296
+	 * @param string $class_name
297
+	 * @return boolean
298
+	 */
299
+	public function has($class_name = '')
300
+	{
301
+		// all legacy models have the same dependencies
302
+		if (strpos($class_name, 'EEM_') === 0) {
303
+			$class_name = 'LEGACY_MODELS';
304
+		}
305
+		return isset($this->_dependency_map[ $class_name ]) ? true : false;
306
+	}
307
+
308
+
309
+	/**
310
+	 * returns TRUE if dependency map contains a listing for the provided class name AND dependency
311
+	 *
312
+	 * @param string $class_name
313
+	 * @param string $dependency
314
+	 * @return bool
315
+	 */
316
+	public function has_dependency_for_class($class_name = '', $dependency = '')
317
+	{
318
+		// all legacy models have the same dependencies
319
+		if (strpos($class_name, 'EEM_') === 0) {
320
+			$class_name = 'LEGACY_MODELS';
321
+		}
322
+		$dependency = $this->getFqnForAlias($dependency, $class_name);
323
+		return isset($this->_dependency_map[ $class_name ][ $dependency ])
324
+			? true
325
+			: false;
326
+	}
327
+
328
+
329
+	/**
330
+	 * returns loading strategy for whether a previously cached dependency should be loaded or a new instance returned
331
+	 *
332
+	 * @param string $class_name
333
+	 * @param string $dependency
334
+	 * @return int
335
+	 */
336
+	public function loading_strategy_for_class_dependency($class_name = '', $dependency = '')
337
+	{
338
+		// all legacy models have the same dependencies
339
+		if (strpos($class_name, 'EEM_') === 0) {
340
+			$class_name = 'LEGACY_MODELS';
341
+		}
342
+		$dependency = $this->getFqnForAlias($dependency);
343
+		return $this->has_dependency_for_class($class_name, $dependency)
344
+			? $this->_dependency_map[ $class_name ][ $dependency ]
345
+			: EE_Dependency_Map::not_registered;
346
+	}
347
+
348
+
349
+	/**
350
+	 * @param string $class_name
351
+	 * @return string | Closure
352
+	 */
353
+	public function class_loader($class_name)
354
+	{
355
+		// all legacy models use load_model()
356
+		if (strpos($class_name, 'EEM_') === 0) {
357
+			return 'load_model';
358
+		}
359
+		// EE_CPT_*_Strategy classes like EE_CPT_Event_Strategy, EE_CPT_Venue_Strategy, etc
360
+		// perform strpos() first to avoid loading regex every time we load a class
361
+		if (strpos($class_name, 'EE_CPT_') === 0
362
+			&& preg_match('/^EE_CPT_([a-zA-Z]+)_Strategy$/', $class_name)
363
+		) {
364
+			return 'load_core';
365
+		}
366
+		$class_name = $this->getFqnForAlias($class_name);
367
+		return isset($this->_class_loaders[ $class_name ]) ? $this->_class_loaders[ $class_name ] : '';
368
+	}
369
+
370
+
371
+	/**
372
+	 * @return array
373
+	 */
374
+	public function class_loaders()
375
+	{
376
+		return $this->_class_loaders;
377
+	}
378
+
379
+
380
+	/**
381
+	 * adds an alias for a classname
382
+	 *
383
+	 * @param string $fqcn      the class name that should be used (concrete class to replace interface)
384
+	 * @param string $alias     the class name that would be type hinted for (abstract parent or interface)
385
+	 * @param string $for_class the class that has the dependency (is type hinting for the interface)
386
+	 * @throws InvalidAliasException
387
+	 */
388
+	public function add_alias($fqcn, $alias, $for_class = '')
389
+	{
390
+		$this->class_cache->addAlias($fqcn, $alias, $for_class);
391
+	}
392
+
393
+
394
+	/**
395
+	 * Returns TRUE if the provided fully qualified name IS an alias
396
+	 * WHY?
397
+	 * Because if a class is type hinting for a concretion,
398
+	 * then why would we need to find another class to supply it?
399
+	 * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`,
400
+	 * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`.
401
+	 * Don't go looking for some substitute.
402
+	 * Whereas if a class is type hinting for an interface...
403
+	 * then we need to find an actual class to use.
404
+	 * So the interface IS the alias for some other FQN,
405
+	 * and we need to find out if `Fully/Qualified/Namespace/SomeInterface`
406
+	 * represents some other class.
407
+	 *
408
+	 * @param string $fqn
409
+	 * @param string $for_class
410
+	 * @return bool
411
+	 */
412
+	public function isAlias($fqn = '', $for_class = '')
413
+	{
414
+		return $this->class_cache->isAlias($fqn, $for_class);
415
+	}
416
+
417
+
418
+	/**
419
+	 * Returns a FQN for provided alias if one exists, otherwise returns the original $alias
420
+	 * functions recursively, so that multiple aliases can be used to drill down to a FQN
421
+	 *  for example:
422
+	 *      if the following two entries were added to the _aliases array:
423
+	 *          array(
424
+	 *              'interface_alias'           => 'some\namespace\interface'
425
+	 *              'some\namespace\interface'  => 'some\namespace\classname'
426
+	 *          )
427
+	 *      then one could use EE_Registry::instance()->create( 'interface_alias' )
428
+	 *      to load an instance of 'some\namespace\classname'
429
+	 *
430
+	 * @param string $alias
431
+	 * @param string $for_class
432
+	 * @return string
433
+	 */
434
+	public function getFqnForAlias($alias = '', $for_class = '')
435
+	{
436
+		return (string) $this->class_cache->getFqnForAlias($alias, $for_class);
437
+	}
438
+
439
+
440
+	/**
441
+	 * Registers the core dependencies and whether a previously instantiated object should be loaded from the cache,
442
+	 * if one exists, or whether a new object should be generated every time the requested class is loaded.
443
+	 * This is done by using the following class constants:
444
+	 *        EE_Dependency_Map::load_from_cache - loads previously instantiated object
445
+	 *        EE_Dependency_Map::load_new_object - generates a new object every time
446
+	 */
447
+	protected function _register_core_dependencies()
448
+	{
449
+		$this->_dependency_map = array(
450
+			'EE_Request_Handler'                                                                                          => array(
451
+				'EE_Request' => EE_Dependency_Map::load_from_cache,
452
+			),
453
+			'EE_System'                                                                                                   => array(
454
+				'EE_Registry'                                 => EE_Dependency_Map::load_from_cache,
455
+				'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
456
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
457
+				'EE_Maintenance_Mode'                         => EE_Dependency_Map::load_from_cache,
458
+			),
459
+			'EE_Session'                                                                                                  => array(
460
+				'EventEspresso\core\services\cache\TransientCacheStorage'  => EE_Dependency_Map::load_from_cache,
461
+				'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache,
462
+				'EventEspresso\core\services\request\Request'              => EE_Dependency_Map::load_from_cache,
463
+				'EventEspresso\core\services\session\SessionStartHandler'  => EE_Dependency_Map::load_from_cache,
464
+				'EE_Encryption'                                            => EE_Dependency_Map::load_from_cache,
465
+			),
466
+			'EE_Cart'                                                                                                     => array(
467
+				'EE_Session' => EE_Dependency_Map::load_from_cache,
468
+			),
469
+			'EE_Front_Controller'                                                                                         => array(
470
+				'EE_Registry'              => EE_Dependency_Map::load_from_cache,
471
+				'EE_Request_Handler'       => EE_Dependency_Map::load_from_cache,
472
+				'EE_Module_Request_Router' => EE_Dependency_Map::load_from_cache,
473
+			),
474
+			'EE_Messenger_Collection_Loader'                                                                              => array(
475
+				'EE_Messenger_Collection' => EE_Dependency_Map::load_new_object,
476
+			),
477
+			'EE_Message_Type_Collection_Loader'                                                                           => array(
478
+				'EE_Message_Type_Collection' => EE_Dependency_Map::load_new_object,
479
+			),
480
+			'EE_Message_Resource_Manager'                                                                                 => array(
481
+				'EE_Messenger_Collection_Loader'    => EE_Dependency_Map::load_new_object,
482
+				'EE_Message_Type_Collection_Loader' => EE_Dependency_Map::load_new_object,
483
+				'EEM_Message_Template_Group'        => EE_Dependency_Map::load_from_cache,
484
+			),
485
+			'EE_Message_Factory'                                                                                          => array(
486
+				'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
487
+			),
488
+			'EE_messages'                                                                                                 => array(
489
+				'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
490
+			),
491
+			'EE_Messages_Generator'                                                                                       => array(
492
+				'EE_Messages_Queue'                    => EE_Dependency_Map::load_new_object,
493
+				'EE_Messages_Data_Handler_Collection'  => EE_Dependency_Map::load_new_object,
494
+				'EE_Message_Template_Group_Collection' => EE_Dependency_Map::load_new_object,
495
+				'EEH_Parse_Shortcodes'                 => EE_Dependency_Map::load_from_cache,
496
+			),
497
+			'EE_Messages_Processor'                                                                                       => array(
498
+				'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
499
+			),
500
+			'EE_Messages_Queue'                                                                                           => array(
501
+				'EE_Message_Repository' => EE_Dependency_Map::load_new_object,
502
+			),
503
+			'EE_Messages_Template_Defaults'                                                                               => array(
504
+				'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache,
505
+				'EEM_Message_Template'       => EE_Dependency_Map::load_from_cache,
506
+			),
507
+			'EE_Message_To_Generate_From_Request'                                                                         => array(
508
+				'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache,
509
+				'EE_Request_Handler'          => EE_Dependency_Map::load_from_cache,
510
+			),
511
+			'EventEspresso\core\services\commands\CommandBus'                                                             => array(
512
+				'EventEspresso\core\services\commands\CommandHandlerManager' => EE_Dependency_Map::load_from_cache,
513
+			),
514
+			'EventEspresso\services\commands\CommandHandler'                                                              => array(
515
+				'EE_Registry'         => EE_Dependency_Map::load_from_cache,
516
+				'CommandBusInterface' => EE_Dependency_Map::load_from_cache,
517
+			),
518
+			'EventEspresso\core\services\commands\CommandHandlerManager'                                                  => array(
519
+				'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
520
+			),
521
+			'EventEspresso\core\services\commands\CompositeCommandHandler'                                                => array(
522
+				'EventEspresso\core\services\commands\CommandBus'     => EE_Dependency_Map::load_from_cache,
523
+				'EventEspresso\core\services\commands\CommandFactory' => EE_Dependency_Map::load_from_cache,
524
+			),
525
+			'EventEspresso\core\services\commands\CommandFactory'                                                         => array(
526
+				'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
527
+			),
528
+			'EventEspresso\core\services\commands\middleware\CapChecker'                                                  => array(
529
+				'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache,
530
+			),
531
+			'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker'                                         => array(
532
+				'EE_Capabilities' => EE_Dependency_Map::load_from_cache,
533
+			),
534
+			'EventEspresso\core\domain\services\capabilities\RegistrationsCapChecker'                                     => array(
535
+				'EE_Capabilities' => EE_Dependency_Map::load_from_cache,
536
+			),
537
+			'EventEspresso\core\services\commands\registration\CreateRegistrationCommandHandler'                          => array(
538
+				'EventEspresso\core\domain\services\registration\CreateRegistrationService' => EE_Dependency_Map::load_from_cache,
539
+			),
540
+			'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommandHandler'                     => array(
541
+				'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache,
542
+			),
543
+			'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommandHandler'                    => array(
544
+				'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache,
545
+			),
546
+			'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler'         => array(
547
+				'EventEspresso\core\domain\services\registration\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache,
548
+			),
549
+			'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler' => array(
550
+				'EventEspresso\core\domain\services\registration\UpdateRegistrationService' => EE_Dependency_Map::load_from_cache,
551
+			),
552
+			'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommandHandler'                              => array(
553
+				'EventEspresso\core\domain\services\ticket\CreateTicketLineItemService' => EE_Dependency_Map::load_from_cache,
554
+			),
555
+			'EventEspresso\core\services\commands\ticket\CancelTicketLineItemCommandHandler'                              => array(
556
+				'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache,
557
+			),
558
+			'EventEspresso\core\domain\services\registration\CancelRegistrationService'                                   => array(
559
+				'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache,
560
+			),
561
+			'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler'                                  => array(
562
+				'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
563
+			),
564
+			'EventEspresso\core\services\database\TableManager'                                                           => array(
565
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
566
+			),
567
+			'EE_Data_Migration_Class_Base'                                                                                => array(
568
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
569
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
570
+			),
571
+			'EE_DMS_Core_4_1_0'                                                                                           => array(
572
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
573
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
574
+			),
575
+			'EE_DMS_Core_4_2_0'                                                                                           => array(
576
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
577
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
578
+			),
579
+			'EE_DMS_Core_4_3_0'                                                                                           => array(
580
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
581
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
582
+			),
583
+			'EE_DMS_Core_4_4_0'                                                                                           => array(
584
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
585
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
586
+			),
587
+			'EE_DMS_Core_4_5_0'                                                                                           => array(
588
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
589
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
590
+			),
591
+			'EE_DMS_Core_4_6_0'                                                                                           => array(
592
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
593
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
594
+			),
595
+			'EE_DMS_Core_4_7_0'                                                                                           => array(
596
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
597
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
598
+			),
599
+			'EE_DMS_Core_4_8_0'                                                                                           => array(
600
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
601
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
602
+			),
603
+			'EE_DMS_Core_4_9_0' => array(
604
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
605
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
606
+			),
607
+			'EE_DMS_Core_4_10_0' => array(
608
+				'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache,
609
+				'EventEspresso\core\services\database\TableManager'  => EE_Dependency_Map::load_from_cache,
610
+				'EE_DMS_Core_4_9_0'                                  => EE_Dependency_Map::load_from_cache,
611
+			),
612
+			'EventEspresso\core\services\assets\I18nRegistry'                                                             => array(
613
+				array(),
614
+				'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
615
+			),
616
+			'EventEspresso\core\services\assets\Registry'                                                                 => array(
617
+				'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
618
+				'EventEspresso\core\services\assets\I18nRegistry'    => EE_Dependency_Map::load_from_cache,
619
+			),
620
+			'EventEspresso\core\domain\entities\shortcodes\EspressoCancelled'                                             => array(
621
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
622
+			),
623
+			'EventEspresso\core\domain\entities\shortcodes\EspressoCheckout'                                              => array(
624
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
625
+			),
626
+			'EventEspresso\core\domain\entities\shortcodes\EspressoEventAttendees'                                        => array(
627
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
628
+			),
629
+			'EventEspresso\core\domain\entities\shortcodes\EspressoEvents'                                                => array(
630
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
631
+			),
632
+			'EventEspresso\core\domain\entities\shortcodes\EspressoThankYou'                                              => array(
633
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
634
+			),
635
+			'EventEspresso\core\domain\entities\shortcodes\EspressoTicketSelector'                                        => array(
636
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
637
+			),
638
+			'EventEspresso\core\domain\entities\shortcodes\EspressoTxnPage'                                               => array(
639
+				'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache,
640
+			),
641
+			'EventEspresso\core\services\cache\BasicCacheManager'                                                         => array(
642
+				'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache,
643
+			),
644
+			'EventEspresso\core\services\cache\PostRelatedCacheManager'                                                   => array(
645
+				'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache,
646
+			),
647
+			'EventEspresso\core\domain\services\validation\email\EmailValidationService'                                  => array(
648
+				'EE_Registration_Config'                     => EE_Dependency_Map::load_from_cache,
649
+				'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
650
+			),
651
+			'EventEspresso\core\domain\values\EmailAddress'                                                               => array(
652
+				null,
653
+				'EventEspresso\core\domain\services\validation\email\EmailValidationService' => EE_Dependency_Map::load_from_cache,
654
+			),
655
+			'EventEspresso\core\services\orm\ModelFieldFactory'                                                           => array(
656
+				'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
657
+			),
658
+			'LEGACY_MODELS'                                                                                               => array(
659
+				null,
660
+				'EventEspresso\core\services\database\ModelFieldFactory' => EE_Dependency_Map::load_from_cache,
661
+			),
662
+			'EE_Module_Request_Router'                                                                                    => array(
663
+				'EE_Request' => EE_Dependency_Map::load_from_cache,
664
+			),
665
+			'EE_Registration_Processor'                                                                                   => array(
666
+				'EE_Request' => EE_Dependency_Map::load_from_cache,
667
+			),
668
+			'EventEspresso\core\services\notifications\PersistentAdminNoticeManager'                                      => array(
669
+				null,
670
+				'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache,
671
+				'EventEspresso\core\services\request\Request'                         => EE_Dependency_Map::load_from_cache,
672
+			),
673
+			'EventEspresso\core\services\licensing\LicenseService'                                                        => array(
674
+				'EventEspresso\core\domain\services\pue\Stats'  => EE_Dependency_Map::load_from_cache,
675
+				'EventEspresso\core\domain\services\pue\Config' => EE_Dependency_Map::load_from_cache,
676
+			),
677
+			'EE_Admin_Transactions_List_Table'                                                                            => array(
678
+				null,
679
+				'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache,
680
+			),
681
+			'EventEspresso\core\domain\services\pue\Stats'                                                                => array(
682
+				'EventEspresso\core\domain\services\pue\Config'        => EE_Dependency_Map::load_from_cache,
683
+				'EE_Maintenance_Mode'                                  => EE_Dependency_Map::load_from_cache,
684
+				'EventEspresso\core\domain\services\pue\StatsGatherer' => EE_Dependency_Map::load_from_cache,
685
+			),
686
+			'EventEspresso\core\domain\services\pue\Config'                                                               => array(
687
+				'EE_Network_Config' => EE_Dependency_Map::load_from_cache,
688
+				'EE_Config'         => EE_Dependency_Map::load_from_cache,
689
+			),
690
+			'EventEspresso\core\domain\services\pue\StatsGatherer'                                                        => array(
691
+				'EEM_Payment_Method' => EE_Dependency_Map::load_from_cache,
692
+				'EEM_Event'          => EE_Dependency_Map::load_from_cache,
693
+				'EEM_Datetime'       => EE_Dependency_Map::load_from_cache,
694
+				'EEM_Ticket'         => EE_Dependency_Map::load_from_cache,
695
+				'EEM_Registration'   => EE_Dependency_Map::load_from_cache,
696
+				'EEM_Transaction'    => EE_Dependency_Map::load_from_cache,
697
+				'EE_Config'          => EE_Dependency_Map::load_from_cache,
698
+			),
699
+			'EventEspresso\core\domain\services\admin\ExitModal'                                                          => array(
700
+				'EventEspresso\core\services\assets\Registry' => EE_Dependency_Map::load_from_cache,
701
+			),
702
+			'EventEspresso\core\domain\services\admin\PluginUpsells'                                                      => array(
703
+				'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
704
+			),
705
+			'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha'                                    => array(
706
+				'EE_Registration_Config' => EE_Dependency_Map::load_from_cache,
707
+				'EE_Session'             => EE_Dependency_Map::load_from_cache,
708
+			),
709
+			'EventEspresso\caffeinated\modules\recaptcha_invisible\RecaptchaAdminSettings'                                => array(
710
+				'EE_Registration_Config' => EE_Dependency_Map::load_from_cache,
711
+			),
712
+			'EventEspresso\modules\ticket_selector\ProcessTicketSelector'                                                 => array(
713
+				'EE_Core_Config'                                                          => EE_Dependency_Map::load_from_cache,
714
+				'EventEspresso\core\services\request\Request'                             => EE_Dependency_Map::load_from_cache,
715
+				'EE_Session'                                                              => EE_Dependency_Map::load_from_cache,
716
+				'EEM_Ticket'                                                              => EE_Dependency_Map::load_from_cache,
717
+				'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => EE_Dependency_Map::load_from_cache,
718
+			),
719
+			'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker'                                     => array(
720
+				'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
721
+			),
722
+			'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions'                              => array(
723
+				'EE_Core_Config'                             => EE_Dependency_Map::load_from_cache,
724
+				'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
725
+			),
726
+			'EventEspresso\core\domain\services\custom_post_types\RegisterCustomPostTypes'                                => array(
727
+				'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache,
728
+			),
729
+			'EventEspresso\core\domain\services\custom_post_types\RegisterCustomTaxonomies'                               => array(
730
+				'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache,
731
+			),
732
+			'EE_CPT_Strategy'                                                                                             => array(
733
+				'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache,
734
+				'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache,
735
+			),
736
+			'EventEspresso\core\services\loaders\ObjectIdentifier'                                                        => array(
737
+				'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache,
738
+			),
739
+			'EventEspresso\core\domain\services\assets\CoreAssetManager'                                                  => array(
740
+				'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
741
+				'EE_Currency_Config'                                 => EE_Dependency_Map::load_from_cache,
742
+				'EE_Template_Config'                                 => EE_Dependency_Map::load_from_cache,
743
+				'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
744
+				'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
745
+			),
746
+			'EventEspresso\core\domain\services\admin\privacy\policy\PrivacyPolicy' => array(
747
+				'EEM_Payment_Method' => EE_Dependency_Map::load_from_cache,
748
+				'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache
749
+			),
750
+			'EventEspresso\core\domain\services\admin\privacy\export\ExportAttendee' => array(
751
+				'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
752
+			),
753
+			'EventEspresso\core\domain\services\admin\privacy\export\ExportAttendeeBillingData' => array(
754
+				'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
755
+				'EEM_Payment_Method' => EE_Dependency_Map::load_from_cache
756
+			),
757
+			'EventEspresso\core\domain\services\admin\privacy\export\ExportCheckins' => array(
758
+				'EEM_Checkin' => EE_Dependency_Map::load_from_cache,
759
+			),
760
+			'EventEspresso\core\domain\services\admin\privacy\export\ExportRegistration' => array(
761
+				'EEM_Registration' => EE_Dependency_Map::load_from_cache,
762
+			),
763
+			'EventEspresso\core\domain\services\admin\privacy\export\ExportTransaction' => array(
764
+				'EEM_Transaction' => EE_Dependency_Map::load_from_cache,
765
+			),
766
+			'EventEspresso\core\domain\services\admin\privacy\erasure\EraseAttendeeData' => array(
767
+				'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
768
+			),
769
+			'EventEspresso\core\domain\services\admin\privacy\erasure\EraseAnswers' => array(
770
+				'EEM_Answer' => EE_Dependency_Map::load_from_cache,
771
+				'EEM_Question' => EE_Dependency_Map::load_from_cache,
772
+			),
773
+			'EventEspresso\core\CPTs\CptQueryModifier' => array(
774
+				null,
775
+				null,
776
+				null,
777
+				'EE_Request_Handler'                          => EE_Dependency_Map::load_from_cache,
778
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
779
+				'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
780
+			),
781
+			'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' => array(
782
+				'EE_Registry' => EE_Dependency_Map::load_from_cache,
783
+				'EE_Config' => EE_Dependency_Map::load_from_cache
784
+			),
785
+			'EventEspresso\core\services\editor\BlockRegistrationManager'                                                 => array(
786
+				'EventEspresso\core\services\assets\BlockAssetManagerCollection' => EE_Dependency_Map::load_from_cache,
787
+				'EventEspresso\core\domain\entities\editor\BlockCollection'      => EE_Dependency_Map::load_from_cache,
788
+				'EventEspresso\core\services\route_match\RouteMatchSpecificationManager' => EE_Dependency_Map::load_from_cache,
789
+				'EventEspresso\core\services\request\Request'                    => EE_Dependency_Map::load_from_cache,
790
+			),
791
+			'EventEspresso\core\domain\entities\editor\CoreBlocksAssetManager' => array(
792
+				'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
793
+				'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
794
+				'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
795
+			),
796
+			'EventEspresso\core\domain\services\blocks\EventAttendeesBlockRenderer' => array(
797
+				'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
798
+				'EEM_Attendee' => EE_Dependency_Map::load_from_cache,
799
+			),
800
+			'EventEspresso\core\domain\entities\editor\blocks\EventAttendees' => array(
801
+				'EventEspresso\core\domain\entities\editor\CoreBlocksAssetManager' => self::load_from_cache,
802
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
803
+				'EventEspresso\core\domain\services\blocks\EventAttendeesBlockRenderer' => self::load_from_cache,
804
+			),
805
+			'EventEspresso\core\services\route_match\RouteMatchSpecificationDependencyResolver' => array(
806
+				'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache,
807
+				'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache,
808
+				'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache,
809
+			),
810
+			'EventEspresso\core\services\route_match\RouteMatchSpecificationFactory' => array(
811
+				'EventEspresso\core\services\route_match\RouteMatchSpecificationDependencyResolver' => EE_Dependency_Map::load_from_cache,
812
+				'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache,
813
+			),
814
+			'EventEspresso\core\services\route_match\RouteMatchSpecificationManager' => array(
815
+				'EventEspresso\core\services\route_match\RouteMatchSpecificationCollection' => EE_Dependency_Map::load_from_cache,
816
+				'EventEspresso\core\services\route_match\RouteMatchSpecificationFactory' => EE_Dependency_Map::load_from_cache,
817
+			),
818
+			'EventEspresso\core\libraries\rest_api\CalculatedModelFields' => array(
819
+				'EventEspresso\core\libraries\rest_api\calculations\CalculatedModelFieldsFactory' => EE_Dependency_Map::load_from_cache
820
+			),
821
+			'EventEspresso\core\libraries\rest_api\calculations\CalculatedModelFieldsFactory' => array(
822
+				'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
823
+			),
824
+			'EventEspresso\core\libraries\rest_api\controllers\model\Read' => array(
825
+				'EventEspresso\core\libraries\rest_api\CalculatedModelFields' => EE_Dependency_Map::load_from_cache
826
+			),
827
+			'EventEspresso\core\libraries\rest_api\calculations\Datetime' => array(
828
+				'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
829
+				'EEM_Registration' => EE_Dependency_Map::load_from_cache
830
+			),
831
+			'EventEspresso\core\libraries\rest_api\calculations\Event' => array(
832
+				'EEM_Event' => EE_Dependency_Map::load_from_cache,
833
+				'EEM_Registration' => EE_Dependency_Map::load_from_cache
834
+			),
835
+			'EventEspresso\core\libraries\rest_api\calculations\Registration' => array(
836
+				'EEM_Registration' => EE_Dependency_Map::load_from_cache
837
+			),
838
+			'EventEspresso\core\services\session\SessionStartHandler' => array(
839
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
840
+			),
841
+			'EE_URL_Validation_Strategy' => array(
842
+				null,
843
+				null,
844
+				'EventEspresso\core\services\validators\URLValidator' => EE_Dependency_Map::load_from_cache
845
+			),
846
+			'EventEspresso\admin_pages\general_settings\OrganizationSettings' => array(
847
+				'EE_Registry'                                             => EE_Dependency_Map::load_from_cache,
848
+				'EE_Organization_Config'                                  => EE_Dependency_Map::load_from_cache,
849
+				'EE_Core_Config'                                          => EE_Dependency_Map::load_from_cache,
850
+				'EE_Network_Core_Config'                                  => EE_Dependency_Map::load_from_cache,
851
+				'EventEspresso\core\services\address\CountrySubRegionDao' => EE_Dependency_Map::load_from_cache,
852
+			),
853
+			'EventEspresso\core\services\address\CountrySubRegionDao' => array(
854
+				'EEM_State'                                            => EE_Dependency_Map::load_from_cache,
855
+				'EventEspresso\core\services\validators\JsonValidator' => EE_Dependency_Map::load_from_cache
856
+			),
857
+			'EventEspresso\core\domain\services\admin\ajax\WordpressHeartbeat' => array(
858
+				'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
859
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
860
+			),
861
+			'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat' => array(
862
+				'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache,
863
+				'EE_Environment_Config'            => EE_Dependency_Map::load_from_cache,
864
+			),
865
+			'EventEspresso\core\services\request\files\FilesDataHandler' => array(
866
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
867
+			),
868
+			'EventEspressoBatchRequest\BatchRequestProcessor'                              => [
869
+				'EventEspresso\core\services\loaders\Loader'  => EE_Dependency_Map::load_from_cache,
870
+			],
871
+			'EventEspresso\core\domain\services\admin\registrations\list_table\QueryBuilder' => [
872
+				null,
873
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
874
+				'EEM_Registration'  => EE_Dependency_Map::load_from_cache,
875
+			],
876
+			'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\AttendeeFilterHeader' => [
877
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
878
+				'EEM_Attendee'  => EE_Dependency_Map::load_from_cache,
879
+			],
880
+			'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\DateFilterHeader' => [
881
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
882
+				'EEM_Datetime'  => EE_Dependency_Map::load_from_cache,
883
+			],
884
+			'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\EventFilterHeader' => [
885
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
886
+				'EEM_Event'  => EE_Dependency_Map::load_from_cache,
887
+			],
888
+			'EventEspresso\core\domain\services\admin\registrations\list_table\page_header\TicketFilterHeader' => [
889
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
890
+				'EEM_Ticket'  => EE_Dependency_Map::load_from_cache,
891
+			],
892
+			'EventEspresso\core\services\graphql\GraphQLManager' => [
893
+				'EventEspresso\core\services\graphql\TypesManager'  => EE_Dependency_Map::load_from_cache,
894
+				'EventEspresso\core\services\graphql\ConnectionsManager'  => EE_Dependency_Map::load_from_cache,
895
+			],
896
+			'EventEspresso\core\services\graphql\TypesManager' => [
897
+				'EventEspresso\core\services\graphql\types\TypeCollection' => EE_Dependency_Map::load_from_cache,
898
+			],
899
+			'EventEspresso\core\services\graphql\ConnectionsManager' => [
900
+				'EventEspresso\core\services\graphql\connections\ConnectionCollection' => EE_Dependency_Map::load_from_cache,
901
+			],
902
+			'EventEspresso\core\domain\services\graphql\types\Datetime' => [
903
+				'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
904
+			],
905
+			'EventEspresso\core\domain\services\graphql\types\Event' => [
906
+				'EEM_Event' => EE_Dependency_Map::load_from_cache,
907
+			],
908
+			'EventEspresso\core\domain\services\graphql\types\Ticket' => [
909
+				'EEM_Ticket' => EE_Dependency_Map::load_from_cache,
910
+			],
911
+			'EventEspresso\core\domain\services\graphql\types\Venue' => [
912
+				'EEM_Venue' => EE_Dependency_Map::load_from_cache,
913
+			],
914
+			'EventEspresso\core\domain\services\graphql\types\State' => [
915
+				'EEM_State' => EE_Dependency_Map::load_from_cache,
916
+			],
917
+			'EventEspresso\core\domain\services\graphql\types\Country' => [
918
+				'EEM_Country' => EE_Dependency_Map::load_from_cache,
919
+			],
920
+			'EventEspresso\core\domain\services\graphql\connections\EventDatetimesConnection' => [
921
+				'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
922
+			],
923
+			'EventEspresso\core\domain\services\graphql\connections\DatetimeTicketsConnection' => [
924
+				'EEM_Ticket' => EE_Dependency_Map::load_from_cache,
925
+			],
926
+			'EventEspresso\core\domain\services\graphql\connections\TicketDatetimesConnection' => [
927
+				'EEM_Datetime' => EE_Dependency_Map::load_from_cache,
928
+			],
929
+			'EventEspresso\core\domain\services\graphql\connections\EventVenuesConnection' => [
930
+				'EEM_Venue' => EE_Dependency_Map::load_from_cache,
931
+			],
932
+		);
933
+	}
934
+
935
+
936
+	/**
937
+	 * Registers how core classes are loaded.
938
+	 * This can either be done by simply providing the name of one of the EE_Registry loader methods such as:
939
+	 *        'EE_Request_Handler' => 'load_core'
940
+	 *        'EE_Messages_Queue'  => 'load_lib'
941
+	 *        'EEH_Debug_Tools'    => 'load_helper'
942
+	 * or, if greater control is required, by providing a custom closure. For example:
943
+	 *        'Some_Class' => function () {
944
+	 *            return new Some_Class();
945
+	 *        },
946
+	 * This is required for instantiating dependencies
947
+	 * where an interface has been type hinted in a class constructor. For example:
948
+	 *        'Required_Interface' => function () {
949
+	 *            return new A_Class_That_Implements_Required_Interface();
950
+	 *        },
951
+	 */
952
+	protected function _register_core_class_loaders()
953
+	{
954
+		$this->_class_loaders = array(
955
+			// load_core
956
+			'EE_Dependency_Map'                            => function () {
957
+				return $this;
958
+			},
959
+			'EE_Capabilities'                              => 'load_core',
960
+			'EE_Encryption'                                => 'load_core',
961
+			'EE_Front_Controller'                          => 'load_core',
962
+			'EE_Module_Request_Router'                     => 'load_core',
963
+			'EE_Registry'                                  => 'load_core',
964
+			'EE_Request'                                   => function () {
965
+				return $this->legacy_request;
966
+			},
967
+			'EventEspresso\core\services\request\Request'  => function () {
968
+				return $this->request;
969
+			},
970
+			'EventEspresso\core\services\request\Response' => function () {
971
+				return $this->response;
972
+			},
973
+			'EE_Base'                                      => 'load_core',
974
+			'EE_Request_Handler'                           => 'load_core',
975
+			'EE_Session'                                   => 'load_core',
976
+			'EE_Cron_Tasks'                                => 'load_core',
977
+			'EE_System'                                    => 'load_core',
978
+			'EE_Maintenance_Mode'                          => 'load_core',
979
+			'EE_Register_CPTs'                             => 'load_core',
980
+			'EE_Admin'                                     => 'load_core',
981
+			'EE_CPT_Strategy'                              => 'load_core',
982
+			// load_class
983
+			'EE_Registration_Processor'                    => 'load_class',
984
+			// load_lib
985
+			'EE_Message_Resource_Manager'                  => 'load_lib',
986
+			'EE_Message_Type_Collection'                   => 'load_lib',
987
+			'EE_Message_Type_Collection_Loader'            => 'load_lib',
988
+			'EE_Messenger_Collection'                      => 'load_lib',
989
+			'EE_Messenger_Collection_Loader'               => 'load_lib',
990
+			'EE_Messages_Processor'                        => 'load_lib',
991
+			'EE_Message_Repository'                        => 'load_lib',
992
+			'EE_Messages_Queue'                            => 'load_lib',
993
+			'EE_Messages_Data_Handler_Collection'          => 'load_lib',
994
+			'EE_Message_Template_Group_Collection'         => 'load_lib',
995
+			'EE_Payment_Method_Manager'                    => 'load_lib',
996
+			'EE_DMS_Core_4_1_0'                            => 'load_dms',
997
+			'EE_DMS_Core_4_2_0'                            => 'load_dms',
998
+			'EE_DMS_Core_4_3_0'                            => 'load_dms',
999
+			'EE_DMS_Core_4_5_0'                            => 'load_dms',
1000
+			'EE_DMS_Core_4_6_0'                            => 'load_dms',
1001
+			'EE_DMS_Core_4_7_0'                            => 'load_dms',
1002
+			'EE_DMS_Core_4_8_0'                            => 'load_dms',
1003
+			'EE_DMS_Core_4_9_0'                            => 'load_dms',
1004
+			'EE_DMS_Core_4_10_0'                            => 'load_dms',
1005
+			'EE_Messages_Generator'                        => static function () {
1006
+				return EE_Registry::instance()->load_lib(
1007
+					'Messages_Generator',
1008
+					array(),
1009
+					false,
1010
+					false
1011
+				);
1012
+			},
1013
+			'EE_Messages_Template_Defaults'                => static function ($arguments = array()) {
1014
+				return EE_Registry::instance()->load_lib(
1015
+					'Messages_Template_Defaults',
1016
+					$arguments,
1017
+					false,
1018
+					false
1019
+				);
1020
+			},
1021
+			// load_helper
1022
+			'EEH_Parse_Shortcodes'                         => static function () {
1023
+				if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) {
1024
+					return new EEH_Parse_Shortcodes();
1025
+				}
1026
+				return null;
1027
+			},
1028
+			'EE_Template_Config'                           => static function () {
1029
+				return EE_Config::instance()->template_settings;
1030
+			},
1031
+			'EE_Currency_Config'                           => static function () {
1032
+				return EE_Config::instance()->currency;
1033
+			},
1034
+			'EE_Registration_Config'                       => static function () {
1035
+				return EE_Config::instance()->registration;
1036
+			},
1037
+			'EE_Core_Config'                               => static function () {
1038
+				return EE_Config::instance()->core;
1039
+			},
1040
+			'EventEspresso\core\services\loaders\Loader'   => static function () {
1041
+				return LoaderFactory::getLoader();
1042
+			},
1043
+			'EE_Network_Config'                            => static function () {
1044
+				return EE_Network_Config::instance();
1045
+			},
1046
+			'EE_Config'                                    => static function () {
1047
+				return EE_Config::instance();
1048
+			},
1049
+			'EventEspresso\core\domain\Domain'             => static function () {
1050
+				return DomainFactory::getEventEspressoCoreDomain();
1051
+			},
1052
+			'EE_Admin_Config'                              => static function () {
1053
+				return EE_Config::instance()->admin;
1054
+			},
1055
+			'EE_Organization_Config'                       => static function () {
1056
+				return EE_Config::instance()->organization;
1057
+			},
1058
+			'EE_Network_Core_Config'                       => static function () {
1059
+				return EE_Network_Config::instance()->core;
1060
+			},
1061
+			'EE_Environment_Config'                        => static function () {
1062
+				return EE_Config::instance()->environment;
1063
+			},
1064
+		);
1065
+	}
1066
+
1067
+
1068
+	/**
1069
+	 * can be used for supplying alternate names for classes,
1070
+	 * or for connecting interface names to instantiable classes
1071
+	 *
1072
+	 * @throws InvalidAliasException
1073
+	 */
1074
+	protected function _register_core_aliases()
1075
+	{
1076
+		$aliases = array(
1077
+			'CommandBusInterface'                                                          => 'EventEspresso\core\services\commands\CommandBusInterface',
1078
+			'EventEspresso\core\services\commands\CommandBusInterface'                     => 'EventEspresso\core\services\commands\CommandBus',
1079
+			'CommandHandlerManagerInterface'                                               => 'EventEspresso\core\services\commands\CommandHandlerManagerInterface',
1080
+			'EventEspresso\core\services\commands\CommandHandlerManagerInterface'          => 'EventEspresso\core\services\commands\CommandHandlerManager',
1081
+			'CapChecker'                                                                   => 'EventEspresso\core\services\commands\middleware\CapChecker',
1082
+			'AddActionHook'                                                                => 'EventEspresso\core\services\commands\middleware\AddActionHook',
1083
+			'CapabilitiesChecker'                                                          => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker',
1084
+			'CapabilitiesCheckerInterface'                                                 => 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface',
1085
+			'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker',
1086
+			'CreateRegistrationService'                                                    => 'EventEspresso\core\domain\services\registration\CreateRegistrationService',
1087
+			'CreateRegistrationCommandHandler'                                             => 'EventEspresso\core\services\commands\registration\CreateRegistrationCommand',
1088
+			'CopyRegistrationDetailsCommandHandler'                                        => 'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommand',
1089
+			'CopyRegistrationPaymentsCommandHandler'                                       => 'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommand',
1090
+			'CancelRegistrationAndTicketLineItemCommandHandler'                            => 'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler',
1091
+			'UpdateRegistrationAndTransactionAfterChangeCommandHandler'                    => 'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler',
1092
+			'CreateTicketLineItemCommandHandler'                                           => 'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommand',
1093
+			'CreateTransactionCommandHandler'                                              => 'EventEspresso\core\services\commands\transaction\CreateTransactionCommandHandler',
1094
+			'CreateAttendeeCommandHandler'                                                 => 'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler',
1095
+			'TableManager'                                                                 => 'EventEspresso\core\services\database\TableManager',
1096
+			'TableAnalysis'                                                                => 'EventEspresso\core\services\database\TableAnalysis',
1097
+			'EspressoShortcode'                                                            => 'EventEspresso\core\services\shortcodes\EspressoShortcode',
1098
+			'ShortcodeInterface'                                                           => 'EventEspresso\core\services\shortcodes\ShortcodeInterface',
1099
+			'EventEspresso\core\services\shortcodes\ShortcodeInterface'                    => 'EventEspresso\core\services\shortcodes\EspressoShortcode',
1100
+			'EventEspresso\core\services\cache\CacheStorageInterface'                      => 'EventEspresso\core\services\cache\TransientCacheStorage',
1101
+			'LoaderInterface'                                                              => 'EventEspresso\core\services\loaders\LoaderInterface',
1102
+			'EventEspresso\core\services\loaders\LoaderInterface'                          => 'EventEspresso\core\services\loaders\Loader',
1103
+			'CommandFactoryInterface'                                                      => 'EventEspresso\core\services\commands\CommandFactoryInterface',
1104
+			'EventEspresso\core\services\commands\CommandFactoryInterface'                 => 'EventEspresso\core\services\commands\CommandFactory',
1105
+			'EmailValidatorInterface'                                                      => 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface',
1106
+			'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface'  => 'EventEspresso\core\domain\services\validation\email\EmailValidationService',
1107
+			'NoticeConverterInterface'                                                     => 'EventEspresso\core\services\notices\NoticeConverterInterface',
1108
+			'EventEspresso\core\services\notices\NoticeConverterInterface'                 => 'EventEspresso\core\services\notices\ConvertNoticesToEeErrors',
1109
+			'NoticesContainerInterface'                                                    => 'EventEspresso\core\services\notices\NoticesContainerInterface',
1110
+			'EventEspresso\core\services\notices\NoticesContainerInterface'                => 'EventEspresso\core\services\notices\NoticesContainer',
1111
+			'EventEspresso\core\services\request\RequestInterface'                         => 'EventEspresso\core\services\request\Request',
1112
+			'EventEspresso\core\services\request\ResponseInterface'                        => 'EventEspresso\core\services\request\Response',
1113
+			'EventEspresso\core\domain\DomainInterface'                                    => 'EventEspresso\core\domain\Domain',
1114
+			'Registration_Processor'                                                       => 'EE_Registration_Processor',
1115
+		);
1116
+		foreach ($aliases as $alias => $fqn) {
1117
+			if (is_array($fqn)) {
1118
+				foreach ($fqn as $class => $for_class) {
1119
+					$this->class_cache->addAlias($class, $alias, $for_class);
1120
+				}
1121
+				continue;
1122
+			}
1123
+			$this->class_cache->addAlias($fqn, $alias);
1124
+		}
1125
+		if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
1126
+			$this->class_cache->addAlias(
1127
+				'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices',
1128
+				'EventEspresso\core\services\notices\NoticeConverterInterface'
1129
+			);
1130
+		}
1131
+	}
1132
+
1133
+
1134
+	/**
1135
+	 * This is used to reset the internal map and class_loaders to their original default state at the beginning of the
1136
+	 * request Primarily used by unit tests.
1137
+	 */
1138
+	public function reset()
1139
+	{
1140
+		$this->_register_core_class_loaders();
1141
+		$this->_register_core_dependencies();
1142
+	}
1143
+
1144
+
1145
+	/**
1146
+	 * PLZ NOTE: a better name for this method would be is_alias()
1147
+	 * because it returns TRUE if the provided fully qualified name IS an alias
1148
+	 * WHY?
1149
+	 * Because if a class is type hinting for a concretion,
1150
+	 * then why would we need to find another class to supply it?
1151
+	 * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`,
1152
+	 * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`.
1153
+	 * Don't go looking for some substitute.
1154
+	 * Whereas if a class is type hinting for an interface...
1155
+	 * then we need to find an actual class to use.
1156
+	 * So the interface IS the alias for some other FQN,
1157
+	 * and we need to find out if `Fully/Qualified/Namespace/SomeInterface`
1158
+	 * represents some other class.
1159
+	 *
1160
+	 * @deprecated 4.9.62.p
1161
+	 * @param string $fqn
1162
+	 * @param string $for_class
1163
+	 * @return bool
1164
+	 */
1165
+	public function has_alias($fqn = '', $for_class = '')
1166
+	{
1167
+		return $this->isAlias($fqn, $for_class);
1168
+	}
1169
+
1170
+
1171
+	/**
1172
+	 * PLZ NOTE: a better name for this method would be get_fqn_for_alias()
1173
+	 * because it returns a FQN for provided alias if one exists, otherwise returns the original $alias
1174
+	 * functions recursively, so that multiple aliases can be used to drill down to a FQN
1175
+	 *  for example:
1176
+	 *      if the following two entries were added to the _aliases array:
1177
+	 *          array(
1178
+	 *              'interface_alias'           => 'some\namespace\interface'
1179
+	 *              'some\namespace\interface'  => 'some\namespace\classname'
1180
+	 *          )
1181
+	 *      then one could use EE_Registry::instance()->create( 'interface_alias' )
1182
+	 *      to load an instance of 'some\namespace\classname'
1183
+	 *
1184
+	 * @deprecated 4.9.62.p
1185
+	 * @param string $alias
1186
+	 * @param string $for_class
1187
+	 * @return string
1188
+	 */
1189
+	public function get_alias($alias = '', $for_class = '')
1190
+	{
1191
+		return $this->getFqnForAlias($alias, $for_class);
1192
+	}
1193 1193
 }
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     public static function instance(ClassInterfaceCache $class_cache = null)
126 126
     {
127 127
         // check if class object is instantiated, and instantiated properly
128
-        if (! self::$_instance instanceof EE_Dependency_Map
128
+        if ( ! self::$_instance instanceof EE_Dependency_Map
129 129
             && $class_cache instanceof ClassInterfaceCache
130 130
         ) {
131 131
             self::$_instance = new EE_Dependency_Map($class_cache);
@@ -206,18 +206,18 @@  discard block
 block discarded – undo
206 206
     ) {
207 207
         $class = trim($class, '\\');
208 208
         $registered = false;
209
-        if (empty(self::$_instance->_dependency_map[ $class ])) {
210
-            self::$_instance->_dependency_map[ $class ] = array();
209
+        if (empty(self::$_instance->_dependency_map[$class])) {
210
+            self::$_instance->_dependency_map[$class] = array();
211 211
         }
212 212
         // we need to make sure that any aliases used when registering a dependency
213 213
         // get resolved to the correct class name
214 214
         foreach ($dependencies as $dependency => $load_source) {
215 215
             $alias = self::$_instance->getFqnForAlias($dependency);
216 216
             if ($overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES
217
-                || ! isset(self::$_instance->_dependency_map[ $class ][ $alias ])
217
+                || ! isset(self::$_instance->_dependency_map[$class][$alias])
218 218
             ) {
219
-                unset($dependencies[ $dependency ]);
220
-                $dependencies[ $alias ] = $load_source;
219
+                unset($dependencies[$dependency]);
220
+                $dependencies[$alias] = $load_source;
221 221
                 $registered = true;
222 222
             }
223 223
         }
@@ -227,13 +227,13 @@  discard block
 block discarded – undo
227 227
         // ie: with A = B + C, entries in B take precedence over duplicate entries in C
228 228
         // Union is way faster than array_merge() but should be used with caution...
229 229
         // especially with numerically indexed arrays
230
-        $dependencies += self::$_instance->_dependency_map[ $class ];
230
+        $dependencies += self::$_instance->_dependency_map[$class];
231 231
         // now we need to ensure that the resulting dependencies
232 232
         // array only has the entries that are required for the class
233 233
         // so first count how many dependencies were originally registered for the class
234
-        $dependency_count = count(self::$_instance->_dependency_map[ $class ]);
234
+        $dependency_count = count(self::$_instance->_dependency_map[$class]);
235 235
         // if that count is non-zero (meaning dependencies were already registered)
236
-        self::$_instance->_dependency_map[ $class ] = $dependency_count
236
+        self::$_instance->_dependency_map[$class] = $dependency_count
237 237
             // then truncate the  final array to match that count
238 238
             ? array_slice($dependencies, 0, $dependency_count)
239 239
             // otherwise just take the incoming array because nothing previously existed
@@ -250,13 +250,13 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public static function register_class_loader($class_name, $loader = 'load_core')
252 252
     {
253
-        if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) {
253
+        if ( ! $loader instanceof Closure && strpos($class_name, '\\') !== false) {
254 254
             throw new DomainException(
255 255
                 esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso')
256 256
             );
257 257
         }
258 258
         // check that loader is callable or method starts with "load_" and exists in EE_Registry
259
-        if (! is_callable($loader)
259
+        if ( ! is_callable($loader)
260 260
             && (
261 261
                 strpos($loader, 'load_') !== 0
262 262
                 || ! method_exists('EE_Registry', $loader)
@@ -273,8 +273,8 @@  discard block
 block discarded – undo
273 273
             );
274 274
         }
275 275
         $class_name = self::$_instance->getFqnForAlias($class_name);
276
-        if (! isset(self::$_instance->_class_loaders[ $class_name ])) {
277
-            self::$_instance->_class_loaders[ $class_name ] = $loader;
276
+        if ( ! isset(self::$_instance->_class_loaders[$class_name])) {
277
+            self::$_instance->_class_loaders[$class_name] = $loader;
278 278
             return true;
279 279
         }
280 280
         return false;
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
         if (strpos($class_name, 'EEM_') === 0) {
303 303
             $class_name = 'LEGACY_MODELS';
304 304
         }
305
-        return isset($this->_dependency_map[ $class_name ]) ? true : false;
305
+        return isset($this->_dependency_map[$class_name]) ? true : false;
306 306
     }
307 307
 
308 308
 
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
             $class_name = 'LEGACY_MODELS';
321 321
         }
322 322
         $dependency = $this->getFqnForAlias($dependency, $class_name);
323
-        return isset($this->_dependency_map[ $class_name ][ $dependency ])
323
+        return isset($this->_dependency_map[$class_name][$dependency])
324 324
             ? true
325 325
             : false;
326 326
     }
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
         }
342 342
         $dependency = $this->getFqnForAlias($dependency);
343 343
         return $this->has_dependency_for_class($class_name, $dependency)
344
-            ? $this->_dependency_map[ $class_name ][ $dependency ]
344
+            ? $this->_dependency_map[$class_name][$dependency]
345 345
             : EE_Dependency_Map::not_registered;
346 346
     }
347 347
 
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             return 'load_core';
365 365
         }
366 366
         $class_name = $this->getFqnForAlias($class_name);
367
-        return isset($this->_class_loaders[ $class_name ]) ? $this->_class_loaders[ $class_name ] : '';
367
+        return isset($this->_class_loaders[$class_name]) ? $this->_class_loaders[$class_name] : '';
368 368
     }
369 369
 
370 370
 
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
     {
954 954
         $this->_class_loaders = array(
955 955
             // load_core
956
-            'EE_Dependency_Map'                            => function () {
956
+            'EE_Dependency_Map'                            => function() {
957 957
                 return $this;
958 958
             },
959 959
             'EE_Capabilities'                              => 'load_core',
@@ -961,13 +961,13 @@  discard block
 block discarded – undo
961 961
             'EE_Front_Controller'                          => 'load_core',
962 962
             'EE_Module_Request_Router'                     => 'load_core',
963 963
             'EE_Registry'                                  => 'load_core',
964
-            'EE_Request'                                   => function () {
964
+            'EE_Request'                                   => function() {
965 965
                 return $this->legacy_request;
966 966
             },
967
-            'EventEspresso\core\services\request\Request'  => function () {
967
+            'EventEspresso\core\services\request\Request'  => function() {
968 968
                 return $this->request;
969 969
             },
970
-            'EventEspresso\core\services\request\Response' => function () {
970
+            'EventEspresso\core\services\request\Response' => function() {
971 971
                 return $this->response;
972 972
             },
973 973
             'EE_Base'                                      => 'load_core',
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
             'EE_DMS_Core_4_8_0'                            => 'load_dms',
1003 1003
             'EE_DMS_Core_4_9_0'                            => 'load_dms',
1004 1004
             'EE_DMS_Core_4_10_0'                            => 'load_dms',
1005
-            'EE_Messages_Generator'                        => static function () {
1005
+            'EE_Messages_Generator'                        => static function() {
1006 1006
                 return EE_Registry::instance()->load_lib(
1007 1007
                     'Messages_Generator',
1008 1008
                     array(),
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
                     false
1011 1011
                 );
1012 1012
             },
1013
-            'EE_Messages_Template_Defaults'                => static function ($arguments = array()) {
1013
+            'EE_Messages_Template_Defaults'                => static function($arguments = array()) {
1014 1014
                 return EE_Registry::instance()->load_lib(
1015 1015
                     'Messages_Template_Defaults',
1016 1016
                     $arguments,
@@ -1019,46 +1019,46 @@  discard block
 block discarded – undo
1019 1019
                 );
1020 1020
             },
1021 1021
             // load_helper
1022
-            'EEH_Parse_Shortcodes'                         => static function () {
1022
+            'EEH_Parse_Shortcodes'                         => static function() {
1023 1023
                 if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) {
1024 1024
                     return new EEH_Parse_Shortcodes();
1025 1025
                 }
1026 1026
                 return null;
1027 1027
             },
1028
-            'EE_Template_Config'                           => static function () {
1028
+            'EE_Template_Config'                           => static function() {
1029 1029
                 return EE_Config::instance()->template_settings;
1030 1030
             },
1031
-            'EE_Currency_Config'                           => static function () {
1031
+            'EE_Currency_Config'                           => static function() {
1032 1032
                 return EE_Config::instance()->currency;
1033 1033
             },
1034
-            'EE_Registration_Config'                       => static function () {
1034
+            'EE_Registration_Config'                       => static function() {
1035 1035
                 return EE_Config::instance()->registration;
1036 1036
             },
1037
-            'EE_Core_Config'                               => static function () {
1037
+            'EE_Core_Config'                               => static function() {
1038 1038
                 return EE_Config::instance()->core;
1039 1039
             },
1040
-            'EventEspresso\core\services\loaders\Loader'   => static function () {
1040
+            'EventEspresso\core\services\loaders\Loader'   => static function() {
1041 1041
                 return LoaderFactory::getLoader();
1042 1042
             },
1043
-            'EE_Network_Config'                            => static function () {
1043
+            'EE_Network_Config'                            => static function() {
1044 1044
                 return EE_Network_Config::instance();
1045 1045
             },
1046
-            'EE_Config'                                    => static function () {
1046
+            'EE_Config'                                    => static function() {
1047 1047
                 return EE_Config::instance();
1048 1048
             },
1049
-            'EventEspresso\core\domain\Domain'             => static function () {
1049
+            'EventEspresso\core\domain\Domain'             => static function() {
1050 1050
                 return DomainFactory::getEventEspressoCoreDomain();
1051 1051
             },
1052
-            'EE_Admin_Config'                              => static function () {
1052
+            'EE_Admin_Config'                              => static function() {
1053 1053
                 return EE_Config::instance()->admin;
1054 1054
             },
1055
-            'EE_Organization_Config'                       => static function () {
1055
+            'EE_Organization_Config'                       => static function() {
1056 1056
                 return EE_Config::instance()->organization;
1057 1057
             },
1058
-            'EE_Network_Core_Config'                       => static function () {
1058
+            'EE_Network_Core_Config'                       => static function() {
1059 1059
                 return EE_Network_Config::instance()->core;
1060 1060
             },
1061
-            'EE_Environment_Config'                        => static function () {
1061
+            'EE_Environment_Config'                        => static function() {
1062 1062
                 return EE_Config::instance()->environment;
1063 1063
             },
1064 1064
         );
@@ -1122,7 +1122,7 @@  discard block
 block discarded – undo
1122 1122
             }
1123 1123
             $this->class_cache->addAlias($fqn, $alias);
1124 1124
         }
1125
-        if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
1125
+        if ( ! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) {
1126 1126
             $this->class_cache->addAlias(
1127 1127
                 'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices',
1128 1128
                 'EventEspresso\core\services\notices\NoticeConverterInterface'
Please login to merge, or discard this patch.
core/domain/services/graphql/data/mutations/EventMutation.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\core\domain\services\graphql\data\mutations;
3 3
 
4
-use GraphQL\Error\UserError;
5
-
6 4
 /**
7 5
  * Class EventMutation
8 6
  *
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@
 block discarded – undo
25 25
 
26 26
 		$args = [];
27 27
 
28
-		if ( ! empty( $input['name'] ) ) {
29
-			$args['EVT_name'] = sanitize_text_field( $input['name'] );
28
+		if ( ! empty($input['name'])) {
29
+			$args['EVT_name'] = sanitize_text_field($input['name']);
30 30
 		}
31 31
 
32
-		if ( ! empty( $input['desc'] ) ) {
33
-			$args['EVT_desc'] = sanitize_text_field( $input['desc'] );
32
+		if ( ! empty($input['desc'])) {
33
+			$args['EVT_desc'] = sanitize_text_field($input['desc']);
34 34
 		}
35 35
 
36
-		if ( ! empty( $input['shortDesc'] ) ) {
37
-			$args['EVT_short_desc'] = sanitize_text_field( $input['shortDesc'] );
36
+		if ( ! empty($input['shortDesc'])) {
37
+			$args['EVT_short_desc'] = sanitize_text_field($input['shortDesc']);
38 38
 		}
39 39
 
40 40
 		// Likewise the other fields...
Please login to merge, or discard this patch.
core/domain/services/graphql/mutators/DatetimeUpdate.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 	 *
15 15
      * @param EEM_Datetime $model
16 16
      * @param Datetime $type
17
-	 * @return callable
17
+	 * @return \Closure
18 18
 	 */
19 19
 	public static function mutateAndGetPayload(EEM_Datetime $model, Datetime $type)
20 20
 	{
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 	/**
13 13
 	 * Defines the mutation data modification closure.
14 14
 	 *
15
-     * @param EEM_Datetime $model
16
-     * @param Datetime $type
15
+	 * @param EEM_Datetime $model
16
+	 * @param Datetime $type
17 17
 	 * @return callable
18 18
 	 */
19 19
 	public static function mutateAndGetPayload(EEM_Datetime $model, Datetime $type)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 	 */
21 21
 	public static function mutateAndGetPayload(EEM_Datetime $model, Datetime $type)
22 22
 	{
23
-		return static function ($input, AppContext $context, ResolveInfo $info) use ($model, $type)
23
+		return static function($input, AppContext $context, ResolveInfo $info) use ($model, $type)
24 24
 		{
25 25
 			/**
26 26
 			 * Stop now if a user isn't allowed to create a datetime.
27 27
 			 */
28
-			if (! current_user_can('ee_edit_events')) {
28
+			if ( ! current_user_can('ee_edit_events')) {
29 29
 				// translators: the %1$s is the name of the object being mutated
30
-				throw new UserError(sprintf(__('Sorry, you are not allowed to edit %1$s', 'event_espresso' ), $type->name()));
30
+				throw new UserError(sprintf(__('Sorry, you are not allowed to edit %1$s', 'event_espresso'), $type->name()));
31 31
 			}
32 32
 
33 33
 			$id = ! empty($input['id']) ? absint($input['id']) : 0;
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
 			/**
41 41
 			 * If there's no existing datetime, throw an exception
42 42
 			 */
43
-			if (! $id || ! ($entity instanceof EE_Datetime)) {
43
+			if ( ! $id || ! ($entity instanceof EE_Datetime)) {
44 44
 				// translators: the placeholder is the name of the type being updated
45
-				throw new UserError(sprintf(__( 'No %1$s could be found to update', 'event_espresso' ), $type->name()));
45
+				throw new UserError(sprintf(__('No %1$s could be found to update', 'event_espresso'), $type->name()));
46 46
 			}
47 47
 
48 48
 			$args = DatetimeMutation::prepare_fields($input, $mutation_name);
Please login to merge, or discard this patch.
core/domain/services/graphql/mutators/EventUpdate.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	 *
18 18
      * @param EEM_Event $model
19 19
      * @param Event $type
20
-	 * @return callable
20
+	 * @return \Closure
21 21
 	 */
22 22
 	public static function mutateFields(EEM_Event $model, Event $type)
23 23
 	{
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use EventEspresso\core\domain\services\graphql\data\mutations\EventMutation;
9 9
 use GraphQL\Type\Definition\ResolveInfo;
10 10
 use WPGraphQL\AppContext;
11
-use GraphQL\Error\UserError;
12 11
 
13 12
 class EventUpdate {
14 13
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 	/**
16 16
 	 * Defines the mutation data modification closure.
17 17
 	 *
18
-     * @param EEM_Event $model
19
-     * @param Event $type
18
+	 * @param EEM_Event $model
19
+	 * @param Event $type
20 20
 	 * @return callable
21 21
 	 */
22 22
 	public static function mutateFields(EEM_Event $model, Event $type)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 		 * @param AppContext    $context              The AppContext passed down to all resolvers
32 32
 		 * @param ResolveInfo   $info                 The ResolveInfo passed down to all resolvers
33 33
 		 */
34
-		return static function (
34
+		return static function(
35 35
 			$id,
36 36
 			array $input,
37 37
 			WP_Post_Type $post_type_object,
Please login to merge, or discard this patch.
core/domain/services/graphql/mutators/VenueUpdate.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	 *
18 18
      * @param EEM_Venue $model
19 19
      * @param Venue $type
20
-	 * @return callable
20
+	 * @return \Closure
21 21
 	 */
22 22
 	public static function mutateFields(EEM_Venue $model, Venue $type)
23 23
 	{
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use EventEspresso\core\domain\services\graphql\data\mutations\VenueMutation;
9 9
 use GraphQL\Type\Definition\ResolveInfo;
10 10
 use WPGraphQL\AppContext;
11
-use GraphQL\Error\UserError;
12 11
 
13 12
 class VenueUpdate {
14 13
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 	/**
16 16
 	 * Defines the mutation data modification closure.
17 17
 	 *
18
-     * @param EEM_Venue $model
19
-     * @param Venue $type
18
+	 * @param EEM_Venue $model
19
+	 * @param Venue $type
20 20
 	 * @return callable
21 21
 	 */
22 22
 	public static function mutateFields(EEM_Venue $model, Venue $type)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 		 * @param AppContext    $context              The AppContext passed down to all resolvers
32 32
 		 * @param ResolveInfo   $info                 The ResolveInfo passed down to all resolvers
33 33
 		 */
34
-		return static function (
34
+		return static function(
35 35
 			$post_id,
36 36
 			array $input,
37 37
 			WP_Post_Type $post_type_object,
Please login to merge, or discard this patch.
core/domain/services/graphql/types/Event.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
 
38 38
     /**
39
-     * @return GraphQLFieldInterface[]
39
+     * @return GraphQLField[]
40 40
      * @since $VID:$
41 41
      */
42 42
     public function getFields()
Please login to merge, or discard this patch.
Indentation   +180 added lines, -180 removed lines patch added patch discarded remove patch
@@ -21,188 +21,188 @@
 block discarded – undo
21 21
 class Event extends TypeBase
22 22
 {
23 23
 
24
-    /**
25
-     * Event constructor.
26
-     *
27
-     * @param EEM_Event $event_model
28
-     */
29
-    public function __construct(EEM_Event $event_model)
30
-    {
31
-        $this->model = $event_model;
32
-        $this->setName('Event');
33
-        $this->setIsCustomPostType(true);
34
-        parent::__construct();
35
-    }
24
+	/**
25
+	 * Event constructor.
26
+	 *
27
+	 * @param EEM_Event $event_model
28
+	 */
29
+	public function __construct(EEM_Event $event_model)
30
+	{
31
+		$this->model = $event_model;
32
+		$this->setName('Event');
33
+		$this->setIsCustomPostType(true);
34
+		parent::__construct();
35
+	}
36 36
 
37 37
 
38
-    /**
39
-     * @return GraphQLFieldInterface[]
40
-     * @since $VID:$
41
-     */
42
-    public function getFields()
43
-    {
44
-        return [
45
-            new GraphQLField(
46
-                'name',
47
-                'String',
48
-                'name',
49
-                __('Event Name', 'event_espresso')
50
-            ),
51
-            new GraphQLField(
52
-                'desc',
53
-                'String',
54
-                'description',
55
-                __('Event Description', 'event_espresso')
56
-            ),
57
-            new GraphQLField(
58
-                'shortDesc',
59
-                'String',
60
-                'short_description',
61
-                __('Event Short Description', 'event_espresso')
62
-            ),
63
-            new GraphQLField(
64
-                'created',
65
-                'String',
66
-                'created',
67
-                __('Date/Time Event Created', 'event_espresso')
68
-            ),
69
-            new GraphQLOutputField(
70
-                'wpUser',
71
-                'User',
72
-                null,
73
-                __('Event Creator', 'event_espresso')
74
-            ),
75
-            new GraphQLInputField(
76
-                'wpUser',
77
-                'Int',
78
-                null,
79
-                __('Event Creator ID', 'event_espresso')
80
-            ),
81
-            new GraphQLField(
82
-                'order',
83
-                'Int',
84
-                'order',
85
-                __('Event Menu Order', 'event_espresso')
86
-            ),
87
-            new GraphQLField(
88
-                'displayDesc',
89
-                'Boolean',
90
-                'display_description',
91
-                __('Display Description Flag', 'event_espresso')
92
-            ),
93
-            new GraphQLField(
94
-                'displayTicketSelector',
95
-                'Boolean',
96
-                'display_ticket_selector',
97
-                __('Display Ticket Selector Flag', 'event_espresso')
98
-            ),
99
-            new GraphQLField(
100
-                'visibleOn',
101
-                'String',
102
-                'visible_on',
103
-                __('Event Visible Date', 'event_espresso')
104
-            ),
105
-            new GraphQLField(
106
-                'additionalLimit',
107
-                'String',
108
-                'additional_limit',
109
-                __('Limit of Additional Registrations on Same Transaction', 'event_espresso')
110
-            ),
111
-            new GraphQLField(
112
-                'phone',
113
-                'String',
114
-                'phone',
115
-                __('Event Phone Number', 'event_espresso')
116
-            ),
117
-            new GraphQLField(
118
-                'memberOnly',
119
-                'Boolean',
120
-                'member_only',
121
-                __('Member-Only Event Flag', 'event_espresso')
122
-            ),
123
-            new GraphQLField(
124
-                'allowOverflow',
125
-                'Boolean',
126
-                'allow_overflow',
127
-                __('Allow Overflow on Event', 'event_espresso')
128
-            ),
129
-            new GraphQLField(
130
-                'timezoneString',
131
-                'String',
132
-                'timezone_string',
133
-                __('Timezone (name) for Event times', 'event_espresso')
134
-            ),
135
-            new GraphQLField(
136
-                'externalUrl',
137
-                'String',
138
-                'external_url',
139
-                __('URL of Event Page if hosted elsewhere', 'event_espresso')
140
-            ),
141
-            new GraphQLField(
142
-                'donations',
143
-                'Boolean',
144
-                'donations',
145
-                __('Accept Donations?', 'event_espresso')
146
-            ),
147
-            new GraphQLField(
148
-                'isSoldOut',
149
-                'Boolean',
150
-                'is_sold_out',
151
-                __('Flag indicating whether the tickets sold for the event, met or exceed the registration limit',
152
-                    'event_espresso')
153
-            ),
154
-            new GraphQLField(
155
-                'isPostponed',
156
-                'Boolean',
157
-                'is_postponed',
158
-                __('Flag indicating whether the event is marked as postponed', 'event_espresso')
159
-            ),
160
-            new GraphQLField(
161
-                'isCancelled',
162
-                'Boolean',
163
-                'is_cancelled',
164
-                __('Flag indicating whether the event is marked as cancelled', 'event_espresso')
165
-            ),
166
-            new GraphQLField(
167
-                'isUpcoming',
168
-                'Boolean',
169
-                'is_upcoming',
170
-                __('Whether the event is upcoming', 'event_espresso')
171
-            ),
172
-            new GraphQLField(
173
-                'isActive',
174
-                'Boolean',
175
-                'is_active',
176
-                __('Flag indicating event is active', 'event_espresso')
177
-            ),
178
-            new GraphQLField(
179
-                'isInactive',
180
-                'Boolean',
181
-                'is_inactive',
182
-                __('Flag indicating event is inactive', 'event_espresso')
183
-            ),
184
-            new GraphQLField(
185
-                'isExpired',
186
-                'Boolean',
187
-                'is_expired',
188
-                __('Flag indicating event is expired or not', 'event_espresso')
189
-            ),
190
-        ];
191
-    }
38
+	/**
39
+	 * @return GraphQLFieldInterface[]
40
+	 * @since $VID:$
41
+	 */
42
+	public function getFields()
43
+	{
44
+		return [
45
+			new GraphQLField(
46
+				'name',
47
+				'String',
48
+				'name',
49
+				__('Event Name', 'event_espresso')
50
+			),
51
+			new GraphQLField(
52
+				'desc',
53
+				'String',
54
+				'description',
55
+				__('Event Description', 'event_espresso')
56
+			),
57
+			new GraphQLField(
58
+				'shortDesc',
59
+				'String',
60
+				'short_description',
61
+				__('Event Short Description', 'event_espresso')
62
+			),
63
+			new GraphQLField(
64
+				'created',
65
+				'String',
66
+				'created',
67
+				__('Date/Time Event Created', 'event_espresso')
68
+			),
69
+			new GraphQLOutputField(
70
+				'wpUser',
71
+				'User',
72
+				null,
73
+				__('Event Creator', 'event_espresso')
74
+			),
75
+			new GraphQLInputField(
76
+				'wpUser',
77
+				'Int',
78
+				null,
79
+				__('Event Creator ID', 'event_espresso')
80
+			),
81
+			new GraphQLField(
82
+				'order',
83
+				'Int',
84
+				'order',
85
+				__('Event Menu Order', 'event_espresso')
86
+			),
87
+			new GraphQLField(
88
+				'displayDesc',
89
+				'Boolean',
90
+				'display_description',
91
+				__('Display Description Flag', 'event_espresso')
92
+			),
93
+			new GraphQLField(
94
+				'displayTicketSelector',
95
+				'Boolean',
96
+				'display_ticket_selector',
97
+				__('Display Ticket Selector Flag', 'event_espresso')
98
+			),
99
+			new GraphQLField(
100
+				'visibleOn',
101
+				'String',
102
+				'visible_on',
103
+				__('Event Visible Date', 'event_espresso')
104
+			),
105
+			new GraphQLField(
106
+				'additionalLimit',
107
+				'String',
108
+				'additional_limit',
109
+				__('Limit of Additional Registrations on Same Transaction', 'event_espresso')
110
+			),
111
+			new GraphQLField(
112
+				'phone',
113
+				'String',
114
+				'phone',
115
+				__('Event Phone Number', 'event_espresso')
116
+			),
117
+			new GraphQLField(
118
+				'memberOnly',
119
+				'Boolean',
120
+				'member_only',
121
+				__('Member-Only Event Flag', 'event_espresso')
122
+			),
123
+			new GraphQLField(
124
+				'allowOverflow',
125
+				'Boolean',
126
+				'allow_overflow',
127
+				__('Allow Overflow on Event', 'event_espresso')
128
+			),
129
+			new GraphQLField(
130
+				'timezoneString',
131
+				'String',
132
+				'timezone_string',
133
+				__('Timezone (name) for Event times', 'event_espresso')
134
+			),
135
+			new GraphQLField(
136
+				'externalUrl',
137
+				'String',
138
+				'external_url',
139
+				__('URL of Event Page if hosted elsewhere', 'event_espresso')
140
+			),
141
+			new GraphQLField(
142
+				'donations',
143
+				'Boolean',
144
+				'donations',
145
+				__('Accept Donations?', 'event_espresso')
146
+			),
147
+			new GraphQLField(
148
+				'isSoldOut',
149
+				'Boolean',
150
+				'is_sold_out',
151
+				__('Flag indicating whether the tickets sold for the event, met or exceed the registration limit',
152
+					'event_espresso')
153
+			),
154
+			new GraphQLField(
155
+				'isPostponed',
156
+				'Boolean',
157
+				'is_postponed',
158
+				__('Flag indicating whether the event is marked as postponed', 'event_espresso')
159
+			),
160
+			new GraphQLField(
161
+				'isCancelled',
162
+				'Boolean',
163
+				'is_cancelled',
164
+				__('Flag indicating whether the event is marked as cancelled', 'event_espresso')
165
+			),
166
+			new GraphQLField(
167
+				'isUpcoming',
168
+				'Boolean',
169
+				'is_upcoming',
170
+				__('Whether the event is upcoming', 'event_espresso')
171
+			),
172
+			new GraphQLField(
173
+				'isActive',
174
+				'Boolean',
175
+				'is_active',
176
+				__('Flag indicating event is active', 'event_espresso')
177
+			),
178
+			new GraphQLField(
179
+				'isInactive',
180
+				'Boolean',
181
+				'is_inactive',
182
+				__('Flag indicating event is inactive', 'event_espresso')
183
+			),
184
+			new GraphQLField(
185
+				'isExpired',
186
+				'Boolean',
187
+				'is_expired',
188
+				__('Flag indicating event is expired or not', 'event_espresso')
189
+			),
190
+		];
191
+	}
192 192
 
193 193
 
194
-    /**
195
-     * Extends the existing WP GraphQL mutations.
196
-     * 
197
-     * @since $VID:$
198
-     */
199
-    public function extendMutations()
200
-    {
201
-        add_action(
202
-            'graphql_post_object_mutation_update_additional_data',
203
-            EventUpdate::mutateFields($this->model, $this),
204
-            10,
205
-            6
206
-        );
207
-    }
194
+	/**
195
+	 * Extends the existing WP GraphQL mutations.
196
+	 * 
197
+	 * @since $VID:$
198
+	 */
199
+	public function extendMutations()
200
+	{
201
+		add_action(
202
+			'graphql_post_object_mutation_update_additional_data',
203
+			EventUpdate::mutateFields($this->model, $this),
204
+			10,
205
+			6
206
+		);
207
+	}
208 208
 }
209 209
\ No newline at end of file
Please login to merge, or discard this patch.