for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Platine\App\Provider;
use Platine\App\Http\Action\Product\CategoryAction;
use Platine\App\Model\Repository\ProductCategoryRepository;
use Platine\Framework\Service\ServiceProvider;
use Platine\Route\Router;
/**
* @class ProductServiceProvider
* @package Platine\App\Provider
*/
class ProductServiceProvider extends ServiceProvider
{
* {@inheritdoc}
public function register(): void
$this->app->bind(ProductCategoryRepository::class);
$this->app->bind(CategoryAction::class);
}
public function addRoutes(Router $router): void
$router->group('/product', function (Router $router) {
$router->resource('/category', CategoryAction::class, 'product_category');
});