Skip to content

Commit

Permalink
Rename namespaces.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Nov 19, 2018
1 parent cb3b969 commit 63c6f7a
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Orchestra\Control\Command;
namespace Orchestra\Control\Commands;

use Illuminate\Contracts\Foundation\Application;
use Orchestra\Contracts\Authorization\Authorization;
use Orchestra\Control\Contracts\Command\Synchronizer as SynchronizerContract;
use Orchestra\Control\Contracts\Commands\Synchronizer as SynchronizerContract;

class Synchronizer implements SynchronizerContract
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Control\Contracts\Command;
namespace Orchestra\Control\Contracts\Commands;

interface Synchronizer
{
Expand Down
4 changes: 2 additions & 2 deletions src/ControlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Orchestra\Control;

use Orchestra\Control\Command\Synchronizer;
use Orchestra\Control\Commands\Synchronizer;
use Orchestra\Control\Listeners\Timezone\OnShowAccount;
use Orchestra\Control\Listeners\Timezone\OnUpdateAccount;
use Orchestra\Foundation\Support\Providers\ModuleServiceProvider;
use Orchestra\Control\Listeners\Configuration\OnUpdateConfiguration;
use Orchestra\Control\Contracts\Command\Synchronizer as SynchronizerContract;
use Orchestra\Control\Contracts\Commands\Synchronizer as SynchronizerContract;

class ControlServiceProvider extends ModuleServiceProvider
{
Expand Down
10 changes: 5 additions & 5 deletions src/Http/Controllers/AuthorizationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@

use Illuminate\Support\Fluent;
use Illuminate\Support\Facades\Input;
use Orchestra\Control\Processor\Authorization;
use Orchestra\Control\Contracts\Command\Synchronizer;
use Orchestra\Control\Processors\Authorization;
use Orchestra\Control\Contracts\Commands\Synchronizer;
use Orchestra\Foundation\Http\Controllers\AdminController;

class AuthorizationController extends AdminController
{
/**
* The synchronizer implementation.
*
* @var \Orchestra\Control\Contracts\Command\Synchronizer
* @var \Orchestra\Control\Contracts\Commands\Synchronizer
*/
protected $synchronizer;

/**
* Setup a new controller.
*
* @param \Orchestra\Control\Processor\Authorization $processor
* @param \Orchestra\Control\Contracts\Command\Synchronizer $synchronizer
* @param \Orchestra\Control\Processors\Authorization $processor
* @param \Orchestra\Control\Contracts\Commands\Synchronizer $synchronizer
*/
public function __construct(Authorization $processor, Synchronizer $synchronizer)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/RolesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use Orchestra\Model\Role;
use Illuminate\Support\Facades\Input;
use Orchestra\Control\Processor\Role as RoleProcessor;
use Orchestra\Control\Processors\Role as RoleProcessor;
use Orchestra\Foundation\Http\Controllers\AdminController;

class RolesController extends AdminController
{
/**
* Setup a new controller.
*
* @param \Orchestra\Control\Processor\Role $processor
* @param \Orchestra\Control\Processors\Role $processor
*/
public function __construct(RoleProcessor $processor)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/ThemesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use Orchestra\Support\Str;
use Orchestra\Contracts\Theme\Listener\Selector;
use Orchestra\Control\Processor\Theme as Processor;
use Orchestra\Control\Processors\Theme as Processor;
use Orchestra\Foundation\Http\Controllers\AdminController;

class ThemesController extends AdminController implements Selector
{
/**
* Setup a new controller.
*
* @param \Orchestra\Control\Processor\Theme $processor
* @param \Orchestra\Control\Processors\Theme $processor
*/
public function __construct(Processor $processor)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Listeners/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Orchestra\Contracts\Memory\Provider;
use Illuminate\Contracts\Config\Repository;
use Orchestra\Control\Contracts\Command\Synchronizer;
use Orchestra\Control\Contracts\Commands\Synchronizer;

abstract class Configuration
{
Expand All @@ -25,7 +25,7 @@ abstract class Configuration
/**
* The synchronizer implementation.
*
* @var \Orchestra\Control\Contracts\Command\Synchronizer
* @var \Orchestra\Control\Contracts\Commands\Synchronizer
*/
protected $synchronizer;

Expand All @@ -34,7 +34,7 @@ abstract class Configuration
*
* @param \Illuminate\Contracts\Config\Repository $config
* @param \Orchestra\Contracts\Memory\Provider $memory
* @param \Orchestra\Control\Contracts\Command\Synchronizer $synchronizer
* @param \Orchestra\Control\Contracts\Commands\Synchronizer $synchronizer
*/
public function __construct(Repository $config, Provider $memory, Synchronizer $synchronizer)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Authorization.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Control\Processor;
namespace Orchestra\Control\Processors;

use Orchestra\Support\Str;
use Illuminate\Support\Arr;
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Processor.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Control\Processor;
namespace Orchestra\Control\Processors;

abstract class Processor
{
Expand Down
6 changes: 3 additions & 3 deletions src/Processor/Role.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Orchestra\Control\Processor;
namespace Orchestra\Control\Processors;

use Exception;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Orchestra\Model\Role as Eloquent;
use Orchestra\Contracts\Foundation\Foundation;
use Orchestra\Control\Validation\Role as RoleValidator;
use Orchestra\Control\Validations\Role as RoleValidator;
use Orchestra\Control\Http\Presenters\Role as RolePresenter;

class Role extends Processor
Expand All @@ -16,7 +16,7 @@ class Role extends Processor
* Setup a new processor instance.
*
* @param \Orchestra\Control\Http\Presenters\Role $presenter
* @param \Orchestra\Control\Validation\Role $validator
* @param \Orchestra\Control\Validations\Role $validator
* @param \Orchestra\Contracts\Foundation\Foundation $foundation
*/
public function __construct(RolePresenter $presenter, RoleValidator $validator, Foundation $foundation)
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Theme.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Control\Processor;
namespace Orchestra\Control\Processors;

use Illuminate\Support\Collection;
use Orchestra\Contracts\Foundation\Foundation;
Expand Down
2 changes: 1 addition & 1 deletion src/Validation/Role.php → src/Validations/Role.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Control\Validation;
namespace Orchestra\Control\Validations;

use Orchestra\Support\Keyword;
use Orchestra\Support\Validator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Orchestra\Control\TestCase\Command;
namespace Orchestra\Control\TestCase\Commands;

use Mockery as m;
use Orchestra\Model\Role;
use PHPUnit\Framework\TestCase;
use Orchestra\Control\Command\Synchronizer;
use Orchestra\Control\Commands\Synchronizer;
use Illuminate\Contracts\Foundation\Application;
use Orchestra\Contracts\Authorization\Authorization;
use Orchestra\Control\Contracts\Command\Synchronizer as SynchronizerContract;
use Orchestra\Control\Contracts\Commands\Synchronizer as SynchronizerContract;

class SynchronizerTest extends TestCase
{
Expand Down

0 comments on commit 63c6f7a

Please sign in to comment.