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
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
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
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
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
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
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
This PR was merged into the master branch.
Discussion
----------
Switch app.yaml to use autoconfigure
Commits
-------
c5f400b switched app.yaml to use autoconfigure
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
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
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
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
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
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
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