Commit Graph
135 Commits
Author SHA1 Message Date
Fabien Potencier 5f2979d88d minor #37 Document the special %generate(secret)% env var value (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #37).

Discussion
----------

Document the special %generate(secret)% env var value

Some recipes are starting to use this feature (see https://github.com/symfony/recipes-contrib/pull/5/files) so let's document it.

Commits
-------

8a103f4 Document the special %generate(secret)% env var value
2017-04-28 20:12:09 -07:00
Javier EguiluzandFabien Potencier 8a103f4696 Document the special %generate(secret)% env var value 2017-04-28 20:12:07 -07:00
Fabien Potencier 0bbc15d08a minor #40 Add a note about the contrib repo (fabpot)
This PR was merged into the master branch.

Discussion
----------

Add a note about the contrib repo

Commits
-------

7a172be added a note about the contrib repo
2017-04-28 16:06:00 -07:00
Fabien Potencier 7a172be537 added a note about the contrib repo 2017-04-28 16:04:08 -07:00
Fabien Potencier a347d9bfdd minor #36 Add current validation performed by the server (fabpot)
This PR was merged into the master branch.

Discussion
----------

Add current validation performed by the server

Commits
-------

ecc8eb5 added current validation performed by the server
2017-04-27 15:05:53 -04:00
Fabien Potencier ecc8eb5d0d added current validation performed by the server 2017-04-27 15:04:36 -04:00
Fabien Potencier e0a719a086 minor #34 Readme tweaks (fabpot)
This PR was squashed before being merged into the master branch (closes #34).

Discussion
----------

Readme tweaks

Commits
-------

15027c7 added a note about the auto-registration of Symfony bundles
5088124 removed most mentions of Flex in the README
2017-04-27 12:50:43 -04:00
Fabien Potencier bd74545b77 minor #35 Add the new %VAR_DIR% to the docs (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

Add the new %VAR_DIR% to the docs

Commits
-------

b90216e Add the new %VAR_DIR% to the docs
2017-04-27 12:49:50 -04:00
Javier Eguiluz b90216e196 Add the new %VAR_DIR% to the docs 2017-04-27 17:35:35 +02:00
Fabien Potencier 15027c7b3b added a note about the auto-registration of Symfony bundles 2017-04-27 11:25:58 -04:00
Fabien Potencier 5088124151 removed most mentions of Flex in the README 2017-04-27 11:22:33 -04:00
Fabien Potencier 711b975c94 minor #30 Recommend specifying the controller itself for EasyAdmin (Pierstoval)
This PR was merged into the master branch.

Discussion
----------

Recommend specifying the controller itself for EasyAdmin

I think it's a better idea to expose the controller itself directly.

It would encourage people to add their own controller by just changing the name of the bundle if they want to override it.

Also, I would suggest to change `master` for a lower requirement (1.14 or 1.15 maybe, there are some without much BC breaks, and they'd still share the same recipe) and add `version_aliases`, but haven't done it in the PR because `master` might have been added for a specific reason 🙂

Commits
-------

b7d9955 Recommend specifying the controller itself for EasyAdmin
2017-04-23 10:22:28 -07:00
Fabien Potencier 2620d29849 bug #31 Fix PHPUnit xsd version (Pierstoval)
This PR was merged into the master branch.

Discussion
----------

Fix PHPUnit xsd version

The base supported version is ~4.7~ 6.1 as specified in the ~directory~ version aliases

Commits
-------

16ae0ab Fix PHPUnit xsd version
2017-04-22 15:43:14 -06:00
Alex Rock Ancelet 16ae0ab94e Fix PHPUnit xsd version 2017-04-22 09:48:20 +02:00
Alex Rock Ancelet b7d99554ab Recommend specifying the controller itself for EasyAdmin 2017-04-21 15:55:50 +02:00
Fabien Potencier 4a02d76bdf feature #28 Switch app.yaml to use autoconfigure (fabpot)
This PR was merged into the master branch.

Discussion
----------

Switch app.yaml to use autoconfigure

Commits
-------

c5f400b switched app.yaml to use autoconfigure
2017-04-20 11:35:00 -06:00
Fabien Potencier c5f400b9a8 switched app.yaml to use autoconfigure 2017-04-20 11:29:28 -06:00
Fabien Potencier 0662535b99 feature #21 Add a recipe to install API Platform (dunglas)
This PR was squashed before being merged into the master branch (closes #21).

Discussion
----------

Add a recipe to install API Platform

But I've no idea of how to test it 😅

Commits
-------

a55986d Add a recipe to install API Platform
2017-04-19 18:57:44 -06:00
Kévin DunglasandFabien Potencier a55986d90b Add a recipe to install API Platform 2017-04-19 18:57:43 -06:00
Fabien Potencier 5d1b645b93 moved the orm pack to the 2.4 version instead of master 2017-04-19 18:56:38 -06:00
Fabien Potencier 77e841b4c0 changed the way post-install output is defined 2017-04-14 00:09:33 -07:00
Fabien Potencier 99e56fc71e changed the way we reference Makefiles 2017-04-13 23:56:25 -07:00
Fabien Potencier 223b140bde feature #26 added symfony/orm-pack (fabpot)
This PR was merged into the master branch.

Discussion
----------

added symfony/orm-pack

Commits
-------

2b44c26 added symfony/orm-pack
2017-04-13 20:26:52 -07:00
Fabien Potencier 2b44c26a66 added symfony/orm-pack 2017-04-13 20:18:10 -07:00
Fabien Potencier cb358d6717 tweaked what's next message 2017-04-13 10:39:04 -07:00
Fabien Potencier 80e1aec834 minor #6 Added an initial documentation for Symfony Flex recipes (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #6).

Discussion
----------

Added an initial documentation for Symfony Flex recipes

It's based on your blog posts and the source code of Flex.

Commits
-------

0cebec2 Added an initial documentation for Symfony Flex recipes
2017-04-13 07:21:08 -07:00
Javier EguiluzandFabien Potencier 0cebec29bc Added an initial documentation for Symfony Flex recipes 2017-04-13 07:21:06 -07:00
Fabien Potencier dc50812538 fixed typo 2017-04-11 12:58:57 -07:00
Fabien Potencier 9e53b01bea added serverVersion in DATABASE_URL 2017-04-11 12:57:58 -07:00
Fabien Potencier 4231f37c16 added a link to the docs for Doctrine URLs 2017-04-11 12:55:26 -07:00
Fabien Potencier 85a1636e46 minor #17 Proposed a help note for the DB_URL config format (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #17).

Discussion
----------

Proposed a help note for the DB_URL  config format

I'm not sure about this, but given that the URL format is so new to most developers, should we add a help note like this one?

Commits
-------

193b15b Proposed a help note for the DB_URL  config format
2017-04-11 12:53:08 -07:00
Javier EguiluzandFabien Potencier 193b15b7ae Proposed a help note for the DB_URL config format 2017-04-11 12:52:26 -07:00
Fabien Potencier a74fd31544 replaced DB_URL by DATABASE_URL 2017-04-11 08:41:49 -07:00
Fabien Potencier 02a0ebc5a8 feature #20 [framework-bundle] use typehints when possible (dunglas)
This PR was squashed before being merged into the master branch (closes #20).

Discussion
----------

[framework-bundle] use typehints when possible

This PR targets PHP 7, but switching to PHP 7.1 would allow to generate stricter code:

```php
<?php

namespace App;

use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\RouteCollectionBuilder;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
class Kernel extends BaseKernel
{
    use MicroKernelTrait;

    private const CONFIG_EXTS = '.{php,xml,yaml,yml}';

    public function getCacheDir(): string
    {
        return dirname(__DIR__).'/var/cache/'.$this->environment;
    }

    public function getLogDir(): string
    {
        return dirname(__DIR__).'/var/logs';
    }

    public function registerBundles(): iterable
    {
        $contents = require dirname(__DIR__).'/etc/bundles.php';
        foreach ($contents as $class => $envs) {
            if (isset($envs['all']) || isset($envs[$this->getEnvironment()])) {
                yield new $class();
            }
        }
    }

    protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
    {
        $confDir = dirname(__DIR__).'/etc';
        $loader->import($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
        if (is_dir($confDir.'/packages/'.$this->getEnvironment())) {
            $loader->import($confDir.'/packages/'.$this->getEnvironment().'/**/*'.self::CONFIG_EXTS, 'glob');
        }
        $loader->import($confDir.'/container'.self::CONFIG_EXTS, 'glob');
    }

    protected function configureRoutes(RouteCollectionBuilder $routes): void
    {
        $confDir = dirname(__DIR__).'/etc';
        if (is_dir($confDir.'/routing/')) {
            $routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
        }
        if (is_dir($confDir.'/routing/'.$this->getEnvironment())) {
            $routes->import($confDir.'/routing/'.$this->getEnvironment().'/**/*'.self::CONFIG_EXTS, '/', 'glob');
        }
        $routes->import($confDir.'/routing'.self::CONFIG_EXTS, '/', 'glob');
    }
}
```

Commits
-------

6a7468d [framework-bundle] use typehints when possible
2017-04-10 19:27:28 -07:00
Kévin DunglasandFabien Potencier 6a7468d543 [framework-bundle] use typehints when possible 2017-04-10 19:27:24 -07:00
Fabien Potencier aa9657c8d1 bug #16 Fixed the URL config example of Swiftmailer (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

Fixed the URL config example of Swiftmailer

Commits
-------

eaff684 Fixed the URL config example of Swiftmailer
2017-04-07 14:06:26 -07:00
Fabien Potencier 0508f63791 feature #15 Added "debug" as an alias of DebugBundle (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

Added "debug" as an alias of DebugBundle

Otherwise we have the same problem as with "security" and "security-bundle":  `composer req --dev debug` installs `symfony/debug` instead of `symfony/debug-bundle`

Commits
-------

a49448a Added "debug" as an alias of DebugBundle
2017-04-07 14:05:20 -07:00
Javier Eguiluz eaff684fc3 Fixed the URL config example of Swiftmailer 2017-04-07 22:53:18 +02:00
Javier Eguiluz a49448a860 Added "debug" as an alias of DebugBundle 2017-04-07 22:33:54 +02:00
Fabien Potencier c7a7b8852e minor #14 Proposed "logger" as an alias of Monolog (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

Proposed "logger" as an alias of Monolog

Commits
-------

5da6d51 Proposed "loggers" as an alias of Monolog
2017-04-07 13:14:48 -07:00
Javier Eguiluz 5da6d51e09 Proposed "loggers" as an alias of Monolog 2017-04-07 22:12:25 +02:00
Fabien Potencier 6250f4695f added a LICENSE file 2017-04-07 11:28:54 -07:00
Fabien Potencier e30857d457 removed unneeded license block 2017-04-07 11:11:11 -07:00
Fabien Potencier 60022e1412 removed usage of getRootDir 2017-04-07 09:58:47 -07:00
Fabien Potencier cafb4bb4b6 replaced kernel.root_dir by kernel.project_dir 2017-04-07 09:57:51 -07:00
Fabien Potencier 762417a826 added phpunit 6.1 support 2017-04-07 07:28:57 -07:00
Fabien Potencier e14725a388 fixed autowire value according to the new new new way :) 2017-04-06 17:30:41 -07:00
Fabien Potencier bf79019ae4 fixed monolog bundle version 2017-04-06 16:40:08 -07:00
Fabien Potencier 347e981b62 removed obsolete config 2017-04-06 16:38:52 -07:00
Fabien Potencier c9b9454dc1 added more Swiftmailer URL examples 2017-04-06 16:36:59 -07:00