mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
Add header comment; PSR-2 fixes; remove seeders
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api;
|
||||
|
||||
use Flarum\Core\Model;
|
||||
use DateTime;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Request;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Request;
|
||||
use Flarum\Core\Settings\SettingsRepository;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\JsonApiRequest;
|
||||
use Flarum\Api\Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Request;
|
||||
use Zend\Diactoros\Response\EmptyResponse;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Discussions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Discussions;
|
||||
|
||||
use Flarum\Core\Discussions\Commands\StartDiscussion;
|
||||
use Flarum\Core\Discussions\Commands\ReadDiscussion;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Discussions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Discussions;
|
||||
|
||||
use Flarum\Core\Discussions\Commands\DeleteDiscussion;
|
||||
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Discussions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Discussions;
|
||||
|
||||
use Flarum\Core\Search\SearchCriteria;
|
||||
use Flarum\Core\Discussions\Search\DiscussionSearcher;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Discussions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Discussions;
|
||||
|
||||
use Flarum\Core\Discussions\DiscussionRepository;
|
||||
use Flarum\Core\Posts\PostRepository;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Discussions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Discussions;
|
||||
|
||||
use Flarum\Core\Discussions\Commands\EditDiscussion;
|
||||
use Flarum\Core\Discussions\Commands\ReadDiscussion;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Extensions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Extensions;
|
||||
|
||||
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;
|
||||
use Flarum\Api\Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Extensions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Extensions;
|
||||
|
||||
use Flarum\Api\Actions\JsonApiAction;
|
||||
use Flarum\Api\Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Request;
|
||||
use Flarum\Core\Users\UserRepository;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Forum;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Forum;
|
||||
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
use Flarum\Api\JsonApiRequest;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Forum;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Forum;
|
||||
|
||||
use Flarum\Core\Exceptions\PermissionDeniedException;
|
||||
use Flarum\Core\Settings\SettingsRepository;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Groups;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Groups;
|
||||
|
||||
use Flarum\Core\Groups\Commands\CreateGroup;
|
||||
use Flarum\Api\Actions\CreateAction as BaseCreateAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Groups;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Groups;
|
||||
|
||||
use Flarum\Core\Groups\Commands\DeleteGroup;
|
||||
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Groups;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Groups;
|
||||
|
||||
use Flarum\Core\Groups\Group;
|
||||
use Flarum\Api\Actions\SerializeCollectionAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Groups;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Groups;
|
||||
|
||||
use Flarum\Core\Groups\Commands\EditGroup;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Request;
|
||||
use Illuminate\Contracts\Validation\ValidationException;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Notifications;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Notifications;
|
||||
|
||||
use Flarum\Core\Notifications\NotificationRepository;
|
||||
use Flarum\Core\Exceptions\PermissionDeniedException;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Notifications;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Notifications;
|
||||
|
||||
use Flarum\Core\Notifications\Commands\ReadNotification;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Request;
|
||||
use Flarum\Core\Groups\Permission;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Posts;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Posts;
|
||||
|
||||
use Flarum\Core\Posts\Commands\PostReply;
|
||||
use Flarum\Core\Discussions\Commands\ReadDiscussion;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Posts;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Posts;
|
||||
|
||||
use Flarum\Core\Posts\Commands\DeletePost;
|
||||
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Posts;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Posts;
|
||||
|
||||
use Flarum\Api\JsonApiRequest;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Posts;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Posts;
|
||||
|
||||
use Flarum\Core\Posts\PostRepository;
|
||||
use Flarum\Api\Actions\SerializeCollectionAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Posts;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Posts;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Flarum\Core\Posts\PostRepository;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Posts;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Posts;
|
||||
|
||||
use Flarum\Core\Posts\Commands\EditPost;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Events\BuildApiAction;
|
||||
use Flarum\Events\WillSerializeData;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Tobscure\JsonApi\SerializerInterface;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Tobscure\JsonApi\SerializerInterface;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions;
|
||||
|
||||
use Flarum\Api\Commands\GenerateAccessToken;
|
||||
use Flarum\Api\Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Users\Commands\RegisterUser;
|
||||
use Flarum\Api\Actions\CreateAction as BaseCreateAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Users\Commands\DeleteUser;
|
||||
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Users\Commands\DeleteAvatar;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Search\SearchCriteria;
|
||||
use Flarum\Core\Users\Search\UserSearcher;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Users\UserRepository;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Users\Commands\EditUser;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Actions\Users;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Actions\Users;
|
||||
|
||||
use Flarum\Core\Users\Commands\UploadAvatar;
|
||||
use Flarum\Api\Actions\SerializeResourceAction;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api;
|
||||
|
||||
use Flarum\Api\Serializers\ActivitySerializer;
|
||||
use Flarum\Api\Serializers\NotificationSerializer;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api;
|
||||
|
||||
use Flarum\Core\Users\User;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Commands;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Commands;
|
||||
|
||||
class GenerateAccessToken
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Commands;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Commands;
|
||||
|
||||
use Flarum\Api\AccessToken;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api;
|
||||
|
||||
class JsonApiRequest extends Request
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Middleware;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Middleware;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Middleware;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Middleware;
|
||||
|
||||
use Flarum\Api\AccessToken;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Middleware;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Middleware;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api;
|
||||
|
||||
use Flarum\Core\Users\Guest;
|
||||
use Flarum\Core\Users\User;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class ActivitySerializer extends Serializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class CurrentUserSerializer extends UserSerializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class DiscussionBasicSerializer extends Serializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
use Flarum\Core\Discussions\Discussion;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
use Flarum\Core;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class GroupSerializer extends Serializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class NotificationSerializer extends Serializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class PostBasicSerializer extends Serializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class PostSerializer extends PostBasicSerializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
use Closure;
|
||||
use Flarum\Core\Users\User;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class UserBasicSerializer extends Serializer
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Api\Serializers;
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
class UserSerializer extends UserBasicSerializer
|
||||
{
|
||||
|
Reference in New Issue
Block a user