cakephp/cakephp — pull request #4976 by ADmad (2014-10-24 20:09:05+00:00)
Title: 3.0 - Add plugin shell.

It symlinks / copies plugin's assets to app's webroot. Thought this might be handy to use in deployment tasks.

One issue I am having is with plugins with vendor namespace. The task first creates directory for vendor name and then proceeds to create symlink for the plugin's webroot inside it, but it fails resulting in folder being copied instead.

If the directory for vendor name exists beforehand the symlink is created without problem. So for some reason php doesn't seem to realize the directory exists when it's created by the script itself. Using clearstatcache() doesn't help.