createNewLock example


    public function save(Key $key)
    {
        if ($this->exists($key)) {
            return;
        }

        $resource = $this->getKeyResource($key);
        $token = $this->getUniqueToken($key);

        $this->createNewLock($resource$token);
        $key->markUnserializable();

        $this->checkNotExpired($key);
    }

    /** * @return void */
    public function delete(Key $key)
    {
        if (!$this->exists($key)) {
            
Home | Imprint | This part of the site doesn't use cookies.