Remove local utility testing script from repo tracking. :)

This commit is contained in:
Buster Silver 2016-09-02 21:48:43 -05:00
parent b153cde67d
commit e4e45bac15
2 changed files with 3 additions and 44 deletions

3
.gitignore vendored
View File

@ -4,6 +4,9 @@ app/config/apis.conf.php
app/config/influx.conf.php
app/config/cache.conf.php
# Local development files.
app/modules/frontend/controllers/UtilController.php
# Junk/cache files.
*Thumbs.db
tmp/cache/*---*

View File

@ -1,44 +0,0 @@
<?php
namespace Modules\Frontend\Controllers;
use \App\Debug;
use \App\Utilities;
use Entity\Station;
use Entity\StationPlaylist;
class UtilController extends BaseController
{
public function permissions()
{
return $this->acl->isAllowed('administer all');
}
public function indexAction()
{
$this->doNotRender();
phpinfo();
}
public function testAction()
{
$this->doNotRender();
set_time_limit(0);
ini_set('memory_limit', '-1');
Debug::setEchoMode();
// -------- START HERE -------- //
$mp3_file = '/var/azuracast/stations/best_pony_radio/media/Vinylicious.mp3';
$station = Station::find(1);
$ba = $station->getBackendAdapter();
$ba->request($mp3_file);
// -------- END HERE -------- //
Debug::log('Done!');
}
}