honeybee / trellis

Library for defining structured entities in php.
Mozilla Public License 2.0
8 stars 1 forks source link

file permissions are 0755 instead of 0640 after codegen #27

Open graste opened 8 years ago

graste commented 8 years ago

The files generated are 0750 atm while they should be 0640. They're then deployed via copy or move operation and then have 0755 in the target folder of the application. The codecache folder has the permissions wanted when the FILE_MODE constant is changed to 0640, but the deployed files are not adhering to that. Reason is the Symfony Filesystem component as that introduced in v2.7.x a change to only "keep executable permission when a file is copied" (as in Unix' ls). Further on: setting the file mode when dumping a file has been deprecated in 2.x and has been removed in 3.x.

Suggestions: