This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
private function getErrorMessages(\Symfony\Component\Form\Form $form) { | |
$errors = array(); | |
foreach ($form->getErrors() as $key => $error) { | |
$errors[$key] = $error->getMessage(); | |
} | |
if ($form->hasChildren()) { | |
foreach ($form->getChildren() as $child) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this config | |
$ heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib | |
# Login to Heroku CLI | |
$ heroku run bash | |
# The second argument here is the path to your script | |
~ $ ~/php/bin/php -f ~/www/index.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :shared_files, [app_path + "/config/parameters.yml"] | |
namespace :symfony do | |
namespace :configure do | |
def shared_parameters_path | |
"#{shared_path}/#{app_path}/config/parameters.yml" | |
end | |
def app_parameters_path | |
"#{latest_release}/#{app_path}/config/parameters.yml" |