Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions lizmap/modules/admin_api/controllers/project_rest.classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

use Lizmap\App\VersionTools;
use Lizmap\Project\Repository;
use LizmapApi\ApiException;
use LizmapApi\Credentials;
use LizmapApi\Error;
Expand Down Expand Up @@ -59,8 +60,8 @@ public function get(): object
/**
* Return a list of available projects and their basic information.
*
* @param jResponseJson $rep response to fill
* @param lizmapRepository $repo repository
* @param jResponseJson $rep response to fill
* @param Repository $repo repository
*
* @return object a JSON response object containing projects
*/
Expand All @@ -85,8 +86,8 @@ protected function getProjList($rep, $repo)
/**
* Return detailed information and user rights.
*
* @param jResponseJson $rep response to fill
* @param lizmapRepository $repo repository
* @param jResponseJson $rep response to fill
* @param Repository $repo repository
*
* @return object a JSON response object containing a specific repository with rights
*/
Expand Down
10 changes: 5 additions & 5 deletions lizmap/modules/lizmap/classes/lizmap.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class lizmap
protected static $repositories = array();

/**
* @var lizmapRepository[] list of repository instances. keys are repository names
* @var Repository[] list of repository instances. keys are repository names
*/
protected static $repositoryInstances = array();

Expand Down Expand Up @@ -166,8 +166,8 @@ public static function getRepositoryPropertiesOptions()
/**
* Get the jForm for a repository.
*
* @param null|lizmapRepository $rep
* @param jFormsBase $form
* @param null|Repository $rep
* @param jFormsBase $form
*
* @return jFormsBase
*/
Expand Down Expand Up @@ -259,7 +259,7 @@ public static function constructRepositoryForm($rep, $form)
*
* @param string $key Key of the repository to get
*
* @return null|lizmapRepository
* @return null|Repository
*/
public static function getRepository($key)
{
Expand All @@ -286,7 +286,7 @@ public static function getRepository($key)
* @param string $key the repository name
* @param array $data list of properties for the repository
*
* @return null|lizmapRepository
* @return null|Repository
*/
public static function createRepository($key, $data)
{
Expand Down
198 changes: 0 additions & 198 deletions lizmap/modules/lizmap/classes/lizmapRepository.class.php

This file was deleted.

7 changes: 4 additions & 3 deletions lizmap/modules/lizmap/classes/lizmapServices.class.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Lizmap\Project\Repository;
use Lizmap\Server\Server;

/**
Expand Down Expand Up @@ -701,11 +702,11 @@ public function sendNotificationEmail($subject, $body)
}

/**
* This method will create and return a lizmapRepository instance.
* This method will create and return a lizmap repository instance.
*
* @param string $key the name of the repository
*
* @return lizmapRepository The lizmapRepository instance
* @return bool|Repository The lizmap repository instance
*/
public function getLizmapRepository($key)
{
Expand All @@ -722,6 +723,6 @@ public function getLizmapRepository($key)
$data = array();
}

return new lizmapRepository($key, $data, $this->varPath, $this, $this->appContext);
return new Repository($key, $data, $this->varPath, $this, $this->appContext);
}
}
3 changes: 2 additions & 1 deletion lizmap/modules/lizmap/controllers/edition.classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use GuzzleHttp\Psr7\Utils as Psr7Utils;
use Lizmap\Form;
use Lizmap\Project\Project;
use Lizmap\Project\Repository;
use Lizmap\Project\UnknownLizmapProjectException;
use Lizmap\Request\WFSRequest;

Expand All @@ -22,7 +23,7 @@ class editionCtrl extends jController
/** @var null|Project */
private $project;

/** @var lizmapRepository */
/** @var null|Repository */
private $repository;

/** @var string layer id in the QGIS project file */
Expand Down
3 changes: 2 additions & 1 deletion lizmap/modules/lizmap/controllers/service.classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Lizmap\App\Checker;
use Lizmap\Project\Project;

use Lizmap\Project\Repository;
use Lizmap\Project\UnknownLizmapProjectException;
use Lizmap\Request\Proxy;
use Lizmap\Request\WFSRequest;
Expand All @@ -29,7 +30,7 @@ class serviceCtrl extends jController
protected $project;

/**
* @var null|lizmapRepository
* @var null|Repository
*/
protected $repository;

Expand Down
Loading
Loading