mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
entry point traits namespace
This commit is contained in:
39
application/Espo/Core/EntryPoint/Traits/NoAuth.php
Normal file
39
application/Espo/Core/EntryPoint/Traits/NoAuth.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/************************************************************************
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM - Open Source CRM application.
|
||||
* Copyright (C) 2014-2021 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
|
||||
* Website: https://www.espocrm.com
|
||||
*
|
||||
* EspoCRM is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* EspoCRM is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with EspoCRM. If not, see http://www.gnu.org/licenses/.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\EntryPoint\Traits;
|
||||
|
||||
/**
|
||||
* Auth is not required for entry point.
|
||||
* To be used with EntryPoint interface.
|
||||
*/
|
||||
trait NoAuth
|
||||
{
|
||||
public static $noAuth = true;
|
||||
}
|
||||
38
application/Espo/Core/EntryPoint/Traits/NotStrictAuth.php
Normal file
38
application/Espo/Core/EntryPoint/Traits/NotStrictAuth.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/************************************************************************
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM - Open Source CRM application.
|
||||
* Copyright (C) 2014-2021 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
|
||||
* Website: https://www.espocrm.com
|
||||
*
|
||||
* EspoCRM is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* EspoCRM is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with EspoCRM. If not, see http://www.gnu.org/licenses/.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\EntryPoint\Traits;
|
||||
|
||||
/**
|
||||
* To be used with EntryPoint interface.
|
||||
*/
|
||||
trait NotStrictAuth
|
||||
{
|
||||
public static $notStrictAuth = true;
|
||||
}
|
||||
@@ -29,7 +29,10 @@
|
||||
|
||||
namespace Espo\Core\EntryPoints;
|
||||
|
||||
/**
|
||||
* @deprecated Use `Espo\Core\EntryPoint\Traits\NoAuth` instead.
|
||||
*/
|
||||
trait NoAuth
|
||||
{
|
||||
public static $noAuth = true;
|
||||
use \Espo\Core\EntryPoint\Traits\NoAuth;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,10 @@
|
||||
|
||||
namespace Espo\Core\EntryPoints;
|
||||
|
||||
/**
|
||||
* @deprecated Use `Espo\Core\EntryPoint\Traits\NotStrictAuth` instead.
|
||||
*/
|
||||
trait NotStrictAuth
|
||||
{
|
||||
public static $notStrictAuth = true;
|
||||
use \Espo\Core\EntryPoint\Traits\NotStrictAuth;
|
||||
}
|
||||
|
||||
@@ -32,12 +32,9 @@ namespace Espo\EntryPoints;
|
||||
use Espo\Core\Exceptions\NotFound;
|
||||
use Espo\Core\Exceptions\BadRequest;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Utils\Config,
|
||||
Utils\ClientManager,
|
||||
ORM\EntityManager,
|
||||
|
||||
@@ -29,15 +29,11 @@
|
||||
|
||||
namespace Espo\EntryPoints;
|
||||
|
||||
use Espo\Core\Exceptions\BadRequest;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\BadRequest,
|
||||
Exceptions\Error,
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Utils\ClientManager,
|
||||
ServiceFactory,
|
||||
Api\Request,
|
||||
|
||||
@@ -29,12 +29,9 @@
|
||||
|
||||
namespace Espo\EntryPoints;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\NotFound,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
};
|
||||
|
||||
@@ -29,12 +29,9 @@
|
||||
|
||||
namespace Espo\EntryPoints;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
};
|
||||
|
||||
@@ -29,14 +29,11 @@
|
||||
|
||||
namespace Espo\Modules\Crm\EntryPoints;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\NotFound,
|
||||
Exceptions\BadRequest,
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
ORM\EntityManager,
|
||||
|
||||
@@ -34,14 +34,11 @@ use Espo\{
|
||||
Modules\Crm\Entities\CampaignTrackingUrl,
|
||||
};
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\NotFoundSilent,
|
||||
Exceptions\BadRequest,
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
ORM\EntityManager,
|
||||
|
||||
@@ -29,15 +29,12 @@
|
||||
|
||||
namespace Espo\Modules\Crm\EntryPoints;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\NotFound,
|
||||
Exceptions\BadRequest,
|
||||
Exceptions\Error,
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
ORM\EntityManager,
|
||||
|
||||
@@ -29,16 +29,13 @@
|
||||
|
||||
namespace Espo\Modules\Crm\EntryPoints;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\NotFound,
|
||||
Exceptions\BadRequest,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
ORM\EntityManager,
|
||||
Utils\ClientManager,
|
||||
HookManager,
|
||||
|
||||
@@ -29,14 +29,11 @@
|
||||
|
||||
namespace Espo\Modules\Crm\EntryPoints;
|
||||
|
||||
use Espo\Core\EntryPoints\{
|
||||
NoAuth,
|
||||
};
|
||||
|
||||
use Espo\Core\{
|
||||
Exceptions\NotFound,
|
||||
Exceptions\BadRequest,
|
||||
EntryPoint\EntryPoint,
|
||||
EntryPoint\Traits\NoAuth,
|
||||
Api\Request,
|
||||
Api\Response,
|
||||
ORM\EntityManager,
|
||||
|
||||
Reference in New Issue
Block a user