sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
More info at http://symfony.com/doc/current/book/installation.html
sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
{ "keys": [":"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": ":"},
"context": [{"key": "setting.command_mode"}]
}
// src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
namespace Acme\DemoBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;
class AcmeDemoExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
}
public function getAlias()
{
return 'acme_demo';
}
}
The main changes are:$connection = $this->getApplication()->getKernel()->getContainer()->get('doctrine')->getConnection();
if ($connection->isConnected()) {
$connection->close();
}
$drop = $this->getApplication()->find('doctrine:database:drop');
$drop_args = array(
'command'=>'doctrine:database:drop',
'--force'=>true
);
$drop->run(new ArrayInput($drop_args), $output);
//Make sure we close the original connection because it lost the reference to the database
$connection = $this->getApplication()->getKernel()->getContainer()->get('doctrine')->getConnection();
if ($connection->isConnected()) {
$connection->close();
}
$create = $this->getApplication()->find('doctrine:database:create');
$created_args = array(
'command'=>'doctrine:database:create'
);
$create->run(new ArrayInput($created_args), $output);
$update = $this->getApplication()->find('doctrine:schema:update');
$update_args = array(
'command'=>'doctrine:schema:update',
'--force'=>true,
'--em'=>'default'
);
$update->run(new ArrayInput($update_args), $output);
// We delay showing the popup so that fast Alt+Tab users aren't
// disturbed by the popup briefly flashing.
this._initialDelayTimeoutId = Mainloop.timeout_add(POPUP_DELAY_TIMEOUT,
Lang.bind(this, function () {
this.actor.opacity = 255;
this._initialDelayTimeoutId = 15;
}));
and change this._initialDelayTimeoutId = 0git tag -a my_tag_name
fatal: tag 'my_tag_name' already exists
git tag -a my_tag_name -f