Skip to content

Commit

Permalink
规范1.3版本目录结构要求
Browse files Browse the repository at this point in the history
  • Loading branch information
bigrocs committed Sep 20, 2017
1 parent c17c1c3 commit 6d9f0cc
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CoreCMF\Storage\Http\Console;
namespace CoreCMF\Storage\App\Console;

use Illuminate\Console\Command;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CoreCMF\Storage\Http\Console;
namespace CoreCMF\Storage\App\Console;

use Illuminate\Console\Command;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace CoreCMF\Storage\Http\Controllers\Api;
namespace CoreCMF\Storage\App\Http\Controllers\Api;

use Illuminate\Http\Request;
use Illuminate\Container\Container;

use App\Http\Controllers\Controller;
use CoreCMF\Admin\App\Models\Config as adminConfig;
use CoreCMF\Storage\Http\Models\Config;
use CoreCMF\Storage\Http\Validator\ConfigRules;
use CoreCMF\Storage\App\Models\Config;
use CoreCMF\Storage\App\Http\Validator\ConfigRules;

class ConfigController extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CoreCMF\Storage\Http\Validator;
namespace CoreCMF\Storage\App\Http\Validator;

use CoreCMF\Core\Support\Validator\Rules as coreRules;
class ConfigRules extends coreRules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace CoreCMF\Storage\Http\Listeners;
namespace CoreCMF\Storage\App\Listeners;

use CoreCMF\Storage\Http\Models\Config;
use CoreCMF\Storage\App\Models\Config;
/**
* [SocialiteEventSubscriber 社会登录事件订阅者]
*/
Expand Down Expand Up @@ -41,7 +41,7 @@ public function subscribe($events)
{
$events->listen(
'CoreCMF\Core\Support\Events\BuilderTable',
'CoreCMF\Storage\Http\Listeners\StorageEventSubscriber@onBuilderTablePackage'
'CoreCMF\Storage\App\Listeners\StorageEventSubscriber@onBuilderTablePackage'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Models/Config.php → src/App/Models/Config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CoreCMF\Storage\Http\Models;
namespace CoreCMF\Storage\App\Models;

use Schema;
use Illuminate\Database\Eloquent\Model;
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public function boot()
* @var [type]
*/
protected $subscribe = [
'CoreCMF\Storage\Http\Listeners\StorageEventSubscriber',
'CoreCMF\Storage\App\Listeners\StorageEventSubscriber',
];
}
2 changes: 1 addition & 1 deletion src/Routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::group(['prefix' => 'api', 'middleware' => 'api', 'namespace' => 'CoreCMF\Storage\Http\Controllers\Api', 'as' => 'api.'], function () {
Route::group(['prefix' => 'api', 'middleware' => 'api', 'namespace' => 'CoreCMF\Storage\App\Http\Controllers\Api', 'as' => 'api.'], function () {
/*
|--------------------------------------------------------------------------
| 需要用户认证路由模块
Expand Down
6 changes: 3 additions & 3 deletions src/StorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace CoreCMF\Storage;

use Illuminate\Support\ServiceProvider;
use CoreCMF\Storage\Http\Models\Config;
use CoreCMF\Storage\App\Models\Config;

class StorageServiceProvider extends ServiceProvider
{
protected $commands = [
\CoreCMF\Storage\Http\Console\InstallCommand::class,
\CoreCMF\Storage\Http\Console\UninstallCommand::class,
\CoreCMF\Storage\App\Console\InstallCommand::class,
\CoreCMF\Storage\App\Console\UninstallCommand::class,
];
/**
* Perform post-registration booting of services.
Expand Down

0 comments on commit 6d9f0cc

Please sign in to comment.