Skip to content

Add import/export credentials file 2le/crudit#356 - #19

Merged
sebheitzmann merged 6 commits into
masterfrom
importExportCredentials
Dec 6, 2023
Merged

Add import/export credentials file 2le/crudit#356#19
sebheitzmann merged 6 commits into
masterfrom
importExportCredentials

Conversation

@valentin-helies

Copy link
Copy Markdown
Contributor

No description provided.

$output = new NullOutput();

$application->run($input, $output);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'aurais fait un service qui est appelé par le contrôleur et la commande.

Au lieu d'appeler la commande dans le contrôleur

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evidement, On n'appelle jamais une commande depuis un controller

Comment thread src/Command/CredentialDumpCommand.php Outdated
protected CredentialRepository $credentialRepository,
protected GroupCredentialRepository $groupCredentialRepository,
protected GroupRepository $groupRepository,
protected KernelInterface $kernel,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

j'aime pas qu'on injecte le kernelInterface pour récupérer le projectDir.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this->getParameter('kernel.project_dir'); marche dans un controller

@sebheitzmann

Copy link
Copy Markdown
Contributor

magnifique.

@sebheitzmann
sebheitzmann merged commit 29c4c53 into master Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants