mirror of
https://github.com/flarum/core.git
synced 2025-07-28 20:20:34 +02:00
Add header comment; PSR-2 fixes; remove seeders
This commit is contained in:
26
.php_cs
Executable file
26
.php_cs
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
$header = <<<EOF
|
||||
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.
|
||||
EOF;
|
||||
|
||||
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
|
||||
|
||||
$finder = Symfony\CS\Finder\DefaultFinder::create()
|
||||
->exclude('stubs')
|
||||
->in(__DIR__);
|
||||
|
||||
return Symfony\CS\Config\Config::create()
|
||||
->setUsingCache(true)
|
||||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
|
||||
->fixers([
|
||||
'short_array_syntax',
|
||||
'header_comment',
|
||||
'-psr0'
|
||||
])
|
||||
->finder($finder);
|
@@ -1,7 +1,8 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
|
@@ -29,9 +29,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
// PHONES: Somewhere on the page there will be a .back-button, a .primary-
|
||||
// control, and a .App-titleControl. We will position these on the left, right,
|
||||
// and center of the header respectively.
|
||||
// PHONES: Somewhere on the page there will be a .App-backControl, a
|
||||
// .App-primaryControl, and a .App-titleControl. We will position these on the
|
||||
// left, right, and center of the header respectively.
|
||||
@media @phone {
|
||||
.App-primaryControl, .App-titleControl, .App-backControl {
|
||||
position: absolute !important;
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
return [
|
||||
'plural' => function ($count) {
|
||||
return $count == 1 ? 'one' : 'other';
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateConfigTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateDiscussionsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateNotificationsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreatePermissionsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreatePostsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateUsersDiscussionsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateUsersGroupsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,11 +1,19 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
use Flarum\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateUsersTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<?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 spec\Flarum\Core\Settings;
|
||||
|
||||
use Flarum\Core\Settings\SettingsRepository;
|
||||
@@ -8,17 +17,17 @@ use Prophecy\Argument;
|
||||
|
||||
class MemoryCacheSettingsRepositorySpec extends ObjectBehavior
|
||||
{
|
||||
function let(SettingsRepository $inner)
|
||||
public function let(SettingsRepository $inner)
|
||||
{
|
||||
$this->beConstructedWith($inner);
|
||||
}
|
||||
|
||||
function it_is_initializable()
|
||||
public function it_is_initializable()
|
||||
{
|
||||
$this->shouldHaveType('Flarum\Core\Settings\MemoryCacheSettingsRepository');
|
||||
}
|
||||
|
||||
function it_retrieves_data_from_inner(SettingsRepository $inner)
|
||||
public function it_retrieves_data_from_inner(SettingsRepository $inner)
|
||||
{
|
||||
$settings = ['a' => 1, 'b' => 2];
|
||||
$inner->all()->willReturn($settings);
|
||||
@@ -38,13 +47,13 @@ class MemoryCacheSettingsRepositorySpec extends ObjectBehavior
|
||||
$this->get('d', 'foobar')->shouldReturn('foobar');
|
||||
}
|
||||
|
||||
function it_passes_new_data_to_inner(SettingsRepository $inner)
|
||||
public function it_passes_new_data_to_inner(SettingsRepository $inner)
|
||||
{
|
||||
$this->set('a', 1);
|
||||
$inner->set('a', 1)->shouldHaveBeenCalled();
|
||||
}
|
||||
|
||||
function it_caches_new_data(SettingsRepository $inner)
|
||||
public function it_caches_new_data(SettingsRepository $inner)
|
||||
{
|
||||
$this->set('b', 2);
|
||||
$this->get('b')->shouldReturn(2);
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Admin\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\Admin\Actions;
|
||||
|
||||
use Flarum\Support\ClientAction as BaseClientAction;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Admin;
|
||||
<?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\Admin;
|
||||
|
||||
use Flarum\Http\RouteCollection;
|
||||
use Flarum\Http\UrlGenerator;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Admin\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\Admin\Middleware;
|
||||
|
||||
use Flarum\Api\AccessToken;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Assets;
|
||||
<?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\Assets;
|
||||
|
||||
use DomainException;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Assets;
|
||||
<?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\Assets;
|
||||
|
||||
interface Compiler
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Assets;
|
||||
<?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\Assets;
|
||||
|
||||
class JsCompiler extends RevisionCompiler
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Assets;
|
||||
<?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\Assets;
|
||||
|
||||
use Less_Parser;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Assets;
|
||||
<?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\Assets;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Console;
|
||||
<?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\Console;
|
||||
|
||||
use Symfony\Component\Console\Command\Command as SymfonyCommand;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Console;
|
||||
<?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\Console;
|
||||
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Console;
|
||||
<?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\Console;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Application;
|
||||
@@ -14,7 +24,6 @@ use Symfony\Component\Console\Helper\ProgressBar;
|
||||
|
||||
class ImportCommand extends Command
|
||||
{
|
||||
|
||||
/**
|
||||
* The console command name.
|
||||
*
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Console;
|
||||
<?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\Console;
|
||||
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
@@ -41,7 +51,7 @@ class UpgradeCommand extends Command
|
||||
|
||||
protected function upgrade()
|
||||
{
|
||||
$this->container->bind('Illuminate\Database\Schema\Builder', function($container) {
|
||||
$this->container->bind('Illuminate\Database\Schema\Builder', function ($container) {
|
||||
return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder();
|
||||
});
|
||||
|
||||
|
12
src/Core.php
12
src/Core.php
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum;
|
||||
<?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;
|
||||
|
||||
class Core
|
||||
{
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core;
|
||||
<?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\Core;
|
||||
|
||||
use Closure;
|
||||
use RuntimeException;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core;
|
||||
<?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\Core;
|
||||
|
||||
use Flarum\Core\Users\User;
|
||||
use Flarum\Events\ModelAllow;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core;
|
||||
<?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\Core;
|
||||
|
||||
use Flarum\Core;
|
||||
use Flarum\Support\ServiceProvider;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core\Discussions\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\Core\Discussions\Commands;
|
||||
|
||||
use Flarum\Core\Users\User;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core\Discussions\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\Core\Discussions\Commands;
|
||||
|
||||
use Flarum\Core\Discussions\DiscussionRepository;
|
||||
use Flarum\Events\DiscussionWillBeDeleted;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core\Discussions\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\Core\Discussions\Commands;
|
||||
|
||||
use Flarum\Core\Users\User;
|
||||
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core\Discussions\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\Core\Discussions\Commands;
|
||||
|
||||
use Flarum\Core\Discussions\DiscussionRepository;
|
||||
use Flarum\Events\DiscussionWillBeSaved;
|
||||
|
@@ -1,4 +1,14 @@
|
||||
<?php namespace Flarum\Core\Discussions\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\Core\Discussions\Commands;
|
||||
|
||||
use Flarum\Core\Users\User;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user