Skip to content

Instantly share code, notes, and snippets.

View Max00's full-sized avatar

Maxime Kieffer Max00

View GitHub Profile
<?php
// ...
class ArticleRepository extends ServiceEntityRepository
{
// ...
public function __construct(RegistryInterface $registry)
{
@Max00
Max00 / ContactController.php
Created January 29, 2018 16:02
Symfony 4 / JQuery AJAX - File upload example
<?php
/**
* @Route("/contact/add", name="contact_add")
*/
public function add(Request $request)
{
$contact = new Contact();
$form = $this->createForm(ContactAddType::class, $contact);

Keybase proof

I hereby claim:

  • I am max00 on github.
  • I am stargazer (https://keybase.io/stargazer) on keybase.
  • I have a public key ASDEGfAq0LFuXN3DAcu52YJowRXYVOpC3_EwPPpc9gboiQo

To claim this, I am signing this object: