krgm.so-manager-dev.com/app/Providers/LegacyServiceProvider.php
Your Name 71986a2df1
All checks were successful
Deploy preview (main_go) / deploy (push) Successful in 14s
feat: 实装SHJ-6/9/10バッチ処理システム
- SHJ-9: 日次売上集計処理
- SHJ-10: 年次月次売上集計処理
- SHJ-6: サーバ死活監視処理
- 各種モデルサービスコマンド追加
- earnings_summary, device, hardware_check_log, print_job_log テーブル用SQL追加
2025-08-22 19:44:06 +09:00

46 lines
1.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* 旧システム互換用サービスプロバイダ
* 目的旧Blade/旧コードが参照する FQCN例: \App\OperatorQueを新プロジェクトで解決可能にする
*/
class LegacyServiceProvider extends ServiceProvider
{
/**
* アプリ起動時の登録処理
* - 旧FQCNと互換レイヤApp\Legacy\*)のエイリアスを貼る
*/
public function register(): void
{
// \App\OperatorQue → \App\Legacy\OperatorQue
if (!class_exists(\App\OperatorQue::class) && class_exists(\App\Legacy\OperatorQue::class)) {
class_alias(\App\Legacy\OperatorQue::class, \App\OperatorQue::class);
}
// \App\User → \App\Legacy\User
if (!class_exists(\App\User::class) && class_exists(\App\Legacy\User::class)) {
class_alias(\App\Legacy\User::class, \App\User::class);
}
// \App\Park → \App\Legacy\Park
if (!class_exists(\App\Park::class) && class_exists(\App\Legacy\Park::class)) {
class_alias(\App\Legacy\Park::class, \App\Park::class);
}
}
/**
* アプリ起動後(ブート時)の処理
*/
public function boot(): void
{
// 現時点では何もしない(必要に応じて追加)
}
}