public function getLock() { if (empty($this->lock)) { $this->lock = $this->getContainer()->get(Lock::class, [$this->get('lock'), ['environment' => $this]]); } return $this->lock; }