Open dantleech opened 9 years ago
+1
+1
I think it the methods in AbstractKernel should be just moved to SuluKernel. I also suggest adding special cache and log dirs if the environment is Vagrant (then it should be moved to /dev/shm) for better performance. Like the Sylius guys did it here https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/CoreBundle/Kernel/Kernel.php#L130-157
Probably makes sense. And I also like the vagrant solution from Sylius, I think we should do it the same way. /cc @philipheimboeck
+1
+1
@chirimoya Doesn't the linked issue replace this one? We would remove the AbstractKernel
there, won't we?
@danrot Not sure if it replaces, I think they are related.
I think they are related, too. However, do we really provide a prebuilt kernel for our users? That means that changing that kernel automatically changes all applications using that kernel. I think that's a bit risky.
I also think that makes less sense, if we change to a single kernel setup and stop pulling from sulu-standard. So I'd rather not do that anymore.
I don't really like the idea of having vagrant related stuff right in the kernel. It is a development detail. There are better ways for doing this IMO, which does not effect the application itself.
We should have a
DefaultKernel
or something insulu/sulu
which contains all of the bundle instantiations. The standard edition kernel would then extend this class.This will enable us to handle our bundle dependencies in the main library instead of client installations which may not get updated (who wants to merge and fix conflicts in their setups? especially when they do not understand the changes).
Users would then be able to extend a different class if for some reason they do not want a certain bundle enabled (or we could add a method to explicitly disable bundles).