kopia lustrzana https://github.com/nextcloud/social
				
				
				
			query instead of create Application in background jobs
							rodzic
							
								
									84d4ad5612
								
							
						
					
					
						commit
						0ce3da28d7
					
				|  | @ -76,7 +76,7 @@ class Cache extends TimedJob { | |||
| 	 * @throws QueryException | ||||
| 	 */ | ||||
| 	protected function run($argument) { | ||||
| 		$app = new Application(); | ||||
| 		$app = \OC::$server->query(Application::class); | ||||
| 		$c = $app->getContainer(); | ||||
| 
 | ||||
| 		$this->accountService = $c->query(AccountService::class); | ||||
|  |  | |||
|  | @ -66,7 +66,7 @@ class Chunk extends TimedJob { | |||
| 	 * @throws QueryException | ||||
| 	 */ | ||||
| 	protected function run($argument) { | ||||
| 		$app = new Application(); | ||||
| 		$app = \OC::$server->query(Application::class); | ||||
| 		$c = $app->getContainer(); | ||||
| 
 | ||||
| 		$this->configService = $c->query(ConfigService::class); | ||||
|  |  | |||
|  | @ -76,7 +76,7 @@ class Queue extends TimedJob { | |||
| 	 * @throws QueryException | ||||
| 	 */ | ||||
| 	protected function run($argument) { | ||||
| 		$app = new Application(); | ||||
| 		$app = \OC::$server->query(Application::class); | ||||
| 		$c = $app->getContainer(); | ||||
| 
 | ||||
| 		$this->requestQueueService = $c->query(RequestQueueService::class); | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Robin Appelman
						Robin Appelman