Skip to content

Commit

Permalink
Merge pull request #2 from pheeque1/fix/rename-namespace
Browse files Browse the repository at this point in the history
Rename namespace
  • Loading branch information
pheeque1 authored Oct 15, 2024
2 parents 456c870 + 6f56ee3 commit b05c649
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This library brings the ease of Artisan commands and the power of Symfony consol

Require the package:
```
composer require ostark/yii2-artisan-bridge
composer require fortrabbit/yii2-artisan-bridge
```

### Configure actions for a Craft 5 plugin
Expand All @@ -15,8 +15,8 @@ composer require ostark/yii2-artisan-bridge

use Craft;
use craft\base\Plugin as BasePlugin;
use ostark\Yii2ArtisanBridge\ActionGroup;
use ostark\Yii2ArtisanBridge\Bridge;
use fortrabbit\Yii2ArtisanBridge\ActionGroup;
use fortrabbit\Yii2ArtisanBridge\Bridge;
use you\PluginName\actions\ActionOne;
use you\PluginName\actions\ActionTwo;

Expand Down Expand Up @@ -65,7 +65,7 @@ it must be declared as a public property in the Action class.
<?php namespace you\PluginName\actions;

use Craft;
use ostark\Yii2ArtisanBridge\base\Action as BaseAction;
use fortrabbit\Yii2ArtisanBridge\base\Action as BaseAction;
use yii\console\ExitCode;

class ActionOne extends BaseAction {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"autoload": {
"psr-4": {
"ostark\\Yii2ArtisanBridge\\": "src/"
"fortrabbit\\Yii2ArtisanBridge\\": "src/"
}
}
}
2 changes: 1 addition & 1 deletion src/ActionGroup.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ostark\Yii2ArtisanBridge;
namespace fortrabbit\Yii2ArtisanBridge;

class ActionGroup
{
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace ostark\Yii2ArtisanBridge;
namespace fortrabbit\Yii2ArtisanBridge;

use ostark\Yii2ArtisanBridge\base\Commands;
use fortrabbit\Yii2ArtisanBridge\base\Commands;

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

namespace ostark\Yii2ArtisanBridge;
namespace fortrabbit\Yii2ArtisanBridge;

class ConsoleOutput extends \Symfony\Component\Console\Output\ConsoleOutput
{
Expand Down
4 changes: 2 additions & 2 deletions src/ErrorHandler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ostark\Yii2ArtisanBridge;
namespace fortrabbit\Yii2ArtisanBridge;

use Symfony\Component\Console\Input\ArgvInput;
use yii\console\UnknownCommandException;
Expand All @@ -9,7 +9,7 @@
/**
* Symfony console I/O
*
* @package ostark\Yii2ArtisanBridge
* @package fortrabbit\Yii2ArtisanBridge
*/
class ErrorHandler extends \yii\console\ErrorHandler
{
Expand Down
2 changes: 1 addition & 1 deletion src/OutputStyle.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ostark\Yii2ArtisanBridge;
namespace fortrabbit\Yii2ArtisanBridge;

use Symfony\Component\Console\Style\SymfonyStyle;

Expand Down
12 changes: 6 additions & 6 deletions src/base/Action.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php namespace ostark\Yii2ArtisanBridge\base;
<?php namespace fortrabbit\Yii2ArtisanBridge\base;

use ostark\Yii2ArtisanBridge\ConsoleOutput;
use ostark\Yii2ArtisanBridge\OutputStyle;
use fortrabbit\Yii2ArtisanBridge\ConsoleOutput;
use fortrabbit\Yii2ArtisanBridge\OutputStyle;
use Symfony\Component\Console\Input\ArgvInput;
use yii\base\Action as YiiBaseAction;

/**
* Class Action
*
* @package ostark\Yii2ArtisanBridge\base
* @package fortrabbit\Yii2ArtisanBridge\base
*
*/
abstract class Action extends YiiBaseAction
{
/**
* @var \ostark\Yii2ArtisanBridge\OutputStyle
* @var \fortrabbit\Yii2ArtisanBridge\OutputStyle
*/

protected $output;
Expand Down Expand Up @@ -42,7 +42,7 @@ abstract class Action extends YiiBaseAction
* Action constructor.
*
* @param string $id
* @param \ostark\Yii2ArtisanBridge\base\Commands $controller
* @param \fortrabbit\Yii2ArtisanBridge\base\Commands $controller
* @param array $config
*/
public function __construct(string $id, Commands $controller, array $config = [])
Expand Down
6 changes: 3 additions & 3 deletions src/base/ArtisanOutputTrait.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ostark\Yii2ArtisanBridge\base;
namespace fortrabbit\Yii2ArtisanBridge\base;

use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -14,8 +14,8 @@
* Borrowed from Illuminate\Console\Command
* @see https://github.com/laravel/framework/blob/5.6/src/Illuminate/Console/Command.php
*
* @property \ostark\Yii2ArtisanBridge\ConsoleOutput $input
* @property \ostark\Yii2ArtisanBridge\OutputStyle $output
* @property \fortrabbit\Yii2ArtisanBridge\ConsoleOutput $input
* @property \fortrabbit\Yii2ArtisanBridge\OutputStyle $output
*
*/
trait ArtisanOutputTrait
Expand Down
6 changes: 3 additions & 3 deletions src/base/BlockOutputTrait.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace ostark\Yii2ArtisanBridge\base;
namespace fortrabbit\Yii2ArtisanBridge\base;

/**
* Trait BlockOutputTrait
*
* @property \ostark\Yii2ArtisanBridge\ConsoleOutput $input
* @property \ostark\Yii2ArtisanBridge\OutputStyle $output
* @property \fortrabbit\Yii2ArtisanBridge\ConsoleOutput $input
* @property \fortrabbit\Yii2ArtisanBridge\OutputStyle $output
*/
trait BlockOutputTrait
{
Expand Down
4 changes: 2 additions & 2 deletions src/base/Commands.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace ostark\Yii2ArtisanBridge\base;
namespace fortrabbit\Yii2ArtisanBridge\base;

use ostark\Yii2ArtisanBridge\ErrorHandler;
use fortrabbit\Yii2ArtisanBridge\ErrorHandler;
use Yii;
use yii\base\ActionEvent;
use yii\console\Controller as BaseConsoleController;
Expand Down

0 comments on commit b05c649

Please sign in to comment.