Skip to content

Instantly share code, notes, and snippets.

View wouterj's full-sized avatar

Wouter de Jong wouterj

View GitHub Profile
service class
annotation_reader Doctrine\Common\Annotations\FileCacheReader
assetic.asset_manager Assetic\Factory\LazyAssetManager
assetic.controller Symfony\Bundle\AsseticBundle\Controller\AsseticController
assetic.filter.cssrewrite Assetic\Filter\CssRewriteFilter
assetic.filter_manager Symfony\Bundle\AsseticBundle\FilterManager
assetic.request_listener Symfony\Bundle\AsseticBundle\EventListener\RequestListener
cache_clearer Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer
cache_warmer Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate
@wouterj
wouterj / list-of-shortnames.rst
Created October 25, 2012 22:21
PHP frameworks and their required PHP version
Shortname Fullname
ZF Zend Framework
SF Symfony Framework
CI CodeIgniter
<?php
namespace App;
require __DIR__.'/vendor/autoload.php';
use Symfony\Component\Console\Application;
use Symfony\Component\Console\ConsoleEvents;
use Symfony\Component\Console\Event\ConsoleCommandEvent;
use Symfony\Component\Console\Input\InputArgument;
security:
encoders:
AppBundle\Entity\User:
algorithm: pbkdf2
hash_algorithm: sha512
encode_as_base64: true
iterations: 1000
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
our_db_provider:
@wouterj
wouterj / README.md
Last active May 21, 2016 12:59 — forked from weaverryan/README.md
Welcome to Symfony Documentation Hack Day May 21st, 2016

It's a Doc Hack Day!

Welcome! No matter what you're level of Symfony or how you feel about your English (I'm sure it's just fine), we have plenty of things we need help with! This document will guide you through everything:

Where are we meeting?

We're meeting on Freenode in the #symfony-docs

<?php
// ...
class MyUnit
{
private $authChecker;
public function __construct(AuthorizationCheckerInterface $authChecker)
{
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
pattern: ^/
provider: db_provider
anonymous: ~
<!doctype html>
<html lang="en">
<head>
<!-- ... -->
</head>
<body class="page">
<!-- ... -->
{% block hero_unit_wrapper -%}
<section class="page__sub-header article--featured grid grid--center">
<?php
namespace Wj\Stoffer;
use Wj\Stoffer\Event\LineEvent;
use Wj\Stoffer\Scissors\ScissorsInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
* @author Wouter J <wouter@wouterj.nl>