Commit Graph
122 Commits
Author SHA1 Message Date
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
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
Fabien Potencier 20ce50f786 fixed version for SwiftmailerBundle 2017-04-06 16:16:54 -07:00
Fabien Potencier 2a7a22ac69 switched to use URLs instead of individual env vars for Doctrine and Swiftmailer 2017-04-06 16:15:04 -07:00
Fabien Potencier b68f207c01 feature #9 [Proposal] Added "security" alias for the SecurityBundle (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

[Proposal] Added "security" alias for the SecurityBundle

The "security" alias installed the core Security component for me:

```
$ composer req security

Using version ^3.3@dev for symfony/security
  - Removing symfony/security-core (dev-master 2cb0385)
  - Installing symfony/inflector (dev-master 3b19c08)
  - Installing symfony/property-access (dev-master 65b1197)
  - Removing symfony/security-csrf (dev-master 46ad802)
  - Installing symfony/security (dev-master a382b7c)
```

So I needed to execute this too:

```
$ composer req security-bundle

Using version ^3.3@dev for symfony/security-bundle
  - Installing symfony/security-bundle (dev-master acbf390)
```

... but given that "Security" is one of those components which are hard to use stand-alone outside the Symfony Framework, maybe most people expect "security" to install the SecurityBundle?

Commits
-------

ab2124d Added "security" alias for the SecurityBundle
2017-04-06 15:52:19 -07:00
Fabien Potencier a915693910 added support for recipes that work for several versions of a package 2017-04-06 09:57:16 -07:00
Fabien Potencier 00f3bb448d bug #8 Fixed the KERNEL_DIR property in symfony/phpunit-bridge (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

Fixed the KERNEL_DIR property in symfony/phpunit-bridge

Commits
-------

948be2c Fixed the KERNEL_DIR property in symfony/phpunit-bridge
2017-04-06 06:47:12 -07:00
Javier Eguiluz ab2124d01d Added "security" alias for the SecurityBundle 2017-04-06 12:11:44 +02:00
Javier Eguiluz 948be2c06f Fixed the KERNEL_DIR property in symfony/phpunit-bridge 2017-04-06 11:52:05 +02:00
Fabien Potencier e821728894 bug #7 Typo in the default symfony/etc/packages/framework.yaml file (javiereguiluz)
This PR was merged into the master branch.

Discussion
----------

Typo in the default symfony/etc/packages/framework.yaml file

Commits
-------

f5b5aa6 Typo in the default symfony/etc/packages/framework.yaml file
2017-04-05 09:08:28 -07:00
Javier Eguiluz f5b5aa636f Typo in the default symfony/etc/packages/framework.yaml file 2017-04-05 18:05:39 +02:00
Fabien Potencier 227bd9bfab added an alias 2017-04-04 20:56:20 -07:00
Fabien Potencier 09deff16bd added a note about required deps for annotations to work 2017-04-04 20:56:19 -07:00
Fabien Potencier 0c0bec48b2 added some aliases for Doctrine annotations 2017-04-04 19:32:05 -07:00
Fabien Potencier 3e486bd97f fixed wrong version 2017-04-04 19:17:12 -07:00