8000 [Console] LockableTrait: change visibility to private by xabbuh · Pull Request #19158 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] LockableTrait: change visibility to private #19158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
LockableTrait: change visibility to private
  • Loading branch information
xabbuh committed Jun 23, 2016
commit eaa3bb00c65e7c9f42a0915645ad2445a7cabf04
6 changes: 3 additions & 3 deletions src/Symfony/Component/Console/Command/LockableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
*/
trait LockableTrait
{
protected $lockHandler;
private $lockHandler;

/**
* Locks a command.
*
* @return bool
*/
protected function lock($name = null, $blocking = false)
private function lock($name = null, $blocking = false)
{
if (!class_exists(LockHandler::class)) {
throw new RuntimeException('To enable the locking feature you must install the symfony/filesystem component.');
Expand All @@ -53,7 +53,7 @@ protected function lock($name = null, $blocking = false)
/**
* Releases the command lock if there is one.
*/
protected function release()
private function release()
{
if ($this->lockHandler) {
$this->lockHandler->release();
Expand Down
0