mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 23:01:31 +00:00
24fa162413
[ci skip] [skip ci]
52 lines
858 B
PHP
52 lines
858 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use App\Extensions\util\yenc\adapter\Php;
|
|
|
|
class YencServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param array $options
|
|
*
|
|
* @return mixed
|
|
* @internal param $option
|
|
*/
|
|
public static function config(array $options = [])
|
|
{
|
|
$defaults = [
|
|
['name' => [
|
|
'default' => 'Php',
|
|
],
|
|
],
|
|
];
|
|
|
|
$options += $defaults;
|
|
|
|
$namespace = '\App\Extensions\util\yenc\adapter\\';
|
|
|
|
$class = $namespace.$options[0]['name']['default'];
|
|
|
|
return new $class;
|
|
}
|
|
}
|