mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
Minor tweak
This commit is contained in:
@@ -55,6 +55,8 @@ a ``$lockFactory`` property with your own lock factory::
|
||||
{
|
||||
use LockableTrait;
|
||||
|
||||
// don't use PHP constructor property promotion here because the
|
||||
// LockableTrait already defines the `$lockFactory` property in this class
|
||||
public function __construct(LockFactory $lockFactory)
|
||||
{
|
||||
$this->lockFactory = $lockFactory;
|
||||
|
||||
Reference in New Issue
Block a user