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 |
Shortname | Fullname |
---|---|
ZF | Zend Framework |
SF | Symfony Framework |
CI | CodeIgniter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
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:
We're meeting on Freenode in the #symfony-docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
class MyUnit | |
{ | |
private $authChecker; | |
public function __construct(AuthorizationCheckerInterface $authChecker) | |
{ |
- Custom FormType, how to handle form name refactoring: https://github.com/symfony-cmf/RoutingBundle/blob/master/Form/Type/RouteTypeType.php#L72-L83
- Using form types, both name and FQCN. See https://github.com/symfony-cmf/RoutingBundle/blob/master/Util/Sf2CompatUtil.php
- Security context removal, remove typehint from the constuctor for SecurityContextInterface and replace it with an if statement for both SecurityContextInteface and TokenStorageInterface/AuthorizationCheckerInterface. Then, inject the new service by default and create a compiler pass to inject the security context in case Symfony 2.3 was used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- ... --> | |
</head> | |
<body class="page"> | |
<!-- ... --> | |
{% block hero_unit_wrapper -%} | |
<section class="page__sub-header article--featured grid grid--center"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |