I did not dig deep enough into the namespace stack. Changing my code to the following made it work:
namespace :symfony do
namespace :project do
desc "Fixes symfony directory permissions using Citizencard custom permission setter"
task :permissions do
run "cd #{latest_release} && #{php_bin} ./symfony citizencard:permissions"
end
end
end
source
share