Skip to content

Commit

Permalink
Fix deprecation notices (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrik Foldes <[email protected]>
  • Loading branch information
sspat and Patrik Foldes authored Sep 1, 2022
1 parent 0d9ed5c commit 785e572
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Command/DeleteGeneratedCodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use SplFileInfo;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputDefinition;
Expand All @@ -20,6 +21,7 @@
use function Safe\sprintf;
use function Safe\unlink;

#[AsCommand(name: 'open-api:delete')]
final class DeleteGeneratedCodeCommand extends Command
{
public const COMMAND = 'open-api:delete';
Expand Down
2 changes: 2 additions & 0 deletions src/Command/GenerateApiCodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use OnMoon\OpenApiServerBundle\CodeGenerator\ApiServerCodeGenerator;
use OnMoon\OpenApiServerBundle\Specification\SpecificationLoader;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Contracts\Cache\TagAwareCacheInterface;

use function Safe\sprintf;

#[AsCommand(name: 'open-api:generate')]
final class GenerateApiCodeCommand extends Command
{
public const COMMAND = 'open-api:generate';
Expand Down
2 changes: 2 additions & 0 deletions src/Command/RefreshApiCodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace OnMoon\OpenApiServerBundle\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -14,6 +15,7 @@

use function Safe\sprintf;

#[AsCommand(name: 'open-api:refresh')]
final class RefreshApiCodeCommand extends Command
{
private string $rootPath;
Expand Down
5 changes: 1 addition & 4 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

final class Configuration implements ConfigurationInterface
{
/**
* @inheritDoc
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('open_api_server');

Expand Down

0 comments on commit 785e572

Please sign in to comment.