refactor: remove readonly modifier from S3PresignedService property for consistency
This commit is contained in:
parent
c887eddd88
commit
fc1c84f420
@ -16,7 +16,7 @@
|
||||
class AdminSettingsController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly AdminSettingsService $service
|
||||
private AdminSettingsService $service
|
||||
) {}
|
||||
|
||||
public function index(): Response
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
class CashAccountController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly CashAccountService $service
|
||||
private CashAccountService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class EmployeeAdvanceController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly EmployeeAdvanceService $service
|
||||
private EmployeeAdvanceService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class ExpenseController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ExpenseService $service
|
||||
private ExpenseService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
class PayrollAdjustmentController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly PayrollAdjustmentService $service
|
||||
private PayrollAdjustmentService $service
|
||||
) {}
|
||||
|
||||
public function store(PayrollAdjustmentRequest $request, Payroll $payroll): RedirectResponse
|
||||
@ -21,7 +21,7 @@ public function store(PayrollAdjustmentRequest $request, Payroll $payroll): Redi
|
||||
fn () => $this->service->create($payroll, $request->validated()),
|
||||
'Adjustment gaji berhasil ditambahkan.',
|
||||
'admin.finance.payroll-periods.show',
|
||||
parameters : ['payroll_period' => $payroll->payroll_period_id]
|
||||
parameters: ['payroll_period' => $payroll->payroll_period_id]
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
class PayrollController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly PayrollPeriodService $service
|
||||
private PayrollPeriodService $service
|
||||
) {}
|
||||
|
||||
public function pay(Payroll $payroll): RedirectResponse
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class PayrollPeriodController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly PayrollPeriodService $service
|
||||
private PayrollPeriodService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
class AttendanceController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly AttendanceService $service
|
||||
private AttendanceService $service
|
||||
) {}
|
||||
|
||||
public function index(Request $request): Response
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
class EmployeeController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly EmployeeService $service
|
||||
private EmployeeService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
class LeaveRequestController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly LeaveRequestService $service
|
||||
private LeaveRequestService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class CuttingController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly CuttingService $service,
|
||||
private CuttingService $service,
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class PurchaseController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly PurchaseService $service,
|
||||
private PurchaseService $service,
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class RestockController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly RestockService $service,
|
||||
private RestockService $service,
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class TransactionController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly TransactionService $service,
|
||||
private TransactionService $service,
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class CategoryController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly CategoryService $service
|
||||
private CategoryService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class CustomerController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly CustomerService $service
|
||||
private CustomerService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
class ProductController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ProductService $service,
|
||||
private readonly CategoryService $categoryService,
|
||||
private ProductService $service,
|
||||
private CategoryService $categoryService,
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
class ProductVariantController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ProductVariantService $variantService,
|
||||
private ProductVariantService $variantService,
|
||||
) {}
|
||||
|
||||
public function edit(Product $product, ProductVariant $variant): Response
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
class StockMutationController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly StockMutationService $service,
|
||||
private StockMutationService $service,
|
||||
) {}
|
||||
|
||||
public function index(StockMutationRequest $request, Product $product, ProductVariant $variant): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class RawMaterialController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly RawMaterialService $service,
|
||||
private RawMaterialService $service,
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class RawMaterialVariantController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly RawMaterialVariantService $variantService,
|
||||
private RawMaterialVariantService $variantService,
|
||||
) {}
|
||||
|
||||
public function edit(RawMaterial $rawMaterial, RawMaterialPrice $variant): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class SupplierController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly SupplierService $service
|
||||
private SupplierService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
class RoleController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly RoleService $service
|
||||
private RoleService $service
|
||||
) {}
|
||||
|
||||
public function index(PaginatedRequest $request): Response
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
class PresignedUrlController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $service
|
||||
private S3PresignedService $service
|
||||
) {}
|
||||
|
||||
public function store(PresignedUrlRequest $request): JsonResponse
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
class PushSubscriptionController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private readonly PushSubscriptionService $service,
|
||||
private PushSubscriptionService $service,
|
||||
) {}
|
||||
|
||||
public function store(StorePushSubscriptionRequest $request): JsonResponse
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
class AdminSettingsService
|
||||
{
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function getSystemData(): array
|
||||
|
||||
@ -20,7 +20,7 @@ class CashAccountService
|
||||
use HandlesCashTransactions, RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function get(): ?CashAccount
|
||||
|
||||
@ -19,7 +19,7 @@ class ExpenseService
|
||||
use HandlesCashTransactions, RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function getAll(array $filters = []): Collection
|
||||
|
||||
@ -16,7 +16,7 @@ class AttendanceService
|
||||
use RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function getAll(): Collection
|
||||
|
||||
@ -19,7 +19,7 @@ class CuttingService
|
||||
use RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function paginated(int $perPage = 25, string $search = '', string $sort = 'created_at', string $direction = 'desc'): LengthAwarePaginator
|
||||
|
||||
@ -18,7 +18,7 @@ class PurchaseService
|
||||
use RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function paginated(int $perPage = 25, string $search = '', string $sort = 'created_at', string $direction = 'desc'): LengthAwarePaginator
|
||||
|
||||
@ -20,7 +20,7 @@ class RestockService
|
||||
use HasStockAdjustment, RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function paginated(int $perPage = 25, string $search = '', string $sort = 'created_at', string $direction = 'desc'): LengthAwarePaginator
|
||||
|
||||
@ -35,7 +35,7 @@ class TransactionService
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function paginated(int $perPage = 25, string $search = '', string $sort = 'created_at', string $direction = 'desc', array $filters = []): LengthAwarePaginator
|
||||
|
||||
@ -14,9 +14,9 @@
|
||||
class ProductService
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ProductVariantService $variantService,
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private readonly StockMutationService $stockMutationService,
|
||||
private ProductVariantService $variantService,
|
||||
private S3PresignedService $s3Service,
|
||||
private StockMutationService $stockMutationService,
|
||||
) {}
|
||||
|
||||
public function getAll(array $filters = []): Collection
|
||||
|
||||
@ -16,8 +16,8 @@ class ProductVariantService
|
||||
use RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private readonly StockMutationService $stockMutationService,
|
||||
private S3PresignedService $s3Service,
|
||||
private StockMutationService $stockMutationService,
|
||||
) {}
|
||||
|
||||
public function getForEdit(ProductVariant $variant): array
|
||||
|
||||
@ -15,7 +15,7 @@ class RawMaterialService
|
||||
use RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function getAll(array $filters = []): Collection
|
||||
|
||||
@ -14,7 +14,7 @@ class RawMaterialVariantService
|
||||
use RegistersMedia;
|
||||
|
||||
public function __construct(
|
||||
private readonly S3PresignedService $s3Service,
|
||||
private S3PresignedService $s3Service,
|
||||
) {}
|
||||
|
||||
public function getForEdit(RawMaterialPrice $variant): array
|
||||
|
||||
@ -253,7 +253,7 @@ public function run(): void
|
||||
'stocks.view',
|
||||
|
||||
'owner_verifications.view',
|
||||
|
||||
|
||||
'cuttings.view',
|
||||
'cuttings.create',
|
||||
'cuttings.update',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user