Skip to content

Instantly share code, notes, and snippets.

View Jonathanlight's full-sized avatar
🎯
Focusing

jonathan Jonathanlight

🎯
Focusing
  • Paris
View GitHub Profile

Pour faire cela sous Symfony, il est possible d'utiliser le système d'event listeners.

1. Créer un listener CacheControlListener comme suit:
<?php

namespace App\EventListener;

use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
@dgoguerra
dgoguerra / setup-npm-gulp-sass.sh
Last active August 31, 2021 09:33
Install node, npm, bower, gulp, compass in Ubuntu 16.04
sudo apt-get install -y git-core
sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g bower
sudo npm install -g gulp
sudo apt-get install -y ruby ruby-dev