| 1 |
<?php |
| 2 |
|
| 3 |
namespace Depicter\Application; |
| 4 |
|
| 5 |
use Averta\WordPress\Cache\WPCache; |
| 6 |
use Averta\WordPress\Event\Action; |
| 7 |
use Averta\WordPress\Event\Filter; |
| 8 |
use Averta\WordPress\Models\WPOptions; |
| 9 |
use Depicter; |
| 10 |
use Depicter\Database\DataMigration; |
| 11 |
use Depicter\Database\Repository\DocumentAnalyticsRepository; |
| 12 |
use Depicter\Database\Repository\DocumentRepository; |
| 13 |
use Depicter\Database\Repository\LeadFieldRepository; |
| 14 |
use Depicter\Database\Repository\LeadRepository; |
| 15 |
use Depicter\Database\Repository\MetaRepository; |
| 16 |
use Depicter\Document\Manager as DocumentManager; |
| 17 |
use Depicter\DataSources\Manager as DataSources; |
| 18 |
use Depicter\Document\Migrations\DocumentMigration; |
| 19 |
use Depicter\Modules\WooCommerce\Module as WooCommerceModule; |
| 20 |
use Depicter\Rules\Conditions\Manager as ConditionsManager; |
| 21 |
use Depicter\Editor\Editor; |
| 22 |
use Depicter\Editor\EditorData; |
| 23 |
use Depicter\Front\Front; |
| 24 |
use Depicter\Front\Symbols; |
| 25 |
use Depicter\Modules\Modules; |
| 26 |
use Depicter\Services\BackgroundRemovalService; |
| 27 |
use Depicter\Services\ClientService; |
| 28 |
use Depicter\Services\ExportService; |
| 29 |
use Depicter\Services\GeoLocateService; |
| 30 |
use Depicter\Services\GoogleRecaptchaV3; |
| 31 |
use Depicter\Services\ImportService; |
| 32 |
use Depicter\Services\LeadService; |
| 33 |
use Depicter\Services\MediaBridge; |
| 34 |
use Depicter\Services\RemoteAPIService; |
| 35 |
use Depicter\Services\SettingsManagerService; |
| 36 |
use Depicter\Services\StorageService; |
| 37 |
use Depicter\Services\AuthorizationService; |
| 38 |
use Depicter\Services\AuthenticationService; |
| 39 |
use Depicter\Services\UsageService; |
| 40 |
use Depicter\WordPress\DeactivationFeedbackService; |
| 41 |
use Depicter\WordPress\SchedulingService; |
| 42 |
use Depicter\WordPress\FileUploaderService; |
| 43 |
use Depicter\Services\AIWizardService; |
| 44 |
use WPEmergeAppCore\AppCore\AppCore; |
| 45 |
use Depicter\Services\GoogleFontsService; |
| 46 |
use Depicter\Rules\Condition\Conditions; |
| 47 |
use Depicter\Integration\Manager as IntegrationManager; |
| 48 |
use Depicter\Database\Repository\QueueJobRepository; |
| 49 |
use Depicter\Services\QueueService; |
| 50 |
use Depicter\Services\AnalyticsService; |
| 51 |
|
| 52 |
/** |
| 53 |
* "@mixin" annotation for better IDE support. |
| 54 |
* This class is not meant to be used in any other capacity. |
| 55 |
* |
| 56 |
* @codeCoverageIgnore |
| 57 |
*/ |
| 58 |
final class AppMixin |
| 59 |
{ |
| 60 |
|
| 61 |
/** |
| 62 |
* Get the Application instance. |
| 63 |
* |
| 64 |
* @codeCoverageIgnore |
| 65 |
* @return Depicter |
| 66 |
*/ |
| 67 |
public static function app() {} |
| 68 |
|
| 69 |
/** |
| 70 |
* Get the Theme service instance. |
| 71 |
* |
| 72 |
* @return AppCore |
| 73 |
*/ |
| 74 |
public static function core(): AppCore {} |
| 75 |
|
| 76 |
/** |
| 77 |
* @return WPOptions |
| 78 |
*/ |
| 79 |
public static function options(): WPOptions {} |
| 80 |
|
| 81 |
/** |
| 82 |
* @return DocumentManager |
| 83 |
*/ |
| 84 |
public static function document(): DocumentManager {} |
| 85 |
|
| 86 |
/** |
| 87 |
* @return Action |
| 88 |
*/ |
| 89 |
public static function action(): Action {} |
| 90 |
|
| 91 |
/** |
| 92 |
* @return Filter |
| 93 |
*/ |
| 94 |
public static function filter(): Filter {} |
| 95 |
|
| 96 |
/** |
| 97 |
* @return Editor |
| 98 |
*/ |
| 99 |
public static function editor(): Editor {} |
| 100 |
|
| 101 |
/** |
| 102 |
* @return MediaBridge |
| 103 |
*/ |
| 104 |
public static function media(): MediaBridge {} |
| 105 |
|
| 106 |
/** |
| 107 |
* @return RemoteAPIService |
| 108 |
*/ |
| 109 |
public static function remote(): RemoteAPIService {} |
| 110 |
|
| 111 |
/** |
| 112 |
* @return DocumentRepository |
| 113 |
*/ |
| 114 |
public static function documentRepository():DocumentRepository {} |
| 115 |
|
| 116 |
/** |
| 117 |
* @return Front |
| 118 |
*/ |
| 119 |
public static function front(): Front{} |
| 120 |
|
| 121 |
/** |
| 122 |
* @return StorageService |
| 123 |
*/ |
| 124 |
public static function storage(): StorageService {} |
| 125 |
|
| 126 |
/** |
| 127 |
* Retrieves the cache module |
| 128 |
* |
| 129 |
* @param string $module |
| 130 |
* |
| 131 |
* @return WPCache |
| 132 |
*/ |
| 133 |
public static function cache( $module = 'api' ): WPCache{} |
| 134 |
|
| 135 |
/** |
| 136 |
* @return DeactivationFeedbackService |
| 137 |
*/ |
| 138 |
public static function deactivationFeedback(): DeactivationFeedbackService{} |
| 139 |
|
| 140 |
/** |
| 141 |
* @return ClientService |
| 142 |
*/ |
| 143 |
public static function client(): ClientService{} |
| 144 |
|
| 145 |
/** |
| 146 |
* @return FileUploaderService |
| 147 |
*/ |
| 148 |
public static function fileUploader(): FileUploaderService{} |
| 149 |
|
| 150 |
/** |
| 151 |
* @return DataSources |
| 152 |
*/ |
| 153 |
public static function dataSource(): DataSources{} |
| 154 |
|
| 155 |
/** |
| 156 |
* @return ExportService |
| 157 |
*/ |
| 158 |
public static function exportService(): ExportService{} |
| 159 |
|
| 160 |
/** |
| 161 |
* @return ImportService |
| 162 |
*/ |
| 163 |
public static function importService(): ImportService{} |
| 164 |
|
| 165 |
/** |
| 166 |
* @return Symbols |
| 167 |
*/ |
| 168 |
public static function symbolsProvider(): Symbols{} |
| 169 |
|
| 170 |
/** |
| 171 |
* @return AuthorizationService |
| 172 |
*/ |
| 173 |
public static function authorization(): AuthorizationService{} |
| 174 |
|
| 175 |
/** |
| 176 |
* @return AuthenticationService |
| 177 |
*/ |
| 178 |
public static function auth(): AuthenticationService {} |
| 179 |
|
| 180 |
/** |
| 181 |
* @return Modules |
| 182 |
*/ |
| 183 |
public static function modules(): Modules{} |
| 184 |
|
| 185 |
/** |
| 186 |
* @return AIWizardService |
| 187 |
*/ |
| 188 |
public static function AIWizard(): AIWizardService{} |
| 189 |
|
| 190 |
/** |
| 191 |
* @return EditorData |
| 192 |
*/ |
| 193 |
public static function editorData(): EditorData{} |
| 194 |
|
| 195 |
/** |
| 196 |
* @return GoogleFontsService |
| 197 |
*/ |
| 198 |
public static function googleFontsService() {} |
| 199 |
|
| 200 |
/** |
| 201 |
* @return MetaRepository |
| 202 |
*/ |
| 203 |
public static function metaRepository(): MetaRepository {} |
| 204 |
|
| 205 |
/** |
| 206 |
* @return SchedulingService |
| 207 |
*/ |
| 208 |
public static function schedule(): SchedulingService{} |
| 209 |
|
| 210 |
/** |
| 211 |
* @return ConditionsManager |
| 212 |
*/ |
| 213 |
public static function conditionsManager(): ConditionsManager {} |
| 214 |
|
| 215 |
/** |
| 216 |
* @return Conditions |
| 217 |
*/ |
| 218 |
public static function conditions(): Conditions {} |
| 219 |
|
| 220 |
/** |
| 221 |
* @return GeoLocateService |
| 222 |
*/ |
| 223 |
public static function geoLocate(): GeoLocateService {} |
| 224 |
|
| 225 |
/** |
| 226 |
* @return DocumentMigration |
| 227 |
*/ |
| 228 |
public static function documentMigration(): DocumentMigration {} |
| 229 |
|
| 230 |
/** |
| 231 |
* @return LeadRepository |
| 232 |
*/ |
| 233 |
public static function leadRepository(): LeadRepository {} |
| 234 |
|
| 235 |
/** |
| 236 |
* @return LeadFieldRepository |
| 237 |
*/ |
| 238 |
public static function leadFieldRepository(): LeadFieldRepository {} |
| 239 |
|
| 240 |
/** |
| 241 |
* @return LeadService |
| 242 |
*/ |
| 243 |
public static function lead(): LeadService {} |
| 244 |
|
| 245 |
/** |
| 246 |
* @return GoogleRecaptchaV3 |
| 247 |
*/ |
| 248 |
public static function recaptcha(): GoogleRecaptchaV3 {} |
| 249 |
|
| 250 |
/** |
| 251 |
* @return UsageService |
| 252 |
*/ |
| 253 |
public static function usageService(): UsageService {} |
| 254 |
|
| 255 |
/** |
| 256 |
* @return BackgroundRemovalService |
| 257 |
*/ |
| 258 |
public static function backgroundRemoval(): BackgroundRemovalService {} |
| 259 |
|
| 260 |
/** |
| 261 |
* @return WooCommerceModule |
| 262 |
*/ |
| 263 |
public static function WooCommerce(): WooCommerceModule {} |
| 264 |
|
| 265 |
/** |
| 266 |
* @return SettingsManagerService |
| 267 |
*/ |
| 268 |
public static function settings(): SettingsManagerService {} |
| 269 |
|
| 270 |
public static function integration(): IntegrationManager {} |
| 271 |
|
| 272 |
/** |
| 273 |
* @return QueueJobRepository |
| 274 |
*/ |
| 275 |
public static function queueJobsRepository(): QueueJobRepository {} |
| 276 |
|
| 277 |
/** |
| 278 |
* @return QueueService |
| 279 |
*/ |
| 280 |
public static function queue(): QueueService {} |
| 281 |
|
| 282 |
/** |
| 283 |
* @return AnalyticsService |
| 284 |
*/ |
| 285 |
public static function analytics(): AnalyticsService {} |
| 286 |
|
| 287 |
/** |
| 288 |
* @return DocumentAnalyticsRepository |
| 289 |
*/ |
| 290 |
public static function documentAnalyticsRepository(): DocumentAnalyticsRepository {} |
| 291 |
} |
| 292 |
|