On 05.10.2010, at 22:26, Lukas Kahwe Smith wrote:
> - we want to add a few app/console enhancements to symlink public docroot
> stuff from Bundles into the web dir
noticed that there already is a way to install the assets. it uses the
Symfony\Bundle\FrameworkBundle\Util\Filesystem::mirror() method.
It iterates over the public resources and creates/copies/symlinks:
if (is_dir($file)) {
$this->mkdirs($target);
} else if (is_file($file)) {
$this->copy($file, $target, $options);
} else if (is_link($file)) {
$this->symlink($file, $target);
} else {
throw new \RuntimeException(sprintf('Unable to guess "%s" file
type.', $file));
}
What I dont get is why it doesnt just symlink? even windows has native support
these days both on the OS level since Vista IIRC and in PHP 5.3.
regards,
Lukas Kahwe Smith
[email protected]
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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