Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Move ApplicationState from Utils to Services package.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 24, 2016
1 parent 4709f18 commit 84cc262
Show file tree
Hide file tree
Showing 70 changed files with 67 additions and 79 deletions.
2 changes: 1 addition & 1 deletion core/src/core/src/lib/pclzip.lib.php
Expand Up @@ -26,7 +26,7 @@
// --------------------------------------------------------------------------------

// ----- Constants
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Utils;

if (!defined('PCLZIP_READ_BLOCK_SIZE')) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Controller/XMLWriter.php
Expand Up @@ -24,7 +24,7 @@
use Pydio\Access\Core\IAjxpWrapperProvider;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\StatHelper;
use Pydio\Core\Utils\Vars\StringHelper;
Expand Down
Expand Up @@ -34,7 +34,7 @@
use Pydio\Core\Services\ConfService;
use Pydio\Core\Services\RolesService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Crypto;
use Pydio\Core\Utils\TextEncoder;
use Pydio\Log\Core\Logger;
Expand Down
Expand Up @@ -23,7 +23,7 @@
use Pydio\Core\Controller\XMLWriter;
use Pydio\Core\Http\Response\JSONSerializableResponseChunk;
use Pydio\Core\Http\Response\XMLDocSerializableResponseChunk;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
Expand Up @@ -23,7 +23,7 @@
use Pydio\Core\Http\Server;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
Expand Up @@ -26,7 +26,7 @@
use Pydio\Core\Services\ApiKeysService;
use Pydio\Core\Services\AuthService;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\FileHelper;
use Pydio\Core\Utils\Vars\PathUtils;
use Pydio\Core\Utils\Vars\StatHelper;
Expand Down
3 changes: 1 addition & 2 deletions core/src/core/src/pydio/Core/Http/Rest/RestApiServer.php
Expand Up @@ -22,8 +22,7 @@
namespace Pydio\Core\Http\Rest;

use Pydio\Core\Http\Server;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
Expand Up @@ -35,7 +35,7 @@

use Pydio\Core\Services\RolesService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Log\Core\Logger;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Http/Wopi/AuthMiddleware.php
Expand Up @@ -34,7 +34,7 @@

use Pydio\Core\Services\RolesService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Log\Core\Logger;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
3 changes: 1 addition & 2 deletions core/src/core/src/pydio/Core/Http/Wopi/Server.php
Expand Up @@ -22,8 +22,7 @@
namespace Pydio\Core\Http\Wopi;

use Pydio\Core\Http\Server as HttpServer;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
Expand Up @@ -37,9 +37,8 @@
use Pydio\Core\Model\RepositoryInterface;
use Pydio\Core\Services\CacheService;

use Pydio\Core\Services\ConfService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\FileHelper;
use Pydio\Log\Core\Logger;
use Pydio\Access\Meta\Core\AbstractMetaSource;
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Serializer/RepositoryXML.php
Expand Up @@ -26,7 +26,7 @@
use Pydio\Core\Model\UserInterface;
use Pydio\Core\PluginFramework\PluginsService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\StringHelper;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Serializer/UserXML.php
Expand Up @@ -24,7 +24,7 @@
use Pydio\Core\PluginFramework\PluginsService;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
Expand Up @@ -18,10 +18,9 @@
*
* The latest code can be found at <https://pydio.com/>.
*/
namespace Pydio\Core\Utils;
namespace Pydio\Core\Services;

use Pydio\Core\Model\RepositoryInterface;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\Vars\PathUtils;
use Pydio\Log\Core\Logger;

Expand Down
1 change: 0 additions & 1 deletion core/src/core/src/pydio/Core/Services/AuthService.php
Expand Up @@ -24,7 +24,6 @@
use Pydio\Core\Exception\LoginException;
use Pydio\Core\Model\Context;
use Pydio\Core\Model\UserInterface;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Utils\Http\BruteForceHelper;
use Pydio\Core\Utils\Http\CookiesHelper;
use Pydio\Core\Utils\Vars\InputFilter;
Expand Down
1 change: 0 additions & 1 deletion core/src/core/src/pydio/Core/Services/ConfService.php
Expand Up @@ -29,7 +29,6 @@

use Pydio\Core\Model\ContextInterface;
use Pydio\Core\PluginFramework\CoreInstanceProvider;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Utils\Vars\VarsFilter;
use Pydio\Core\PluginFramework\Plugin;
use Pydio\Core\PluginFramework\PluginsService;
Expand Down
1 change: 0 additions & 1 deletion core/src/core/src/pydio/Core/Services/SessionService.php
Expand Up @@ -24,7 +24,6 @@
use Psr\Http\Message\ServerRequestInterface;
use Pydio\Core\Model\RepositoryInterface;
use Pydio\Core\Model\UserInterface;
use Pydio\Core\Utils\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
Expand Up @@ -22,7 +22,7 @@


use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Log\Core\Logger;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Utils/Vars/OptionsHelper.php
Expand Up @@ -23,7 +23,7 @@
use Pydio\Core\Model\Context;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Crypto;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.fs/FsAccessDriver.php
Expand Up @@ -49,7 +49,7 @@
use Pydio\Core\Exception\PydioException;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\PathUtils;
use Pydio\Core\Utils\Vars\StatHelper;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.fs/FsAccessWrapper.php
Expand Up @@ -29,7 +29,7 @@

use Pydio\Core\Services\ConfService;
use Pydio\Core\Exception\PydioException;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\PathUtils;
use Pydio\Core\Utils\Vars\UrlUtils;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.ftp/FtpAccessWrapper.php
Expand Up @@ -30,7 +30,7 @@

use Pydio\Core\Exception\PydioException;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\FileHelper;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\PathUtils;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.inbox/InboxAccessDriver.php
Expand Up @@ -29,7 +29,7 @@
use Pydio\Core\Controller\Controller;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\StatHelper;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.inbox/InboxAccessWrapper.php
Expand Up @@ -25,7 +25,7 @@
use Pydio\Access\Core\Model\AJXP_Node;
use Pydio\Access\Core\IAjxpWrapper;

use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.s3/S3AccessWrapper.php
Expand Up @@ -26,7 +26,7 @@
use Pydio\Access\Driver\StreamProvider\FS\FsAccessWrapper;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\FileHelper;
use Pydio\Log\Core\Logger;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.sftp/SFTPAccessWrapper.php
Expand Up @@ -28,7 +28,7 @@
use Pydio\Auth\Core\MemorySafe;
use Pydio\Core\Model\ContextInterface;

use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Log\Core\Logger;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.sftp_psl/SftpPSLAccessWrapper.php
Expand Up @@ -29,7 +29,7 @@
use Pydio\Auth\Core\MemorySafe;

use Pydio\Core\Exception\PydioException;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\UrlUtils;
use Pydio\Log\Core\Logger;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.smb/SMBAccessWrapper.php
Expand Up @@ -26,7 +26,7 @@
use Pydio\Auth\Core\MemorySafe;


use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\VarsFilter;
use Pydio\Log\Core\Logger;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.swift/SwiftAccessWrapper.php
Expand Up @@ -24,7 +24,7 @@
use Pydio\Access\Core\Model\AJXP_Node;
use Pydio\Access\Driver\StreamProvider\FS\FsAccessWrapper;

use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\FileHelper;
use Pydio\Log\Core\Logger;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.compression/PluginCompression.php
Expand Up @@ -31,7 +31,7 @@
use Pydio\Core\Controller\Controller;
use Pydio\Core\Exception\PydioException;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\PathUtils;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.powerfs/PowerFSController.php
Expand Up @@ -27,7 +27,7 @@

use Pydio\Core\Controller\Controller;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\PluginFramework\Plugin;
use Pydio\Core\PluginFramework\PluginsService;
Expand Down
Expand Up @@ -28,7 +28,7 @@
use Pydio\Core\Services\AuthService;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/src/Http/MinisiteServer.php
Expand Up @@ -24,7 +24,7 @@
use Pydio\Core\Http\Server;
use Pydio\Core\Model\Context;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Share\View\MinisiteRenderer;
use Zend\Diactoros\Response;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/src/Model/CompositeShare.php
Expand Up @@ -29,7 +29,7 @@

use Pydio\Core\Services\RepositoryService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Share\Store\ShareRightsManager;
use Pydio\Share\View\PublicAccessManager;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/src/Model/ShareLink.php
Expand Up @@ -23,7 +23,7 @@

use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\RepositoryService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Share\Store\ShareStore;
use Pydio\Share\View\PublicAccessManager;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/src/ShareCenter.php
Expand Up @@ -45,7 +45,7 @@
use Pydio\Core\Services\RepositoryService;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Controller\XMLWriter;
use Pydio\Core\PluginFramework\Plugin;
Expand Down
Expand Up @@ -31,7 +31,7 @@
use Pydio\Core\Services\ConfService;
use Pydio\Core\Controller\Controller;
use Pydio\Core\Services\RepositoryService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Http\UserAgent;
use Pydio\Core\Controller\XMLWriter;
use Pydio\Core\Controller\HTMLWriter;
Expand Down
Expand Up @@ -22,7 +22,7 @@

use Pydio\Core\Services\ConfService;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;

defined('AJXP_EXEC') or die('Access not allowed');

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.updater/UpdateController.php
Expand Up @@ -26,7 +26,7 @@
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\PluginFramework\Plugin;

defined('AJXP_EXEC') or die('Access not allowed');
Expand Down
3 changes: 1 addition & 2 deletions core/src/plugins/authfront.cas/CasAuthFrontend.php
Expand Up @@ -30,9 +30,8 @@
use Pydio\Core\Services\ConfService;
use Pydio\Conf\Sql\SqlConfDriver;
use Pydio\Core\Services\RolesService;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\DBHelper;
use Pydio\Log\Core\Logger;

Expand Down
Expand Up @@ -20,7 +20,6 @@
*/
namespace Pydio\Auth\Frontend;

use __PHP_Incomplete_Class;
use Exception;
use Pydio\Core\Model\Context;
use Pydio\Core\Model\UserInterface;
Expand All @@ -29,10 +28,9 @@
use Pydio\Core\Services\ConfService;
use Pydio\Core\Services\SessionService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\Http\BruteForceHelper;
use Pydio\Core\Utils\Http\CookiesHelper;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Controller\XMLWriter;
use Pydio\Core\Utils\Http\CaptchaProvider;

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/boot.conf/BootConfLoader.php
Expand Up @@ -37,7 +37,7 @@
use Pydio\Core\Services\LocaleService;
use Pydio\Core\Services\RolesService;
use Pydio\Core\Services\UsersService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Services\ApplicationState;
use Pydio\Core\Utils\FileHelper;
use Pydio\Core\Utils\Vars\InputFilter;
use Pydio\Core\Utils\Vars\OptionsHelper;
Expand Down

0 comments on commit 84cc262

Please sign in to comment.