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