2013/5/13 Roland Franssen <[email protected]>
> Hi,
>
> I would like to start a discussion on multiple base/root dir support in
> the HttpKernel\KernelInterface.
>
> The basic idea is that an application can have multiple "app" folders for
> different layers of configuration, resources etc. In a nutshell; global
> resources (e.g. app/config/parameters.yml, app/Resources/views).
>
Hi,
My first thought here: "app/" contains the application-stuff. When you
split it even further, what does the other folders contain? If it contains
things, that you share between applications, maybe it should be a bundle
instead?
I wouldn't share configurations between applications, because I would
always fear to change a setting in one app to avoid breaking the other one.
Regards,
Sebastian
>
> This should also come with a standardized bootstrap component, e.g.;
>
>> <?php
>> // web/index.php
>> $bootstrap = new
>> Symfony\Component\Bootstrap\HttpBootstrap('global_path/:my_path/:../app');
>
> $bootstrap->init();
>
> $bootstrap->setup();
>> $bootstrap->run();
>
> $bootstrap->getKernel()->getRootDir(); // ../app
>
> $bootstrap->getKernel()->getBasePaths(); // array('global_path/',
>> 'my_path/', '../app');
>
>
> However this seems to be a drastic architecture change as
> %kernel.root_dir% is pretty much used in each bundle out there. On the
> other hand... symfony2 is already flexible enough to handle this.
>
> I personally favor this kind of setup over symlink terror. Any thoughts on
> this? Is it desired? Should I stop all development immediately? (I'm
> currently working on a proof of concept for the framework bundle).
>
> Roland,
>
> --
> --
> If you want to report a vulnerability issue on Symfony, please read the
> procedure on http://symfony.com/security
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Symfony developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
github.com/KingCrunch
--
--
If you want to report a vulnerability issue on Symfony, please read the
procedure on http://symfony.com/security
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
---
You received this message because you are subscribed to the Google Groups
"Symfony developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.