Skip to content

Commit

Permalink
[KernelApp] Prepare for 2.x:
Browse files Browse the repository at this point in the history
- Removed GitHub workflow;
- Removed static analysis configuration files;
- Moved all classes to root folder;
- Renamed namespace to \Micro\Framework\KernelApp;

Signed-off-by: Oleksii Bulba <[email protected]>
  • Loading branch information
OleksiiBulba committed Aug 5, 2023
1 parent 7a274d3 commit 3e40fa6
Show file tree
Hide file tree
Showing 24 changed files with 64 additions and 272 deletions.
5 changes: 1 addition & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/.github export-ignore
/tests export-ignore
/Tests export-ignore
/phpunit.xml.dist export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/psalm.xml export-ignore

*.php diff=php
2 changes: 0 additions & 2 deletions .github/workflows/.editorconfig

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/ci.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions .php-cs-fixer.dist.php

This file was deleted.

18 changes: 9 additions & 9 deletions src/AppKernel.php → AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App;
namespace Micro\Framework\KernelApp;

use Micro\Component\DependencyInjection\Container;
use Micro\Framework\Kernel\Boot\ConfigurationProviderBootLoader;
use Micro\Framework\Kernel\Boot\DependedPluginsBootLoader;
use Micro\Framework\Kernel\Boot\DependencyProviderBootLoader;
use Micro\Framework\Kernel\Configuration\ApplicationConfigurationInterface;
use Micro\Framework\DependencyInjection\Container;
use Micro\Framework\BootConfiguration\Boot\ConfigurationProviderBootLoader;
use Micro\Framework\BootPluginDependent\Boot\DependedPluginsBootLoader;
use Micro\Framework\BootDependency\Boot\DependencyProviderBootLoader;
use Micro\Framework\BootConfiguration\Configuration\ApplicationConfigurationInterface;
use Micro\Framework\Kernel\KernelBuilder;
use Micro\Framework\Kernel\KernelInterface;
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
use Micro\Kernel\App\Business\KernelActionProcessorInterface;
use Micro\Kernel\App\Business\KernelRunActionProcessor;
use Micro\Kernel\App\Business\KernelTerminateActionProcessor;
use Micro\Framework\KernelApp\Business\KernelActionProcessorInterface;
use Micro\Framework\KernelApp\Business\KernelRunActionProcessor;
use Micro\Framework\KernelApp\Business\KernelTerminateActionProcessor;
use Micro\Plugin\EventEmitter\EventEmitterPlugin;
use Micro\Plugin\Locator\LocatorPlugin;

Expand Down
2 changes: 1 addition & 1 deletion src/AppKernelInterface.php → AppKernelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App;
namespace Micro\Framework\KernelApp;

use Micro\Framework\Kernel\KernelInterface;
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business;
namespace Micro\Framework\KernelApp\Business;

use Micro\Kernel\App\AppKernelInterface;
use Micro\Framework\KernelApp\AppKernelInterface;

abstract class AbstractActionProcessor implements KernelActionProcessorInterface
{
/**
* {@inheritDoc}
*/
public function process(AppKernelInterface $appKernel): void
{
foreach ($this->createActionProcessorCollection() as $actionProcessor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Event;
namespace Micro\Framework\KernelApp\Business\Event;

use Micro\Kernel\App\AppKernelInterface;
use Micro\Framework\KernelApp\AppKernelInterface;

readonly class ApplicationReadyEvent implements ApplicationReadyEventInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Event;
namespace Micro\Framework\KernelApp\Business\Event;

use Micro\Component\EventEmitter\EventInterface;
use Micro\Kernel\App\AppKernelInterface;
use Micro\Framework\EventEmitter\EventInterface;
use Micro\Framework\KernelApp\AppKernelInterface;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Event;
namespace Micro\Framework\KernelApp\Business\Event;

readonly class ApplicationTerminatedEvent implements ApplicationTerminatedEventInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Event;
namespace Micro\Framework\KernelApp\Business\Event;

use Micro\Component\EventEmitter\EventInterface;
use Micro\Framework\EventEmitter\EventInterface;

/**
* @author Stanislau Komar <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business;
namespace Micro\Framework\KernelApp\Business;

use Micro\Kernel\App\AppKernelInterface;
use Micro\Framework\KernelApp\AppKernelInterface;

interface KernelActionProcessorInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business;
namespace Micro\Framework\KernelApp\Business;

use Micro\Kernel\App\Business\Processor\AppCreateEventRunSuccess;
use Micro\Kernel\App\Business\Processor\ProvideKernelProcessor;
use Micro\Framework\KernelApp\Business\Processor\AppCreateEventRunSuccess;
use Micro\Framework\KernelApp\Business\Processor\ProvideKernelProcessor;

class KernelRunActionProcessor extends AbstractActionProcessor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business;
namespace Micro\Framework\KernelApp\Business;

use Micro\Kernel\App\Business\Processor\AppCreateEventTerminate;
use Micro\Framework\KernelApp\Business\Processor\AppCreateEventTerminate;

class KernelTerminateActionProcessor extends AbstractActionProcessor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Processor;
namespace Micro\Framework\KernelApp\Business\Processor;

use Micro\Component\DependencyInjection\Container;
use Micro\Component\EventEmitter\EventInterface;
use Micro\Kernel\App\AppKernelInterface;
use Micro\Kernel\App\Business\KernelActionProcessorInterface;
use Micro\Framework\DependencyInjection\Container;
use Micro\Framework\EventEmitter\EventInterface;
use Micro\Framework\KernelApp\AppKernelInterface;
use Micro\Framework\KernelApp\Business\KernelActionProcessorInterface;
use Micro\Plugin\EventEmitter\EventsFacadeInterface;

abstract class AbstractEmitEventProcessor implements KernelActionProcessorInterface
{
/**
* {@inheritDoc}
*/
public function process(AppKernelInterface $appKernel): void
{
$event = $this->createEvent($appKernel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Processor;
namespace Micro\Framework\KernelApp\Business\Processor;

use Micro\Component\EventEmitter\EventInterface;
use Micro\Kernel\App\AppKernelInterface;
use Micro\Kernel\App\Business\Event\ApplicationReadyEvent;
use Micro\Framework\EventEmitter\EventInterface;
use Micro\Framework\KernelApp\AppKernelInterface;
use Micro\Framework\KernelApp\Business\Event\ApplicationReadyEvent;

class AppCreateEventRunSuccess extends AbstractEmitEventProcessor
{
/**
* {@inheritDoc}
*/
protected function createEvent(AppKernelInterface $appKernel): EventInterface
{
return new ApplicationReadyEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Processor;
namespace Micro\Framework\KernelApp\Business\Processor;

use Micro\Component\EventEmitter\EventInterface;
use Micro\Kernel\App\AppKernelInterface;
use Micro\Kernel\App\Business\Event\ApplicationTerminatedEvent;
use Micro\Framework\EventEmitter\EventInterface;
use Micro\Framework\KernelApp\AppKernelInterface;
use Micro\Framework\KernelApp\Business\Event\ApplicationTerminatedEvent;

class AppCreateEventTerminate extends AbstractEmitEventProcessor
{
/**
* {@inheritDoc}
*/
protected function createEvent(AppKernelInterface $appKernel): EventInterface
{
return new ApplicationTerminatedEvent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Business\Processor;
namespace Micro\Framework\KernelApp\Business\Processor;

use Micro\Framework\Kernel\KernelInterface;
use Micro\Kernel\App\AppKernelInterface;
use Micro\Kernel\App\Business\KernelActionProcessorInterface;
use Micro\Framework\KernelApp\AppKernelInterface;
use Micro\Framework\KernelApp\Business\KernelActionProcessorInterface;

class ProvideKernelProcessor implements KernelActionProcessorInterface
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/AppKernelTest.php → Tests/Unit/AppKernelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Test\Unit;
namespace Micro\Framework\KernelApp\Tests\Unit;

use Micro\Component\DependencyInjection\Container;
use Micro\Framework\DependencyInjection\Container;
use Micro\Framework\Kernel\KernelInterface;
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
use Micro\Kernel\App\AppKernel;
use Micro\Framework\KernelApp\AppKernel;
use PHPUnit\Framework\TestCase;

class AppKernelTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace Micro\Kernel\App\Test\Unit\Business\Event;
namespace Micro\Framework\KernelApp\Tests\Unit\Business\Event;

use Micro\Kernel\App\AppKernelInterface;
use Micro\Kernel\App\Business\Event\ApplicationReadyEvent;
use Micro\Framework\KernelApp\AppKernelInterface;
use Micro\Framework\KernelApp\Business\Event\ApplicationReadyEvent;
use PHPUnit\Framework\TestCase;

class ApplicationReadyEventTest extends TestCase
Expand Down
Loading

0 comments on commit 3e40fa6

Please sign in to comment.