Moved Controllers/ViewProxies to ViewProxies

This commit is contained in:
Marcin Kurczewski 2014-11-22 14:53:40 +01:00
parent 116522498d
commit 95cf0ca37b
37 changed files with 44 additions and 44 deletions

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Routes\Comments;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\Controllers\ViewProxies\CommentViewProxy;
use Szurubooru\ViewProxies\CommentViewProxy;
abstract class AbstractCommentRoute extends AbstractRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Comments;
use Szurubooru\Controllers\ViewProxies\CommentViewProxy;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\CommentService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\CommentViewProxy;
use Szurubooru\ViewProxies\PostViewProxy;
class AddComment extends AbstractCommentRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Comments;
use Szurubooru\Controllers\ViewProxies\CommentViewProxy;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\CommentService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\CommentViewProxy;
use Szurubooru\ViewProxies\PostViewProxy;
class DeleteComment extends AbstractCommentRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Comments;
use Szurubooru\Controllers\ViewProxies\CommentViewProxy;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\CommentService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\CommentViewProxy;
use Szurubooru\ViewProxies\PostViewProxy;
class EditComment extends AbstractCommentRoute
{

View file

@ -1,7 +1,5 @@
<?php
namespace Szurubooru\Routes\Comments;
use Szurubooru\Controllers\ViewProxies\CommentViewProxy;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\SearchServices\Filters\PostFilter;
@ -10,6 +8,8 @@ use Szurubooru\SearchServices\Requirements\RequirementRangedValue;
use Szurubooru\Services\CommentService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\CommentViewProxy;
use Szurubooru\ViewProxies\PostViewProxy;
class GetComments extends AbstractCommentRoute
{

View file

@ -1,7 +1,5 @@
<?php
namespace Szurubooru\Routes\Comments;
use Szurubooru\Controllers\ViewProxies\CommentViewProxy;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\SearchServices\Filters\CommentFilter;
@ -10,6 +8,8 @@ use Szurubooru\SearchServices\Requirements\RequirementSingleValue;
use Szurubooru\Services\CommentService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\CommentViewProxy;
use Szurubooru\ViewProxies\PostViewProxy;
class GetPostComments extends AbstractCommentRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Favorites;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\Services\AuthService;
use Szurubooru\Services\FavoritesService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\UserViewProxy;
class AddToFavorites extends AbstractRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Favorites;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\Services\AuthService;
use Szurubooru\Services\FavoritesService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\UserViewProxy;
class GetFavoriteUsers extends AbstractRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Favorites;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\Services\AuthService;
use Szurubooru\Services\FavoritesService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\UserViewProxy;
class RemoveFromFavorites extends AbstractRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes;
use Szurubooru\Controllers\ViewProxies\SnapshotViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\SearchServices\Parsers\SnapshotSearchParser;
use Szurubooru\Services\HistoryService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\SnapshotViewProxy;
class GetHistory extends AbstractRoute
{

View file

@ -1,7 +1,5 @@
<?php
namespace Szurubooru\Routes;
use Szurubooru\Controllers\ViewProxies\TokenViewProxy;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\FormData\LoginFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Router;
@ -9,6 +7,8 @@ use Szurubooru\Services\AuthService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\TokenService;
use Szurubooru\Services\UserService;
use Szurubooru\ViewProxies\TokenViewProxy;
use Szurubooru\ViewProxies\UserViewProxy;
class Login extends AbstractRoute
{

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Routes\Posts;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\ViewProxies\PostViewProxy;
abstract class AbstractPostRoute extends AbstractRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Posts;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\FormData\UploadFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostViewProxy;
class CreatePost extends AbstractPostRoute
{

View file

@ -1,9 +1,9 @@
<?php
namespace Szurubooru\Routes\Posts;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\Entities\Post;
use Szurubooru\Services\PostFeatureService;
use Szurubooru\ViewProxies\PostViewProxy;
use Szurubooru\ViewProxies\UserViewProxy;
class GetFeaturedPost extends AbstractPostRoute
{

View file

@ -1,9 +1,9 @@
<?php
namespace Szurubooru\Routes\Posts;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Privilege;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostViewProxy;
class GetPost extends AbstractPostRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Posts;
use Szurubooru\Config;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\SearchServices\Parsers\PostSearchParser;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostViewProxy;
class GetPosts extends AbstractPostRoute
{

View file

@ -1,6 +1,5 @@
<?php
namespace Szurubooru\Routes\Posts\Notes;
use Szurubooru\Controllers\ViewProxies\PostNoteViewProxy;
use Szurubooru\FormData\PostNoteFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
@ -8,6 +7,7 @@ use Szurubooru\Routes\Posts\AbstractPostRoute;
use Szurubooru\Services\PostNotesService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostNoteViewProxy;
class AddPostNote extends AbstractPostRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Posts\Notes;
use Szurubooru\Controllers\ViewProxies\PostNoteViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Routes\Posts\AbstractPostRoute;
use Szurubooru\Services\PostNotesService;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostNoteViewProxy;
class GetPostNotes extends AbstractPostRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Posts\Notes;
use Szurubooru\Controllers\ViewProxies\PostNoteViewProxy;
use Szurubooru\FormData\PostNoteFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Routes\Posts\AbstractPostRoute;
use Szurubooru\Services\PostNotesService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostNoteViewProxy;
class UpdatePostNote extends AbstractPostRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Posts;
use Szurubooru\Controllers\ViewProxies\PostViewProxy;
use Szurubooru\FormData\PostEditFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\PostService;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\ViewProxies\PostViewProxy;
class UpdatePost extends AbstractPostRoute
{

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Routes\Tags;
use Szurubooru\Routes\AbstractRoute;
use Szurubooru\Controllers\ViewProxies\TagViewProxy;
use Szurubooru\ViewProxies\TagViewProxy;
abstract class AbstractTagRoute extends AbstractRoute
{

View file

@ -1,9 +1,9 @@
<?php
namespace Szurubooru\Routes\Tags;
use Szurubooru\Controllers\ViewProxies\TagViewProxy;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\TagService;
use Szurubooru\ViewProxies\TagViewProxy;
class GetTag extends AbstractTagRoute
{

View file

@ -1,9 +1,9 @@
<?php
namespace Szurubooru\Routes\Tags;
use Szurubooru\Controllers\ViewProxies\TagViewProxy;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\TagService;
use Szurubooru\ViewProxies\TagViewProxy;
class GetTagSiblings extends AbstractTagRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Tags;
use Szurubooru\Controllers\ViewProxies\TagViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\SearchServices\Parsers\TagSearchParser;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\TagService;
use Szurubooru\ViewProxies\TagViewProxy;
class GetTags extends AbstractTagRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Tags;
use Szurubooru\Controllers\ViewProxies\TagViewProxy;
use Szurubooru\FormData\TagEditFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\TagService;
use Szurubooru\ViewProxies\TagViewProxy;
class UpdateTag extends AbstractTagRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Users;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\FormData\RegistrationFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\UserService;
use Szurubooru\ViewProxies\UserViewProxy;
class CreateUser extends AbstractUserRoute
{

View file

@ -1,10 +1,10 @@
<?php
namespace Szurubooru\Routes\Users;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\Privilege;
use Szurubooru\SearchServices\Parsers\UserSearchParser;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\UserService;
use Szurubooru\ViewProxies\UserViewProxy;
class GetUser extends AbstractUserRoute
{

View file

@ -1,12 +1,12 @@
<?php
namespace Szurubooru\Routes\Users;
use Szurubooru\Config;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\SearchServices\Parsers\UserSearchParser;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\UserService;
use Szurubooru\ViewProxies\UserViewProxy;
class GetUsers extends AbstractUserRoute
{

View file

@ -1,11 +1,11 @@
<?php
namespace Szurubooru\Routes\Users;
use Szurubooru\Controllers\ViewProxies\UserViewProxy;
use Szurubooru\FormData\UserEditFormData;
use Szurubooru\Helpers\InputReader;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\UserService;
use Szurubooru\ViewProxies\UserViewProxy;
class UpdateUser extends AbstractUserRoute
{

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
abstract class AbstractViewProxy
{

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
use Szurubooru\Services\AuthService;
use Szurubooru\Services\ScoreService;

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
class PostNoteViewProxy extends AbstractViewProxy
{

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
use Szurubooru\Entities\Post;
use Szurubooru\Helpers\EnumHelper;
use Szurubooru\Helpers\MimeHelper;

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
class SnapshotViewProxy extends AbstractViewProxy
{

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;
use Szurubooru\Services\TagHistoryService;

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
class TokenViewProxy extends AbstractViewProxy
{

View file

@ -1,5 +1,5 @@
<?php
namespace Szurubooru\Controllers\ViewProxies;
namespace Szurubooru\ViewProxies;
use Szurubooru\Helpers\EnumHelper;
use Szurubooru\Privilege;
use Szurubooru\Services\PrivilegeService;