Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8470: Upgraded codebase to Symfony 6 #21

Merged
merged 3 commits into from
Mar 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Rector PHP
on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~
jobs:
rector:
name: Run rector
uses: ibexa/gh-workflows/.github/workflows/rector.yml@main
secrets:
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
"require": {
"php": "^8.3",
"ext-libxml": "*",
"symfony/yaml": "^5.0",
"symfony/routing": "^5.0",
"symfony/console": "^5.0",
"symfony/form": "^5.0",
"symfony/http-foundation": "^5.0",
"symfony/event-dispatcher": "^5.0",
"guzzlehttp/guzzle": "^6.3.0",
"ibexa/admin-ui": "~5.0.0@dev",
"ibexa/core": "~5.0.0@dev",
"ibexa/fieldtype-richtext": "~5.0.0@dev",
"ibexa/admin-ui": "~5.0.0@dev"
"symfony/console": "^6.4",
"symfony/event-dispatcher": "^6.4",
"symfony/form": "^6.4",
"symfony/http-foundation": "^6.4",
"symfony/routing": "^6.4",
"symfony/yaml": "^6.4"
},
"require-dev": {
"dg/bypass-finals": "^1.3",
Expand All @@ -54,6 +54,7 @@
"ibexa/http-cache": "~5.0.x-dev",
"ibexa/migrations": "~5.0.x-dev",
"ibexa/notifications": "~5.0.x-dev",
"ibexa/rector": "~5.0.x-dev",
"ibexa/rest": "~5.0.x-dev",
"ibexa/search": "~5.0.x-dev",
"ibexa/user": "~5.0.x-dev",
Expand Down
16 changes: 16 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

use Ibexa\Contracts\Rector\Factory\IbexaRectorConfigFactory;

return (new IbexaRectorConfigFactory(
[
__DIR__ . '/src',
__DIR__ . '/tests',
]
))->createConfig();
5 changes: 2 additions & 3 deletions src/bundle/Command/TranslateContentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
use Ibexa\Contracts\Core\Repository\ContentService;
use Ibexa\Contracts\Core\Repository\PermissionResolver;
use Ibexa\Contracts\Core\Repository\UserService;
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\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'ibexa:automated:translate', description: 'Translate a Content in a new Language', aliases: ['ibexatranslate'])]
final class TranslateContentCommand extends Command
{
private const ADMINISTRATOR_USER_ID = 14;
Expand Down Expand Up @@ -52,9 +54,6 @@ public function __construct(
protected function configure(): void
{
$this
->setName('ibexa:automated:translate')
->setAliases(['ibexatranslate'])
->setDescription('Translate a Content in a new Language')
->addArgument('contentId', InputArgument::REQUIRED, 'ContentId')
->addArgument(
'service',
Expand Down
Loading