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
This PR was merged into the master branch.
Discussion
----------
Use https when linking to symfony.com
Commits
-------
054c35e Use https when linking to symfony.com
This PR was merged into the master branch.
Discussion
----------
Use "DefaultController" instead of "SomeController" as default
In case https://github.com/fabpot/flex/issues/27 is accepted, this should be the solution.
Commits
-------
e795fa0 Use "DefaultController" instead of "SomeController" as default
This PR was merged into the master branch.
Discussion
----------
Improve the readability of the Makefile tasks
In case https://github.com/fabpot/flex/issues/29 is accepted, this should be the solution.
Commits
-------
6785a02 Improve the readability of the Makefile tasks
This PR was merged into the master branch.
Discussion
----------
[Doctrine] Added an empty Repository/ dir in addition to Entity/
This fixes https://github.com/fabpot/flex/issues/31
Commits
-------
75d3156 [Doctrine] Added an empty Repository/ dir in addition to Entity/