feat(components): add custom view renderer with ComponentRenderer adapted from bonfire2

- update Component class structure and remove component helper function and ComponentLoader
- update residual activitypub naming to fediverse
This commit is contained in:
Yassine Doghri 2021-08-27 10:58:22 +00:00
commit a95de8bab0
106 changed files with 1482 additions and 2139 deletions

3
.gitignore vendored
View file

@ -154,8 +154,7 @@ public/media/persons/*
!public/media/persons/index.html !public/media/persons/index.html
# Generated files # Generated files
app/Language/en/PersonsTaxonomy.php modules/Admin/Language/*/PersonsTaxonomy.php
app/Language/fr/PersonsTaxonomy.php
#------------------------- #-------------------------
# Docker volumes # Docker volumes

View file

@ -43,16 +43,14 @@ class Autoload extends AutoloadConfig
*/ */
public $psr4 = [ public $psr4 = [
APP_NAMESPACE => APPPATH, APP_NAMESPACE => APPPATH,
'Modules' => ROOTPATH . 'modules', 'Modules' => ROOTPATH . 'modules/',
'Modules\Admin' => ROOTPATH . 'modules/Admin', 'Modules\Admin' => ROOTPATH . 'modules/Admin/',
'Modules\Auth' => ROOTPATH . 'modules/Auth', 'Modules\Auth' => ROOTPATH . 'modules/Auth/',
'Modules\Analytics' => ROOTPATH . 'modules/Analytics', 'Modules\Analytics' => ROOTPATH . 'modules/Analytics/',
'Modules\Install' => ROOTPATH . 'modules/Install', 'Modules\Install' => ROOTPATH . 'modules/Install/',
'Modules\Fediverse' => ROOTPATH . 'modules/Fediverse', 'Modules\Fediverse' => ROOTPATH . 'modules/Fediverse/',
'Config' => APPPATH . 'Config', 'Config' => APPPATH . 'Config/',
'ActivityPub' => APPPATH . 'Libraries/ActivityPub', 'ViewComponents' => APPPATH . 'Libraries/ViewComponents/',
'Analytics' => APPPATH . 'Libraries/Analytics',
'ViewComponents' => APPPATH . 'Libraries/ViewComponents',
]; ];
/** /**

View file

@ -76,7 +76,7 @@ Events::on('logout', function (User $user): void {
/* /*
* -------------------------------------------------------------------- * --------------------------------------------------------------------
* ActivityPub events * Fediverse events
* -------------------------------------------------------------------- * --------------------------------------------------------------------
*/ */
/** /**

View file

@ -9,7 +9,7 @@ use CodeIgniter\Filters\CSRF;
use CodeIgniter\Filters\DebugToolbar; use CodeIgniter\Filters\DebugToolbar;
use CodeIgniter\Filters\Honeypot; use CodeIgniter\Filters\Honeypot;
use Modules\Auth\Filters\PermissionFilter; use Modules\Auth\Filters\PermissionFilter;
use Modules\Fediverse\Filters\ActivityPubFilter; use Modules\Fediverse\Filters\FediverseFilter;
use Myth\Auth\Filters\LoginFilter; use Myth\Auth\Filters\LoginFilter;
use Myth\Auth\Filters\RoleFilter; use Myth\Auth\Filters\RoleFilter;
@ -27,7 +27,7 @@ class Filters extends BaseConfig
'login' => LoginFilter::class, 'login' => LoginFilter::class,
'role' => RoleFilter::class, 'role' => RoleFilter::class,
'permission' => PermissionFilter::class, 'permission' => PermissionFilter::class,
'activity-pub' => ActivityPubFilter::class, 'activity-pub' => FediverseFilter::class,
]; ];
/** /**

View file

@ -7,11 +7,14 @@ namespace Config;
use App\Libraries\Breadcrumb; use App\Libraries\Breadcrumb;
use App\Libraries\Negotiate; use App\Libraries\Negotiate;
use App\Libraries\Router; use App\Libraries\Router;
use App\Libraries\View;
use App\Libraries\Vite; use App\Libraries\Vite;
use CodeIgniter\Config\BaseService; use CodeIgniter\Config\BaseService;
use CodeIgniter\HTTP\Request; use CodeIgniter\HTTP\Request;
use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\Router\RouteCollectionInterface; use CodeIgniter\Router\RouteCollectionInterface;
use Config\Services as AppServices;
use Config\View as ViewConfig;
/** /**
* Services Configuration file. * Services Configuration file.
@ -46,6 +49,24 @@ class Services extends BaseService
return new Router($routes, $request); return new Router($routes, $request);
} }
/**
* The Renderer class is the class that actually displays a file to the user. The default View class within
* CodeIgniter is intentionally simple, but this service could easily be replaced by a template engine if the user
* needed to.
*/
public static function renderer(?string $viewPath = null, ?ViewConfig $config = null, bool $getShared = true): View
{
if ($getShared) {
return static::getSharedInstance('renderer', $viewPath, $config);
}
$viewPath = $viewPath ?: config('Paths')
->viewDirectory;
$config = $config ?? config('View');
return new View($config, $viewPath, AppServices::locator(), CI_DEBUG, AppServices::logger());
}
/** /**
* The Negotiate class provides the content negotiation features for working the request to determine correct * The Negotiate class provides the content negotiation features for working the request to determine correct
* language, encoding, charset, and more. * language, encoding, charset, and more.

View file

@ -11,9 +11,9 @@ declare(strict_types=1);
namespace App\Controllers; namespace App\Controllers;
use Modules\Analytics\AnalyticsTrait; use Modules\Analytics\AnalyticsTrait;
use Modules\Fediverse\Controllers\ActorController as ActivityPubActorController; use Modules\Fediverse\Controllers\ActorController as FediverseActorController;
class ActorController extends ActivityPubActorController class ActorController extends FediverseActorController
{ {
use AnalyticsTrait; use AnalyticsTrait;

View file

@ -127,6 +127,9 @@ class EpisodeCommentController extends BaseController
->setBody($commentObject->toJSON()); ->setBody($commentObject->toJSON());
} }
/**
* @noRector ReturnTypeDeclarationRector
*/
public function replies(): Response public function replies(): Response
{ {
/** /**

View file

@ -222,7 +222,7 @@ class EpisodeController extends BaseController
$episodeComments = model('PostModel') $episodeComments = model('PostModel')
->whereIn('in_reply_to_id', function (BaseBuilder $builder): BaseBuilder { ->whereIn('in_reply_to_id', function (BaseBuilder $builder): BaseBuilder {
return $builder->select('id') return $builder->select('id')
->from('activitypub_posts') ->from(config('Fediverse')->tablesPrefix . 'posts')
->where('episode_id', $this->episode->id); ->where('episode_id', $this->episode->id);
}) })
->where('`published_at` <= NOW()', null, false) ->where('`published_at` <= NOW()', null, false)

View file

@ -21,10 +21,10 @@ use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\URI; use CodeIgniter\HTTP\URI;
use CodeIgniter\I18n\Time; use CodeIgniter\I18n\Time;
use Modules\Analytics\AnalyticsTrait; use Modules\Analytics\AnalyticsTrait;
use Modules\Fediverse\Controllers\PostController as ActivityPubPostController; use Modules\Fediverse\Controllers\PostController as FediversePostController;
use Modules\Fediverse\Entities\Post as ActivityPubPost; use Modules\Fediverse\Entities\Post as FediversePost;
class PostController extends ActivityPubPostController class PostController extends FediversePostController
{ {
use AnalyticsTrait; use AnalyticsTrait;
@ -35,7 +35,7 @@ class PostController extends ActivityPubPostController
/** /**
* @var string[] * @var string[]
*/ */
protected $helpers = ['auth', 'activitypub', 'svg', 'components', 'misc']; protected $helpers = ['auth', 'fediverse', 'svg', 'components', 'misc'];
public function _remap(string $method, string ...$params): mixed public function _remap(string $method, string ...$params): mixed
{ {
@ -162,7 +162,7 @@ class PostController extends ActivityPubPostController
->with('errors', $this->validator->getErrors()); ->with('errors', $this->validator->getErrors());
} }
$newPost = new ActivityPubPost([ $newPost = new FediversePost([
'actor_id' => interact_as_actor_id(), 'actor_id' => interact_as_actor_id(),
'in_reply_to_id' => $this->post->id, 'in_reply_to_id' => $this->post->id,
'message' => $this->request->getPost('message'), 'message' => $this->request->getPost('message'),

View file

@ -196,7 +196,7 @@ class AddPodcasts extends Migration
$this->forge->addUniqueKey('handle'); $this->forge->addUniqueKey('handle');
$this->forge->addUniqueKey('guid'); $this->forge->addUniqueKey('guid');
$this->forge->addUniqueKey('actor_id'); $this->forge->addUniqueKey('actor_id');
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', config('Fediverse')->tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('category_id', 'categories', 'id'); $this->forge->addForeignKey('category_id', 'categories', 'id');
$this->forge->addForeignKey('language_code', 'languages', 'code'); $this->forge->addForeignKey('language_code', 'languages', 'code');
$this->forge->addForeignKey('created_by', 'users', 'id'); $this->forge->addForeignKey('created_by', 'users', 'id');

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddEpisodeIdToPosts Adds episode_id field to activitypub_posts table in database * Class AddEpisodeIdToPosts Adds episode_id field to posts table in database
* *
* @copyright 2020 Podlibre * @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -19,18 +19,26 @@ class AddEpisodeIdToPosts extends Migration
public function up(): void public function up(): void
{ {
$prefix = $this->db->getPrefix(); $prefix = $this->db->getPrefix();
$fediverseTablesPrefix = config('Fediverse')
->tablesPrefix;
$createQuery = <<<CODE_SAMPLE $createQuery = <<<CODE_SAMPLE
ALTER TABLE {$prefix}activitypub_posts ALTER TABLE {$prefix}{$fediverseTablesPrefix}posts
ADD COLUMN `episode_id` INT UNSIGNED NULL AFTER `replies_count`, ADD COLUMN `episode_id` INT UNSIGNED NULL AFTER `replies_count`,
ADD FOREIGN KEY {$prefix}activitypub_posts_episode_id_foreign(episode_id) REFERENCES {$prefix}episodes(id) ON DELETE CASCADE; ADD FOREIGN KEY {$prefix}{$fediverseTablesPrefix}posts_episode_id_foreign(episode_id) REFERENCES {$prefix}episodes(id) ON DELETE CASCADE;
CODE_SAMPLE; CODE_SAMPLE;
$this->db->query($createQuery); $this->db->query($createQuery);
} }
public function down(): void public function down(): void
{ {
$this->forge->dropForeignKey('activitypub_posts', 'activitypub_posts_episode_id_foreign'); $fediverseTablesPrefix = config('Fediverse')
$this->forge->dropColumn('activitypub_posts', 'episode_id'); ->tablesPrefix;
$this->forge->dropForeignKey(
$fediverseTablesPrefix . 'posts',
$fediverseTablesPrefix . 'posts_episode_id_foreign'
);
$this->forge->dropColumn($fediverseTablesPrefix . 'posts', 'episode_id');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddCreatedByToPosts Adds created_by field to activitypub_posts table in database * Class AddCreatedByToPosts Adds created_by field to posts table in database
* *
* @copyright 2020 Podlibre * @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -19,18 +19,26 @@ class AddCreatedByToPosts extends Migration
public function up(): void public function up(): void
{ {
$prefix = $this->db->getPrefix(); $prefix = $this->db->getPrefix();
$fediverseTablesPrefix = config('Fediverse')
->tablesPrefix;
$createQuery = <<<CODE_SAMPLE $createQuery = <<<CODE_SAMPLE
ALTER TABLE {$prefix}activitypub_posts ALTER TABLE {$prefix}{$fediverseTablesPrefix}posts
ADD COLUMN `created_by` INT UNSIGNED AFTER `episode_id`, ADD COLUMN `created_by` INT UNSIGNED AFTER `episode_id`,
ADD FOREIGN KEY {$prefix}activitypub_posts_created_by_foreign(created_by) REFERENCES {$prefix}users(id) ON DELETE CASCADE; ADD FOREIGN KEY {$prefix}{$fediverseTablesPrefix}posts_created_by_foreign(created_by) REFERENCES {$prefix}users(id) ON DELETE CASCADE;
CODE_SAMPLE; CODE_SAMPLE;
$this->db->query($createQuery); $this->db->query($createQuery);
} }
public function down(): void public function down(): void
{ {
$this->forge->dropForeignKey('activitypub_posts', 'activitypub_posts_created_by_foreign'); $fediverseTablesPrefix = config('Fediverse')
$this->forge->dropColumn('activitypub_posts', 'created_by'); ->tablesPrefix;
$this->forge->dropForeignKey(
$fediverseTablesPrefix . 'posts',
$fediverseTablesPrefix . 'posts_created_by_foreign'
);
$this->forge->dropColumn($fediverseTablesPrefix . 'posts', 'created_by');
} }
} }

View file

@ -65,9 +65,13 @@ class AddEpisodeComments extends Migration
'null' => true, 'null' => true,
], ],
]); ]);
$fediverseTablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addPrimaryKey('id'); $this->forge->addPrimaryKey('id');
$this->forge->addForeignKey('episode_id', 'episodes', 'id', '', 'CASCADE'); $this->forge->addForeignKey('episode_id', 'episodes', 'id', '', 'CASCADE');
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', $fediverseTablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('created_by', 'users', 'id'); $this->forge->addForeignKey('created_by', 'users', 'id');
$this->forge->createTable('episode_comments'); $this->forge->createTable('episode_comments');
} }

View file

@ -28,9 +28,13 @@ class AddLikes extends Migration
'constraint' => 16, 'constraint' => 16,
], ],
]); ]);
$fediverseTablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addField('`created_at` timestamp NOT NULL DEFAULT current_timestamp()'); $this->forge->addField('`created_at` timestamp NOT NULL DEFAULT current_timestamp()');
$this->forge->addPrimaryKey(['actor_id', 'comment_id']); $this->forge->addPrimaryKey(['actor_id', 'comment_id']);
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', $fediverseTablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('comment_id', 'episode_comments', 'id', '', 'CASCADE'); $this->forge->addForeignKey('comment_id', 'episode_comments', 'id', '', 'CASCADE');
$this->forge->createTable('likes'); $this->forge->createTable('likes');
} }

View file

@ -238,13 +238,13 @@ class AuthSeeder extends Seeder
[ [
'name' => 'block_actors', 'name' => 'block_actors',
'description' => 'description' =>
'Block an activitypub actors from interacting with the instance.', 'Block fediverse actors from interacting with the instance.',
'has_permission' => ['superadmin'], 'has_permission' => ['superadmin'],
], ],
[ [
'name' => 'block_domains', 'name' => 'block_domains',
'description' => 'description' =>
'Block an activitypub domains from interacting with the instance.', 'Block fediverse domains from interacting with the instance.',
'has_permission' => ['superadmin'], 'has_permission' => ['superadmin'],
], ],
], ],

View file

@ -11,14 +11,14 @@ declare(strict_types=1);
namespace App\Entities; namespace App\Entities;
use App\Models\PodcastModel; use App\Models\PodcastModel;
use Modules\Fediverse\Entities\Actor as ActivityPubActor; use Modules\Fediverse\Entities\Actor as FediverseActor;
use RuntimeException; use RuntimeException;
/** /**
* @property Podcast|null $podcast * @property Podcast|null $podcast
* @property boolean $is_podcast * @property boolean $is_podcast
*/ */
class Actor extends ActivityPubActor class Actor extends FediverseActor
{ {
protected ?Podcast $podcast = null; protected ?Podcast $podcast = null;

View file

@ -134,7 +134,7 @@ class EpisodeComment extends UuidEntity
public function setMessage(string $message): static public function setMessage(string $message): static
{ {
helper('activitypub'); helper('fediverse');
$messageWithoutTags = strip_tags($message); $messageWithoutTags = strip_tags($message);

View file

@ -11,14 +11,14 @@ declare(strict_types=1);
namespace App\Entities; namespace App\Entities;
use App\Models\EpisodeModel; use App\Models\EpisodeModel;
use Modules\Fediverse\Entities\Post as ActivityPubPost; use Modules\Fediverse\Entities\Post as FediversePost;
use RuntimeException; use RuntimeException;
/** /**
* @property int|null $episode_id * @property int|null $episode_id
* @property Episode|null $episode * @property Episode|null $episode
*/ */
class Post extends ActivityPubPost class Post extends FediversePost
{ {
protected ?Episode $episode = null; protected ?Episode $episode = null;

View file

@ -18,7 +18,7 @@ if (! function_exists('save_media')) {
/** /**
* Saves a file to the corresponding podcast folder in `public/media` * Saves a file to the corresponding podcast folder in `public/media`
*/ */
function save_media(File|UploadedFile $file, string $folder = '', string $filename = ''): string function save_media(File | UploadedFile $file, string $folder = '', string $filename = ''): string
{ {
if (($extension = $file->getExtension()) !== '') { if (($extension = $file->getExtension()) !== '') {
$filename = $filename . '.' . $extension; $filename = $filename . '.' . $extension;

View file

@ -1,36 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'your_handle' => 'Your handle',
'your_handle_hint' => 'Enter the @username@domain you want to act from.',
'follow' => [
'label' => 'Follow',
'title' => 'Follow {actorDisplayName}',
'subtitle' => 'You are going to follow:',
'accountNotFound' => 'The account could not be found.',
'submit' => 'Proceed to follow',
],
'favourite' => [
'title' => "Favourite {actorDisplayName}'s post",
'subtitle' => 'You are going to favourite:',
'submit' => 'Proceed to favourite',
],
'reblog' => [
'title' => "Share {actorDisplayName}'s post",
'subtitle' => 'You are going to share:',
'submit' => 'Proceed to share',
],
'reply' => [
'title' => "Reply to {actorDisplayName}'s post",
'subtitle' => 'You are going to reply to:',
'submit' => 'Proceed to reply',
],
];

View file

@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'dashboard' => 'Admin dashboard',
'welcome_message' => 'Welcome to the admin area!',
'choose_interact' => 'Choose how to interact',
];

View file

@ -1,44 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'label' => 'breadcrumb',
config('Admin')
->gateway => 'Home',
'podcasts' => 'podcasts',
'episodes' => 'episodes',
'contributors' => 'contributors',
'pages' => 'pages',
'add' => 'add',
'new' => 'new',
'edit' => 'edit',
'persons' => 'persons',
'publish' => 'publish',
'publish-edit' => 'edit publication',
'unpublish' => 'unpublish',
'fediverse' => 'fediverse',
'block-lists' => 'block lists',
'users' => 'users',
'my-account' => 'my account',
'change-password' => 'change password',
'import' => 'feed import',
'platforms' => 'platforms',
'social' => 'social networks',
'funding' => 'funding',
'analytics' => 'analytics',
'locations' => 'locations',
'webpages' => 'web pages',
'unique-listeners' => 'unique listeners',
'players' => 'players',
'listening-time' => 'listening time',
'time-periods' => 'time periods',
'soundbites' => 'soundbites',
'embeddable-player' => 'embeddable player',
];

View file

@ -1,38 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'by_service_weekly' => 'Episode downloads by service (for the past week)',
'by_player_weekly' => 'Episode downloads by player (for the past week)',
'by_player_yearly' => 'Episode downloads by player (for the past year)',
'by_device_weekly' => 'Episode downloads by device (for the past week)',
'by_os_weekly' => 'Episode downloads by O.S. (for the past week)',
'podcast_by_region' => 'Episode downloads by region (for the past week)',
'unique_daily_listeners' => 'Daily unique listeners',
'unique_monthly_listeners' => 'Monthly unique listeners',
'by_browser' => 'Web pages usage by browser (for the past week)',
'podcast_by_day' => 'Episode daily downloads',
'podcast_by_month' => 'Episode monthly downloads',
'episode_by_day' => 'Episode daily downloads (first 60 days)',
'episode_by_month' => 'Episode monthly downloads',
'episodes_by_day' =>
'5 latest episodes downloads (during their first 60 days)',
'by_country_weekly' => 'Episode downloads by country (for the past week)',
'by_country_yearly' => 'Episode downloads by country (for the past year)',
'by_domain_weekly' => 'Web pages visits by source (for the past week)',
'by_domain_yearly' => 'Web pages visits by source (for the past year)',
'by_entry_page' => 'Web pages visits by landing page (for the past week)',
'podcast_bots' => 'Bots (crawlers)',
'daily_listening_time' => 'Daily cumulative listening time',
'monthly_listening_time' => 'Monthly cumulative listening time',
'by_weekday' => 'By week day (for the past 60 days)',
'by_hour' => 'By time of day (for the past 60 days)',
'podcast_by_bandwidth' => 'Daily used bandwidth (in MB)',
];

View file

@ -1,37 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'your_handle' => 'Votre pseudonyme',
'your_handle_hint' =>
'Entrez le @utilisateur@domaine avec lequel vous voulez interagir.',
'follow' => [
'label' => 'Suivre',
'title' => 'Suivre {actorDisplayName}',
'subtitle' => 'Vous allez suivre :',
'accountNotFound' => 'Le compte na pas pu être trouvé.',
'submit' => 'Poursuivre',
],
'favourite' => [
'title' => 'Mettez la publication de {actorDisplayName} en favori',
'subtitle' => 'Vous allez mettre en favori :',
'submit' => 'Poursuivre',
],
'reblog' => [
'title' => 'Partagez la publication de {actorDisplayName}',
'subtitle' => 'Vous allez partager :',
'submit' => 'Poursuivre',
],
'reply' => [
'title' => 'Répondre à la publication de {actorDisplayName}',
'subtitle' => 'Vous allez répondre à :',
'submit' => 'Poursuivre',
],
];

View file

@ -1,14 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'dashboard' => 'Tableau de bord',
'welcome_message' => 'Bienvenue dans ladministration!',
];

View file

@ -1,44 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'label' => 'Fil dAriane',
config('Admin')
->gateway => 'Accueil',
'podcasts' => 'podcasts',
'episodes' => 'épisodes',
'contributors' => 'contributeurs',
'pages' => 'pages',
'add' => 'ajouter',
'new' => 'créer',
'edit' => 'modifier',
'persons' => 'intervenants',
'publish' => 'publier',
'publish-edit' => 'modifier la publication',
'unpublish' => 'dépublier',
'fediverse' => 'fédiverse',
'block-lists' => 'listes de blocage',
'users' => 'utilisateurs',
'my-account' => 'mon compte',
'change-password' => 'changer le mot de passe',
'import' => 'importer un flux',
'platforms' => 'plateformes',
'social' => 'réseaux sociaux',
'funding' => 'financement',
'analytics' => 'mesures daudience',
'locations' => 'localisations',
'webpages' => 'pages web',
'unique-listeners' => 'auditeurs uniques',
'players' => 'lecteurs',
'listening-time' => 'drée découte',
'time-periods' => 'périodes',
'soundbites' => 'extraits sonores',
'embeddable-player' => 'lecteur intégré',
];

View file

@ -1,51 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
return [
'by_service_weekly' =>
'Téléchargements dépisodes par service (sur la dernière semaine)',
'by_player_weekly' =>
'Téléchargements dépisodes par lecteur (sur la dernière semaine)',
'by_player_yearly' =>
'Téléchargements dépisodes par lecteur (sur la dernière année)',
'by_device_weekly' =>
'Téléchargements dépisodes par appareil (sur la dernière semaine)',
'by_os_weekly' =>
'Téléchargements dépisodes par OS (sur la dernière semaine)',
'podcast_by_region' =>
'Téléchargements dépisodes par région (sur la dernière semaine)',
'unique_daily_listeners' => 'Auditeurs uniques quotidiens',
'unique_monthly_listeners' => 'Auditeurs uniques mensuels',
'by_browser' =>
'Fréquentation des pages web par navigateur (sur la dernière semaine)',
'podcast_by_day' => 'Téléchargements quotidiens dépisodes',
'podcast_by_month' => 'Téléchargements mensuels dépisodes',
'episode_by_day' =>
'Téléchargements quotidiens de lépisode (sur les 60 premiers jours)',
'episode_by_month' => 'Téléchargements mensuels de lépisode',
'episodes_by_day' =>
'Téléchargements des 5 derniers épisodes (sur les 60 premiers jours)',
'by_country_weekly' =>
'Téléchargement dépisodes par pays (sur la dernière semaine)',
'by_country_yearly' =>
'Téléchargement dépisodes par pays (sur la dernière année)',
'by_domain_weekly' =>
'Fréquentation des pages web par origine (sur la dernière semaine)',
'by_domain_yearly' =>
'Fréquentation des pages web par origine (sur la dernière année)',
'by_entry_page' =>
'Fréquentation des pages web par page dentrée (sur la dernière semaine)',
'podcast_bots' => 'Robots (bots)',
'daily_listening_time' => 'Durée quotidienne découte cumulée',
'monthly_listening_time' => 'Durée mensuelle découte cumulée',
'by_weekday' => 'Par jour de la semaine (sur les 60 derniers jours)',
'by_hour' => 'Par heure de la journée (sur les 60 derniers jours)',
'podcast_by_bandwidth' => 'Bande passante quotidienne consommée (en Mo)',
];

View file

@ -11,9 +11,9 @@ declare(strict_types=1);
namespace App\Libraries; namespace App\Libraries;
use App\Entities\Post; use App\Entities\Post;
use Modules\Fediverse\Objects\NoteObject as ActivityPubNoteObject; use Modules\Fediverse\Objects\NoteObject as FediverseNoteObject;
class NoteObject extends ActivityPubNoteObject class NoteObject extends FediverseNoteObject
{ {
/** /**
* @param Post $post * @param Post $post

143
app/Libraries/View.php Normal file
View file

@ -0,0 +1,143 @@
<?php
declare(strict_types=1);
namespace App\Libraries;
use CodeIgniter\Debug\Toolbar\Collectors\Views;
use CodeIgniter\Filters\DebugToolbar;
use CodeIgniter\View\Exceptions\ViewException;
use CodeIgniter\View\View as CodeIgniterView;
use Config\Toolbar;
class View extends CodeIgniterView
{
/**
* Builds the output based upon a file name and any
* data that has already been set.
*
* Valid $options:
* - cache Number of seconds to cache for
* - cache_name Name to use for cache
*
* @param string $view File name of the view source
* @param array<string, mixed>|null $options Reserved for 3rd-party uses since
* it might be needed to pass additional info
* to other template engines.
* @param bool|null $saveData If true, saves data for subsequent calls,
* if false, cleans the data after displaying,
* if null, uses the config setting.
*/
public function render(string $view, ?array $options = null, ?bool $saveData = null): string
{
$this->renderVars['start'] = microtime(true);
// Store the results here so even if
// multiple views are called in a view, it won't
// clean it unless we mean it to.
$saveData = $saveData ?? $this->saveData;
$fileExt = pathinfo($view, PATHINFO_EXTENSION);
$realPath = $fileExt === '' ? $view . '.php' : $view; // allow Views as .html, .tpl, etc (from CI3)
$this->renderVars['view'] = $realPath;
$this->renderVars['options'] = $options ?? [];
// Was it cached?
if (isset($this->renderVars['options']['cache'])) {
$cacheName = $this->renderVars['options']['cache_name'] ?? str_replace(
'.php',
'',
$this->renderVars['view']
);
$cacheName = str_replace(['\\', '/'], '', $cacheName);
$this->renderVars['cacheName'] = $cacheName;
if ($output = cache($this->renderVars['cacheName'])) {
$this->logPerformance($this->renderVars['start'], microtime(true), $this->renderVars['view']);
return $output;
}
}
$this->renderVars['file'] = $this->viewPath . $this->renderVars['view'];
if (! is_file($this->renderVars['file'])) {
$this->renderVars['file'] = $this->loader->locateFile(
$this->renderVars['view'],
'Views',
$fileExt === '' ? 'php' : $fileExt
);
}
// locateFile will return an empty string if the file cannot be found.
if ($this->renderVars['file'] === '') {
throw ViewException::forInvalidFile($this->renderVars['view']);
}
// Make our view data available to the view.
$this->tempData = $this->tempData ?? $this->data;
if ($saveData) {
$this->data = $this->tempData;
}
// Save current vars
$renderVars = $this->renderVars;
$output = (function (): string {
/** @phpstan-ignore-next-line */
extract($this->tempData);
ob_start();
include $this->renderVars['file'];
return ob_get_clean() ?: '';
})();
// Get back current vars
$this->renderVars = $renderVars;
// When using layouts, the data has already been stored
// in $this->sections, and no other valid output
// is allowed in $output so we'll overwrite it.
if ($this->layout !== null && $this->sectionStack === []) {
$layoutView = $this->layout;
$this->layout = null;
// Save current vars
$renderVars = $this->renderVars;
$output = $this->render($layoutView, $options, $saveData);
// Get back current vars
$this->renderVars = $renderVars;
}
$output = service('components')
->setCurrentView($view)
->render($output);
$this->logPerformance($this->renderVars['start'], microtime(true), $this->renderVars['view']);
if (($this->debug && (! isset($options['debug']) || $options['debug'] === true))
&& in_array(DebugToolbar::class, service('filters')->getFiltersClass()['after'], true)
) {
$toolbarCollectors = config(Toolbar::class)->collectors;
if (in_array(Views::class, $toolbarCollectors, true)) {
// Clean up our path names to make them a little cleaner
$this->renderVars['file'] = clean_path($this->renderVars['file']);
$this->renderVars['file'] = ++$this->viewsCount . ' ' . $this->renderVars['file'];
$output = '<!-- DEBUG-VIEW START ' . $this->renderVars['file'] . ' -->' . PHP_EOL
. $output . PHP_EOL
. '<!-- DEBUG-VIEW ENDED ' . $this->renderVars['file'] . ' -->' . PHP_EOL;
}
}
// Should we cache?
if (isset($this->renderVars['options']['cache'])) {
cache()->save($this->renderVars['cacheName'], $output, (int) $this->renderVars['options']['cache']);
}
$this->tempData = null;
return $output;
}
}

View file

@ -6,6 +6,8 @@ namespace ViewComponents;
class Component implements ComponentInterface class Component implements ComponentInterface
{ {
protected string $slot = '';
/** /**
* @var array<string, string> * @var array<string, string>
*/ */
@ -14,21 +16,33 @@ class Component implements ComponentInterface
]; ];
/** /**
* @param array<string, mixed> $properties
* @param array<string, string> $attributes * @param array<string, string> $attributes
*/ */
public function __construct( public function __construct(array $attributes)
protected array $properties, {
array $attributes if ($attributes !== []) {
) { $this->hydrate($attributes);
// overwrite default properties if set
foreach ($properties as $key => $value) {
$this->{$key} = $value;
} }
// overwrite default attributes if set
$this->attributes = array_merge($this->attributes, $attributes); $this->attributes = array_merge($this->attributes, $attributes);
} }
/**
* @param array<string, string> $attributes
*/
public function hydrate(array $attributes): void
{
foreach ($attributes as $name => $value) {
$method = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $name)));
if (is_callable([$this, $method])) {
$this->{$method}($value);
} else {
$this->{$name} = $value;
}
}
}
public function render(): string public function render(): string
{ {
return static::class . ': RENDER METHOD NOT IMPLEMENTED'; return static::class . ': RENDER METHOD NOT IMPLEMENTED';

View file

@ -1,86 +0,0 @@
<?php
declare(strict_types=1);
namespace ViewComponents;
use ViewComponents\Config\ViewComponents;
use ViewComponents\Exceptions\ComponentNotFoundException;
class ComponentLoader
{
protected ViewComponents $config;
protected string $name;
/**
* @var array<string, mixed>
*/
protected array $properties = [];
/**
* @var array<string, string>
*/
protected array $attributes = [];
public function __construct()
{
$this->config = config('ViewComponents');
}
public function __get(string $property): mixed
{
if (property_exists($this, $property)) {
return $this->{$property};
}
}
// @phpstan-ignore-next-line
public function __set(string $property, mixed $value)
{
if (property_exists($this, $property)) {
$this->{$property} = $value;
}
return $this;
}
/**
* @throws ComponentNotFoundException
*/
public function load(): string
{
// first, check if there exists a component class to load in class components path
if (file_exists("{$this->config->classComponentsPath}/{$this->name}.php")) {
return $this->loadComponentClass();
}
// check for the existence of a view file if no component class has been found
// component view files are camel case
$camelCaseName = strtolower(preg_replace('~(?<!^)(?<!\/)[A-Z]~', '_$0', $this->name) ?? '');
if (file_exists("{$this->config->componentsViewPath}/{$camelCaseName}.php")) {
return $this->loadComponentView($camelCaseName);
}
throw new ComponentNotFoundException("Could not find component \"{$this->name}\"");
}
private function loadComponentClass(): string
{
$classComponentsNamespace = $this->config->classComponentsNamespace;
$namespacedName = str_replace('/', '\\', $this->name);
$componentClassNamespace = "{$classComponentsNamespace}\\{$namespacedName}";
$component = new $componentClassNamespace($this->properties, $this->attributes);
return $component->render();
}
private function loadComponentView(string $name): string
{
$viewData = [...$this->properties, ...$this->attributes];
return view("components/{$name}", $viewData);
}
}

View file

@ -0,0 +1,264 @@
<?php
declare(strict_types=1);
namespace ViewComponents;
use RuntimeException;
use ViewComponents\Config\ViewComponents;
/**
* Borrowed and adapted from https://github.com/lonnieezell/Bonfire2/
*/
class ComponentRenderer
{
protected ViewComponents $config;
/**
* File name of the view source
*/
protected string $currentView;
public function __construct()
{
$this->config = config('ViewComponents');
}
public function setCurrentView(string $view): self
{
$this->currentView = $view;
return $this;
}
public function render(string $output): string
{
// Try to locate any custom tags, with PascalCase names like: Button, Label, etc.
service('timer')
->start('self-closing');
$output = $this->renderSelfClosingTags($output);
service('timer')
->stop('self-closing');
service('timer')
->start('paired-tags');
$output = $this->renderPairedTags($output);
service('timer')
->stop('paired-tags');
return $output;
}
/**
* Finds and renders self-closing tags, i.e. <Foo />
*/
private function renderSelfClosingTags(string $output): string
{
// Pattern borrowed and adapted from Laravel's ComponentTagCompiler
// Should match any Component tags <Component />
$pattern = "/
<
\s*
(?<name>[A-Z][A-Za-z0-9\.]*?)
\s*
(?<attributes>
(?:
\s+
(?:
(?:
\{\{\s*\\\$attributes(?:[^}]+?)?\s*\}\}
)
|
(?:
[\w\-:.@]+
(
=
(?:
\\\"[^\\\"]*\\\"
|
\'[^\']*\'
|
[^\'\\\"=<>]+
)
)?
)
)
)*
\s*
)
\/>
/x";
/*
$matches[0] = full tags matched
$matches[name] = tag name
$matches[attributes] = array of attribute string (class="foo")
*/
return preg_replace_callback($pattern, function ($match): string {
$view = $this->locateView($match['name']);
$attributes = $this->parseAttributes($match['attributes']);
$component = $this->factory($match['name'], $view, $attributes);
return $component instanceof Component
? $component->render()
: $this->renderView($view, $attributes);
}, $output) ?? '';
}
private function renderPairedTags(string $output): string
{
$pattern = '/<\s*(?<name>[A-Z][A-Za-z0-9\.]*?)(?<attributes>[\s\S\=\'\"]*)>(?<slot>.*)<\/\s*\1\s*>/uUsm';
/*
$matches[0] = full tags matched and all of its content
$matches[name] = pascal cased tag name
$matches[attributes] = string of tag attributes (class="foo")
$matches[slot] = the content inside the tags
*/
return preg_replace_callback($pattern, function ($match): string {
$view = $this->locateView($match['name']);
$attributes = $this->parseAttributes($match['attributes']);
$attributes['slot'] = $match['slot'];
$component = $this->factory($match['name'], $view, $attributes);
return $component instanceof Component
? $component->render()
: $this->renderView($view, $attributes);
}, $output) ?? (string) preg_last_error();
}
/**
* Locate the view file used to render the component. The file's name must match the name of the component.
*
* Looks for class and view file components in the current module before checking the default app module
*/
private function locateView(string $name): string
{
// TODO: Is there a better way to locate components local to current module?
$modulesToDiscover = [APPPATH];
foreach (config('Autoload')->psr4 as $namespace => $path) {
if (str_starts_with($this->currentView, $namespace)) {
array_unshift($modulesToDiscover, $path);
}
}
$namePath = str_replace('.', '/', $name);
foreach ($modulesToDiscover as $basePath) {
// Look for a class component first
$filePath = $basePath . $this->config->classComponentsPath . '/' . $namePath . '.php';
if (is_file($filePath)) {
return $filePath;
}
$camelCaseName = strtolower(preg_replace('~(?<!^)(?<!\/)[A-Z]~', '_$0', $namePath) ?? '');
$filePath = $basePath . $this->config->viewFileComponentsPath . '/' . $camelCaseName . '.php';
if (is_file($filePath)) {
return $filePath;
}
}
throw new RuntimeException("View not found for component: {$name}");
}
/**
* Parses a string to grab any key/value pairs, HTML attributes.
*
* @return array<string, string>
*/
private function parseAttributes(string $attributeString): array
{
// Pattern borrowed from Laravel's ComponentTagCompiler
$pattern = '/
(?<attribute>[\w\-:.@]+)
(
=
(?<value>
(
\"[^\"]+\"
|
\'[^\']+\'
|
\\\'[^\\\']+\\\'
|
[^\s>]+
)
)
)?
/x';
if (! preg_match_all($pattern, $attributeString, $matches, PREG_SET_ORDER)) {
return [];
}
$attributes = [];
/**
* @var array<string, string> $match
*/
foreach ($matches as $match) {
$attributes[$match['attribute']] = $this->stripQuotes($match['value']);
}
return $attributes;
}
/**
* Attempts to locate the view and/or class that will be used to render this component. By default, the only thing
* that is needed is a view, but a Component class can also be found if more power is needed.
*
* If a class is used, the name is expected to be <viewName>Component.php
*
* @param array<string, mixed> $attributes
*/
private function factory(string $name, string $view, array $attributes): ?Component
{
// Locate the class in the same folder as the view
$class = $name . '.php';
$filePath = str_replace($name . '.php', $class, $view);
if ($filePath === '') {
return null;
}
if (! file_exists($filePath)) {
return null;
}
$className = service('locator')
->getClassname($filePath);
/** @phpstan-ignore-next-line */
if (! class_exists($className)) {
return null;
}
return new $className($attributes);
}
/**
* Renders the view when no corresponding class has been found.
*
* @param array<string, string> $data
*/
private function renderView(string $view, array $data): string
{
return (function (string $view, $data): string {
/** @phpstan-ignore-next-line */
extract($data);
ob_start();
eval('?>' . file_get_contents($view));
return ob_get_clean() ?: '';
})($view, $data);
}
/**
* Removes surrounding quotes from a string.
*/
private function stripQuotes(string $string): string
{
return trim($string, "\'\"");
}
}

View file

@ -5,7 +5,7 @@ declare(strict_types=1);
namespace ViewComponents\Config; namespace ViewComponents\Config;
use CodeIgniter\Config\BaseService; use CodeIgniter\Config\BaseService;
use ViewComponents\ComponentLoader; use ViewComponents\ComponentRenderer;
/** /**
* Services Configuration file. * Services Configuration file.
@ -19,12 +19,12 @@ use ViewComponents\ComponentLoader;
*/ */
class Services extends BaseService class Services extends BaseService
{ {
public static function viewcomponents(bool $getShared = true): ComponentLoader public static function components(bool $getShared = true): ComponentRenderer
{ {
if ($getShared) { if ($getShared) {
return self::getSharedInstance('viewcomponents'); return self::getSharedInstance('components');
} }
return new ComponentLoader(); return new ComponentRenderer();
} }
} }

View file

@ -8,9 +8,7 @@ use CodeIgniter\Config\BaseConfig;
class ViewComponents extends BaseConfig class ViewComponents extends BaseConfig
{ {
public string $classComponentsNamespace = APP_NAMESPACE . '\View\Components'; public string $classComponentsPath = 'View/Components';
public string $classComponentsPath = APPPATH . 'View/Components'; public string $viewFileComponentsPath = 'Views/components';
public string $componentsViewPath = APPPATH . 'Views/components';
} }

View file

@ -1,28 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
if (! function_exists('component')) {
/**
* Loads the specified class or view file component in the parameters
*
* @param array<string, array<string, mixed>> $properties
* @param array<string, array<string, mixed>> $attributes
*/
function component(string $name, array $properties = [], array $attributes = []): string
{
$componentLoader = service('viewcomponents');
$componentLoader->name = $name;
$componentLoader->properties = $properties;
$componentLoader->attributes = $attributes;
return $componentLoader->load();
}
}

View file

@ -11,9 +11,9 @@ declare(strict_types=1);
namespace App\Models; namespace App\Models;
use App\Entities\Actor; use App\Entities\Actor;
use Modules\Fediverse\Models\ActorModel as ActivityPubActorModel; use Modules\Fediverse\Models\ActorModel as FediverseActorModel;
class ActorModel extends ActivityPubActorModel class ActorModel extends FediverseActorModel
{ {
/** /**
* @var string * @var string

View file

@ -141,13 +141,13 @@ class EpisodeCommentModel extends UuidModel
]) ])
->getCompiledSelect(); ->getCompiledSelect();
$episodePostsReplies = $this->db->table('activitypub_posts') $episodePostsReplies = $this->db->table(config('Fediverse')->tablesPrefix . 'posts')
->select( ->select(
'id, uri, episode_id, actor_id, in_reply_to_id, message, message_html, favourites_count as likes_count, replies_count, published_at as created_at, created_by, 1 as is_from_post' 'id, uri, episode_id, actor_id, in_reply_to_id, message, message_html, favourites_count as likes_count, replies_count, published_at as created_at, created_by, 1 as is_from_post'
) )
->whereIn('in_reply_to_id', function (BaseBuilder $builder) use (&$episodeId): BaseBuilder { ->whereIn('in_reply_to_id', function (BaseBuilder $builder) use (&$episodeId): BaseBuilder {
return $builder->select('id') return $builder->select('id')
->from('activitypub_posts') ->from(config('Fediverse')->tablesPrefix . 'posts')
->where('episode_id', $episodeId); ->where('episode_id', $episodeId);
}) })
->where('`created_at` <= NOW()', null, false) ->where('`created_at` <= NOW()', null, false)

View file

@ -11,9 +11,9 @@ declare(strict_types=1);
namespace App\Models; namespace App\Models;
use App\Entities\Post; use App\Entities\Post;
use Modules\Fediverse\Models\PostModel as ActivityPubPostModel; use Modules\Fediverse\Models\PostModel as FediversePostModel;
class PostModel extends ActivityPubPostModel class PostModel extends FediversePostModel
{ {
/** /**
* @var string * @var string

View file

@ -25,7 +25,7 @@ class Button extends Component
public function render(): string public function render(): string
{ {
$baseClass = $baseClass =
'inline-flex items-center font-semibold shadow-xs rounded-full focus:outline-none focus:ring'; 'inline-flex items-center justify-center font-semibold shadow-xs rounded-full focus:outline-none focus:ring';
$variantClass = [ $variantClass = [
'default' => 'text-black bg-gray-300 hover:bg-gray-400', 'default' => 'text-black bg-gray-300 hover:bg-gray-400',
@ -73,11 +73,11 @@ class Button extends Component
} }
if ($this->iconLeft !== '') { if ($this->iconLeft !== '') {
$this->label = icon($this->iconLeft, 'mr-2') . $this->label; $this->slot = '<Icon glyph="' . $this->iconLeft . '" class="mr-2" />' . $this->slot;
} }
if ($this->iconRight !== '') { if ($this->iconRight !== '') {
$this->label .= icon($this->iconRight, 'ml-2'); $this->slot .= '<Icon glyph="' . $this->iconRight . '" class="ml-2" />';
} }
if ($this->uri !== '') { if ($this->uri !== '') {
@ -91,8 +91,8 @@ class Button extends Component
]; ];
$attributes = stringify_attributes(array_merge($defaultButtonAttributes, $this->attributes)); $attributes = stringify_attributes(array_merge($defaultButtonAttributes, $this->attributes));
return <<<CODE_SAMPLE return <<<HTML
<button class="{$buttonClass}" {$attributes}>{$this->label}</button> <button class="{$buttonClass}" {$attributes}>{$this->slot}</button>
CODE_SAMPLE; HTML;
} }
} }

View file

@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
namespace App\View\Components\Forms;
use ViewComponents\Component;
class Input extends Component
{
public function render(): string
{
return '';
}
}

View file

@ -14,16 +14,18 @@ class Label extends Component
protected array $attributes = [ protected array $attributes = [
'for' => '', 'for' => '',
'name' => '', 'name' => '',
'value' => '',
'class' => '', 'class' => '',
]; ];
protected string $text = '';
protected string $hint = ''; protected string $hint = '';
protected bool $isOptional = false; protected bool $isOptional = false;
public function setIsOptional(string $value): void
{
$this->isOptional = $value === 'true';
}
public function render(): string public function render(): string
{ {
$labelClass = $this->attributes['class']; $labelClass = $this->attributes['class'];
@ -35,8 +37,8 @@ class Label extends Component
')</small>' : ''; ')</small>' : '';
$hint = $this->hint !== '' ? hint_tooltip($this->hint, 'ml-1') : ''; $hint = $this->hint !== '' ? hint_tooltip($this->hint, 'ml-1') : '';
return <<<CODE_SAMPLE return <<<HTML
<label class="{$labelClass}" {$attributes}>{$this->text}{$optionalText}{$hint}</label> <label class="{$labelClass}" {$attributes}>{$this->slot}{$optionalText}{$hint}</label>
CODE_SAMPLE; HTML;
} }
} }

View file

@ -8,8 +8,6 @@ use ViewComponents\Component;
class MarkdownEditor extends Component class MarkdownEditor extends Component
{ {
protected string $content = '';
public function render(): string public function render(): string
{ {
$editorClass = 'w-full flex flex-col bg-white border border-gray-500 focus-within:ring-1 focus-within:ring-blue-600'; $editorClass = 'w-full flex flex-col bg-white border border-gray-500 focus-within:ring-1 focus-within:ring-blue-600';
@ -64,7 +62,7 @@ class MarkdownEditor extends Component
'</markdown-toolbar>' . '</markdown-toolbar>' .
'</header>' . '</header>' .
'<div class="relative">' . '<div class="relative">' .
form_textarea($this->attributes, $this->content) . form_textarea($this->attributes, $this->slot) .
'<markdown-preview for="' . $this->attributes['id'] . '" class="absolute top-0 left-0 hidden w-full h-full p-2 overflow-y-auto prose bg-gray-50" showClass="bg-white"></markdown-preview>' . '<markdown-preview for="' . $this->attributes['id'] . '" class="absolute top-0 left-0 hidden w-full h-full p-2 overflow-y-auto prose bg-gray-50" showClass="bg-white"></markdown-preview>' .
'</div>' . '</div>' .
'<footer class="flex px-2 py-1 bg-gray-100 border-t">' . '<footer class="flex px-2 py-1 bg-gray-100 border-t">' .

View file

@ -18,6 +18,16 @@ class MultiSelect extends Component
*/ */
protected array $selected = []; protected array $selected = [];
public function setOptions(string $value): void
{
$this->options = json_decode(html_entity_decode($value), true);
}
public function setSelected(string $selected): void
{
$this->selected = json_decode($selected);
}
public function render(): string public function render(): string
{ {
$defaultAttributes = [ $defaultAttributes = [

View file

@ -29,21 +29,30 @@ class Toggler extends Component
protected bool $checked = false; protected bool $checked = false;
public function setChecked(string $value): void
{
$this->checked = $value !== '';
}
public function render(): string public function render(): string
{ {
unset($this->attributes['checked']);
$wrapperClass = $this->attributes['class']; $wrapperClass = $this->attributes['class'];
unset($this->attributes['class']); unset($this->attributes['class']);
$this->attributes['class'] = 'form-switch'; $this->attributes['class'] = 'form-switch';
helper('form');
$checkbox = form_checkbox($this->attributes, $this->attributes['value'], $this->checked); $checkbox = form_checkbox($this->attributes, $this->attributes['value'], $this->checked);
$hint = $this->hint !== '' ? hint_tooltip(lang('Podcast.form.lock_hint'), 'ml-1') : ''; $hint = $this->hint === '' ? '' : hint_tooltip($this->hint, 'ml-1');
return <<<CODE_SAMPLE return <<<HTML
<label class="relative inline-flex items-center {$wrapperClass}"> <label class="relative inline-flex items-center {$wrapperClass}">
{$checkbox} {$checkbox}
<span class="form-switch-slider"></span> <span class="form-switch-slider"></span>
<span class="ml-2">{$this->label}{$hint}</span> <span class="ml-2">{$this->slot}{$hint}</span>
</label> </label>
CODE_SAMPLE; HTML;
} }
} }

View file

@ -8,23 +8,22 @@ use ViewComponents\Component;
class XMLEditor extends Component class XMLEditor extends Component
{ {
protected string $content = '';
/** /**
* @var array<string, string> * @var array<string, string>
*/ */
protected array $attributes = [ protected array $attributes = [
'slot' => 'textarea',
'rows' => '5', 'rows' => '5',
'class' => 'textarea', 'class' => 'textarea',
]; ];
public function render(): string public function render(): string
{ {
$textarea = form_textarea($this->attributes, $this->content); $content = $this->slot;
$this->attributes['slot'] = 'textarea';
$textarea = form_textarea($this->attributes, $content);
return <<<CODE_SAMPLE return <<<HTML
<xml-editor>{$textarea}</time-ago> <xml-editor>{$textarea}</time-ago>
CODE_SAMPLE; HTML;
} }
} }

View file

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\View\Components; namespace App\View\Components;
use Exception;
use ViewComponents\Component; use ViewComponents\Component;
class Icon extends Component class Icon extends Component
@ -12,16 +13,16 @@ class Icon extends Component
public function render(): string public function render(): string
{ {
$svgContents = file_get_contents('assets/icons/' . $this->glyph . '.svg'); try {
$svgContents = file_get_contents('assets/icons/' . $this->glyph . '.svg');
if ($svgContents) { } catch (Exception) {
if ($this->attributes['class'] !== '') { return '□';
$svgContents = str_replace('<svg', '<svg class="' . $this->attributes['class'] . '"', $svgContents);
}
return $svgContents;
} }
return '□'; if ($this->attributes['class'] !== '') {
$svgContents = str_replace('<svg', '<svg class="' . $this->attributes['class'] . '"', $svgContents);
}
return $svgContents;
} }
} }

View file

@ -19,11 +19,7 @@
Sorry! Cannot seem to find the page you were looking for. Sorry! Cannot seem to find the page you were looking for.
<?php endif; ?> <?php endif; ?>
</p> </p>
<button class="inline-flex items-center justify-center px-3 py-1 text-sm font-semibold text-white rounded-full shadow-xs focus:outline-none focus:ring md:px-4 md:py-2 md:text-base bg-pine-700 hover:bg-pine-800"><?= lang('Common.go_back') ?></button>
<?= button(lang('Common.go_back'), previous_url(), [
'variant' => 'primary',
'iconLeft' => 'arrow-left',
]) ?>
</body> </body>
</html> </html>

View file

@ -30,7 +30,7 @@
<body class="flex flex-col min-h-screen bg-pine-50"> <body class="flex flex-col min-h-screen bg-pine-50">
<header class="flex flex-col items-center mb-8"> <header class="flex flex-col items-center mb-8">
<h1 class="w-full pt-8 pb-32 text-center text-white bg-pine-900"><?= lang( <h1 class="w-full pt-8 pb-32 text-center text-white bg-pine-900"><?= lang(
'ActivityPub.follow.subtitle', 'Fediverse.follow.subtitle',
) ?></h1> ) ?></h1>
<div class="flex flex-col w-full max-w-xs -mt-24 overflow-hidden bg-white shadow rounded-xl"> <div class="flex flex-col w-full max-w-xs -mt-24 overflow-hidden bg-white shadow rounded-xl">
<img src="<?= $actor->cover_image_url ?>" alt="" class="object-cover w-full h-32 bg-pine-800" /> <img src="<?= $actor->cover_image_url ?>" alt="" class="object-cover w-full h-32 bg-pine-800" />
@ -54,10 +54,10 @@
<?= view('_message_block') ?> <?= view('_message_block') ?>
<?= form_label( <?= form_label(
lang('ActivityPub.your_handle'), lang('Fediverse.your_handle'),
'handle', 'handle',
[], [],
lang('ActivityPub.your_handle_hint'), lang('Fediverse.your_handle_hint'),
) ?> ) ?>
<?= form_input([ <?= form_input([
'id' => 'handle', 'id' => 'handle',
@ -68,7 +68,7 @@
]) ?> ]) ?>
<?= button( <?= button(
lang('ActivityPub.follow.submit'), lang('Fediverse.follow.submit'),
'', '',
['variant' => 'primary'], ['variant' => 'primary'],
['type' => 'submit', 'class' => 'self-end'], ['type' => 'submit', 'class' => 'self-end'],

View file

@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" type="image/png" href="/favicon.ico" /> <link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<title><?= lang('ActivityPub.' . $action . '.title', [ <title><?= lang('Fediverse.' . $action . '.title', [
'actorDisplayName' => $post->actor->display_name, 'actorDisplayName' => $post->actor->display_name,
]) ?></title> ]) ?></title>
<meta name="description" content="<?= $post->message ?>"/> <meta name="description" content="<?= $post->message ?>"/>
<meta property="og:title" content="<?= lang( <meta property="og:title" content="<?= lang(
'ActivityPub.' . $action . '.title', 'Fediverse.' . $action . '.title',
[ [
'actorDisplayName' => $post->actor->display_name, 'actorDisplayName' => $post->actor->display_name,
], ],
@ -31,7 +31,7 @@
<body class="min-h-screen mx-auto bg-pine-50"> <body class="min-h-screen mx-auto bg-pine-50">
<header class="pt-8 pb-32 bg-pine-900"> <header class="pt-8 pb-32 bg-pine-900">
<h1 class="text-lg font-semibold text-center text-white"><?= lang( <h1 class="text-lg font-semibold text-center text-white"><?= lang(
'ActivityPub.' . $action . '.subtitle', 'Fediverse.' . $action . '.subtitle',
) ?></h1> ) ?></h1>
</header> </header>
<main class="flex-1 max-w-xl px-4 pb-8 mx-auto -mt-24"> <main class="flex-1 max-w-xl px-4 pb-8 mx-auto -mt-24">
@ -45,10 +45,10 @@
<?= view('_message_block') ?> <?= view('_message_block') ?>
<?= form_label( <?= form_label(
lang('ActivityPub.your_handle'), lang('Fediverse.your_handle'),
'handle', 'handle',
[], [],
lang('ActivityPub.your_handle_hint'), lang('Fediverse.your_handle_hint'),
) ?> ) ?>
<?= form_input([ <?= form_input([
'id' => 'handle', 'id' => 'handle',
@ -59,7 +59,7 @@
]) ?> ]) ?>
<?= button( <?= button(
lang('ActivityPub.' . $action . '.submit'), lang('Fediverse.' . $action . '.submit'),
'', '',
['variant' => 'primary'], ['variant' => 'primary'],
['type' => 'submit', 'class' => 'self-end'], ['type' => 'submit', 'class' => 'self-end'],

View file

@ -23,16 +23,16 @@
"essence/essence": "^3.5.4" "essence/essence": "^3.5.4"
}, },
"require-dev": { "require-dev": {
"mikey179/vfsstream": "^1.6.9", "mikey179/vfsstream": "^v1.6.8",
"phpunit/phpunit": "^9.5.8", "phpunit/phpunit": "^9.5.4",
"rector/rector": "^0.11.46", "rector/rector": "^0.11.5",
"captainhook/captainhook": "^5.10.1", "captainhook/captainhook": "^5.10.0",
"phpstan/phpstan": "^0.12.94", "phpstan/phpstan": "^0.12.85",
"phpstan/extension-installer": "^1.1.0", "phpstan/extension-installer": "^1.1.0",
"symplify/phpstan-extensions": "^9.4.27", "rector/rector-phpstan-rules": "^0.2.9",
"symplify/easy-coding-standard": "^9.4.27", "symplify/phpstan-extensions": "^v9.3.12",
"symplify/coding-standard": "^9.4.27", "symplify/easy-coding-standard": "^v9.3.12",
"rector/phpstan-rules": "^0.3.4" "symplify/coding-standard": "^v9.3.12"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
@ -59,8 +59,8 @@
"@php vendor/opawg/user-agents-php/src/UserAgentsGenerate.php > vendor/opawg/user-agents-php/src/UserAgents.php", "@php vendor/opawg/user-agents-php/src/UserAgentsGenerate.php > vendor/opawg/user-agents-php/src/UserAgents.php",
"@php vendor/opawg/user-agents-php/src/UserAgentsRSSGenerate.php > vendor/opawg/user-agents-php/src/UserAgentsRSS.php", "@php vendor/opawg/user-agents-php/src/UserAgentsRSSGenerate.php > vendor/opawg/user-agents-php/src/UserAgentsRSS.php",
"@php vendor/podlibre/ipcat/IpDbGenerate.php > vendor/podlibre/ipcat/IpDb.php", "@php vendor/podlibre/ipcat/IpDbGenerate.php > vendor/podlibre/ipcat/IpDb.php",
"@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > app/Language/en/PersonsTaxonomy.php", "@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > modules/Admin/Language/en/PersonsTaxonomy.php",
"@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-fr.json > app/Language/fr/PersonsTaxonomy.php", "@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-fr.json > modules/Admin/Language/fr/PersonsTaxonomy.php",
"@php vendor/podlibre/podcast-namespace/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/podlibre/podcast-namespace/src/ReversedTaxonomy.php" "@php vendor/podlibre/podcast-namespace/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/podlibre/podcast-namespace/src/ReversedTaxonomy.php"
], ],
"post-update-cmd": [ "post-update-cmd": [
@ -68,8 +68,8 @@
"@php vendor/opawg/user-agents-php/src/UserAgentsGenerate.php > vendor/opawg/user-agents-php/src/UserAgents.php", "@php vendor/opawg/user-agents-php/src/UserAgentsGenerate.php > vendor/opawg/user-agents-php/src/UserAgents.php",
"@php vendor/opawg/user-agents-php/src/UserAgentsRSSGenerate.php > vendor/opawg/user-agents-php/src/UserAgentsRSS.php", "@php vendor/opawg/user-agents-php/src/UserAgentsRSSGenerate.php > vendor/opawg/user-agents-php/src/UserAgentsRSS.php",
"@php vendor/podlibre/ipcat/IpDbGenerate.php > vendor/podlibre/ipcat/IpDb.php", "@php vendor/podlibre/ipcat/IpDbGenerate.php > vendor/podlibre/ipcat/IpDb.php",
"@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > app/Language/en/PersonsTaxonomy.php", "@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > modules/Admin/Language/en/PersonsTaxonomy.php",
"@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-fr.json > app/Language/fr/PersonsTaxonomy.php", "@php vendor/podlibre/podcast-namespace/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-fr.json > modules/Admin/Language/fr/PersonsTaxonomy.php",
"@php vendor/podlibre/podcast-namespace/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/podlibre/podcast-namespace/src/ReversedTaxonomy.php" "@php vendor/podlibre/podcast-namespace/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/podlibre/podcast-namespace/src/ReversedTaxonomy.php"
] ]
}, },

1573
composer.lock generated
View file

@ -66,12 +66,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/codeigniter4/CodeIgniter4.git", "url": "https://github.com/codeigniter4/CodeIgniter4.git",
"reference": "5f09c247320c966f12a889a0821684daeb82f9bb" "reference": "995c51f383844bc44a607026ea6ab85b06c7e87e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/codeigniter4/CodeIgniter4/zipball/5f09c247320c966f12a889a0821684daeb82f9bb", "url": "https://api.github.com/repos/codeigniter4/CodeIgniter4/zipball/995c51f383844bc44a607026ea6ab85b06c7e87e",
"reference": "5f09c247320c966f12a889a0821684daeb82f9bb", "reference": "995c51f383844bc44a607026ea6ab85b06c7e87e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -80,7 +80,7 @@
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"kint-php/kint": "^3.3", "kint-php/kint": "^3.3",
"laminas/laminas-escaper": "^2.8", "laminas/laminas-escaper": "^2.6",
"php": "^7.3 || ^8.0", "php": "^7.3 || ^8.0",
"psr/log": "^1.1" "psr/log": "^1.1"
}, },
@ -90,10 +90,10 @@
"mikey179/vfsstream": "^1.6", "mikey179/vfsstream": "^1.6",
"nexusphp/cs-config": "^3.1", "nexusphp/cs-config": "^3.1",
"nexusphp/tachycardia": "^1.0", "nexusphp/tachycardia": "^1.0",
"phpstan/phpstan": "^0.12.91", "phpstan/phpstan": "0.12.88",
"phpunit/phpunit": "^9.1", "phpunit/phpunit": "^9.1",
"predis/predis": "^1.1", "predis/predis": "^1.1",
"rector/rector": "0.11.46", "rector/rector": "0.11.16",
"symplify/package-builder": "^9.3" "symplify/package-builder": "^9.3"
}, },
"suggest": { "suggest": {
@ -135,7 +135,7 @@
"slack": "https://codeigniterchat.slack.com", "slack": "https://codeigniterchat.slack.com",
"issues": "https://github.com/codeigniter4/CodeIgniter4/issues" "issues": "https://github.com/codeigniter4/CodeIgniter4/issues"
}, },
"time": "2021-08-09T17:55:41+00:00" "time": "2021-06-10T06:40:05+00:00"
}, },
{ {
"name": "composer/ca-bundle", "name": "composer/ca-bundle",
@ -634,16 +634,16 @@
}, },
{ {
"name": "laminas/laminas-escaper", "name": "laminas/laminas-escaper",
"version": "2.8.0", "version": "2.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laminas/laminas-escaper.git", "url": "https://github.com/laminas/laminas-escaper.git",
"reference": "2d6dce99668b413610e9544183fa10392437f542" "reference": "5e04bc5ae5990b17159d79d331055e2c645e5cc5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/2d6dce99668b413610e9544183fa10392437f542", "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/5e04bc5ae5990b17159d79d331055e2c645e5cc5",
"reference": "2d6dce99668b413610e9544183fa10392437f542", "reference": "5e04bc5ae5990b17159d79d331055e2c645e5cc5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -654,7 +654,7 @@
"zendframework/zend-escaper": "^2.6.1" "zendframework/zend-escaper": "^2.6.1"
}, },
"require-dev": { "require-dev": {
"laminas/laminas-coding-standard": "~2.3.0", "laminas/laminas-coding-standard": "~1.0.0",
"phpunit/phpunit": "^9.3", "phpunit/phpunit": "^9.3",
"psalm/plugin-phpunit": "^0.12.2", "psalm/plugin-phpunit": "^0.12.2",
"vimeo/psalm": "^3.16" "vimeo/psalm": "^3.16"
@ -688,20 +688,20 @@
"type": "community_bridge" "type": "community_bridge"
} }
], ],
"time": "2021-06-26T14:26:08+00:00" "time": "2020-11-17T21:26:43+00:00"
}, },
{ {
"name": "laminas/laminas-zendframework-bridge", "name": "laminas/laminas-zendframework-bridge",
"version": "1.3.0", "version": "1.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laminas/laminas-zendframework-bridge.git", "url": "https://github.com/laminas/laminas-zendframework-bridge.git",
"reference": "13af2502d9bb6f7d33be2de4b51fb68c6cdb476e" "reference": "6cccbddfcfc742eb02158d6137ca5687d92cee32"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/13af2502d9bb6f7d33be2de4b51fb68c6cdb476e", "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/6cccbddfcfc742eb02158d6137ca5687d92cee32",
"reference": "13af2502d9bb6f7d33be2de4b51fb68c6cdb476e", "reference": "6cccbddfcfc742eb02158d6137ca5687d92cee32",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -741,20 +741,20 @@
"type": "community_bridge" "type": "community_bridge"
} }
], ],
"time": "2021-06-24T12:49:22+00:00" "time": "2021-02-25T21:54:58+00:00"
}, },
{ {
"name": "league/commonmark", "name": "league/commonmark",
"version": "1.6.6", "version": "1.6.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/commonmark.git", "url": "https://github.com/thephpleague/commonmark.git",
"reference": "c4228d11e30d7493c6836d20872f9582d8ba6dcf" "reference": "7d70d2f19c84bcc16275ea47edabee24747352eb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/c4228d11e30d7493c6836d20872f9582d8ba6dcf", "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/7d70d2f19c84bcc16275ea47edabee24747352eb",
"reference": "c4228d11e30d7493c6836d20872f9582d8ba6dcf", "reference": "7d70d2f19c84bcc16275ea47edabee24747352eb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -772,7 +772,7 @@
"github/gfm": "0.29.0", "github/gfm": "0.29.0",
"michelf/php-markdown": "~1.4", "michelf/php-markdown": "~1.4",
"mikehaertl/php-shellcommand": "^1.4", "mikehaertl/php-shellcommand": "^1.4",
"phpstan/phpstan": "^0.12.90", "phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.2", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.2",
"scrutinizer/ocular": "^1.5", "scrutinizer/ocular": "^1.5",
"symfony/finder": "^4.2" "symfony/finder": "^4.2"
@ -838,40 +838,37 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-17T17:13:23+00:00" "time": "2021-05-12T11:39:41+00:00"
}, },
{ {
"name": "league/html-to-markdown", "name": "league/html-to-markdown",
"version": "5.0.0", "version": "4.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/html-to-markdown.git", "url": "https://github.com/thephpleague/html-to-markdown.git",
"reference": "c4dbebbebe0fe454b6b38e6c683a977615bd7dc2" "reference": "0868ae7a552e809e5cd8f93ba022071640408e88"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/c4dbebbebe0fe454b6b38e6c683a977615bd7dc2", "url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/0868ae7a552e809e5cd8f93ba022071640408e88",
"reference": "c4dbebbebe0fe454b6b38e6c683a977615bd7dc2", "reference": "0868ae7a552e809e5cd8f93ba022071640408e88",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-dom": "*", "ext-dom": "*",
"ext-xml": "*", "ext-xml": "*",
"php": "^7.2.5 || ^8.0" "php": ">=5.3.3"
}, },
"require-dev": { "require-dev": {
"mikehaertl/php-shellcommand": "^1.1.0", "mikehaertl/php-shellcommand": "~1.1.0",
"phpstan/phpstan": "^0.12.82", "phpunit/phpunit": "^4.8|^5.7",
"phpunit/phpunit": "^8.5 || ^9.2", "scrutinizer/ocular": "~1.1"
"scrutinizer/ocular": "^1.6",
"unleashedtech/php-coding-standard": "^2.7",
"vimeo/psalm": "^4.6"
}, },
"bin": ["bin/html-to-markdown"], "bin": ["bin/html-to-markdown"],
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "5.1-dev" "dev-master": "4.10-dev"
} }
}, },
"autoload": { "autoload": {
@ -900,7 +897,7 @@
"keywords": ["html", "markdown"], "keywords": ["html", "markdown"],
"support": { "support": {
"issues": "https://github.com/thephpleague/html-to-markdown/issues", "issues": "https://github.com/thephpleague/html-to-markdown/issues",
"source": "https://github.com/thephpleague/html-to-markdown/tree/5.0.0" "source": "https://github.com/thephpleague/html-to-markdown/tree/4.10.0"
}, },
"funding": [ "funding": [
{ {
@ -920,7 +917,7 @@
"type": "patreon" "type": "patreon"
} }
], ],
"time": "2021-03-29T01:29:08+00:00" "time": "2020-07-01T00:34:03+00:00"
}, },
{ {
"name": "maxmind-db/reader", "name": "maxmind-db/reader",
@ -1080,12 +1077,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/lonnieezell/myth-auth.git", "url": "https://github.com/lonnieezell/myth-auth.git",
"reference": "89b013a3d04680e1975bc301c3aac31137e31bc2" "reference": "9bba52bd710a0c35a0b2d8cef64a70706224648a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/lonnieezell/myth-auth/zipball/89b013a3d04680e1975bc301c3aac31137e31bc2", "url": "https://api.github.com/repos/lonnieezell/myth-auth/zipball/9bba52bd710a0c35a0b2d8cef64a70706224648a",
"reference": "89b013a3d04680e1975bc301c3aac31137e31bc2", "reference": "9bba52bd710a0c35a0b2d8cef64a70706224648a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1098,13 +1095,10 @@
"codeigniter4/codeigniter4": "dev-develop", "codeigniter4/codeigniter4": "dev-develop",
"codeigniter4/codeigniter4-standard": "^1.0", "codeigniter4/codeigniter4-standard": "^1.0",
"fakerphp/faker": "^1.9", "fakerphp/faker": "^1.9",
"friendsofphp/php-cs-fixer": "^3.0",
"mockery/mockery": "^1.0", "mockery/mockery": "^1.0",
"nexusphp/cs-config": "^3.1",
"nexusphp/tachycardia": "^1.0",
"php-coveralls/php-coveralls": "^2.4",
"phpstan/phpstan": "^0.12", "phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^9.2" "phpunit/phpunit": "^9.2",
"squizlabs/php_codesniffer": "^3.5"
}, },
"default-branch": true, "default-branch": true,
"type": "library", "type": "library",
@ -1129,23 +1123,19 @@
"keywords": ["Authentication", "authorization", "codeigniter"], "keywords": ["Authentication", "authorization", "codeigniter"],
"support": { "support": {
"issues": "https://github.com/lonnieezell/myth-auth/issues", "issues": "https://github.com/lonnieezell/myth-auth/issues",
"source": "https://github.com/lonnieezell/myth-auth/tree/develop" "source": "https://github.com/lonnieezell/myth-auth/tree/v1.0"
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/lonnieezell", "url": "https://github.com/lonnieezell",
"type": "github" "type": "github"
}, },
{
"url": "https://github.com/mgatner",
"type": "github"
},
{ {
"url": "https://www.patreon.com/lonnieezell", "url": "https://www.patreon.com/lonnieezell",
"type": "patreon" "type": "patreon"
} }
], ],
"time": "2021-08-06T11:33:46+00:00" "time": "2021-06-10T04:25:01+00:00"
}, },
{ {
"name": "opawg/user-agents-php", "name": "opawg/user-agents-php",
@ -1247,16 +1237,16 @@
}, },
{ {
"name": "phpseclib/phpseclib", "name": "phpseclib/phpseclib",
"version": "2.0.32", "version": "2.0.31",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpseclib/phpseclib.git", "url": "https://github.com/phpseclib/phpseclib.git",
"reference": "f5c4c19880d45d0be3e7d24ae8ac434844a898cd" "reference": "233a920cb38636a43b18d428f9a8db1f0a1a08f4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/f5c4c19880d45d0be3e7d24ae8ac434844a898cd", "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/233a920cb38636a43b18d428f9a8db1f0a1a08f4",
"reference": "f5c4c19880d45d0be3e7d24ae8ac434844a898cd", "reference": "233a920cb38636a43b18d428f9a8db1f0a1a08f4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1332,7 +1322,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/phpseclib/phpseclib/issues", "issues": "https://github.com/phpseclib/phpseclib/issues",
"source": "https://github.com/phpseclib/phpseclib/tree/2.0.32" "source": "https://github.com/phpseclib/phpseclib/tree/2.0.31"
}, },
"funding": [ "funding": [
{ {
@ -1348,7 +1338,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-06-12T12:12:59+00:00" "time": "2021-04-06T13:56:45+00:00"
}, },
{ {
"name": "podlibre/ipcat", "name": "podlibre/ipcat",
@ -1502,21 +1492,20 @@
}, },
{ {
"name": "ramsey/collection", "name": "ramsey/collection",
"version": "1.2.1", "version": "1.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ramsey/collection.git", "url": "https://github.com/ramsey/collection.git",
"reference": "eaca1dc1054ddd10cbd83c1461907bee6fb528fa" "reference": "28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ramsey/collection/zipball/eaca1dc1054ddd10cbd83c1461907bee6fb528fa", "url": "https://api.github.com/repos/ramsey/collection/zipball/28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1",
"reference": "eaca1dc1054ddd10cbd83c1461907bee6fb528fa", "reference": "28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.3 || ^8", "php": "^7.2 || ^8"
"symfony/polyfill-php81": "^1.23"
}, },
"require-dev": { "require-dev": {
"captainhook/captainhook": "^5.3", "captainhook/captainhook": "^5.3",
@ -1526,7 +1515,6 @@
"hamcrest/hamcrest-php": "^2", "hamcrest/hamcrest-php": "^2",
"jangregor/phpstan-prophecy": "^0.8", "jangregor/phpstan-prophecy": "^0.8",
"mockery/mockery": "^1.3", "mockery/mockery": "^1.3",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/extension-installer": "^1", "phpstan/extension-installer": "^1",
"phpstan/phpstan": "^0.12.32", "phpstan/phpstan": "^0.12.32",
"phpstan/phpstan-mockery": "^0.12.5", "phpstan/phpstan-mockery": "^0.12.5",
@ -1552,11 +1540,11 @@
"homepage": "https://benramsey.com" "homepage": "https://benramsey.com"
} }
], ],
"description": "A PHP library for representing and manipulating collections.", "description": "A PHP 7.2+ library for representing and manipulating collections.",
"keywords": ["array", "collection", "hash", "map", "queue", "set"], "keywords": ["array", "collection", "hash", "map", "queue", "set"],
"support": { "support": {
"issues": "https://github.com/ramsey/collection/issues", "issues": "https://github.com/ramsey/collection/issues",
"source": "https://github.com/ramsey/collection/tree/1.2.1" "source": "https://github.com/ramsey/collection/tree/1.1.3"
}, },
"funding": [ "funding": [
{ {
@ -1568,20 +1556,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-08-06T03:41:06+00:00" "time": "2021-01-21T17:40:04+00:00"
}, },
{ {
"name": "ramsey/uuid", "name": "ramsey/uuid",
"version": "4.2.1", "version": "4.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ramsey/uuid.git", "url": "https://github.com/ramsey/uuid.git",
"reference": "fe665a03df4f056aa65af552a96e1976df8c8dae" "reference": "cd4032040a750077205918c86049aa0f43d22947"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/fe665a03df4f056aa65af552a96e1976df8c8dae", "url": "https://api.github.com/repos/ramsey/uuid/zipball/cd4032040a750077205918c86049aa0f43d22947",
"reference": "fe665a03df4f056aa65af552a96e1976df8c8dae", "reference": "cd4032040a750077205918c86049aa0f43d22947",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1595,26 +1583,26 @@
"rhumsaa/uuid": "self.version" "rhumsaa/uuid": "self.version"
}, },
"require-dev": { "require-dev": {
"captainhook/captainhook": "^5.10", "codeception/aspect-mock": "^3",
"captainhook/plugin-composer": "^5.3", "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"doctrine/annotations": "^1.8", "doctrine/annotations": "^1.8",
"ergebnis/composer-normalize": "^2.15", "goaop/framework": "^2",
"mockery/mockery": "^1.3", "mockery/mockery": "^1.3",
"moontoast/math": "^1.1", "moontoast/math": "^1.1",
"paragonie/random-lib": "^2", "paragonie/random-lib": "^2",
"php-mock/php-mock": "^2.2",
"php-mock/php-mock-mockery": "^1.3", "php-mock/php-mock-mockery": "^1.3",
"php-mock/php-mock-phpunit": "^2.5",
"php-parallel-lint/php-parallel-lint": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.1",
"phpbench/phpbench": "^1.0", "phpbench/phpbench": "^0.17.1",
"phpstan/extension-installer": "^1.0", "phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12", "phpstan/phpstan": "^0.12",
"phpstan/phpstan-mockery": "^0.12", "phpstan/phpstan-mockery": "^0.12",
"phpstan/phpstan-phpunit": "^0.12", "phpstan/phpstan-phpunit": "^0.12",
"phpunit/phpunit": "^8.5 || ^9", "phpunit/phpunit": "^8.5",
"slevomat/coding-standard": "^7.0", "psy/psysh": "^0.10.0",
"slevomat/coding-standard": "^6.0",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^4.9" "vimeo/psalm": "3.9.4"
}, },
"suggest": { "suggest": {
"ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.",
@ -1627,10 +1615,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "4.x-dev" "dev-master": "4.x-dev"
},
"captainhook": {
"force-install": true
} }
}, },
"autoload": { "autoload": {
@ -1642,22 +1627,20 @@
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": ["MIT"], "license": ["MIT"],
"description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).",
"homepage": "https://github.com/ramsey/uuid",
"keywords": ["guid", "identifier", "uuid"], "keywords": ["guid", "identifier", "uuid"],
"support": { "support": {
"issues": "https://github.com/ramsey/uuid/issues", "issues": "https://github.com/ramsey/uuid/issues",
"source": "https://github.com/ramsey/uuid/tree/4.2.1" "rss": "https://github.com/ramsey/uuid/releases.atom",
"source": "https://github.com/ramsey/uuid"
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/ramsey", "url": "https://github.com/ramsey",
"type": "github" "type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/ramsey/uuid",
"type": "tidelift"
} }
], ],
"time": "2021-08-11T01:06:55+00:00" "time": "2020-08-18T17:17:46+00:00"
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
@ -1731,16 +1714,16 @@
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.23.1", "version": "v1.23.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1",
"reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1781,7 +1764,7 @@
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": ["compatibility", "mbstring", "polyfill", "portable", "shim"], "keywords": ["compatibility", "mbstring", "polyfill", "portable", "shim"],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1" "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0"
}, },
"funding": [ "funding": [
{ {
@ -1797,20 +1780,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-05-27T12:26:48+00:00" "time": "2021-05-27T09:27:20+00:00"
}, },
{ {
"name": "symfony/polyfill-php80", "name": "symfony/polyfill-php80",
"version": "v1.23.1", "version": "v1.23.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php80.git", "url": "https://github.com/symfony/polyfill-php80.git",
"reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0",
"reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1853,7 +1836,7 @@
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": ["compatibility", "polyfill", "portable", "shim"], "keywords": ["compatibility", "polyfill", "portable", "shim"],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0"
}, },
"funding": [ "funding": [
{ {
@ -1869,75 +1852,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-28T13:41:28+00:00" "time": "2021-02-19T12:13:01+00:00"
},
{
"name": "symfony/polyfill-php81",
"version": "v1.23.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php81.git",
"reference": "e66119f3de95efc359483f810c4c3e6436279436"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/e66119f3de95efc359483f810c4c3e6436279436",
"reference": "e66119f3de95efc359483f810c4c3e6436279436",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.23-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Php81\\": ""
},
"files": ["bootstrap.php"],
"classmap": ["Resources/stubs"]
},
"notification-url": "https://packagist.org/downloads/",
"license": ["MIT"],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": ["compatibility", "polyfill", "portable", "shim"],
"support": {
"source": "https://github.com/symfony/polyfill-php81/tree/v1.23.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-05-21T13:25:03+00:00"
}, },
{ {
"name": "vlucas/phpdotenv", "name": "vlucas/phpdotenv",
@ -2224,21 +2139,21 @@
}, },
{ {
"name": "composer/xdebug-handler", "name": "composer/xdebug-handler",
"version": "2.0.2", "version": "2.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/xdebug-handler.git", "url": "https://github.com/composer/xdebug-handler.git",
"reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339" "reference": "964adcdd3a28bf9ed5d9ac6450064e0d71ed7496"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/84674dd3a7575ba617f5a76d7e9e29a7d3891339", "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/964adcdd3a28bf9ed5d9ac6450064e0d71ed7496",
"reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339", "reference": "964adcdd3a28bf9ed5d9ac6450064e0d71ed7496",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^5.3.2 || ^7.0 || ^8.0", "php": "^5.3.2 || ^7.0 || ^8.0",
"psr/log": "^1 || ^2 || ^3" "psr/log": "^1.0"
}, },
"require-dev": { "require-dev": {
"phpstan/phpstan": "^0.12.55", "phpstan/phpstan": "^0.12.55",
@ -2263,7 +2178,7 @@
"support": { "support": {
"irc": "irc://irc.freenode.org/composer", "irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/xdebug-handler/issues", "issues": "https://github.com/composer/xdebug-handler/issues",
"source": "https://github.com/composer/xdebug-handler/tree/2.0.2" "source": "https://github.com/composer/xdebug-handler/tree/2.0.1"
}, },
"funding": [ "funding": [
{ {
@ -2279,7 +2194,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-31T17:03:58+00:00" "time": "2021-05-05T19:37:51+00:00"
}, },
{ {
"name": "danielstjules/stringy", "name": "danielstjules/stringy",
@ -2339,16 +2254,16 @@
}, },
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
"version": "1.13.2", "version": "1.13.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/annotations.git", "url": "https://github.com/doctrine/annotations.git",
"reference": "5b668aef16090008790395c02c893b1ba13f7e08" "reference": "e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", "url": "https://api.github.com/repos/doctrine/annotations/zipball/e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f",
"reference": "5b668aef16090008790395c02c893b1ba13f7e08", "reference": "e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2399,9 +2314,9 @@
"keywords": ["annotations", "docblock", "parser"], "keywords": ["annotations", "docblock", "parser"],
"support": { "support": {
"issues": "https://github.com/doctrine/annotations/issues", "issues": "https://github.com/doctrine/annotations/issues",
"source": "https://github.com/doctrine/annotations/tree/1.13.2" "source": "https://github.com/doctrine/annotations/tree/1.13.1"
}, },
"time": "2021-08-05T19:00:23+00:00" "time": "2021-05-16T18:07:53+00:00"
}, },
{ {
"name": "doctrine/instantiator", "name": "doctrine/instantiator",
@ -2541,16 +2456,16 @@
}, },
{ {
"name": "friendsofphp/php-cs-fixer", "name": "friendsofphp/php-cs-fixer",
"version": "v3.0.2", "version": "v3.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
"reference": "990b979379502feb7f393d6c9aa36cc9b9765f24" "reference": "c15377bdfa8d1ecf186f1deadec39c89984e1167"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/990b979379502feb7f393d6c9aa36cc9b9765f24", "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/c15377bdfa8d1ecf186f1deadec39c89984e1167",
"reference": "990b979379502feb7f393d6c9aa36cc9b9765f24", "reference": "c15377bdfa8d1ecf186f1deadec39c89984e1167",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2613,7 +2528,7 @@
"description": "A tool to automatically fix PHP code style", "description": "A tool to automatically fix PHP code style",
"support": { "support": {
"issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.0.2" "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.0.0"
}, },
"funding": [ "funding": [
{ {
@ -2621,20 +2536,20 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-04T19:28:19+00:00" "time": "2021-05-03T21:51:58+00:00"
}, },
{ {
"name": "mikey179/vfsstream", "name": "mikey179/vfsstream",
"version": "v1.6.9", "version": "v1.6.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/bovigo/vfsStream.git", "url": "https://github.com/bovigo/vfsStream.git",
"reference": "2257e326dc3d0f50e55d0a90f71e37899f029718" "reference": "231c73783ebb7dd9ec77916c10037eff5a2b6efe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/bovigo/vfsStream/zipball/2257e326dc3d0f50e55d0a90f71e37899f029718", "url": "https://api.github.com/repos/bovigo/vfsStream/zipball/231c73783ebb7dd9ec77916c10037eff5a2b6efe",
"reference": "2257e326dc3d0f50e55d0a90f71e37899f029718", "reference": "231c73783ebb7dd9ec77916c10037eff5a2b6efe",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2670,7 +2585,7 @@
"source": "https://github.com/bovigo/vfsStream/tree/master", "source": "https://github.com/bovigo/vfsStream/tree/master",
"wiki": "https://github.com/bovigo/vfsStream/wiki" "wiki": "https://github.com/bovigo/vfsStream/wiki"
}, },
"time": "2021-07-16T08:08:02+00:00" "time": "2019-10-30T15:31:00+00:00"
}, },
{ {
"name": "myclabs/deep-copy", "name": "myclabs/deep-copy",
@ -2854,16 +2769,16 @@
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
"version": "v4.12.0", "version": "v4.10.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "6608f01670c3cc5079e18c1dab1104e002579143" "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4432ba399e47c66624bc73c8c0f811e5c109576f",
"reference": "6608f01670c3cc5079e18c1dab1104e002579143", "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2897,22 +2812,22 @@
"keywords": ["parser", "php"], "keywords": ["parser", "php"],
"support": { "support": {
"issues": "https://github.com/nikic/PHP-Parser/issues", "issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0" "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.5"
}, },
"time": "2021-07-21T10:44:31+00:00" "time": "2021-05-03T19:11:20+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",
"version": "2.0.3", "version": "2.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phar-io/manifest.git", "url": "https://github.com/phar-io/manifest.git",
"reference": "97803eca37d319dfa7826cc2437fc020857acb53" "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
"reference": "97803eca37d319dfa7826cc2437fc020857acb53", "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2953,9 +2868,9 @@
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
"support": { "support": {
"issues": "https://github.com/phar-io/manifest/issues", "issues": "https://github.com/phar-io/manifest/issues",
"source": "https://github.com/phar-io/manifest/tree/2.0.3" "source": "https://github.com/phar-io/manifest/tree/master"
}, },
"time": "2021-07-20T11:28:43+00:00" "time": "2020-06-27T14:33:11+00:00"
}, },
{ {
"name": "phar-io/version", "name": "phar-io/version",
@ -3305,27 +3220,28 @@
}, },
{ {
"name": "phpstan/phpdoc-parser", "name": "phpstan/phpdoc-parser",
"version": "0.5.5", "version": "0.5.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git", "url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c" "reference": "e352d065af1ae9b41c12d1dfd309e90f7b1f55c9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c", "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/e352d065af1ae9b41c12d1dfd309e90f7b1f55c9",
"reference": "ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c", "reference": "e352d065af1ae9b41c12d1dfd309e90f7b1f55c9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1 || ^8.0" "php": "^7.1 || ^8.0"
}, },
"require-dev": { "require-dev": {
"phing/phing": "^2.16.3",
"php-parallel-lint/php-parallel-lint": "^1.2", "php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/extension-installer": "^1.0", "phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.87", "phpstan/phpstan": "^0.12.60",
"phpstan/phpstan-strict-rules": "^0.12.5", "phpstan/phpstan-strict-rules": "^0.12.5",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^7.5.20",
"symfony/process": "^5.2" "symfony/process": "^5.2"
}, },
"type": "library", "type": "library",
@ -3344,22 +3260,22 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types", "description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": { "support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues", "issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/0.5.5" "source": "https://github.com/phpstan/phpdoc-parser/tree/0.5.4"
}, },
"time": "2021-06-11T13:24:46+00:00" "time": "2021-04-03T14:46:19+00:00"
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "0.12.94", "version": "0.12.88",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "3d0ba4c198a24e3c3fc489f3ec6ac9612c4be5d6" "reference": "464d1a81af49409c41074aa6640ed0c4cbd9bb68"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/3d0ba4c198a24e3c3fc489f3ec6ac9612c4be5d6", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/464d1a81af49409c41074aa6640ed0c4cbd9bb68",
"reference": "3d0ba4c198a24e3c3fc489f3ec6ac9612c4be5d6", "reference": "464d1a81af49409c41074aa6640ed0c4cbd9bb68",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3383,17 +3299,13 @@
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"support": { "support": {
"issues": "https://github.com/phpstan/phpstan/issues", "issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/0.12.94" "source": "https://github.com/phpstan/phpstan/tree/0.12.88"
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/ondrejmirtes", "url": "https://github.com/ondrejmirtes",
"type": "github" "type": "github"
}, },
{
"url": "https://github.com/phpstan",
"type": "github"
},
{ {
"url": "https://www.patreon.com/phpstan", "url": "https://www.patreon.com/phpstan",
"type": "patreon" "type": "patreon"
@ -3403,7 +3315,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-30T09:05:27+00:00" "time": "2021-05-17T12:24:49+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
@ -3692,16 +3604,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "9.5.8", "version": "9.5.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb" "reference": "89ff45ea9d70e35522fb6654a2ebc221158de276"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/191768ccd5c85513b4068bdbe99bb6390c7d54fb", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/89ff45ea9d70e35522fb6654a2ebc221158de276",
"reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb", "reference": "89ff45ea9d70e35522fb6654a2ebc221158de276",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3713,7 +3625,7 @@
"ext-xml": "*", "ext-xml": "*",
"ext-xmlwriter": "*", "ext-xmlwriter": "*",
"myclabs/deep-copy": "^1.10.1", "myclabs/deep-copy": "^1.10.1",
"phar-io/manifest": "^2.0.3", "phar-io/manifest": "^2.0.1",
"phar-io/version": "^3.0.2", "phar-io/version": "^3.0.2",
"php": ">=7.3", "php": ">=7.3",
"phpspec/prophecy": "^1.12.1", "phpspec/prophecy": "^1.12.1",
@ -3731,7 +3643,7 @@
"sebastian/global-state": "^5.0.1", "sebastian/global-state": "^5.0.1",
"sebastian/object-enumerator": "^4.0.3", "sebastian/object-enumerator": "^4.0.3",
"sebastian/resource-operations": "^3.0.3", "sebastian/resource-operations": "^3.0.3",
"sebastian/type": "^2.3.4", "sebastian/type": "^2.3.2",
"sebastian/version": "^3.0.2" "sebastian/version": "^3.0.2"
}, },
"require-dev": { "require-dev": {
@ -3767,7 +3679,7 @@
"keywords": ["phpunit", "testing", "xunit"], "keywords": ["phpunit", "testing", "xunit"],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.8" "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.5"
}, },
"funding": [ "funding": [
{ {
@ -3779,7 +3691,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-07-31T15:17:34+00:00" "time": "2021-06-05T04:49:07+00:00"
}, },
{ {
"name": "psr/container", "name": "psr/container",
@ -3871,70 +3783,23 @@
}, },
"time": "2019-01-08T18:20:26+00:00" "time": "2019-01-08T18:20:26+00:00"
}, },
{
"name": "rector/phpstan-rules",
"version": "0.3.4",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/phpstan-rules.git",
"reference": "31cfc0abb1f464b910b6dad798b2b04c8f659dc9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/phpstan-rules/zipball/31cfc0abb1f464b910b6dad798b2b04c8f659dc9",
"reference": "31cfc0abb1f464b910b6dad798b2b04c8f659dc9",
"shasum": ""
},
"require": {
"nette/utils": "^3.2",
"php": ">=8.0",
"phpstan/phpstan": "^0.12.86",
"symplify/phpstan-rules": "^9.3.22"
},
"require-dev": {
"phpstan/extension-installer": "^1.1",
"phpunit/phpunit": "^9.5",
"rector/rector-src": "^0.11.7",
"symplify/easy-coding-standard": "^9.3.22",
"symplify/phpstan-extensions": "^9.3.22"
},
"type": "phpstan-extension",
"extra": {
"phpstan": {
"includes": ["config/config.neon"]
}
},
"autoload": {
"psr-4": {
"Rector\\PHPStanRules\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": ["MIT"],
"description": "PHPStan rules for Rector projects - with focus on static reflection, constant re-use and Rector design patterns",
"support": {
"issues": "https://github.com/rectorphp/phpstan-rules/issues",
"source": "https://github.com/rectorphp/phpstan-rules/tree/0.3.4"
},
"time": "2021-06-27T13:29:24+00:00"
},
{ {
"name": "rector/rector", "name": "rector/rector",
"version": "0.11.46", "version": "0.11.16",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/rectorphp/rector.git", "url": "https://github.com/rectorphp/rector.git",
"reference": "9802271920e82f8004882094a254b598d3279708" "reference": "5c030ad7cefa59075e0fe14604cd4982ceaa2bd0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/9802271920e82f8004882094a254b598d3279708", "url": "https://api.github.com/repos/rectorphp/rector/zipball/5c030ad7cefa59075e0fe14604cd4982ceaa2bd0",
"reference": "9802271920e82f8004882094a254b598d3279708", "reference": "5c030ad7cefa59075e0fe14604cd4982ceaa2bd0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1|^8.0", "php": "^7.1|^8.0",
"phpstan/phpstan": "0.12.94" "phpstan/phpstan": ">=0.12.86 <=0.12.88"
}, },
"conflict": { "conflict": {
"phpstan/phpdoc-parser": "<=0.5.3", "phpstan/phpdoc-parser": "<=0.5.3",
@ -3942,6 +3807,7 @@
"rector/rector-cakephp": "*", "rector/rector-cakephp": "*",
"rector/rector-doctrine": "*", "rector/rector-doctrine": "*",
"rector/rector-nette": "*", "rector/rector-nette": "*",
"rector/rector-nette-to-symfony": "*",
"rector/rector-phpunit": "*", "rector/rector-phpunit": "*",
"rector/rector-prefixed": "*", "rector/rector-prefixed": "*",
"rector/rector-symfony": "*" "rector/rector-symfony": "*"
@ -3961,7 +3827,7 @@
"description": "Prefixed and PHP 7.1 downgraded version of rector/rector", "description": "Prefixed and PHP 7.1 downgraded version of rector/rector",
"support": { "support": {
"issues": "https://github.com/rectorphp/rector/issues", "issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/0.11.46" "source": "https://github.com/rectorphp/rector/tree/0.11.16"
}, },
"funding": [ "funding": [
{ {
@ -3969,7 +3835,53 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-09T13:46:17+00:00" "time": "2021-06-08T08:41:04+00:00"
},
{
"name": "rector/rector-phpstan-rules",
"version": "0.2.12",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/phpstan-rules.git",
"reference": "84b2034aab951be7e86dc6cc7e141ee92a3d115b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/phpstan-rules/zipball/84b2034aab951be7e86dc6cc7e141ee92a3d115b",
"reference": "84b2034aab951be7e86dc6cc7e141ee92a3d115b",
"shasum": ""
},
"require": {
"nette/utils": "^3.2",
"php": ">=7.3",
"phpstan/phpstan": "^0.12.86",
"symplify/phpstan-rules": "^9.3.5"
},
"require-dev": {
"phpstan/extension-installer": "^1.1",
"phpunit/phpunit": "^9.5",
"symplify/easy-coding-standard": "^9.3",
"symplify/phpstan-extensions": "^9.3"
},
"type": "phpstan-extension",
"extra": {
"phpstan": {
"includes": ["config/config.neon"]
}
},
"autoload": {
"psr-4": {
"Rector\\PHPStanRules\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": ["MIT"],
"description": "PHPStan rules for Rector projects - with focus on static reflection, constant re-use and Rector design patterns",
"support": {
"issues": "https://github.com/rectorphp/phpstan-rules/issues",
"source": "https://github.com/rectorphp/phpstan-rules/tree/0.2.12"
},
"time": "2021-05-20T22:31:19+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@ -4429,16 +4341,16 @@
}, },
{ {
"name": "sebastian/global-state", "name": "sebastian/global-state",
"version": "5.0.3", "version": "5.0.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git", "url": "https://github.com/sebastianbergmann/global-state.git",
"reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49" "reference": "a90ccbddffa067b51f574dea6eb25d5680839455"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49", "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/a90ccbddffa067b51f574dea6eb25d5680839455",
"reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49", "reference": "a90ccbddffa067b51f574dea6eb25d5680839455",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4475,7 +4387,7 @@
"keywords": ["global state"], "keywords": ["global state"],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/global-state/issues", "issues": "https://github.com/sebastianbergmann/global-state/issues",
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3" "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2"
}, },
"funding": [ "funding": [
{ {
@ -4483,7 +4395,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-06-11T13:31:12+00:00" "time": "2020-10-26T15:55:19+00:00"
}, },
{ {
"name": "sebastian/lines-of-code", "name": "sebastian/lines-of-code",
@ -4754,16 +4666,16 @@
}, },
{ {
"name": "sebastian/type", "name": "sebastian/type",
"version": "2.3.4", "version": "2.3.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/type.git", "url": "https://github.com/sebastianbergmann/type.git",
"reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" "reference": "0d1c587401514d17e8f9258a27e23527cb1b06c1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0d1c587401514d17e8f9258a27e23527cb1b06c1",
"reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", "reference": "0d1c587401514d17e8f9258a27e23527cb1b06c1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4794,7 +4706,7 @@
"homepage": "https://github.com/sebastianbergmann/type", "homepage": "https://github.com/sebastianbergmann/type",
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/type/issues", "issues": "https://github.com/sebastianbergmann/type/issues",
"source": "https://github.com/sebastianbergmann/type/tree/2.3.4" "source": "https://github.com/sebastianbergmann/type/tree/2.3.2"
}, },
"funding": [ "funding": [
{ {
@ -4802,7 +4714,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-06-15T12:49:02+00:00" "time": "2021-06-04T13:02:07+00:00"
}, },
{ {
"name": "sebastian/version", "name": "sebastian/version",
@ -4960,16 +4872,16 @@
}, },
{ {
"name": "sebastianfeldmann/git", "name": "sebastianfeldmann/git",
"version": "3.7.2", "version": "3.7.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianfeldmann/git.git", "url": "https://github.com/sebastianfeldmann/git.git",
"reference": "ccaa6211cc613c1c631120e70b20f29be30c5fd4" "reference": "406b98e09c37249ce586be8ed5766bf0ca389490"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianfeldmann/git/zipball/ccaa6211cc613c1c631120e70b20f29be30c5fd4", "url": "https://api.github.com/repos/sebastianfeldmann/git/zipball/406b98e09c37249ce586be8ed5766bf0ca389490",
"reference": "ccaa6211cc613c1c631120e70b20f29be30c5fd4", "reference": "406b98e09c37249ce586be8ed5766bf0ca389490",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5002,7 +4914,7 @@
"keywords": ["git"], "keywords": ["git"],
"support": { "support": {
"issues": "https://github.com/sebastianfeldmann/git/issues", "issues": "https://github.com/sebastianfeldmann/git/issues",
"source": "https://github.com/sebastianfeldmann/git/tree/3.7.2" "source": "https://github.com/sebastianfeldmann/git/tree/3.7.1"
}, },
"funding": [ "funding": [
{ {
@ -5010,20 +4922,20 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-07-29T16:13:52+00:00" "time": "2021-05-29T12:47:08+00:00"
}, },
{ {
"name": "symfony/config", "name": "symfony/config",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/config.git", "url": "https://github.com/symfony/config.git",
"reference": "4268f3059c904c61636275182707f81645517a37" "reference": "9f4a448c2d7fd2c90882dfff930b627ddbe16810"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/config/zipball/4268f3059c904c61636275182707f81645517a37", "url": "https://api.github.com/repos/symfony/config/zipball/9f4a448c2d7fd2c90882dfff930b627ddbe16810",
"reference": "4268f3059c904c61636275182707f81645517a37", "reference": "9f4a448c2d7fd2c90882dfff930b627ddbe16810",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5031,7 +4943,7 @@
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/filesystem": "^4.4|^5.0", "symfony/filesystem": "^4.4|^5.0",
"symfony/polyfill-ctype": "~1.8", "symfony/polyfill-ctype": "~1.8",
"symfony/polyfill-php80": "^1.16", "symfony/polyfill-php80": "^1.15",
"symfony/polyfill-php81": "^1.22" "symfony/polyfill-php81": "^1.22"
}, },
"conflict": { "conflict": {
@ -5069,7 +4981,7 @@
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/config/tree/v5.3.4" "source": "https://github.com/symfony/config/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5085,20 +4997,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-21T12:40:44+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v5.3.6", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
"reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2" "reference": "058553870f7809087fa80fa734704a21b9bcaeb2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/51b71afd6d2dc8f5063199357b9880cea8d8bfe2", "url": "https://api.github.com/repos/symfony/console/zipball/058553870f7809087fa80fa734704a21b9bcaeb2",
"reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2", "reference": "058553870f7809087fa80fa734704a21b9bcaeb2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5106,12 +5018,11 @@
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php73": "^1.8", "symfony/polyfill-php73": "^1.8",
"symfony/polyfill-php80": "^1.16", "symfony/polyfill-php80": "^1.15",
"symfony/service-contracts": "^1.1|^2", "symfony/service-contracts": "^1.1|^2",
"symfony/string": "^5.1" "symfony/string": "^5.1"
}, },
"conflict": { "conflict": {
"psr/log": ">=3",
"symfony/dependency-injection": "<4.4", "symfony/dependency-injection": "<4.4",
"symfony/dotenv": "<5.1", "symfony/dotenv": "<5.1",
"symfony/event-dispatcher": "<4.4", "symfony/event-dispatcher": "<4.4",
@ -5119,10 +5030,10 @@
"symfony/process": "<4.4" "symfony/process": "<4.4"
}, },
"provide": { "provide": {
"psr/log-implementation": "1.0|2.0" "psr/log-implementation": "1.0"
}, },
"require-dev": { "require-dev": {
"psr/log": "^1|^2", "psr/log": "~1.0",
"symfony/config": "^4.4|^5.0", "symfony/config": "^4.4|^5.0",
"symfony/dependency-injection": "^4.4|^5.0", "symfony/dependency-injection": "^4.4|^5.0",
"symfony/event-dispatcher": "^4.4|^5.0", "symfony/event-dispatcher": "^4.4|^5.0",
@ -5159,7 +5070,7 @@
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": ["cli", "command line", "console", "terminal"], "keywords": ["cli", "command line", "console", "terminal"],
"support": { "support": {
"source": "https://github.com/symfony/console/tree/v5.3.6" "source": "https://github.com/symfony/console/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5175,27 +5086,27 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-27T19:10:22+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/dependency-injection", "name": "symfony/dependency-injection",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/dependency-injection.git", "url": "https://github.com/symfony/dependency-injection.git",
"reference": "5a825e4b386066167a8b55487091cb62beec74c2" "reference": "94d973cb742d8c5c5dcf9534220e6b73b09af1d4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/5a825e4b386066167a8b55487091cb62beec74c2", "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/94d973cb742d8c5c5dcf9534220e6b73b09af1d4",
"reference": "5a825e4b386066167a8b55487091cb62beec74c2", "reference": "94d973cb742d8c5c5dcf9534220e6b73b09af1d4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"psr/container": "^1.1.1", "psr/container": "^1.1.1",
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/polyfill-php80": "^1.16", "symfony/polyfill-php80": "^1.15",
"symfony/service-contracts": "^1.1.6|^2" "symfony/service-contracts": "^1.1.6|^2"
}, },
"conflict": { "conflict": {
@ -5243,7 +5154,7 @@
"description": "Allows you to standardize and centralize the way objects are constructed in your application", "description": "Allows you to standardize and centralize the way objects are constructed in your application",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/dependency-injection/tree/v5.3.4" "source": "https://github.com/symfony/dependency-injection/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5259,7 +5170,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-23T15:55:36+00:00" "time": "2021-05-26T17:57:12+00:00"
}, },
{ {
"name": "symfony/deprecation-contracts", "name": "symfony/deprecation-contracts",
@ -5326,21 +5237,22 @@
}, },
{ {
"name": "symfony/error-handler", "name": "symfony/error-handler",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/error-handler.git", "url": "https://github.com/symfony/error-handler.git",
"reference": "281f6c4660bcf5844bb0346fe3a4664722fe4c73" "reference": "0e6768b8c0dcef26df087df2bbbaa143867a59b2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/281f6c4660bcf5844bb0346fe3a4664722fe4c73", "url": "https://api.github.com/repos/symfony/error-handler/zipball/0e6768b8c0dcef26df087df2bbbaa143867a59b2",
"reference": "281f6c4660bcf5844bb0346fe3a4664722fe4c73", "reference": "0e6768b8c0dcef26df087df2bbbaa143867a59b2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"psr/log": "^1|^2|^3", "psr/log": "^1.0",
"symfony/polyfill-php80": "^1.15",
"symfony/var-dumper": "^4.4|^5.0" "symfony/var-dumper": "^4.4|^5.0"
}, },
"require-dev": { "require-dev": {
@ -5370,7 +5282,7 @@
"description": "Provides tools to manage errors and ease debugging PHP code", "description": "Provides tools to manage errors and ease debugging PHP code",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/error-handler/tree/v5.3.4" "source": "https://github.com/symfony/error-handler/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5386,27 +5298,27 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-23T15:55:36+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/event-dispatcher.git", "url": "https://github.com/symfony/event-dispatcher.git",
"reference": "f2fd2208157553874560f3645d4594303058c4bd" "reference": "67a5f354afa8e2f231081b3fa11a5912f933c3ce"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f2fd2208157553874560f3645d4594303058c4bd", "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/67a5f354afa8e2f231081b3fa11a5912f933c3ce",
"reference": "f2fd2208157553874560f3645d4594303058c4bd", "reference": "67a5f354afa8e2f231081b3fa11a5912f933c3ce",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/event-dispatcher-contracts": "^2", "symfony/event-dispatcher-contracts": "^2",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"conflict": { "conflict": {
"symfony/dependency-injection": "<4.4" "symfony/dependency-injection": "<4.4"
@ -5416,7 +5328,7 @@
"symfony/event-dispatcher-implementation": "2.0" "symfony/event-dispatcher-implementation": "2.0"
}, },
"require-dev": { "require-dev": {
"psr/log": "^1|^2|^3", "psr/log": "~1.0",
"symfony/config": "^4.4|^5.0", "symfony/config": "^4.4|^5.0",
"symfony/dependency-injection": "^4.4|^5.0", "symfony/dependency-injection": "^4.4|^5.0",
"symfony/error-handler": "^4.4|^5.0", "symfony/error-handler": "^4.4|^5.0",
@ -5451,7 +5363,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v5.3.4" "source": "https://github.com/symfony/event-dispatcher/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5467,7 +5379,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-23T15:55:36+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/event-dispatcher-contracts", "name": "symfony/event-dispatcher-contracts",
@ -5548,22 +5460,21 @@
}, },
{ {
"name": "symfony/filesystem", "name": "symfony/filesystem",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/filesystem.git", "url": "https://github.com/symfony/filesystem.git",
"reference": "343f4fe324383ca46792cae728a3b6e2f708fb32" "reference": "348116319d7fb7d1faa781d26a48922428013eb2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/343f4fe324383ca46792cae728a3b6e2f708fb32", "url": "https://api.github.com/repos/symfony/filesystem/zipball/348116319d7fb7d1faa781d26a48922428013eb2",
"reference": "343f4fe324383ca46792cae728a3b6e2f708fb32", "reference": "348116319d7fb7d1faa781d26a48922428013eb2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/polyfill-ctype": "~1.8", "symfony/polyfill-ctype": "~1.8"
"symfony/polyfill-php80": "^1.16"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -5587,7 +5498,7 @@
"description": "Provides basic utilities for the filesystem", "description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/filesystem/tree/v5.3.4" "source": "https://github.com/symfony/filesystem/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5603,25 +5514,24 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-21T12:40:44+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/finder", "name": "symfony/finder",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/finder.git", "url": "https://github.com/symfony/finder.git",
"reference": "17f50e06018baec41551a71a15731287dbaab186" "reference": "0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/17f50e06018baec41551a71a15731287dbaab186", "url": "https://api.github.com/repos/symfony/finder/zipball/0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6",
"reference": "17f50e06018baec41551a71a15731287dbaab186", "reference": "0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5"
"symfony/polyfill-php80": "^1.16"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -5645,7 +5555,7 @@
"description": "Finds files and directories via an intuitive fluent interface", "description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/finder/tree/v5.3.4" "source": "https://github.com/symfony/finder/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5661,7 +5571,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-23T15:54:19+00:00" "time": "2021-05-26T12:52:38+00:00"
}, },
{ {
"name": "symfony/http-client-contracts", "name": "symfony/http-client-contracts",
@ -5741,23 +5651,23 @@
}, },
{ {
"name": "symfony/http-foundation", "name": "symfony/http-foundation",
"version": "v5.3.6", "version": "v5.3.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-foundation.git", "url": "https://github.com/symfony/http-foundation.git",
"reference": "a8388f7b7054a7401997008ce9cd8c6b0ab7ac75" "reference": "8827b90cf8806e467124ad476acd15216c2fceb6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/a8388f7b7054a7401997008ce9cd8c6b0ab7ac75", "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8827b90cf8806e467124ad476acd15216c2fceb6",
"reference": "a8388f7b7054a7401997008ce9cd8c6b0ab7ac75", "reference": "8827b90cf8806e467124ad476acd15216c2fceb6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/polyfill-mbstring": "~1.1", "symfony/polyfill-mbstring": "~1.1",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"require-dev": { "require-dev": {
"predis/predis": "~1.0", "predis/predis": "~1.0",
@ -5790,7 +5700,7 @@
"description": "Defines an object-oriented layer for the HTTP specification", "description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/http-foundation/tree/v5.3.6" "source": "https://github.com/symfony/http-foundation/tree/v5.3.1"
}, },
"funding": [ "funding": [
{ {
@ -5806,25 +5716,25 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-27T17:08:17+00:00" "time": "2021-06-02T09:32:00+00:00"
}, },
{ {
"name": "symfony/http-kernel", "name": "symfony/http-kernel",
"version": "v5.3.6", "version": "v5.3.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-kernel.git", "url": "https://github.com/symfony/http-kernel.git",
"reference": "60030f209018356b3b553b9dbd84ad2071c1b7e0" "reference": "74eb022e3bac36b3d3a897951a98759f2b32b864"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/60030f209018356b3b553b9dbd84ad2071c1b7e0", "url": "https://api.github.com/repos/symfony/http-kernel/zipball/74eb022e3bac36b3d3a897951a98759f2b32b864",
"reference": "60030f209018356b3b553b9dbd84ad2071c1b7e0", "reference": "74eb022e3bac36b3d3a897951a98759f2b32b864",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"psr/log": "^1|^2", "psr/log": "~1.0",
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/error-handler": "^4.4|^5.0", "symfony/error-handler": "^4.4|^5.0",
"symfony/event-dispatcher": "^5.0", "symfony/event-dispatcher": "^5.0",
@ -5832,7 +5742,7 @@
"symfony/http-foundation": "^5.3", "symfony/http-foundation": "^5.3",
"symfony/polyfill-ctype": "^1.8", "symfony/polyfill-ctype": "^1.8",
"symfony/polyfill-php73": "^1.9", "symfony/polyfill-php73": "^1.9",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"conflict": { "conflict": {
"symfony/browser-kit": "<4.4", "symfony/browser-kit": "<4.4",
@ -5851,7 +5761,7 @@
"twig/twig": "<2.13" "twig/twig": "<2.13"
}, },
"provide": { "provide": {
"psr/log-implementation": "1.0|2.0" "psr/log-implementation": "1.0"
}, },
"require-dev": { "require-dev": {
"psr/cache": "^1.0|^2.0|^3.0", "psr/cache": "^1.0|^2.0|^3.0",
@ -5898,7 +5808,7 @@
"description": "Provides a structured process for converting a Request into a Response", "description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/http-kernel/tree/v5.3.6" "source": "https://github.com/symfony/http-kernel/tree/v5.3.1"
}, },
"funding": [ "funding": [
{ {
@ -5914,27 +5824,27 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-29T07:06:27+00:00" "time": "2021-06-02T10:07:12+00:00"
}, },
{ {
"name": "symfony/options-resolver", "name": "symfony/options-resolver",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/options-resolver.git", "url": "https://github.com/symfony/options-resolver.git",
"reference": "a603e5701bd6e305cfc777a8b50bf081ef73105e" "reference": "162e886ca035869866d233a2bfef70cc28f9bbe5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/a603e5701bd6e305cfc777a8b50bf081ef73105e", "url": "https://api.github.com/repos/symfony/options-resolver/zipball/162e886ca035869866d233a2bfef70cc28f9bbe5",
"reference": "a603e5701bd6e305cfc777a8b50bf081ef73105e", "reference": "162e886ca035869866d233a2bfef70cc28f9bbe5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1", "symfony/deprecation-contracts": "^2.1",
"symfony/polyfill-php73": "~1.0", "symfony/polyfill-php73": "~1.0",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -5959,7 +5869,7 @@
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": ["config", "configuration", "options"], "keywords": ["config", "configuration", "options"],
"support": { "support": {
"source": "https://github.com/symfony/options-resolver/tree/v5.3.4" "source": "https://github.com/symfony/options-resolver/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -5975,20 +5885,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-23T15:55:36+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/polyfill-intl-grapheme", "name": "symfony/polyfill-intl-grapheme",
"version": "v1.23.1", "version": "v1.23.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git",
"reference": "16880ba9c5ebe3642d1995ab866db29270b36535" "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535", "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/24b72c6baa32c746a4d0840147c9715e42bb68ab",
"reference": "16880ba9c5ebe3642d1995ab866db29270b36535", "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6036,7 +5946,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1" "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.0"
}, },
"funding": [ "funding": [
{ {
@ -6052,7 +5962,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-05-27T12:26:48+00:00" "time": "2021-05-27T09:17:38+00:00"
}, },
{ {
"name": "symfony/polyfill-intl-normalizer", "name": "symfony/polyfill-intl-normalizer",
@ -6268,22 +6178,90 @@
"time": "2021-02-19T12:13:01+00:00" "time": "2021-02-19T12:13:01+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/polyfill-php81",
"version": "v5.3.4", "version": "v1.23.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/polyfill-php81.git",
"reference": "d16634ee55b895bd85ec714dadc58e4428ecf030" "reference": "e66119f3de95efc359483f810c4c3e6436279436"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/d16634ee55b895bd85ec714dadc58e4428ecf030", "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/e66119f3de95efc359483f810c4c3e6436279436",
"reference": "d16634ee55b895bd85ec714dadc58e4428ecf030", "reference": "e66119f3de95efc359483f810c4c3e6436279436",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.23-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Php81\\": ""
},
"files": ["bootstrap.php"],
"classmap": ["Resources/stubs"]
},
"notification-url": "https://packagist.org/downloads/",
"license": ["MIT"],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": ["compatibility", "polyfill", "portable", "shim"],
"support": {
"source": "https://github.com/symfony/polyfill-php81/tree/v1.23.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-05-21T13:25:03+00:00"
},
{
"name": "symfony/process",
"version": "v5.3.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "53e36cb1c160505cdaf1ef201501669c4c317191"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/53e36cb1c160505cdaf1ef201501669c4c317191",
"reference": "53e36cb1c160505cdaf1ef201501669c4c317191",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -6307,7 +6285,7 @@
"description": "Executes commands in sub-processes", "description": "Executes commands in sub-processes",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/process/tree/v5.3.4" "source": "https://github.com/symfony/process/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -6323,7 +6301,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-23T15:54:19+00:00" "time": "2021-05-26T12:52:38+00:00"
}, },
{ {
"name": "symfony/service-contracts", "name": "symfony/service-contracts",
@ -6404,16 +6382,16 @@
}, },
{ {
"name": "symfony/stopwatch", "name": "symfony/stopwatch",
"version": "v5.3.4", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/stopwatch.git", "url": "https://github.com/symfony/stopwatch.git",
"reference": "b24c6a92c6db316fee69e38c80591e080e41536c" "reference": "313d02f59d6543311865007e5ff4ace05b35ee65"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/b24c6a92c6db316fee69e38c80591e080e41536c", "url": "https://api.github.com/repos/symfony/stopwatch/zipball/313d02f59d6543311865007e5ff4ace05b35ee65",
"reference": "b24c6a92c6db316fee69e38c80591e080e41536c", "reference": "313d02f59d6543311865007e5ff4ace05b35ee65",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6442,7 +6420,7 @@
"description": "Provides a way to profile code", "description": "Provides a way to profile code",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/stopwatch/tree/v5.3.4" "source": "https://github.com/symfony/stopwatch/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -6458,20 +6436,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-10T08:58:57+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/string", "name": "symfony/string",
"version": "v5.3.3", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/string.git", "url": "https://github.com/symfony/string.git",
"reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1" "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", "url": "https://api.github.com/repos/symfony/string/zipball/a9a0f8b6aafc5d2d1c116dcccd1573a95153515b",
"reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6512,7 +6490,7 @@
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": ["grapheme", "i18n", "string", "unicode", "utf-8", "utf8"], "keywords": ["grapheme", "i18n", "string", "unicode", "utf-8", "utf8"],
"support": { "support": {
"source": "https://github.com/symfony/string/tree/v5.3.3" "source": "https://github.com/symfony/string/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -6528,26 +6506,26 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-06-27T11:44:38+00:00" "time": "2021-05-26T17:43:10+00:00"
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
"version": "v5.3.6", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/var-dumper.git",
"reference": "3dd8ddd1e260e58ecc61bb78da3b6584b3bfcba0" "reference": "1d3953e627fe4b5f6df503f356b6545ada6351f3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/3dd8ddd1e260e58ecc61bb78da3b6584b3bfcba0", "url": "https://api.github.com/repos/symfony/var-dumper/zipball/1d3953e627fe4b5f6df503f356b6545ada6351f3",
"reference": "3dd8ddd1e260e58ecc61bb78da3b6584b3bfcba0", "reference": "1d3953e627fe4b5f6df503f356b6545ada6351f3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "^1.16" "symfony/polyfill-php80": "^1.15"
}, },
"conflict": { "conflict": {
"phpunit/phpunit": "<5.4.3", "phpunit/phpunit": "<5.4.3",
@ -6589,7 +6567,7 @@
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": ["debug", "dump"], "keywords": ["debug", "dump"],
"support": { "support": {
"source": "https://github.com/symfony/var-dumper/tree/v5.3.6" "source": "https://github.com/symfony/var-dumper/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -6605,68 +6583,39 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-27T01:56:02+00:00" "time": "2021-05-27T12:28:50+00:00"
}, },
{ {
"name": "symplify/astral", "name": "symplify/astral",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/astral.git", "url": "https://github.com/symplify/astral.git",
"reference": "4e4725517557b19dbf7edb49206b4f61d0110839" "reference": "2d205265eacad08eb5b620ddfa71b334ce992233"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/astral/zipball/4e4725517557b19dbf7edb49206b4f61d0110839", "url": "https://api.github.com/repos/symplify/astral/zipball/2d205265eacad08eb5b620ddfa71b334ce992233",
"reference": "4e4725517557b19dbf7edb49206b4f61d0110839", "reference": "2d205265eacad08eb5b620ddfa71b334ce992233",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/utils": "^3.2", "nette/utils": "^3.2",
"nikic/php-parser": "^4.11", "nikic/php-parser": "4.10.5",
"php": ">=8.0", "php": ">=7.3",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/autowire-array-parameter": "^9.4.27", "symplify/autowire-array-parameter": "^9.3.22",
"symplify/package-builder": "^9.4.27" "symplify/package-builder": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"symplify/easy-testing": "^9.4.27" "symplify/easy-testing": "^9.3.22"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -6678,7 +6627,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Toolking for smart daily work with AST", "description": "Toolking for smart daily work with AST",
"support": { "support": {
"source": "https://github.com/symplify/astral/tree/9.4.27" "source": "https://github.com/symplify/astral/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -6690,57 +6639,27 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:26:14+00:00" "time": "2021-06-10T09:28:23+00:00"
}, },
{ {
"name": "symplify/autowire-array-parameter", "name": "symplify/autowire-array-parameter",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/autowire-array-parameter.git", "url": "https://github.com/symplify/autowire-array-parameter.git",
"reference": "618fcbfc2f7d45401abc254c509258a883e7cdad" "reference": "7794f4d1eafa7e32905e8b38d37eae7b597ed1a8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/autowire-array-parameter/zipball/618fcbfc2f7d45401abc254c509258a883e7cdad", "url": "https://api.github.com/repos/symplify/autowire-array-parameter/zipball/7794f4d1eafa7e32905e8b38d37eae7b597ed1a8",
"reference": "618fcbfc2f7d45401abc254c509258a883e7cdad", "reference": "7794f4d1eafa7e32905e8b38d37eae7b597ed1a8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0", "php": ">=7.3",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symplify/package-builder": "^9.4.27" "symplify/package-builder": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9.5"
@ -6748,7 +6667,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -6760,7 +6679,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Autowire array parameters for your Symfony applications", "description": "Autowire array parameters for your Symfony applications",
"support": { "support": {
"source": "https://github.com/symplify/autowire-array-parameter/tree/9.4.27" "source": "https://github.com/symplify/autowire-array-parameter/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -6772,73 +6691,46 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:26:19+00:00" "time": "2021-06-10T09:28:28+00:00"
}, },
{ {
"name": "symplify/coding-standard", "name": "symplify/coding-standard",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/coding-standard.git", "url": "https://github.com/symplify/coding-standard.git",
"reference": "6b0bedd882dc262666b6b0a4dfc56fb643775939" "reference": "3ce70069790d35e6d6377675778157b573f3a2dd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/coding-standard/zipball/6b0bedd882dc262666b6b0a4dfc56fb643775939", "url": "https://api.github.com/repos/symplify/coding-standard/zipball/3ce70069790d35e6d6377675778157b573f3a2dd",
"reference": "6b0bedd882dc262666b6b0a4dfc56fb643775939", "reference": "3ce70069790d35e6d6377675778157b573f3a2dd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"friendsofphp/php-cs-fixer": "^3.0.2", "friendsofphp/php-cs-fixer": "^3.0",
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0", "php": ">=7.3",
"symplify/autowire-array-parameter": "^9.4.27", "symplify/autowire-array-parameter": "^9.3.22",
"symplify/package-builder": "^9.4.27", "symplify/package-builder": "^9.3.22",
"symplify/rule-doc-generator-contracts": "^9.4.27", "symplify/rule-doc-generator-contracts": "^9.3.22",
"symplify/symplify-kernel": "^9.4.27" "symplify/symplify-kernel": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"doctrine/orm": "^2.9", "doctrine/orm": "^2.7",
"nette/application": "^3.1", "nette/application": "^3.1",
"nette/bootstrap": "^3.1", "nette/bootstrap": "^3.1",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"symfony/framework-bundle": "^5.3", "symfony/framework-bundle": "^4.4|^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/easy-coding-standard": "^9.4.27", "symplify/easy-coding-standard": "^9.3.22",
"symplify/rule-doc-generator": "^9.4.27", "symplify/rule-doc-generator": "^9.3.22",
"symplify/smart-file-system": "^9.4.27" "symplify/smart-file-system": "^9.3.22"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -6850,7 +6742,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Set of Symplify rules for PHP_CodeSniffer and PHP CS Fixer.", "description": "Set of Symplify rules for PHP_CodeSniffer and PHP CS Fixer.",
"support": { "support": {
"source": "https://github.com/symplify/coding-standard/tree/9.4.27" "source": "https://github.com/symplify/coding-standard/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -6862,60 +6754,31 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:26:19+00:00" "time": "2021-06-10T09:28:27+00:00"
}, },
{ {
"name": "symplify/composer-json-manipulator", "name": "symplify/composer-json-manipulator",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/composer-json-manipulator.git", "url": "https://github.com/symplify/composer-json-manipulator.git",
"reference": "e58bd52830f83689ee641feee3a42e03a1a3b07c" "reference": "a3d711ec0928cf8ddf3e4c16dad335318d588679"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/composer-json-manipulator/zipball/e58bd52830f83689ee641feee3a42e03a1a3b07c", "url": "https://api.github.com/repos/symplify/composer-json-manipulator/zipball/a3d711ec0928cf8ddf3e4c16dad335318d588679",
"reference": "e58bd52830f83689ee641feee3a42e03a1a3b07c", "reference": "a3d711ec0928cf8ddf3e4c16dad335318d588679",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0", "php": ">=7.3",
"symfony/config": "^5.3", "symfony/config": "^4.4|^5.2",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symfony/filesystem": "^5.3", "symfony/filesystem": "^4.4|^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/package-builder": "^9.4.27", "symplify/package-builder": "^9.3.22",
"symplify/smart-file-system": "^9.4.27" "symplify/smart-file-system": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9.5"
@ -6923,7 +6786,7 @@
"type": "symfony-bundle", "type": "symfony-bundle",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -6935,7 +6798,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Package to load, merge and save composer.json file(s)", "description": "Package to load, merge and save composer.json file(s)",
"support": { "support": {
"source": "https://github.com/symplify/composer-json-manipulator/tree/9.4.27" "source": "https://github.com/symplify/composer-json-manipulator/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -6947,67 +6810,37 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:26:22+00:00" "time": "2021-06-10T09:28:23+00:00"
}, },
{ {
"name": "symplify/console-package-builder", "name": "symplify/console-package-builder",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/console-package-builder.git", "url": "https://github.com/symplify/console-package-builder.git",
"reference": "90a58661c375d97c3deb8cb4b34b322c8151c205" "reference": "14a0eeaed45b850e579ddd16913a5d74ec856f16"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/console-package-builder/zipball/90a58661c375d97c3deb8cb4b34b322c8151c205", "url": "https://api.github.com/repos/symplify/console-package-builder/zipball/14a0eeaed45b850e579ddd16913a5d74ec856f16",
"reference": "90a58661c375d97c3deb8cb4b34b322c8151c205", "reference": "14a0eeaed45b850e579ddd16913a5d74ec856f16",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0", "php": ">=7.3",
"symfony/console": "^5.3", "symfony/console": "^4.4|^5.2",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symplify/symplify-kernel": "^9.4.27" "symplify/symplify-kernel": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/package-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/package-builder": "^9.4.27" "symplify/package-builder": "^9.3.22"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7019,22 +6852,22 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Package to speed up building command line applications", "description": "Package to speed up building command line applications",
"support": { "support": {
"source": "https://github.com/symplify/console-package-builder/tree/9.4.27" "source": "https://github.com/symplify/console-package-builder/tree/v9.3.22"
}, },
"time": "2021-08-11T09:26:34+00:00" "time": "2021-06-10T09:28:40+00:00"
}, },
{ {
"name": "symplify/easy-coding-standard", "name": "symplify/easy-coding-standard",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/easy-coding-standard.git", "url": "https://github.com/symplify/easy-coding-standard.git",
"reference": "9a386709e9b01d404d7287d6d049a829b1a2fb94" "reference": "7ada08f221241f513531588585e55f423100705d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/easy-coding-standard/zipball/9a386709e9b01d404d7287d6d049a829b1a2fb94", "url": "https://api.github.com/repos/symplify/easy-coding-standard/zipball/7ada08f221241f513531588585e55f423100705d",
"reference": "9a386709e9b01d404d7287d6d049a829b1a2fb94", "reference": "7ada08f221241f513531588585e55f423100705d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7053,7 +6886,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Prefixed scoped version of ECS package", "description": "Prefixed scoped version of ECS package",
"support": { "support": {
"source": "https://github.com/symplify/easy-coding-standard/tree/9.4.27" "source": "https://github.com/symplify/easy-coding-standard/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -7065,60 +6898,33 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:30:16+00:00" "time": "2021-06-10T09:29:11+00:00"
}, },
{ {
"name": "symplify/easy-testing", "name": "symplify/easy-testing",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/easy-testing.git", "url": "https://github.com/symplify/easy-testing.git",
"reference": "7c0b0f73296129d900c88c1379865fadc18fc653" "reference": "6d5543190c9d578b61d9181d77d7255340743929"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/easy-testing/zipball/7c0b0f73296129d900c88c1379865fadc18fc653", "url": "https://api.github.com/repos/symplify/easy-testing/zipball/6d5543190c9d578b61d9181d77d7255340743929",
"reference": "7c0b0f73296129d900c88c1379865fadc18fc653", "reference": "6d5543190c9d578b61d9181d77d7255340743929",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0", "php": ">=7.3",
"symfony/console": "^5.3", "symfony/console": "^4.4|^5.2",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symfony/finder": "^5.3", "symfony/finder": "^4.4|^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/console-package-builder": "^9.4.27", "symplify/console-package-builder": "^9.3.22",
"symplify/package-builder": "^9.4.27", "symplify/package-builder": "^9.3.22",
"symplify/smart-file-system": "^9.4.27", "symplify/smart-file-system": "^9.3.22",
"symplify/symplify-kernel": "^9.4.27" "symplify/symplify-kernel": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9.5"
@ -7127,7 +6933,7 @@
"type": "symfony-bundle", "type": "symfony-bundle",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7139,7 +6945,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Testing made easy", "description": "Testing made easy",
"support": { "support": {
"source": "https://github.com/symplify/easy-testing/tree/9.4.27" "source": "https://github.com/symplify/easy-testing/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -7151,70 +6957,42 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:26:46+00:00" "time": "2021-06-10T09:28:48+00:00"
}, },
{ {
"name": "symplify/package-builder", "name": "symplify/package-builder",
"version": "9.4.27", "version": "dev-main",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/package-builder.git", "url": "https://github.com/symplify/package-builder.git",
"reference": "7741c38ef6b4665c2692452b1668e14e19e331c6" "reference": "a86c7bd0307ba0b368510851e86082f773e64138"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/package-builder/zipball/7741c38ef6b4665c2692452b1668e14e19e331c6", "url": "https://api.github.com/repos/symplify/package-builder/zipball/a86c7bd0307ba0b368510851e86082f773e64138",
"reference": "7741c38ef6b4665c2692452b1668e14e19e331c6", "reference": "a86c7bd0307ba0b368510851e86082f773e64138",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/neon": "^3.2", "nette/neon": "^3.2",
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0", "php": ">=7.3",
"symfony/config": "^5.3", "symfony/config": "^4.4|^5.2",
"symfony/console": "^5.3", "symfony/console": "^4.4|^5.2",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symfony/finder": "^5.3", "symfony/finder": "^4.4|^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/easy-testing": "^9.4.27", "symplify/easy-testing": "^9.3.22",
"symplify/symplify-kernel": "^9.4.27" "symplify/symplify-kernel": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9.5"
}, },
"default-branch": true,
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7226,7 +7004,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Dependency Injection, Console and Kernel toolkit for Symplify packages.", "description": "Dependency Injection, Console and Kernel toolkit for Symplify packages.",
"support": { "support": {
"source": "https://github.com/symplify/package-builder/tree/9.4.27" "source": "https://github.com/symplify/package-builder/tree/main"
}, },
"funding": [ "funding": [
{ {
@ -7238,56 +7016,28 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:26:56+00:00" "time": "2021-06-10T09:30:06+00:00"
}, },
{ {
"name": "symplify/phpstan-extensions", "name": "symplify/phpstan-extensions",
"version": "9.4.27", "version": "v9.3.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/phpstan-extensions.git", "url": "https://github.com/symplify/phpstan-extensions.git",
"reference": "5f7a302039a4c2d3bf03b602d39b8dcc56dc6b7e" "reference": "e9c83ac50fe205f28bece8013d92f5a9130dc3d6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/phpstan-extensions/zipball/5f7a302039a4c2d3bf03b602d39b8dcc56dc6b7e", "url": "https://api.github.com/repos/symplify/phpstan-extensions/zipball/e9c83ac50fe205f28bece8013d92f5a9130dc3d6",
"reference": "5f7a302039a4c2d3bf03b602d39b8dcc56dc6b7e", "reference": "e9c83ac50fe205f28bece8013d92f5a9130dc3d6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0", "php": ">=7.3",
"phpstan/phpstan": "^0.12.91", "phpstan/phpstan": "^0.12.88",
"symplify/astral": "^9.4.27", "symplify/astral": "^9.3.21",
"symplify/package-builder": "^9.4.27", "symplify/package-builder": "^9.3.21",
"symplify/smart-file-system": "^9.4.27" "symplify/smart-file-system": "^9.3.21"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9.5"
@ -7295,7 +7045,7 @@
"type": "phpstan-extension", "type": "phpstan-extension",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
}, },
"phpstan": { "phpstan": {
"includes": ["config/config.neon"] "includes": ["config/config.neon"]
@ -7310,7 +7060,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Pre-escaped error messages in 'symplify' error format, container aware test case and other useful extensions for PHPStan", "description": "Pre-escaped error messages in 'symplify' error format, container aware test case and other useful extensions for PHPStan",
"support": { "support": {
"source": "https://github.com/symplify/phpstan-extensions/tree/9.4.27" "source": "https://github.com/symplify/phpstan-extensions/tree/v9.3.21"
}, },
"funding": [ "funding": [
{ {
@ -7322,74 +7072,49 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:27:21+00:00" "time": "2021-06-10T08:50:09+00:00"
}, },
{ {
"name": "symplify/phpstan-rules", "name": "symplify/phpstan-rules",
"version": "9.4.27", "version": "v9.3.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/phpstan-rules.git", "url": "https://github.com/symplify/phpstan-rules.git",
"reference": "4e6cd3f802f09b60856b9d4a7765a6097f5e64d1" "reference": "1fac85aa8621e29af083b49c71d8ce793ca4dd46"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/phpstan-rules/zipball/4e6cd3f802f09b60856b9d4a7765a6097f5e64d1", "url": "https://api.github.com/repos/symplify/phpstan-rules/zipball/1fac85aa8621e29af083b49c71d8ce793ca4dd46",
"reference": "4e6cd3f802f09b60856b9d4a7765a6097f5e64d1", "reference": "1fac85aa8621e29af083b49c71d8ce793ca4dd46",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/utils": "^3.2", "nette/utils": "^3.2",
"nikic/php-parser": "^4.11", "nikic/php-parser": "4.10.5",
"php": ">=8.0", "php": ">=7.3",
"phpstan/phpdoc-parser": "^0.5", "phpstan/phpdoc-parser": "^0.5",
"phpstan/phpstan": "^0.12.91", "phpstan/phpstan": "^0.12.88",
"symplify/astral": "^9.4.27", "symplify/astral": "^9.3.21",
"symplify/composer-json-manipulator": "^9.4.27", "symplify/composer-json-manipulator": "^9.3.21",
"symplify/package-builder": "^9.4.27", "symplify/package-builder": "^9.3.21",
"symplify/rule-doc-generator-contracts": "^9.4.27", "symplify/rule-doc-generator-contracts": "^9.3.21",
"symplify/simple-php-doc-parser": "^9.4.27", "symplify/simple-php-doc-parser": "^9.3.21",
"symplify/smart-file-system": "^9.4.27", "symplify/smart-file-system": "^9.3.21",
"webmozart/assert": "^1.10" "webmozart/assert": "^1.9"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"nette/application": "^3.1", "nette/application": "^3.1",
"nette/forms": "^3.1", "nette/forms": "^3.1",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"symfony/framework-bundle": "^5.3", "symfony/framework-bundle": "^4.4|^5.2",
"symplify/easy-testing": "^9.4.27", "symplify/easy-testing": "^9.3.21",
"symplify/phpstan-extensions": "^9.4.27", "symplify/phpstan-extensions": "^9.3.21",
"symplify/rule-doc-generator": "^9.4.27" "symplify/rule-doc-generator": "^9.3.21"
}, },
"type": "phpstan-extension", "type": "phpstan-extension",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
}, },
"phpstan": { "phpstan": {
"includes": [ "includes": [
@ -7410,7 +7135,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Set of Symplify rules for PHPStan", "description": "Set of Symplify rules for PHPStan",
"support": { "support": {
"source": "https://github.com/symplify/phpstan-rules/tree/9.4.27" "source": "https://github.com/symplify/phpstan-rules/tree/v9.3.21"
}, },
"funding": [ "funding": [
{ {
@ -7422,62 +7147,31 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:27:20+00:00" "time": "2021-06-10T08:50:10+00:00"
}, },
{ {
"name": "symplify/rule-doc-generator-contracts", "name": "symplify/rule-doc-generator-contracts",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/rule-doc-generator-contracts.git", "url": "https://github.com/symplify/rule-doc-generator-contracts.git",
"reference": "ce95243b6907ab5bf5d7190b426c4e47e8397254" "reference": "a6f944a49198ed3260bc941533629e917137e476"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/rule-doc-generator-contracts/zipball/ce95243b6907ab5bf5d7190b426c4e47e8397254", "url": "https://api.github.com/repos/symplify/rule-doc-generator-contracts/zipball/a6f944a49198ed3260bc941533629e917137e476",
"reference": "ce95243b6907ab5bf5d7190b426c4e47e8397254", "reference": "a6f944a49198ed3260bc941533629e917137e476",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"danielstjules/stringy": "^3.1", "danielstjules/stringy": "^3.1",
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0" "php": ">=7.3"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/package-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7489,7 +7183,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Contracts for production code of RuleDocGenerator", "description": "Contracts for production code of RuleDocGenerator",
"support": { "support": {
"source": "https://github.com/symplify/rule-doc-generator-contracts/tree/9.4.27" "source": "https://github.com/symplify/rule-doc-generator-contracts/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -7501,68 +7195,38 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:27:35+00:00" "time": "2021-06-06T16:17:29+00:00"
}, },
{ {
"name": "symplify/simple-php-doc-parser", "name": "symplify/simple-php-doc-parser",
"version": "9.4.27", "version": "v9.3.21",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/simple-php-doc-parser.git", "url": "https://github.com/symplify/simple-php-doc-parser.git",
"reference": "823e8653f4fe39b310d1e5b267ab66c707ef5c8c" "reference": "5668608067a6ee4f0513348bdb46319617288ce1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/simple-php-doc-parser/zipball/823e8653f4fe39b310d1e5b267ab66c707ef5c8c", "url": "https://api.github.com/repos/symplify/simple-php-doc-parser/zipball/5668608067a6ee4f0513348bdb46319617288ce1",
"reference": "823e8653f4fe39b310d1e5b267ab66c707ef5c8c", "reference": "5668608067a6ee4f0513348bdb46319617288ce1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0", "php": ">=7.3",
"phpstan/phpdoc-parser": "^0.5", "phpstan/phpdoc-parser": "^0.5",
"symfony/config": "^5.3", "symfony/config": "^4.4|^5.2",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/package-builder": "^9.4.27" "symplify/package-builder": "^9.3.21"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/smart-file-system": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"symplify/easy-testing": "^9.4.27" "symplify/easy-testing": "^9.3.21"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7574,7 +7238,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Service integration of phpstan/phpdoc-parser, with few extra goodies for practical simple use", "description": "Service integration of phpstan/phpdoc-parser, with few extra goodies for practical simple use",
"support": { "support": {
"source": "https://github.com/symplify/simple-php-doc-parser/tree/9.4.27" "source": "https://github.com/symplify/simple-php-doc-parser/tree/v9.3.21"
}, },
"funding": [ "funding": [
{ {
@ -7586,58 +7250,27 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:27:31+00:00" "time": "2021-06-10T08:50:34+00:00"
}, },
{ {
"name": "symplify/smart-file-system", "name": "symplify/smart-file-system",
"version": "9.4.27", "version": "v9.3.22",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/smart-file-system.git", "url": "https://github.com/symplify/smart-file-system.git",
"reference": "916987b19230dd416075183f56bc4dde473b2038" "reference": "a2a8d39fe46b01ead8d2af7368b0b36b68fac979"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/smart-file-system/zipball/916987b19230dd416075183f56bc4dde473b2038", "url": "https://api.github.com/repos/symplify/smart-file-system/zipball/a2a8d39fe46b01ead8d2af7368b0b36b68fac979",
"reference": "916987b19230dd416075183f56bc4dde473b2038", "reference": "a2a8d39fe46b01ead8d2af7368b0b36b68fac979",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"nette/utils": "^3.2", "nette/utils": "^3.2",
"php": ">=8.0", "php": ">=7.3",
"symfony/filesystem": "^5.3", "symfony/filesystem": "^4.4|^5.2",
"symfony/finder": "^5.3" "symfony/finder": "^4.4|^5.2"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/autowire-array-parameter": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/composer-json-manipulator": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/package-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/symplify-kernel": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"nette/finder": "^2.5", "nette/finder": "^2.5",
@ -7646,7 +7279,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7658,7 +7291,7 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Sanitized FileInfo with safe getRealPath() and other handy methods", "description": "Sanitized FileInfo with safe getRealPath() and other handy methods",
"support": { "support": {
"source": "https://github.com/symplify/smart-file-system/tree/9.4.27" "source": "https://github.com/symplify/smart-file-system/tree/v9.3.22"
}, },
"funding": [ "funding": [
{ {
@ -7670,66 +7303,40 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-08-11T09:27:38+00:00" "time": "2021-05-20T20:16:49+00:00"
}, },
{ {
"name": "symplify/symplify-kernel", "name": "symplify/symplify-kernel",
"version": "9.4.27", "version": "dev-main",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symplify/symplify-kernel.git", "url": "https://github.com/symplify/symplify-kernel.git",
"reference": "199dfc5ca3a1c4e2237a619e03aa4a970fff81d9" "reference": "966602555962ef929214be2459bfeef3d0ceb114"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symplify/symplify-kernel/zipball/199dfc5ca3a1c4e2237a619e03aa4a970fff81d9", "url": "https://api.github.com/repos/symplify/symplify-kernel/zipball/966602555962ef929214be2459bfeef3d0ceb114",
"reference": "199dfc5ca3a1c4e2237a619e03aa4a970fff81d9", "reference": "966602555962ef929214be2459bfeef3d0ceb114",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.0", "php": ">=7.3",
"symfony/console": "^5.3", "symfony/console": "^4.4|^5.2",
"symfony/dependency-injection": "^5.3", "symfony/dependency-injection": "^5.2",
"symfony/http-kernel": "^5.3", "symfony/http-kernel": "^4.4|^5.2",
"symplify/autowire-array-parameter": "^9.4.27", "symplify/autowire-array-parameter": "^9.3.22",
"symplify/composer-json-manipulator": "^9.4.27", "symplify/composer-json-manipulator": "^9.3.22",
"symplify/package-builder": "^9.4.27", "symplify/package-builder": "^9.3.22",
"symplify/smart-file-system": "^9.4.27" "symplify/smart-file-system": "^9.3.22"
},
"conflict": {
"symplify/amnesia": "<9.4.27",
"symplify/astral": "<9.4.27",
"symplify/coding-standard": "<9.4.27",
"symplify/config-transformer": "<9.4.27",
"symplify/console-color-diff": "<9.4.27",
"symplify/console-package-builder": "<9.4.27",
"symplify/easy-ci": "<9.4.27",
"symplify/easy-coding-standard": "<9.4.27",
"symplify/easy-hydrator": "<9.4.27",
"symplify/easy-testing": "<9.4.27",
"symplify/git-wrapper": "<9.4.27",
"symplify/markdown-diff": "<9.4.27",
"symplify/monorepo-builder": "<9.4.27",
"symplify/php-config-printer": "<9.4.27",
"symplify/phpstan-extensions": "<9.4.27",
"symplify/phpstan-rules": "<9.4.27",
"symplify/phpunit-upgrader": "<9.4.27",
"symplify/psr4-switcher": "<9.4.27",
"symplify/rule-doc-generator": "<9.4.27",
"symplify/rule-doc-generator-contracts": "<9.4.27",
"symplify/simple-php-doc-parser": "<9.4.27",
"symplify/skipper": "<9.4.27",
"symplify/symfony-php-config": "<9.4.27",
"symplify/symfony-static-dumper": "<9.4.27",
"symplify/vendor-patches": "<9.4.27"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5" "phpunit/phpunit": "^9.5"
}, },
"default-branch": true,
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "9.5-dev" "dev-main": "9.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -7741,22 +7348,22 @@
"license": ["MIT"], "license": ["MIT"],
"description": "Internal Kernel for Symplify packages", "description": "Internal Kernel for Symplify packages",
"support": { "support": {
"source": "https://github.com/symplify/symplify-kernel/tree/9.4.27" "source": "https://github.com/symplify/symplify-kernel/tree/main"
}, },
"time": "2021-08-11T09:27:56+00:00" "time": "2021-06-10T09:29:50+00:00"
}, },
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
"version": "1.2.1", "version": "1.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/theseer/tokenizer.git", "url": "https://github.com/theseer/tokenizer.git",
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" "reference": "75a63c33a8577608444246075ea0af0d052e452a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a",
"reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", "reference": "75a63c33a8577608444246075ea0af0d052e452a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7781,7 +7388,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": { "support": {
"issues": "https://github.com/theseer/tokenizer/issues", "issues": "https://github.com/theseer/tokenizer/issues",
"source": "https://github.com/theseer/tokenizer/tree/1.2.1" "source": "https://github.com/theseer/tokenizer/tree/master"
}, },
"funding": [ "funding": [
{ {
@ -7789,7 +7396,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-07-28T10:34:58+00:00" "time": "2020-07-12T23:59:07+00:00"
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
@ -7858,5 +7465,5 @@
"php": "^8.0" "php": "^8.0"
}, },
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.1.0" "plugin-api-version": "2.0.0"
} }

View file

@ -22,10 +22,11 @@ return static function (ContainerConfigurator $containerConfigurator): void {
__DIR__ . '/modules/**/Views/*', __DIR__ . '/modules/**/Views/*',
// skip specific generated files // skip specific generated files
__DIR__ . '/app/Language/*/PersonsTaxonomy.php', __DIR__ . '/modules/Admin/Language/*/PersonsTaxonomy.php',
StandardizeHereNowDocKeywordFixer::class => [ StandardizeHereNowDocKeywordFixer::class => [
__DIR__ . '/app/Views/Components', __DIR__ . '/app/View/Components',
__DIR__ . '/modules/**/View/Components',
] ]
]); ]);

View file

@ -824,9 +824,6 @@ class EpisodeController extends BaseController
public function attemptCommentReply(string $commentId): RedirectResponse public function attemptCommentReply(string $commentId): RedirectResponse
{ {
// var_dump($commentId);
// die();
$rules = [ $rules = [
'message' => 'required|max_length[500]', 'message' => 'required|max_length[500]',
]; ];

View file

@ -55,7 +55,10 @@ class PodcastPlatformController extends BaseController
replace_breadcrumb_params([ replace_breadcrumb_params([
0 => $this->podcast->title, 0 => $this->podcast->title,
]); ]);
return view('Modules\Admin\Views\podcast\platforms', $data);
$view = view('Modules\Admin\Views\podcast\platforms', $data);
return $view;
} }
public function attemptPlatformsUpdate(string $platformType): RedirectResponse public function attemptPlatformsUpdate(string $platformType): RedirectResponse

View file

@ -16,7 +16,7 @@
]) ?> ]) ?>
<?= csrf_field() ?> <?= csrf_field() ?>
<?= component('Forms/Label', ['text' => lang('Contributor.form.user')], ['for' => 'user']) ?> <Forms.Label for="user"><?= lang('Contributor.form.user') ?></Forms.Label>
<?= form_dropdown('user', $userOptions, [old('user', '')], [ <?= form_dropdown('user', $userOptions, [old('user', '')], [
'id' => 'user', 'id' => 'user',
'class' => 'form-select mb-4', 'class' => 'form-select mb-4',
@ -24,7 +24,7 @@
'placeholder' => lang('Contributor.form.user_placeholder') 'placeholder' => lang('Contributor.form.user_placeholder')
]) ?> ]) ?>
<?= component('Forms/Label', ['text' => lang('Contributor.form.role')], ['for' => 'role']) ?> <Forms.Label for="role"><?= lang('Contributor.form.role') ?></Forms.Label>
<?= form_dropdown('role', $roleOptions, [old('role', '')], [ <?= form_dropdown('role', $roleOptions, [old('role', '')], [
'id' => 'role', 'id' => 'role',
'class' => 'form-select mb-4', 'class' => 'form-select mb-4',

View file

@ -16,7 +16,7 @@
]) ?> ]) ?>
<?= csrf_field() ?> <?= csrf_field() ?>
<?= component('Forms/Label', ['text' => lang('Contributor.form.role')], ['for' => 'role']) ?> <Forms.Label for="role"><?= lang('Contributor.form.role') ?></Forms.Label>
<?= form_dropdown('role', $roleOptions, [old('role', $contributorGroupId)], [ <?= form_dropdown('role', $roleOptions, [old('role', $contributorGroupId)], [
'id' => 'role', 'id' => 'role',
'class' => 'form-select mb-4', 'class' => 'form-select mb-4',

View file

@ -28,11 +28,7 @@
lang('Episode.form.info_section_subtitle'), lang('Episode.form.info_section_subtitle'),
) ?> ) ?>
<?= component( <Forms.Label for="audio_file" hint="<?= lang('Episode.form.audio_file_hint') ?>"><?= lang('Episode.form.audio_file') ?></Forms.Label>
'Forms/Label',
['text' => lang('Episode.form.audio_file'), 'hint' => lang('Episode.form.audio_file_hint')],
['for' => 'audio_file'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'audio_file', 'id' => 'audio_file',
'name' => 'audio_file', 'name' => 'audio_file',
@ -42,15 +38,7 @@
'accept' => '.mp3,.m4a', 'accept' => '.mp3,.m4a',
]) ?> ]) ?>
<?= component( <Forms.Label for="image" hint="<?= lang('Episode.form.image_hint') ?>" isOptional="true"><?= lang('Episode.form.image') ?></Forms.Label>
'Forms/Label',
[
'text' => lang('Episode.form.image'),
'hint' => lang('Episode.form.image_hint'),
'isOptional' => true
],
['for' => 'image'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'image', 'id' => 'image',
'name' => 'image', 'name' => 'image',
@ -62,12 +50,7 @@
'Common.forms.image_size_hint', 'Common.forms.image_size_hint',
) ?></small> ) ?></small>
<?= component( <Forms.Label for="title" hint="<?= lang('Episode.form.title_hint') ?>"><?= lang('Episode.form.title') ?></Forms.Label>
'Forms/Label',
['text' => lang('Episode.form.title'),
'hint' => lang('Episode.form.title_hint')],
['for' => 'title'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'title', 'id' => 'title',
'name' => 'title', 'name' => 'title',
@ -77,11 +60,7 @@
'data-slugify' => 'title', 'data-slugify' => 'title',
]) ?> ]) ?>
<?= component( <Forms.Label for="slug"><?= lang('Episode.form.permalink') ?></Forms.Label>
'Forms/Label',
['text' => lang('Episode.form.permalink')],
['for' => 'slug']
) ?>
<permalink-edit class="inline-flex items-center mb-4 text-xs" edit-label="<?= lang('Common.edit') ?>" copy-label="<?= lang('Common.copy') ?>" copied-label="<?= lang('Common.copied') ?>"> <permalink-edit class="inline-flex items-center mb-4 text-xs" edit-label="<?= lang('Common.edit') ?>" copy-label="<?= lang('Common.copy') ?>" copied-label="<?= lang('Common.copied') ?>">
<span slot="domain"><?= base_url('/@'. $podcast->handle . '/episodes' ) . '/' ?></span> <span slot="domain"><?= base_url('/@'. $podcast->handle . '/episodes' ) . '/' ?></span>
<?= form_input([ <?= form_input([
@ -97,7 +76,7 @@
<div class="flex flex-col mb-4 gap-x-2 gap-y-4 md:flex-row"> <div class="flex flex-col mb-4 gap-x-2 gap-y-4 md:flex-row">
<div class="flex flex-col flex-1"> <div class="flex flex-col flex-1">
<?= component('Forms/Label', ['text' => lang('Episode.form.season_number')], ['for' => 'season_number']) ?> <Forms.Label for="season_number"><?= lang('Episode.form.season_number') ?></Forms.Label>
<?= form_input([ <?= form_input([
'id' => 'season_number', 'id' => 'season_number',
'name' => 'season_number', 'name' => 'season_number',
@ -107,7 +86,7 @@
]) ?> ]) ?>
</div> </div>
<div class="flex flex-col flex-1"> <div class="flex flex-col flex-1">
<?= component('Forms/Label', ['text' => lang('Episode.form.episode_number')], ['for' => 'episode_number']) ?> <Forms.Label for="episode_number"><?= lang('Episode.form.episode_number') ?></Forms.Label>
<?= form_input([ <?= form_input([
'id' => 'episode_number', 'id' => 'episode_number',
'name' => 'episode_number', 'name' => 'episode_number',
@ -204,46 +183,13 @@
) ?> ) ?>
<div class="mb-4"> <div class="mb-4">
<?= component('Forms/Label', ['text' => lang('Episode.form.description')], ['for' => 'description']) ?> <Forms.Label for="description"><?= lang('Episode.form.description') ?></Forms.Label>
<?= component( <Forms.MarkdownEditor id="description" name="description" required="required"><?= old('description', '', false) ?></Forms.MarkdownEditor>
'Forms/MarkdownEditor',
[
'content' => old('description', '', false),
],
[
'id' => 'description',
'name' => 'description',
'required' => 'required',
],
) ?>
</div> </div>
<div class="mb-4"> <div class="mb-4">
<?= component( 'Forms/Label', <Forms.Label for="description_footer" hint="<?= lang('Episode.form.description_footer_hint') ?>" isOptional="true"><?= lang('Episode.form.description_footer') ?></Forms.Label>
[ <Forms.MarkdownEditor id="description_footer" name="description_footer" rows="6"><?= old('description_footer', $podcast->episode_description_footer_markdown ?? '', false) ?></Forms.MarkdownEditor>
'text' => lang('Episode.form.description_footer'),
'hint' => lang('Episode.form.description_footer_hint'),
'isOptional' => true
],
[
'for' => 'description_footer'
],
) ?>
<?= component(
'Forms/MarkdownEditor',
[
'content' => old(
'description_footer',
$podcast->episode_description_footer_markdown ?? '',
false,
),
],
[
'id' => 'description_footer',
'name' => 'description_footer',
'rows' => 6
],
) ?>
</div> </div>
<?= form_section_close() ?> <?= form_section_close() ?>
@ -253,14 +199,7 @@
lang('Episode.form.location_section_subtitle'), lang('Episode.form.location_section_subtitle'),
) ?> ) ?>
<?= component( 'Forms/Label', <Forms.Label for="location_name" hint="<?= lang('Episode.form.location_name_hint') ?>" isOptional="true"><?= lang('Episode.form.location_name') ?></Forms.Label>
[
'text' => lang('Episode.form.location_name'),
'hint' => lang('Episode.form.location_name_hint'),
'isOptional' => true
],
['for' => 'location_name'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'location_name', 'id' => 'location_name',
'name' => 'location_name', 'name' => 'location_name',
@ -301,13 +240,7 @@
<div class="py-2 tab-panels"> <div class="py-2 tab-panels">
<section id="transcript-file-upload" class="flex items-center tab-panel"> <section id="transcript-file-upload" class="flex items-center tab-panel">
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="transcript_file" isOptional="true"><?= lang('Episode.form.transcript_file') ?></Forms.Label>
[
'text' => lang('Episode.form.transcript_file'),
'isOptional' => true
],
['for' => 'transcript_file', 'class' => 'sr-only'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'transcript_file', 'id' => 'transcript_file',
'name' => 'transcript_file', 'name' => 'transcript_file',
@ -317,13 +250,7 @@
]) ?> ]) ?>
</section> </section>
<section id="transcript-file-remote-url" class="tab-panel"> <section id="transcript-file-remote-url" class="tab-panel">
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="transcript_file_remote_url" isOptional="true"><?= lang('Episode.form.transcript_file_remote_url') ?></Forms.Label>
[
'text' => lang('Episode.form.transcript_file_remote_url'),
'isOptional' => true
],
['for' => 'transcript_file_remote_url', 'class' => 'sr-only'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'transcript_file_remote_url', 'id' => 'transcript_file_remote_url',
'name' => 'transcript_file_remote_url', 'name' => 'transcript_file_remote_url',
@ -364,13 +291,7 @@
<div class="py-2 tab-panels"> <div class="py-2 tab-panels">
<section id="chapters-file-upload" class="flex items-center tab-panel"> <section id="chapters-file-upload" class="flex items-center tab-panel">
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="chapters_file" isOptional="true"><?= lang('Episode.form.chapters_file') ?></Forms.Label>
[
'text' => lang('Episode.form.chapters_file'),
'isOptional' => true
],
['for' => 'chapters_file', 'class' => 'sr-only'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'chapters_file', 'id' => 'chapters_file',
'name' => 'chapters_file', 'name' => 'chapters_file',
@ -380,16 +301,7 @@
]) ?> ]) ?>
</section> </section>
<section id="chapters-file-remote-url" class="tab-panel"> <section id="chapters-file-remote-url" class="tab-panel">
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="chapters_file_remote_url" isOptional="true"><?= lang('Episode.form.chapters_file_remote_url') ?></Forms.Label>
[
'text' => lang('Episode.form.chapters_file_remote_url'),
'isOptional' => true
],
[
'for' => 'chapters_file_remote_url',
'class' => 'sr-only'
],
) ?>
<?= form_input([ <?= form_input([
'id' => 'chapters_file_remote_url', 'id' => 'chapters_file_remote_url',
'name' => 'chapters_file_remote_url', 'name' => 'chapters_file_remote_url',
@ -409,38 +321,12 @@
lang('Episode.form.advanced_section_title'), lang('Episode.form.advanced_section_title'),
lang('Episode.form.advanced_section_subtitle'), lang('Episode.form.advanced_section_subtitle'),
) ?> ) ?>
<?= component( 'Forms/Label', <Forms.Label for="custom_rss" hint="<?= lang('Episode.form.custom_rss_hint') ?>" isOptional="true"><?= lang('Episode.form.custom_rss') ?></Forms.Label>
[ <Forms.XMLEditor id="custom_rss" name="custom_rss"><?= old('custom_rss', '', false) ?></Forms.XMLEditor>
'text' => lang('Episode.form.custom_rss'),
'hint' => lang('Episode.form.custom_rss_hint'),
'isOptional' => true
],
['for' => 'custom_rss']
) ?>
<?= component('Forms/XMLEditor',
[
'content' => old('custom_rss', '')
],
[
'id' => 'custom_rss',
'name' => 'custom_rss',
]
) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
<?= component( <Forms.Toggler id="block" name="block" value="yes" checked="<?= old('block', false) ?>" hint="<?= lang('Episode.form.block_hint') ?>"><?= lang('Episode.form.block') ?></Forms.Toggler>
'Forms/Toggler',
[
'label' => lang('Episode.form.block'),
'hint' => lang('Episode.form.block_hint')
],
[
'id' => 'block',
'name' => 'block',
'value' => 'yes',
'checked' => old('block', false),
]
) ?>
<?= button( <?= button(
lang('Episode.form.submit_create'), lang('Episode.form.submit_create'),

View file

@ -35,12 +35,7 @@
/>', />',
) ?> ) ?>
<?= component( <Forms.Label for="audio_file" hint="<?= lang('Episode.form.audio_file_hint') ?>"><?= lang('Episode.form.audio_file') ?></Forms.Label>
'Forms/Label',
['text' =>
lang('Episode.form.audio_file'), 'hint' => lang('Episode.form.audio_file_hint'),],
['for' => 'audio_file'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'audio_file', 'id' => 'audio_file',
'name' => 'audio_file', 'name' => 'audio_file',
@ -49,14 +44,7 @@
'accept' => '.mp3,.m4a', 'accept' => '.mp3,.m4a',
]) ?> ]) ?>
<?= component( <Forms.Label for="image" hint="<?= lang('Episode.form.image_hint') ?>" isOptional="true"><?= lang('Episode.form.image') ?></Forms.Label>
'Forms/Label',
['text' =>
lang('Episode.form.image'), 'hint' => lang('Episode.form.image_hint'), 'isOptional' => true,],
['for' =>
'image',]
) ?>
<?= form_input([ <?= form_input([
'id' => 'image', 'id' => 'image',
'name' => 'image', 'name' => 'image',
@ -68,13 +56,7 @@
'Common.forms.image_size_hint', 'Common.forms.image_size_hint',
) ?></small> ) ?></small>
<?= component( <Forms.Label for="title" hint="<?= lang('Episode.form.title_hint') ?>"><?= lang('Episode.form.title') ?></Forms.Label>
'Forms/Label',
['text' =>
lang('Episode.form.title'), 'hint' => lang('Episode.form.title_hint'),],
['for' =>
'title',]
) ?>
<?= form_input([ <?= form_input([
'id' => 'title', 'id' => 'title',
'name' => 'title', 'name' => 'title',
@ -84,13 +66,7 @@
'data-slugify' => 'title', 'data-slugify' => 'title',
]) ?> ]) ?>
<?= component( <Forms.Label for="slug"><?= lang('Episode.form.permalink') ?></Forms.Label>
'Forms/Label',
[
'text' => lang('Episode.form.permalink')
],
['for' => 'slug',]
) ?>
<permalink-edit class="inline-flex items-center mb-4 text-xs" edit-label="<?= lang('Common.edit') ?>" copy-label="<?= lang('Common.copy') ?>" copied-label="<?= lang('Common.copied') ?>"> <permalink-edit class="inline-flex items-center mb-4 text-xs" edit-label="<?= lang('Common.edit') ?>" copy-label="<?= lang('Common.copy') ?>" copied-label="<?= lang('Common.copied') ?>">
<span slot="domain"><?= base_url('/@' . $podcast->handle . '/episodes') . '/' ?></span> <span slot="domain"><?= base_url('/@' . $podcast->handle . '/episodes') . '/' ?></span>
<?= form_input([ <?= form_input([
@ -106,7 +82,7 @@
<div class="flex flex-col mb-4 gap-x-2 gap-y-4 md:flex-row"> <div class="flex flex-col mb-4 gap-x-2 gap-y-4 md:flex-row">
<div class="flex flex-col flex-1"> <div class="flex flex-col flex-1">
<?= component('Forms/Label', ['text' => lang('Episode.form.season_number')], ['for' => 'season_number']) ?> <Forms.Label for="season_number"><?= lang('Episode.form.season_number') ?></Forms.Label>
<?= form_input([ <?= form_input([
'id' => 'season_number', 'id' => 'season_number',
'name' => 'season_number', 'name' => 'season_number',
@ -116,7 +92,7 @@
]) ?> ]) ?>
</div> </div>
<div class="flex flex-col flex-1"> <div class="flex flex-col flex-1">
<?= component('Forms/Label', ['text' => lang('Episode.form.episode_number')], ['for' => 'episode_number']) ?> <Forms.Label for="episode_number"><?= lang('Episode.form.episode_number') ?></Forms.Label>
<?= form_input([ <?= form_input([
'id' => 'episode_number', 'id' => 'episode_number',
'name' => 'episode_number', 'name' => 'episode_number',
@ -216,44 +192,13 @@
) ?> ) ?>
<div class="mb-4"> <div class="mb-4">
<?= component('Forms/Label', ['text' => lang('Episode.form.description')], ['for' => 'description']) ?> <Forms.Label for="description"><?= lang('Episode.form.description') ?></Forms.Label>
<?= component( <Forms.MarkdownEditor id="description" name="description" required="required"><?= old('description', $episode->description_markdown, false) ?></Forms.MarkdownEditor>
'Forms/MarkdownEditor',
[
'content' => old('description', $episode->description_markdown, false),
],
[
'id' => 'description',
'name' => 'description',
'required' => 'required',
],
) ?>
</div> </div>
<div class="mb-4"> <div class="mb-4">
<?= component('Forms/Label', <Forms.Label for="description_footer" hint="<?= lang('Episode.form.description_footer_hint') ?>" isOptional="true"><?= lang('Episode.form.description_footer') ?></Forms.Label>
[ <Forms.MarkdownEditor id="description_footer" name="description_footer" rows="6"><?= old('description_footer', $podcast->episode_description_footer_markdown ?? '', false) ?></Forms.MarkdownEditor>
'text' => lang('Episode.form.description_footer'),
'hint' => lang('Episode.form.description_footer_hint'),
'isOptional' => true
],
['for' => 'description_footer'],
) ?>
<?= component(
'Forms/MarkdownEditor',
[
'content' => old(
'description_footer',
$podcast->episode_description_footer_markdown ?? '',
false,
),
],
[
'id' => 'description_footer',
'name' => 'description_footer',
'rows' => 6
],
) ?>
</div> </div>
<?= form_section_close() ?> <?= form_section_close() ?>
@ -263,14 +208,7 @@
lang('Episode.form.location_section_subtitle'), lang('Episode.form.location_section_subtitle'),
) ?> ) ?>
<?= component('Forms/Label', <Forms.Label for="location_name" hint="<?= lang('Episode.form.location_name_hint') ?>" isOptional="true"><?= lang('Episode.form.location_name') ?></Forms.Label>
[
'text' => lang('Episode.form.location_name'),
'hint' => lang('Episode.form.location_name_hint'),
'isOptional' => true
],
['for' => 'location_name']
) ?>
<?= form_input([ <?= form_input([
'id' => 'location_name', 'id' => 'location_name',
'name' => 'location_name', 'name' => 'location_name',
@ -342,13 +280,7 @@
) ?> ) ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="transcript_file" isOptional="true"><?= lang('Episode.form.transcript_file') ?></Forms.Label>
[
'text' => lang('Episode.form.transcript_file'),
'isOptional' => true
],
['for' => 'transcript_file', 'class' => 'sr-only'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'transcript_file', 'id' => 'transcript_file',
'name' => 'transcript_file', 'name' => 'transcript_file',
@ -358,13 +290,7 @@
]) ?> ]) ?>
</section> </section>
<section id="transcript-file-remote-url" class="tab-panel"> <section id="transcript-file-remote-url" class="tab-panel">
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="transcript_file_remote_url" isOptional="true"><?= lang('Episode.form.transcript_file_remote_url') ?></Forms.Label>
[
'text' => lang('Episode.form.transcript_file_remote_url'),
'isOptional' => true
],
['for' => 'transcript_file_remote_url', 'class' => 'sr-only'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'transcript_file_remote_url', 'id' => 'transcript_file_remote_url',
'name' => 'transcript_file_remote_url', 'name' => 'transcript_file_remote_url',
@ -434,13 +360,7 @@
) ?> ) ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="chapters_file" isOptional="true"><?= lang('Episode.form.chapters_file') ?></Forms.Label>
[
'text' => lang('Episode.form.chapters_file'),
'isOptional' => true
],
['for' => 'chapters_file', 'class' => 'sr-only'],
) ?>
<?= form_input([ <?= form_input([
'id' => 'chapters_file', 'id' => 'chapters_file',
'name' => 'chapters_file', 'name' => 'chapters_file',
@ -450,16 +370,7 @@
]) ?> ]) ?>
</section> </section>
<section id="chapters-file-remote-url" class="tab-panel"> <section id="chapters-file-remote-url" class="tab-panel">
<?= component( 'Forms/Label', <Forms.Label class="sr-only" for="chapters_file_remote_url" isOptional="true"><?= lang('Episode.form.chapters_file_remote_url') ?></Forms.Label>
[
'text' => lang('Episode.form.chapters_file_remote_url'),
'isOptional' => true
],
[
'for' => 'chapters_file_remote_url',
'class' => 'sr-only'
],
) ?>
<?= form_input([ <?= form_input([
'id' => 'chapters_file_remote_url', 'id' => 'chapters_file_remote_url',
'name' => 'chapters_file_remote_url', 'name' => 'chapters_file_remote_url',
@ -482,40 +393,12 @@
lang('Episode.form.advanced_section_title'), lang('Episode.form.advanced_section_title'),
lang('Episode.form.advanced_section_subtitle'), lang('Episode.form.advanced_section_subtitle'),
) ?> ) ?>
<?= component('Forms/Label', <Forms.Label for="custom_rss" hint="<?= lang('Episode.form.custom_rss_hint') ?>" isOptional="true"><?= lang('Episode.form.custom_rss') ?></Forms.Label>
[ <Forms.XMLEditor id="custom_rss" name="custom_rss"><?= old('custom_rss', $episode->custom_rss_string, false) ?></Forms.XMLEditor>
'text' => lang('Episode.form.custom_rss'),
'hint' => lang('Episode.form.custom_rss_hint'),
'isOptional' => true,
],
[
'for' => 'custom_rss',
]
) ?>
<?= component('Forms/XMLEditor',
[
'content' => old('custom_rss', $episode->custom_rss_string)
],
[
'id' => 'custom_rss',
'name' => 'custom_rss',
]
) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
<?= component( <Forms.Toggler id="block" name="block" value="yes" checked="<?= old('block', $episode->is_blocked) ?>" hint="<?= lang('Episode.form.block_hint') ?>"><?= lang('Episode.form.block') ?></Forms.Toggler>
'Forms/Toggler',
[
'label' => lang('Episode.form.block'),
'hint' => lang('Episode.form.block_hint')
],
[
'id' => 'block',
'name' => 'block',
'value' => 'yes',
'checked' => old('block', $episode->is_blocked),
]
) ?>
<?= button( <?= button(
lang('Episode.form.submit_edit'), lang('Episode.form.submit_edit'),

View file

@ -95,28 +95,11 @@
lang('Person.episode_form.add_section_subtitle'), lang('Person.episode_form.add_section_subtitle'),
) ?> ) ?>
<?= component( <Forms.Label for="persons" hint="<?= lang('Person.episode_form.persons_hint') ?>"><?= lang('Person.episode_form.persons') ?></Forms.Label>
'Forms/Label', <Forms.MultiSelect id="persons" name="persons[]" class="mb-4" required="required" options="<?= htmlspecialchars(json_encode($personOptions)) ?>" selected="<?= htmlspecialchars(json_encode(old('persons', []))) ?>"/>
['text' => lang('Person.episode_form.persons'), 'hint' => lang('Person.episode_form.persons_hint')],
['for' => 'persons'],
) ?>
<?= component('Forms/MultiSelect', ['options' => $personOptions, 'selected' => old('persons', [])], [
'id' => 'persons',
'name' => 'persons[]',
'class' => 'mb-4',
'required' => 'required',
]) ?>
<?= component( <Forms.Label for="roles" hint="<?= lang('Person.episode_form.roles_hint') ?>" isOptional="true"><?= lang('Person.episode_form.roles') ?></Forms.Label>
'Forms/Label', <Forms.MultiSelect id="roles" name="roles[]" class="mb-4" options="<?= htmlspecialchars(json_encode($taxonomyOptions)) ?>" selected="<?= htmlspecialchars(json_encode(old('roles', []))) ?>"/>
['text' => lang('Person.episode_form.roles'), 'hint' => lang('Person.episode_form.roles_hint'), 'isOptional' => true],
['for' => 'roles'],
) ?>
<?= component('Forms/MultiSelect', ['options' => $taxonomyOptions, 'selected' => old('roles', [])], [
'id' => 'roles',
'name' => 'roles[]',
'class' => 'mb-4',
]) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
<?= button( <?= button(

View file

@ -46,18 +46,7 @@
<div class="mb-4"> <div class="mb-4">
<?= form_label(lang('Page.form.content'), 'content') ?> <?= form_label(lang('Page.form.content'), 'content') ?>
<?= component( <Forms.MarkdownEditor id="content" name="content" required="required" rows="20"><?= old('content', '', false) ?></Forms.MarkdownEditor>
'Forms/MarkdownEditor',
[
'content' => old('content', '', false)
],
[
'id' => 'content',
'name' => 'content',
'required' => 'required',
'rows' => 20
],
) ?>
</div> </div>

View file

@ -46,17 +46,7 @@
<div class="mb-4"> <div class="mb-4">
<?= form_label(lang('Page.form.content'), 'content') ?> <?= form_label(lang('Page.form.content'), 'content') ?>
<?= component( <Forms.MarkdownEditor id="content" name="content" required="required"><?= old('content', $page->content_markdown, false) ?></Forms.MarkdownEditor>
'Forms/MarkdownEditor',
[
'content' => old('content', $page->content_markdown, false),
],
[
'id' => 'content',
'name' => 'content',
'required' => 'required',
],
) ?>
</div> </div>
<?= button( <?= button(

View file

@ -1,3 +1,6 @@
<?php
?>
<?= $this->extend('Modules\Admin\Views\_layout') ?> <?= $this->extend('Modules\Admin\Views\_layout') ?>
<?= $this->section('title') ?> <?= $this->section('title') ?>
@ -81,18 +84,8 @@
<?= form_fieldset_close() ?> <?= form_fieldset_close() ?>
<div class="mb-4"> <div class="mb-4">
<?= form_label(lang('Podcast.form.description'), 'description') ?> <Forms.Label for="description"><?= lang('Podcast.form.description') ?></Forms.Label>
<?= component( <Forms.MarkdownEditor id="description" name="description" required="required"><?= old('description', '', false) ?></Forms.MarkdownEditor>
'Forms/MarkdownEditor',
[
'content' => old('description', '', false),
],
[
'id' => 'description',
'name' => 'description',
'required' => 'required',
],
) ?>
</div> </div>
<?= form_section_close() ?> <?= form_section_close() ?>
@ -125,12 +118,13 @@
'', '',
true, true,
) ?> ) ?>
<?= component('Forms/MultiSelect', ['options' => $categoryOptions, 'selected' => old('other_categories', [])], [ <Forms.MultiSelect
'id' => 'other_categories', id="other_categories"
'name' => 'other_categories[]', name="other_categories[]"
'class' => 'mb-4', class="mb-4"
'data-max-item-count' => '2', data-max-item-count="2"
]) ?> selected="<?= htmlspecialchars(json_encode(old('other_categories', []))) ?>"
options="<?= htmlspecialchars(json_encode($categoryOptions)) ?>" />
<?= form_fieldset('', ['class' => 'mb-4']) ?> <?= form_fieldset('', ['class' => 'mb-4']) ?>
<legend> <legend>
@ -339,15 +333,8 @@
lang('Podcast.form.custom_rss_hint'), lang('Podcast.form.custom_rss_hint'),
true, true,
) ?> ) ?>
<?= component('Forms/XMLEditor', <Forms.XMLEditor id="custom_rss" name="custom_rss"><?= old('custom_rss', '', false) ?></Forms.XMLEditor>
[
'content' => old('custom_rss', '')
],
[
'id' => 'custom_rss',
'name' => 'custom_rss',
]
) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
<?= form_section( <?= form_section(
@ -355,47 +342,15 @@
lang('Podcast.form.status_section_subtitle'), lang('Podcast.form.status_section_subtitle'),
) ?> ) ?>
<?= component( <Forms.Toggler class="mb-2" id="lock" name="lock" value="yes" checked="<?= old('complete', true) ?>" hint="<?= lang('Podcast.form.lock_hint') ?>">
'Forms/Toggler', <?= lang('Podcast.form.lock') ?>
[ </Forms.Toggler>
'label' => lang('Podcast.form.lock'), <Forms.Toggler class="mb-2" id="block" name="block" value="yes" checked="<?= old('complete', false) ?>">
'hint' => lang('Podcast.form.lock_hint'), <?= lang('Podcast.form.block') ?>
], </Forms.Toggler>
[ <Forms.Toggler id="complete" name="complete" value="yes" checked="<?= old('complete', false) ?>">
'id' => 'lock', <?= lang('Podcast.form.complete') ?>
'name' => 'lock', </Forms.Toggler>
'value' => 'yes',
'checked' => old('complete', true),
'class' => 'mb-2'
]
) ?>
<?= component(
'Forms/Toggler',
[
'label' => lang('Podcast.form.block'),
],
[
'id' => 'block',
'name' => 'block',
'value' => 'yes',
'checked' => old('block', false),
'class' => 'mb-2'
]
) ?>
<?= component(
'Forms/Toggler',
[
'label' => lang('Podcast.form.complete'),
],
[
'id' => 'complete',
'name' => 'complete',
'value' => 'yes',
'checked' => old('complete', false),
]
) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
@ -406,7 +361,6 @@
['type' => 'submit', 'class' => 'self-end'], ['type' => 'submit', 'class' => 'self-end'],
) ?> ) ?>
<?= form_close() ?> <?= form_close() ?>

View file

@ -1,3 +1,6 @@
<?php
?>
<?= $this->extend('Modules\Admin\Views\_layout') ?> <?= $this->extend('Modules\Admin\Views\_layout') ?>
<?= $this->section('title') ?> <?= $this->section('title') ?>
@ -11,7 +14,7 @@
<?= $this->section('content') ?> <?= $this->section('content') ?>
<?= form_open_multipart(route_to('podcast-edit', $podcast->id), [ <?= form_open_multipart((string) route_to('podcast-edit', $podcast->id), [
'method' => 'post', 'method' => 'post',
'class' => 'flex flex-col', 'class' => 'flex flex-col',
]) ?> ]) ?>
@ -24,7 +27,6 @@
) ?> ) ?>
<?= form_label(lang('Podcast.form.image'), 'image') ?> <?= form_label(lang('Podcast.form.image'), 'image') ?>
<img src="<?= $podcast->image->thumbnail_url ?>" alt="<?= $podcast->title ?>" class="object-cover w-32 h-32" /> <img src="<?= $podcast->image->thumbnail_url ?>" alt="<?= $podcast->title ?>" class="object-cover w-32 h-32" />
<?= form_input([ <?= form_input([
'id' => 'image', 'id' => 'image',
@ -71,18 +73,8 @@
<?= form_fieldset_close() ?> <?= form_fieldset_close() ?>
<div class="mb-4"> <div class="mb-4">
<?= form_label(lang('Podcast.form.description'), 'description') ?> <Forms.Label for="description"><?= lang('Podcast.form.description') ?></Forms.Label>
<?= component( <Forms.MarkdownEditor id="description" name="description" required="required"><?= old('description', $podcast->description_markdown, false) ?></Forms.MarkdownEditor>
'Forms/MarkdownEditor',
[
'content' => old('description', $podcast->description_markdown, false)
],
[
'id' => 'description',
'name' => 'description',
'required' => 'required',
],
) ?>
</div> </div>
<?= form_section_close() ?> <?= form_section_close() ?>
@ -125,12 +117,13 @@ lang('Podcast.form.classification_section_subtitle'),
true, true,
) ?> ) ?>
<?= component('Forms/MultiSelect', ['options' => $categoryOptions, 'selected' => old('other_categories', $podcast->other_categories_ids)], [ <Forms.MultiSelect
'id' => 'other_categories', id="other_categories"
'name' => 'other_categories[]', name="other_categories[]"
'class' => 'mb-4', class="mb-4"
'data-max-item-count' => '2', data-max-item-count="2"
]) ?> selected="<?= json_encode(old('other_categories', $podcast->other_categories_ids)) ?>"
options="<?= htmlspecialchars(json_encode($categoryOptions)) ?>" />
<?= form_fieldset('', ['class' => 'mb-4']) ?> <?= form_fieldset('', ['class' => 'mb-4']) ?>
<legend><?= lang('Podcast.form.parental_advisory.label') . <legend><?= lang('Podcast.form.parental_advisory.label') .
@ -349,16 +342,7 @@ lang('Podcast.form.classification_section_subtitle'),
lang('Podcast.form.custom_rss_hint'), lang('Podcast.form.custom_rss_hint'),
true, true,
) ?> ) ?>
<Forms.XMLEditor id="custom_rss" name="custom_rss"><?= old('custom_rss', $podcast->custom_rss_string, false) ?></Forms.XMLEditor>
<?= component('Forms/XMLEditor',
[
'content' => old('custom_rss', $podcast->custom_rss_string)
],
[
'id' => 'custom_rss',
'name' => 'custom_rss',
]
) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
@ -367,61 +351,21 @@ lang('Podcast.form.classification_section_subtitle'),
lang('Podcast.form.status_section_subtitle'), lang('Podcast.form.status_section_subtitle'),
) ?> ) ?>
<?= component( <Forms.Toggler class="mb-2" id="lock" name="lock" value="yes" checked="<?= old('complete', $podcast->is_locked) ?>" hint="<?= lang('Podcast.form.lock_hint') ?>">
'Forms/Toggler', <?= lang('Podcast.form.lock') ?>
[ </Forms.Toggler>
'label' => lang('Podcast.form.lock'), <Forms.Toggler class="mb-2" id="block" name="block" value="yes" checked="<?= old('complete', $podcast->is_blocked) ?>">
'hint' => lang('Podcast.form.lock_hint'), <?= lang('Podcast.form.block') ?>
], </Forms.Toggler>
[ <Forms.Toggler id="complete" name="complete" value="yes" checked="<?= old('complete', $podcast->is_completed) ?>">
'id' => 'lock', <?= lang('Podcast.form.complete') ?>
'name' => 'lock', </Forms.Toggler>
'value' => 'yes',
'checked' => old('complete', $podcast->is_locked),
'class' => 'mb-2'
]
) ?>
<?= component(
'Forms/Toggler',
[
'label' => lang('Podcast.form.block'),
],
[
'id' => 'block',
'name' => 'block',
'value' => 'yes',
'checked' => old('block', $podcast->is_blocked),
'class' => 'mb-2'
]
) ?>
<?= component(
'Forms/Toggler',
[
'label' => lang('Podcast.form.complete'),
],
[
'id' => 'complete',
'name' => 'complete',
'value' => 'yes',
'checked' => old('complete', $podcast->is_completed),
]
) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
<?= component( <Button variant="primary" type="submit" class="self-end" iconLeft="heart">
'Button', <?= lang('Podcast.form.submit_edit') ?>
[ </Button>
'label' => lang('Podcast.form.submit_edit'),
'variant' => 'primary',
],
[
'type' => 'submit',
'class' => 'self-end'
]
) ?>
<?= form_close() ?> <?= form_close() ?>

View file

@ -99,13 +99,7 @@
[], [],
lang('Person.podcast_form.persons_hint'), lang('Person.podcast_form.persons_hint'),
) ?> ) ?>
<?= component('Forms/MultiSelect', ['options' => $personOptions, 'selected' => old('persons', [])], [ <Forms.MultiSelect id="persons" name="persons[]" class="mb-4" required="required" options="<?= htmlspecialchars(json_encode($personOptions)) ?>" selected="<?= htmlspecialchars(json_encode(old('persons', []))) ?>"/>
'id' => 'persons',
'name' => 'persons[]',
'class' => 'mb-4',
'required' => 'required',
'data-max-item-count' => '2',
]) ?>
<?= form_label( <?= form_label(
lang('Person.podcast_form.roles'), lang('Person.podcast_form.roles'),
@ -114,11 +108,7 @@
lang('Person.podcast_form.roles_hint'), lang('Person.podcast_form.roles_hint'),
true, true,
) ?> ) ?>
<?= component('Forms/MultiSelect', ['options' => $taxonomyOptions, 'selected' => old('roles', [])], [ <Forms.MultiSelect id="roles" name="roles[]" class="mb-4" options="<?= htmlspecialchars(json_encode($taxonomyOptions)) ?>" selected="<?= htmlspecialchars(json_encode(old('roles', []))) ?>"/>
'id' => 'roles',
'name' => 'roles[]',
'class' => 'mb-4',
]) ?>
<?= form_section_close() ?> <?= form_section_close() ?>
<?= button( <?= button(

View file

@ -103,40 +103,8 @@
'type' => 'text', 'type' => 'text',
'placeholder' => lang("Platforms.description.{$platform->type}"), 'placeholder' => lang("Platforms.description.{$platform->type}"),
]) ?> ]) ?>
<?= component( <Forms.Toggler class="mb-1 text-sm" id="<?= $platform->slug . '_visible' ?>" name="<?= 'platforms[' . $platform->slug . '][visible]'?>" value="yes" checked="<?= old($platform->slug . '_visible', $platform->is_visible ? $platform->is_visible : false ) ?>"><?= lang('Platforms.visible') ?></Forms.Toggler>
'Forms/Toggler', <Forms.Toggler class="text-sm" id="<?= $platform->slug . '_on_embeddable_player' ?>" name="<?= 'platforms[' . $platform->slug . '][on_embeddable_player]'?>" value="yes" checked="<?= old($platform->slug . '_on_embeddable_player', $platform->is_on_embeddable_player ? $platform->is_on_embeddable_player : false ) ?>"><?= lang('Platforms.on_embeddable_player') ?></Forms.Toggler>
[
'label' => lang('Platforms.visible'),
],
[
'id' => $platform->slug . '_visible',
'name' => 'platforms[' . $platform->slug . '][visible]',
'value' => 'yes',
'checked' => old(
$platform->slug . '_visible',
$platform->is_visible ? $platform->is_visible : false,
),
'class' => 'text-sm mb-1'
]
) ?>
<?= component(
'Forms/Toggler',
[
'label' => lang('Platforms.on_embeddable_player'),
],
[
'id' => $platform->slug . '_on_embeddable_player',
'name' => 'platforms[' . $platform->slug . '][on_embeddable_player]',
'value' => 'yes',
'checked' => old(
$platform->slug . '_on_embeddable_player',
$platform->is_on_embeddable_player
? $platform->is_on_embeddable_player
: false,
),
'class' => 'text-sm'
]
) ?>
</div> </div>
</div> </div>

View file

@ -17,11 +17,7 @@
<?= csrf_field() ?> <?= csrf_field() ?>
<?= form_label(lang('User.form.roles'), 'roles') ?> <?= form_label(lang('User.form.roles'), 'roles') ?>
<?= component('Forms/MultiSelect', ['options' => $roleOptions, 'selected' => $user->roles], [ <Forms.MultiSelect id="roles" name="roles[]" class="mb-4" required="required" options="<?= htmlspecialchars(json_encode($roleOptions)) ?>" selected="<?= htmlspecialchars(json_encode($user->roles)) ?>"/>
'id' => 'roles',
'name' => 'roles[]',
'class' => 'mb-4',
]) ?>
<?= button( <?= button(
lang('User.form.submit_edit'), lang('User.form.submit_edit'),

View file

@ -30,7 +30,7 @@ class Analytics extends BaseConfig
* *
* @param string|string[] $audioFilePath * @param string|string[] $audioFilePath
*/ */
public function getAudioFileUrl(string|array $audioFilePath): string public function getAudioFileUrl(string | array $audioFilePath): string
{ {
helper('media'); helper('media');

View file

@ -238,13 +238,13 @@ class AuthSeeder extends Seeder
[ [
'name' => 'block_actors', 'name' => 'block_actors',
'description' => 'description' =>
'Block an activitypub actors from interacting with the instance.', 'Block fediverse actors from interacting with the instance.',
'has_permission' => ['superadmin'], 'has_permission' => ['superadmin'],
], ],
[ [
'name' => 'block_domains', 'name' => 'block_domains',
'description' => 'description' =>
'Block an activitypub domains from interacting with the instance.', 'Block fediverse domains from interacting with the instance.',
'has_permission' => ['superadmin'], 'has_permission' => ['superadmin'],
], ],
], ],

View file

@ -18,7 +18,7 @@ class Fediverse extends BaseConfig
{ {
/** /**
* -------------------------------------------------------------------- * --------------------------------------------------------------------
* ActivityPub Objects * Fediverse Objects
* -------------------------------------------------------------------- * --------------------------------------------------------------------
*/ */
public string $actorObject = ActorObject::class; public string $actorObject = ActorObject::class;
@ -38,6 +38,8 @@ class Fediverse extends BaseConfig
public string $defaultCoverImageMimetype = 'image/jpeg'; public string $defaultCoverImageMimetype = 'image/jpeg';
public string $tablesPrefix = 'fediverse_';
/** /**
* -------------------------------------------------------------------- * --------------------------------------------------------------------
* Cache options * Cache options

View file

@ -18,7 +18,7 @@ $routes->addPlaceholder(
$routes->addPlaceholder('postAction', '\bfavourite|\breblog|\breply'); $routes->addPlaceholder('postAction', '\bfavourite|\breblog|\breply');
/** /**
* ActivityPub routes file * Fediverse routes file
*/ */
$routes->group('', [ $routes->group('', [

View file

@ -26,11 +26,11 @@ class ActorController extends Controller
/** /**
* @var string[] * @var string[]
*/ */
protected $helpers = ['activitypub']; protected $helpers = ['fediverse'];
protected Actor $actor; protected Actor $actor;
protected ActivityPub $config; protected Fediverse $config;
public function __construct() public function __construct()
{ {
@ -298,11 +298,14 @@ class ActorController extends Controller
*/ */
public function followers(): ResponseInterface public function followers(): ResponseInterface
{ {
$tablesPrefix = config('Fediverse')
->tablesPrefix;
// get followers for a specific actor // get followers for a specific actor
$followers = model('ActorModel') $followers = model('ActorModel')
->join('activitypub_follows', 'activitypub_follows.actor_id = id', 'inner') ->join($tablesPrefix . 'follows', $tablesPrefix . 'follows.actor_id = id', 'inner')
->where('activitypub_follows.target_actor_id', $this->actor->id) ->where($tablesPrefix . 'follows.target_actor_id', $this->actor->id)
->orderBy('activitypub_follows.created_at', 'DESC'); ->orderBy($tablesPrefix . 'follows.created_at', 'DESC');
$pageNumber = (int) $this->request->getGet('page'); $pageNumber = (int) $this->request->getGet('page');
@ -343,7 +346,7 @@ class ActorController extends Controller
helper('text'); helper('text');
// get webfinger data from actor // get webfinger data from actor
// parse activityPub id to get actor and domain // parse actor id to get actor and domain
// check if actor and domain exist // check if actor and domain exist
if ( if (
@ -353,7 +356,7 @@ class ActorController extends Controller
return redirect() return redirect()
->back() ->back()
->withInput() ->withInput()
->with('error', lang('ActivityPub.follow.accountNotFound')); ->with('error', lang('Fediverse.follow.accountNotFound'));
} }
$ostatusKey = array_search( $ostatusKey = array_search(

View file

@ -18,7 +18,7 @@ class BlockController extends Controller
/** /**
* @var string[] * @var string[]
*/ */
protected $helpers = ['activitypub']; protected $helpers = ['fediverse'];
public function attemptBlockActor(): RedirectResponse public function attemptBlockActor(): RedirectResponse
{ {

View file

@ -16,6 +16,7 @@ use CodeIgniter\HTTP\RedirectResponse;
use CodeIgniter\HTTP\Response; use CodeIgniter\HTTP\Response;
use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\HTTP\ResponseInterface;
use CodeIgniter\I18n\Time; use CodeIgniter\I18n\Time;
use Modules\Fediverse\Config\Fediverse;
use Modules\Fediverse\Entities\Post; use Modules\Fediverse\Entities\Post;
use Modules\Fediverse\Objects\OrderedCollectionObject; use Modules\Fediverse\Objects\OrderedCollectionObject;
use Modules\Fediverse\Objects\OrderedCollectionPage; use Modules\Fediverse\Objects\OrderedCollectionPage;
@ -25,11 +26,11 @@ class PostController extends Controller
/** /**
* @var string[] * @var string[]
*/ */
protected $helpers = ['activitypub']; protected $helpers = ['fediverse'];
protected Post $post; protected Post $post;
protected ActivityPub $config; protected Fediverse $config;
public function __construct() public function __construct()
{ {
@ -229,7 +230,7 @@ class PostController extends Controller
helper('text'); helper('text');
// get webfinger data from actor // get webfinger data from actor
// parse activityPub id to get actor and domain // parse actor id to get actor and domain
// check if actor and domain exist // check if actor and domain exist
if ( if (
! ($parts = split_handle($this->request->getPost('handle'))) || ! ($parts = split_handle($this->request->getPost('handle'))) ||
@ -238,7 +239,7 @@ class PostController extends Controller
return redirect() return redirect()
->back() ->back()
->withInput() ->withInput()
->with('error', lang('ActivityPub.follow.accountNotFound')); ->with('error', lang('Fediverse.follow.accountNotFound'));
} }
$ostatusKey = array_search( $ostatusKey = array_search(

View file

@ -17,7 +17,7 @@ class SchedulerController extends Controller
/** /**
* @var string[] * @var string[]
*/ */
protected $helpers = ['activitypub']; protected $helpers = ['fediverse'];
public function activity(): void public function activity(): void
{ {

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddActors Creates activitypub_actors table in database * Class AddActors Creates actors table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -113,11 +113,11 @@ class AddActors extends Migration
$this->forge->addPrimaryKey('id'); $this->forge->addPrimaryKey('id');
$this->forge->addUniqueKey('uri'); $this->forge->addUniqueKey('uri');
$this->forge->addUniqueKey(['username', 'domain']); $this->forge->addUniqueKey(['username', 'domain']);
$this->forge->createTable('activitypub_actors'); $this->forge->createTable(config('Fediverse')->tablesPrefix . 'actors');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_actors'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'actors');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddPosts Creates activitypub_posts table in database * Class AddPosts Creates posts table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -74,18 +74,22 @@ class AddPosts extends Migration
'type' => 'DATETIME', 'type' => 'DATETIME',
], ],
]); ]);
$tablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addPrimaryKey('id'); $this->forge->addPrimaryKey('id');
$this->forge->addUniqueKey('uri'); $this->forge->addUniqueKey('uri');
// FIXME: an actor must reblog a post only once // FIXME: an actor must reblog a post only once
// $this->forge->addUniqueKey(['actor_id', 'reblog_of_id']); // $this->forge->addUniqueKey(['actor_id', 'reblog_of_id']);
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', $tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('in_reply_to_id', 'activitypub_posts', 'id', '', 'CASCADE'); $this->forge->addForeignKey('in_reply_to_id', $tablesPrefix . 'posts', 'id', '', 'CASCADE');
$this->forge->addForeignKey('reblog_of_id', 'activitypub_posts', 'id', '', 'CASCADE'); $this->forge->addForeignKey('reblog_of_id', $tablesPrefix . 'posts', 'id', '', 'CASCADE');
$this->forge->createTable('activitypub_posts'); $this->forge->createTable($tablesPrefix . 'posts');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_posts'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'posts');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddActivities Creates activitypub_activities table in database * Class AddActivities Creates activities table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -59,15 +59,19 @@ class AddActivities extends Migration
'type' => 'DATETIME', 'type' => 'DATETIME',
], ],
]); ]);
$tablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addPrimaryKey('id'); $this->forge->addPrimaryKey('id');
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', $tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('target_actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('target_actor_id', $tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('post_id', 'activitypub_posts', 'id', '', 'CASCADE'); $this->forge->addForeignKey('post_id', $tablesPrefix . 'posts', 'id', '', 'CASCADE');
$this->forge->createTable('activitypub_activities'); $this->forge->createTable($tablesPrefix . 'activities');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_activities'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'activities');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddFavourites Creates activitypub_favourites table in database * Class AddFavourites Creates favourites table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -28,15 +28,19 @@ class AddFavourites extends Migration
'constraint' => 16, 'constraint' => 16,
], ],
]); ]);
$tablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addField('`created_at` timestamp NOT NULL DEFAULT current_timestamp()'); $this->forge->addField('`created_at` timestamp NOT NULL DEFAULT current_timestamp()');
$this->forge->addPrimaryKey(['actor_id', 'post_id']); $this->forge->addPrimaryKey(['actor_id', 'post_id']);
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', $tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('post_id', 'activitypub_posts', 'id', '', 'CASCADE'); $this->forge->addForeignKey('post_id', $tablesPrefix . 'posts', 'id', '', 'CASCADE');
$this->forge->createTable('activitypub_favourites'); $this->forge->createTable($tablesPrefix . 'favourites');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_favourites'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'favourites');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddFollowers Creates activitypub_followers table in database * Class AddFollowers Creates followers table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -30,15 +30,19 @@ class AddFollowers extends Migration
'comment' => 'Actor that is followed', 'comment' => 'Actor that is followed',
], ],
]); ]);
$tablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addField('`created_at` timestamp NOT NULL DEFAULT current_timestamp()'); $this->forge->addField('`created_at` timestamp NOT NULL DEFAULT current_timestamp()');
$this->forge->addPrimaryKey(['actor_id', 'target_actor_id']); $this->forge->addPrimaryKey(['actor_id', 'target_actor_id']);
$this->forge->addForeignKey('actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('actor_id', $tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->addForeignKey('target_actor_id', 'activitypub_actors', 'id', '', 'CASCADE'); $this->forge->addForeignKey('target_actor_id', $tablesPrefix . 'actors', 'id', '', 'CASCADE');
$this->forge->createTable('activitypub_follows'); $this->forge->createTable($tablesPrefix . 'follows');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_follows'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'follows');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddPreviewCards Creates activitypub_preview_cards table in database * Class AddPreviewCards Creates preview_cards table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -75,11 +75,11 @@ class AddPreviewCards extends Migration
$this->forge->addPrimaryKey('id'); $this->forge->addPrimaryKey('id');
$this->forge->addUniqueKey('url'); $this->forge->addUniqueKey('url');
$this->forge->createTable('activitypub_preview_cards'); $this->forge->createTable(config('Fediverse')->tablesPrefix . 'preview_cards');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_preview_cards'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'preview_cards');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddPostsPreviewCards Creates activitypub_posts_preview_cards table in database * Class AddPostsPreviewCards Creates posts_preview_cards table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -29,14 +29,17 @@ class AddPostsPreviewCards extends Migration
], ],
]); ]);
$tablesPrefix = config('Fediverse')
->tablesPrefix;
$this->forge->addPrimaryKey(['post_id', 'preview_card_id']); $this->forge->addPrimaryKey(['post_id', 'preview_card_id']);
$this->forge->addForeignKey('post_id', 'activitypub_posts', 'id', '', 'CASCADE'); $this->forge->addForeignKey('post_id', $tablesPrefix . 'posts', 'id', '', 'CASCADE');
$this->forge->addForeignKey('preview_card_id', 'activitypub_preview_cards', 'id', '', 'CASCADE'); $this->forge->addForeignKey('preview_card_id', $tablesPrefix . 'preview_cards', 'id', '', 'CASCADE');
$this->forge->createTable('activitypub_posts_preview_cards'); $this->forge->createTable($tablesPrefix . 'posts_preview_cards');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_posts_preview_cards'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'posts_preview_cards');
} }
} }

View file

@ -3,7 +3,7 @@
declare(strict_types=1); declare(strict_types=1);
/** /**
* Class AddBlockedDomains Creates activitypub_blocked_domains table in database * Class AddBlockedDomains Creates blocked_domains table in database
* *
* @copyright 2021 Podlibre * @copyright 2021 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3 * @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
@ -28,11 +28,11 @@ class AddBlockedDomains extends Migration
], ],
]); ]);
$this->forge->addPrimaryKey('name'); $this->forge->addPrimaryKey('name');
$this->forge->createTable('activitypub_blocked_domains'); $this->forge->createTable(config('Fediverse')->tablesPrefix . 'blocked_domains');
} }
public function down(): void public function down(): void
{ {
$this->forge->dropTable('activitypub_blocked_domains'); $this->forge->dropTable(config('Fediverse')->tablesPrefix . 'blocked_domains');
} }
} }

View file

@ -193,7 +193,7 @@ class Post extends UuidEntity
public function setMessage(string $message): static public function setMessage(string $message): static
{ {
helper('activitypub'); helper('fediverse');
$messageWithoutTags = strip_tags($message); $messageWithoutTags = strip_tags($message);

View file

@ -13,7 +13,7 @@ use Config\Services;
use Exception; use Exception;
use Modules\Fediverse\HttpSignature; use Modules\Fediverse\HttpSignature;
class ActivityPubFilter implements FilterInterface class FediverseFilter implements FilterInterface
{ {
/** /**
* Do whatever processing this filter needs to do. By default it should not return anything during normal execution. * Do whatever processing this filter needs to do. By default it should not return anything during normal execution.

View file

@ -13,15 +13,14 @@ namespace Modules\Fediverse\Models;
use CodeIgniter\Database\BaseResult; use CodeIgniter\Database\BaseResult;
use CodeIgniter\I18n\Time; use CodeIgniter\I18n\Time;
use DateTimeInterface; use DateTimeInterface;
use Michalsn\Uuid\UuidModel;
use Modules\Fediverse\Entities\Activity; use Modules\Fediverse\Entities\Activity;
class ActivityModel extends UuidModel class ActivityModel extends BaseUuidModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_activities'; protected $table = 'activities';
/** /**
* @var string * @var string

View file

@ -11,15 +11,14 @@ declare(strict_types=1);
namespace Modules\Fediverse\Models; namespace Modules\Fediverse\Models;
use CodeIgniter\Events\Events; use CodeIgniter\Events\Events;
use CodeIgniter\Model;
use Modules\Fediverse\Entities\Actor; use Modules\Fediverse\Entities\Actor;
class ActorModel extends Model class ActorModel extends BaseModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_actors'; protected $table = 'actors';
/** /**
* @var string[] * @var string[]
@ -80,7 +79,7 @@ class ActorModel extends Model
public function getActorByUsername(string $username, ?string $domain = null): ?Actor public function getActorByUsername(string $username, ?string $domain = null): ?Actor
{ {
// TODO: is there a better way? // TODO: is there a better way?
helper('activitypub'); helper('fediverse');
if (! $domain) { if (! $domain) {
$domain = get_current_domain(); $domain = get_current_domain();
@ -129,8 +128,10 @@ class ActorModel extends Model
config('Fediverse') config('Fediverse')
->cachePrefix . "actor#{$actorId}_followers"; ->cachePrefix . "actor#{$actorId}_followers";
if (! ($found = cache($cacheName))) { if (! ($found = cache($cacheName))) {
$found = $this->join('activitypub_follows', 'activitypub_follows.actor_id = id', 'inner') $tablesPrefix = config('Fediverse')
->where('activitypub_follows.target_actor_id', $actorId) ->tablesPrefix;
$found = $this->join($tablesPrefix . 'follows', $tablesPrefix . 'follows.actor_id = id', 'inner')
->where($tablesPrefix . 'follows.target_actor_id', $actorId)
->findAll(); ->findAll();
cache() cache()

View file

@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Modules\Fediverse\Models;
use CodeIgniter\Database\ConnectionInterface;
use CodeIgniter\Model;
use CodeIgniter\Validation\ValidationInterface;
class BaseModel extends Model
{
/**
* Model constructor.
*
* @param ConnectionInterface|null $db DB Connection
* @param ValidationInterface|null $validation Validation
*/
public function __construct(ConnectionInterface &$db = null, ValidationInterface $validation = null)
{
parent::__construct($db, $validation);
$this->table = config('Fediverse')
->tablesPrefix . $this->table;
}
}

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Modules\Fediverse\Models;
use CodeIgniter\Database\ConnectionInterface;
use CodeIgniter\Validation\ValidationInterface;
use Michalsn\Uuid\UuidModel;
class BaseUuidModel extends UuidModel
{
public function __construct(ConnectionInterface &$db = null, ValidationInterface $validation = null)
{
parent::__construct($db, $validation);
$this->table = config('Fediverse')
->tablesPrefix . $this->table;
}
}

View file

@ -15,12 +15,12 @@ use CodeIgniter\Events\Events;
use CodeIgniter\Model; use CodeIgniter\Model;
use Modules\Fediverse\Entities\BlockedDomain; use Modules\Fediverse\Entities\BlockedDomain;
class BlockedDomainModel extends Model class BlockedDomainModel extends BaseModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_blocked_domains'; protected $table = 'blocked_domains';
/** /**
* @var string * @var string

View file

@ -11,19 +11,18 @@ declare(strict_types=1);
namespace Modules\Fediverse\Models; namespace Modules\Fediverse\Models;
use CodeIgniter\Events\Events; use CodeIgniter\Events\Events;
use Michalsn\Uuid\UuidModel;
use Modules\Fediverse\Activities\LikeActivity; use Modules\Fediverse\Activities\LikeActivity;
use Modules\Fediverse\Activities\UndoActivity; use Modules\Fediverse\Activities\UndoActivity;
use Modules\Fediverse\Entities\Actor; use Modules\Fediverse\Entities\Actor;
use Modules\Fediverse\Entities\Favourite; use Modules\Fediverse\Entities\Favourite;
use Modules\Fediverse\Entities\Post; use Modules\Fediverse\Entities\Post;
class FavouriteModel extends UuidModel class FavouriteModel extends BaseUuidModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_favourites'; protected $table = 'favourites';
/** /**
* @var string[] * @var string[]

View file

@ -21,12 +21,12 @@ use Modules\Fediverse\Activities\UndoActivity;
use Modules\Fediverse\Entities\Actor; use Modules\Fediverse\Entities\Actor;
use Modules\Fediverse\Entities\Follow; use Modules\Fediverse\Entities\Follow;
class FollowModel extends Model class FollowModel extends BaseModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_follows'; protected $table = 'follows';
/** /**
* @var string[] * @var string[]

View file

@ -16,7 +16,6 @@ use CodeIgniter\Events\Events;
use CodeIgniter\HTTP\URI; use CodeIgniter\HTTP\URI;
use CodeIgniter\I18n\Time; use CodeIgniter\I18n\Time;
use Exception; use Exception;
use Michalsn\Uuid\UuidModel;
use Modules\Fediverse\Activities\AnnounceActivity; use Modules\Fediverse\Activities\AnnounceActivity;
use Modules\Fediverse\Activities\CreateActivity; use Modules\Fediverse\Activities\CreateActivity;
use Modules\Fediverse\Activities\DeleteActivity; use Modules\Fediverse\Activities\DeleteActivity;
@ -25,12 +24,12 @@ use Modules\Fediverse\Entities\Actor;
use Modules\Fediverse\Entities\Post; use Modules\Fediverse\Entities\Post;
use Modules\Fediverse\Objects\TombstoneObject; use Modules\Fediverse\Objects\TombstoneObject;
class PostModel extends UuidModel class PostModel extends BaseUuidModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_posts'; protected $table = 'posts';
/** /**
* @var string * @var string
@ -183,10 +182,16 @@ class PostModel extends UuidModel
($withBlocked ? '_withBlocked' : ''); ($withBlocked ? '_withBlocked' : '');
if (! ($found = cache($cacheName))) { if (! ($found = cache($cacheName))) {
$tablesPrefix = config('Fediverse')
->tablesPrefix;
if (! $withBlocked) { if (! $withBlocked) {
$this->select('activitypub_posts.*') $this->select($tablesPrefix . 'posts.*')
->join('activitypub_actors', 'activitypub_actors.id = activitypub_posts.actor_id', 'inner') ->join(
->where('activitypub_actors.is_blocked', 0); $tablesPrefix . 'actors',
$tablesPrefix . 'actors.id = ' . $tablesPrefix . 'posts.actor_id',
'inner'
)
->where($tablesPrefix . 'actors.is_blocked', 0);
} }
$this->where('in_reply_to_id', $this->uuid->fromString($postId) ->getBytes()) $this->where('in_reply_to_id', $this->uuid->fromString($postId) ->getBytes())
@ -227,7 +232,7 @@ class PostModel extends UuidModel
public function addPreviewCard(string $postId, int $previewCardId): Query | bool public function addPreviewCard(string $postId, int $previewCardId): Query | bool
{ {
return $this->db->table('activitypub_posts_preview_cards') return $this->db->table(config('Fediverse')->tablesPrefix . 'posts_preview_cards')
->insert([ ->insert([
'post_id' => $this->uuid->fromString($postId) 'post_id' => $this->uuid->fromString($postId)
->getBytes(), ->getBytes(),
@ -245,7 +250,7 @@ class PostModel extends UuidModel
bool $createPreviewCard = true, bool $createPreviewCard = true,
bool $registerActivity = true bool $registerActivity = true
): string | false { ): string | false {
helper('activitypub'); helper('fediverse');
$this->db->transStart(); $this->db->transStart();
@ -385,7 +390,7 @@ class PostModel extends UuidModel
if ( if (
$post->preview_card && $post->preview_card &&
$this->db $this->db
->table('activitypub_posts_preview_cards') ->table(config('Fediverse')->tablesPrefix . 'posts_preview_cards')
->where('preview_card_id', $post->preview_card->id) ->where('preview_card_id', $post->preview_card->id)
->countAll() <= 1 ->countAll() <= 1
) { ) {

View file

@ -11,15 +11,14 @@ declare(strict_types=1);
namespace Modules\Fediverse\Models; namespace Modules\Fediverse\Models;
use CodeIgniter\Database\BaseResult; use CodeIgniter\Database\BaseResult;
use CodeIgniter\Model;
use Modules\Fediverse\Entities\PreviewCard; use Modules\Fediverse\Entities\PreviewCard;
class PreviewCardModel extends Model class PreviewCardModel extends BaseModel
{ {
/** /**
* @var string * @var string
*/ */
protected $table = 'activitypub_preview_cards'; protected $table = 'preview_cards';
/** /**
* @var string[] * @var string[]
@ -76,9 +75,11 @@ class PreviewCardModel extends Model
config('Fediverse') config('Fediverse')
->cachePrefix . "post#{$postId}_preview_card"; ->cachePrefix . "post#{$postId}_preview_card";
if (! ($found = cache($cacheName))) { if (! ($found = cache($cacheName))) {
$tablesPrefix = config('Fediverse')
->tablesPrefix;
$found = $this->join( $found = $this->join(
'activitypub_posts_preview_cards', $tablesPrefix . 'posts_preview_cards',
'activitypub_posts_preview_cards.preview_card_id = id', $tablesPrefix . 'posts_preview_cards.preview_card_id = id',
'inner', 'inner',
) )
->where('post_id', service('uuid') ->fromString($postId) ->getBytes()) ->where('post_id', service('uuid') ->fromString($postId) ->getBytes())

View file

@ -15,6 +15,7 @@ parameters:
excludes_analyse: excludes_analyse:
- app/Libraries/Router.php - app/Libraries/Router.php
- app/Views/* - app/Views/*
- modules/*/Views/*
ignoreErrors: ignoreErrors:
- '#This property type might be inlined to PHP. Do you have confidence it is correct\? Put it here#' - '#This property type might be inlined to PHP. Do you have confidence it is correct\? Put it here#'
- '#^Cognitive complexity for#' - '#^Cognitive complexity for#'
@ -30,4 +31,3 @@ parameters:
message: '#Function "function_exists\(\)" cannot be used/left in the code#' message: '#Function "function_exists\(\)" cannot be used/left in the code#'
paths: paths:
- app/Helpers - app/Helpers
- app/Libraries/ViewComponents/Helpers

View file

@ -4,7 +4,9 @@ declare(strict_types=1);
use Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector; use Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector; use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\FuncCall\CallUserFuncArrayToVariadicRector;
use Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector; use Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector;
use Rector\CodingStyle\Rector\FuncCall\VersionCompareFuncCallToConstantRector;
use Rector\CodingStyle\Rector\String_\SplitStringClassConstantToClassConstFetchRector; use Rector\CodingStyle\Rector\String_\SplitStringClassConstantToClassConstFetchRector;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;
@ -13,6 +15,7 @@ use Rector\EarlyReturn\Rector\If_\ChangeOrIfReturnToEarlyReturnRector;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php80\Rector\ClassMethod\OptionalParametersAfterRequiredRector; use Rector\Php80\Rector\ClassMethod\OptionalParametersAfterRequiredRector;
use Rector\Set\ValueObject\SetList; use Rector\Set\ValueObject\SetList;
use Rector\Transform\Rector\FuncCall\FuncCallToConstFetchRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void { return static function (ContainerConfigurator $containerConfigurator): void {
@ -21,6 +24,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$parameters->set(Option::PATHS, [ $parameters->set(Option::PATHS, [
__DIR__ . '/app', __DIR__ . '/app',
__DIR__ . '/modules',
__DIR__ . '/tests', __DIR__ . '/tests',
__DIR__ . '/public', __DIR__ . '/public',
]); ]);
@ -47,7 +51,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$parameters->set(Option::SKIP, [ $parameters->set(Option::SKIP, [
// skip specific generated files // skip specific generated files
__DIR__ . '/app/Language/*/PersonsTaxonomy.php', __DIR__ . '/modules/Admin/Language/*/PersonsTaxonomy.php',
// skip rules from used sets // skip rules from used sets
ChangeOrIfReturnToEarlyReturnRector::class, ChangeOrIfReturnToEarlyReturnRector::class,
@ -59,6 +63,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
// skip rule in specific directory // skip rule in specific directory
StringClassNameToClassConstantRector::class => [ StringClassNameToClassConstantRector::class => [
__DIR__ . '/app/Language/*', __DIR__ . '/app/Language/*',
__DIR__ . '/modules/*/Language/*',
], ],
OptionalParametersAfterRequiredRector::class => [ OptionalParametersAfterRequiredRector::class => [
__DIR__ . '/app/Validation', __DIR__ . '/app/Validation',