35 lines
799 B
PHP
35 lines
799 B
PHP
<?php
|
|
|
|
namespace Deblan\Bundle\RtmpBundle\Command;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
use Symfony\Component\Console\Input\InputOption;
|
|
use Symfony\Component\Console\Input\InputArgument;
|
|
|
|
/**
|
|
* @author Simon Vieille <simon@deblan.fr>
|
|
*/
|
|
class TestCommand extends ContainerAwareCommand
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function configure()
|
|
{
|
|
$this->setName('test');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
{
|
|
$foo = 'rtmp://local.stream-server/live?key=myPassword';
|
|
$parse = parse_url($foo);
|
|
|
|
var_dump($parse);
|
|
}
|
|
}
|