for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AbterPhp\Files\Http\Controllers\Api;
use AbterPhp\Files\Service\Execute\FileCategory as RepoService;
use AbterPhp\Framework\Http\Controllers\Admin\ApiAbstract;
use Opulence\Http\Responses\Response;
use Opulence\Routing\Controller;
use Psr\Log\LoggerInterface;
class FileCategory extends ApiAbstract
{
const ENTITY_SINGULAR = 'fileCategory';
const ENTITY_PLURAL = 'fileCategories';
/**
* UserGroup constructor.
*
* @param LoggerInterface $logger
* @param RepoService $repoService
*/
public function __construct(LoggerInterface $logger, RepoService $repoService)
parent::__construct($logger, $repoService);
}
* @return array
public function getSharedData(): array
$data = $this->request->getJsonBody();
if (array_key_exists('password', $data)) {
$data['password_repeated'] = $data['password'];
return $data;