Projekt

Allgemein

Profil

h1. Symfony

  • Installation per Puppet

h3. Neues Bundle

php bin/console generate:bundle

h3. Bundle löschen (kompliziert)

It is basically the process you have outlined, only in somewhat different order.

  • delete /src/Test/BlogBundle directory
  • change /app/config/routing.yml file to remove the bundle routes
  • remove your new bundle from /app/AppKernel.php
  • clear cache (either by deleting cache/{$env} or console cache:clear)

If this wasn't installed using a dependency manager - that should be all.

h2. Routing

h2. Parameters

h2. Intl

h4. Installation

composer require symfony/intl

h4. Wrong

$this->get('session')->set('_locale', 'de_DE');

h4. Usage

Meist schon aktiviert.


use Symfony\Component\Intl\Intl;

\Locale::setDefault('de');