Repository navigation
Load Classpaths of apps before appinfo/routes.php - #1214
Conversation
There was a problem hiding this comment.
Is there a way to sandbox this require call?
In case of e.g. syntax error the whole ownCloud instance is dead.
(Applies to other require calls as well - but it came to my mind while reading this ;-) )
There was a problem hiding this comment.
From what ive heard in #php not possible. A solution would be to put the defintions into an XML file and catch XML parsing errors.
There was a problem hiding this comment.
People from ##php recommended to run a sanity check before enabling an app.
php -l
runs a syntax check for instance, but there will have to be more tests for other FATAL errors.
There was a problem hiding this comment.
php -l
is what we do within Jenkins - and come more.
Maybe we simply keep it as it as and trust in our apps and the apps review process on apps.owncloud.com
There was a problem hiding this comment.
make it a simple file with class\tfile lines, also no misuse possible
There was a problem hiding this comment.
hehe - I knew this would pop up! ;-)
Makes sense!
There was a problem hiding this comment.
And how about getting rid of that ugly version file?
<dbversion>4</dbversion>
There was a problem hiding this comment.
Also we could get rid of app enabled checks by using something like this
<needs>
<appenabled>appframework</appenabled>
</needs>
There was a problem hiding this comment.
okay - it's time to summon @arkascha ....
.... he had some ideas on dependencies as well.
There was a problem hiding this comment.
we should close this pr and start with a new issue where we collect all ideas and let implementations follow
|
👍 |
|
👍 |
Load Classpaths of apps before appinfo/routes.php
To be able to use the appframework in routing (you need to call the App::main method for handling the request) the classes of the appframework need to be available.
This patch loads all classpath definitions in appinfo/classpath.php before the appinfo/routes.php.