Skip to content

Instantly share code, notes, and snippets.

View afranioce's full-sized avatar
🏠
Working from home

Afranio Martins afranioce

🏠
Working from home
View GitHub Profile
@adrianalonso
adrianalonso / ImportCountriesCommand.php
Created January 22, 2016 12:10
Symfony Command Import CSV
<?php
namespace AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
import {Sql} from "../providers/Sql";
export class ExamplePage {
constructor(private sql: Sql) {
//sql.query(...);
//...
}
}