nginx-rtmp-auth/src/Deblan/Bundle/RtmpBundle/Command/TestCommand.php

35 lines
799 B
PHP
Raw Normal View History

2016-10-08 15:37:42 +02:00
<?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);
}
}