-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Système de post automatique sur Bluesky
- Loading branch information
Showing
21 changed files
with
1,076 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
db/migrations/20250228163339_create_video_notifier_history_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class CreateVideoNotifierHistoryTable extends AbstractMigration | ||
{ | ||
public function change(): void | ||
{ | ||
$this->table('video_notifier_history') | ||
->addColumn('talk_id', 'integer') | ||
->addColumn('status_id_bluesky', 'string', [ | ||
'limit' => 30, | ||
'null' => true, | ||
]) | ||
->addColumn('status_id_mastodon', 'string', [ | ||
'limit' => 30, | ||
'null' => true, | ||
]) | ||
->addColumn('created_at', 'timestamp', [ | ||
'default' => 'CURRENT_TIMESTAMP', | ||
'update' => '' | ||
]) | ||
->create(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AppBundle\Command; | ||
|
||
use AppBundle\VideoNotifier\Engine; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
final class VideoNotifierCommand extends Command | ||
{ | ||
private Engine $engine; | ||
|
||
public function __construct(Engine $engine) | ||
{ | ||
parent::__construct(); | ||
|
||
$this->engine = $engine; | ||
} | ||
|
||
protected function configure(): void | ||
{ | ||
$this | ||
->setName('plop') | ||
; | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
$this->engine->run(); | ||
|
||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.