Skip to content

Commit

Permalink
Merge pull request #33 from turbo124/master
Browse files Browse the repository at this point in the history
Update for Console 6.1
  • Loading branch information
beganovich authored Aug 24, 2023
2 parents e3ba325 + 29ea6ed commit 37b782f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
13 changes: 7 additions & 6 deletions src/Command/ConvertHtmlToPdfCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
namespace Beganovich\Snappdf\Command;

use Beganovich\Snappdf\Snappdf;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
name: 'convert',
description: 'Converts HTML to PDF',
hidden: false,
aliases: ['convert:html-to-pdf']
)]
class ConvertHtmlToPdfCommand extends Command
{
/**
* Command signature.
*
* @var string
*/
protected static $defaultName = 'convert';

/**
* Configure command propeprties.
Expand Down
14 changes: 10 additions & 4 deletions src/Command/DownloadChromiumCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Filesystem\Filesystem;
use ZipArchive;
use Symfony\Component\Console\Attribute\AsCommand;

class DownloadChromiumCommand extends Command
{
/**
* Command signature.
*
* @var string
*/
protected static $defaultName = 'download';
#[AsCommand(
name: 'download',
description: 'Downloads the chromium binary',
hidden: false,
aliases: ['download:chromium']
)]
class DownloadChromiumCommand extends Command
{


/**
* Download link for revisions.
Expand Down

0 comments on commit 37b782f

Please sign in to comment.