2 users online. Create an account or sign in to join them.Users
Possible Refactor of the Symphony::Engine() method
This is an open discussion with 2 replies, filed under General.
Search
The concept of different renderers, which Frontend and Administration are, has been discussed before and it was actually implemented in the early S3 builds.
Instead of an array, it looked for naming convention within extensions, /extension-name/renderer/lib.render-name.php. This concept was to be fleshed out so that things like the ErrorHandler would become it's own renderer and not need to initialise things like the Database, Lang or ExtensionManager.
No it's not possible in 2.3, it's probably a target for 2.4.
Ok thanks for your explanation @brendo.
I will keep my modified version of the core for this project.
But I do not understand why you let this 'out of scope' for 2.3 ... ?
Create an account or sign in to comment.
Hi folks, I am back! After 4 long months of Objective-C, I am back into Symphony! We have a lot of websites to build in the next months and I am trilled to work with this beautifull piece of software again.
Today, I was writting a simple php script in order to import data from a RSS Feed into Symphony entries. I use as a starting point Alistair's old Shell extension... works great, event with Sym 2.2.5, but it can't accomplish everything!!
So I started to extends some core classes, making my way into a ShellEntry and a ShellEntryManager... But as soon as I would hit a
Symphony::Engine()call, my script failed.So my idea would be this: Instead of the if else statement looking for the class Administration or Frontend, we could declare a static array of those class names. This way, we could 'inject' the Shell class (or any other Symphony implementation) and everything would be ok! I found that the if else statement has been copied elsewhere in the code source, and I am willing to patch everything out.
I would like to have anybody's opinion on that, before doing the code. Thanks.
B.T.W: Is this possible in 2.3 ?
P.S. This post should be filled in the 'Development' category, but it does not exists, hence my choice of 'General'