Skip to content

Commit a5c62d4

Browse files
authored
Update README for new release
1 parent 5efd48c commit a5c62d4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Use composer to include it into your Symfony project:
1414

1515
### What version to use?
1616
Symfony did make some breaking changes, so you should make sure to use a compatible bundle version:
17-
* Version 2.1.* for Symfony 4.0 and higher
18-
* Version 2.0.* for Symfony 3.0 - 3.4
19-
* Version 1.3.* for Symfony 2.8
17+
* Version 3.0.* for Symfony 4 and 5 and higher
18+
* Version 2.0.* for Symfony 3
19+
* Version 1.3.* for Symfony 2.8+
2020

2121
When upgrading, please consult the [changelog](Changelog.md) to see what could break your code.
2222

@@ -36,7 +36,7 @@ class MinimalDemoCommand extends EndlessCommand
3636
protected function configure()
3737
{
3838
$this->setName('acme:minimaldemo')
39-
->setDescription('An EndlessCommand implementation example');
39+
->setDescription('An EndlessCommand implementation example');
4040
}
4141

4242
// Execute will be called in a endless loop
@@ -82,8 +82,6 @@ Memory usage is very important for long running processes. Symfony is not the sm
8282
### How to prevent leaks?
8383
Always start your command with the `-e prod --no-debug` flags. This disables all debugging features of Symfony that will eat up more and more memory.
8484

85-
Do not use Monolog in Symfony 2.2 and lower, there is a [bug in the MonologBundle](https://github.com/symfony/MonologBundle/issues/37) that starts the debughandler even though you disable the profiler. This eats up your memory. Note that this is [fixed](https://github.com/symfony/MonologBundle/commit/1fc0864a9344b15a04ed90612a91cf8e5b8fb305) in Symfony 2.3 and up.
86-
8785
Make sure you cleanup in the `execute`-method, make sure you're not appending data to an array every iteration or leave sockets/file handles open for example.
8886

8987
In case you are using the fingers-crossed handler in Monolog, this will also be a source of memory leaks. The idea of this handler is to keep all below-threshold log entries in memory and only flush those in case of an above-threshold entry. You can still use the fingers-crossed handler as long as you manually flush it at the end of the `execute`-method:

0 commit comments

Comments
 (0)