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
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
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
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