Last active
August 29, 2015 14:25
-
-
Save jadwigo/63318525bb5fe53a958f to your computer and use it in GitHub Desktop.
extension with nut command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Bolt\Extension\Europeana\ZohoImport; | |
use Bolt\Nut\BaseCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class Console extends BaseCommand | |
{ | |
protected function configure() | |
{ | |
$this | |
->setName('zoho:import') | |
->setDescription('Import ZOHO Contacts'); | |
} | |
protected function execute(InputInterface $input, OutputInterface $output) | |
{ | |
$text = $this->app['extensions.ZohoImport']->testPage(); | |
$output->writeln($text); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lodewijk@jannie:html$ php app/nut zoho:import | |
<p>Redirecting to <a href='/bolt'>/bolt</a>.</p><script>window.setTimeout(function () { window.location='/bolt'; }, 500);</script>test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment