Skip to content

Commit

Permalink
[PSR4] ApplicationModule now follows PSR4 specification
Browse files Browse the repository at this point in the history
Use package `remp/crm-rector:^3.0` to automatically fix these renames.

remp/crm#2228
  • Loading branch information
markoph committed Jan 22, 2024
1 parent 29e9340 commit adadc7b
Show file tree
Hide file tree
Showing 145 changed files with 159 additions and 143 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application;

use Crm\ApiModule\Models\Api\ApiRoutersContainerInterface;
use Crm\ApplicationModule\Access\AccessManager;
use Crm\ApplicationModule\Application\Managers\AssetsManager;
use Crm\ApplicationModule\Application\Managers\CallbackManagerInterface;
use Crm\ApplicationModule\Application\Managers\LayoutManager;
use Crm\ApplicationModule\Application\Managers\SeederManager;
use Crm\ApplicationModule\Authenticator\AuthenticatorManagerInterface;
use Crm\ApplicationModule\Commands\CommandsContainerInterface;
use Crm\ApplicationModule\Criteria\CriteriaStorage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Commands;
namespace Crm\ApplicationModule\Application;

use Symfony\Component\Console\Command\Command;

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

namespace Crm\ApplicationModule\Commands;
namespace Crm\ApplicationModule\Application;

use Symfony\Component\Console\Command\Command;

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

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application;

use Composer\Composer;
use Composer\Factory;
Expand Down
4 changes: 2 additions & 2 deletions src/application/Core.php → src/Application/Core.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application;

use Dotenv\Dotenv;
use Nette\Bootstrap\Configurator;
Expand Down Expand Up @@ -148,7 +148,7 @@ public function getContainer()
{
return $this->container;
}

protected function createContainer()
{
$configurator = new Configurator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application;

use Nette\Utils\Strings;
use Tracy\Debugger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Crm\ApiModule\Models\Router\ApiRoutesContainer;
use Crm\ApplicationModule\Access\AccessManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Models;
namespace Crm\ApplicationModule\Application\Managers;

use League\Flysystem\FilesystemException;
use League\Flysystem\MountManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Nette\Utils\Strings;

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

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Closure;
use Nette\DI\Container;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Closure;
use Nette\DI\Container;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Crm\ApplicationModule\model\MissingLayoutException;

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

namespace Crm\ApplicationModule\model;
namespace Crm\ApplicationModule\Application\Managers;

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

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Nette\Application\ApplicationException;
use Nette\Utils\Strings;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Models;
namespace Crm\ApplicationModule\Application\Managers;

use League\Flysystem\FilesystemOperator;

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

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application\Managers;

use Crm\ApplicationModule\Seeders\ISeeder;

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

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Application;

use Crm\ApplicationModule\Commands\DumpSchemaForTests;
use Crm\ApplicationModule\ModuleManager;
use Phinx\Config\Config;
use Phinx\Console\Command\Create;
use Phinx\Console\Command\Init;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/FrontendMenu/FrontendMenu.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\FrontendMenu;

use Crm\ApplicationModule\Config\ApplicationConfig;
use Crm\ApplicationModule\DataProvider\DataProviderManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\FrontendMenu;

interface FrontendMenuFactoryInterface
{
Expand Down
4 changes: 3 additions & 1 deletion src/Components/Graphs/GoogleBarGraph/GoogleBarGraph.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleBarGraph;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;

/**
* Google bar graph component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleBarGraph;

interface GoogleBarGraphControlFactoryInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleBarGraphGroup;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;
use Crm\ApplicationModule\Graphs\GraphData;
use Nette\Application\UI\Multiplier;
use Nette\Utils\DateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleBarGraphGroup;

interface GoogleBarGraphGroupControlFactoryInterface
{
Expand Down
4 changes: 3 additions & 1 deletion src/Components/Graphs/GoogleLineGraph/GoogleLineGraph.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleLineGraph;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;

/**
* Google line graph component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleLineGraph;

interface GoogleLineGraphControlFactoryInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleLineGraphGroup;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;
use Crm\ApplicationModule\Graphs\GraphData;
use Crm\ApplicationModule\Graphs\ScaleFactory;
use Nette\Application\UI\Multiplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleLineGraphGroup;

interface GoogleLineGraphGroupControlFactoryInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleSankeyGraphGroup;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;
use Nette\Utils\Json;

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

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\GoogleSankeyGraphGroup;

interface GoogleSankeyGraphGroupControlFactoryInterface
{
Expand Down
4 changes: 3 additions & 1 deletion src/Components/Graphs/InlineBarGraph/InlineBarGraph.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\InlineBarGraph;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;

/**
* Inline bar graph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\InlineBarGraph;

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

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\SmallBarGraph;

use Crm\ApplicationModule\Components\Graphs\BaseGraphControl;

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

namespace Crm\ApplicationModule\Components\Graphs;
namespace Crm\ApplicationModule\Components\Graphs\SmallBarGraph;

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

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\PreviousNextPaginator;

use Nette\Application\Attributes\Persistent;
use Nette\Application\UI\Control;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/VisualPaginator/VisualPaginator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\VisualPaginator;

use Nette\Application\Attributes\Persistent;
use Nette\Application\UI\Control;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Widgets/SimpleWidget/SimpleWidget.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\Widgets\SimpleWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;

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

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\Widgets\SimpleWidget;

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

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\Widgets\SingleStatWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Components;
namespace Crm\ApplicationModule\Components\Widgets\SingleStatWidget;

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

namespace Crm\ApplicationModule;
namespace Crm\ApplicationModule\Forms;

trait FormFactoryDefaultsTrait
{
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Access/AccessManager.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Access;
namespace Crm\ApplicationModule\Models\Access;

use Nette\Security\User;

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

namespace Crm\ApplicationModule\Access;
namespace Crm\ApplicationModule\Models\Access;

class DummyAccessProvider implements ProviderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Access/ProviderInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Access;
namespace Crm\ApplicationModule\Models\Access;

interface ProviderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Access/UnknownAccessException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crm\ApplicationModule\Access;
namespace Crm\ApplicationModule\Models\Access;

use Throwable;

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

namespace Crm\ApplicationModule\Authenticator;
namespace Crm\ApplicationModule\Models\Authenticator;

use Nette\Database\Table\ActiveRow;

Expand Down
Loading

0 comments on commit adadc7b

Please sign in to comment.