- Add the following lines of code to the
composer.jsonfile:
"leafo/lessphp": "*"
- Run
composer install
| $ rbenv install 2.1.2 | |
| ruby-build: definition not found: 2.1.2 | |
| You can list all available versions with `rbenv install --list'. | |
| If the version you're looking for is not present, first try upgrading | |
| ruby-build. If it's still missing, open a request on the ruby-build | |
| issue tracker: https://github.com/sstephenson/ruby-build/issues | |
| (Fun fact: Recent versions of ruby-build will give you a more helpful error message which just tells you the following.) |
| { | |
| "node" : true, | |
| "browser" : true, | |
| "es5" : true, | |
| "esnext" : true, | |
| "bitwise" : true, | |
| "camelcase": true, | |
| "curly" : true, | |
| "eqeqeq" : true, | |
| "immed" : true, |
| <?php | |
| public function testSetCookieAction() | |
| { | |
| $value = '12345'; | |
| $html = '<html><body>test set cookie varName =' . $value . '</body></html>'; | |
| $response = new Response($html); | |
| $response->headers->setCookie(new Cookie('varName', $value, time() + (3600 * 48))); | |
| return $response; | |
| } |
| <?php | |
| use Symfony\Component\HttpFoundation\File\File; | |
| use Symfony\Component\HttpFoundation\File\UploadedFile; | |
| /** | |
| * @Entity | |
| */ | |
| class Document | |
| { |
| class User | |
| has_attached_file :photo, | |
| :processors => [:watermark], | |
| :styles => { | |
| :medium => { | |
| :geometry => "300x300>", | |
| :watermark_path => "#{Rails.root}/public/images/watermark.png" | |
| }, | |
| :thumb => "100x100>", | |
| } |