Skip to content

Commit

Permalink
Optimize scan (#70)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Dec 2, 2022
1 parent 800d02b commit 9e72952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/Command/TinkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace FriendsOfHyperf\Tinker\Command;

use FriendsOfHyperf\Tinker\ClassAliasAutoloader;
use Hyperf\Command\Annotation\Command;
use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Contract\ConfigInterface;
use Psr\Container\ContainerInterface;
Expand All @@ -24,10 +23,6 @@
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

/**
* @Command
*/
#[Command]
class TinkerCommand extends HyperfCommand
{
/**
Expand Down
11 changes: 3 additions & 8 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,13 @@ public function __invoke(): array
defined('BASE_PATH') or define('BASE_PATH', '');

return [
'annotations' => [
'scan' => [
'paths' => [
__DIR__,
],
],
'commands' => [
Command\TinkerCommand::class,
],
'commands' => [],
'publish' => [
[
'id' => 'config',
'description' => 'The config for Tinker.',
'description' => 'The config for tinker.',
'source' => __DIR__ . '/../publish/tinker.php',
'destination' => BASE_PATH . '/config/autoload/tinker.php',
],
Expand Down

0 comments on commit 9e72952

Please sign in to comment.