Symfony bundle which provides a way to version your application using various versioning strategies
Symfony bundle which creates a dedicated Monolog log file for each command or message handler
Provides a simple way to mock built-in PHP functions in PHPUnit tests
A minor DX improvement, instead of having to do eg:
$tags = [];
Factory::delayFlush(function() use (&$tags) {
// ...
$tags = TagFactory::createMany(200);
});
the needed fixtures can now be returned instead:
$tags = Factory::delayFlush(function() {
// ...
return TagFactory::createMany(200);
});
or multiple:
[$categories, $tags] = Factory::delayFlush(function() {
return [
CategoryFactory::createMany(100),
TagFactory::createMany(200),
];
});
Have delayFlush return the callback's return
I've updated the PR according to my proposal.
Add handler_default_channels configuration option