-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.phpstorm.meta.php
More file actions
98 lines (89 loc) · 3.82 KB
/
.phpstorm.meta.php
File metadata and controls
98 lines (89 loc) · 3.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* This file declares all of the plugin containers available services and accessors for IDEs to read.
*
* NOTE: VS Code can use this file as well when the PHP Intelliphense extension is installed to provide autocompletion.
*
* @author Code Atlantic
* @package PopupMaker
* @copyright (c) 2024, Code Atlantic LLC.
*/
namespace PHPSTORM_META;
/**
* Provide autocompletion for plugin container access.
*
* Return lists below all must match, it cannot be defined as a variable.
* Thus all the duplication is needed.
*/
override(\PopupMaker\Plugin\Core::get_controller(0), map([
// Controllers
'PostTypes' => \PopupMaker\Controllers\PostTypes::class,
'Assets' => \PopupMaker\Controllers\Assets::class,
'Admin' => \PopupMaker\Controllers\Admin::class,
'Frontend\Popups' => \PopupMaker\Controllers\Frontend\Popups::class,
'Compatibility' => \PopupMaker\Controllers\Compatibility::class,
'CallToActions' => \PopupMaker\Controllers\CallToActions::class,
'RestAPI' => \PopupMaker\Controllers\RestAPI::class,
]));
override(\PopupMaker\Plugin\Container::get_controller(0), map([
// Controllers
'PostTypes' => \PopupMaker\Controllers\PostTypes::class,
'Assets' => \PopupMaker\Controllers\Assets::class,
'Admin' => \PopupMaker\Controllers\Admin::class,
'Frontend\Popups' => \PopupMaker\Controllers\Frontend\Popups::class,
'Compatibility' => \PopupMaker\Controllers\Compatibility::class,
'CallToActions' => \PopupMaker\Controllers\CallToActions::class,
'RestAPI' => \PopupMaker\Controllers\RestAPI::class,
]));
override(\PopupMaker\Plugin\Core::get(0), map([
// Services
'popups' => \PopupMaker\Services\Repository\Popups::class,
'ctas' => \PopupMaker\Services\Repository\CallToActions::class,
'cta_types' => \PopupMaker\Services\Collector\CallToActionTypes::class,
'globals' => \PopupMaker\Services\Globals::class,
'logging' => \PopupMaker\Services\Logging::class,
'license' => \PopupMaker\Services\License::class,
'connect' => \PopupMaker\Services\Connect::class,
// Config Values
'path' => 'string',
'url' => 'string',
'slug' => 'string',
'version' => 'string',
'db_ver' => 'string',
'prefix' => 'string',
]));
// Required for external plugin() function access.
override(\PopupMaker\plugin(0), map([
// Services
'popups' => \PopupMaker\Services\Repository\Popups::class,
'ctas' => \PopupMaker\Services\Repository\CallToActions::class,
'cta_types' => \PopupMaker\Services\Collector\CallToActionTypes::class,
'globals' => \PopupMaker\Services\Globals::class,
'logging' => \PopupMaker\Services\Logging::class,
'license' => \PopupMaker\Services\License::class,
// Config Values
'path' => 'string',
'url' => 'string',
'slug' => 'string',
'version' => 'string',
'db_ver' => 'string',
'prefix' => 'string',
]));
// Required for internal $controller->container->get($id);
override( \PopupMaker\Plugin\Container::get(0), map([
// Services
'popups' => \PopupMaker\Services\Repository\Popups::class,
'ctas' => \PopupMaker\Services\Repository\CallToActions::class,
'cta_types' => \PopupMaker\Services\Collector\CallToActionTypes::class,
'globals' => \PopupMaker\Services\Globals::class,
'logging' => \PopupMaker\Services\Logging::class,
'license' => \PopupMaker\Services\License::class,
'connect' => \PopupMaker\Services\Connect::class,
// Config Values
'path' => 'string',
'url' => 'string',
'slug' => 'string',
'version' => 'string',
'db_ver' => 'string',
'prefix' => 'string',
]));