mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-31 15:30:42 +02:00
Use imports instead of FQNs
This commit is contained in:
parent
f63b6d7207
commit
5629215ce4
179 changed files with 792 additions and 597 deletions
|
@ -64,7 +64,7 @@ class EntityExporter
|
|||
* @param array $options The options to use for exporting
|
||||
* @return string The serialized data
|
||||
*/
|
||||
public function exportEntities(\App\Entity\Base\AbstractNamedDBElement|array $entities, array $options): string
|
||||
public function exportEntities(AbstractNamedDBElement|array $entities, array $options): string
|
||||
{
|
||||
if (!is_array($entities)) {
|
||||
$entities = [$entities];
|
||||
|
@ -108,7 +108,7 @@ class EntityExporter
|
|||
*
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function exportEntityFromRequest(\App\Entity\Base\AbstractNamedDBElement|array $entities, Request $request): Response
|
||||
public function exportEntityFromRequest(AbstractNamedDBElement|array $entities, Request $request): Response
|
||||
{
|
||||
$options = [
|
||||
'format' => $request->get('format') ?? 'json',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue