noiltydev
27 subscribers
42 photos
1 video
18 links
Дневник разработчика — программирую, преодолевая синдром самозванца

Общаемся здесь
@noiltydev_chat

Код здесь
https://github.com/noilty

Стань спонсором на Boosty
https://boosty.to/noilty
Download Telegram
#kitaku #noilty
#hobby #source_code

Вот такой компонент получился который показывает дату и время выхода эпизодов.

Backend компонента: рис. 2.

Использовал api shikimori calendars 🫶
💩21👍1
#appsstats #source_code
#yagames #noilty

За контент на сайте (добавление разработчиков и закрепление игр за ними) отвечает данный метод:
/**
* Execute the console command.
*/
public function handle(
Developer\Create\Handler $developerCreate,
Service\GetGamesByIDs $getGamesByIDs,
Service\GetGameIDsByNew $getGameIDsByNew,
Service\GetGameIDsByDeveloperId $getGameIDsByDeveloperId,
): void {
Assert::nullOrInteger($developer_id = (int) $this->argument('developer'));

/** @var Support\Collection $chunks */
$chunks = $developer_id
? $getGameIDsByDeveloperId->run($developer_id, 48)
: $getGameIDsByNew->run(24);

/** @var Support\Collection $chunk */
foreach ($chunks as $chunk) {
$feedItems = $getGamesByIDs->run($chunk);

foreach ($feedItems as $application) {
/** @var ?EntityDeveloper\Developer $developer */
$developer = $this->findOrCreateDeveloper(
$application->developer,
$developerCreate
);

if (!$developer) {
continue;
}

$this->createGameWithRelations($application, $developer);
}

$this->comment('chunk success');
}

$this->info('script success');
}


Если вам интересна данная тематика постов про #source_code то дайте мне обратную связь (feedback) ❤️ и я расшарю остальные (приватные) методы и сервисы для него.
3👎3