1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 22:52:32 +01:00
flox/backend/app/Http/Controllers/TMDBController.php
2016-10-10 10:57:39 +02:00

21 lines
333 B
PHP

<?php
namespace App\Http\Controllers;
use App\Services\TMDB;
use Illuminate\Support\Facades\Input;
class TMDBController {
private $tmdb;
public function __construct(TMDB $tmdb)
{
$this->tmdb = $tmdb;
}
public function search()
{
return $this->tmdb->search(Input::get('q'));
}
}