Skip to content

Instantly share code, notes, and snippets.

View htaoufikallah's full-sized avatar

Hicham Taoufikallah htaoufikallah

View GitHub Profile
@vvasiloi
vvasiloi / ExampleFactoryDecoratorTrait.php
Last active November 17, 2020 12:26
Extract options when decorating an example factory. See example usage in ProductExampleFactory.php. #sylius #fixtures #example #factory
<?php
namespace App\Fixture\Factory;
use Symfony\Component\OptionsResolver\OptionsResolver;
trait ExampleFactoryDecoratorTrait
{
/**
* @param array $options
@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@leon
leon / nginx.conf
Created June 29, 2012 16:34
Nginx PHP-FPM Symfony 2 minimal config
server {
listen 80;
server_name localhost;
root /home/website/web;
rewrite ^/app\.php/?(.*)$ /$1 permanent;
try_files $uri @rewriteapp;
location @rewriteapp {