Avoid duplicate App container creation#14548
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
How to verify this? |
| try { | ||
| $this->container = \OC::$server->getRegisteredAppContainer($appName); | ||
| } catch (QueryException $e) { | ||
| $this->container = new \OC\AppFramework\DependencyInjection\DIContainer($appName, $urlParams); |
There was a problem hiding this comment.
Doesn't the container need to be registered then in the server container to avoid it being instantiated twice again?
There was a problem hiding this comment.
that's what DIContainer does already.
|
|
Ah ok so this doesn't solve the 2 constructor calls (let do that separatly). But it is quite elegant. However. it does seem like our tests are not as clean as we'd like... |
|
CI failure :/ |
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 16809: failureDB=mysql, ENABLE_REDIS=false, PHP=7.3Show full logDB=mysqlmb4, ENABLE_REDIS=false, PHP=7.3Show full logTESTS=integration-federation_features
Show full logTESTS=integration-sharing-v1
Show full logTESTS=acceptance, TESTS-ACCEPTANCE=app-files
Show full logTESTS=acceptance, TESTS-ACCEPTANCE=app-files-sharing-link
Show full logTESTS=acceptance, TESTS-ACCEPTANCE=login
Show full log |
MorrisJobke
left a comment
There was a problem hiding this comment.
Code looks good, tested and works 👍
|
This patch breaks the
|
|
Will this and all other relevant patches which are required to fix regressions be backported to 15 and 14? |
|
14 is running out of support pretty soon And as for 15, I'm not sure, since it might require work by other apps to fix stuff too. |
Signed-off-by: Joas Schilling coding@schilljs.com