Skip to content

Commit a1a60fd

Browse files
committed
minor #14648 [Console] Update lockable_trait.rst (noniagriconomie)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] Update lockable_trait.rst While attending to the `SymfonyWorld Online 2020 - Lock & Semaphore: The gatekeepers of your resources` I remembered this feature and found this missed part For upper branches v5.1+, the `Command::SUCCESS` is to be used Commits ------- a874705 Update lockable_trait.rst
2 parents 7a7cef8 + a874705 commit a1a60fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

console/lockable_trait.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ that adds two convenient methods to lock and release commands::
3838
// if not released explicitly, Symfony releases the lock
3939
// automatically when the execution of the command ends
4040
$this->release();
41+
42+
return 0;
4143
}
4244
}
4345

0 commit comments

Comments
 (0)