Skip to content

Commit

Permalink
Files moved to src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
luzrain committed Feb 28, 2024
1 parent 12f4c9b commit cbf8efd
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Command;
namespace Luzrain\TelegramBotBundle\Command;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Exception\TelegramApiException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Command;
namespace Luzrain\TelegramBotBundle\Command;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Exception\TelegramApiException;
use Luzrain\TelegramBotApi\Method;
use Luzrain\TelegramBotApi\Type;
use Luzrain\TelegramBotBundle\TelegramBot\CommandMetadataProvider;
use Luzrain\TelegramBotBundle\CommandMetadataProvider;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -23,7 +23,7 @@ public function __construct(
private CommandMetadataProvider $commandMetadataProvider,
callable|null $descriptionProcessor,
) {
$this->descriptionProcessor = $descriptionProcessor ? $descriptionProcessor(...) : static fn (string $str) => $str;
$this->descriptionProcessor = $descriptionProcessor ? $descriptionProcessor(...) : static fn(string $str) => $str;
parent::__construct();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Command;
namespace Luzrain\TelegramBotBundle\Command;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Exception\TelegramApiException;
use Luzrain\TelegramBotBundle\TelegramBot\LongPollingService;
use Luzrain\TelegramBotBundle\TelegramBot\UpdateHandler;
use Luzrain\TelegramBotBundle\LongPollingService;
use Luzrain\TelegramBotBundle\UpdateHandler;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Command;
namespace Luzrain\TelegramBotBundle\Command;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Exception\TelegramApiException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Command;
namespace Luzrain\TelegramBotBundle\Command;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Exception\TelegramApiException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Command;
namespace Luzrain\TelegramBotBundle\Command;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Exception\TelegramApiException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot;
namespace Luzrain\TelegramBotBundle;

use Luzrain\TelegramBotBundle\Attribute\OnCommand;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot;
namespace Luzrain\TelegramBotBundle;

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\Method\GetUpdates;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot;
namespace Luzrain\TelegramBotBundle;

use Luzrain\TelegramBotApi\EventCallbackReturn;
use Luzrain\TelegramBotApi\Method;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot;
namespace Luzrain\TelegramBotBundle;

use Luzrain\TelegramBotApi\ClientApi;
use Luzrain\TelegramBotApi\Event;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

declare(strict_types=1);

namespace Luzrain\TelegramBotBundle\TelegramBot\Controller;
namespace Luzrain\TelegramBotBundle;

use Luzrain\TelegramBotApi\Exception\TelegramTypeException;
use Luzrain\TelegramBotApi\Type\Update;
use Luzrain\TelegramBotBundle\TelegramBot\UpdateHandler;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
4 changes: 2 additions & 2 deletions src/config/compilerpass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use Luzrain\TelegramBotBundle\TelegramBot\CommandMetadataProvider;
use Luzrain\TelegramBotBundle\TelegramBot\UpdateHandler;
use Luzrain\TelegramBotBundle\CommandMetadataProvider;
use Luzrain\TelegramBotBundle\UpdateHandler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
Expand Down
16 changes: 8 additions & 8 deletions src/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use Luzrain\TelegramBotBundle\Attribute\OnCallback;
use Luzrain\TelegramBotBundle\Attribute\OnCommand;
use Luzrain\TelegramBotBundle\Attribute\OnEvent;
use Luzrain\TelegramBotBundle\TelegramBot\Command\ButtonDeleteCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\ButtonUpdateCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\PolllingStartCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\WebhookDeleteCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\WebhookInfoCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\WebhookUpdateCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Controller\WebHookController;
use Luzrain\TelegramBotBundle\TelegramBot\LongPollingService;
use Luzrain\TelegramBotBundle\Command\ButtonDeleteCommand;
use Luzrain\TelegramBotBundle\Command\ButtonUpdateCommand;
use Luzrain\TelegramBotBundle\Command\PolllingStartCommand;
use Luzrain\TelegramBotBundle\Command\WebhookDeleteCommand;
use Luzrain\TelegramBotBundle\Command\WebhookInfoCommand;
use Luzrain\TelegramBotBundle\Command\WebhookUpdateCommand;
use Luzrain\TelegramBotBundle\LongPollingService;
use Luzrain\TelegramBotBundle\WebHookController;
use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/CommandMetadataProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Luzrain\TelegramBotBundle\Test;

use Luzrain\TelegramBotBundle\Attribute\OnCommand;
use Luzrain\TelegramBotBundle\TelegramBot\CommandMetadataProvider;
use Luzrain\TelegramBotBundle\CommandMetadataProvider;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

final class CommandMetadataProviderTest extends KernelTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/AnyUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Luzrain\TelegramBotApi\Event;
use Luzrain\TelegramBotBundle\Attribute\OnEvent;
use Luzrain\TelegramBotBundle\TelegramBot\TelegramCommand;
use Luzrain\TelegramBotBundle\TelegramCommand;
use Luzrain\TelegramBotBundle\Test\Helper\ControllerTestHelper;

final class AnyUpdateController extends TelegramCommand
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/CallbackCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Luzrain\TelegramBotApi\Method;
use Luzrain\TelegramBotBundle\Attribute\OnCallback;
use Luzrain\TelegramBotBundle\TelegramBot\TelegramCommand;
use Luzrain\TelegramBotBundle\TelegramCommand;
use Luzrain\TelegramBotBundle\Test\Helper\ControllerTestHelper;

final class CallbackCommandController extends TelegramCommand
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/MessageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Luzrain\TelegramBotApi\Method;
use Luzrain\TelegramBotApi\Type;
use Luzrain\TelegramBotBundle\Attribute\OnEvent;
use Luzrain\TelegramBotBundle\TelegramBot\TelegramCommand;
use Luzrain\TelegramBotBundle\TelegramCommand;
use Luzrain\TelegramBotBundle\Test\Helper\ControllerTestHelper;

final class MessageController extends TelegramCommand
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/StartCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Luzrain\TelegramBotApi\Method;
use Luzrain\TelegramBotBundle\Attribute\OnCommand;
use Luzrain\TelegramBotBundle\TelegramBot\TelegramCommand;
use Luzrain\TelegramBotBundle\TelegramCommand;
use Luzrain\TelegramBotBundle\Test\Helper\ControllerTestHelper;

final class StartCommandController extends TelegramCommand
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/TestCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Luzrain\TelegramBotApi\Method;
use Luzrain\TelegramBotBundle\Attribute\OnCommand;
use Luzrain\TelegramBotBundle\TelegramBot\TelegramCommand;
use Luzrain\TelegramBotBundle\TelegramCommand;
use Luzrain\TelegramBotBundle\Test\Helper\ControllerTestHelper;

final class TestCommandController extends TelegramCommand
Expand Down
20 changes: 10 additions & 10 deletions tests/ServicesAutowiringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

use Luzrain\TelegramBotApi\BotApi;
use Luzrain\TelegramBotApi\ClientApi;
use Luzrain\TelegramBotBundle\TelegramBot\Command\ButtonDeleteCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\ButtonUpdateCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\PolllingStartCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\WebhookDeleteCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\WebhookInfoCommand;
use Luzrain\TelegramBotBundle\TelegramBot\Command\WebhookUpdateCommand;
use Luzrain\TelegramBotBundle\TelegramBot\CommandMetadataProvider;
use Luzrain\TelegramBotBundle\TelegramBot\Controller\WebHookController;
use Luzrain\TelegramBotBundle\TelegramBot\LongPollingService;
use Luzrain\TelegramBotBundle\TelegramBot\UpdateHandler;
use Luzrain\TelegramBotBundle\Command\ButtonDeleteCommand;
use Luzrain\TelegramBotBundle\Command\ButtonUpdateCommand;
use Luzrain\TelegramBotBundle\Command\PolllingStartCommand;
use Luzrain\TelegramBotBundle\Command\WebhookDeleteCommand;
use Luzrain\TelegramBotBundle\Command\WebhookInfoCommand;
use Luzrain\TelegramBotBundle\Command\WebhookUpdateCommand;
use Luzrain\TelegramBotBundle\CommandMetadataProvider;
use Luzrain\TelegramBotBundle\LongPollingService;
use Luzrain\TelegramBotBundle\UpdateHandler;
use Luzrain\TelegramBotBundle\WebHookController;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/UpdateHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Luzrain\TelegramBotApi\Method;
use Luzrain\TelegramBotApi\Type\Update;
use Luzrain\TelegramBotBundle\TelegramBot\UpdateHandler;
use Luzrain\TelegramBotBundle\Test\Helper\ControllerTestHelper;
use Luzrain\TelegramBotBundle\UpdateHandler;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;

final class UpdateHandlerTest extends KernelTestCase
Expand Down

0 comments on commit cbf8efd

Please sign in to comment.