I am looking at downloading and learning Symfony 2. I haven't really looked at a PHP framework before.
I'm aware discussion isn't allowed on here, but I'm pretty certain my question isn't subjective and there's an obvious clear answer to my question.
Why is Symfony 2 downloaded into the public web root?
Surely it should be non-public and only HTML/CSS etc should be public?
Obviously I'm wrong, but would appreciate the reason for this.
Doesn't that mean that somebody can go to http://mysite.com/symfony/classes/database.php etc. (not a specific URL, but just to highlight my point) and run various scripts? Obviously that's probably just a class file, but it still doesn;t seem right to me.
Also, I want to run say 5 or 6 different sites on the same framework. If it's installed in the web root then doesn't that mean I need to install the entire Symfony code base for each site (in each site's web root) - where as if it was hosted outside the web root then each site can reference that (e.g. '../../symfony/classes/database.php' etc.) (as long as on all sites are on the same server).
I must me missing something very clear and obvious.